Files
deno/assets/slidev/shortcuts-CMHCD_v_.js
T

5 lines
55 KiB
JavaScript

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/slidev/DrawingLayer-D6iEt8Ny.js","assets/modules/vue-B5Z8nqrj.js","assets/slidev/SlideWrapper-COZ1zGz_.js","assets/index-rf-F2tFP.js","assets/modules/shiki-CcvRnmUC.js","assets/modules/shiki-CozCpemh.css","assets/index-BziE1gJW.css","assets/SlideWrapper-DqjhgBiS.css","assets/slidev/context-4Zmiv8Pf.js"])))=>i.map(i=>d[i]);
import{r as Y,ar as An,as as Sn,K as We,at as Jt,z as R,Q as Bt,d as Q,a7 as Zt,ao as qt,a6 as Mn,f as p,i as C,T as r,o as u,au as en,k as Ce,F as N,aj as Ve,n as T,b as D,av as Ie,g,t as ee,ad as Pe,a9 as En,l as Ye,e as E,ag as tn,j as nt,aq as $n,aw as nn,ax as sn,ah as He,ay as Dn,w as $,ai as Vt,m as xt,B as dt,E as st,az as Bn,am as an,S as Fn,D as Rn,aA as Xe,v as xe,x as ke,aB as In,aC as z,aD as ie,aE as Pn,aF as Vn}from"../modules/vue-B5Z8nqrj.js";import{a as ce,E as qe,F as at,f as Ft,j as vt,v as $e,G as Nn,H as Fe,_ as ut,I as Ee,J as je,b as ot,A as P,B as K,K as ft,q as ht,L as Se,M as kt,i as Tn,t as wt,n as Qe,N as on,y as Nt,O as Ln,h as On,P as zn,Q as jn,R as oe,c as ln,C as rn,p as Wn,S as Tt,T as Hn,U as Kn,V as Lt,W as Ot,o as zt,X as Rt,w as Gn,Y as pt,Z as jt,$ as Ct,a0 as Un,a1 as Yn,a2 as Xn}from"../index-rf-F2tFP.js";import{c as ct,u as Qn,a as Jn,S as un,_ as Zn,G as qn,d as es}from"./SlideWrapper-COZ1zGz_.js";import{u as ts}from"./context-4Zmiv8Pf.js";import{_ as ns,a as ss,b as as,c as os}from"../modules/unplugin-icons-CKCvuFEe.js";import{_ as U}from"./IconButton.vue_vue_type_script_setup_true_lang-BC4Pfblr.js";import{V as ls,t as rs}from"../modules/shiki-CcvRnmUC.js";function $o(n){const{next:e,nextSlide:s,prev:o,prevSlide:t}=ce(),{isDrawing:a}=ct(),l=Y(0),{direction:i,distanceX:v,distanceY:d}=An(n,{pointerTypes:["touch"],onSwipeStart(){a.value||(l.value=Sn())},onSwipeEnd(){if(!l.value||a.value)return;const c=Math.abs(v.value),m=Math.abs(d.value);c/window.innerWidth>.3||c>75?i.value==="left"?e():o():(m/window.innerHeight>.4||m>200)&&(i.value==="down"?t():s())}})}function Do(){const{request:n,release:e}=Jt();We(qe,s=>{s?n("screen"):e()},{immediate:!0})}const is=[];let mt;const us=()=>{if(mt)return mt;const{next:n,nextSlide:e,prev:s,prevSlide:o,hasNext:t,hasPrev:a,currentPage:l,total:i,isPresenter:v,enterPresenter:d,exitPresenter:c,isEmbedded:m,isPresenterAvailable:h}=ce(),{drawingEnabled:y}=ct(),{isFullscreen:_,toggle:A}=Ft;return mt=is.reduce((f,b)=>b(f),R(()=>[{small:!0,icon:"i-carbon:arrow-left",label:"Previous Click",action:s,disabled:!a.value},{small:!0,icon:"i-carbon:arrow-right",label:"Next Click",action:n,disabled:!t.value},{small:!0,icon:"i-carbon:arrow-up",label:"Previous Slide",action:o,disabled:l.value<=1},{small:!0,icon:"i-carbon:arrow-down",label:"Next Slide",action:e,disabled:l.value>=i.value},"separator",{icon:"i-carbon:text-annotation-toggle",label:vt.value?"Hide editor":"Show editor",action:()=>vt.value=!vt.value},{icon:"i-carbon:pen",label:y.value?"Hide drawing toolbar":"Show drawing toolbar",action:()=>y.value=!y.value},{icon:"i-carbon:apps",label:"Show slide overview",action:at},v.value&&{icon:"i-carbon:presentation-file",label:"Exit Presenter Mode",action:c},h.value&&{icon:"i-carbon:user-speaker",label:"Enter Presenter Mode",action:d},!m.value&&{icon:_.value?"i-carbon:minimize":"i-carbon:maximize",label:_.value?"Close fullscreen":"Enter fullscreen",action:A}].filter(Boolean)))},Re=Bt(null);function cs(n,e){Re.value={x:n,y:e,items:us()}}function Le(){Re.value=null}function Bo(n){if($e.contextMenu!==!0&&$e.contextMenu!=null&&$e.contextMenu!==Nn||n.shiftKey||n.defaultPrevented)return;const{isEmbedded:e}=ce();e.value||(cs(n.pageX,n.pageY),n.preventDefault(),n.stopPropagation())}const ds=["title","onClick"],vs=["onClick"],fs={class:"mx-auto flex"},hs={key:0},ps={class:"w-full text-xs p2"},ms={class:"text-main text-opacity-50!"},Fo=Q({__name:"ContextMenu",setup(n){const e=Y();Zt(e,Le),qt(document,"mousedown",v=>{v.buttons&2&&Le()},{passive:!0,capture:!0});const s=R(()=>$e.contextMenu!=null),o=En();We(o,v=>{v||Le()}),Qn(1);const{width:t,height:a}=Mn(e),l=R(()=>{const v=Re.value?.x;return v?v+t.value>Fe.width.value?Fe.width.value-t.value:v:0}),i=R(()=>{const v=Re.value?.y;return v?v+a.value>Fe.height.value?Fe.height.value-a.value:v:0});return(v,d)=>r(Re)?(u(),p("div",{key:0,ref_key:"container",ref:e,style:Ce(`left:${l.value}px;top:${i.value}px`),class:"slidev-glass-effect fixed z-context-menu w-60 flex flex-wrap justify-items-start p-1 animate-fade-in animate-duration-100 rounded-md shadow overflow-hidden select-none",onContextmenu:d[1]||(d[1]=en(()=>{},["prevent"])),onClick:d[2]||(d[2]=(...c)=>r(Le)&&r(Le)(...c))},[(u(!0),p(N,null,Ve(r(Re).items.value,(c,m)=>(u(),p(N,{key:m},[c==="separator"?(u(),p("div",{key:m,class:"w-full my1 border-t border-main"})):c.small?(u(),p("div",{key:1,class:T(["p-2 w-[40px] h-[40px] inline-block text-center cursor-pointer rounded flex",c.disabled?"op40":"hover:bg-active"]),title:c.label,onClick:c.action},[typeof c.icon=="string"?(u(),p("div",{key:0,class:T([c.icon,"text-1.2em ma"])},null,2)):(u(),D(Ie(c.icon),{key:1}))],10,ds)):(u(),p("div",{key:2,class:T(["w-full grid grid-cols-[35px_1fr] p-2 pl-0 cursor-pointer rounded",c.disabled?"op40":"hover:bg-active"]),onClick:c.action},[g("div",fs,[typeof c.icon=="string"?(u(),p("div",{key:0,class:T([c.icon,"text-1.2em ma"])},null,2)):(u(),D(Ie(c.icon),{key:1}))]),typeof c.label=="string"?(u(),p("div",hs,ee(c.label),1)):(u(),D(Ie(c.label),{key:1}))],10,vs))],64))),128)),s.value?C("v-if",!0):(u(),p(N,{key:0},[d[6]||(d[6]=g("div",{class:"w-full my1 border-t border-main"},null,-1)),g("div",ps,[g("div",ms,[d[3]||(d[3]=Pe(" Hold ",-1)),d[4]||(d[4]=g("kbd",{class:"border px1 py0.5 border-main rounded text-primary"},"Shift",-1)),d[5]||(d[5]=Pe(" and right click to open the native context menu ",-1)),C("v-if",!0)])])],64))],36)):C("v-if",!0)}}),gs={},ys={class:"w-1px opacity-10 bg-current m-1 lg:m-2"};function bs(n,e){return u(),p("div",ys)}const Oe=ut(gs,[["render",bs]]),_s={key:0},xs={key:1},ks={key:2},ws={key:3},Cs={key:4},As={key:5},Ss={key:6},Ms={key:7},Es={key:8},$s={key:9},Ds={key:10},Bs={key:11},Fs={key:12},Rs={key:13},Is={key:14},Ps={key:15},Vs=Q({__name:"title-renderer",props:{no:{}},setup(n){const e=n,{$page:s}=ts(),o=R(()=>+(e.no??s.value));return(t,a)=>(u(),p("div",null,[o.value===1?(u(),p("p",_s,"Deno")):o.value===2?(u(),p("p",xs,"What is Deno?")):o.value===3?(u(),p("p",ks,"Features")):o.value===4?(u(),p("p",ws,"Install Deno")):o.value===5?(u(),p("p",Cs,"Docker")):o.value===6?(u(),p("p",As,"Deno Toolchain")):o.value===7?(u(),p("p",Ss,"undefined")):o.value===8?(u(),p("p",Ms,"Running a project")):o.value===9?(u(),p("p",Es,"Standard Library")):o.value===10?(u(),p("p",$s,"Security & Permissions")):o.value===11?(u(),p("p",Ds,"Permissions")):o.value===12?(u(),p("p",Bs,"Deno KV")):o.value===13?(u(),p("p",Fs,"Deno Deploy")):o.value===14?(u(),p("p",Rs,"Deno Deploy")):o.value===15?(u(),p("p",Is,"Jupyter Notebooks")):o.value===16?(u(),p("p",Ps,"OpenTelemetry")):C("v-if",!0)]))}});function Ae(n){return Array.isArray?Array.isArray(n):vn(n)==="[object Array]"}function Ns(n){if(typeof n=="string")return n;let e=n+"";return e=="0"&&1/n==-1/0?"-0":e}function Ts(n){return n==null?"":Ns(n)}function he(n){return typeof n=="string"}function cn(n){return typeof n=="number"}function Ls(n){return n===!0||n===!1||Os(n)&&vn(n)=="[object Boolean]"}function dn(n){return typeof n=="object"}function Os(n){return dn(n)&&n!==null}function le(n){return n!=null}function gt(n){return!n.trim().length}function vn(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}const zs="Incorrect 'index' type",js=n=>`Invalid value for key ${n}`,Ws=n=>`Pattern length exceeds max of ${n}.`,Hs=n=>`Missing ${n} property in key`,Ks=n=>`Property 'weight' in key '${n}' must be a positive integer`,Wt=Object.prototype.hasOwnProperty;class Gs{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(o=>{let t=fn(o);this._keys.push(t),this._keyMap[t.id]=t,s+=t.weight}),this._keys.forEach(o=>{o.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function fn(n){let e=null,s=null,o=null,t=1,a=null;if(he(n)||Ae(n))o=n,e=Ht(n),s=At(n);else{if(!Wt.call(n,"name"))throw new Error(Hs("name"));const l=n.name;if(o=l,Wt.call(n,"weight")&&(t=n.weight,t<=0))throw new Error(Ks(l));e=Ht(l),s=At(l),a=n.getFn}return{path:e,id:s,weight:t,src:o,getFn:a}}function Ht(n){return Ae(n)?n:n.split(".")}function At(n){return Ae(n)?n.join("."):n}function Us(n,e){let s=[],o=!1;const t=(a,l,i)=>{if(le(a))if(!l[i])s.push(a);else{let v=l[i];const d=a[v];if(!le(d))return;if(i===l.length-1&&(he(d)||cn(d)||Ls(d)))s.push(Ts(d));else if(Ae(d)){o=!0;for(let c=0,m=d.length;c<m;c+=1)t(d[c],l,i+1)}else l.length&&t(d,l,i+1)}};return t(n,he(e)?e.split("."):e,0),o?s:s[0]}const Ys={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Xs={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(n,e)=>n.score===e.score?n.idx<e.idx?-1:1:n.score<e.score?-1:1},Qs={location:0,threshold:.6,distance:100},Js={useExtendedSearch:!1,getFn:Us,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var k={...Xs,...Ys,...Qs,...Js};const Zs=/[^ ]+/g;function qs(n=1,e=3){const s=new Map,o=Math.pow(10,e);return{get(t){const a=t.match(Zs).length;if(s.has(a))return s.get(a);const l=1/Math.pow(a,.5*n),i=parseFloat(Math.round(l*o)/o);return s.set(a,i),i},clear(){s.clear()}}}class It{constructor({getFn:e=k.getFn,fieldNormWeight:s=k.fieldNormWeight}={}){this.norm=qs(s,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((s,o)=>{this._keysMap[s.id]=o})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,he(this.docs[0])?this.docs.forEach((e,s)=>{this._addString(e,s)}):this.docs.forEach((e,s)=>{this._addObject(e,s)}),this.norm.clear())}add(e){const s=this.size();he(e)?this._addString(e,s):this._addObject(e,s)}removeAt(e){this.records.splice(e,1);for(let s=e,o=this.size();s<o;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(e,s){return e[this._keysMap[s]]}size(){return this.records.length}_addString(e,s){if(!le(e)||gt(e))return;let o={v:e,i:s,n:this.norm.get(e)};this.records.push(o)}_addObject(e,s){let o={i:s,$:{}};this.keys.forEach((t,a)=>{let l=t.getFn?t.getFn(e):this.getFn(e,t.path);if(le(l)){if(Ae(l)){let i=[];const v=[{nestedArrIndex:-1,value:l}];for(;v.length;){const{nestedArrIndex:d,value:c}=v.pop();if(le(c))if(he(c)&&!gt(c)){let m={v:c,i:d,n:this.norm.get(c)};i.push(m)}else Ae(c)&&c.forEach((m,h)=>{v.push({nestedArrIndex:h,value:m})})}o.$[a]=i}else if(he(l)&&!gt(l)){let i={v:l,n:this.norm.get(l)};o.$[a]=i}}}),this.records.push(o)}toJSON(){return{keys:this.keys,records:this.records}}}function hn(n,e,{getFn:s=k.getFn,fieldNormWeight:o=k.fieldNormWeight}={}){const t=new It({getFn:s,fieldNormWeight:o});return t.setKeys(n.map(fn)),t.setSources(e),t.create(),t}function ea(n,{getFn:e=k.getFn,fieldNormWeight:s=k.fieldNormWeight}={}){const{keys:o,records:t}=n,a=new It({getFn:e,fieldNormWeight:s});return a.setKeys(o),a.setIndexRecords(t),a}function Je(n,{errors:e=0,currentLocation:s=0,expectedLocation:o=0,distance:t=k.distance,ignoreLocation:a=k.ignoreLocation}={}){const l=e/n.length;if(a)return l;const i=Math.abs(o-s);return t?l+i/t:i?1:l}function ta(n=[],e=k.minMatchCharLength){let s=[],o=-1,t=-1,a=0;for(let l=n.length;a<l;a+=1){let i=n[a];i&&o===-1?o=a:!i&&o!==-1&&(t=a-1,t-o+1>=e&&s.push([o,t]),o=-1)}return n[a-1]&&a-o>=e&&s.push([o,a-1]),s}const Be=32;function na(n,e,s,{location:o=k.location,distance:t=k.distance,threshold:a=k.threshold,findAllMatches:l=k.findAllMatches,minMatchCharLength:i=k.minMatchCharLength,includeMatches:v=k.includeMatches,ignoreLocation:d=k.ignoreLocation}={}){if(e.length>Be)throw new Error(Ws(Be));const c=e.length,m=n.length,h=Math.max(0,Math.min(o,m));let y=a,_=h;const A=i>1||v,f=A?Array(m):[];let b;for(;(b=n.indexOf(e,_))>-1;){let x=Je(e,{currentLocation:b,expectedLocation:h,distance:t,ignoreLocation:d});if(y=Math.min(x,y),_=b+c,A){let H=0;for(;H<c;)f[b+H]=1,H+=1}}_=-1;let F=[],W=1,J=c+m;const S=1<<c-1;for(let x=0;x<c;x+=1){let H=0,I=J;for(;H<I;)Je(e,{errors:x,currentLocation:h+I,expectedLocation:h,distance:t,ignoreLocation:d})<=y?H=I:J=I,I=Math.floor((J-H)/2+H);J=I;let O=Math.max(1,h-I+1),de=l?m:Math.min(h+I,m)+c,se=Array(de+2);se[de+1]=(1<<x)-1;for(let G=de;G>=O;G-=1){let pe=G-1,Ke=s[n.charAt(pe)];if(A&&(f[pe]=+!!Ke),se[G]=(se[G+1]<<1|1)&Ke,x&&(se[G]|=(F[G+1]|F[G])<<1|1|F[G+1]),se[G]&S&&(W=Je(e,{errors:x,currentLocation:pe,expectedLocation:h,distance:t,ignoreLocation:d}),W<=y)){if(y=W,_=pe,_<=h)break;O=Math.max(1,2*h-_)}}if(Je(e,{errors:x+1,currentLocation:h,expectedLocation:h,distance:t,ignoreLocation:d})>y)break;F=se}const ne={isMatch:_>=0,score:Math.max(.001,W)};if(A){const x=ta(f,i);x.length?v&&(ne.indices=x):ne.isMatch=!1}return ne}function sa(n){let e={};for(let s=0,o=n.length;s<o;s+=1){const t=n.charAt(s);e[t]=(e[t]||0)|1<<o-s-1}return e}const lt=String.prototype.normalize?n=>n.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):n=>n;class pn{constructor(e,{location:s=k.location,threshold:o=k.threshold,distance:t=k.distance,includeMatches:a=k.includeMatches,findAllMatches:l=k.findAllMatches,minMatchCharLength:i=k.minMatchCharLength,isCaseSensitive:v=k.isCaseSensitive,ignoreDiacritics:d=k.ignoreDiacritics,ignoreLocation:c=k.ignoreLocation}={}){if(this.options={location:s,threshold:o,distance:t,includeMatches:a,findAllMatches:l,minMatchCharLength:i,isCaseSensitive:v,ignoreDiacritics:d,ignoreLocation:c},e=v?e:e.toLowerCase(),e=d?lt(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const m=(y,_)=>{this.chunks.push({pattern:y,alphabet:sa(y),startIndex:_})},h=this.pattern.length;if(h>Be){let y=0;const _=h%Be,A=h-_;for(;y<A;)m(this.pattern.substr(y,Be),y),y+=Be;if(_){const f=h-Be;m(this.pattern.substr(f),f)}}else m(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,ignoreDiacritics:o,includeMatches:t}=this.options;if(e=s?e:e.toLowerCase(),e=o?lt(e):e,this.pattern===e){let A={isMatch:!0,score:0};return t&&(A.indices=[[0,e.length-1]]),A}const{location:a,distance:l,threshold:i,findAllMatches:v,minMatchCharLength:d,ignoreLocation:c}=this.options;let m=[],h=0,y=!1;this.chunks.forEach(({pattern:A,alphabet:f,startIndex:b})=>{const{isMatch:F,score:W,indices:J}=na(e,A,f,{location:a+b,distance:l,threshold:i,findAllMatches:v,minMatchCharLength:d,includeMatches:t,ignoreLocation:c});F&&(y=!0),h+=W,F&&J&&(m=[...m,...J])});let _={isMatch:y,score:y?h/this.chunks.length:1};return y&&t&&(_.indices=m),_}}class De{constructor(e){this.pattern=e}static isMultiMatch(e){return Kt(e,this.multiRegex)}static isSingleMatch(e){return Kt(e,this.singleRegex)}search(){}}function Kt(n,e){const s=n.match(e);return s?s[1]:null}class aa extends De{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const s=e===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class oa extends De{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const o=e.indexOf(this.pattern)===-1;return{isMatch:o,score:o?0:1,indices:[0,e.length-1]}}}class la extends De{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const s=e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class ra extends De{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const s=!e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class ia extends De{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const s=e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class ua extends De{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const s=!e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class mn extends De{constructor(e,{location:s=k.location,threshold:o=k.threshold,distance:t=k.distance,includeMatches:a=k.includeMatches,findAllMatches:l=k.findAllMatches,minMatchCharLength:i=k.minMatchCharLength,isCaseSensitive:v=k.isCaseSensitive,ignoreDiacritics:d=k.ignoreDiacritics,ignoreLocation:c=k.ignoreLocation}={}){super(e),this._bitapSearch=new pn(e,{location:s,threshold:o,distance:t,includeMatches:a,findAllMatches:l,minMatchCharLength:i,isCaseSensitive:v,ignoreDiacritics:d,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class gn extends De{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,o;const t=[],a=this.pattern.length;for(;(o=e.indexOf(this.pattern,s))>-1;)s=o+a,t.push([o,s-1]);const l=!!t.length;return{isMatch:l,score:l?0:1,indices:t}}}const St=[aa,gn,la,ra,ua,ia,oa,mn],Gt=St.length,ca=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,da="|";function va(n,e={}){return n.split(da).map(s=>{let o=s.trim().split(ca).filter(a=>a&&!!a.trim()),t=[];for(let a=0,l=o.length;a<l;a+=1){const i=o[a];let v=!1,d=-1;for(;!v&&++d<Gt;){const c=St[d];let m=c.isMultiMatch(i);m&&(t.push(new c(m,e)),v=!0)}if(!v)for(d=-1;++d<Gt;){const c=St[d];let m=c.isSingleMatch(i);if(m){t.push(new c(m,e));break}}}return t})}const fa=new Set([mn.type,gn.type]);class ha{constructor(e,{isCaseSensitive:s=k.isCaseSensitive,ignoreDiacritics:o=k.ignoreDiacritics,includeMatches:t=k.includeMatches,minMatchCharLength:a=k.minMatchCharLength,ignoreLocation:l=k.ignoreLocation,findAllMatches:i=k.findAllMatches,location:v=k.location,threshold:d=k.threshold,distance:c=k.distance}={}){this.query=null,this.options={isCaseSensitive:s,ignoreDiacritics:o,includeMatches:t,minMatchCharLength:a,findAllMatches:i,ignoreLocation:l,location:v,threshold:d,distance:c},e=s?e:e.toLowerCase(),e=o?lt(e):e,this.pattern=e,this.query=va(this.pattern,this.options)}static condition(e,s){return s.useExtendedSearch}searchIn(e){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:o,isCaseSensitive:t,ignoreDiacritics:a}=this.options;e=t?e:e.toLowerCase(),e=a?lt(e):e;let l=0,i=[],v=0;for(let d=0,c=s.length;d<c;d+=1){const m=s[d];i.length=0,l=0;for(let h=0,y=m.length;h<y;h+=1){const _=m[h],{isMatch:A,indices:f,score:b}=_.search(e);if(A){if(l+=1,v+=b,o){const F=_.constructor.type;fa.has(F)?i=[...i,...f]:i.push(f)}}else{v=0,l=0,i.length=0;break}}if(l){let h={isMatch:!0,score:v/l};return o&&(h.indices=i),h}}return{isMatch:!1,score:1}}}const Mt=[];function pa(...n){Mt.push(...n)}function Et(n,e){for(let s=0,o=Mt.length;s<o;s+=1){let t=Mt[s];if(t.condition(n,e))return new t(n,e)}return new pn(n,e)}const rt={AND:"$and",OR:"$or"},$t={PATH:"$path",PATTERN:"$val"},Dt=n=>!!(n[rt.AND]||n[rt.OR]),ma=n=>!!n[$t.PATH],ga=n=>!Ae(n)&&dn(n)&&!Dt(n),Ut=n=>({[rt.AND]:Object.keys(n).map(e=>({[e]:n[e]}))});function yn(n,e,{auto:s=!0}={}){const o=t=>{let a=Object.keys(t);const l=ma(t);if(!l&&a.length>1&&!Dt(t))return o(Ut(t));if(ga(t)){const v=l?t[$t.PATH]:a[0],d=l?t[$t.PATTERN]:t[v];if(!he(d))throw new Error(js(v));const c={keyId:At(v),pattern:d};return s&&(c.searcher=Et(d,e)),c}let i={children:[],operator:a[0]};return a.forEach(v=>{const d=t[v];Ae(d)&&d.forEach(c=>{i.children.push(o(c))})}),i};return Dt(n)||(n=Ut(n)),o(n)}function ya(n,{ignoreFieldNorm:e=k.ignoreFieldNorm}){n.forEach(s=>{let o=1;s.matches.forEach(({key:t,norm:a,score:l})=>{const i=t?t.weight:null;o*=Math.pow(l===0&&i?Number.EPSILON:l,(i||1)*(e?1:a))}),s.score=o})}function ba(n,e){const s=n.matches;e.matches=[],le(s)&&s.forEach(o=>{if(!le(o.indices)||!o.indices.length)return;const{indices:t,value:a}=o;let l={indices:t,value:a};o.key&&(l.key=o.key.src),o.idx>-1&&(l.refIndex=o.idx),e.matches.push(l)})}function _a(n,e){e.score=n.score}function xa(n,e,{includeMatches:s=k.includeMatches,includeScore:o=k.includeScore}={}){const t=[];return s&&t.push(ba),o&&t.push(_a),n.map(a=>{const{idx:l}=a,i={item:e[l],refIndex:l};return t.length&&t.forEach(v=>{v(a,i)}),i})}class Ne{constructor(e,s={},o){this.options={...k,...s},this.options.useExtendedSearch,this._keyStore=new Gs(this.options.keys),this.setCollection(e,o)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof It))throw new Error(zs);this._myIndex=s||hn(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){le(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let o=0,t=this._docs.length;o<t;o+=1){const a=this._docs[o];e(a,o)&&(this.removeAt(o),o-=1,t-=1,s.push(a))}return s}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:s=-1}={}){const{includeMatches:o,includeScore:t,shouldSort:a,sortFn:l,ignoreFieldNorm:i}=this.options;let v=he(e)?he(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return ya(v,{ignoreFieldNorm:i}),a&&v.sort(l),cn(s)&&s>-1&&(v=v.slice(0,s)),xa(v,this._docs,{includeMatches:o,includeScore:t})}_searchStringList(e){const s=Et(e,this.options),{records:o}=this._myIndex,t=[];return o.forEach(({v:a,i:l,n:i})=>{if(!le(a))return;const{isMatch:v,score:d,indices:c}=s.searchIn(a);v&&t.push({item:a,idx:l,matches:[{score:d,value:a,norm:i,indices:c}]})}),t}_searchLogical(e){const s=yn(e,this.options),o=(i,v,d)=>{if(!i.children){const{keyId:m,searcher:h}=i,y=this._findMatches({key:this._keyStore.get(m),value:this._myIndex.getValueForItemAtKeyId(v,m),searcher:h});return y&&y.length?[{idx:d,item:v,matches:y}]:[]}const c=[];for(let m=0,h=i.children.length;m<h;m+=1){const y=i.children[m],_=o(y,v,d);if(_.length)c.push(..._);else if(i.operator===rt.AND)return[]}return c},t=this._myIndex.records,a={},l=[];return t.forEach(({$:i,i:v})=>{if(le(i)){let d=o(s,i,v);d.length&&(a[v]||(a[v]={idx:v,item:i,matches:[]},l.push(a[v])),d.forEach(({matches:c})=>{a[v].matches.push(...c)}))}}),l}_searchObjectList(e){const s=Et(e,this.options),{keys:o,records:t}=this._myIndex,a=[];return t.forEach(({$:l,i})=>{if(!le(l))return;let v=[];o.forEach((d,c)=>{v.push(...this._findMatches({key:d,value:l[c],searcher:s}))}),v.length&&a.push({idx:i,item:l,matches:v})}),a}_findMatches({key:e,value:s,searcher:o}){if(!le(s))return[];let t=[];if(Ae(s))s.forEach(({v:a,i:l,n:i})=>{if(!le(a))return;const{isMatch:v,score:d,indices:c}=o.searchIn(a);v&&t.push({score:d,key:e,value:a,idx:l,norm:i,indices:c})});else{const{v:a,n:l}=s,{isMatch:i,score:v,indices:d}=o.searchIn(a);i&&t.push({score:v,key:e,value:a,norm:l,indices:d})}return t}}Ne.version="7.1.0";Ne.createIndex=hn;Ne.parseIndex=ea;Ne.config=k;Ne.parseQuery=yn;pa(ha);const ka={class:"bg-main transform",shadow:"~",p:"x-4 y-2",border:"~ transparent rounded dark:main"},wa=["value","disabled"],Ca={table:"","w-full":"","border-collapse":""},Aa=["border","onClick"],Sa={"text-right":"",op50:"","text-sm":"","table-cell":"","py-2":"","pl-4":"","pr-3":"","vertical-middle":""},Ma=Q({__name:"Goto",setup(n){const e=Y(),s=Y(),o=Y(),t=Y(),a=Y(""),l=Y(0),{go:i,slides:v}=ce();function d(S){return S!=null}const c=R(()=>new Ne(v.value.map(S=>S.meta?.slide).filter(d),{keys:["no","title"],threshold:.3,shouldSort:!0,minMatchCharLength:1})),m=R(()=>a.value.startsWith("/")?a.value.substring(1):a.value),h=R(()=>c.value.search(m.value).map(S=>S.item)),y=R(()=>!!h.value.length);function _(){if(y.value){const S=h.value.at(l.value||0);S&&i(S.no)}A()}function A(){a.value="",Ee.value=!1}function f(S){S.preventDefault(),l.value++,l.value>=h.value.length&&(l.value=0),F()}function b(S){S.preventDefault(),l.value--,l.value<=-2&&(l.value=h.value.length-1),F()}function F(){const S=t.value?.[l.value];S&&o.value&&(S.offsetTop+S.offsetHeight>o.value.offsetHeight+o.value.scrollTop?o.value.scrollTo({behavior:"smooth",top:S.offsetTop+S.offsetHeight-o.value.offsetHeight+1}):S.offsetTop<o.value.scrollTop&&o.value.scrollTo({behavior:"smooth",top:S.offsetTop}))}function W(S){l.value=0,a.value=S.target.value}function J(S){i(S),A()}return We(Ee,async S=>{S?(a.value="",l.value=0,setTimeout(()=>s.value?.focus(),0)):s.value?.blur()}),We(je,()=>{e.value?.contains(je.value)||A()}),(S,ne)=>(u(),p("div",{id:"slidev-goto-dialog",ref_key:"container",ref:e,class:T(["fixed right-5 transition-all",r(Ee)?"top-5":"-top-20"]),"w-90":"","max-w-90":"","min-w-90":""},[g("div",ka,[g("input",{id:"slidev-goto-input",ref_key:"input",ref:s,value:a.value,type:"text",disabled:!r(Ee),class:T(["outline-none bg-transparent",{"text-red-400":!y.value&&a.value}]),placeholder:"Goto...",onKeydown:[Ye(_,["enter"]),Ye(A,["escape"]),Ye(f,["down"]),Ye(b,["up"])],onInput:W},null,42,wa)]),h.value.length>0?(u(),p("div",{key:0,ref_key:"list",ref:o,class:"autocomplete-list",shadow:"~",border:"~ transparent rounded dark:main"},[g("ul",Ca,[(u(!0),p(N,null,Ve(h.value,(x,H)=>(u(),p("li",{ref_for:!0,ref_key:"items",ref:t,key:x.id,role:"button",tabindex:"0","cursor-pointer":"",hover:"op100","table-row":"","items-center":"",border:H===0?void 0:"t main",class:T(l.value===H?"bg-active op100":"op80"),onClick:en(I=>J(x.no),["stop","prevent"])},[g("div",Sa,ee(x.no),1),E(r(Vs),{"table-cell":"","py-2":"","pr-4":"","w-full":"",no:x.no},null,8,["no"])],10,Aa))),128))])],512)):C("v-if",!0)],2))}}),Ro=ut(Ma,[["__scopeId","data-v-89cfdfc4"]]),Ea={render:()=>[]},$a={key:0,class:"bg-main text-main shadow-xl absolute bottom-10 left-0 z-menu py2",border:"~ main rounded-md"},bn=Q({__name:"MenuButton",props:{modelValue:{default:!1},disabled:{default:!1}},setup(n,{emit:e}){const t=tn(n,"modelValue",e,{passive:!0}),a=Y();return Zt(a,()=>{t.value=!1}),(l,i)=>(u(),p("div",{ref_key:"el",ref:a,class:"flex relative"},[g("button",{class:T({disabled:n.disabled}),onClick:i[0]||(i[0]=v=>t.value=!r(t))},[nt(l.$slots,"button",{class:T({disabled:n.disabled})})],2),(u(),D($n,null,[r(t)?(u(),p("div",$a,[nt(l.$slots,"menu")])):C("v-if",!0)],1024))],512))}}),Da={border:"~ main rounded",flex:"~ gap-2 items-center",relative:"","h-5":"","w-5":"","p0.5":"","hover:bg-active":"",p1:""},Ba=["disabled"],yt=Q({__name:"FormCheckbox",props:nn({disabled:{type:Boolean}},{modelValue:{type:Boolean,type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=sn(n,"modelValue");return(s,o)=>(u(),p("div",Da,[g("div",{"i-ri-check-line":"",class:T(e.value?"":"op0")},null,2),He(g("input",{"onUpdate:modelValue":o[0]||(o[0]=t=>e.value=t),type:"checkbox",absolute:"","inset-0":"","opacity-10":"",disabled:s.disabled},null,8,Ba),[[Dn,e.value]])]))}}),Fa={"w-30":"","h-8":"",flex:"~ gap-1 items-center"},Ra={key:0,"w-1.5":"","h-1.5":"","bg-primary":"",rounded:"",absolute:"","top-0":"","right--2":""},Ia={key:0,"w-1.5":"","h-1.5":"","bg-primary":"",rounded:"",absolute:"","top-0":"","right--2":""},Pa=["innerHTML"],we=Q({__name:"FormItem",props:{title:{},nested:{type:[Boolean,Number]},div:{type:Boolean},description:{},dot:{type:Boolean}},emits:["reset"],setup(n,{emit:e}){const s=e;function o(){s("reset")}return(t,a)=>(u(),D(Ie(t.div?"div":"label"),{flex:"~ row gap-2 items-center","select-none":""},{default:$(()=>[g("div",Fa,[t.nested?(u(),p("div",{key:0,"i-ri-corner-down-right-line":"",op40:"",style:Ce(typeof t.nested=="number"?{marginLeft:`${t.nested*.5+.5}rem`}:{marginLeft:"0.25rem"})},null,4)):C("v-if",!0),t.description?(u(),D(r(ls),{key:2,distance:"10"},{popper:$(()=>[g("div",{"text-sm":"","min-w-90":"",innerHTML:t.description},null,8,Pa)]),default:$(()=>[g("div",{op75:"","text-right":"",relative:"",onDblclick:o},[Pe(ee(t.title)+" ",1),t.dot?(u(),p("div",Ia)):C("v-if",!0)],32)]),_:1})):(u(),p("div",{key:1,op75:"",relative:"",onDblclick:o},[Pe(ee(t.title)+" ",1),t.dot?(u(),p("div",Ra)):C("v-if",!0)],32))]),nt(t.$slots,"default")]),_:3}))}}),Va={relative:"","h-22px":""},Na={key:0,"pointer-events-none":"",absolute:"","right-1":"","top-0.5":"","text-xs":"",op25:""},ze=Q({__name:"FormSlider",props:nn({max:{},min:{},step:{},unit:{},default:{}},{modelValue:{type:Number},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=n,s=sn(n,"modelValue");return(o,t)=>(u(),p(N,null,[g("div",{relative:"","h-22px":"","w-60":"","flex-auto":"",onDblclick:t[1]||(t[1]=a=>e.default!==void 0?s.value=e.default:null)},[He(g("input",xt({"onUpdate:modelValue":t[0]||(t[0]=a=>s.value=a),type:"range",class:"slider"},e,{absolute:"","bottom-0":"","left-0":"","right-0":"","top-0":"","z-10":"","w-full":"","align-top":""}),null,16),[[Vt,s.value,void 0,{number:!0}]]),e.default!=null?(u(),p("span",{key:0,border:"r main",absolute:"","bottom-0":"","top-0":"","h-full":"","w-1px":"",op75:"",style:Ce({left:`${(e.default-o.min)/(o.max-o.min)*100}%`})},null,4)):C("v-if",!0)],32),g("div",Va,[He(g("input",xt({"onUpdate:modelValue":t[2]||(t[2]=a=>s.value=a),type:"number"},e,{border:"~ main rounded",m0:"","w-20":"","bg-gray:5":"",pl2:"","align-top":"","text-sm":""}),null,16),[[Vt,s.value,void 0,{number:!0}]]),e.unit?(u(),p("span",Na,ee(e.unit),1)):C("v-if",!0)])],64))}}),Yt={error:0,client:60,Light:60,Dark:240};function Xt(n,e=1){if(Yt[n])return it(Yt[n],e);let s=0;for(let t=0;t<n.length;t++)s=n.charCodeAt(t)+((s<<5)-s);const o=s%360;return it(o,e)}function it(n,e=1){const s=n===-1?0:ot.value?50:100,o=ot.value?60:20;return`hsla(${n}, ${s}%, ${o}%, ${e})`}const Ta=["textContent"],La=Q({__name:"Badge",props:{text:{},color:{type:[Boolean,Number],default:!0},as:{},size:{}},setup(n){const e=n,s=R(()=>!e.text||e.color===!1?{}:{color:typeof e.color=="number"?it(e.color):Xt(e.text),background:typeof e.color=="number"?it(e.color,.1):Xt(e.text,.1)}),o=R(()=>{switch(e.size||"sm"){case"sm":return"px-1.5 text-11px leading-1.6em"}return""});return(t,a)=>(u(),D(Ie(t.as||"span"),{"ws-nowrap":"",rounded:"",class:T(o.value),style:Ce(s.value)},{default:$(()=>[nt(t.$slots,"default",{},()=>[g("span",{textContent:ee(e.text)},null,8,Ta)])]),_:3},8,["class","style"]))}}),Oa={flex:"~ gap-1 items-center",rounded:"","bg-gray:4":"",p1:"","m--1":""},za=Q({__name:"SegmentControl",props:{options:{},modelValue:{}},emits:["update:modelValue"],setup(n){return(e,s)=>(u(),p("div",Oa,[(u(!0),p(N,null,Ve(e.options,o=>(u(),D(La,{key:o.value,class:T(["px-2 py-1 text-xs font-mono",o.value===e.modelValue?"":"op50"]),color:o.value===e.modelValue,"aria-pressed":o.value===e.modelValue,size:"none",text:o.label,as:"button",onClick:t=>e.$emit("update:modelValue",o.value)},null,8,["class","color","aria-pressed","text","onClick"]))),128))]))}}),ja={"text-sm":"","select-none":"",flex:"~ col gap-1","min-w-30":"",px4:""},Wa=Q({__name:"Settings",setup(n){const{isPresenter:e}=ce(),{isSupported:s}=Jt();return(o,t)=>(u(),p("div",ja,[E(we,{title:"Invert",dot:r(P).invert!==r(K).invert,onReset:t[1]||(t[1]=a=>r(P).invert=r(K).invert)},{default:$(()=>[E(yt,{modelValue:r(P).invert,"onUpdate:modelValue":t[0]||(t[0]=a=>r(P).invert=a)},null,8,["modelValue"])]),_:1},8,["dot"]),E(we,{title:"Brightness",dot:r(P).brightness!==r(K).brightness,onReset:t[3]||(t[3]=a=>r(P).brightness=r(K).brightness)},{default:$(()=>[E(ze,{modelValue:r(P).brightness,"onUpdate:modelValue":t[2]||(t[2]=a=>r(P).brightness=a),max:1.5,min:.5,step:.02,default:r(K).brightness},null,8,["modelValue","default"])]),_:1},8,["dot"]),E(we,{title:"Contrast",dot:r(P).contrast!==r(K).contrast,onReset:t[5]||(t[5]=a=>r(P).contrast=r(K).contrast)},{default:$(()=>[E(ze,{modelValue:r(P).contrast,"onUpdate:modelValue":t[4]||(t[4]=a=>r(P).contrast=a),max:1.5,min:.5,step:.02,default:r(K).contrast},null,8,["modelValue","default"])]),_:1},8,["dot"]),E(we,{title:"Saturation",dot:r(P).saturate!==r(K).saturate,onReset:t[7]||(t[7]=a=>r(P).saturate=r(K).saturate)},{default:$(()=>[E(ze,{modelValue:r(P).saturate,"onUpdate:modelValue":t[6]||(t[6]=a=>r(P).saturate=a),max:1.5,min:.5,step:.02,default:r(K).saturate},null,8,["modelValue","default"])]),_:1},8,["dot"]),E(we,{title:"Sepia",dot:r(P).sepia!==r(K).sepia,onReset:t[9]||(t[9]=a=>r(P).sepia=r(K).sepia)},{default:$(()=>[E(ze,{modelValue:r(P).sepia,"onUpdate:modelValue":t[8]||(t[8]=a=>r(P).sepia=a),max:2,min:-2,step:.02,default:r(K).sepia},null,8,["modelValue","default"])]),_:1},8,["dot"]),E(we,{title:"Hue Rotate",dot:r(P).hueRotate!==r(K).hueRotate,onReset:t[11]||(t[11]=a=>r(P).hueRotate=r(K).hueRotate)},{default:$(()=>[E(ze,{modelValue:r(P).hueRotate,"onUpdate:modelValue":t[10]||(t[10]=a=>r(P).hueRotate=a),max:180,min:-180,step:.1,default:r(K).hueRotate},null,8,["modelValue","default"])]),_:1},8,["dot"]),t[15]||(t[15]=g("div",{class:"h-1px opacity-5 bg-current w-full my2"},null,-1)),r(e)?C("v-if",!0):(u(),D(we,{key:0,title:"Slide Scale"},{default:$(()=>[E(za,{modelValue:r(ft),"onUpdate:modelValue":t[12]||(t[12]=a=>dt(ft)?ft.value=a:null),options:[{label:"Fit",value:0},{label:"1:1",value:1}]},null,8,["modelValue"])]),_:1})),r(s)?(u(),D(we,{key:1,title:"Wake Lock"},{default:$(()=>[E(yt,{modelValue:r(qe),"onUpdate:modelValue":t[13]||(t[13]=a=>dt(qe)?qe.value=a:null)},null,8,["modelValue"])]),_:1})):C("v-if",!0),r(e)?C("v-if",!0):(u(),D(we,{key:2,title:"Hide Idle Cursor"},{default:$(()=>[E(yt,{modelValue:r(ht),"onUpdate:modelValue":t[14]||(t[14]=a=>dt(ht)?ht.value=a:null)},null,8,["modelValue"])]),_:1}))]))}}),Ha={class:"select-list"},Ka={class:"title"},Ga={class:"items"},Ua=["onClick"],Ya=Q({__name:"SelectList",props:{modelValue:{type:[Object,String,Number,Boolean]},title:{type:String},items:{type:Array}},setup(n,{emit:e}){const t=tn(n,"modelValue",e,{passive:!0});return(a,l)=>(u(),p("div",Ha,[g("div",Ka,ee(n.title),1),g("div",Ga,[(u(!0),p(N,null,Ve(n.items,i=>(u(),p("div",{key:i.value,class:T(["item",{active:r(t)===i.value}]),onClick:()=>{t.value=i.value,i.onClick?.()}},[g("div",{class:T(["i-carbon:checkmark text-green-500 mya",{"opacity-0":r(t)!==i.value}])},null,2),g("div",{class:T({"opacity-50":r(t)!==i.value})},ee(i.display||i.value),3)],10,Ua))),128))])]))}}),Xa=ut(Ya,[["__scopeId","data-v-c60a758c"]]),Qa={"text-sm":"",flex:"~ col gap-2"},Ja={px3:"","ws-nowrap":""},Za={"font-bold":"","text-primary":""},qa=Q({__name:"SyncControls",setup(n){const{isPresenter:e}=ce(),s=R({get:()=>e.value?Se.value.presenterReceive:Se.value.viewerReceive,set(a){e.value?Se.value.presenterReceive=a:Se.value.viewerReceive=a}}),o=R({get:()=>e.value?Se.value.presenterSend:Se.value.viewerSend,set(a){e.value?Se.value.presenterSend=a:Se.value.viewerSend=a}}),t=R({get:()=>s.value&&o.value?"bidirectional":s.value&&!o.value?"receive-only":!s.value&&o.value?"send-only":"off",set(a){switch(a){case"bidirectional":s.value=!0,o.value=!0;break;case"receive-only":s.value=!0,o.value=!1;break;case"send-only":s.value=!1,o.value=!0;break;case"off":s.value=!1,o.value=!1;break}}});return(a,l)=>(u(),D(bn,null,{button:$(()=>[E(U,{title:"Change sync settings"},{default:$(()=>[g("div",{class:T(["i-ph:arrow-up-bold mx--1.2 scale-x-80",o.value?"text-green6 dark:text-green":"op30"])},null,2),g("div",{class:T(["i-ph:arrow-down-bold mx--1.2 scale-x-80",s.value?"text-green6 dark:text-green":"op30"])},null,2)]),_:1})]),menu:$(()=>[g("div",Qa,[g("div",Ja,[l[1]||(l[1]=g("span",{op75:""},"Slides navigation syncing for ",-1)),g("span",Za,ee(r(e)?"presenter":"viewer"),1)]),l[2]||(l[2]=g("div",{class:"h-1px opacity-10 bg-current w-full"},null,-1)),E(Xa,{modelValue:t.value,"onUpdate:modelValue":l[0]||(l[0]=i=>t.value=i),title:"Sync Mode",items:[{value:"bidirectional",display:"Bidirectional Sync"},{value:"receive-only",display:"Receive Only"},{value:"send-only",display:"Send Only"},{value:"off",display:"Disable"}]},null,8,["modelValue"])])]),_:1}))}}),eo={key:0,class:"i-carbon:minimize"},to={key:1,class:"i-carbon:maximize"},no={key:0,"w-2":"","h-2":"","bg-primary":"","rounded-full":"",absolute:"","top-0.5":"","right-0.5":""},so={class:"h-40px flex",p:"l-1 t-0.5 r-2",text:"sm leading-2"},ao={class:"my-auto"},oo={class:"opacity-50"},Io=Q({__name:"NavControls",props:{persist:{default:!1}},setup(n){const e=n,{currentSlideNo:s,hasNext:o,hasPrev:t,isEmbedded:a,isPresenter:l,isPresenterAvailable:i,next:v,prev:d,total:c,enterPresenter:m,exitPresenter:h}=ce(),{brush:y,drawingEnabled:_}=ct(),A=kt.smaller("md"),{isFullscreen:f,toggle:b}=Ft,F=Y();function W(){F.value&&je.value&&F.value.contains(je.value)&&je.value.blur()}const J=R(()=>e.persist?"text-$slidev-controls-foreground bg-transparent":"rounded-md bg-main shadow-xl border border-main"),S=Bt();return(ne,x)=>{const H=ns,I=ss,O=as,de=os;return u(),p("nav",{ref_key:"root",ref:F,class:"flex flex-col"},[g("div",{class:T(["flex flex-wrap-reverse text-xl gap-0.5 p-1 lg:p-2",J.value]),onMouseleave:W},[r(a)?C("v-if",!0):(u(),D(U,{key:0,title:r(f)?"Close fullscreen":"Enter fullscreen",onClick:r(b)},{default:$(()=>[r(f)?(u(),p("div",eo)):(u(),p("div",to))]),_:1},8,["title","onClick"])),E(U,{class:T({disabled:!r(t)}),title:"Go to previous slide",onClick:r(d)},{default:$(()=>x[6]||(x[6]=[g("div",{class:"i-carbon:arrow-left"},null,-1)])),_:1,__:[6]},8,["class","onClick"]),E(U,{class:T({disabled:!r(o)}),title:"Go to next slide",onClick:r(v)},{default:$(()=>x[7]||(x[7]=[g("div",{class:"i-carbon:arrow-right"},null,-1)])),_:1,__:[7]},8,["class","onClick"]),r(a)?C("v-if",!0):(u(),D(U,{key:1,title:"Show slide overview",onClick:x[0]||(x[0]=se=>r(at)())},{default:$(()=>x[8]||(x[8]=[g("div",{class:"i-carbon:apps"},null,-1)])),_:1,__:[8]})),r(Tn)?C("v-if",!0):(u(),D(U,{key:2,title:r(ot)?"Switch to light mode theme":"Switch to dark mode theme",onClick:x[1]||(x[1]=se=>r(wt)())},{default:$(()=>[r(ot)?(u(),D(H,{key:0})):(u(),D(I,{key:1}))]),_:1},8,["title"])),E(Oe),r(a)?C("v-if",!0):(u(),p(N,{key:3},[!r(l)&&!r(A)&&S.value?(u(),p(N,{key:0},[E(r(S)),E(Oe)],64)):C("v-if",!0),r(l)?(u(),D(U,{key:1,title:r(Qe)?"Hide presenter cursor":"Show presenter cursor",onClick:x[2]||(x[2]=se=>Qe.value=!r(Qe))},{default:$(()=>[r(Qe)?(u(),D(O,{key:0})):(u(),D(de,{key:1}))]),_:1},8,["title"])):C("v-if",!0)],64)),(!r($e).drawings.presenterOnly||r(l))&&!r(a)?(u(),p(N,{key:4},[E(U,{class:"relative",title:r(_)?"Hide drawing toolbar":"Show drawing toolbar",onClick:x[3]||(x[3]=se=>_.value=!r(_))},{default:$(()=>[x[9]||(x[9]=g("div",{class:"i-carbon:pen"},null,-1)),r(_)?(u(),p("div",{key:0,class:"absolute left-1 right-1 bottom-0 h-0.7 rounded-full",style:Ce({background:r(y).color})},null,4)):C("v-if",!0)]),_:1,__:[9]},8,["title"]),E(Oe)],64)):C("v-if",!0),r(a)?C("v-if",!0):(u(),p(N,{key:5},[r(l)?(u(),D(U,{key:0,title:"Play Mode",onClick:r(h)},{default:$(()=>x[10]||(x[10]=[g("div",{class:"i-carbon:presentation-file"},null,-1)])),_:1,__:[10]},8,["onClick"])):C("v-if",!0),r(i)?(u(),D(U,{key:1,title:"Presenter Mode",onClick:r(m)},{default:$(()=>x[11]||(x[11]=[g("div",{class:"i-carbon:user-speaker"},null,-1)])),_:1,__:[11]},8,["onClick"])):C("v-if",!0),C("v-if",!0)],64)),(u(),p(N,{key:6},[r($e).download?(u(),D(U,{key:0,title:"Download as PDF",onClick:r(on)},{default:$(()=>x[13]||(x[13]=[g("div",{class:"i-carbon:download"},null,-1)])),_:1,__:[13]},8,["onClick"])):C("v-if",!0)],64)),C("v-if",!0),!r(l)&&r($e).info&&!r(a)?(u(),D(U,{key:8,title:"Show info",onClick:x[5]||(x[5]=se=>Nt.value=!r(Nt))},{default:$(()=>x[15]||(x[15]=[g("div",{class:"i-carbon:information"},null,-1)])),_:1,__:[15]})):C("v-if",!0),r(a)?C("v-if",!0):(u(),p(N,{key:9},[E(Oe),r(l)?(u(),D(U,{key:0,title:"Toggle Presenter Layout",class:"aspect-ratio-initial flex items-center",onClick:r(Ln)},{default:$(()=>[x[16]||(x[16]=g("div",{class:"i-carbon:template"},null,-1)),Pe(" "+ee(r(On)),1)]),_:1,__:[16]},8,["onClick"])):C("v-if",!0),(u(),D(qa,{key:1})),E(bn,null,{button:$(()=>[E(U,{title:"More Options"},{default:$(()=>[x[17]||(x[17]=g("div",{class:"i-carbon:settings-adjust"},null,-1)),r(zn)?(u(),p("div",no)):C("v-if",!0)]),_:1,__:[17]})]),menu:$(()=>[E(Wa)]),_:1})],64)),r(a)?C("v-if",!0):(u(),D(Oe,{key:10})),g("div",so,[g("div",ao,[Pe(ee(r(s))+" ",1),g("span",oo,"/ "+ee(r(c)),1)])]),E(r(Ea))],34)],512)}}}),et=Y(1),tt=R(()=>jn.value.length),X=Y(0),Pt=Y(0);function lo(){X.value>et.value&&(X.value-=1)}function ro(){X.value<tt.value&&(X.value+=1)}function io(){if(X.value>et.value){let n=X.value-Pt.value;n<et.value&&(n=et.value),X.value=n}}function uo(){if(X.value<tt.value){let n=X.value+Pt.value;n>tt.value&&(n=tt.value),X.value=n}}const co=["onClick"],vo={class:"text-green font-bold"},fo={class:"opacity-50"},ho={key:1,class:"opacity-50"},po={class:"fixed top-4 right-4 z-modal text-gray-400 flex flex-col items-center gap-2"},bt=128,Qt=32,Po=Q({__name:"QuickOverview",setup(n){const e=ce(),{currentSlideNo:s,go:o,slides:t}=e;function a(){oe.value=!1}function l(y){o(y),a()}function i(y){return y===X.value}const v=kt.smaller("xs"),d=kt.smaller("sm"),c=R(()=>v.value?Fe.width.value-bt:d.value?(Fe.width.value-bt-Qt)/2:300),m=R(()=>Math.floor((Fe.width.value-bt)/(c.value+Qt))),h=Y("");return qt("keypress",y=>{if(!oe.value){h.value="";return}if(y.key==="Enter"){y.preventDefault(),h.value?(l(+h.value),h.value=""):l(X.value);return}const _=Number.parseInt(y.key.replace(/\D/g,""));if(Number.isNaN(_)){h.value="";return}if(!h.value&&_===0)return;if(h.value+=String(_),+h.value>=t.value.length){h.value="";return}const A=t.value.findIndex(f=>`/${f.no}`===h.value);A!==-1&&(X.value=A+1),+h.value*10>t.value.length&&(l(+h.value),h.value="")}),st(()=>{X.value=s.value,Pt.value=m.value}),(y,_)=>(u(),p(N,null,[E(Bn,{"enter-active-class":"duration-150 ease-out","enter-from-class":"opacity-0 scale-102 !backdrop-blur-0px","leave-active-class":"duration-200 ease-in","leave-to-class":"opacity-0 scale-102 !backdrop-blur-0px"},{default:$(()=>[r(oe)?(u(),p("div",{key:0,class:"fixed left-0 right-0 top-0 h-[calc(var(--vh,1vh)*100)] z-modal bg-main !bg-opacity-75 p-16 py-20 overflow-y-auto backdrop-blur-5px select-none",onClick:a},[g("div",{class:"grid gap-y-4 gap-x-8 w-full",style:Ce(`grid-template-columns: repeat(auto-fit,minmax(${c.value}px,1fr))`)},[(u(!0),p(N,null,Ve(r(t),(A,f)=>(u(),p("div",{key:A.no,class:"relative"},[g("div",{class:T(["inline-block border rounded overflow-hidden bg-main hover:border-primary transition",i(f+1)||r(X)===f+1?"border-primary":"border-main"]),onClick:b=>l(A.no)},[(u(),D(Jn,{key:A.no,no:A.no,"use-snapshot":!0,width:c.value,class:"pointer-events-none"},{default:$(()=>[E(un,{"clicks-context":r(ln)(A,r(rn)),route:A,"render-context":"overview"},null,8,["clicks-context","route"]),E(Zn,{page:A.no},null,8,["page"])]),_:2},1032,["no","width"]))],10,co),g("div",{class:"absolute top-0",style:Ce(`left: ${c.value+5}px`)},[h.value&&String(f+1).startsWith(h.value)?(u(),p(N,{key:0},[g("span",vo,ee(h.value),1),g("span",fo,ee(String(f+1).slice(h.value.length)),1)],64)):(u(),p("span",ho,ee(f+1),1))],4)]))),128))],4)])):C("v-if",!0)]),_:1}),He(g("div",po,[E(U,{title:"Close",class:"text-2xl",onClick:a},{default:$(()=>_[0]||(_[0]=[g("div",{class:"i-carbon:close"},null,-1)])),_:1,__:[0]}),(u(),D(U,{key:0,as:"a",title:"Slides Overview",target:"_blank",href:`${r(Wn)}overview`,"tab-index":"-1",class:"text-2xl"},{default:$(()=>_[1]||(_[1]=[g("div",{class:"i-carbon:list-boxes"},null,-1)])),_:1,__:[1]},8,["href"])),C("v-if",!0)],512),[[an,r(oe)]])],64))}});function mo(){const n=Fn(),e=Y(!1);let s,o;const t=typeof document<"u"&&"startViewTransition"in document;return n.beforeResolve((a,l)=>{const i=Tt(l.params.no)?.meta,v=Tt(a.params.no)?.meta,d=i?.slide?.no,c=v?.slide?.no;if((d!=null&&c!=null&&d!==c&&((d<c?i?.transition:v?.transition)??$e.transition))!=="view-transition"){e.value=!1;return}if(!t){e.value=!1,console.warn("View transition is not supported in your browser, fallback to normal transition.");return}e.value=!0;const h=new Promise((A,f)=>{s=A,o=f});let y;const _=new Promise(A=>y=A);return setTimeout(()=>{document.startViewTransition(()=>(y(),h))},50),_}),t&&n.afterEach(()=>{s?.(),o?.()}),e}const go=["data-drag-id"],ue=10,Me=10,_t="absolute border border-gray bg-gray dark:border-gray-500 dark:bg-gray-800 bg-opacity-30 ",Ze=20,yo=Q({__name:"DragControl",props:{data:{}},setup(n){const{dragId:e,zoom:s,autoHeight:o,x0:t,y0:a,width:l,height:i,rotate:v,isArrow:d}=n.data,c=Rn(Hn,Y(1)),m=R(()=>c.value*s.value),{left:h,top:y}=Kn(),_=d?Number.NEGATIVE_INFINITY:40,A=R(()=>v.value*Math.PI/180),f=R(()=>Math.sin(A.value)),b=R(()=>Math.cos(A.value)),F=R(()=>l.value*b.value+i.value*f.value),W=R(()=>l.value*f.value+i.value*b.value),J=R(()=>t.value-F.value/2),S=R(()=>a.value-W.value/2),ne=R(()=>t.value+F.value/2),x=R(()=>a.value+W.value/2),H=R(()=>d&&l.value<0),I=R(()=>d&&i.value<0);let O=null;function de(w){if(w.buttons!==1)return;w.preventDefault(),w.stopPropagation();const V=w.target.getBoundingClientRect(),M=l.value*b.value-i.value*f.value,B=l.value*f.value+i.value*b.value,Z=l.value*b.value+i.value*f.value,re=-l.value*f.value+i.value*b.value;O={x0:t.value,y0:a.value,width:l.value,height:i.value,rotate:v.value,dx0:w.clientX-(V.left+V.right)/2,dy0:w.clientY-(V.top+V.bottom)/2,ltx:t.value-M/2,lty:a.value-B/2,rtx:t.value+Z/2,rty:a.value-re/2,lbx:t.value-Z/2,lby:a.value+re/2,rbx:t.value+M/2,rby:a.value+B/2},w.currentTarget.setPointerCapture(w.pointerId)}function se(w){if(!O||w.buttons!==1)return;w.preventDefault(),w.stopPropagation();const L=(w.clientX-h.value-O.dx0)/m.value,V=(w.clientY-y.value-O.dy0)/m.value;t.value=zt(L,-F.value/2+Me,Lt.value+F.value/2-Me),a.value=zt(V,-W.value/2+Me,Ot.value+W.value/2-Me)}function Te(w){O&&(w.preventDefault(),w.stopPropagation(),O=null)}function G(w,L){return{onPointerdown:de,onPointermove:V=>{if(!O||V.buttons!==1)return;V.preventDefault(),V.stopPropagation();let M=(V.clientX-h.value)/m.value,B=(V.clientY-y.value)/m.value;const{ltx:Z,lty:re,rtx:me,rty:ge,lbx:ye,lby:be,rbx:_e,rby:j}=O,q=O.width/O.height,Cn=Math.max(_,_*q);function Ue(ve,fe){if(V.shiftKey){const te=Math.max(ve,fe*q,Cn),ae=te/q;return{w:te,h:ae}}else return{w:Math.max(ve,_),h:Math.max(fe,_)}}if(w)if(L){const ve=(_e-M)*b.value+(j-B)*f.value,fe=-(_e-M)*f.value+(j-B)*b.value,{w:te,h:ae}=Ue(ve,fe);M=_e-te*b.value+ae*f.value,B=j-te*f.value-ae*b.value}else{const ve=(me-M)*b.value-(B-ge)*f.value,fe=(me-M)*f.value+(B-ge)*b.value,{w:te,h:ae}=Ue(ve,fe);M=me-te*b.value-ae*f.value,B=ge-te*f.value+ae*b.value}else if(L){const ve=(M-ye)*b.value-(be-B)*f.value,fe=(M-ye)*f.value+(be-B)*b.value,{w:te,h:ae}=Ue(ve,fe);M=ye+te*b.value+ae*f.value,B=be+te*f.value-ae*b.value}else{const ve=(M-Z)*b.value+(B-re)*f.value,fe=-(M-Z)*f.value+(B-re)*b.value,{w:te,h:ae}=Ue(ve,fe);M=Z+te*b.value-ae*f.value,B=re+te*f.value+ae*b.value}w?L?(t.value=(M+_e)/2,a.value=(B+j)/2,l.value=(_e-M)*b.value+(j-B)*f.value,i.value=-(_e-M)*f.value+(j-B)*b.value):(t.value=(M+me)/2,a.value=(B+ge)/2,l.value=(me-M)*b.value-(B-ge)*f.value,i.value=(me-M)*f.value+(B-ge)*b.value):L?(t.value=(M+ye)/2,a.value=(B+be)/2,l.value=(M-ye)*b.value-(be-B)*f.value,i.value=(M-ye)*f.value+(be-B)*b.value):(t.value=(M+Z)/2,a.value=(B+re)/2,l.value=(M-Z)*b.value+(B-re)*f.value,i.value=-(M-Z)*f.value+(B-re)*b.value)},onPointerup:Te,style:{width:`${ue}px`,height:`${ue}px`,margin:`-${ue/2}px`,left:w!==H.value?"0":void 0,right:w!==H.value?void 0:"0",top:L!==I.value?"0":void 0,bottom:L!==I.value?void 0:"0",cursor:d?"move":+w+ +L==1?"nesw-resize":"nwse-resize",borderRadius:d?"50%":void 0},class:_t}}function pe(w){return{onPointerdown:de,onPointermove:L=>{if(!O||L.buttons!==1)return;L.preventDefault(),L.stopPropagation();const V=(L.clientX-h.value)/m.value,M=(L.clientY-y.value)/m.value,{ltx:B,lty:Z,rtx:re,rty:me,lbx:ge,lby:ye,rbx:be,rby:_e}=O;if(w==="l"){const j=(re+be)/2,q=(me+_e)/2;l.value=Math.max((j-V)*b.value+(q-M)*f.value,_),t.value=j-l.value*b.value/2,a.value=q-l.value*f.value/2}else if(w==="r"){const j=(B+ge)/2,q=(Z+ye)/2;l.value=Math.max((V-j)*b.value+(M-q)*f.value,_),t.value=j+l.value*b.value/2,a.value=q+l.value*f.value/2}else if(w==="t"){const j=(ge+be)/2,q=(ye+_e)/2;i.value=Math.max((q-M)*b.value-(j-V)*f.value,_),t.value=j+i.value*f.value/2,a.value=q-i.value*b.value/2}else if(w==="b"){const j=(B+re)/2,q=(Z+me)/2;i.value=Math.max((M-q)*b.value-(V-j)*f.value,_),t.value=j-i.value*f.value/2,a.value=q+i.value*b.value/2}},onPointerup:Te,style:{width:`${ue}px`,height:`${ue}px`,margin:`-${ue/2}px`,left:w==="l"?"0":w==="r"?"100%":"50%",top:w==="t"?"0":w==="b"?"100%":"50%",cursor:"lr".includes(w)?"ew-resize":"ns-resize",borderRadius:"50%"},class:_t}}function Ke(){return{onPointerdown:de,onPointermove:w=>{if(!O||w.buttons!==1)return;w.preventDefault(),w.stopPropagation();const L=(w.clientX-h.value-O.dx0)/m.value-ue/4,V=(w.clientY-y.value-O.dy0)/m.value-ue/4;let M=Math.atan2(V-a.value,L-t.value)*180/Math.PI+90;const B=[0,90,180,270,360];for(const Z of B)if(Math.abs(M-Z)<5){M=Z%360;break}v.value=M},onPointerup:Te,style:{width:`${ue}px`,height:`${ue}px`,margin:`-${ue/2}px`,left:"50%",top:"-20px",cursor:"grab",borderRadius:"50%"},class:_t}}const Ge={immediate:!1,immediateCallback:!1},_n=Xe(()=>{ne.value<=Me||t.value--},Ze,Ge),xn=Xe(()=>{J.value>=Lt.value-Me||t.value++},Ze,Ge),kn=Xe(()=>{x.value<=Me||a.value--},Ze,Ge),wn=Xe(()=>{S.value>=Ot.value-Me||a.value++},Ze,Ge);return st(()=>{function w(L,V){Rt[L].value?V.resume():V.pause()}w("left",_n),w("right",xn),w("up",kn),w("down",wn)}),(w,L)=>Number.isFinite(r(t))?(u(),p("div",{key:0,id:"drag-control-container","data-drag-id":r(e),style:Ce({position:"absolute",zIndex:100,left:`${r(s)*(r(t)-Math.abs(r(l))/2)}px`,top:`${r(s)*(r(a)-Math.abs(r(i))/2)}px`,width:`${r(s)*Math.abs(r(l))}px`,height:`${r(s)*Math.abs(r(i))}px`,transformOrigin:"center center",transform:`rotate(${r(v)}deg)`}),onPointerdown:de,onPointermove:se,onPointerup:Te},[g("div",{class:T(["absolute inset-0 z-nav dark:b-gray-400",r(d)?"":"b b-dark"])},[r(o)?C("v-if",!0):(u(),p(N,{key:0},[g("div",xe(ke(G(!0,!0))),null,16),g("div",xe(ke(G(!1,!1))),null,16),r(d)?C("v-if",!0):(u(),p(N,{key:0},[g("div",xe(ke(G(!0,!1))),null,16),g("div",xe(ke(G(!1,!0))),null,16)],64))],64)),r(d)?C("v-if",!0):(u(),p(N,{key:1},[g("div",xe(ke(pe("l"))),null,16),g("div",xe(ke(pe("r"))),null,16),r(o)?C("v-if",!0):(u(),p(N,{key:0},[g("div",xe(ke(pe("t"))),null,16),g("div",xe(ke(pe("b"))),null,16)],64)),g("div",xe(ke(Ke())),null,16),g("div",{class:"absolute -top-15px w-0 b b-dashed b-dark dark:b-gray-400",style:Ce({left:"calc(50% - 1px)",height:r(o)?"14px":"10px"})},null,4)],64))],2)],44,go)):C("v-if",!0)}}),bo=Q({__name:"SlidesShow",props:{renderContext:{}},setup(n){const{currentSlideRoute:e,currentTransition:s,getPrimaryClicks:o,prevRoute:t,nextRoute:a,slides:l,isPrintMode:i,isPrintWithClicks:v,clicksDirection:d,printRange:c}=ce();function m(f){f.meta.preload!==!1&&(f.meta.__preloaded=!0,f.load())}st(()=>{m(e.value),m(t.value),m(a.value)}),st(f=>{const b=l.value,F=setTimeout(()=>{b.forEach(m)},3e3);f(()=>clearTimeout(F))});const h=mo(),y=Bt();Gn(()=>import("./DrawingLayer-D6iEt8Ny.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])).then(f=>y.value=f.default);const _=R(()=>i.value?c.value.map(f=>l.value[f-1]):l.value.filter(f=>f.meta?.__preloaded||f===e.value));function A(){pt.value=!0,rs()}return(f,b)=>(u(),p(N,null,[C(" Global Bottom "),E(r(qn)),C(" Slides "),(u(),D(Ie(r(h)&&!r(i)&&!r(pt)&&!r(jt)?"div":In),xt(r(pt)||r(jt)||r(i)?{}:r(s),{id:"slideshow",tag:"div",class:{"slidev-nav-go-forward":r(d)>0,"slidev-nav-go-backward":r(d)<0},onAfterLeave:A}),{default:$(()=>[(u(!0),p(N,null,Ve(_.value,F=>He((u(),D(un,{key:F.no,"clicks-context":r(i)&&!r(v)?r(ln)(F,r(rn)):r(o)(F),route:F,"render-context":f.renderContext},null,8,["clicks-context","route","render-context"])),[[an,F===r(e)]])),128))]),_:1},16,["class"])),r(Ct)?(u(),D(yo,{key:0,data:r(Ct)},null,8,["data"])):C("v-if",!0),C(" Global Top "),E(r(es)),y.value?(u(),D(r(y),{key:1})):C("v-if",!0)],64))}}),Vo=ut(bo,[["__scopeId","data-v-af867013"]]),_o=[];function xo(){const{go:n,goFirst:e,goLast:s,next:o,nextSlide:t,prev:a,prevSlide:l}=ce(),{drawingEnabled:i}=ct(),{escape:v,space:d,shift:c,left:m,right:h,up:y,down:_,enter:A,d:f,g:b,o:F,"`":W}=Rt,J={next:o,prev:a,nextSlide:t,prevSlide:l,go:n,goFirst:e,goLast:s,downloadPDF:on,toggleDark:wt,toggleOverview:at,toggleDrawing:()=>i.value=!i.value,escapeOverview:()=>oe.value=!1,showGotoDialog:()=>Ee.value=!Ee.value},S=z(ie(oe),ie(Ct));let ne=[{name:"next_space",key:z(d,ie(c)),fn:o,autoRepeat:!0},{name:"prev_space",key:z(d,c),fn:a,autoRepeat:!0},{name:"next_right",key:z(h,ie(c),S),fn:o,autoRepeat:!0},{name:"prev_left",key:z(m,ie(c),S),fn:a,autoRepeat:!0},{name:"next_page_key",key:"pageDown",fn:o,autoRepeat:!0},{name:"prev_page_key",key:"pageUp",fn:a,autoRepeat:!0},{name:"next_down",key:z(_,S),fn:t,autoRepeat:!0},{name:"prev_up",key:z(y,S),fn:l,autoRepeat:!0},{name:"next_shift",key:z(h,c),fn:t,autoRepeat:!0},{name:"prev_shift",key:z(m,c),fn:l,autoRepeat:!0},{name:"toggle_dark",key:z(f,ie(i)),fn:wt},{name:"toggle_overview",key:z(Pn(F,W),ie(i)),fn:at},{name:"hide_overview",key:z(v,ie(i)),fn:()=>oe.value=!1},{name:"goto",key:z(b,ie(i)),fn:()=>Ee.value=!Ee.value},{name:"next_overview",key:z(h,oe),fn:ro},{name:"prev_overview",key:z(m,oe),fn:lo},{name:"up_overview",key:z(y,oe),fn:io},{name:"down_overview",key:z(_,oe),fn:uo},{name:"goto_from_overview",key:z(A,oe),fn:()=>{n(X.value),oe.value=!1}}];const x=new Set(ne.map(I=>I.name));for(const I of _o)ne=I(J,ne);if(ne.filter(I=>I.name&&x.has(I.name)).length===0){const I=["========== WARNING ==========","defineShortcutsSetup did not return any of the base shortcuts.","See https://sli.dev/custom/config-shortcuts.html for migration.",'If it is intentional, return at least one shortcut with one of the base names (e.g. name:"goto").'].join(`
`);alert(I),console.warn(I)}return ne}function No(){const{isPrintMode:n}=ce(),e=z(ie(Xn),ie(Yn),ie(n),Un),s=xo();new Map(s.map(l=>[l.key,l])).forEach(l=>{l.fn&&t(l.key,l.fn,l.autoRepeat)}),a("f",()=>Ft.toggle());function t(l,i,v=!1){typeof l=="string"&&(l=Rt[l]);const d=z(l,e);let c=0,m;const h=()=>{if(clearTimeout(m),!d.value){c=0;return}v&&(m=setTimeout(h,Math.max(1e3-c*250,150)),c++),i()};return We(d,h,{flush:"sync"})}function a(l,i){return Vn(l,v=>{e.value&&(v.repeat||i())})}}export{Ro as G,Vo as S,Oe as V,za as _,Do as a,Io as b,Po as c,Fo as d,Bo as o,No as r,$o as u};