5 lines
55 KiB
JavaScript
5 lines
55 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/slidev/DrawingLayer-CsPE4CHx.js","assets/modules/vue-B5Z8nqrj.js","assets/slidev/SlideWrapper-C3uJZr2r.js","assets/index-Dvzj8oI6.js","assets/modules/shiki-CcvRnmUC.js","assets/modules/shiki-CozCpemh.css","assets/index-BziE1gJW.css","assets/SlideWrapper-DqjhgBiS.css","assets/slidev/context-BnSEiytE.js"])))=>i.map(i=>d[i]);
|
|
import{r as Y,ar as An,as as Mn,K as We,at as Jt,z as R,Q as Bt,d as Q,a7 as Zt,ao as qt,a6 as Sn,f as g,i as C,T as r,o as v,au as en,k as Ce,F as N,aj as Ve,n as T,b as D,av as Ie,g as m,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 we,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 Me,M as wt,i as Tn,t as kt,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-Dvzj8oI6.js";import{c as ct,u as Qn,a as Jn,S as un,_ as Zn,G as qn,d as es}from"./SlideWrapper-C3uJZr2r.js";import{u as ts}from"./context-BnSEiytE.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 wo(n){const{next:e,nextSlide:s,prev:o,prevSlide:t}=ce(),{isDrawing:a}=ct(),l=Y(0),{direction:i,distanceX:d,distanceY:c}=An(n,{pointerTypes:["touch"],onSwipeStart(){a.value||(l.value=Mn())},onSwipeEnd(){if(!l.value||a.value)return;const u=Math.abs(d.value),p=Math.abs(c.value);u/window.innerWidth>.3||u>75?i.value==="left"?e():o():(p/window.innerHeight>.4||p>200)&&(i.value==="down"?t():s())}})}function ko(){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:d,enterPresenter:c,exitPresenter:u,isEmbedded:p,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},d.value&&{icon:"i-carbon:presentation-file",label:"Exit Presenter Mode",action:u},h.value&&{icon:"i-carbon:user-speaker",label:"Enter Presenter Mode",action:c},!p.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 Co(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!"},Ao=Q({__name:"ContextMenu",setup(n){const e=Y();Zt(e,Le),qt(document,"mousedown",d=>{d.buttons&2&&Le()},{passive:!0,capture:!0});const s=R(()=>$e.contextMenu!=null),o=En();We(o,d=>{d||Le()}),Qn(1);const{width:t,height:a}=Sn(e),l=R(()=>{const d=Re.value?.x;return d?d+t.value>Fe.width.value?Fe.width.value-t.value:d:0}),i=R(()=>{const d=Re.value?.y;return d?d+a.value>Fe.height.value?Fe.height.value-a.value:d:0});return(d,c)=>r(Re)?(v(),g("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:c[1]||(c[1]=en(()=>{},["prevent"])),onClick:c[2]||(c[2]=(...u)=>r(Le)&&r(Le)(...u))},[(v(!0),g(N,null,Ve(r(Re).items.value,(u,p)=>(v(),g(N,{key:p},[u==="separator"?(v(),g("div",{key:p,class:"w-full my1 border-t border-main"})):u.small?(v(),g("div",{key:1,class:T(["p-2 w-[40px] h-[40px] inline-block text-center cursor-pointer rounded flex",u.disabled?"op40":"hover:bg-active"]),title:u.label,onClick:u.action},[typeof u.icon=="string"?(v(),g("div",{key:0,class:T([u.icon,"text-1.2em ma"])},null,2)):(v(),D(Ie(u.icon),{key:1}))],10,ds)):(v(),g("div",{key:2,class:T(["w-full grid grid-cols-[35px_1fr] p-2 pl-0 cursor-pointer rounded",u.disabled?"op40":"hover:bg-active"]),onClick:u.action},[m("div",fs,[typeof u.icon=="string"?(v(),g("div",{key:0,class:T([u.icon,"text-1.2em ma"])},null,2)):(v(),D(Ie(u.icon),{key:1}))]),typeof u.label=="string"?(v(),g("div",hs,ee(u.label),1)):(v(),D(Ie(u.label),{key:1}))],10,vs))],64))),128)),s.value?C("v-if",!0):(v(),g(N,{key:0},[c[6]||(c[6]=m("div",{class:"w-full my1 border-t border-main"},null,-1)),m("div",ps,[m("div",ms,[c[3]||(c[3]=Pe(" Hold ",-1)),c[4]||(c[4]=m("kbd",{class:"border px1 py0.5 border-main rounded text-primary"},"Shift",-1)),c[5]||(c[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 v(),g("div",ys)}const Oe=ut(gs,[["render",bs]]),_s={key:0},xs={key:1},ws={key:2},ks={key:3},Cs={key:4},As={key:5},Ms={key:6},Ss={key:7},Es={key:8},$s=Q({__name:"title-renderer",props:{no:{}},setup(n){const e=n,{$page:s}=ts(),o=R(()=>+(e.no??s.value));return(t,a)=>(v(),g("div",null,[o.value===1?(v(),g("p",_s,"Deno")):o.value===2?(v(),g("p",xs,"What is Deno?")):o.value===3?(v(),g("p",ws,"Features")):o.value===4?(v(),g("p",ks,"Install Deno")):o.value===5?(v(),g("p",Cs,"Docker")):o.value===6?(v(),g("p",As,"Deno Toolchain")):o.value===7?(v(),g("p",Ms,"undefined")):o.value===8?(v(),g("p",Ss,"Running a project")):o.value===9?(v(),g("p",Es,"undefined")):C("v-if",!0)]))}});function Ae(n){return Array.isArray?Array.isArray(n):vn(n)==="[object Array]"}function Ds(n){if(typeof n=="string")return n;let e=n+"";return e=="0"&&1/n==-1/0?"-0":e}function Bs(n){return n==null?"":Ds(n)}function he(n){return typeof n=="string"}function cn(n){return typeof n=="number"}function Fs(n){return n===!0||n===!1||Rs(n)&&vn(n)=="[object Boolean]"}function dn(n){return typeof n=="object"}function Rs(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 Is="Incorrect 'index' type",Ps=n=>`Invalid value for key ${n}`,Vs=n=>`Pattern length exceeds max of ${n}.`,Ns=n=>`Missing ${n} property in key`,Ts=n=>`Property 'weight' in key '${n}' must be a positive integer`,Wt=Object.prototype.hasOwnProperty;class Ls{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(Ns("name"));const l=n.name;if(o=l,Wt.call(n,"weight")&&(t=n.weight,t<=0))throw new Error(Ts(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 Os(n,e){let s=[],o=!1;const t=(a,l,i)=>{if(le(a))if(!l[i])s.push(a);else{let d=l[i];const c=a[d];if(!le(c))return;if(i===l.length-1&&(he(c)||cn(c)||Fs(c)))s.push(Bs(c));else if(Ae(c)){o=!0;for(let u=0,p=c.length;u<p;u+=1)t(c[u],l,i+1)}else l.length&&t(c,l,i+1)}};return t(n,he(e)?e.split("."):e,0),o?s:s[0]}const zs={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},js={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},Ws={location:0,threshold:.6,distance:100},Hs={useExtendedSearch:!1,getFn:Os,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var w={...js,...zs,...Ws,...Hs};const Ks=/[^ ]+/g;function Gs(n=1,e=3){const s=new Map,o=Math.pow(10,e);return{get(t){const a=t.match(Ks).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=w.getFn,fieldNormWeight:s=w.fieldNormWeight}={}){this.norm=Gs(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 d=[{nestedArrIndex:-1,value:l}];for(;d.length;){const{nestedArrIndex:c,value:u}=d.pop();if(le(u))if(he(u)&&!gt(u)){let p={v:u,i:c,n:this.norm.get(u)};i.push(p)}else Ae(u)&&u.forEach((p,h)=>{d.push({nestedArrIndex:h,value:p})})}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=w.getFn,fieldNormWeight:o=w.fieldNormWeight}={}){const t=new It({getFn:s,fieldNormWeight:o});return t.setKeys(n.map(fn)),t.setSources(e),t.create(),t}function Us(n,{getFn:e=w.getFn,fieldNormWeight:s=w.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=w.distance,ignoreLocation:a=w.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 Ys(n=[],e=w.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 Xs(n,e,s,{location:o=w.location,distance:t=w.distance,threshold:a=w.threshold,findAllMatches:l=w.findAllMatches,minMatchCharLength:i=w.minMatchCharLength,includeMatches:d=w.includeMatches,ignoreLocation:c=w.ignoreLocation}={}){if(e.length>Be)throw new Error(Vs(Be));const u=e.length,p=n.length,h=Math.max(0,Math.min(o,p));let y=a,_=h;const A=i>1||d,f=A?Array(p):[];let b;for(;(b=n.indexOf(e,_))>-1;){let x=Je(e,{currentLocation:b,expectedLocation:h,distance:t,ignoreLocation:c});if(y=Math.min(x,y),_=b+u,A){let H=0;for(;H<u;)f[b+H]=1,H+=1}}_=-1;let F=[],W=1,J=u+p;const M=1<<u-1;for(let x=0;x<u;x+=1){let H=0,I=J;for(;H<I;)Je(e,{errors:x,currentLocation:h+I,expectedLocation:h,distance:t,ignoreLocation:c})<=y?H=I:J=I,I=Math.floor((J-H)/2+H);J=I;let O=Math.max(1,h-I+1),de=l?p:Math.min(h+I,p)+u,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]&M&&(W=Je(e,{errors:x,currentLocation:pe,expectedLocation:h,distance:t,ignoreLocation:c}),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:c})>y)break;F=se}const ne={isMatch:_>=0,score:Math.max(.001,W)};if(A){const x=Ys(f,i);x.length?d&&(ne.indices=x):ne.isMatch=!1}return ne}function Qs(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=w.location,threshold:o=w.threshold,distance:t=w.distance,includeMatches:a=w.includeMatches,findAllMatches:l=w.findAllMatches,minMatchCharLength:i=w.minMatchCharLength,isCaseSensitive:d=w.isCaseSensitive,ignoreDiacritics:c=w.ignoreDiacritics,ignoreLocation:u=w.ignoreLocation}={}){if(this.options={location:s,threshold:o,distance:t,includeMatches:a,findAllMatches:l,minMatchCharLength:i,isCaseSensitive:d,ignoreDiacritics:c,ignoreLocation:u},e=d?e:e.toLowerCase(),e=c?lt(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const p=(y,_)=>{this.chunks.push({pattern:y,alphabet:Qs(y),startIndex:_})},h=this.pattern.length;if(h>Be){let y=0;const _=h%Be,A=h-_;for(;y<A;)p(this.pattern.substr(y,Be),y),y+=Be;if(_){const f=h-Be;p(this.pattern.substr(f),f)}}else p(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:d,minMatchCharLength:c,ignoreLocation:u}=this.options;let p=[],h=0,y=!1;this.chunks.forEach(({pattern:A,alphabet:f,startIndex:b})=>{const{isMatch:F,score:W,indices:J}=Xs(e,A,f,{location:a+b,distance:l,threshold:i,findAllMatches:d,minMatchCharLength:c,includeMatches:t,ignoreLocation:u});F&&(y=!0),h+=W,F&&J&&(p=[...p,...J])});let _={isMatch:y,score:y?h/this.chunks.length:1};return y&&t&&(_.indices=p),_}}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 Js 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 Zs 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 qs 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 ea 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 ta 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 na 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=w.location,threshold:o=w.threshold,distance:t=w.distance,includeMatches:a=w.includeMatches,findAllMatches:l=w.findAllMatches,minMatchCharLength:i=w.minMatchCharLength,isCaseSensitive:d=w.isCaseSensitive,ignoreDiacritics:c=w.ignoreDiacritics,ignoreLocation:u=w.ignoreLocation}={}){super(e),this._bitapSearch=new pn(e,{location:s,threshold:o,distance:t,includeMatches:a,findAllMatches:l,minMatchCharLength:i,isCaseSensitive:d,ignoreDiacritics:c,ignoreLocation:u})}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 Mt=[Js,gn,qs,ea,na,ta,Zs,mn],Gt=Mt.length,sa=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,aa="|";function oa(n,e={}){return n.split(aa).map(s=>{let o=s.trim().split(sa).filter(a=>a&&!!a.trim()),t=[];for(let a=0,l=o.length;a<l;a+=1){const i=o[a];let d=!1,c=-1;for(;!d&&++c<Gt;){const u=Mt[c];let p=u.isMultiMatch(i);p&&(t.push(new u(p,e)),d=!0)}if(!d)for(c=-1;++c<Gt;){const u=Mt[c];let p=u.isSingleMatch(i);if(p){t.push(new u(p,e));break}}}return t})}const la=new Set([mn.type,gn.type]);class ra{constructor(e,{isCaseSensitive:s=w.isCaseSensitive,ignoreDiacritics:o=w.ignoreDiacritics,includeMatches:t=w.includeMatches,minMatchCharLength:a=w.minMatchCharLength,ignoreLocation:l=w.ignoreLocation,findAllMatches:i=w.findAllMatches,location:d=w.location,threshold:c=w.threshold,distance:u=w.distance}={}){this.query=null,this.options={isCaseSensitive:s,ignoreDiacritics:o,includeMatches:t,minMatchCharLength:a,findAllMatches:i,ignoreLocation:l,location:d,threshold:c,distance:u},e=s?e:e.toLowerCase(),e=o?lt(e):e,this.pattern=e,this.query=oa(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=[],d=0;for(let c=0,u=s.length;c<u;c+=1){const p=s[c];i.length=0,l=0;for(let h=0,y=p.length;h<y;h+=1){const _=p[h],{isMatch:A,indices:f,score:b}=_.search(e);if(A){if(l+=1,d+=b,o){const F=_.constructor.type;la.has(F)?i=[...i,...f]:i.push(f)}}else{d=0,l=0,i.length=0;break}}if(l){let h={isMatch:!0,score:d/l};return o&&(h.indices=i),h}}return{isMatch:!1,score:1}}}const St=[];function ia(...n){St.push(...n)}function Et(n,e){for(let s=0,o=St.length;s<o;s+=1){let t=St[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]),ua=n=>!!n[$t.PATH],ca=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=ua(t);if(!l&&a.length>1&&!Dt(t))return o(Ut(t));if(ca(t)){const d=l?t[$t.PATH]:a[0],c=l?t[$t.PATTERN]:t[d];if(!he(c))throw new Error(Ps(d));const u={keyId:At(d),pattern:c};return s&&(u.searcher=Et(c,e)),u}let i={children:[],operator:a[0]};return a.forEach(d=>{const c=t[d];Ae(c)&&c.forEach(u=>{i.children.push(o(u))})}),i};return Dt(n)||(n=Ut(n)),o(n)}function da(n,{ignoreFieldNorm:e=w.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 va(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 fa(n,e){e.score=n.score}function ha(n,e,{includeMatches:s=w.includeMatches,includeScore:o=w.includeScore}={}){const t=[];return s&&t.push(va),o&&t.push(fa),n.map(a=>{const{idx:l}=a,i={item:e[l],refIndex:l};return t.length&&t.forEach(d=>{d(a,i)}),i})}class Ne{constructor(e,s={},o){this.options={...w,...s},this.options.useExtendedSearch,this._keyStore=new Ls(this.options.keys),this.setCollection(e,o)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof It))throw new Error(Is);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 d=he(e)?he(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return da(d,{ignoreFieldNorm:i}),a&&d.sort(l),cn(s)&&s>-1&&(d=d.slice(0,s)),ha(d,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:d,score:c,indices:u}=s.searchIn(a);d&&t.push({item:a,idx:l,matches:[{score:c,value:a,norm:i,indices:u}]})}),t}_searchLogical(e){const s=yn(e,this.options),o=(i,d,c)=>{if(!i.children){const{keyId:p,searcher:h}=i,y=this._findMatches({key:this._keyStore.get(p),value:this._myIndex.getValueForItemAtKeyId(d,p),searcher:h});return y&&y.length?[{idx:c,item:d,matches:y}]:[]}const u=[];for(let p=0,h=i.children.length;p<h;p+=1){const y=i.children[p],_=o(y,d,c);if(_.length)u.push(..._);else if(i.operator===rt.AND)return[]}return u},t=this._myIndex.records,a={},l=[];return t.forEach(({$:i,i:d})=>{if(le(i)){let c=o(s,i,d);c.length&&(a[d]||(a[d]={idx:d,item:i,matches:[]},l.push(a[d])),c.forEach(({matches:u})=>{a[d].matches.push(...u)}))}}),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 d=[];o.forEach((c,u)=>{d.push(...this._findMatches({key:c,value:l[u],searcher:s}))}),d.length&&a.push({idx:i,item:l,matches:d})}),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:d,score:c,indices:u}=o.searchIn(a);d&&t.push({score:c,key:e,value:a,idx:l,norm:i,indices:u})});else{const{v:a,n:l}=s,{isMatch:i,score:d,indices:c}=o.searchIn(a);i&&t.push({score:d,key:e,value:a,norm:l,indices:c})}return t}}Ne.version="7.1.0";Ne.createIndex=hn;Ne.parseIndex=Us;Ne.config=w;Ne.parseQuery=yn;ia(ra);const pa={class:"bg-main transform",shadow:"~",p:"x-4 y-2",border:"~ transparent rounded dark:main"},ma=["value","disabled"],ga={table:"","w-full":"","border-collapse":""},ya=["border","onClick"],ba={"text-right":"",op50:"","text-sm":"","table-cell":"","py-2":"","pl-4":"","pr-3":"","vertical-middle":""},_a=Q({__name:"Goto",setup(n){const e=Y(),s=Y(),o=Y(),t=Y(),a=Y(""),l=Y(0),{go:i,slides:d}=ce();function c(M){return M!=null}const u=R(()=>new Ne(d.value.map(M=>M.meta?.slide).filter(c),{keys:["no","title"],threshold:.3,shouldSort:!0,minMatchCharLength:1})),p=R(()=>a.value.startsWith("/")?a.value.substring(1):a.value),h=R(()=>u.value.search(p.value).map(M=>M.item)),y=R(()=>!!h.value.length);function _(){if(y.value){const M=h.value.at(l.value||0);M&&i(M.no)}A()}function A(){a.value="",Ee.value=!1}function f(M){M.preventDefault(),l.value++,l.value>=h.value.length&&(l.value=0),F()}function b(M){M.preventDefault(),l.value--,l.value<=-2&&(l.value=h.value.length-1),F()}function F(){const M=t.value?.[l.value];M&&o.value&&(M.offsetTop+M.offsetHeight>o.value.offsetHeight+o.value.scrollTop?o.value.scrollTo({behavior:"smooth",top:M.offsetTop+M.offsetHeight-o.value.offsetHeight+1}):M.offsetTop<o.value.scrollTop&&o.value.scrollTo({behavior:"smooth",top:M.offsetTop}))}function W(M){l.value=0,a.value=M.target.value}function J(M){i(M),A()}return We(Ee,async M=>{M?(a.value="",l.value=0,setTimeout(()=>s.value?.focus(),0)):s.value?.blur()}),We(je,()=>{e.value?.contains(je.value)||A()}),(M,ne)=>(v(),g("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":""},[m("div",pa,[m("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,ma)]),h.value.length>0?(v(),g("div",{key:0,ref_key:"list",ref:o,class:"autocomplete-list",shadow:"~",border:"~ transparent rounded dark:main"},[m("ul",ga,[(v(!0),g(N,null,Ve(h.value,(x,H)=>(v(),g("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"])},[m("div",ba,ee(x.no),1),E(r($s),{"table-cell":"","py-2":"","pr-4":"","w-full":"",no:x.no},null,8,["no"])],10,ya))),128))])],512)):C("v-if",!0)],2))}}),Mo=ut(_a,[["__scopeId","data-v-89cfdfc4"]]),xa={render:()=>[]},wa={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)=>(v(),g("div",{ref_key:"el",ref:a,class:"flex relative"},[m("button",{class:T({disabled:n.disabled}),onClick:i[0]||(i[0]=d=>t.value=!r(t))},[nt(l.$slots,"button",{class:T({disabled:n.disabled})})],2),(v(),D($n,null,[r(t)?(v(),g("div",wa,[nt(l.$slots,"menu")])):C("v-if",!0)],1024))],512))}}),ka={border:"~ main rounded",flex:"~ gap-2 items-center",relative:"","h-5":"","w-5":"","p0.5":"","hover:bg-active":"",p1:""},Ca=["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)=>(v(),g("div",ka,[m("div",{"i-ri-check-line":"",class:T(e.value?"":"op0")},null,2),He(m("input",{"onUpdate:modelValue":o[0]||(o[0]=t=>e.value=t),type:"checkbox",absolute:"","inset-0":"","opacity-10":"",disabled:s.disabled},null,8,Ca),[[Dn,e.value]])]))}}),Aa={"w-30":"","h-8":"",flex:"~ gap-1 items-center"},Ma={key:0,"w-1.5":"","h-1.5":"","bg-primary":"",rounded:"",absolute:"","top-0":"","right--2":""},Sa={key:0,"w-1.5":"","h-1.5":"","bg-primary":"",rounded:"",absolute:"","top-0":"","right--2":""},Ea=["innerHTML"],ke=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)=>(v(),D(Ie(t.div?"div":"label"),{flex:"~ row gap-2 items-center","select-none":""},{default:$(()=>[m("div",Aa,[t.nested?(v(),g("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?(v(),D(r(ls),{key:2,distance:"10"},{popper:$(()=>[m("div",{"text-sm":"","min-w-90":"",innerHTML:t.description},null,8,Ea)]),default:$(()=>[m("div",{op75:"","text-right":"",relative:"",onDblclick:o},[Pe(ee(t.title)+" ",1),t.dot?(v(),g("div",Sa)):C("v-if",!0)],32)]),_:1})):(v(),g("div",{key:1,op75:"",relative:"",onDblclick:o},[Pe(ee(t.title)+" ",1),t.dot?(v(),g("div",Ma)):C("v-if",!0)],32))]),nt(t.$slots,"default")]),_:3}))}}),$a={relative:"","h-22px":""},Da={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)=>(v(),g(N,null,[m("div",{relative:"","h-22px":"","w-60":"","flex-auto":"",onDblclick:t[1]||(t[1]=a=>e.default!==void 0?s.value=e.default:null)},[He(m("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?(v(),g("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),m("div",$a,[He(m("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?(v(),g("span",Da,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 Ba=["textContent"],Fa=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)=>(v(),D(Ie(t.as||"span"),{"ws-nowrap":"",rounded:"",class:T(o.value),style:Ce(s.value)},{default:$(()=>[nt(t.$slots,"default",{},()=>[m("span",{textContent:ee(e.text)},null,8,Ba)])]),_:3},8,["class","style"]))}}),Ra={flex:"~ gap-1 items-center",rounded:"","bg-gray:4":"",p1:"","m--1":""},Ia=Q({__name:"SegmentControl",props:{options:{},modelValue:{}},emits:["update:modelValue"],setup(n){return(e,s)=>(v(),g("div",Ra,[(v(!0),g(N,null,Ve(e.options,o=>(v(),D(Fa,{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))]))}}),Pa={"text-sm":"","select-none":"",flex:"~ col gap-1","min-w-30":"",px4:""},Va=Q({__name:"Settings",setup(n){const{isPresenter:e}=ce(),{isSupported:s}=Jt();return(o,t)=>(v(),g("div",Pa,[E(ke,{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(ke,{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(ke,{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(ke,{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(ke,{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(ke,{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]=m("div",{class:"h-1px opacity-5 bg-current w-full my2"},null,-1)),r(e)?C("v-if",!0):(v(),D(ke,{key:0,title:"Slide Scale"},{default:$(()=>[E(Ia,{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)?(v(),D(ke,{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):(v(),D(ke,{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}))]))}}),Na={class:"select-list"},Ta={class:"title"},La={class:"items"},Oa=["onClick"],za=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)=>(v(),g("div",Na,[m("div",Ta,ee(n.title),1),m("div",La,[(v(!0),g(N,null,Ve(n.items,i=>(v(),g("div",{key:i.value,class:T(["item",{active:r(t)===i.value}]),onClick:()=>{t.value=i.value,i.onClick?.()}},[m("div",{class:T(["i-carbon:checkmark text-green-500 mya",{"opacity-0":r(t)!==i.value}])},null,2),m("div",{class:T({"opacity-50":r(t)!==i.value})},ee(i.display||i.value),3)],10,Oa))),128))])]))}}),ja=ut(za,[["__scopeId","data-v-c60a758c"]]),Wa={"text-sm":"",flex:"~ col gap-2"},Ha={px3:"","ws-nowrap":""},Ka={"font-bold":"","text-primary":""},Ga=Q({__name:"SyncControls",setup(n){const{isPresenter:e}=ce(),s=R({get:()=>e.value?Me.value.presenterReceive:Me.value.viewerReceive,set(a){e.value?Me.value.presenterReceive=a:Me.value.viewerReceive=a}}),o=R({get:()=>e.value?Me.value.presenterSend:Me.value.viewerSend,set(a){e.value?Me.value.presenterSend=a:Me.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)=>(v(),D(bn,null,{button:$(()=>[E(U,{title:"Change sync settings"},{default:$(()=>[m("div",{class:T(["i-ph:arrow-up-bold mx--1.2 scale-x-80",o.value?"text-green6 dark:text-green":"op30"])},null,2),m("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:$(()=>[m("div",Wa,[m("div",Ha,[l[1]||(l[1]=m("span",{op75:""},"Slides navigation syncing for ",-1)),m("span",Ka,ee(r(e)?"presenter":"viewer"),1)]),l[2]||(l[2]=m("div",{class:"h-1px opacity-10 bg-current w-full"},null,-1)),E(ja,{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}))}}),Ua={key:0,class:"i-carbon:minimize"},Ya={key:1,class:"i-carbon:maximize"},Xa={key:0,"w-2":"","h-2":"","bg-primary":"","rounded-full":"",absolute:"","top-0.5":"","right-0.5":""},Qa={class:"h-40px flex",p:"l-1 t-0.5 r-2",text:"sm leading-2"},Ja={class:"my-auto"},Za={class:"opacity-50"},So=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:d,prev:c,total:u,enterPresenter:p,exitPresenter:h}=ce(),{brush:y,drawingEnabled:_}=ct(),A=wt.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"),M=Bt();return(ne,x)=>{const H=ns,I=ss,O=as,de=os;return v(),g("nav",{ref_key:"root",ref:F,class:"flex flex-col"},[m("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):(v(),D(U,{key:0,title:r(f)?"Close fullscreen":"Enter fullscreen",onClick:r(b)},{default:$(()=>[r(f)?(v(),g("div",Ua)):(v(),g("div",Ya))]),_:1},8,["title","onClick"])),E(U,{class:T({disabled:!r(t)}),title:"Go to previous slide",onClick:r(c)},{default:$(()=>x[6]||(x[6]=[m("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(d)},{default:$(()=>x[7]||(x[7]=[m("div",{class:"i-carbon:arrow-right"},null,-1)])),_:1,__:[7]},8,["class","onClick"]),r(a)?C("v-if",!0):(v(),D(U,{key:1,title:"Show slide overview",onClick:x[0]||(x[0]=se=>r(at)())},{default:$(()=>x[8]||(x[8]=[m("div",{class:"i-carbon:apps"},null,-1)])),_:1,__:[8]})),r(Tn)?C("v-if",!0):(v(),D(U,{key:2,title:r(ot)?"Switch to light mode theme":"Switch to dark mode theme",onClick:x[1]||(x[1]=se=>r(kt)())},{default:$(()=>[r(ot)?(v(),D(H,{key:0})):(v(),D(I,{key:1}))]),_:1},8,["title"])),E(Oe),r(a)?C("v-if",!0):(v(),g(N,{key:3},[!r(l)&&!r(A)&&M.value?(v(),g(N,{key:0},[E(r(M)),E(Oe)],64)):C("v-if",!0),r(l)?(v(),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)?(v(),D(O,{key:0})):(v(),D(de,{key:1}))]),_:1},8,["title"])):C("v-if",!0)],64)),(!r($e).drawings.presenterOnly||r(l))&&!r(a)?(v(),g(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]=m("div",{class:"i-carbon:pen"},null,-1)),r(_)?(v(),g("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):(v(),g(N,{key:5},[r(l)?(v(),D(U,{key:0,title:"Play Mode",onClick:r(h)},{default:$(()=>x[10]||(x[10]=[m("div",{class:"i-carbon:presentation-file"},null,-1)])),_:1,__:[10]},8,["onClick"])):C("v-if",!0),r(i)?(v(),D(U,{key:1,title:"Presenter Mode",onClick:r(p)},{default:$(()=>x[11]||(x[11]=[m("div",{class:"i-carbon:user-speaker"},null,-1)])),_:1,__:[11]},8,["onClick"])):C("v-if",!0),C("v-if",!0)],64)),(v(),g(N,{key:6},[r($e).download?(v(),D(U,{key:0,title:"Download as PDF",onClick:r(on)},{default:$(()=>x[13]||(x[13]=[m("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)?(v(),D(U,{key:8,title:"Show info",onClick:x[5]||(x[5]=se=>Nt.value=!r(Nt))},{default:$(()=>x[15]||(x[15]=[m("div",{class:"i-carbon:information"},null,-1)])),_:1,__:[15]})):C("v-if",!0),r(a)?C("v-if",!0):(v(),g(N,{key:9},[E(Oe),r(l)?(v(),D(U,{key:0,title:"Toggle Presenter Layout",class:"aspect-ratio-initial flex items-center",onClick:r(Ln)},{default:$(()=>[x[16]||(x[16]=m("div",{class:"i-carbon:template"},null,-1)),Pe(" "+ee(r(On)),1)]),_:1,__:[16]},8,["onClick"])):C("v-if",!0),(v(),D(Ga,{key:1})),E(bn,null,{button:$(()=>[E(U,{title:"More Options"},{default:$(()=>[x[17]||(x[17]=m("div",{class:"i-carbon:settings-adjust"},null,-1)),r(zn)?(v(),g("div",Xa)):C("v-if",!0)]),_:1,__:[17]})]),menu:$(()=>[E(Va)]),_:1})],64)),r(a)?C("v-if",!0):(v(),D(Oe,{key:10})),m("div",Qa,[m("div",Ja,[Pe(ee(r(s))+" ",1),m("span",Za,"/ "+ee(r(u)),1)])]),E(r(xa))],34)],512)}}}),et=Y(1),tt=R(()=>jn.value.length),X=Y(0),Pt=Y(0);function qa(){X.value>et.value&&(X.value-=1)}function eo(){X.value<tt.value&&(X.value+=1)}function to(){if(X.value>et.value){let n=X.value-Pt.value;n<et.value&&(n=et.value),X.value=n}}function no(){if(X.value<tt.value){let n=X.value+Pt.value;n>tt.value&&(n=tt.value),X.value=n}}const so=["onClick"],ao={class:"text-green font-bold"},oo={class:"opacity-50"},lo={key:1,class:"opacity-50"},ro={class:"fixed top-4 right-4 z-modal text-gray-400 flex flex-col items-center gap-2"},bt=128,Qt=32,Eo=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 d=wt.smaller("xs"),c=wt.smaller("sm"),u=R(()=>d.value?Fe.width.value-bt:c.value?(Fe.width.value-bt-Qt)/2:300),p=R(()=>Math.floor((Fe.width.value-bt)/(u.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=p.value}),(y,_)=>(v(),g(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)?(v(),g("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},[m("div",{class:"grid gap-y-4 gap-x-8 w-full",style:Ce(`grid-template-columns: repeat(auto-fit,minmax(${u.value}px,1fr))`)},[(v(!0),g(N,null,Ve(r(t),(A,f)=>(v(),g("div",{key:A.no,class:"relative"},[m("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)},[(v(),D(Jn,{key:A.no,no:A.no,"use-snapshot":!0,width:u.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,so),m("div",{class:"absolute top-0",style:Ce(`left: ${u.value+5}px`)},[h.value&&String(f+1).startsWith(h.value)?(v(),g(N,{key:0},[m("span",ao,ee(h.value),1),m("span",oo,ee(String(f+1).slice(h.value.length)),1)],64)):(v(),g("span",lo,ee(f+1),1))],4)]))),128))],4)])):C("v-if",!0)]),_:1}),He(m("div",ro,[E(U,{title:"Close",class:"text-2xl",onClick:a},{default:$(()=>_[0]||(_[0]=[m("div",{class:"i-carbon:close"},null,-1)])),_:1,__:[0]}),(v(),D(U,{key:0,as:"a",title:"Slides Overview",target:"_blank",href:`${r(Wn)}overview`,"tab-index":"-1",class:"text-2xl"},{default:$(()=>_[1]||(_[1]=[m("div",{class:"i-carbon:list-boxes"},null,-1)])),_:1,__:[1]},8,["href"])),C("v-if",!0)],512),[[an,r(oe)]])],64))}});function io(){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,d=Tt(a.params.no)?.meta,c=i?.slide?.no,u=d?.slide?.no;if((c!=null&&u!=null&&c!==u&&((c<u?i?.transition:d?.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 uo=["data-drag-id"],ue=10,Se=10,_t="absolute border border-gray bg-gray dark:border-gray-500 dark:bg-gray-800 bg-opacity-30 ",Ze=20,co=Q({__name:"DragControl",props:{data:{}},setup(n){const{dragId:e,zoom:s,autoHeight:o,x0:t,y0:a,width:l,height:i,rotate:d,isArrow:c}=n.data,u=Rn(Hn,Y(1)),p=R(()=>u.value*s.value),{left:h,top:y}=Kn(),_=c?Number.NEGATIVE_INFINITY:40,A=R(()=>d.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),M=R(()=>a.value-W.value/2),ne=R(()=>t.value+F.value/2),x=R(()=>a.value+W.value/2),H=R(()=>c&&l.value<0),I=R(()=>c&&i.value<0);let O=null;function de(k){if(k.buttons!==1)return;k.preventDefault(),k.stopPropagation();const V=k.target.getBoundingClientRect(),S=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:d.value,dx0:k.clientX-(V.left+V.right)/2,dy0:k.clientY-(V.top+V.bottom)/2,ltx:t.value-S/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+S/2,rby:a.value+B/2},k.currentTarget.setPointerCapture(k.pointerId)}function se(k){if(!O||k.buttons!==1)return;k.preventDefault(),k.stopPropagation();const L=(k.clientX-h.value-O.dx0)/p.value,V=(k.clientY-y.value-O.dy0)/p.value;t.value=zt(L,-F.value/2+Se,Lt.value+F.value/2-Se),a.value=zt(V,-W.value/2+Se,Ot.value+W.value/2-Se)}function Te(k){O&&(k.preventDefault(),k.stopPropagation(),O=null)}function G(k,L){return{onPointerdown:de,onPointermove:V=>{if(!O||V.buttons!==1)return;V.preventDefault(),V.stopPropagation();let S=(V.clientX-h.value)/p.value,B=(V.clientY-y.value)/p.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(k)if(L){const ve=(_e-S)*b.value+(j-B)*f.value,fe=-(_e-S)*f.value+(j-B)*b.value,{w:te,h:ae}=Ue(ve,fe);S=_e-te*b.value+ae*f.value,B=j-te*f.value-ae*b.value}else{const ve=(me-S)*b.value-(B-ge)*f.value,fe=(me-S)*f.value+(B-ge)*b.value,{w:te,h:ae}=Ue(ve,fe);S=me-te*b.value-ae*f.value,B=ge-te*f.value+ae*b.value}else if(L){const ve=(S-ye)*b.value-(be-B)*f.value,fe=(S-ye)*f.value+(be-B)*b.value,{w:te,h:ae}=Ue(ve,fe);S=ye+te*b.value+ae*f.value,B=be+te*f.value-ae*b.value}else{const ve=(S-Z)*b.value+(B-re)*f.value,fe=-(S-Z)*f.value+(B-re)*b.value,{w:te,h:ae}=Ue(ve,fe);S=Z+te*b.value-ae*f.value,B=re+te*f.value+ae*b.value}k?L?(t.value=(S+_e)/2,a.value=(B+j)/2,l.value=(_e-S)*b.value+(j-B)*f.value,i.value=-(_e-S)*f.value+(j-B)*b.value):(t.value=(S+me)/2,a.value=(B+ge)/2,l.value=(me-S)*b.value-(B-ge)*f.value,i.value=(me-S)*f.value+(B-ge)*b.value):L?(t.value=(S+ye)/2,a.value=(B+be)/2,l.value=(S-ye)*b.value-(be-B)*f.value,i.value=(S-ye)*f.value+(be-B)*b.value):(t.value=(S+Z)/2,a.value=(B+re)/2,l.value=(S-Z)*b.value+(B-re)*f.value,i.value=-(S-Z)*f.value+(B-re)*b.value)},onPointerup:Te,style:{width:`${ue}px`,height:`${ue}px`,margin:`-${ue/2}px`,left:k!==H.value?"0":void 0,right:k!==H.value?void 0:"0",top:L!==I.value?"0":void 0,bottom:L!==I.value?void 0:"0",cursor:c?"move":+k+ +L==1?"nesw-resize":"nwse-resize",borderRadius:c?"50%":void 0},class:_t}}function pe(k){return{onPointerdown:de,onPointermove:L=>{if(!O||L.buttons!==1)return;L.preventDefault(),L.stopPropagation();const V=(L.clientX-h.value)/p.value,S=(L.clientY-y.value)/p.value,{ltx:B,lty:Z,rtx:re,rty:me,lbx:ge,lby:ye,rbx:be,rby:_e}=O;if(k==="l"){const j=(re+be)/2,q=(me+_e)/2;l.value=Math.max((j-V)*b.value+(q-S)*f.value,_),t.value=j-l.value*b.value/2,a.value=q-l.value*f.value/2}else if(k==="r"){const j=(B+ge)/2,q=(Z+ye)/2;l.value=Math.max((V-j)*b.value+(S-q)*f.value,_),t.value=j+l.value*b.value/2,a.value=q+l.value*f.value/2}else if(k==="t"){const j=(ge+be)/2,q=(ye+_e)/2;i.value=Math.max((q-S)*b.value-(j-V)*f.value,_),t.value=j+i.value*f.value/2,a.value=q-i.value*b.value/2}else if(k==="b"){const j=(B+re)/2,q=(Z+me)/2;i.value=Math.max((S-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:k==="l"?"0":k==="r"?"100%":"50%",top:k==="t"?"0":k==="b"?"100%":"50%",cursor:"lr".includes(k)?"ew-resize":"ns-resize",borderRadius:"50%"},class:_t}}function Ke(){return{onPointerdown:de,onPointermove:k=>{if(!O||k.buttons!==1)return;k.preventDefault(),k.stopPropagation();const L=(k.clientX-h.value-O.dx0)/p.value-ue/4,V=(k.clientY-y.value-O.dy0)/p.value-ue/4;let S=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(S-Z)<5){S=Z%360;break}d.value=S},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<=Se||t.value--},Ze,Ge),xn=Xe(()=>{J.value>=Lt.value-Se||t.value++},Ze,Ge),wn=Xe(()=>{x.value<=Se||a.value--},Ze,Ge),kn=Xe(()=>{M.value>=Ot.value-Se||a.value++},Ze,Ge);return st(()=>{function k(L,V){Rt[L].value?V.resume():V.pause()}k("left",_n),k("right",xn),k("up",wn),k("down",kn)}),(k,L)=>Number.isFinite(r(t))?(v(),g("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(d)}deg)`}),onPointerdown:de,onPointermove:se,onPointerup:Te},[m("div",{class:T(["absolute inset-0 z-nav dark:b-gray-400",r(c)?"":"b b-dark"])},[r(o)?C("v-if",!0):(v(),g(N,{key:0},[m("div",xe(we(G(!0,!0))),null,16),m("div",xe(we(G(!1,!1))),null,16),r(c)?C("v-if",!0):(v(),g(N,{key:0},[m("div",xe(we(G(!0,!1))),null,16),m("div",xe(we(G(!1,!0))),null,16)],64))],64)),r(c)?C("v-if",!0):(v(),g(N,{key:1},[m("div",xe(we(pe("l"))),null,16),m("div",xe(we(pe("r"))),null,16),r(o)?C("v-if",!0):(v(),g(N,{key:0},[m("div",xe(we(pe("t"))),null,16),m("div",xe(we(pe("b"))),null,16)],64)),m("div",xe(we(Ke())),null,16),m("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,uo)):C("v-if",!0)}}),vo=Q({__name:"SlidesShow",props:{renderContext:{}},setup(n){const{currentSlideRoute:e,currentTransition:s,getPrimaryClicks:o,prevRoute:t,nextRoute:a,slides:l,isPrintMode:i,isPrintWithClicks:d,clicksDirection:c,printRange:u}=ce();function p(f){f.meta.preload!==!1&&(f.meta.__preloaded=!0,f.load())}st(()=>{p(e.value),p(t.value),p(a.value)}),st(f=>{const b=l.value,F=setTimeout(()=>{b.forEach(p)},3e3);f(()=>clearTimeout(F))});const h=io(),y=Bt();Gn(()=>import("./DrawingLayer-CsPE4CHx.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])).then(f=>y.value=f.default);const _=R(()=>i.value?u.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)=>(v(),g(N,null,[C(" Global Bottom "),E(r(qn)),C(" Slides "),(v(),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(c)>0,"slidev-nav-go-backward":r(c)<0},onAfterLeave:A}),{default:$(()=>[(v(!0),g(N,null,Ve(_.value,F=>He((v(),D(un,{key:F.no,"clicks-context":r(i)&&!r(d)?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)?(v(),D(co,{key:0,data:r(Ct)},null,8,["data"])):C("v-if",!0),C(" Global Top "),E(r(es)),y.value?(v(),D(r(y),{key:1})):C("v-if",!0)],64))}}),$o=ut(vo,[["__scopeId","data-v-af867013"]]),fo=[];function ho(){const{go:n,goFirst:e,goLast:s,next:o,nextSlide:t,prev:a,prevSlide:l}=ce(),{drawingEnabled:i}=ct(),{escape:d,space:c,shift:u,left:p,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:kt,toggleOverview:at,toggleDrawing:()=>i.value=!i.value,escapeOverview:()=>oe.value=!1,showGotoDialog:()=>Ee.value=!Ee.value},M=z(ie(oe),ie(Ct));let ne=[{name:"next_space",key:z(c,ie(u)),fn:o,autoRepeat:!0},{name:"prev_space",key:z(c,u),fn:a,autoRepeat:!0},{name:"next_right",key:z(h,ie(u),M),fn:o,autoRepeat:!0},{name:"prev_left",key:z(p,ie(u),M),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(_,M),fn:t,autoRepeat:!0},{name:"prev_up",key:z(y,M),fn:l,autoRepeat:!0},{name:"next_shift",key:z(h,u),fn:t,autoRepeat:!0},{name:"prev_shift",key:z(p,u),fn:l,autoRepeat:!0},{name:"toggle_dark",key:z(f,ie(i)),fn:kt},{name:"toggle_overview",key:z(Pn(F,W),ie(i)),fn:at},{name:"hide_overview",key:z(d,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:eo},{name:"prev_overview",key:z(p,oe),fn:qa},{name:"up_overview",key:z(y,oe),fn:to},{name:"down_overview",key:z(_,oe),fn:no},{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 fo)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 Do(){const{isPrintMode:n}=ce(),e=z(ie(Xn),ie(Yn),ie(n),Un),s=ho();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,d=!1){typeof l=="string"&&(l=Rt[l]);const c=z(l,e);let u=0,p;const h=()=>{if(clearTimeout(p),!c.value){u=0;return}d&&(p=setTimeout(h,Math.max(1e3-u*250,150)),u++),i()};return We(c,h,{flush:"sync"})}function a(l,i){return Vn(l,d=>{e.value&&(d.repeat||i())})}}export{Mo as G,$o as S,Oe as V,Ia as _,ko as a,So as b,Eo as c,Ao as d,Co as o,Do as r,wo as u};
|