diff --git a/404.html b/404.html index 8feea4b828c91b2de6e9b93217b9c085aa8d679e..1cadc82f6cef0c5338dd16582f6f819e4359c142 100644 --- a/404.html +++ b/404.html @@ -29,7 +29,7 @@ - + diff --git a/assets/404-BPdJ9UzP.css b/assets/404-BPdJ9UzP.css deleted file mode 100644 index ac2f817a0750e3707b6f89cb7dad7179cbbd6c3e..0000000000000000000000000000000000000000 --- a/assets/404-BPdJ9UzP.css +++ /dev/null @@ -1 +0,0 @@ -.page-link[data-v-78622178]{border-radius:.25rem;background-color:#9ca3af1a;padding:.5rem 1rem}.page-link[data-v-78622178]:hover{background-color:#9ca3af33} diff --git a/assets/404-BqRP-SCR.css b/assets/404-BqRP-SCR.css new file mode 100644 index 0000000000000000000000000000000000000000..a66cbbf3447d68e4941876aad3a00fd4e6bb027f --- /dev/null +++ b/assets/404-BqRP-SCR.css @@ -0,0 +1 @@ +.page-link[data-v-454f38f1]{border-radius:.25rem;background-color:#9ca3af1a;padding:.5rem 1rem}.page-link[data-v-454f38f1]:hover{background-color:#9ca3af33} diff --git a/assets/Callout-D9ibgtrC.js b/assets/Callout-D44NXjfg.js similarity index 69% rename from assets/Callout-D9ibgtrC.js rename to assets/Callout-D44NXjfg.js index d0c9cc0f11540c8c12affb181abcf10f8efd9f55..28b5e38b25fbf70185d404a26fe2dfd39c7ee5ba 100644 --- a/assets/Callout-D9ibgtrC.js +++ b/assets/Callout-D44NXjfg.js @@ -1 +1 @@ -import{o as a,e as o,i as s,n as r}from"./modules/vue-CZamTkmS.js";import{u as n}from"./slidev/context-z1Z7Rpcn.js";import{_ as l}from"./index-D8MtK2Qe.js";const c={__name:"Callout",props:{dir:{type:String,default:""}},setup(e){return n(),(t,u)=>(a(),o("span",{class:r(["ae-callout",e.dir?`ae-callout--${e.dir}`:""])},[s(t.$slots,"default",{},void 0,!0)],2))}},d=l(c,[["__scopeId","data-v-189f1622"]]);export{d as _}; +import{o as a,e as o,i as s,n as r}from"./modules/vue-CZamTkmS.js";import{u as n}from"./slidev/context-Ch1IIjuh.js";import{_ as l}from"./index-CIas0rwA.js";const c={__name:"Callout",props:{dir:{type:String,default:""}},setup(e){return n(),(t,u)=>(a(),o("span",{class:r(["ae-callout",e.dir?`ae-callout--${e.dir}`:""])},[s(t.$slots,"default",{},void 0,!0)],2))}},d=l(c,[["__scopeId","data-v-189f1622"]]);export{d as _}; diff --git a/assets/NoteDisplay-BfdY-e_h.css b/assets/NoteDisplay-BfdY-e_h.css new file mode 100644 index 0000000000000000000000000000000000000000..62874d0ce54da9347976cd3383d0995a0c3e150d --- /dev/null +++ b/assets/NoteDisplay-BfdY-e_h.css @@ -0,0 +1 @@ +.range[data-v-f2325566]{-webkit-appearance:none;appearance:none;background:transparent}.range[data-v-f2325566]::-webkit-slider-thumb{-webkit-appearance:none;height:100%;width:var(--thumb-width, .5rem)}.range[data-v-f2325566]::-moz-range-thumb{height:100%;width:var(--thumb-width, .5rem)}.slidev-note :first-child{margin-top:0} diff --git a/assets/NoteDisplay-D0sgguEU.css b/assets/NoteDisplay-D0sgguEU.css deleted file mode 100644 index 8a6bff181152012a47d707dfd5a3a4410b7caac6..0000000000000000000000000000000000000000 --- a/assets/NoteDisplay-D0sgguEU.css +++ /dev/null @@ -1 +0,0 @@ -.range[data-v-f7f7509b]{-webkit-appearance:none;appearance:none;background:transparent}.range[data-v-f7f7509b]::-webkit-slider-thumb{-webkit-appearance:none;height:100%;width:var(--thumb-width, .5rem)}.range[data-v-f7f7509b]::-moz-range-thumb{height:100%;width:var(--thumb-width, .5rem)}.slidev-note :first-child{margin-top:0} diff --git a/assets/PageNo-FcNtCKNX.js b/assets/PageNo-bIvqdETk.js similarity index 90% rename from assets/PageNo-FcNtCKNX.js rename to assets/PageNo-bIvqdETk.js index fc095aba8035dbc7755c42ce69fe68f051e97dd7..54594ea256b1217bbb87b28c19790fd92a15a86f 100644 --- a/assets/PageNo-FcNtCKNX.js +++ b/assets/PageNo-bIvqdETk.js @@ -1 +1 @@ -import{o as f,e as v,t as _,z as o}from"./modules/vue-CZamTkmS.js";import{u as x}from"./slidev/context-z1Z7Rpcn.js";const h={class:"pageno"},y={__name:"PageNo",props:{current:{type:Number,required:!0},slides:{type:Array,required:!0}},setup(u){x();const t=u,r=e=>!!e?.meta?.slide?.frontmatter?.hideInToc,s=o(()=>t.slides.filter(e=>!r(e)).length),i=o(()=>r(t.slides[t.current-1])),l=o(()=>t.current-s.value);function p(e){if(!(e>0))return"";const n=[[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]];let a="";for(const[c,m]of n)for(;e>=c;)a+=m,e-=c;return a}const d=o(()=>i.value?p(l.value):`${t.current} / ${s.value}`);return(e,n)=>(f(),v("div",h,_(d.value),1))}};export{y as _}; +import{o as f,e as v,t as _,z as o}from"./modules/vue-CZamTkmS.js";import{u as x}from"./slidev/context-Ch1IIjuh.js";const h={class:"pageno"},y={__name:"PageNo",props:{current:{type:Number,required:!0},slides:{type:Array,required:!0}},setup(u){x();const t=u,r=e=>!!e?.meta?.slide?.frontmatter?.hideInToc,s=o(()=>t.slides.filter(e=>!r(e)).length),i=o(()=>r(t.slides[t.current-1])),l=o(()=>t.current-s.value);function p(e){if(!(e>0))return"";const n=[[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]];let a="";for(const[c,m]of n)for(;e>=c;)a+=m,e-=c;return a}const d=o(()=>i.value?p(l.value):`${t.current} / ${s.value}`);return(e,n)=>(f(),v("div",h,_(d.value),1))}};export{y as _}; diff --git a/assets/SlideWrapper-CgHDuBf7.css b/assets/SlideWrapper-C5Fw_W4m.css similarity index 65% rename from assets/SlideWrapper-CgHDuBf7.css rename to assets/SlideWrapper-C5Fw_W4m.css index 5e7194bc31c27a91477774e7b1331f1a260e4e68..13a00fa935fd30e9f12bd969cefeed3edae8a296 100644 --- a/assets/SlideWrapper-CgHDuBf7.css +++ b/assets/SlideWrapper-C5Fw_W4m.css @@ -1 +1 @@ -.slidev-slide-container[data-v-f33e502d]{position:relative;width:100%;height:100%;overflow:hidden}.slidev-slide-content[data-v-f33e502d]{--slidev-slide-container-scale: var(--slidev-slide-scale);transform:translate(-50%,-50%) scale(var(--slidev-slide-scale));position:absolute;left:50%;top:50%;overflow:hidden;--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark .slidev-slide-content[data-v-f33e502d]{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.disable-view-transition[data-v-7f4a33e4] *{view-transition-name:none!important}.slidev-page[data-v-7f4a33e4]{position:absolute;inset:0;--slidev-slide-zoom-scale: 1;width:calc(100% / var(--slidev-slide-zoom-scale));height:calc(100% / var(--slidev-slide-zoom-scale));transform-origin:top left;scale:var(--slidev-slide-zoom-scale);--slidev-slide-scale: calc(var(--slidev-slide-container-scale) * var(--slidev-slide-zoom-scale))} +.slidev-slide-container[data-v-fd079fcd]{position:relative;width:100%;height:100%;overflow:hidden}.slidev-slide-content[data-v-fd079fcd]{--slidev-slide-container-scale: var(--slidev-slide-scale);transform:translate(-50%,-50%) scale(var(--slidev-slide-scale));position:absolute;left:50%;top:50%;overflow:hidden;--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark .slidev-slide-content[data-v-fd079fcd]{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.disable-view-transition[data-v-00f825d3] *{view-transition-name:none!important}.slidev-page[data-v-00f825d3]{position:absolute;inset:0;--slidev-slide-zoom-scale: 1;width:calc(100% / var(--slidev-slide-zoom-scale));height:calc(100% / var(--slidev-slide-zoom-scale));transform-origin:top left;scale:var(--slidev-slide-zoom-scale);--slidev-slide-scale: calc(var(--slidev-slide-container-scale) * var(--slidev-slide-zoom-scale))} diff --git a/assets/assertion-evidence-BNrEFU8E.js b/assets/assertion-evidence-B8cDdxTN.js similarity index 83% rename from assets/assertion-evidence-BNrEFU8E.js rename to assets/assertion-evidence-B8cDdxTN.js index 8c3c2a9139579b4538c344b6a8d88bd732772cf2..1b19263e130f6c9e3dbffab2429301924b792d22 100644 --- a/assets/assertion-evidence-BNrEFU8E.js +++ b/assets/assertion-evidence-B8cDdxTN.js @@ -1 +1 @@ -import{_ as l}from"./PageNo-FcNtCKNX.js";import{o as t,e as o,T as e,t as n,j as a,ad as d,g as _,i as u,d as m}from"./modules/vue-CZamTkmS.js";import{u as f}from"./slidev/context-z1Z7Rpcn.js";const p={class:"slidev-layout ae-slide"},v={key:0,class:"locator"},h={key:1,class:"assertion"},y={key:0,class:"rule"},k={class:"ae-body"},B={__name:"assertion-evidence",setup(N){const{$nav:r,$frontmatter:s}=f();return(c,g)=>{const i=l;return t(),o("div",p,[e(s).locator?(t(),o("div",v,n(e(s).locator),1)):a("v-if",!0),e(s).assertion?(t(),o("h1",h,[d(n(e(s).assertion),1),e(s).rule!==!1?(t(),o("span",y)):a("v-if",!0)])):a("v-if",!0),_("div",k,[u(c.$slots,"default")]),m(i,{current:e(r).currentPage,slides:e(r).slides},null,8,["current","slides"])])}}};export{B as _}; +import{_ as l}from"./PageNo-bIvqdETk.js";import{o as t,e as o,T as e,t as n,j as a,ad as d,g as _,i as u,d as m}from"./modules/vue-CZamTkmS.js";import{u as f}from"./slidev/context-Ch1IIjuh.js";const p={class:"slidev-layout ae-slide"},v={key:0,class:"locator"},h={key:1,class:"assertion"},y={key:0,class:"rule"},k={class:"ae-body"},B={__name:"assertion-evidence",setup(N){const{$nav:r,$frontmatter:s}=f();return(c,g)=>{const i=l;return t(),o("div",p,[e(s).locator?(t(),o("div",v,n(e(s).locator),1)):a("v-if",!0),e(s).assertion?(t(),o("h1",h,[d(n(e(s).assertion),1),e(s).rule!==!1?(t(),o("span",y)):a("v-if",!0)])):a("v-if",!0),_("div",k,[u(c.$slots,"default")]),m(i,{current:e(r).currentPage,slides:e(r).slides},null,8,["current","slides"])])}}};export{B as _}; diff --git a/assets/entry-Co-XTHNA.css b/assets/entry-Co-XTHNA.css deleted file mode 100644 index b009f5713f3ed1a53375d25205a6d91bd2bfa7fa..0000000000000000000000000000000000000000 --- a/assets/entry-Co-XTHNA.css +++ /dev/null @@ -1 +0,0 @@ -.page-link[data-v-e8604146]{height:10rem;min-width:10rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;border-radius:.25rem;background-color:#9ca3af1a;padding:1rem}.page-link[data-v-e8604146]:hover{background-color:#9ca3af33}.page-link>svg[data-v-e8604146]{font-size:3em;opacity:.5} diff --git a/assets/entry-ZvUFhEqu.css b/assets/entry-ZvUFhEqu.css new file mode 100644 index 0000000000000000000000000000000000000000..e799ab3e708337950713bd3a66323a62e4ebcf39 --- /dev/null +++ b/assets/entry-ZvUFhEqu.css @@ -0,0 +1 @@ +.page-link[data-v-32bef920]{height:10rem;min-width:10rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;border-radius:.25rem;background-color:#9ca3af1a;padding:1rem}.page-link[data-v-32bef920]:hover{background-color:#9ca3af33}.page-link>svg[data-v-32bef920]{font-size:3em;opacity:.5} diff --git a/assets/index-D8MtK2Qe.js b/assets/index-CIas0rwA.js similarity index 96% rename from assets/index-D8MtK2Qe.js rename to assets/index-CIas0rwA.js index c50baa41b07740656dd72dab85020d223a5b31da..eda42d7450700ce1086c0f45872767336743e24d 100644 --- a/assets/index-D8MtK2Qe.js +++ b/assets/index-CIas0rwA.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/md-DmeGpXl3.js","assets/modules/vue-CZamTkmS.js","assets/slidev/context-z1Z7Rpcn.js","assets/modules/shiki-COQlGosf.js","assets/modules/shiki-UqVAgQbi.css","assets/md-BpuuzB8-.css","assets/md-Dc-PbqDM.js","assets/Callout-D9ibgtrC.js","assets/Callout-BIsusp4l.css","assets/dfgGeometry-Bu62KhA-.js","assets/assertion-evidence-BNrEFU8E.js","assets/PageNo-FcNtCKNX.js","assets/md-CAAYkXnY.css","assets/md-2-_NAqid.js","assets/two-col-evidence-C1aPThn8.js","assets/md-Cy5FTtb8.css","assets/md-idRyEHFL.js","assets/md-BGLoa4mi.css","assets/md-BFOngcN9.js","assets/md-DZEG6U6g.css","assets/md-B1I1GQy8.js","assets/md-DNrugxcl.css","assets/md-jcv7dFDq.js","assets/md-asPeKwQ2.css","assets/md-DTwv1tMs.js","assets/md-CwSLYH9S.css","assets/md-BLel6lXo.js","assets/md-Bq-HM_RS.css","assets/md-DWphB_8g.js","assets/md-LN6kLwF6.css","assets/md-BmhR_QV9.js","assets/md-Bhsgi2DO.css","assets/md-DMA1qHpL.js","assets/md-BYY3q4CM.css","assets/md-COiEB4Jk.js","assets/md-DqmAczud.js","assets/md-0uJwOJQC.css","assets/md-7wpyl-I0.js","assets/md-By7USaRF.js","assets/md-DIcVEpCI.js","assets/md-Dlg4qlxs.css","assets/md-B0C6jHCs.js","assets/md-Cqk_R-1M.css","assets/md-jiyB8QwP.js","assets/md-CwlvvhWr.css","assets/md-BvSHvUIS.js","assets/md-DsWGWXpD.css","assets/md-Bk1O0Wcq.js","assets/md-CuTJ0ECW.js","assets/md-CmeCqFHV.js","assets/md-nTG-yQvE.js","assets/md-BY0chVOS.js","assets/md-BI5KNNjZ.js","assets/md-DZhFsmU6.js","assets/md-rLkBbld3.js","assets/md-B1UxDSPD.js","assets/md-DjtU-WpW.js","assets/slidev/entry-C7bHC-DN.js","assets/entry-Co-XTHNA.css","assets/slidev/overview-s5HYztaj.js","assets/modules/unplugin-icons-ByIekoE6.js","assets/slidev/NoteDisplay.vue_vue_type_style_index_0_lang-D15LqXLz.js","assets/NoteDisplay-D0sgguEU.css","assets/slidev/SlideWrapper-Dcg6ZMCe.js","assets/SlideWrapper-CgHDuBf7.css","assets/slidev/IconButton.vue_vue_type_script_setup_true_lang-DEyEjvqJ.js","assets/slidev/useSlideInfo-DSL8NNQ0.js","assets/slidev/notes-Bll_90vV.js","assets/slidev/TimerBar.vue_vue_type_script_setup_true_lang-BXE25vS4.js","assets/slidev/Modal.vue_vue_type_script_setup_true_lang-CSndaKrY.js","assets/slidev/notes-edit-DBQoatID.js","assets/slidev/presenter-BaDoaToA.js","assets/slidev/shortcuts-B6x-gEsD.js","assets/shortcuts-C3iD51Aa.css","assets/slidev/DrawingControls.vue_vue_type_style_index_0_lang-BypqiqJS.js","assets/DrawingControls-Cxk9a9ub.css","assets/presenter-C9PexJxI.css","assets/slidev/play-Dirf0-rK.js","assets/play-D_7yfuao.css","assets/slidev/404-Dlg9VO0J.js","assets/404-BPdJ9UzP.css"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/md-CQBJYljb.js","assets/modules/vue-CZamTkmS.js","assets/slidev/context-Ch1IIjuh.js","assets/modules/shiki-COQlGosf.js","assets/modules/shiki-UqVAgQbi.css","assets/md-BpuuzB8-.css","assets/md-ZwnkpR5j.js","assets/Callout-D44NXjfg.js","assets/Callout-BIsusp4l.css","assets/dfgGeometry-Bu62KhA-.js","assets/assertion-evidence-B8cDdxTN.js","assets/PageNo-bIvqdETk.js","assets/md-CAAYkXnY.css","assets/md-KwgLmFjp.js","assets/two-col-evidence-BJy_vMOO.js","assets/md-Cy5FTtb8.css","assets/md-wsTnYcR5.js","assets/md-BGLoa4mi.css","assets/md-BBEPGRJn.js","assets/md-DZEG6U6g.css","assets/md-Bpf-ls04.js","assets/md-DNrugxcl.css","assets/md-mAYixMWd.js","assets/md-asPeKwQ2.css","assets/md-dZq5p6Bn.js","assets/md-CwSLYH9S.css","assets/md-CxyPjZjU.js","assets/md-Bq-HM_RS.css","assets/md-PQiRBmeA.js","assets/md-BhCL--6g.css","assets/md-Czx4xdSf.js","assets/md-Bhsgi2DO.css","assets/md-CKLGNKcA.js","assets/md-BYY3q4CM.css","assets/md-7PDNlaoV.js","assets/md-D33qndAU.js","assets/md-0uJwOJQC.css","assets/md-B8NyDvYk.js","assets/md-Dw7OShh3.js","assets/md-BMWHI9-X.js","assets/md-Dlg4qlxs.css","assets/md-BM1BCY1p.js","assets/md-Cqk_R-1M.css","assets/md-v0HCTDOQ.js","assets/md-CwlvvhWr.css","assets/md-D5MfDGpq.js","assets/md-DZ1tVds7.css","assets/md-CzcunVWZ.js","assets/md-sNK_Cw7C.js","assets/md-lOx-aq1b.js","assets/md-BSI6HPQb.js","assets/md-Bn7Qx5kc.js","assets/md-BW7tv8wC.js","assets/md-PNN-aPN9.js","assets/md-ChS77cA2.js","assets/md-CTDIE4oQ.js","assets/md-923VPEbh.js","assets/slidev/entry-Bg1XkCzs.js","assets/entry-ZvUFhEqu.css","assets/slidev/overview-Eg3JoHVT.js","assets/modules/unplugin-icons-ByIekoE6.js","assets/slidev/NoteDisplay.vue_vue_type_style_index_0_lang-CA1o434c.js","assets/NoteDisplay-BfdY-e_h.css","assets/slidev/SlideWrapper-_oMsn9ML.js","assets/SlideWrapper-C5Fw_W4m.css","assets/slidev/IconButton.vue_vue_type_script_setup_true_lang-DEyEjvqJ.js","assets/slidev/useSlideInfo-95lRLUff.js","assets/slidev/notes-B-ufuhY-.js","assets/slidev/TimerBar.vue_vue_type_script_setup_true_lang-BUSgv3jk.js","assets/slidev/Modal.vue_vue_type_script_setup_true_lang-CSndaKrY.js","assets/slidev/notes-edit-EFZ74HT3.js","assets/slidev/presenter-ynkLRNMt.js","assets/slidev/shortcuts-B1mBgg0H.js","assets/shortcuts-DEelySGM.css","assets/slidev/DrawingControls.vue_vue_type_style_index_0_lang-NbfDtc9_.js","assets/DrawingControls-Cxk9a9ub.css","assets/presenter-BQK0mnUI.css","assets/slidev/play-BaoSMgbA.js","assets/play-D_7yfuao.css","assets/slidev/404-BFwhB7Bg.js","assets/404-BqRP-SCR.css"])))=>i.map(i=>d[i]); import{z as k,A as xo,B as dn,C as Fo,D as Vs,E as tt,G as Ho,H as jo,I as Bo,r as O,J as Us,K as ee,L as Gs,M as A,N as zo,O as Wo,o as Rt,e as pn,t as Vo,f as Qs,F as Uo,g as Qn,j as Go,P as T,Q as Cn,R as Qo,S as zt,p as Jo,T as Ko,U as Yo,V as Xo,W,X as Zo,Y as Js,Z as er,_ as tr,$ as Wt,a0 as nr,a1 as Ks,a2 as sr,a3 as or,a4 as rr,a5 as Ys,b as ar,a as ir,a6 as lr,a7 as cr,a8 as ur,a9 as fr,aa as hr,ab as dr,ac as pr,c as gr}from"./modules/vue-CZamTkmS.js";import{T as mr}from"./modules/shiki-COQlGosf.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const a of r.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();const q={theme:"default",title:"Time Series Foundation Models for Process Model Forecasting",titleTemplate:"%s - Slidev",addons:[],remoteAssets:!1,monaco:!0,monacoTypesSource:"local",monacoTypesAdditionalPackages:[],monacoTypesIgnorePackages:[],monacoRunAdditionalDeps:[],monacoRunUseStrict:!0,download:!1,export:{},info:`

CAiSE 2026 presentation — pmf-tsfm Yongbo Yu, Jari Peeperkorn, Johannes De Smedt, Jochen De Weerdt KU Leuven · LIRIS

@@ -429,7 +429,7 @@ hideInToc: true locator: Backup assertion: Multivariate gave no consistent gains over univariate `,note:"",index:29,noteHTML:`

speaker note: This was pre-empted on the DF-complexity slide — DF series are highly heterogeneous, so the cross-series attention that helps homogeneous panels does not transfer. Here it's reinforced with the actual experiment: we ran true multivariate inference on MOIRAI, MOIRAI-MoE, and Chronos-2 (all three support it natively), and saw no consistent improvement over univariate, matching Yu 2025. We don't claim multivariate is hopeless — only that off-the-shelf shared attention doesn't help at this scale; dedicated multivariate fine-tuning for PMF is the open direction.

-`,raw:"",frontmatter:je,filepath:"",start:1545,id:29,no:30},__clicksContext:null,__preloaded:!1}),$=new Array(30),C=(t,e)=>Qo({loader:e,delay:300,loadingComponent:aa,errorComponent:L,onError:n=>console.error("Failed to load slide "+(t+1),n)}),ts=async()=>{try{return $[0]??=await M(()=>import("./md-DmeGpXl3.js"),__vite__mapDeps([0,1,2,3,4,5]))}catch(t){return console.error("slide failed to load",t),L}},ns=async()=>{try{return $[1]??=await M(()=>import("./md-Dc-PbqDM.js"),__vite__mapDeps([6,7,1,2,8,9,10,11,3,4,12]))}catch(t){return console.error("slide failed to load",t),L}},ss=async()=>{try{return $[2]??=await M(()=>import("./md-2-_NAqid.js"),__vite__mapDeps([13,1,14,11,2,3,4,15]))}catch(t){return console.error("slide failed to load",t),L}},os=async()=>{try{return $[3]??=await M(()=>import("./md-idRyEHFL.js"),__vite__mapDeps([16,1,2,9,10,11,3,4,17]))}catch(t){return console.error("slide failed to load",t),L}},rs=async()=>{try{return $[4]??=await M(()=>import("./md-BFOngcN9.js"),__vite__mapDeps([18,1,10,11,2,3,4,19]))}catch(t){return console.error("slide failed to load",t),L}},as=async()=>{try{return $[5]??=await M(()=>import("./md-B1I1GQy8.js"),__vite__mapDeps([20,1,10,11,2,3,4,21]))}catch(t){return console.error("slide failed to load",t),L}},is=async()=>{try{return $[6]??=await M(()=>import("./md-jcv7dFDq.js"),__vite__mapDeps([22,7,1,2,8,10,11,3,4,23]))}catch(t){return console.error("slide failed to load",t),L}},ls=async()=>{try{return $[7]??=await M(()=>import("./md-DTwv1tMs.js"),__vite__mapDeps([24,7,1,2,8,10,11,3,4,25]))}catch(t){return console.error("slide failed to load",t),L}},cs=async()=>{try{return $[8]??=await M(()=>import("./md-BLel6lXo.js"),__vite__mapDeps([26,1,10,11,2,3,4,27]))}catch(t){return console.error("slide failed to load",t),L}},us=async()=>{try{return $[9]??=await M(()=>import("./md-DWphB_8g.js"),__vite__mapDeps([28,1,2,3,4,29]))}catch(t){return console.error("slide failed to load",t),L}},fs=async()=>{try{return $[10]??=await M(()=>import("./md-BmhR_QV9.js"),__vite__mapDeps([30,1,10,11,2,3,4,31]))}catch(t){return console.error("slide failed to load",t),L}},hs=async()=>{try{return $[11]??=await M(()=>import("./md-DMA1qHpL.js"),__vite__mapDeps([32,1,10,11,2,3,4,33]))}catch(t){return console.error("slide failed to load",t),L}},ds=async()=>{try{return $[12]??=await M(()=>import("./md-COiEB4Jk.js"),__vite__mapDeps([34,7,1,2,8,10,11,3,4]))}catch(t){return console.error("slide failed to load",t),L}},ps=async()=>{try{return $[13]??=await M(()=>import("./md-DqmAczud.js"),__vite__mapDeps([35,1,10,11,2,3,4,36]))}catch(t){return console.error("slide failed to load",t),L}},gs=async()=>{try{return $[14]??=await M(()=>import("./md-7wpyl-I0.js"),__vite__mapDeps([37,7,1,2,8,10,11,3,4]))}catch(t){return console.error("slide failed to load",t),L}},ms=async()=>{try{return $[15]??=await M(()=>import("./md-By7USaRF.js"),__vite__mapDeps([38,7,1,2,8,10,11,3,4]))}catch(t){return console.error("slide failed to load",t),L}},ys=async()=>{try{return $[16]??=await M(()=>import("./md-DIcVEpCI.js"),__vite__mapDeps([39,1,10,11,2,3,4,40]))}catch(t){return console.error("slide failed to load",t),L}},vs=async()=>{try{return $[17]??=await M(()=>import("./md-B0C6jHCs.js"),__vite__mapDeps([41,7,1,2,8,10,11,3,4,42]))}catch(t){return console.error("slide failed to load",t),L}},ws=async()=>{try{return $[18]??=await M(()=>import("./md-jiyB8QwP.js"),__vite__mapDeps([43,1,2,14,11,3,4,44]))}catch(t){return console.error("slide failed to load",t),L}},bs=async()=>{try{return $[19]??=await M(()=>import("./md-BvSHvUIS.js"),__vite__mapDeps([45,1,2,3,4,46]))}catch(t){return console.error("slide failed to load",t),L}},ks=async()=>{try{return $[20]??=await M(()=>import("./md-Bk1O0Wcq.js"),__vite__mapDeps([47,1,10,11,2,3,4]))}catch(t){return console.error("slide failed to load",t),L}},_s=async()=>{try{return $[21]??=await M(()=>import("./md-CuTJ0ECW.js"),__vite__mapDeps([48,7,1,2,8,10,11,3,4]))}catch(t){return console.error("slide failed to load",t),L}},Ss=async()=>{try{return $[22]??=await M(()=>import("./md-CmeCqFHV.js"),__vite__mapDeps([49,7,1,2,8,10,11,3,4]))}catch(t){return console.error("slide failed to load",t),L}},Ms=async()=>{try{return $[23]??=await M(()=>import("./md-nTG-yQvE.js"),__vite__mapDeps([50,7,1,2,8,10,11,3,4]))}catch(t){return console.error("slide failed to load",t),L}},Ts=async()=>{try{return $[24]??=await M(()=>import("./md-BY0chVOS.js"),__vite__mapDeps([51,7,1,2,8,10,11,3,4]))}catch(t){return console.error("slide failed to load",t),L}},Es=async()=>{try{return $[25]??=await M(()=>import("./md-BI5KNNjZ.js"),__vite__mapDeps([52,1,10,11,2,3,4]))}catch(t){return console.error("slide failed to load",t),L}},Os=async()=>{try{return $[26]??=await M(()=>import("./md-DZhFsmU6.js"),__vite__mapDeps([53,7,1,2,8,10,11,3,4]))}catch(t){return console.error("slide failed to load",t),L}},As=async()=>{try{return $[27]??=await M(()=>import("./md-rLkBbld3.js"),__vite__mapDeps([54,7,1,2,8,10,11,3,4]))}catch(t){return console.error("slide failed to load",t),L}},Ls=async()=>{try{return $[28]??=await M(()=>import("./md-B1UxDSPD.js"),__vite__mapDeps([55,1,10,11,2,3,4]))}catch(t){return console.error("slide failed to load",t),L}},Ps=async()=>{try{return $[29]??=await M(()=>import("./md-DjtU-WpW.js"),__vite__mapDeps([56,7,1,2,8,10,11,3,4]))}catch(t){return console.error("slide failed to load",t),L}},di=[{no:1,meta:la,load:ts,component:C(0,ts)},{no:2,meta:ua,load:ns,component:C(1,ns)},{no:3,meta:ha,load:ss,component:C(2,ss)},{no:4,meta:pa,load:os,component:C(3,os)},{no:5,meta:ma,load:rs,component:C(4,rs)},{no:6,meta:va,load:as,component:C(5,as)},{no:7,meta:ba,load:is,component:C(6,is)},{no:8,meta:_a,load:ls,component:C(7,ls)},{no:9,meta:Ma,load:cs,component:C(8,cs)},{no:10,meta:Ea,load:us,component:C(9,us)},{no:11,meta:Aa,load:fs,component:C(10,fs)},{no:12,meta:Pa,load:hs,component:C(11,hs)},{no:13,meta:$a,load:ds,component:C(12,ds)},{no:14,meta:Ia,load:ps,component:C(13,ps)},{no:15,meta:Na,load:gs,component:C(14,gs)},{no:16,meta:xa,load:ms,component:C(15,ms)},{no:17,meta:Ha,load:ys,component:C(16,ys)},{no:18,meta:Ba,load:vs,component:C(17,vs)},{no:19,meta:Wa,load:ws,component:C(18,ws)},{no:20,meta:Ua,load:bs,component:C(19,bs)},{no:21,meta:Qa,load:ks,component:C(20,ks)},{no:22,meta:Ka,load:_s,component:C(21,_s)},{no:23,meta:Xa,load:Ss,component:C(22,Ss)},{no:24,meta:ei,load:Ms,component:C(23,Ms)},{no:25,meta:ni,load:Ts,component:C(24,Ts)},{no:26,meta:oi,load:Es,component:C(25,Es)},{no:27,meta:ai,load:Os,component:C(26,Os)},{no:28,meta:li,load:As,component:C(27,As)},{no:29,meta:ui,load:Ls,component:C(28,Ls)},{no:30,meta:hi,load:Ps,component:C(29,Ps)}],se=Cn(di);function bc(t){if(typeof t=="number")return{seconds:t,relative:!1};const e=t.startsWith("+");e&&(t=t.slice(1));let n=0;if(t.includes(":")){const s=t.split(":").map(Number);let o=0,r=0,a=0;if(s.length===3)o=s[0],r=s[1],a=s[2];else if(s.length===2)r=s[0],a=s[1];else if(s.length===1)a=s[0];else throw new TypeError("Invalid timestamp format");if(Number.isNaN(o)||Number.isNaN(r)||Number.isNaN(a))throw new TypeError("Invalid timestamp format");n=(o||0)*3600+(r||0)*60+(a||0)}else if(!t.match(/[a-z]/i))n=Number(t);else{const s={s:1,sec:1,secs:1,m:60,min:60,mins:60,h:3600,hr:3600,hrs:3600,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:2629746,months:2629746,year:31556952,years:31556952},o=/([\d.]+)([a-z]+)/gi,r=t.matchAll(o);if(r)for(const i of r){const l=Number(i[1]);if(Number.isNaN(l))throw new TypeError(`Invalid timestamp value: ${i[1]}`);const c=i[2].toLowerCase();if(!(c in s))throw new TypeError(`Invalid timestamp unit: ${c}`);n+=l*s[c]}const a=t.replace(o,"").trim();if(a)throw new TypeError(`Unknown timestamp remaining: ${a}`)}return{seconds:n,relative:e}}function pi(t,e){if(!e||e==="all"||e==="*")return Jn(1,t+1);if(e==="none")return[];const n=[];for(const s of e.split(/[,;]/g))if(!s.includes("-"))n.push(+s);else{const[o,r]=s.split("-",2);n.push(...Jn(+o,r?+r+1:t+1))}return br(n).filter(s=>s<=t).sort((s,o)=>s-o)}const Vt="$$slidev-clicks-context",$n="$$slidev-page",io="$$slidev-slide-element",gi="$$slidev-slide-scale",mi="$$slidev-context",kc="$$slidev-route",Rn="$$slidev-render-context",yi="$$slidev-fontmatter",vi="$$slidev-slide-zoom",Et="slidev-vclick-target",at="slidev-vclick-hidden",it="slidev-vclick-fade",tn="slidev-vclick-hidden-explicitly",nn="slidev-vclick-current",sn="slidev-vclick-prior",Ot=999999,wi=["localhost","127.0.0.1"],bi=["clicks","clicksStart","disabled","hide","hideInToc","layout","level","preload","routeAlias","src","title","transition","zoom","dragPos","lang"],_c=[...bi,"theme","titleTemplate","info","author","keywords","presenter","browserExporter","download","exportFilename","export","highlighter","lineNumbers","monaco","monacoTypesSource","monacoTypesAdditionalPackages","monacoRunAdditionalDeps","monacoRunUseStrict","remoteAssets","selectable","record","colorSchema","routerMode","aspectRatio","canvasWidth","themeConfig","favicon","plantUmlServer","fonts","defaults","drawings","htmlAttrs","mdc","comark","contextMenu","wakeLock","seoMeta","notesAutoRuby","magicMoveDuration","preloadImages"];function ki(t,e,{mode:n="replace"}={}){const s=zt();return k({get(){const o=s.currentRoute.value.query[t];return o==null?e:Array.isArray(o)?o.filter(Boolean):o},set(o){Jo(()=>{(s.currentRoute.value.query[t]??e?.toString())!==o.toString()&&s[Ko(n)]({query:{...s.currentRoute.value.query,[t]:`${o}`===e?void 0:o}})})}})}function Ut(t){return se.value.find(e=>e.no===+t||e.meta.slide?.frontmatter.routeAlias===t)}function Ye(t,e,n=!1){(typeof t=="number"||typeof t=="string")&&(t=Ut(t));const s=t.meta.slide?.frontmatter.routeAlias??t.no;return n?`/export/${s}`:e?`/presenter/${s}`:`/${s}`}const _i={"slide-left":"slide-left | slide-right","slide-right":"slide-right | slide-left","slide-up":"slide-up | slide-down","slide-down":"slide-down | slide-up"};function Si(t,e=!1){if(!t||(typeof t=="string"&&(t={name:t}),!t.name))return;let n=t.name.includes("|")?t.name:_i[t.name]||t.name;if(n.includes("|")){const[s,o]=n.split("|").map(r=>r.trim());n=e?o:s}if(n)return{...t,name:n}}function Mi(t,e,n){let s=t>0?n?.meta?.transition:e?.meta?.transition;return s||(s=q.transition||void 0),Si(s,t<0)}const Sc=O(!1),Mc=O(!1),Tc=O(!1),Ti=O(!1),In=O(!1),Ec=O(!1),Oc=O(!0),Ei=T(new Set),Ac=k(()=>Ei.size>0),Lc=Zo({xs:460,...tr}),Dt=nr(),Pc=Yo(),Cc=k(()=>Dt.height.value-Dt.width.value/Xs.value>120),$c=Xo(Wt?document.body:null),lo=er(),Rc=k(()=>["INPUT","TEXTAREA"].includes(lo.value?.tagName||"")),Ic=k(()=>["BUTTON","A"].includes(lo.value?.tagName||""));W("slidev-camera","default",{listenToStorageChanges:!1});W("slidev-mic","default",{listenToStorageChanges:!1});const Oi=W("slidev-scale",0),Dc=W("slidev-wake-lock",!0),Nc=W("slidev-hide-cursor-idle",!0);W("slidev-skip-export-pdf-tip",!1);W("slidev-export-capture-delay",400,{listenToStorageChanges:!1});const qc=W("slidev-presenter-cursor",!0,{listenToStorageChanges:!1}),Ai=W("slidev-show-editor",!1,{listenToStorageChanges:!1}),Li=W("slidev-editor-vertical",!1,{listenToStorageChanges:!1}),Pi=W("slidev-editor-width",Wt?window.innerWidth*.4:318,{listenToStorageChanges:!1}),Ci=W("slidev-editor-height",Wt?window.innerHeight*.4:300,{listenToStorageChanges:!1}),vt=Cn(null),Nt=W("slidev-presenter-font-size",1,{listenToStorageChanges:!1}),wt=W("slidev-presenter-layout",1,{listenToStorageChanges:!1}),bn={invert:!1,contrast:1,brightness:1,hueRotate:0,saturate:1,sepia:0},$i=W("slidev-viewer-css-filter",bn,{listenToStorageChanges:!1,mergeDefaults:!0,deep:!0}),xc=k(()=>Object.keys(bn).some(t=>$i.value[t]!==bn[t]));function Fc(){wt.value=wt.value+1,wt.value>3&&(wt.value=1)}function Hc(){Nt.value=Math.min(2,Nt.value+.1)}function jc(){Nt.value=Math.max(.5,Nt.value-.1)}const Bc=Js(Ti),bt=W("slidev-sync-directions",{viewerSend:!0,viewerReceive:!0,presenterSend:!0,presenterReceive:!0},{listenToStorageChanges:!1,mergeDefaults:!0});function co(t,e,n=1){const s=e.meta.slide.level??n;s&&s>n&&t.length>0?co(t[t.length-1].children,e,n+1):t.push({no:e.no,children:[],level:n,titleLevel:s,path:Ye(e.meta.slide?.frontmatter?.routeAlias??e.no,!1),hideInToc:!!e.meta?.slide?.frontmatter?.hideInToc,title:e.meta?.slide?.title})}function uo(t,e,n=!1,s,o){return t.map(r=>{const a={...r,active:r.no===o?.value,hasActiveParent:n};return a.children.length>0&&(a.children=uo(a.children,e,a.active||a.hasActiveParent,a,o)),s&&(a.active||a.activeParent)&&(s.activeParent=!0),a})}function fo(t,e=1){return t.filter(n=>!n.hideInToc).map(n=>({...n,children:fo(n.children,e+1)}))}function Ri(t,e,n){const s=k(()=>t.value.filter(r=>r.meta?.slide?.title).reduce((r,a)=>(co(r,a),r),[])),o=k(()=>uo(s.value,n.value,void 0,void 0,e));return k(()=>fo(o.value))}function Ii(t,e,n=O(0),s,o,r){const a=k(()=>se.value.length),i=O(0),l=O(0),c=k(()=>Ye(t.value,s.value)),f=k(()=>t.value.no),d=k(()=>t.value.meta?.layout||(f.value===1?"cover":"default")),h=k(()=>e.value.current),u=k(()=>e.value.clicksStart),g=k(()=>e.value.total),p=k(()=>se.value[Math.min(se.value.length,f.value+1)-1]),m=k(()=>se.value[Math.max(1,f.value-1)-1]),y=k(()=>f.valuef.value>1||h.value>0),w=k(()=>o.value?void 0:Mi(i.value,t.value,m.value));ee(t,(F,D)=>{i.value=F.no-D.no});async function b(F){return!1}const _=Ri(se,f,t);async function P(){l.value=1,g.value<=n.value?await j():n.value+=1}async function I(){l.value=-1,n.value<=u.value?await U(!0):n.value-=1}async function j(F=!1){l.value=1,f.value1&&await E(f.value-1,F&&!o.value?Ot:void 0)}function le(){return E(1)}function X(){return E(a.value)}async function E(F,D=0,ae=!1){In.value=!1;const ce=f.value!==F,ot=D!==n.value,J=Ut(F)?.meta,x=J?.slide?.frontmatter.clicksStart??0;D=gn(D,x,J?.__clicksContext?.total??Ot),(ae||ce||ot)&&await r?.push({path:Ye(F,s.value,r.currentRoute.value.name==="export"),query:{...r.currentRoute.value.query,clicks:D===0?void 0:D.toString(),embedded:location.search.includes("embedded")?"true":void 0}})}function R(){r?.push({path:Ye(f.value,!0),query:{...r.currentRoute.value.query}})}function B(){r?.push({path:Ye(f.value,!1),query:{...r.currentRoute.value.query}})}return{slides:se,total:a,currentPath:c,currentSlideNo:f,currentPage:f,currentSlideRoute:t,currentLayout:d,currentTransition:w,clicksDirection:l,nextRoute:p,prevRoute:m,clicksContext:e,clicks:h,clicksStart:u,clicksTotal:g,hasNext:y,hasPrev:v,tocTree:_,navDirection:i,openInEditor:b,next:P,prev:I,go:E,goLast:X,goFirst:le,nextSlide:j,prevSlide:U,enterPresenter:R,exitPresenter:B}}const Di=Ks(()=>{const t=zt(),e=sr(),n=k(()=>(t?.currentRoute?.value?.query,new URLSearchParams(location.search))),s=k(()=>n.value.has("print")||e.name==="export"),o=O(n.value.get("print")==="clicks"),r=k(()=>n.value.has("embedded")),a=k(()=>e.name==="play"),i=k(()=>e.name==="presenter"),l=k(()=>e.name==="notes"),c=k(()=>!i.value&&(!q.remote||n.value.get("password")===q.remote)),f=k(()=>!!e.params.no),d=k(()=>f.value?Ut(e.params.no)?.no??1:1),h=k(()=>se.value[d.value-1]),u=O(pi(se.value.length,e?.query?.range)),g=ki("clicks","0"),p=k(()=>y(h.value)),m=k({get(){let v=+(g.value||0);return Number.isNaN(v)&&(v=0),v},set(v){In.value=!1,g.value=v.toString()}});function y(v){if(v?.meta?.__clicksContext)return v.meta.__clicksContext;const w=v.no,b=ao(k({get(){return d.value===w?Math.max(+(g.value??0),b.clicksStart):d.value>w?Ot:b.clicksStart},set(_){d.value===w&&(g.value=_.toString())}}),v?.meta.slide?.frontmatter.clicksStart??0,v?.meta.clicks);return v?.meta&&(v.meta.__clicksContext=b),b}return{router:t,currentRoute:k(()=>e),isPrintMode:s,isPrintWithClicks:o,isEmbedded:r,isPlaying:a,isPresenter:i,isNotesViewer:l,isPresenterAvailable:c,hasPrimarySlide:f,currentSlideNo:d,currentSlideRoute:h,clicksContext:p,queryClicksRaw:g,queryClicks:m,printRange:u,getPrimaryClicks:y}}),st=Ks(()=>{const t=Di(),e=zt(),n=Ii(t.currentSlideRoute,t.clicksContext,t.queryClicks,t.isPresenter,t.isPrintMode,e);return ee([n.total,t.currentRoute],async()=>{const s=t.currentRoute.value.params.no;t.hasPrimarySlide.value&&!Ut(s)&&(s&&s!=="index.html"?await n.go(n.total.value,0,!0):await n.go(1,0,!0))},{flush:"pre",immediate:!0}),{...n,...t}}),Cs=or(),on=W("slidev-color-schema","auto"),$s=k(()=>q.colorSchema!=="auto"),ho=k({get(){return $s.value?q.colorSchema==="dark":on.value==="auto"?Cs.value:on.value==="dark"},set(t){$s.value||(on.value=t===Cs.value?"auto":t?"dark":"light")}}),zc=Js(ho);if(Wt){const t="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";ee(ho,e=>{const n=window.document.createElement("style");n.appendChild(document.createTextNode(t)),window.document.head.appendChild(n);const s=document.querySelector("html");s.classList.toggle("dark",e),s.classList.toggle("light",!e),window.getComputedStyle(n).opacity,document.head.removeChild(n)},{immediate:!0})}function Ni(){const{isPrintMode:t}=st();rr(k(()=>t.value?` +`,raw:"",frontmatter:je,filepath:"",start:1545,id:29,no:30},__clicksContext:null,__preloaded:!1}),$=new Array(30),C=(t,e)=>Qo({loader:e,delay:300,loadingComponent:aa,errorComponent:L,onError:n=>console.error("Failed to load slide "+(t+1),n)}),ts=async()=>{try{return $[0]??=await M(()=>import("./md-CQBJYljb.js"),__vite__mapDeps([0,1,2,3,4,5]))}catch(t){return console.error("slide failed to load",t),L}},ns=async()=>{try{return $[1]??=await M(()=>import("./md-ZwnkpR5j.js"),__vite__mapDeps([6,7,1,2,8,9,10,11,3,4,12]))}catch(t){return console.error("slide failed to load",t),L}},ss=async()=>{try{return $[2]??=await M(()=>import("./md-KwgLmFjp.js"),__vite__mapDeps([13,1,14,11,2,3,4,15]))}catch(t){return console.error("slide failed to load",t),L}},os=async()=>{try{return $[3]??=await M(()=>import("./md-wsTnYcR5.js"),__vite__mapDeps([16,1,2,9,10,11,3,4,17]))}catch(t){return console.error("slide failed to load",t),L}},rs=async()=>{try{return $[4]??=await M(()=>import("./md-BBEPGRJn.js"),__vite__mapDeps([18,1,10,11,2,3,4,19]))}catch(t){return console.error("slide failed to load",t),L}},as=async()=>{try{return $[5]??=await M(()=>import("./md-Bpf-ls04.js"),__vite__mapDeps([20,1,10,11,2,3,4,21]))}catch(t){return console.error("slide failed to load",t),L}},is=async()=>{try{return $[6]??=await M(()=>import("./md-mAYixMWd.js"),__vite__mapDeps([22,7,1,2,8,10,11,3,4,23]))}catch(t){return console.error("slide failed to load",t),L}},ls=async()=>{try{return $[7]??=await M(()=>import("./md-dZq5p6Bn.js"),__vite__mapDeps([24,7,1,2,8,10,11,3,4,25]))}catch(t){return console.error("slide failed to load",t),L}},cs=async()=>{try{return $[8]??=await M(()=>import("./md-CxyPjZjU.js"),__vite__mapDeps([26,1,10,11,2,3,4,27]))}catch(t){return console.error("slide failed to load",t),L}},us=async()=>{try{return $[9]??=await M(()=>import("./md-PQiRBmeA.js"),__vite__mapDeps([28,1,2,3,4,29]))}catch(t){return console.error("slide failed to load",t),L}},fs=async()=>{try{return $[10]??=await M(()=>import("./md-Czx4xdSf.js"),__vite__mapDeps([30,1,10,11,2,3,4,31]))}catch(t){return console.error("slide failed to load",t),L}},hs=async()=>{try{return $[11]??=await M(()=>import("./md-CKLGNKcA.js"),__vite__mapDeps([32,1,10,11,2,3,4,33]))}catch(t){return console.error("slide failed to load",t),L}},ds=async()=>{try{return $[12]??=await M(()=>import("./md-7PDNlaoV.js"),__vite__mapDeps([34,7,1,2,8,10,11,3,4]))}catch(t){return console.error("slide failed to load",t),L}},ps=async()=>{try{return $[13]??=await M(()=>import("./md-D33qndAU.js"),__vite__mapDeps([35,1,10,11,2,3,4,36]))}catch(t){return console.error("slide failed to load",t),L}},gs=async()=>{try{return $[14]??=await M(()=>import("./md-B8NyDvYk.js"),__vite__mapDeps([37,7,1,2,8,10,11,3,4]))}catch(t){return console.error("slide failed to load",t),L}},ms=async()=>{try{return $[15]??=await M(()=>import("./md-Dw7OShh3.js"),__vite__mapDeps([38,7,1,2,8,10,11,3,4]))}catch(t){return console.error("slide failed to load",t),L}},ys=async()=>{try{return $[16]??=await M(()=>import("./md-BMWHI9-X.js"),__vite__mapDeps([39,1,10,11,2,3,4,40]))}catch(t){return console.error("slide failed to load",t),L}},vs=async()=>{try{return $[17]??=await M(()=>import("./md-BM1BCY1p.js"),__vite__mapDeps([41,7,1,2,8,10,11,3,4,42]))}catch(t){return console.error("slide failed to load",t),L}},ws=async()=>{try{return $[18]??=await M(()=>import("./md-v0HCTDOQ.js"),__vite__mapDeps([43,1,2,14,11,3,4,44]))}catch(t){return console.error("slide failed to load",t),L}},bs=async()=>{try{return $[19]??=await M(()=>import("./md-D5MfDGpq.js"),__vite__mapDeps([45,1,2,3,4,46]))}catch(t){return console.error("slide failed to load",t),L}},ks=async()=>{try{return $[20]??=await M(()=>import("./md-CzcunVWZ.js"),__vite__mapDeps([47,1,10,11,2,3,4]))}catch(t){return console.error("slide failed to load",t),L}},_s=async()=>{try{return $[21]??=await M(()=>import("./md-sNK_Cw7C.js"),__vite__mapDeps([48,7,1,2,8,10,11,3,4]))}catch(t){return console.error("slide failed to load",t),L}},Ss=async()=>{try{return $[22]??=await M(()=>import("./md-lOx-aq1b.js"),__vite__mapDeps([49,7,1,2,8,10,11,3,4]))}catch(t){return console.error("slide failed to load",t),L}},Ms=async()=>{try{return $[23]??=await M(()=>import("./md-BSI6HPQb.js"),__vite__mapDeps([50,7,1,2,8,10,11,3,4]))}catch(t){return console.error("slide failed to load",t),L}},Ts=async()=>{try{return $[24]??=await M(()=>import("./md-Bn7Qx5kc.js"),__vite__mapDeps([51,7,1,2,8,10,11,3,4]))}catch(t){return console.error("slide failed to load",t),L}},Es=async()=>{try{return $[25]??=await M(()=>import("./md-BW7tv8wC.js"),__vite__mapDeps([52,1,10,11,2,3,4]))}catch(t){return console.error("slide failed to load",t),L}},Os=async()=>{try{return $[26]??=await M(()=>import("./md-PNN-aPN9.js"),__vite__mapDeps([53,7,1,2,8,10,11,3,4]))}catch(t){return console.error("slide failed to load",t),L}},As=async()=>{try{return $[27]??=await M(()=>import("./md-ChS77cA2.js"),__vite__mapDeps([54,7,1,2,8,10,11,3,4]))}catch(t){return console.error("slide failed to load",t),L}},Ls=async()=>{try{return $[28]??=await M(()=>import("./md-CTDIE4oQ.js"),__vite__mapDeps([55,1,10,11,2,3,4]))}catch(t){return console.error("slide failed to load",t),L}},Ps=async()=>{try{return $[29]??=await M(()=>import("./md-923VPEbh.js"),__vite__mapDeps([56,7,1,2,8,10,11,3,4]))}catch(t){return console.error("slide failed to load",t),L}},di=[{no:1,meta:la,load:ts,component:C(0,ts)},{no:2,meta:ua,load:ns,component:C(1,ns)},{no:3,meta:ha,load:ss,component:C(2,ss)},{no:4,meta:pa,load:os,component:C(3,os)},{no:5,meta:ma,load:rs,component:C(4,rs)},{no:6,meta:va,load:as,component:C(5,as)},{no:7,meta:ba,load:is,component:C(6,is)},{no:8,meta:_a,load:ls,component:C(7,ls)},{no:9,meta:Ma,load:cs,component:C(8,cs)},{no:10,meta:Ea,load:us,component:C(9,us)},{no:11,meta:Aa,load:fs,component:C(10,fs)},{no:12,meta:Pa,load:hs,component:C(11,hs)},{no:13,meta:$a,load:ds,component:C(12,ds)},{no:14,meta:Ia,load:ps,component:C(13,ps)},{no:15,meta:Na,load:gs,component:C(14,gs)},{no:16,meta:xa,load:ms,component:C(15,ms)},{no:17,meta:Ha,load:ys,component:C(16,ys)},{no:18,meta:Ba,load:vs,component:C(17,vs)},{no:19,meta:Wa,load:ws,component:C(18,ws)},{no:20,meta:Ua,load:bs,component:C(19,bs)},{no:21,meta:Qa,load:ks,component:C(20,ks)},{no:22,meta:Ka,load:_s,component:C(21,_s)},{no:23,meta:Xa,load:Ss,component:C(22,Ss)},{no:24,meta:ei,load:Ms,component:C(23,Ms)},{no:25,meta:ni,load:Ts,component:C(24,Ts)},{no:26,meta:oi,load:Es,component:C(25,Es)},{no:27,meta:ai,load:Os,component:C(26,Os)},{no:28,meta:li,load:As,component:C(27,As)},{no:29,meta:ui,load:Ls,component:C(28,Ls)},{no:30,meta:hi,load:Ps,component:C(29,Ps)}],se=Cn(di);function bc(t){if(typeof t=="number")return{seconds:t,relative:!1};const e=t.startsWith("+");e&&(t=t.slice(1));let n=0;if(t.includes(":")){const s=t.split(":").map(Number);let o=0,r=0,a=0;if(s.length===3)o=s[0],r=s[1],a=s[2];else if(s.length===2)r=s[0],a=s[1];else if(s.length===1)a=s[0];else throw new TypeError("Invalid timestamp format");if(Number.isNaN(o)||Number.isNaN(r)||Number.isNaN(a))throw new TypeError("Invalid timestamp format");n=(o||0)*3600+(r||0)*60+(a||0)}else if(!t.match(/[a-z]/i))n=Number(t);else{const s={s:1,sec:1,secs:1,m:60,min:60,mins:60,h:3600,hr:3600,hrs:3600,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:2629746,months:2629746,year:31556952,years:31556952},o=/([\d.]+)([a-z]+)/gi,r=t.matchAll(o);if(r)for(const i of r){const l=Number(i[1]);if(Number.isNaN(l))throw new TypeError(`Invalid timestamp value: ${i[1]}`);const c=i[2].toLowerCase();if(!(c in s))throw new TypeError(`Invalid timestamp unit: ${c}`);n+=l*s[c]}const a=t.replace(o,"").trim();if(a)throw new TypeError(`Unknown timestamp remaining: ${a}`)}return{seconds:n,relative:e}}function pi(t,e){if(!e||e==="all"||e==="*")return Jn(1,t+1);if(e==="none")return[];const n=[];for(const s of e.split(/[,;]/g))if(!s.includes("-"))n.push(+s);else{const[o,r]=s.split("-",2);n.push(...Jn(+o,r?+r+1:t+1))}return br(n).filter(s=>s<=t).sort((s,o)=>s-o)}const Vt="$$slidev-clicks-context",$n="$$slidev-page",io="$$slidev-slide-element",gi="$$slidev-slide-scale",mi="$$slidev-context",kc="$$slidev-route",Rn="$$slidev-render-context",yi="$$slidev-fontmatter",vi="$$slidev-slide-zoom",Et="slidev-vclick-target",at="slidev-vclick-hidden",it="slidev-vclick-fade",tn="slidev-vclick-hidden-explicitly",nn="slidev-vclick-current",sn="slidev-vclick-prior",Ot=999999,wi=["localhost","127.0.0.1"],bi=["clicks","clicksStart","disabled","hide","hideInToc","layout","level","preload","routeAlias","src","title","transition","zoom","dragPos","lang"],_c=[...bi,"theme","titleTemplate","info","author","keywords","presenter","browserExporter","download","exportFilename","export","highlighter","lineNumbers","monaco","monacoTypesSource","monacoTypesAdditionalPackages","monacoRunAdditionalDeps","monacoRunUseStrict","remoteAssets","selectable","record","colorSchema","routerMode","aspectRatio","canvasWidth","themeConfig","favicon","plantUmlServer","fonts","defaults","drawings","htmlAttrs","mdc","comark","contextMenu","wakeLock","seoMeta","notesAutoRuby","magicMoveDuration","preloadImages"];function ki(t,e,{mode:n="replace"}={}){const s=zt();return k({get(){const o=s.currentRoute.value.query[t];return o==null?e:Array.isArray(o)?o.filter(Boolean):o},set(o){Jo(()=>{(s.currentRoute.value.query[t]??e?.toString())!==o.toString()&&s[Ko(n)]({query:{...s.currentRoute.value.query,[t]:`${o}`===e?void 0:o}})})}})}function Ut(t){return se.value.find(e=>e.no===+t||e.meta.slide?.frontmatter.routeAlias===t)}function Ye(t,e,n=!1){(typeof t=="number"||typeof t=="string")&&(t=Ut(t));const s=t.meta.slide?.frontmatter.routeAlias??t.no;return n?`/export/${s}`:e?`/presenter/${s}`:`/${s}`}const _i={"slide-left":"slide-left | slide-right","slide-right":"slide-right | slide-left","slide-up":"slide-up | slide-down","slide-down":"slide-down | slide-up"};function Si(t,e=!1){if(!t||(typeof t=="string"&&(t={name:t}),!t.name))return;let n=t.name.includes("|")?t.name:_i[t.name]||t.name;if(n.includes("|")){const[s,o]=n.split("|").map(r=>r.trim());n=e?o:s}if(n)return{...t,name:n}}function Mi(t,e,n){let s=t>0?n?.meta?.transition:e?.meta?.transition;return s||(s=q.transition||void 0),Si(s,t<0)}const Sc=O(!1),Mc=O(!1),Tc=O(!1),Ti=O(!1),In=O(!1),Ec=O(!1),Oc=O(!0),Ei=T(new Set),Ac=k(()=>Ei.size>0),Lc=Zo({xs:460,...tr}),Dt=nr(),Pc=Yo(),Cc=k(()=>Dt.height.value-Dt.width.value/Xs.value>120),$c=Xo(Wt?document.body:null),lo=er(),Rc=k(()=>["INPUT","TEXTAREA"].includes(lo.value?.tagName||"")),Ic=k(()=>["BUTTON","A"].includes(lo.value?.tagName||""));W("slidev-camera","default",{listenToStorageChanges:!1});W("slidev-mic","default",{listenToStorageChanges:!1});const Oi=W("slidev-scale",0),Dc=W("slidev-wake-lock",!0),Nc=W("slidev-hide-cursor-idle",!0);W("slidev-skip-export-pdf-tip",!1);W("slidev-export-capture-delay",400,{listenToStorageChanges:!1});const qc=W("slidev-presenter-cursor",!0,{listenToStorageChanges:!1}),Ai=W("slidev-show-editor",!1,{listenToStorageChanges:!1}),Li=W("slidev-editor-vertical",!1,{listenToStorageChanges:!1}),Pi=W("slidev-editor-width",Wt?window.innerWidth*.4:318,{listenToStorageChanges:!1}),Ci=W("slidev-editor-height",Wt?window.innerHeight*.4:300,{listenToStorageChanges:!1}),vt=Cn(null),Nt=W("slidev-presenter-font-size",1,{listenToStorageChanges:!1}),wt=W("slidev-presenter-layout",1,{listenToStorageChanges:!1}),bn={invert:!1,contrast:1,brightness:1,hueRotate:0,saturate:1,sepia:0},$i=W("slidev-viewer-css-filter",bn,{listenToStorageChanges:!1,mergeDefaults:!0,deep:!0}),xc=k(()=>Object.keys(bn).some(t=>$i.value[t]!==bn[t]));function Fc(){wt.value=wt.value+1,wt.value>3&&(wt.value=1)}function Hc(){Nt.value=Math.min(2,Nt.value+.1)}function jc(){Nt.value=Math.max(.5,Nt.value-.1)}const Bc=Js(Ti),bt=W("slidev-sync-directions",{viewerSend:!0,viewerReceive:!0,presenterSend:!0,presenterReceive:!0},{listenToStorageChanges:!1,mergeDefaults:!0});function co(t,e,n=1){const s=e.meta.slide.level??n;s&&s>n&&t.length>0?co(t[t.length-1].children,e,n+1):t.push({no:e.no,children:[],level:n,titleLevel:s,path:Ye(e.meta.slide?.frontmatter?.routeAlias??e.no,!1),hideInToc:!!e.meta?.slide?.frontmatter?.hideInToc,title:e.meta?.slide?.title})}function uo(t,e,n=!1,s,o){return t.map(r=>{const a={...r,active:r.no===o?.value,hasActiveParent:n};return a.children.length>0&&(a.children=uo(a.children,e,a.active||a.hasActiveParent,a,o)),s&&(a.active||a.activeParent)&&(s.activeParent=!0),a})}function fo(t,e=1){return t.filter(n=>!n.hideInToc).map(n=>({...n,children:fo(n.children,e+1)}))}function Ri(t,e,n){const s=k(()=>t.value.filter(r=>r.meta?.slide?.title).reduce((r,a)=>(co(r,a),r),[])),o=k(()=>uo(s.value,n.value,void 0,void 0,e));return k(()=>fo(o.value))}function Ii(t,e,n=O(0),s,o,r){const a=k(()=>se.value.length),i=O(0),l=O(0),c=k(()=>Ye(t.value,s.value)),f=k(()=>t.value.no),d=k(()=>t.value.meta?.layout||(f.value===1?"cover":"default")),h=k(()=>e.value.current),u=k(()=>e.value.clicksStart),g=k(()=>e.value.total),p=k(()=>se.value[Math.min(se.value.length,f.value+1)-1]),m=k(()=>se.value[Math.max(1,f.value-1)-1]),y=k(()=>f.valuef.value>1||h.value>0),w=k(()=>o.value?void 0:Mi(i.value,t.value,m.value));ee(t,(F,D)=>{i.value=F.no-D.no});async function b(F){return!1}const _=Ri(se,f,t);async function P(){l.value=1,g.value<=n.value?await j():n.value+=1}async function I(){l.value=-1,n.value<=u.value?await U(!0):n.value-=1}async function j(F=!1){l.value=1,f.value1&&await E(f.value-1,F&&!o.value?Ot:void 0)}function le(){return E(1)}function X(){return E(a.value)}async function E(F,D=0,ae=!1){In.value=!1;const ce=f.value!==F,ot=D!==n.value,J=Ut(F)?.meta,x=J?.slide?.frontmatter.clicksStart??0;D=gn(D,x,J?.__clicksContext?.total??Ot),(ae||ce||ot)&&await r?.push({path:Ye(F,s.value,r.currentRoute.value.name==="export"),query:{...r.currentRoute.value.query,clicks:D===0?void 0:D.toString(),embedded:location.search.includes("embedded")?"true":void 0}})}function R(){r?.push({path:Ye(f.value,!0),query:{...r.currentRoute.value.query}})}function B(){r?.push({path:Ye(f.value,!1),query:{...r.currentRoute.value.query}})}return{slides:se,total:a,currentPath:c,currentSlideNo:f,currentPage:f,currentSlideRoute:t,currentLayout:d,currentTransition:w,clicksDirection:l,nextRoute:p,prevRoute:m,clicksContext:e,clicks:h,clicksStart:u,clicksTotal:g,hasNext:y,hasPrev:v,tocTree:_,navDirection:i,openInEditor:b,next:P,prev:I,go:E,goLast:X,goFirst:le,nextSlide:j,prevSlide:U,enterPresenter:R,exitPresenter:B}}const Di=Ks(()=>{const t=zt(),e=sr(),n=k(()=>(t?.currentRoute?.value?.query,new URLSearchParams(location.search))),s=k(()=>n.value.has("print")||e.name==="export"),o=O(n.value.get("print")==="clicks"),r=k(()=>n.value.has("embedded")),a=k(()=>e.name==="play"),i=k(()=>e.name==="presenter"),l=k(()=>e.name==="notes"),c=k(()=>!i.value&&(!q.remote||n.value.get("password")===q.remote)),f=k(()=>!!e.params.no),d=k(()=>f.value?Ut(e.params.no)?.no??1:1),h=k(()=>se.value[d.value-1]),u=O(pi(se.value.length,e?.query?.range)),g=ki("clicks","0"),p=k(()=>y(h.value)),m=k({get(){let v=+(g.value||0);return Number.isNaN(v)&&(v=0),v},set(v){In.value=!1,g.value=v.toString()}});function y(v){if(v?.meta?.__clicksContext)return v.meta.__clicksContext;const w=v.no,b=ao(k({get(){return d.value===w?Math.max(+(g.value??0),b.clicksStart):d.value>w?Ot:b.clicksStart},set(_){d.value===w&&(g.value=_.toString())}}),v?.meta.slide?.frontmatter.clicksStart??0,v?.meta.clicks);return v?.meta&&(v.meta.__clicksContext=b),b}return{router:t,currentRoute:k(()=>e),isPrintMode:s,isPrintWithClicks:o,isEmbedded:r,isPlaying:a,isPresenter:i,isNotesViewer:l,isPresenterAvailable:c,hasPrimarySlide:f,currentSlideNo:d,currentSlideRoute:h,clicksContext:p,queryClicksRaw:g,queryClicks:m,printRange:u,getPrimaryClicks:y}}),st=Ks(()=>{const t=Di(),e=zt(),n=Ii(t.currentSlideRoute,t.clicksContext,t.queryClicks,t.isPresenter,t.isPrintMode,e);return ee([n.total,t.currentRoute],async()=>{const s=t.currentRoute.value.params.no;t.hasPrimarySlide.value&&!Ut(s)&&(s&&s!=="index.html"?await n.go(n.total.value,0,!0):await n.go(1,0,!0))},{flush:"pre",immediate:!0}),{...n,...t}}),Cs=or(),on=W("slidev-color-schema","auto"),$s=k(()=>q.colorSchema!=="auto"),ho=k({get(){return $s.value?q.colorSchema==="dark":on.value==="auto"?Cs.value:on.value==="dark"},set(t){$s.value||(on.value=t===Cs.value?"auto":t?"dark":"light")}}),zc=Js(ho);if(Wt){const t="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";ee(ho,e=>{const n=window.document.createElement("style");n.appendChild(document.createTextNode(t)),window.document.head.appendChild(n);const s=document.querySelector("html");s.classList.toggle("dark",e),s.classList.toggle("light",!e),window.getComputedStyle(n).opacity,document.head.removeChild(n)},{immediate:!0})}function Ni(){const{isPrintMode:t}=st();rr(k(()=>t.value?` @page { size: ${Zs.value}px ${Sr.value}px; margin: 0px; @@ -488,4 +488,4 @@ ${l}${p}`:` ${r}${o}${p}`:` `;return`${g} ${o}${u}`}else return`${h}${a}${d.join(" ")}${a}${u}`}function Ft({indent:t,options:{commentString:e}},n,s,o){if(s&&o&&(s=s.replace(/^\n+/,"")),s){const r=pt(e(s),t);n.push(r.trimStart())}}function We(t,e){const n=H(e)?e.value:e;for(const s of t)if(z(s)&&(s.key===e||s.key===n||H(s.key)&&s.key.value===n))return s}class Je extends wo{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(Ve,e),this.items=[]}static from(e,n,s){const{keepUndefined:o,replacer:r}=s,a=new this(e),i=(l,c)=>{if(typeof r=="function")c=r.call(n,l,c);else if(Array.isArray(r)&&!r.includes(l))return;(c!==void 0||o)&&a.items.push(Fn(l,c,s))};if(n instanceof Map)for(const[l,c]of n)i(l,c);else if(n&&typeof n=="object")for(const l of Object.keys(n))i(l,n[l]);return typeof e.sortMapEntries=="function"&&a.items.sort(e.sortMapEntries),a}add(e,n){let s;z(e)?s=e:!e||typeof e!="object"||!("key"in e)?s=new ie(e,e?.value):s=new ie(e.key,e.value);const o=We(this.items,s.key),r=this.schema?.sortMapEntries;if(o){if(!n)throw new Error(`Key ${s.key} already set`);H(o.value)&&vo(s.value)?o.value.value=s.value:o.value=s.value}else if(r){const a=this.items.findIndex(i=>r(s,i)<0);a===-1?this.items.push(s):this.items.splice(a,0,s)}else this.items.push(s)}delete(e){const n=We(this.items,e);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(e,n){const o=We(this.items,e)?.value;return(!n&&H(o)?o.value:o)??void 0}has(e){return!!We(this.items,e)}set(e,n){this.add(new ie(e,n),!0)}toJSON(e,n,s){const o=s?new s:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(o);for(const r of this.items)_o(n,o,r);return o}toString(e,n,s){if(!e)return JSON.stringify(this);for(const o of this.items)if(!z(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),So(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:s,onComment:n})}}class Mo extends wo{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(gt,e),this.items=[]}add(e){this.items.push(e)}delete(e){const n=_t(e);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(e,n){const s=_t(e);if(typeof s!="number")return;const o=this.items[s];return!n&&H(o)?o.value:o}has(e){const n=_t(e);return typeof n=="number"&&n=0?e:null}function ol(t,e,n){const{replacer:s}=n,o=new Mo(t);o.tag="tag:yaml.org,2002:pairs";let r=0;if(e&&Symbol.iterator in Object(e))for(let a of e){typeof s=="function"&&(a=s.call(e,String(r++),a));let i,l;if(Array.isArray(a))if(a.length===2)i=a[0],l=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){const c=Object.keys(a);if(c.length===1)i=c[0],l=a[i];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else i=a;o.items.push(Fn(i,l,n))}return o}class Hn extends Mo{constructor(){super(),this.add=Je.prototype.add.bind(this),this.delete=Je.prototype.delete.bind(this),this.get=Je.prototype.get.bind(this),this.has=Je.prototype.has.bind(this),this.set=Je.prototype.set.bind(this),this.tag=Hn.tag}toJSON(e,n){if(!n)return super.toJSON(e);const s=new Map;n?.onCreate&&n.onCreate(s);for(const o of this.items){let r,a;if(z(o)?(r=oe(o.key,"",n),a=oe(o.value,r,n)):r=oe(o,"",n),s.has(r))throw new Error("Ordered maps must not include duplicate keys");s.set(r,a)}return s}static from(e,n,s){const o=ol(e,n,s),r=new this;return r.items=o.items,r}}Hn.tag="tag:yaml.org,2002:omap";class jn extends Je{constructor(e){super(e),this.tag=jn.tag}add(e){let n;z(e)?n=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?n=new ie(e.key,null):n=new ie(e,null),We(this.items,n.key)||this.items.push(n)}get(e,n){const s=We(this.items,e);return!n&&z(s)?H(s.key)?s.key.value:s.key:s}set(e,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const s=We(this.items,e);s&&!n?this.items.splice(this.items.indexOf(s),1):!s&&n&&this.items.push(new ie(e))}toJSON(e,n){return super.toJSON(e,n,Set)}toString(e,n,s){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),n,s);throw new Error("Set items must all have null values")}static from(e,n,s){const{replacer:o}=s,r=new this(e);if(n&&Symbol.iterator in Object(n))for(let a of n)typeof o=="function"&&(a=o.call(n,a,a)),r.items.push(Fn(a,null,s));return r}}jn.tag="tag:yaml.org,2002:set";new Set("0123456789ABCDEFabcdef");new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");new Set(",[]{}");new Set(` ,[]{} -\r `);function Bn(t=5){const e=[],n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s=n.length;for(let o=0;orl.push(t));te(ue,"$onPatch",t=>al.push(t));To();te(ue,"$patch",async()=>!1);const il={channels:[],enabled:!0,init(t,e,n,s=!1){let o;if(!s)o=new BroadcastChannel(t),o.addEventListener("message",r=>e(r.data)),this.channels.push(o);else if(s){this.listener=function(a){a&&a.key===t&&a.newValue&&e(JSON.parse(a.newValue))},window.addEventListener("storage",this.listener);const r=window.localStorage.getItem(t);r&&e(JSON.parse(r))}return(r,a=!1)=>{this.enabled&&(!s&&o&&!a&&o.postMessage(Ys(r)),s&&!a&&window.localStorage.setItem(t,JSON.stringify(r)))}},disable(){this.enabled=!1,this.channels.forEach(t=>t.close()),this.listener&&window.removeEventListener("storage",this.listener)}},ll=T([il]),cl=new Map,Ds=O({});function Eo(t,e,n=!1){const s=[];let o=!1,r=!1,a,i;const l=T(e);function c(u){s.push(u)}function f(u,g){l[u]!==g&&(clearTimeout(a),o=!0,l[u]=g,a=setTimeout(()=>o=!1,0))}function d(u){o||(clearTimeout(i),r=!0,Object.entries(u).forEach(([g,p])=>{l[g]=p}),i=setTimeout(()=>r=!1,0))}function h(u){cl.set(u,{onUpdate:d,persist:n,state:l}),Ds.value[u]=ll.map(p=>p.init(u,d,l,n)).filter(p=>!!p);function g(){Ds.value[u].forEach(p=>p?.(Ys(l),r)),o||s.forEach(p=>p(l))}ee(l,g,{deep:!0})}return{init:h,onPatch:c,onUpdate:d,patch:f,state:l}}const{init:ul,onPatch:Wc,patch:Vc,state:Uc}=Eo(ue,ue,!1),Ge=T({page:0,clicks:0,timer:{status:"stopped",slides:{},startedAt:0,pausedAt:0}});let fl=[],hl=[];te(Ge,"$syncUp",!0);te(Ge,"$syncDown",!0);te(Ge,"$paused",!1);te(Ge,"$onSet",t=>fl.push(t));te(Ge,"$onPatch",t=>hl.push(t));To();te(Ge,"$patch",async()=>!1);const{init:dl,onPatch:pl,patch:St,state:Gc}=Eo(Ge,{page:1,clicks:0,clicksTotal:0,timer:{status:"stopped",slides:{},startedAt:0,pausedAt:0}});function gl(){const t=Us().appContext.app,e=T({nav:st(),configs:q,themeConfigs:k(()=>q.themeConfig)});t.provide(Rn,O("none")),t.provide(mi,e),t.provide($n,k(()=>e.nav.currentSlideNo)),t.provide(Vt,Cn(Xr()));for(const h of Tr)h();const{clicksContext:n,currentSlideNo:s,hasPrimarySlide:o,isNotesViewer:r,isPresenter:a,isPrintMode:i}=st();Jr({title:Zt,htmlAttrs:q.htmlAttrs}),Ni(),dl(`${Zt} - shared`),ul(`${Zt} - drawings`);const l=`${location.origin}_${Bn()}`,c=k(()=>a.value?"presenter":"viewer");function f(){(a.value?bt.value.presenterSend:bt.value.viewerSend)&&(r.value||i.value||!a.value&&!wi.includes(location.host.split(":")[0])||(St("page",+s.value),St("clicks",n.value.current),St("clicksTotal",n.value.total),St("lastUpdate",{id:l,type:c.value,time:new Date().getTime()})))}const d=zt();d.afterEach(f),ee(n,f),pl(h=>{(a.value?bt.value.presenterReceive:bt.value.viewerReceive)&&(!o.value||i.value||h.lastUpdate?.type!==c.value&&(+h.page==+s.value&&+n.value.current==+h.clicks||(In.value=!1,d.replace({path:Ye(h.page,a.value),query:{...d.currentRoute.value.query,clicks:h.clicks||0}}))))})}const ml=Qs({__name:"App",setup(t){return gl(),tt(()=>{for(const[e,n]of Object.entries(Mr.value))document.body.style.setProperty(e,n.toString())}),(e,n)=>{const s=ir("RouterView");return Rt(),ar(s)}}}),yl=[Object.values([])[0],Object.values([])[0]].filter(Boolean);async function Oo(t,e={}){const n=e.document||t.resolvedOptions.document;if(!n||!t.dirty)return;const s={shouldRender:!0,tags:[]};if(await t.hooks.callHook("dom:beforeRender",s),!!s.shouldRender)return t._domUpdatePromise||(t._domUpdatePromise=new Promise(async o=>{const r=new Map,a=new Promise(u=>{t.resolveTags().then(g=>{u(g.map(p=>{const m=r.get(p._d)||0,y={tag:p,id:(m?`${p._d}:${m}`:p._d)||p._h,shouldRender:!0};return p._d&&no(p._d)&&r.set(p._d,m+1),y}))})});let i=t._dom;if(!i){i={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const u of["body","head"]){const g=n[u]?.children;for(const p of g){const m=p.tagName.toLowerCase();if(!mn.has(m))continue;const y=oo({tag:m,props:{}},{innerHTML:p.innerHTML,...p.getAttributeNames().reduce((v,w)=>(v[w]=p.getAttribute(w),v),{})||{}});if(y.key=p.getAttribute("data-hid")||void 0,y._d=vn(y)||so(y),i.elMap.has(y._d)){let v=1,w=y._d;for(;i.elMap.has(w);)w=`${y._d}:${v++}`;i.elMap.set(w,p)}else i.elMap.set(y._d,p)}}}i.pendingSideEffects={...i.sideEffects},i.sideEffects={};function l(u,g,p){const m=`${u}:${g}`;i.sideEffects[m]=p,delete i.pendingSideEffects[m]}function c({id:u,$el:g,tag:p}){const m=p.tag.endsWith("Attrs");i.elMap.set(u,g),m||(p.textContent&&p.textContent!==g.textContent&&(g.textContent=p.textContent),p.innerHTML&&p.innerHTML!==g.innerHTML&&(g.innerHTML=p.innerHTML),l(u,"el",()=>{g?.remove(),i.elMap.delete(u)}));for(const y in p.props){if(!Object.prototype.hasOwnProperty.call(p.props,y))continue;const v=p.props[y];if(y.startsWith("on")&&typeof v=="function"){const b=g?.dataset;if(b&&b[`${y}fired`]){const _=y.slice(0,-5);v.call(g,new Event(_.substring(2)))}g.getAttribute(`data-${y}`)!==""&&((p.tag==="bodyAttrs"?n.defaultView:g).addEventListener(y.substring(2),v.bind(g)),g.setAttribute(`data-${y}`,""));continue}const w=`attr:${y}`;if(y==="class"){if(!v)continue;for(const b of v)m&&l(u,`${w}:${b}`,()=>g.classList.remove(b)),!g.classList.contains(b)&&g.classList.add(b)}else if(y==="style"){if(!v)continue;for(const[b,_]of v)l(u,`${w}:${b}`,()=>{g.style.removeProperty(b)}),g.style.setProperty(b,_)}else v!==!1&&v!==null&&(g.getAttribute(y)!==v&&g.setAttribute(y,v===!0?"":String(v)),m&&l(u,w,()=>g.removeAttribute(y)))}}const f=[],d={bodyClose:void 0,bodyOpen:void 0,head:void 0},h=await a;for(const u of h){const{tag:g,shouldRender:p,id:m}=u;if(p){if(g.tag==="title"){n.title=g.textContent,l("title","",()=>n.title=i.title);continue}u.$el=u.$el||i.elMap.get(m),u.$el?c(u):mn.has(g.tag)&&f.push(u)}}for(const u of f){const g=u.tag.tagPosition||"head";u.$el=n.createElement(u.tag.tag),c(u),d[g]=d[g]||n.createDocumentFragment(),d[g].appendChild(u.$el)}for(const u of h)await t.hooks.callHook("dom:renderTag",u,n,l);d.head&&n.head.appendChild(d.head),d.bodyOpen&&n.body.insertBefore(d.bodyOpen,n.body.firstChild),d.bodyClose&&n.body.appendChild(d.bodyClose);for(const u in i.pendingSideEffects)i.pendingSideEffects[u]();t._dom=i,await t.hooks.callHook("dom:rendered",{renders:h}),o()}).finally(()=>{t._domUpdatePromise=void 0,t.dirty=!1})),t._domUpdatePromise}function vl(t={}){const e=t.domOptions?.render||Oo;t.document=t.document||(typeof window<"u"?document:void 0);const n=t.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return Vr({...t,plugins:[...t.plugins||[],{key:"client",hooks:{"entries:updated":e}}],init:[n?JSON.parse(n):!1,...t.init||[]]})}function wl(t,e){let n=0;return()=>{const s=++n;e(()=>{n===s&&t()})}}function bl(t={}){const e=vl({domOptions:{render:wl(()=>Oo(e),n=>setTimeout(n,0))},...t});return e.install=Gr(e),e}function Qc(t,e=""){const n=["slidev-page",e],s=t?.meta?.slide?.no;return s!=null&&n.push(`slidev-page-${s}`),n.filter(Boolean).join(" ")}async function Jc(){const{saveAs:t}=await M(async()=>{const{saveAs:e}=await import("./modules/file-saver-DKWcVV7Q.js").then(n=>n.F);return{saveAs:e}},[]);t(typeof q.download=="string"?q.download:q.exportFilename?`${q.exportFilename}.pdf`:"/slidev-exported.pdf",`${q.title}.pdf`)}function nt(t,e,n){return(t.instance?.$).provides[e]??n}function kl(){return{install(t){t.directive("click",{name:"v-click",mounted(e,n){const s=Ct(e,n,n.value);s!=null&&(e.classList.toggle(Et,!0),e.dataset.slidevClicksStart=String(s.start),Number.isFinite(s.end)&&(e.dataset.slidevClicksEnd=String(s.end)),e.watchStopHandle=tt(()=>{const o=s.isActive.value,r=s.isCurrent.value,a=o&&!r;s.flagHide?(e.classList.toggle(s.flagFade?it:at,o),e.classList.toggle(tn,o)):e.classList.toggle(s.flagFade?it:at,!o),e.classList.toggle(nn,r),e.classList.toggle(sn,a)}))},unmounted:ln}),t.directive("after",{name:"v-after",mounted(e,n){const s=Ct(e,n,"+0");s!=null&&(e.classList.toggle(Et,!0),e.watchStopHandle=tt(()=>{const o=s.isActive.value,r=s.isCurrent.value,a=o&&!r;s.flagHide?(e.classList.toggle(s.flagFade?it:at,o),e.classList.toggle(tn,o)):e.classList.toggle(s.flagFade?it:at,!o),e.classList.toggle(nn,r),e.classList.toggle(sn,a)}))},unmounted:ln}),t.directive("click-hide",{name:"v-click-hide",mounted(e,n){const s=Ct(e,n,n.value,!0);s!=null&&(e.classList.toggle(Et,!0),e.watchStopHandle=tt(()=>{const o=s.isActive.value,r=s.isCurrent.value,a=o&&!r;e.classList.toggle(s.flagFade?it:at,o),e.classList.toggle(tn,o),e.classList.toggle(nn,r),e.classList.toggle(sn,a)}))},unmounted:ln})}}}const Ao=new Map;function Ct(t,e,n,s=!1){const o=nt(e,Vt)?.value;if(!t||!o)return null;const r=s||e.modifiers.hide!==!1&&e.modifiers.hide!=null,a=e.modifiers.fade!==!1&&e.modifiers.fade!=null,i=o.calculate(n);if(!i)return null;o.register(t,i);const l=k(()=>r?!i.isActive.value:i.isActive.value),c=k(()=>l.value?"shown":Number.isFinite(i.end)?o.current{setTimeout(e.update,300)},{flush:"post",immediate:!0});return{...e,stop:n}}function Sl(t){return()=>{}}function Ml(t,e,n,s=!1){function o(x){return t?nt(t,x):ur(x)}const r=o(Rn),a=o(yi)??{},i=o($n),l=k(()=>Sl(i.value)),c=o(gi)??O(1),f=o(vi)??O(1),{left:d,top:h,stop:u}=_l(o(io)??O()),{isPrintMode:g}=st(),p=["slide","presenter"].includes(r.value)&&!g.value;let m=t?"directive":"prop",y=Bn(),v;if(Array.isArray(e)?v=e:typeof e=="string"&&e.includes(",")?v=e.split(",").map(Number):e!=null&&(m="frontmatter",y=`${e}`,e=a?.dragPos?.[y],v=e?.split(",").map(Number)),m!=="frontmatter"&&!n)throw new Error("[Slidev] Can not identify the source position of the v-drag element, please provide an explicit `id` prop.");const w=[u],b=!s&&e!=null&&!Number.isFinite(v?.[3]);v??=[Number.NaN,Number.NaN,0];const _=O(v[2]),P=O(v[0]+v[2]/2),I=O(s?0:v[4]??0),j=k(()=>I.value*Math.PI/180),U=k(()=>Math.sin(j.value)),le=k(()=>Math.cos(j.value)),X=O(),E=O({left:0,top:0,width:0,height:0}),R=O(0);function B(){if(!X.value)return;const x=X.value.getBoundingClientRect();E.value={left:x.left/f.value,top:x.top/f.value,width:x.width/f.value,height:x.height/f.value},R.value=(E.value.width+E.value.height)/c.value/(Math.abs(U.value)+Math.abs(le.value))-_.value}w.push(ee(_,B,{flush:"post"}));const F=O(v[3]??0),D=b?k({get:()=>(b?R.value:F.value)||0,set:x=>!b&&(F.value=x)}):F,ae=b?O(v[1]):O(v[1]+v[3]/2),ce=b?k({get:()=>ae.value+D.value/2,set:x=>ae.value=x-D.value/2}):ae,ot=k(()=>Number.isFinite(P.value)?{position:"absolute",zIndex:100,left:`${P.value-_.value/2}px`,top:`${ce.value-D.value/2}px`,width:`${_.value}px`,height:b?void 0:`${D.value}px`,transformOrigin:"center center",transform:`rotate(${I.value}deg)`}:{position:"absolute",zIndex:100});w.push(ee([P,ce,_,D,I],([x,yt,Vn,Un,Gn])=>{let Qe=[x-Vn/2,yt-Un/2,Vn].map(Math.round).join();b?Qe+=m==="directive"?",NaN":",_":Qe+=`,${Math.round(Un)}`,Math.round(Gn)!==0&&(Qe+=`,${Math.round(Gn)}`),m==="directive"&&(Qe=`[${Qe}]`),l.value(y,Qe,m,n)}));const J={dragId:y,dataSource:m,markdownSource:n,isArrow:s,zoom:f,autoHeight:b,x0:P,y0:ce,width:_,height:D,rotate:I,container:X,containerStyle:ot,watchStopHandles:w,dragging:k(()=>vt.value===J),mounted(){p&&(B(),e||setTimeout(()=>{B(),P.value=(E.value.left+E.value.width/2-d.value)/c.value,ce.value=(E.value.top-h.value)/c.value,_.value=E.value.width/c.value,D.value=E.value.height/c.value},100))},unmounted(){p&&J.stopDragging()},startDragging(){p&&(B(),vt.value=J)},stopDragging(){p&&vt.value===J&&(vt.value=null)}};return w.push(cr(X,x=>{const yt=document.querySelector("#drag-control-container");yt&&x.target&&yt.contains(x.target)||J.stopDragging()}),ee(fr(),x=>{x||J.stopDragging()})),J}function Tl(){return{install(t){t.directive("drag",{name:"v-drag",created(e,n,s){const o=Ml(n,n.value,s.props?.markdownSource);s.props&&(s.props={...s.props},delete s.props.markdownSource),o.container.value=e,e.draggingState=o,e.dataset.dragId=o.dragId,o.watchStopHandles.push(ee(o.containerStyle,r=>{for(const[a,i]of Object.entries(r))i&&(e.style[a]=i)},{immediate:!0})),e.addEventListener("dblclick",o.startDragging)},mounted(e){e.draggingState.mounted()},unmounted(e){const n=e.draggingState;n.unmounted(),e.removeEventListener("dblclick",n.startDragging),n.watchStopHandles.forEach(s=>s())}})}}}function Lo(){return Math.floor(Math.random()*2**31)}class El{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}function Mn(t,e,n){if(t&&t.length){const[s,o]=e,r=Math.PI/180*n,a=Math.cos(r),i=Math.sin(r);for(const l of t){const[c,f]=l;l[0]=(c-s)*a-(f-o)*i+s,l[1]=(c-s)*i+(f-o)*a+o}}}function Ol(t,e,n){const s=[];t.forEach(o=>s.push(...o)),Mn(s,e,n)}function Al(t,e){return t[0]===e[0]&&t[1]===e[1]}function Ll(t,e,n,s=1){const o=n,r=Math.max(e,.1),a=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,i=[0,0];if(o)for(const c of a)Mn(c,i,o);const l=Pl(a,r,s);if(o){for(const c of a)Mn(c,i,-o);Ol(l,i,-o)}return l}function Pl(t,e,n){const s=[];for(const c of t){const f=[...c];Al(f[0],f[f.length-1])||f.push([f[0][0],f[0][1]]),f.length>2&&s.push(f)}const o=[];e=Math.max(e,.1);const r=[];for(const c of s)for(let f=0;fc.yminf.ymin?1:c.xf.x?1:c.ymax===f.ymax?0:(c.ymax-f.ymax)/Math.abs(c.ymax-f.ymax)),!r.length)return o;let a=[],i=r[0].ymin,l=0;for(;a.length||r.length;){if(r.length){let c=-1;for(let d=0;di);d++)c=d;r.splice(0,c+1).forEach(d=>{a.push({s:i,edge:d})})}if(a=a.filter(c=>!(c.edge.ymax<=i)),a.sort((c,f)=>c.edge.x===f.edge.x?0:(c.edge.x-f.edge.x)/Math.abs(c.edge.x-f.edge.x)),(n!==1||l%e===0)&&a.length>1)for(let c=0;c=a.length)break;const d=a[c].edge,h=a[f].edge;o.push([[Math.round(d.x),i],[Math.round(h.x),i]])}i+=n,a.forEach(c=>{c.edge.x=c.edge.x+n*c.edge.islope}),l++}return o}function mt(t,e){var n;const s=e.hachureAngle+90;let o=e.hachureGap;o<0&&(o=e.strokeWidth*4),o=Math.round(Math.max(o,.1));let r=1;return e.roughness>=1&&(((n=e.randomizer)===null||n===void 0?void 0:n.next())||Math.random())>.7&&(r=o),Ll(t,o,s,r||1)}class zn{constructor(e){this.helper=e}fillPolygons(e,n){return this._fillPolygons(e,n)}_fillPolygons(e,n){const s=mt(e,n);return{type:"fillSketch",ops:this.renderLines(s,n)}}renderLines(e,n){const s=[];for(const o of e)s.push(...this.helper.doubleLineOps(o[0][0],o[0][1],o[1][0],o[1][1],n));return s}}function Xt(t){const e=t[0],n=t[1];return Math.sqrt(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2))}class Cl extends zn{fillPolygons(e,n){let s=n.hachureGap;s<0&&(s=n.strokeWidth*4),s=Math.max(s,.1);const o=Object.assign({},n,{hachureGap:s}),r=mt(e,o),a=Math.PI/180*n.hachureAngle,i=[],l=s*.5*Math.cos(a),c=s*.5*Math.sin(a);for(const[d,h]of r)Xt([d,h])&&i.push([[d[0]-l,d[1]+c],[...h]],[[d[0]+l,d[1]-c],[...h]]);return{type:"fillSketch",ops:this.renderLines(i,n)}}}class $l extends zn{fillPolygons(e,n){const s=this._fillPolygons(e,n),o=Object.assign({},n,{hachureAngle:n.hachureAngle+90}),r=this._fillPolygons(e,o);return s.ops=s.ops.concat(r.ops),s}}class Rl{constructor(e){this.helper=e}fillPolygons(e,n){n=Object.assign({},n,{hachureAngle:0});const s=mt(e,n);return this.dotsOnLines(s,n)}dotsOnLines(e,n){const s=[];let o=n.hachureGap;o<0&&(o=n.strokeWidth*4),o=Math.max(o,.1);let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);const a=o/4;for(const i of e){const l=Xt(i),c=l/o,f=Math.ceil(c)-1,d=l-f*o,h=(i[0][0]+i[1][0])/2-o/4,u=Math.min(i[0][1],i[1][1]);for(let g=0;g{const i=Xt(a),l=Math.floor(i/(s+o)),c=(i+o-l*(s+o))/2;let f=a[0],d=a[1];f[0]>d[0]&&(f=a[1],d=a[0]);const h=Math.atan((d[1]-f[1])/(d[0]-f[0]));for(let u=0;u{const a=Xt(r),i=Math.round(a/(2*n));let l=r[0],c=r[1];l[0]>c[0]&&(l=r[1],c=r[0]);const f=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let d=0;df%2?c+n:c+e);r.push({key:"C",data:l}),e=l[4],n=l[5];break}case"Q":r.push({key:"Q",data:[...i]}),e=i[2],n=i[3];break;case"q":{const l=i.map((c,f)=>f%2?c+n:c+e);r.push({key:"Q",data:l}),e=l[2],n=l[3];break}case"A":r.push({key:"A",data:[...i]}),e=i[5],n=i[6];break;case"a":e+=i[5],n+=i[6],r.push({key:"A",data:[i[0],i[1],i[2],i[3],i[4],e,n]});break;case"H":r.push({key:"H",data:[...i]}),e=i[0];break;case"h":e+=i[0],r.push({key:"H",data:[e]});break;case"V":r.push({key:"V",data:[...i]}),n=i[0];break;case"v":n+=i[0],r.push({key:"V",data:[n]});break;case"S":r.push({key:"S",data:[...i]}),e=i[2],n=i[3];break;case"s":{const l=i.map((c,f)=>f%2?c+n:c+e);r.push({key:"S",data:l}),e=l[2],n=l[3];break}case"T":r.push({key:"T",data:[...i]}),e=i[0],n=i[1];break;case"t":e+=i[0],n+=i[1],r.push({key:"T",data:[e,n]});break;case"Z":case"z":r.push({key:"Z",data:[]}),e=s,n=o;break}return r}function $o(t){const e=[];let n="",s=0,o=0,r=0,a=0,i=0,l=0;for(const{key:c,data:f}of t){switch(c){case"M":e.push({key:"M",data:[...f]}),[s,o]=f,[r,a]=f;break;case"C":e.push({key:"C",data:[...f]}),s=f[4],o=f[5],i=f[2],l=f[3];break;case"L":e.push({key:"L",data:[...f]}),[s,o]=f;break;case"H":s=f[0],e.push({key:"L",data:[s,o]});break;case"V":o=f[0],e.push({key:"L",data:[s,o]});break;case"S":{let d=0,h=0;n==="C"||n==="S"?(d=s+(s-i),h=o+(o-l)):(d=s,h=o),e.push({key:"C",data:[d,h,...f]}),i=f[0],l=f[1],s=f[2],o=f[3];break}case"T":{const[d,h]=f;let u=0,g=0;n==="Q"||n==="T"?(u=s+(s-i),g=o+(o-l)):(u=s,g=o);const p=s+2*(u-s)/3,m=o+2*(g-o)/3,y=d+2*(u-d)/3,v=h+2*(g-h)/3;e.push({key:"C",data:[p,m,y,v,d,h]}),i=u,l=g,s=d,o=h;break}case"Q":{const[d,h,u,g]=f,p=s+2*(d-s)/3,m=o+2*(h-o)/3,y=u+2*(d-u)/3,v=g+2*(h-g)/3;e.push({key:"C",data:[p,m,y,v,u,g]}),i=d,l=h,s=u,o=g;break}case"A":{const d=Math.abs(f[0]),h=Math.abs(f[1]),u=f[2],g=f[3],p=f[4],m=f[5],y=f[6];d===0||h===0?(e.push({key:"C",data:[s,o,m,y,m,y]}),s=m,o=y):(s!==m||o!==y)&&(Ro(s,o,m,y,d,h,u,g,p).forEach(function(w){e.push({key:"C",data:w})}),s=m,o=y);break}case"Z":e.push({key:"Z",data:[]}),s=r,o=a;break}n=c}return e}function Fl(t){return Math.PI*t/180}function lt(t,e,n){const s=t*Math.cos(n)-e*Math.sin(n),o=t*Math.sin(n)+e*Math.cos(n);return[s,o]}function Ro(t,e,n,s,o,r,a,i,l,c){const f=Fl(a);let d=[],h=0,u=0,g=0,p=0;if(c)[h,u,g,p]=c;else{[t,e]=lt(t,e,-f),[n,s]=lt(n,s,-f);const E=(t-n)/2,R=(e-s)/2;let B=E*E/(o*o)+R*R/(r*r);B>1&&(B=Math.sqrt(B),o=B*o,r=B*r);const F=i===l?-1:1,D=o*o,ae=r*r,ce=D*ae-D*R*R-ae*E*E,ot=D*R*R+ae*E*E,J=F*Math.sqrt(Math.abs(ce/ot));g=J*o*R/r+(t+n)/2,p=J*-r*E/o+(e+s)/2,h=Math.asin(parseFloat(((e-p)/r).toFixed(9))),u=Math.asin(parseFloat(((s-p)/r).toFixed(9))),tu&&(h=h-Math.PI*2),!l&&u>h&&(u=u-Math.PI*2)}let m=u-h;if(Math.abs(m)>Math.PI*120/180){const E=u,R=n,B=s;l&&u>h?u=h+Math.PI*120/180*1:u=h+Math.PI*120/180*-1,n=g+o*Math.cos(u),s=p+r*Math.sin(u),d=Ro(n,s,R,B,o,r,a,0,l,[u,E,g,p])}m=u-h;const y=Math.cos(h),v=Math.sin(h),w=Math.cos(u),b=Math.sin(u),_=Math.tan(m/4),P=4/3*o*_,I=4/3*r*_,j=[t,e],U=[t+P*v,e-I*y],le=[n+P*b,s-I*w],X=[n,s];if(U[0]=2*j[0]-U[0],U[1]=2*j[1]-U[1],c)return[U,le,X].concat(d);{d=[U,le,X].concat(d);const E=[];for(let R=0;R2){const o=[];for(let r=0;rMath.PI*2&&(u=0,g=Math.PI*2);const p=Math.PI*2/l.curveStepCount,m=Math.min(p/2,(g-u)/2),y=js(m,c,f,d,h,u,g,1,l);if(!l.disableMultiStroke){const v=js(m,c,f,d,h,u,g,1.5,l);y.push(...v)}return a&&(i?y.push(...fe(c,f,c+d*Math.cos(u),f+h*Math.sin(u),l),...fe(c,f,c+d*Math.cos(g),f+h*Math.sin(g),l)):y.push({op:"lineTo",data:[c,f]},{op:"lineTo",data:[c+d*Math.cos(u),f+h*Math.sin(u)]})),{type:"path",ops:y}}function xs(t,e){const n=$o(Co(Wn(t))),s=[];let o=[0,0],r=[0,0];for(const{key:a,data:i}of n)switch(a){case"M":{r=[i[0],i[1]],o=[i[0],i[1]];break}case"L":s.push(...fe(r[0],r[1],i[0],i[1],e)),r=[i[0],i[1]];break;case"C":{const[l,c,f,d,h,u]=i;s.push(...Ul(l,c,f,d,h,u,r,e)),r=[h,u];break}case"Z":s.push(...fe(r[0],r[1],o[0],o[1],e)),r=[o[0],o[1]];break}return{type:"path",ops:s}}function un(t,e){const n=[];for(const s of t)if(s.length){const o=e.maxRandomnessOffset||0,r=s.length;if(r>2){n.push({op:"move",data:[s[0][0]+S(o,e),s[0][1]+S(o,e)]});for(let a=1;aMath.PI*2&&(d=0,h=Math.PI*2);const u=(h-d)/a.curveStepCount,g=[];for(let p=d;p<=h;p=p+u)g.push([i+c*Math.cos(p),l+f*Math.sin(p)]);return g.push([i+c*Math.cos(h),l+f*Math.sin(h)]),g.push([i,l]),Ke([g],a)}function zl(t,e){return S(t,e)}function Wl(t,e,n){return Ht(t,e,n)}function Vl(t,e,n,s,o){return fe(t,e,n,s,o,!0)}function Fs(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function No(t){return t.randomizer||(t.randomizer=new El(t.seed||0)),t.randomizer.next()}function Ht(t,e,n,s=1){return n.roughness*s*(No(n)*(e-t)+t)}function S(t,e,n=1){return Ht(-t,t,e,n)}function fe(t,e,n,s,o,r=!1){const a=r?o.disableMultiStrokeFill:o.disableMultiStroke,i=An(t,e,n,s,o,!0,!1);if(a)return i;const l=An(t,e,n,s,o,!0,!0);return i.concat(l)}function An(t,e,n,s,o,r,a){const i=Math.pow(t-n,2)+Math.pow(e-s,2),l=Math.sqrt(i);let c=1;l<200?c=1:l>500?c=.4:c=-.0016668*l+1.233334;let f=o.maxRandomnessOffset||0;f*f*100>i&&(f=l/10);const d=f/2,h=.2+No(o)*.2;let u=o.bowing*o.maxRandomnessOffset*(s-e)/200,g=o.bowing*o.maxRandomnessOffset*(t-n)/200;u=S(u,o,c),g=S(g,o,c);const p=[],m=()=>S(d,o,c),y=()=>S(f,o,c),v=o.preserveVertices;return a?p.push({op:"move",data:[t+(v?0:m()),e+(v?0:m())]}):p.push({op:"move",data:[t+(v?0:S(f,o,c)),e+(v?0:S(f,o,c))]}),a?p.push({op:"bcurveTo",data:[u+t+(n-t)*h+m(),g+e+(s-e)*h+m(),u+t+2*(n-t)*h+m(),g+e+2*(s-e)*h+m(),n+(v?0:m()),s+(v?0:m())]}):p.push({op:"bcurveTo",data:[u+t+(n-t)*h+y(),g+e+(s-e)*h+y(),u+t+2*(n-t)*h+y(),g+e+2*(s-e)*h+y(),n+(v?0:y()),s+(v?0:y())]}),p}function Tt(t,e,n){if(!t.length)return[];const s=[];s.push([t[0][0]+S(e,n),t[0][1]+S(e,n)]),s.push([t[0][0]+S(e,n),t[0][1]+S(e,n)]);for(let o=1;o3){const r=[],a=1-n.curveTightness;o.push({op:"move",data:[t[1][0],t[1][1]]});for(let i=1;i+21&&o.push(r):o.push(r),o.push(t[e+3])}else{const a=t[e+0],i=t[e+1],l=t[e+2],c=t[e+3],f=ze(a,i,.5),d=ze(i,l,.5),h=ze(l,c,.5),u=ze(f,d,.5),g=ze(d,h,.5),p=ze(u,g,.5);Ln([a,f,u,p],0,n,o),Ln([p,g,h,c],0,n,o)}return o}function Kl(t,e){return Bt(t,0,t.length,e)}function Bt(t,e,n,s,o){const r=o||[],a=t[e],i=t[n-1];let l=0,c=1;for(let f=e+1;fl&&(l=d,c=f)}return Math.sqrt(l)>s?(Bt(t,e,c+1,s,r),Bt(t,c,n,s,r)):(r.length||r.push(a),r.push(i)),r}function Pn(t,e=.15,n){const s=[],o=(t.length-1)/3;for(let r=0;r0?Bt(s,0,s.length,n):s}function Yl(t,e,n){const s=Wn(t),o=$o(Co(s)),r=[];let a=[],i=[0,0],l=[];const c=()=>{l.length>=4&&a.push(...Pn(l,e)),l=[]},f=()=>{c(),a.length&&(r.push(a),a=[])};for(const{key:h,data:u}of o)switch(h){case"M":f(),i=[u[0],u[1]],a.push(i);break;case"L":c(),a.push([u[0],u[1]]);break;case"C":if(!l.length){const g=a.length?a[a.length-1]:i;l.push([g[0],g[1]])}l.push([u[0],u[1]]),l.push([u[2],u[3]]),l.push([u[4],u[5]]);break;case"Z":c(),a.push([i[0],i[1]]);break}if(f(),!n)return r;const d=[];for(const h of r){const u=Kl(h,n);u.length&&d.push(u)}return d}const K="none";class Xl{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Lo()}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,n,s){return{shape:e,sets:n||[],options:s||this.defaultOptions}}line(e,n,s,o,r){const a=this._o(r);return this._d("line",[Z(e,n,s,o,a)],a)}rectangle(e,n,s,o,r){const a=this._o(r),i=[],l=Io(e,n,s,o,a);if(a.fill){const c=[[e,n],[e+s,n],[e+s,n+o],[e,n+o]];a.fillStyle==="solid"?i.push(un([c],a)):i.push(Ke([c],a))}return a.stroke!==K&&i.push(l),this._d("rectangle",i,a)}ellipse(e,n,s,o,r){const a=this._o(r),i=[],l=Do(s,o,a),c=On(e,n,a,l);if(a.fill)if(a.fillStyle==="solid"){const f=On(e,n,a,l).opset;f.type="fillPath",i.push(f)}else i.push(Ke([c.estimatedPoints],a));return a.stroke!==K&&i.push(c.opset),this._d("ellipse",i,a)}circle(e,n,s,o){const r=this.ellipse(e,n,s,s,o);return r.shape="circle",r}linearPath(e,n){const s=this._o(n);return this._d("linearPath",[dt(e,!1,s)],s)}arc(e,n,s,o,r,a,i=!1,l){const c=this._o(l),f=[],d=qs(e,n,s,o,r,a,i,!0,c);if(i&&c.fill)if(c.fillStyle==="solid"){const h=Object.assign({},c);h.disableMultiStroke=!0;const u=qs(e,n,s,o,r,a,!0,!1,h);u.type="fillPath",f.push(u)}else f.push(Bl(e,n,s,o,r,a,c));return c.stroke!==K&&f.push(d),this._d("arc",f,c)}curve(e,n){const s=this._o(n),o=[],r=Ns(e,s);if(s.fill&&s.fill!==K)if(s.fillStyle==="solid"){const a=Ns(e,Object.assign(Object.assign({},s),{disableMultiStroke:!0,roughness:s.roughness?s.roughness+s.fillShapeRoughnessGain:0}));o.push({type:"fillPath",ops:this._mergedShape(a.ops)})}else{const a=[],i=e;if(i.length){const c=typeof i[0][0]=="number"?[i]:i;for(const f of c)f.length<3?a.push(...f):f.length===3?a.push(...Pn(Bs([f[0],f[0],f[1],f[2]]),10,(1+s.roughness)/2)):a.push(...Pn(Bs(f),10,(1+s.roughness)/2))}a.length&&o.push(Ke([a],s))}return s.stroke!==K&&o.push(r),this._d("curve",o,s)}polygon(e,n){const s=this._o(n),o=[],r=dt(e,!0,s);return s.fill&&(s.fillStyle==="solid"?o.push(un([e],s)):o.push(Ke([e],s))),s.stroke!==K&&o.push(r),this._d("polygon",o,s)}path(e,n){const s=this._o(n),o=[];if(!e)return this._d("path",o,s);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const r=s.fill&&s.fill!=="transparent"&&s.fill!==K,a=s.stroke!==K,i=!!(s.simplification&&s.simplification<1),l=i?4-4*(s.simplification||1):(1+s.roughness)/2,c=Yl(e,1,l),f=xs(e,s);if(r)if(s.fillStyle==="solid")if(c.length===1){const d=xs(e,Object.assign(Object.assign({},s),{disableMultiStroke:!0,roughness:s.roughness?s.roughness+s.fillShapeRoughnessGain:0}));o.push({type:"fillPath",ops:this._mergedShape(d.ops)})}else o.push(un(c,s));else o.push(Ke(c,s));return a&&(i?c.forEach(d=>{o.push(dt(d,!1,s))}):o.push(f)),this._d("path",o,s)}opsToPath(e,n){let s="";for(const o of e.ops){const r=typeof n=="number"&&n>=0?o.data.map(a=>+a.toFixed(n)):o.data;switch(o.op){case"move":s+=`M${r[0]} ${r[1]} `;break;case"bcurveTo":s+=`C${r[0]} ${r[1]}, ${r[2]} ${r[3]}, ${r[4]} ${r[5]} `;break;case"lineTo":s+=`L${r[0]} ${r[1]} `;break}}return s.trim()}toPaths(e){const n=e.sets||[],s=e.options||this.defaultOptions,o=[];for(const r of n){let a=null;switch(r.type){case"path":a={d:this.opsToPath(r),stroke:s.stroke,strokeWidth:s.strokeWidth,fill:K};break;case"fillPath":a={d:this.opsToPath(r),stroke:K,strokeWidth:0,fill:s.fill||K};break;case"fillSketch":a=this.fillSketch(r,s);break}a&&o.push(a)}return o}fillSketch(e,n){let s=n.fillWeight;return s<0&&(s=n.strokeWidth/2),{d:this.opsToPath(e),stroke:n.fill||K,strokeWidth:s,fill:K}}_mergedShape(e){return e.filter((n,s)=>s===0?!0:n.op!=="move")}}const qo="http://www.w3.org/2000/svg",Zl=800;let fn=null;function ec(){return fn||(fn=new Xl().defaultOptions),fn}function hn(t,e,n){return{...ec(),maxRandomnessOffset:2,roughness:t==="highlight"?3:1.5,bowing:1,stroke:"#000",strokeWidth:1.5,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,disableMultiStroke:t!=="double",disableMultiStrokeFill:!1,seed:e,...n}}function tc(t){const e=t.padding;if(e||e===0){if(typeof e=="number")return[e,e,e,e];if(Array.isArray(e)){const n=e;if(n.length)switch(n.length){case 4:return[...n];case 1:return[n[0],n[0],n[0],n[0]];case 2:return[...n,...n];case 3:return[...n,n[1]];default:return[n[0],n[1],n[2],n[3]]}}}return[5,5,5,5]}function nc(t,e,n,s,o,r){const a=[];let i=n.strokeWidth||2;const l=tc(n),c=n.animate===void 0?!0:!!n.animate,f=n.iterations||2,d=n.rtl?1:0,h=hn("single",r,n);switch(n.type){case"underline":{const u=e.y+e.h+l[2];for(let g=d;gv.setAttribute(w,b);for(const v of u){const w=document.createElementNS(qo,"path");if(y(w,"d",v),y(w,"fill","none"),y(w,"stroke",n.color||"currentColor"),y(w,"stroke-width",`${i}`),n.opacity!==void 0&&y(w,"style",`opacity:${n.opacity}`),c){const b=w.getTotalLength();g.push(b),m+=b}t.appendChild(w),p.push(w)}if(c){let v=0;for(let w=0;wsetTimeout(e,t))}function sc(t){const e=[];for(const n of t){let s="";for(const o of n.ops){const r=o.data;switch(o.op){case"move":s.trim()&&e.push(s.trim()),s=`M${r[0]} ${r[1]} `;break;case"bcurveTo":s+=`C${r[0]} ${r[1]}, ${r[2]} ${r[3]}, ${r[4]} ${r[5]} `;break;case"lineTo":s+=`L${r[0]} ${r[1]} `;break}}s.trim()&&e.push(s.trim())}return e}function oc(){if(!window.__rno_kf_s){const t=window.__rno_kf_s=document.createElement("style");t.textContent="@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }",document.head.appendChild(t)}}var rc=Object.defineProperty,ac=(t,e,n)=>e in t?rc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ne=(t,e,n)=>(ac(t,typeof e!="symbol"?e+"":e,n),n);class ic{constructor(e,n){ne(this,"_state","unattached"),ne(this,"_config"),ne(this,"_resizing",!1),ne(this,"_ro"),ne(this,"_seed",Lo()),ne(this,"_e"),ne(this,"_svg"),ne(this,"_lastSizes",[]),ne(this,"_animationDelay",0),ne(this,"_resizeListener",()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,this._state==="showing"&&this.haveRectsChanged()&&this.show()},400))}),ne(this,"pendingRefresh"),this._e=e,this._config=JSON.parse(JSON.stringify(n)),this.attach()}getConfig(e){return this._config[e]}setConfig(e,n){this._config[e]!==n&&(this._config[e]=n,this.refresh())}get animate(){return this._config.animate}set animate(e){this._config.animate=e}get animationDuration(){return this._config.animationDuration}set animationDuration(e){this._config.animationDuration=e}get iterations(){return this._config.iterations}set iterations(e){this._config.iterations=e}get color(){return this._config.color}set color(e){this._config.color!==e&&(this._config.color=e,this.refresh())}get class(){return this._config.class}set class(e){this._config.class!==e&&(this._config.class=e,this._svg&&this._svg.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" ")))}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(e){this._config.strokeWidth!==e&&(this._config.strokeWidth=e,this.refresh())}get padding(){return this._config.padding}set padding(e){this._config.padding!==e&&(this._config.padding=e,this.refresh())}attach(){if(this._state==="unattached"&&this._e.parentElement){oc();const e=this._svg=document.createElementNS(qo,"svg");e.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" "));const n=e.style;n.position="absolute",n.top="0",n.left="0",n.overflow="visible",n.pointerEvents="none",n.width="100px",n.height="100px";const s=this._config.type==="highlight";if(this._e.insertAdjacentElement(s?"beforebegin":"afterend",e),this._state="not-showing",s){const o=window.getComputedStyle(this._e).position;(!o||o==="static")&&(this._e.style.position="relative")}this.attachListeners()}}detachListeners(){window.removeEventListener("resize",this._resizeListener),this._ro&&this._ro.unobserve(this._e)}attachListeners(){this.detachListeners(),window.addEventListener("resize",this._resizeListener,{passive:!0}),!this._ro&&"ResizeObserver"in window&&(this._ro=new window.ResizeObserver(e=>{for(const n of e)n.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){const e=this.rects();if(e.length===this._lastSizes.length){for(let n=0;nMath.round(o)===Math.round(r);return s(e.x,n.x)&&s(e.y,n.y)&&s(e.w,n.w)&&s(e.h,n.h)}isShowing(){return this._state!=="not-showing"}refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then(()=>{this.isShowing()&&this.show(),delete this.pendingRefresh}))}async show(){switch(this._state){case"unattached":break;case"showing":this.hide(),this._svg&&await this.render(this._svg,!0);break;case"not-showing":this.attach(),this._svg&&await this.render(this._svg,!1);break}}hide(){if(this._svg)for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state="not-showing"}remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state="unattached",this.detachListeners()}async render(e,n){let s=this._config;n&&(s=JSON.parse(JSON.stringify(this._config)),s.animate=!1);const o=this.rects();let r=0;o.forEach(c=>r+=c.w);const a=s.animationDuration||Zl;let i=0;const l=[];for(let c=0;cObject.assign(t,{type:"box"}),circle:t=>Object.assign(t,{type:"circle"}),underline:t=>Object.assign(t,{type:"underline"}),highlight:t=>Object.assign(t,{type:"highlight"}),"strike-through":t=>Object.assign(t,{type:"strike-through"}),"crossed-off":t=>Object.assign(t,{type:"crossed-off"}),bracket:t=>Object.assign(t,{type:"bracket"}),strike:t=>Object.assign(t,{type:"strike-through"}),cross:t=>Object.assign(t,{type:"crossed-off"}),crossed:t=>Object.assign(t,{type:"crossed-off"}),linethrough:t=>Object.assign(t,{type:"strike-through"}),"line-through":t=>Object.assign(t,{type:"strike-through"}),black:t=>Q(t,"text-black"),blue:t=>Q(t,"text-blue"),cyan:t=>Q(t,"text-cyan"),gray:t=>Q(t,"text-gray"),green:t=>Q(t,"text-green"),indigo:t=>Q(t,"text-indigo"),lime:t=>Q(t,"text-lime"),orange:t=>Q(t,"text-orange"),pink:t=>Q(t,"text-pink"),purple:t=>Q(t,"text-purple"),red:t=>Q(t,"text-red"),teal:t=>Q(t,"text-teal"),white:t=>Q(t,"text-white"),yellow:t=>Q(t,"text-yellow")},cc=[[/^delay-?(\d+)?$/,(t,e,n)=>{const s=(t[1]?Number.parseInt(t[1]):n)||300;return e.delay=s,e}],[/^(?:op|opacity)-?(\d+)?$/,(t,e,n)=>{const s=(t[1]?Number.parseInt(t[1]):n)||100;return e.opacity=s/100,e}]];function uc(){return{install(t){t.directive("mark",{name:"v-mark",mounted:(e,n)=>{const{isPrintMode:s}=st(),o=k(()=>{const i=typeof n.value=="object"&&!Array.isArray(n.value)?{...n.value}:{at:n.value};let l={at:i.at};const c=Object.entries(n.modifiers).filter(([d,h])=>{if(Ws[d])return l=Ws[d](l,h),!1;for(const[u,g]of cc){const p=d.match(u);if(p)return l=g(p,l,h),!1}return!0});c.length&&console.warn("[Slidev] Invalid modifiers for v-mark:",c);const f={...l,...i};return f.type||="underline",s.value&&(f.animationDuration=1),f}),r=lc(e,o.value),a=Ct(e,n,o.value.at);if(!a){r.show();return}e.watchStopHandle=tt(()=>{let i;o.value.class&&(r.class=o.value.class),o.value.color&&(r.color=o.value.color);const l=o.value.at;l===!0?i=!0:l===!1?i=!1:i=a.isActive.value,i!=null&&(i?r.show():r.hide())})},unmounted:e=>{e.watchStopHandle?.()}})}}}function fc(){return{install(t){const e=hr();t.directive("motion",{name:"v-motion",mounted(n,s,o,r){const a=nt(s,Vt),i=nt(s,$n),l=nt(s,Rn),{currentPage:c,clicks:f,isPrintMode:d}=st(),h=o.props={...o.props},u={...h.initial,...h.variants?.["slidev-initial"]},g={...h.enter,...h.variants?.["slidev-enter"]},p={...h.leave,...h.variants?.["slidev-leave"]};delete h.initial,delete h.enter,delete h.leave;const m=`${Bn()}-`,y=[];for(const w of Object.keys(h))if(w.startsWith("click-")){const b=w.slice(6),_=b.includes("-")?b.split("-").map(Number):+b,P=m+b;y.push({id:P,at:_,variant:{...h[w]},info:a?.value.calculate(_)}),delete h[w]}y.sort((w,b)=>(Array.isArray(w.at)?w.at[0]:w.at)-(Array.isArray(b.at)?b.at[0]:b.at)),e.created(n,s,o,r),e.mounted(n,s,o,r);const v=n.motionInstance;v.clickIds=y.map(w=>w.id),v.set(u),v.watchStopHandle=ee([i,c,f].filter(Boolean),()=>{const w=Ao.get(n)?.visibilityState.value??"shown";if(!a?.value||!["slide","presenter"].includes(l?.value??"")){const b={...u,...g};for(const{variant:_}of y)Object.assign(b,_);v.set(b)}else if(d.value||i?.value===c.value)if(w==="shown"){const b={...u,...g};for(const{variant:_,info:P}of y)(!P||P.isActive.value)&&Object.assign(b,_);d.value?v.set(b):v.apply(b)}else v.apply(w==="before"?u:p);else v.apply((i?.value??-1)>c.value?u:p)},{immediate:!0})},unmounted(n){n.motionInstance.watchStopHandle()}})}}}const hc=[Object.values([])[0],Object.values([])[0]].filter(Boolean);function dc(){const t=[];function e(n){if(!q.remote||q.remote===n.query.password)return!0;if(q.remote&&n.query.password===void 0){const s=prompt("Enter password");if(q.remote===s)return!0}return n.params.no?{path:`/${n.params.no}`}:{path:""}}return t.push({name:"entry",path:"/entry",component:()=>M(()=>import("./slidev/entry-C7bHC-DN.js"),__vite__mapDeps([57,1,3,4,58])),beforeEnter:e},{name:"overview",path:"/overview",component:()=>M(()=>import("./slidev/overview-s5HYztaj.js"),__vite__mapDeps([59,60,1,61,62,63,64,65,66,3,4])),beforeEnter:e},{name:"notes",path:"/notes",component:()=>M(()=>import("./slidev/notes-Bll_90vV.js"),__vite__mapDeps([67,1,61,62,68,65,69,3,4])),beforeEnter:e},{name:"notes-edit",path:"/notes-edit",component:()=>M(()=>import("./slidev/notes-edit-DBQoatID.js"),__vite__mapDeps([70,1,66,65,69,3,4])),beforeEnter:e},{name:"presenter",path:"/presenter/:no",component:()=>M(()=>import("./slidev/presenter-BaDoaToA.js"),__vite__mapDeps([71,1,63,64,72,2,60,65,3,4,73,61,62,68,74,75,66,76])),beforeEnter:e},{path:"/presenter",redirect:{path:"/presenter/1"}}),t.push({name:"play",path:"/:no",component:()=>M(()=>import("./slidev/play-Dirf0-rK.js"),__vite__mapDeps([77,1,63,64,72,2,60,65,3,4,73,69,78]))},{path:"",redirect:{path:"/1"}},{path:"/:pathMatch(.*)*",name:"NotFound",component:()=>M(()=>import("./slidev/404-Dlg9VO0J.js"),__vite__mapDeps([79,1,3,4,80]))}),hc.reduce((n,s)=>s(n),t)}async function pc(t){function e(){document.documentElement.style.setProperty("--vh",`${window.innerHeight*.01}px`)}e(),window.addEventListener("resize",e);const n=dr({history:pr("/"),routes:dc()});t.use(n),t.use(bl()),t.use(kl()),t.use(uc()),t.use(Tl()),t.use(fc()),t.use(mr,{container:"#twoslash-container"});const s={app:t,router:n};for(const o of yl)await o(s)}async function gc(){const t=gr(ml);await pc(t),t.mount("#app")}gc();export{Ec as $,Mc as A,Li as B,Ot as C,Cc as D,$i as E,bn as F,Dc as G,Bc as H,vc as I,Dt as J,Tc as K,lo as L,Oi as M,bt as N,Lc as O,Jc as P,Fc as Q,xc as R,se as S,Ti as T,_l as U,Zs as V,Sr as W,Pc as X,gi as Y,In as Z,ta as _,st as a,vt as a0,Oc as a1,Ac as a2,Ic as a3,Rc as a4,Uc as a5,Vc as a6,Wc as a7,te as a8,To as a9,Eo as aa,io as ab,Xs as ac,kc as ad,yi as ae,$n as af,Rn as ag,Vt as ah,vi as ai,Qc as aj,Ao as ak,mi as al,_c as am,bi as an,ho as b,Xr as c,Gc as d,ao as e,$c as f,Ye as g,wt as h,$s as i,Ai as j,Nt as k,Hc as l,jc as m,qc as n,q as o,wc as p,bc as q,gn as r,Zt as s,zc as t,Jr as u,Jn as v,Ut as w,Nc as x,M as y,Sc as z}; +\r `);function Bn(t=5){const e=[],n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s=n.length;for(let o=0;orl.push(t));te(ue,"$onPatch",t=>al.push(t));To();te(ue,"$patch",async()=>!1);const il={channels:[],enabled:!0,init(t,e,n,s=!1){let o;if(!s)o=new BroadcastChannel(t),o.addEventListener("message",r=>e(r.data)),this.channels.push(o);else if(s){this.listener=function(a){a&&a.key===t&&a.newValue&&e(JSON.parse(a.newValue))},window.addEventListener("storage",this.listener);const r=window.localStorage.getItem(t);r&&e(JSON.parse(r))}return(r,a=!1)=>{this.enabled&&(!s&&o&&!a&&o.postMessage(Ys(r)),s&&!a&&window.localStorage.setItem(t,JSON.stringify(r)))}},disable(){this.enabled=!1,this.channels.forEach(t=>t.close()),this.listener&&window.removeEventListener("storage",this.listener)}},ll=T([il]),cl=new Map,Ds=O({});function Eo(t,e,n=!1){const s=[];let o=!1,r=!1,a,i;const l=T(e);function c(u){s.push(u)}function f(u,g){l[u]!==g&&(clearTimeout(a),o=!0,l[u]=g,a=setTimeout(()=>o=!1,0))}function d(u){o||(clearTimeout(i),r=!0,Object.entries(u).forEach(([g,p])=>{l[g]=p}),i=setTimeout(()=>r=!1,0))}function h(u){cl.set(u,{onUpdate:d,persist:n,state:l}),Ds.value[u]=ll.map(p=>p.init(u,d,l,n)).filter(p=>!!p);function g(){Ds.value[u].forEach(p=>p?.(Ys(l),r)),o||s.forEach(p=>p(l))}ee(l,g,{deep:!0})}return{init:h,onPatch:c,onUpdate:d,patch:f,state:l}}const{init:ul,onPatch:Wc,patch:Vc,state:Uc}=Eo(ue,ue,!1),Ge=T({page:0,clicks:0,timer:{status:"stopped",slides:{},startedAt:0,pausedAt:0}});let fl=[],hl=[];te(Ge,"$syncUp",!0);te(Ge,"$syncDown",!0);te(Ge,"$paused",!1);te(Ge,"$onSet",t=>fl.push(t));te(Ge,"$onPatch",t=>hl.push(t));To();te(Ge,"$patch",async()=>!1);const{init:dl,onPatch:pl,patch:St,state:Gc}=Eo(Ge,{page:1,clicks:0,clicksTotal:0,timer:{status:"stopped",slides:{},startedAt:0,pausedAt:0}});function gl(){const t=Us().appContext.app,e=T({nav:st(),configs:q,themeConfigs:k(()=>q.themeConfig)});t.provide(Rn,O("none")),t.provide(mi,e),t.provide($n,k(()=>e.nav.currentSlideNo)),t.provide(Vt,Cn(Xr()));for(const h of Tr)h();const{clicksContext:n,currentSlideNo:s,hasPrimarySlide:o,isNotesViewer:r,isPresenter:a,isPrintMode:i}=st();Jr({title:Zt,htmlAttrs:q.htmlAttrs}),Ni(),dl(`${Zt} - shared`),ul(`${Zt} - drawings`);const l=`${location.origin}_${Bn()}`,c=k(()=>a.value?"presenter":"viewer");function f(){(a.value?bt.value.presenterSend:bt.value.viewerSend)&&(r.value||i.value||!a.value&&!wi.includes(location.host.split(":")[0])||(St("page",+s.value),St("clicks",n.value.current),St("clicksTotal",n.value.total),St("lastUpdate",{id:l,type:c.value,time:new Date().getTime()})))}const d=zt();d.afterEach(f),ee(n,f),pl(h=>{(a.value?bt.value.presenterReceive:bt.value.viewerReceive)&&(!o.value||i.value||h.lastUpdate?.type!==c.value&&(+h.page==+s.value&&+n.value.current==+h.clicks||(In.value=!1,d.replace({path:Ye(h.page,a.value),query:{...d.currentRoute.value.query,clicks:h.clicks||0}}))))})}const ml=Qs({__name:"App",setup(t){return gl(),tt(()=>{for(const[e,n]of Object.entries(Mr.value))document.body.style.setProperty(e,n.toString())}),(e,n)=>{const s=ir("RouterView");return Rt(),ar(s)}}}),yl=[Object.values([])[0],Object.values([])[0]].filter(Boolean);async function Oo(t,e={}){const n=e.document||t.resolvedOptions.document;if(!n||!t.dirty)return;const s={shouldRender:!0,tags:[]};if(await t.hooks.callHook("dom:beforeRender",s),!!s.shouldRender)return t._domUpdatePromise||(t._domUpdatePromise=new Promise(async o=>{const r=new Map,a=new Promise(u=>{t.resolveTags().then(g=>{u(g.map(p=>{const m=r.get(p._d)||0,y={tag:p,id:(m?`${p._d}:${m}`:p._d)||p._h,shouldRender:!0};return p._d&&no(p._d)&&r.set(p._d,m+1),y}))})});let i=t._dom;if(!i){i={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const u of["body","head"]){const g=n[u]?.children;for(const p of g){const m=p.tagName.toLowerCase();if(!mn.has(m))continue;const y=oo({tag:m,props:{}},{innerHTML:p.innerHTML,...p.getAttributeNames().reduce((v,w)=>(v[w]=p.getAttribute(w),v),{})||{}});if(y.key=p.getAttribute("data-hid")||void 0,y._d=vn(y)||so(y),i.elMap.has(y._d)){let v=1,w=y._d;for(;i.elMap.has(w);)w=`${y._d}:${v++}`;i.elMap.set(w,p)}else i.elMap.set(y._d,p)}}}i.pendingSideEffects={...i.sideEffects},i.sideEffects={};function l(u,g,p){const m=`${u}:${g}`;i.sideEffects[m]=p,delete i.pendingSideEffects[m]}function c({id:u,$el:g,tag:p}){const m=p.tag.endsWith("Attrs");i.elMap.set(u,g),m||(p.textContent&&p.textContent!==g.textContent&&(g.textContent=p.textContent),p.innerHTML&&p.innerHTML!==g.innerHTML&&(g.innerHTML=p.innerHTML),l(u,"el",()=>{g?.remove(),i.elMap.delete(u)}));for(const y in p.props){if(!Object.prototype.hasOwnProperty.call(p.props,y))continue;const v=p.props[y];if(y.startsWith("on")&&typeof v=="function"){const b=g?.dataset;if(b&&b[`${y}fired`]){const _=y.slice(0,-5);v.call(g,new Event(_.substring(2)))}g.getAttribute(`data-${y}`)!==""&&((p.tag==="bodyAttrs"?n.defaultView:g).addEventListener(y.substring(2),v.bind(g)),g.setAttribute(`data-${y}`,""));continue}const w=`attr:${y}`;if(y==="class"){if(!v)continue;for(const b of v)m&&l(u,`${w}:${b}`,()=>g.classList.remove(b)),!g.classList.contains(b)&&g.classList.add(b)}else if(y==="style"){if(!v)continue;for(const[b,_]of v)l(u,`${w}:${b}`,()=>{g.style.removeProperty(b)}),g.style.setProperty(b,_)}else v!==!1&&v!==null&&(g.getAttribute(y)!==v&&g.setAttribute(y,v===!0?"":String(v)),m&&l(u,w,()=>g.removeAttribute(y)))}}const f=[],d={bodyClose:void 0,bodyOpen:void 0,head:void 0},h=await a;for(const u of h){const{tag:g,shouldRender:p,id:m}=u;if(p){if(g.tag==="title"){n.title=g.textContent,l("title","",()=>n.title=i.title);continue}u.$el=u.$el||i.elMap.get(m),u.$el?c(u):mn.has(g.tag)&&f.push(u)}}for(const u of f){const g=u.tag.tagPosition||"head";u.$el=n.createElement(u.tag.tag),c(u),d[g]=d[g]||n.createDocumentFragment(),d[g].appendChild(u.$el)}for(const u of h)await t.hooks.callHook("dom:renderTag",u,n,l);d.head&&n.head.appendChild(d.head),d.bodyOpen&&n.body.insertBefore(d.bodyOpen,n.body.firstChild),d.bodyClose&&n.body.appendChild(d.bodyClose);for(const u in i.pendingSideEffects)i.pendingSideEffects[u]();t._dom=i,await t.hooks.callHook("dom:rendered",{renders:h}),o()}).finally(()=>{t._domUpdatePromise=void 0,t.dirty=!1})),t._domUpdatePromise}function vl(t={}){const e=t.domOptions?.render||Oo;t.document=t.document||(typeof window<"u"?document:void 0);const n=t.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return Vr({...t,plugins:[...t.plugins||[],{key:"client",hooks:{"entries:updated":e}}],init:[n?JSON.parse(n):!1,...t.init||[]]})}function wl(t,e){let n=0;return()=>{const s=++n;e(()=>{n===s&&t()})}}function bl(t={}){const e=vl({domOptions:{render:wl(()=>Oo(e),n=>setTimeout(n,0))},...t});return e.install=Gr(e),e}function Qc(t,e=""){const n=["slidev-page",e],s=t?.meta?.slide?.no;return s!=null&&n.push(`slidev-page-${s}`),n.filter(Boolean).join(" ")}async function Jc(){const{saveAs:t}=await M(async()=>{const{saveAs:e}=await import("./modules/file-saver-DKWcVV7Q.js").then(n=>n.F);return{saveAs:e}},[]);t(typeof q.download=="string"?q.download:q.exportFilename?`${q.exportFilename}.pdf`:"/slidev-exported.pdf",`${q.title}.pdf`)}function nt(t,e,n){return(t.instance?.$).provides[e]??n}function kl(){return{install(t){t.directive("click",{name:"v-click",mounted(e,n){const s=Ct(e,n,n.value);s!=null&&(e.classList.toggle(Et,!0),e.dataset.slidevClicksStart=String(s.start),Number.isFinite(s.end)&&(e.dataset.slidevClicksEnd=String(s.end)),e.watchStopHandle=tt(()=>{const o=s.isActive.value,r=s.isCurrent.value,a=o&&!r;s.flagHide?(e.classList.toggle(s.flagFade?it:at,o),e.classList.toggle(tn,o)):e.classList.toggle(s.flagFade?it:at,!o),e.classList.toggle(nn,r),e.classList.toggle(sn,a)}))},unmounted:ln}),t.directive("after",{name:"v-after",mounted(e,n){const s=Ct(e,n,"+0");s!=null&&(e.classList.toggle(Et,!0),e.watchStopHandle=tt(()=>{const o=s.isActive.value,r=s.isCurrent.value,a=o&&!r;s.flagHide?(e.classList.toggle(s.flagFade?it:at,o),e.classList.toggle(tn,o)):e.classList.toggle(s.flagFade?it:at,!o),e.classList.toggle(nn,r),e.classList.toggle(sn,a)}))},unmounted:ln}),t.directive("click-hide",{name:"v-click-hide",mounted(e,n){const s=Ct(e,n,n.value,!0);s!=null&&(e.classList.toggle(Et,!0),e.watchStopHandle=tt(()=>{const o=s.isActive.value,r=s.isCurrent.value,a=o&&!r;e.classList.toggle(s.flagFade?it:at,o),e.classList.toggle(tn,o),e.classList.toggle(nn,r),e.classList.toggle(sn,a)}))},unmounted:ln})}}}const Ao=new Map;function Ct(t,e,n,s=!1){const o=nt(e,Vt)?.value;if(!t||!o)return null;const r=s||e.modifiers.hide!==!1&&e.modifiers.hide!=null,a=e.modifiers.fade!==!1&&e.modifiers.fade!=null,i=o.calculate(n);if(!i)return null;o.register(t,i);const l=k(()=>r?!i.isActive.value:i.isActive.value),c=k(()=>l.value?"shown":Number.isFinite(i.end)?o.current{setTimeout(e.update,300)},{flush:"post",immediate:!0});return{...e,stop:n}}function Sl(t){return()=>{}}function Ml(t,e,n,s=!1){function o(x){return t?nt(t,x):ur(x)}const r=o(Rn),a=o(yi)??{},i=o($n),l=k(()=>Sl(i.value)),c=o(gi)??O(1),f=o(vi)??O(1),{left:d,top:h,stop:u}=_l(o(io)??O()),{isPrintMode:g}=st(),p=["slide","presenter"].includes(r.value)&&!g.value;let m=t?"directive":"prop",y=Bn(),v;if(Array.isArray(e)?v=e:typeof e=="string"&&e.includes(",")?v=e.split(",").map(Number):e!=null&&(m="frontmatter",y=`${e}`,e=a?.dragPos?.[y],v=e?.split(",").map(Number)),m!=="frontmatter"&&!n)throw new Error("[Slidev] Can not identify the source position of the v-drag element, please provide an explicit `id` prop.");const w=[u],b=!s&&e!=null&&!Number.isFinite(v?.[3]);v??=[Number.NaN,Number.NaN,0];const _=O(v[2]),P=O(v[0]+v[2]/2),I=O(s?0:v[4]??0),j=k(()=>I.value*Math.PI/180),U=k(()=>Math.sin(j.value)),le=k(()=>Math.cos(j.value)),X=O(),E=O({left:0,top:0,width:0,height:0}),R=O(0);function B(){if(!X.value)return;const x=X.value.getBoundingClientRect();E.value={left:x.left/f.value,top:x.top/f.value,width:x.width/f.value,height:x.height/f.value},R.value=(E.value.width+E.value.height)/c.value/(Math.abs(U.value)+Math.abs(le.value))-_.value}w.push(ee(_,B,{flush:"post"}));const F=O(v[3]??0),D=b?k({get:()=>(b?R.value:F.value)||0,set:x=>!b&&(F.value=x)}):F,ae=b?O(v[1]):O(v[1]+v[3]/2),ce=b?k({get:()=>ae.value+D.value/2,set:x=>ae.value=x-D.value/2}):ae,ot=k(()=>Number.isFinite(P.value)?{position:"absolute",zIndex:100,left:`${P.value-_.value/2}px`,top:`${ce.value-D.value/2}px`,width:`${_.value}px`,height:b?void 0:`${D.value}px`,transformOrigin:"center center",transform:`rotate(${I.value}deg)`}:{position:"absolute",zIndex:100});w.push(ee([P,ce,_,D,I],([x,yt,Vn,Un,Gn])=>{let Qe=[x-Vn/2,yt-Un/2,Vn].map(Math.round).join();b?Qe+=m==="directive"?",NaN":",_":Qe+=`,${Math.round(Un)}`,Math.round(Gn)!==0&&(Qe+=`,${Math.round(Gn)}`),m==="directive"&&(Qe=`[${Qe}]`),l.value(y,Qe,m,n)}));const J={dragId:y,dataSource:m,markdownSource:n,isArrow:s,zoom:f,autoHeight:b,x0:P,y0:ce,width:_,height:D,rotate:I,container:X,containerStyle:ot,watchStopHandles:w,dragging:k(()=>vt.value===J),mounted(){p&&(B(),e||setTimeout(()=>{B(),P.value=(E.value.left+E.value.width/2-d.value)/c.value,ce.value=(E.value.top-h.value)/c.value,_.value=E.value.width/c.value,D.value=E.value.height/c.value},100))},unmounted(){p&&J.stopDragging()},startDragging(){p&&(B(),vt.value=J)},stopDragging(){p&&vt.value===J&&(vt.value=null)}};return w.push(cr(X,x=>{const yt=document.querySelector("#drag-control-container");yt&&x.target&&yt.contains(x.target)||J.stopDragging()}),ee(fr(),x=>{x||J.stopDragging()})),J}function Tl(){return{install(t){t.directive("drag",{name:"v-drag",created(e,n,s){const o=Ml(n,n.value,s.props?.markdownSource);s.props&&(s.props={...s.props},delete s.props.markdownSource),o.container.value=e,e.draggingState=o,e.dataset.dragId=o.dragId,o.watchStopHandles.push(ee(o.containerStyle,r=>{for(const[a,i]of Object.entries(r))i&&(e.style[a]=i)},{immediate:!0})),e.addEventListener("dblclick",o.startDragging)},mounted(e){e.draggingState.mounted()},unmounted(e){const n=e.draggingState;n.unmounted(),e.removeEventListener("dblclick",n.startDragging),n.watchStopHandles.forEach(s=>s())}})}}}function Lo(){return Math.floor(Math.random()*2**31)}class El{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}function Mn(t,e,n){if(t&&t.length){const[s,o]=e,r=Math.PI/180*n,a=Math.cos(r),i=Math.sin(r);for(const l of t){const[c,f]=l;l[0]=(c-s)*a-(f-o)*i+s,l[1]=(c-s)*i+(f-o)*a+o}}}function Ol(t,e,n){const s=[];t.forEach(o=>s.push(...o)),Mn(s,e,n)}function Al(t,e){return t[0]===e[0]&&t[1]===e[1]}function Ll(t,e,n,s=1){const o=n,r=Math.max(e,.1),a=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,i=[0,0];if(o)for(const c of a)Mn(c,i,o);const l=Pl(a,r,s);if(o){for(const c of a)Mn(c,i,-o);Ol(l,i,-o)}return l}function Pl(t,e,n){const s=[];for(const c of t){const f=[...c];Al(f[0],f[f.length-1])||f.push([f[0][0],f[0][1]]),f.length>2&&s.push(f)}const o=[];e=Math.max(e,.1);const r=[];for(const c of s)for(let f=0;fc.yminf.ymin?1:c.xf.x?1:c.ymax===f.ymax?0:(c.ymax-f.ymax)/Math.abs(c.ymax-f.ymax)),!r.length)return o;let a=[],i=r[0].ymin,l=0;for(;a.length||r.length;){if(r.length){let c=-1;for(let d=0;di);d++)c=d;r.splice(0,c+1).forEach(d=>{a.push({s:i,edge:d})})}if(a=a.filter(c=>!(c.edge.ymax<=i)),a.sort((c,f)=>c.edge.x===f.edge.x?0:(c.edge.x-f.edge.x)/Math.abs(c.edge.x-f.edge.x)),(n!==1||l%e===0)&&a.length>1)for(let c=0;c=a.length)break;const d=a[c].edge,h=a[f].edge;o.push([[Math.round(d.x),i],[Math.round(h.x),i]])}i+=n,a.forEach(c=>{c.edge.x=c.edge.x+n*c.edge.islope}),l++}return o}function mt(t,e){var n;const s=e.hachureAngle+90;let o=e.hachureGap;o<0&&(o=e.strokeWidth*4),o=Math.round(Math.max(o,.1));let r=1;return e.roughness>=1&&(((n=e.randomizer)===null||n===void 0?void 0:n.next())||Math.random())>.7&&(r=o),Ll(t,o,s,r||1)}class zn{constructor(e){this.helper=e}fillPolygons(e,n){return this._fillPolygons(e,n)}_fillPolygons(e,n){const s=mt(e,n);return{type:"fillSketch",ops:this.renderLines(s,n)}}renderLines(e,n){const s=[];for(const o of e)s.push(...this.helper.doubleLineOps(o[0][0],o[0][1],o[1][0],o[1][1],n));return s}}function Xt(t){const e=t[0],n=t[1];return Math.sqrt(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2))}class Cl extends zn{fillPolygons(e,n){let s=n.hachureGap;s<0&&(s=n.strokeWidth*4),s=Math.max(s,.1);const o=Object.assign({},n,{hachureGap:s}),r=mt(e,o),a=Math.PI/180*n.hachureAngle,i=[],l=s*.5*Math.cos(a),c=s*.5*Math.sin(a);for(const[d,h]of r)Xt([d,h])&&i.push([[d[0]-l,d[1]+c],[...h]],[[d[0]+l,d[1]-c],[...h]]);return{type:"fillSketch",ops:this.renderLines(i,n)}}}class $l extends zn{fillPolygons(e,n){const s=this._fillPolygons(e,n),o=Object.assign({},n,{hachureAngle:n.hachureAngle+90}),r=this._fillPolygons(e,o);return s.ops=s.ops.concat(r.ops),s}}class Rl{constructor(e){this.helper=e}fillPolygons(e,n){n=Object.assign({},n,{hachureAngle:0});const s=mt(e,n);return this.dotsOnLines(s,n)}dotsOnLines(e,n){const s=[];let o=n.hachureGap;o<0&&(o=n.strokeWidth*4),o=Math.max(o,.1);let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);const a=o/4;for(const i of e){const l=Xt(i),c=l/o,f=Math.ceil(c)-1,d=l-f*o,h=(i[0][0]+i[1][0])/2-o/4,u=Math.min(i[0][1],i[1][1]);for(let g=0;g{const i=Xt(a),l=Math.floor(i/(s+o)),c=(i+o-l*(s+o))/2;let f=a[0],d=a[1];f[0]>d[0]&&(f=a[1],d=a[0]);const h=Math.atan((d[1]-f[1])/(d[0]-f[0]));for(let u=0;u{const a=Xt(r),i=Math.round(a/(2*n));let l=r[0],c=r[1];l[0]>c[0]&&(l=r[1],c=r[0]);const f=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let d=0;df%2?c+n:c+e);r.push({key:"C",data:l}),e=l[4],n=l[5];break}case"Q":r.push({key:"Q",data:[...i]}),e=i[2],n=i[3];break;case"q":{const l=i.map((c,f)=>f%2?c+n:c+e);r.push({key:"Q",data:l}),e=l[2],n=l[3];break}case"A":r.push({key:"A",data:[...i]}),e=i[5],n=i[6];break;case"a":e+=i[5],n+=i[6],r.push({key:"A",data:[i[0],i[1],i[2],i[3],i[4],e,n]});break;case"H":r.push({key:"H",data:[...i]}),e=i[0];break;case"h":e+=i[0],r.push({key:"H",data:[e]});break;case"V":r.push({key:"V",data:[...i]}),n=i[0];break;case"v":n+=i[0],r.push({key:"V",data:[n]});break;case"S":r.push({key:"S",data:[...i]}),e=i[2],n=i[3];break;case"s":{const l=i.map((c,f)=>f%2?c+n:c+e);r.push({key:"S",data:l}),e=l[2],n=l[3];break}case"T":r.push({key:"T",data:[...i]}),e=i[0],n=i[1];break;case"t":e+=i[0],n+=i[1],r.push({key:"T",data:[e,n]});break;case"Z":case"z":r.push({key:"Z",data:[]}),e=s,n=o;break}return r}function $o(t){const e=[];let n="",s=0,o=0,r=0,a=0,i=0,l=0;for(const{key:c,data:f}of t){switch(c){case"M":e.push({key:"M",data:[...f]}),[s,o]=f,[r,a]=f;break;case"C":e.push({key:"C",data:[...f]}),s=f[4],o=f[5],i=f[2],l=f[3];break;case"L":e.push({key:"L",data:[...f]}),[s,o]=f;break;case"H":s=f[0],e.push({key:"L",data:[s,o]});break;case"V":o=f[0],e.push({key:"L",data:[s,o]});break;case"S":{let d=0,h=0;n==="C"||n==="S"?(d=s+(s-i),h=o+(o-l)):(d=s,h=o),e.push({key:"C",data:[d,h,...f]}),i=f[0],l=f[1],s=f[2],o=f[3];break}case"T":{const[d,h]=f;let u=0,g=0;n==="Q"||n==="T"?(u=s+(s-i),g=o+(o-l)):(u=s,g=o);const p=s+2*(u-s)/3,m=o+2*(g-o)/3,y=d+2*(u-d)/3,v=h+2*(g-h)/3;e.push({key:"C",data:[p,m,y,v,d,h]}),i=u,l=g,s=d,o=h;break}case"Q":{const[d,h,u,g]=f,p=s+2*(d-s)/3,m=o+2*(h-o)/3,y=u+2*(d-u)/3,v=g+2*(h-g)/3;e.push({key:"C",data:[p,m,y,v,u,g]}),i=d,l=h,s=u,o=g;break}case"A":{const d=Math.abs(f[0]),h=Math.abs(f[1]),u=f[2],g=f[3],p=f[4],m=f[5],y=f[6];d===0||h===0?(e.push({key:"C",data:[s,o,m,y,m,y]}),s=m,o=y):(s!==m||o!==y)&&(Ro(s,o,m,y,d,h,u,g,p).forEach(function(w){e.push({key:"C",data:w})}),s=m,o=y);break}case"Z":e.push({key:"Z",data:[]}),s=r,o=a;break}n=c}return e}function Fl(t){return Math.PI*t/180}function lt(t,e,n){const s=t*Math.cos(n)-e*Math.sin(n),o=t*Math.sin(n)+e*Math.cos(n);return[s,o]}function Ro(t,e,n,s,o,r,a,i,l,c){const f=Fl(a);let d=[],h=0,u=0,g=0,p=0;if(c)[h,u,g,p]=c;else{[t,e]=lt(t,e,-f),[n,s]=lt(n,s,-f);const E=(t-n)/2,R=(e-s)/2;let B=E*E/(o*o)+R*R/(r*r);B>1&&(B=Math.sqrt(B),o=B*o,r=B*r);const F=i===l?-1:1,D=o*o,ae=r*r,ce=D*ae-D*R*R-ae*E*E,ot=D*R*R+ae*E*E,J=F*Math.sqrt(Math.abs(ce/ot));g=J*o*R/r+(t+n)/2,p=J*-r*E/o+(e+s)/2,h=Math.asin(parseFloat(((e-p)/r).toFixed(9))),u=Math.asin(parseFloat(((s-p)/r).toFixed(9))),tu&&(h=h-Math.PI*2),!l&&u>h&&(u=u-Math.PI*2)}let m=u-h;if(Math.abs(m)>Math.PI*120/180){const E=u,R=n,B=s;l&&u>h?u=h+Math.PI*120/180*1:u=h+Math.PI*120/180*-1,n=g+o*Math.cos(u),s=p+r*Math.sin(u),d=Ro(n,s,R,B,o,r,a,0,l,[u,E,g,p])}m=u-h;const y=Math.cos(h),v=Math.sin(h),w=Math.cos(u),b=Math.sin(u),_=Math.tan(m/4),P=4/3*o*_,I=4/3*r*_,j=[t,e],U=[t+P*v,e-I*y],le=[n+P*b,s-I*w],X=[n,s];if(U[0]=2*j[0]-U[0],U[1]=2*j[1]-U[1],c)return[U,le,X].concat(d);{d=[U,le,X].concat(d);const E=[];for(let R=0;R2){const o=[];for(let r=0;rMath.PI*2&&(u=0,g=Math.PI*2);const p=Math.PI*2/l.curveStepCount,m=Math.min(p/2,(g-u)/2),y=js(m,c,f,d,h,u,g,1,l);if(!l.disableMultiStroke){const v=js(m,c,f,d,h,u,g,1.5,l);y.push(...v)}return a&&(i?y.push(...fe(c,f,c+d*Math.cos(u),f+h*Math.sin(u),l),...fe(c,f,c+d*Math.cos(g),f+h*Math.sin(g),l)):y.push({op:"lineTo",data:[c,f]},{op:"lineTo",data:[c+d*Math.cos(u),f+h*Math.sin(u)]})),{type:"path",ops:y}}function xs(t,e){const n=$o(Co(Wn(t))),s=[];let o=[0,0],r=[0,0];for(const{key:a,data:i}of n)switch(a){case"M":{r=[i[0],i[1]],o=[i[0],i[1]];break}case"L":s.push(...fe(r[0],r[1],i[0],i[1],e)),r=[i[0],i[1]];break;case"C":{const[l,c,f,d,h,u]=i;s.push(...Ul(l,c,f,d,h,u,r,e)),r=[h,u];break}case"Z":s.push(...fe(r[0],r[1],o[0],o[1],e)),r=[o[0],o[1]];break}return{type:"path",ops:s}}function un(t,e){const n=[];for(const s of t)if(s.length){const o=e.maxRandomnessOffset||0,r=s.length;if(r>2){n.push({op:"move",data:[s[0][0]+S(o,e),s[0][1]+S(o,e)]});for(let a=1;aMath.PI*2&&(d=0,h=Math.PI*2);const u=(h-d)/a.curveStepCount,g=[];for(let p=d;p<=h;p=p+u)g.push([i+c*Math.cos(p),l+f*Math.sin(p)]);return g.push([i+c*Math.cos(h),l+f*Math.sin(h)]),g.push([i,l]),Ke([g],a)}function zl(t,e){return S(t,e)}function Wl(t,e,n){return Ht(t,e,n)}function Vl(t,e,n,s,o){return fe(t,e,n,s,o,!0)}function Fs(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function No(t){return t.randomizer||(t.randomizer=new El(t.seed||0)),t.randomizer.next()}function Ht(t,e,n,s=1){return n.roughness*s*(No(n)*(e-t)+t)}function S(t,e,n=1){return Ht(-t,t,e,n)}function fe(t,e,n,s,o,r=!1){const a=r?o.disableMultiStrokeFill:o.disableMultiStroke,i=An(t,e,n,s,o,!0,!1);if(a)return i;const l=An(t,e,n,s,o,!0,!0);return i.concat(l)}function An(t,e,n,s,o,r,a){const i=Math.pow(t-n,2)+Math.pow(e-s,2),l=Math.sqrt(i);let c=1;l<200?c=1:l>500?c=.4:c=-.0016668*l+1.233334;let f=o.maxRandomnessOffset||0;f*f*100>i&&(f=l/10);const d=f/2,h=.2+No(o)*.2;let u=o.bowing*o.maxRandomnessOffset*(s-e)/200,g=o.bowing*o.maxRandomnessOffset*(t-n)/200;u=S(u,o,c),g=S(g,o,c);const p=[],m=()=>S(d,o,c),y=()=>S(f,o,c),v=o.preserveVertices;return a?p.push({op:"move",data:[t+(v?0:m()),e+(v?0:m())]}):p.push({op:"move",data:[t+(v?0:S(f,o,c)),e+(v?0:S(f,o,c))]}),a?p.push({op:"bcurveTo",data:[u+t+(n-t)*h+m(),g+e+(s-e)*h+m(),u+t+2*(n-t)*h+m(),g+e+2*(s-e)*h+m(),n+(v?0:m()),s+(v?0:m())]}):p.push({op:"bcurveTo",data:[u+t+(n-t)*h+y(),g+e+(s-e)*h+y(),u+t+2*(n-t)*h+y(),g+e+2*(s-e)*h+y(),n+(v?0:y()),s+(v?0:y())]}),p}function Tt(t,e,n){if(!t.length)return[];const s=[];s.push([t[0][0]+S(e,n),t[0][1]+S(e,n)]),s.push([t[0][0]+S(e,n),t[0][1]+S(e,n)]);for(let o=1;o3){const r=[],a=1-n.curveTightness;o.push({op:"move",data:[t[1][0],t[1][1]]});for(let i=1;i+21&&o.push(r):o.push(r),o.push(t[e+3])}else{const a=t[e+0],i=t[e+1],l=t[e+2],c=t[e+3],f=ze(a,i,.5),d=ze(i,l,.5),h=ze(l,c,.5),u=ze(f,d,.5),g=ze(d,h,.5),p=ze(u,g,.5);Ln([a,f,u,p],0,n,o),Ln([p,g,h,c],0,n,o)}return o}function Kl(t,e){return Bt(t,0,t.length,e)}function Bt(t,e,n,s,o){const r=o||[],a=t[e],i=t[n-1];let l=0,c=1;for(let f=e+1;fl&&(l=d,c=f)}return Math.sqrt(l)>s?(Bt(t,e,c+1,s,r),Bt(t,c,n,s,r)):(r.length||r.push(a),r.push(i)),r}function Pn(t,e=.15,n){const s=[],o=(t.length-1)/3;for(let r=0;r0?Bt(s,0,s.length,n):s}function Yl(t,e,n){const s=Wn(t),o=$o(Co(s)),r=[];let a=[],i=[0,0],l=[];const c=()=>{l.length>=4&&a.push(...Pn(l,e)),l=[]},f=()=>{c(),a.length&&(r.push(a),a=[])};for(const{key:h,data:u}of o)switch(h){case"M":f(),i=[u[0],u[1]],a.push(i);break;case"L":c(),a.push([u[0],u[1]]);break;case"C":if(!l.length){const g=a.length?a[a.length-1]:i;l.push([g[0],g[1]])}l.push([u[0],u[1]]),l.push([u[2],u[3]]),l.push([u[4],u[5]]);break;case"Z":c(),a.push([i[0],i[1]]);break}if(f(),!n)return r;const d=[];for(const h of r){const u=Kl(h,n);u.length&&d.push(u)}return d}const K="none";class Xl{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Lo()}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,n,s){return{shape:e,sets:n||[],options:s||this.defaultOptions}}line(e,n,s,o,r){const a=this._o(r);return this._d("line",[Z(e,n,s,o,a)],a)}rectangle(e,n,s,o,r){const a=this._o(r),i=[],l=Io(e,n,s,o,a);if(a.fill){const c=[[e,n],[e+s,n],[e+s,n+o],[e,n+o]];a.fillStyle==="solid"?i.push(un([c],a)):i.push(Ke([c],a))}return a.stroke!==K&&i.push(l),this._d("rectangle",i,a)}ellipse(e,n,s,o,r){const a=this._o(r),i=[],l=Do(s,o,a),c=On(e,n,a,l);if(a.fill)if(a.fillStyle==="solid"){const f=On(e,n,a,l).opset;f.type="fillPath",i.push(f)}else i.push(Ke([c.estimatedPoints],a));return a.stroke!==K&&i.push(c.opset),this._d("ellipse",i,a)}circle(e,n,s,o){const r=this.ellipse(e,n,s,s,o);return r.shape="circle",r}linearPath(e,n){const s=this._o(n);return this._d("linearPath",[dt(e,!1,s)],s)}arc(e,n,s,o,r,a,i=!1,l){const c=this._o(l),f=[],d=qs(e,n,s,o,r,a,i,!0,c);if(i&&c.fill)if(c.fillStyle==="solid"){const h=Object.assign({},c);h.disableMultiStroke=!0;const u=qs(e,n,s,o,r,a,!0,!1,h);u.type="fillPath",f.push(u)}else f.push(Bl(e,n,s,o,r,a,c));return c.stroke!==K&&f.push(d),this._d("arc",f,c)}curve(e,n){const s=this._o(n),o=[],r=Ns(e,s);if(s.fill&&s.fill!==K)if(s.fillStyle==="solid"){const a=Ns(e,Object.assign(Object.assign({},s),{disableMultiStroke:!0,roughness:s.roughness?s.roughness+s.fillShapeRoughnessGain:0}));o.push({type:"fillPath",ops:this._mergedShape(a.ops)})}else{const a=[],i=e;if(i.length){const c=typeof i[0][0]=="number"?[i]:i;for(const f of c)f.length<3?a.push(...f):f.length===3?a.push(...Pn(Bs([f[0],f[0],f[1],f[2]]),10,(1+s.roughness)/2)):a.push(...Pn(Bs(f),10,(1+s.roughness)/2))}a.length&&o.push(Ke([a],s))}return s.stroke!==K&&o.push(r),this._d("curve",o,s)}polygon(e,n){const s=this._o(n),o=[],r=dt(e,!0,s);return s.fill&&(s.fillStyle==="solid"?o.push(un([e],s)):o.push(Ke([e],s))),s.stroke!==K&&o.push(r),this._d("polygon",o,s)}path(e,n){const s=this._o(n),o=[];if(!e)return this._d("path",o,s);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const r=s.fill&&s.fill!=="transparent"&&s.fill!==K,a=s.stroke!==K,i=!!(s.simplification&&s.simplification<1),l=i?4-4*(s.simplification||1):(1+s.roughness)/2,c=Yl(e,1,l),f=xs(e,s);if(r)if(s.fillStyle==="solid")if(c.length===1){const d=xs(e,Object.assign(Object.assign({},s),{disableMultiStroke:!0,roughness:s.roughness?s.roughness+s.fillShapeRoughnessGain:0}));o.push({type:"fillPath",ops:this._mergedShape(d.ops)})}else o.push(un(c,s));else o.push(Ke(c,s));return a&&(i?c.forEach(d=>{o.push(dt(d,!1,s))}):o.push(f)),this._d("path",o,s)}opsToPath(e,n){let s="";for(const o of e.ops){const r=typeof n=="number"&&n>=0?o.data.map(a=>+a.toFixed(n)):o.data;switch(o.op){case"move":s+=`M${r[0]} ${r[1]} `;break;case"bcurveTo":s+=`C${r[0]} ${r[1]}, ${r[2]} ${r[3]}, ${r[4]} ${r[5]} `;break;case"lineTo":s+=`L${r[0]} ${r[1]} `;break}}return s.trim()}toPaths(e){const n=e.sets||[],s=e.options||this.defaultOptions,o=[];for(const r of n){let a=null;switch(r.type){case"path":a={d:this.opsToPath(r),stroke:s.stroke,strokeWidth:s.strokeWidth,fill:K};break;case"fillPath":a={d:this.opsToPath(r),stroke:K,strokeWidth:0,fill:s.fill||K};break;case"fillSketch":a=this.fillSketch(r,s);break}a&&o.push(a)}return o}fillSketch(e,n){let s=n.fillWeight;return s<0&&(s=n.strokeWidth/2),{d:this.opsToPath(e),stroke:n.fill||K,strokeWidth:s,fill:K}}_mergedShape(e){return e.filter((n,s)=>s===0?!0:n.op!=="move")}}const qo="http://www.w3.org/2000/svg",Zl=800;let fn=null;function ec(){return fn||(fn=new Xl().defaultOptions),fn}function hn(t,e,n){return{...ec(),maxRandomnessOffset:2,roughness:t==="highlight"?3:1.5,bowing:1,stroke:"#000",strokeWidth:1.5,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,disableMultiStroke:t!=="double",disableMultiStrokeFill:!1,seed:e,...n}}function tc(t){const e=t.padding;if(e||e===0){if(typeof e=="number")return[e,e,e,e];if(Array.isArray(e)){const n=e;if(n.length)switch(n.length){case 4:return[...n];case 1:return[n[0],n[0],n[0],n[0]];case 2:return[...n,...n];case 3:return[...n,n[1]];default:return[n[0],n[1],n[2],n[3]]}}}return[5,5,5,5]}function nc(t,e,n,s,o,r){const a=[];let i=n.strokeWidth||2;const l=tc(n),c=n.animate===void 0?!0:!!n.animate,f=n.iterations||2,d=n.rtl?1:0,h=hn("single",r,n);switch(n.type){case"underline":{const u=e.y+e.h+l[2];for(let g=d;gv.setAttribute(w,b);for(const v of u){const w=document.createElementNS(qo,"path");if(y(w,"d",v),y(w,"fill","none"),y(w,"stroke",n.color||"currentColor"),y(w,"stroke-width",`${i}`),n.opacity!==void 0&&y(w,"style",`opacity:${n.opacity}`),c){const b=w.getTotalLength();g.push(b),m+=b}t.appendChild(w),p.push(w)}if(c){let v=0;for(let w=0;wsetTimeout(e,t))}function sc(t){const e=[];for(const n of t){let s="";for(const o of n.ops){const r=o.data;switch(o.op){case"move":s.trim()&&e.push(s.trim()),s=`M${r[0]} ${r[1]} `;break;case"bcurveTo":s+=`C${r[0]} ${r[1]}, ${r[2]} ${r[3]}, ${r[4]} ${r[5]} `;break;case"lineTo":s+=`L${r[0]} ${r[1]} `;break}}s.trim()&&e.push(s.trim())}return e}function oc(){if(!window.__rno_kf_s){const t=window.__rno_kf_s=document.createElement("style");t.textContent="@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }",document.head.appendChild(t)}}var rc=Object.defineProperty,ac=(t,e,n)=>e in t?rc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ne=(t,e,n)=>(ac(t,typeof e!="symbol"?e+"":e,n),n);class ic{constructor(e,n){ne(this,"_state","unattached"),ne(this,"_config"),ne(this,"_resizing",!1),ne(this,"_ro"),ne(this,"_seed",Lo()),ne(this,"_e"),ne(this,"_svg"),ne(this,"_lastSizes",[]),ne(this,"_animationDelay",0),ne(this,"_resizeListener",()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,this._state==="showing"&&this.haveRectsChanged()&&this.show()},400))}),ne(this,"pendingRefresh"),this._e=e,this._config=JSON.parse(JSON.stringify(n)),this.attach()}getConfig(e){return this._config[e]}setConfig(e,n){this._config[e]!==n&&(this._config[e]=n,this.refresh())}get animate(){return this._config.animate}set animate(e){this._config.animate=e}get animationDuration(){return this._config.animationDuration}set animationDuration(e){this._config.animationDuration=e}get iterations(){return this._config.iterations}set iterations(e){this._config.iterations=e}get color(){return this._config.color}set color(e){this._config.color!==e&&(this._config.color=e,this.refresh())}get class(){return this._config.class}set class(e){this._config.class!==e&&(this._config.class=e,this._svg&&this._svg.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" ")))}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(e){this._config.strokeWidth!==e&&(this._config.strokeWidth=e,this.refresh())}get padding(){return this._config.padding}set padding(e){this._config.padding!==e&&(this._config.padding=e,this.refresh())}attach(){if(this._state==="unattached"&&this._e.parentElement){oc();const e=this._svg=document.createElementNS(qo,"svg");e.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" "));const n=e.style;n.position="absolute",n.top="0",n.left="0",n.overflow="visible",n.pointerEvents="none",n.width="100px",n.height="100px";const s=this._config.type==="highlight";if(this._e.insertAdjacentElement(s?"beforebegin":"afterend",e),this._state="not-showing",s){const o=window.getComputedStyle(this._e).position;(!o||o==="static")&&(this._e.style.position="relative")}this.attachListeners()}}detachListeners(){window.removeEventListener("resize",this._resizeListener),this._ro&&this._ro.unobserve(this._e)}attachListeners(){this.detachListeners(),window.addEventListener("resize",this._resizeListener,{passive:!0}),!this._ro&&"ResizeObserver"in window&&(this._ro=new window.ResizeObserver(e=>{for(const n of e)n.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){const e=this.rects();if(e.length===this._lastSizes.length){for(let n=0;nMath.round(o)===Math.round(r);return s(e.x,n.x)&&s(e.y,n.y)&&s(e.w,n.w)&&s(e.h,n.h)}isShowing(){return this._state!=="not-showing"}refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then(()=>{this.isShowing()&&this.show(),delete this.pendingRefresh}))}async show(){switch(this._state){case"unattached":break;case"showing":this.hide(),this._svg&&await this.render(this._svg,!0);break;case"not-showing":this.attach(),this._svg&&await this.render(this._svg,!1);break}}hide(){if(this._svg)for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state="not-showing"}remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state="unattached",this.detachListeners()}async render(e,n){let s=this._config;n&&(s=JSON.parse(JSON.stringify(this._config)),s.animate=!1);const o=this.rects();let r=0;o.forEach(c=>r+=c.w);const a=s.animationDuration||Zl;let i=0;const l=[];for(let c=0;cObject.assign(t,{type:"box"}),circle:t=>Object.assign(t,{type:"circle"}),underline:t=>Object.assign(t,{type:"underline"}),highlight:t=>Object.assign(t,{type:"highlight"}),"strike-through":t=>Object.assign(t,{type:"strike-through"}),"crossed-off":t=>Object.assign(t,{type:"crossed-off"}),bracket:t=>Object.assign(t,{type:"bracket"}),strike:t=>Object.assign(t,{type:"strike-through"}),cross:t=>Object.assign(t,{type:"crossed-off"}),crossed:t=>Object.assign(t,{type:"crossed-off"}),linethrough:t=>Object.assign(t,{type:"strike-through"}),"line-through":t=>Object.assign(t,{type:"strike-through"}),black:t=>Q(t,"text-black"),blue:t=>Q(t,"text-blue"),cyan:t=>Q(t,"text-cyan"),gray:t=>Q(t,"text-gray"),green:t=>Q(t,"text-green"),indigo:t=>Q(t,"text-indigo"),lime:t=>Q(t,"text-lime"),orange:t=>Q(t,"text-orange"),pink:t=>Q(t,"text-pink"),purple:t=>Q(t,"text-purple"),red:t=>Q(t,"text-red"),teal:t=>Q(t,"text-teal"),white:t=>Q(t,"text-white"),yellow:t=>Q(t,"text-yellow")},cc=[[/^delay-?(\d+)?$/,(t,e,n)=>{const s=(t[1]?Number.parseInt(t[1]):n)||300;return e.delay=s,e}],[/^(?:op|opacity)-?(\d+)?$/,(t,e,n)=>{const s=(t[1]?Number.parseInt(t[1]):n)||100;return e.opacity=s/100,e}]];function uc(){return{install(t){t.directive("mark",{name:"v-mark",mounted:(e,n)=>{const{isPrintMode:s}=st(),o=k(()=>{const i=typeof n.value=="object"&&!Array.isArray(n.value)?{...n.value}:{at:n.value};let l={at:i.at};const c=Object.entries(n.modifiers).filter(([d,h])=>{if(Ws[d])return l=Ws[d](l,h),!1;for(const[u,g]of cc){const p=d.match(u);if(p)return l=g(p,l,h),!1}return!0});c.length&&console.warn("[Slidev] Invalid modifiers for v-mark:",c);const f={...l,...i};return f.type||="underline",s.value&&(f.animationDuration=1),f}),r=lc(e,o.value),a=Ct(e,n,o.value.at);if(!a){r.show();return}e.watchStopHandle=tt(()=>{let i;o.value.class&&(r.class=o.value.class),o.value.color&&(r.color=o.value.color);const l=o.value.at;l===!0?i=!0:l===!1?i=!1:i=a.isActive.value,i!=null&&(i?r.show():r.hide())})},unmounted:e=>{e.watchStopHandle?.()}})}}}function fc(){return{install(t){const e=hr();t.directive("motion",{name:"v-motion",mounted(n,s,o,r){const a=nt(s,Vt),i=nt(s,$n),l=nt(s,Rn),{currentPage:c,clicks:f,isPrintMode:d}=st(),h=o.props={...o.props},u={...h.initial,...h.variants?.["slidev-initial"]},g={...h.enter,...h.variants?.["slidev-enter"]},p={...h.leave,...h.variants?.["slidev-leave"]};delete h.initial,delete h.enter,delete h.leave;const m=`${Bn()}-`,y=[];for(const w of Object.keys(h))if(w.startsWith("click-")){const b=w.slice(6),_=b.includes("-")?b.split("-").map(Number):+b,P=m+b;y.push({id:P,at:_,variant:{...h[w]},info:a?.value.calculate(_)}),delete h[w]}y.sort((w,b)=>(Array.isArray(w.at)?w.at[0]:w.at)-(Array.isArray(b.at)?b.at[0]:b.at)),e.created(n,s,o,r),e.mounted(n,s,o,r);const v=n.motionInstance;v.clickIds=y.map(w=>w.id),v.set(u),v.watchStopHandle=ee([i,c,f].filter(Boolean),()=>{const w=Ao.get(n)?.visibilityState.value??"shown";if(!a?.value||!["slide","presenter"].includes(l?.value??"")){const b={...u,...g};for(const{variant:_}of y)Object.assign(b,_);v.set(b)}else if(d.value||i?.value===c.value)if(w==="shown"){const b={...u,...g};for(const{variant:_,info:P}of y)(!P||P.isActive.value)&&Object.assign(b,_);d.value?v.set(b):v.apply(b)}else v.apply(w==="before"?u:p);else v.apply((i?.value??-1)>c.value?u:p)},{immediate:!0})},unmounted(n){n.motionInstance.watchStopHandle()}})}}}const hc=[Object.values([])[0],Object.values([])[0]].filter(Boolean);function dc(){const t=[];function e(n){if(!q.remote||q.remote===n.query.password)return!0;if(q.remote&&n.query.password===void 0){const s=prompt("Enter password");if(q.remote===s)return!0}return n.params.no?{path:`/${n.params.no}`}:{path:""}}return t.push({name:"entry",path:"/entry",component:()=>M(()=>import("./slidev/entry-Bg1XkCzs.js"),__vite__mapDeps([57,1,3,4,58])),beforeEnter:e},{name:"overview",path:"/overview",component:()=>M(()=>import("./slidev/overview-Eg3JoHVT.js"),__vite__mapDeps([59,60,1,61,62,63,64,65,66,3,4])),beforeEnter:e},{name:"notes",path:"/notes",component:()=>M(()=>import("./slidev/notes-B-ufuhY-.js"),__vite__mapDeps([67,1,61,62,68,65,69,3,4])),beforeEnter:e},{name:"notes-edit",path:"/notes-edit",component:()=>M(()=>import("./slidev/notes-edit-EFZ74HT3.js"),__vite__mapDeps([70,1,66,65,69,3,4])),beforeEnter:e},{name:"presenter",path:"/presenter/:no",component:()=>M(()=>import("./slidev/presenter-ynkLRNMt.js"),__vite__mapDeps([71,1,63,64,72,2,60,65,3,4,73,61,62,68,74,75,66,76])),beforeEnter:e},{path:"/presenter",redirect:{path:"/presenter/1"}}),t.push({name:"play",path:"/:no",component:()=>M(()=>import("./slidev/play-BaoSMgbA.js"),__vite__mapDeps([77,1,63,64,72,2,60,65,3,4,73,69,78]))},{path:"",redirect:{path:"/1"}},{path:"/:pathMatch(.*)*",name:"NotFound",component:()=>M(()=>import("./slidev/404-BFwhB7Bg.js"),__vite__mapDeps([79,1,3,4,80]))}),hc.reduce((n,s)=>s(n),t)}async function pc(t){function e(){document.documentElement.style.setProperty("--vh",`${window.innerHeight*.01}px`)}e(),window.addEventListener("resize",e);const n=dr({history:pr("/"),routes:dc()});t.use(n),t.use(bl()),t.use(kl()),t.use(uc()),t.use(Tl()),t.use(fc()),t.use(mr,{container:"#twoslash-container"});const s={app:t,router:n};for(const o of yl)await o(s)}async function gc(){const t=gr(ml);await pc(t),t.mount("#app")}gc();export{Ec as $,Mc as A,Li as B,Ot as C,Cc as D,$i as E,bn as F,Dc as G,Bc as H,vc as I,Dt as J,Tc as K,lo as L,Oi as M,bt as N,Lc as O,Jc as P,Fc as Q,xc as R,se as S,Ti as T,_l as U,Zs as V,Sr as W,Pc as X,gi as Y,In as Z,ta as _,st as a,vt as a0,Oc as a1,Ac as a2,Ic as a3,Rc as a4,Uc as a5,Vc as a6,Wc as a7,te as a8,To as a9,Eo as aa,io as ab,Xs as ac,kc as ad,yi as ae,$n as af,Rn as ag,Vt as ah,vi as ai,Qc as aj,Ao as ak,mi as al,_c as am,bi as an,ho as b,Xr as c,Gc as d,ao as e,$c as f,Ye as g,wt as h,$s as i,Ai as j,Nt as k,Hc as l,jc as m,qc as n,q as o,wc as p,bc as q,gn as r,Zt as s,zc as t,Jr as u,Jn as v,Ut as w,Nc as x,M as y,Sc as z}; diff --git a/assets/md-COiEB4Jk.js b/assets/md-7PDNlaoV.js similarity index 86% rename from assets/md-COiEB4Jk.js rename to assets/md-7PDNlaoV.js index 9d6a64db7e822ba1c7363008daa605004b49353e..52be22d970d656b79c02e3c48890a5cd5ba588d2 100644 --- a/assets/md-COiEB4Jk.js +++ b/assets/md-7PDNlaoV.js @@ -1 +1 @@ -import{_}from"./Callout-D9ibgtrC.js";import{aL as d,o,b as f,w as l,g as t,ad as s,af as n,e as i,d as c,v as b,x as v,T as m}from"./modules/vue-CZamTkmS.js";import{_ as g}from"./assertion-evidence-BNrEFU8E.js";import{u as x,f as y}from"./slidev/context-z1Z7Rpcn.js";import"./index-D8MtK2Qe.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-FcNtCKNX.js";const h="/figures/results-mae-bars.png",M={class:"relative"},k={class:"absolute",style:{left:"0",top:"50%",transform:"translateY(-50%)"}},w={class:"absolute",style:{right:"0",top:"50%",transform:"translateY(-50%)"}},V={__name:"slides.md__slidev_13",setup(A){const{$clicksContext:u,$frontmatter:p}=x();return u.setup(),(E,e)=>{const a=_,r=d("click");return o(),f(g,b(v(m(y)(m(p),12))),{default:l(()=>[e[3]||(e[3]=t("div",{class:"text-center mb-2",style:{"font-size":"15px",color:"var(--neutral)"}},[s(" Mean Absolute Error (MAE), lower is better · "),t("span",{style:{color:"var(--baseline)","font-weight":"600"}},"gray = baselines"),s(" · color = latest TSFM per family ")],-1)),t("div",M,[e[2]||(e[2]=t("img",{src:h,class:"block mx-auto w-full max-h-[400px] object-contain rounded-lg",alt:"Zero-shot MAE across 4 event logs — gray baselines (Seasonal-Naive, XGBoost) vs the latest TSFM of each family (Chronos-2, MOIRAI-2.0, TimesFM-2.5); colored bars lower on every log"},null,-1)),n((o(),i("div",k,[c(a,{style:{"text-align":"center","line-height":"1.5"}},{default:l(()=>[...e[0]||(e[0]=[s("−21% mean MAE",-1),t("br",null,null,-1),s("vs best baseline",-1)])]),_:1})])),[[r,1]]),n((o(),i("div",w,[c(a,{style:{"text-align":"center","line-height":"1.5"}},{default:l(()=>[...e[1]||(e[1]=[s("All 12 variants:",-1),t("br",null,null,-1),s("92% beat baseline",-1),t("br",null,null,-1),s("−15% mean MAE",-1)])]),_:1})])),[[r,2]])])]),_:1},16)}}};export{V as default}; +import{_}from"./Callout-D44NXjfg.js";import{aL as d,o,b as f,w as l,g as t,ad as s,af as n,e as i,d as c,v as b,x as v,T as m}from"./modules/vue-CZamTkmS.js";import{_ as g}from"./assertion-evidence-B8cDdxTN.js";import{u as x,f as y}from"./slidev/context-Ch1IIjuh.js";import"./index-CIas0rwA.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-bIvqdETk.js";const h="/figures/results-mae-bars.png",M={class:"relative"},k={class:"absolute",style:{left:"0",top:"50%",transform:"translateY(-50%)"}},w={class:"absolute",style:{right:"0",top:"50%",transform:"translateY(-50%)"}},V={__name:"slides.md__slidev_13",setup(A){const{$clicksContext:u,$frontmatter:p}=x();return u.setup(),(E,e)=>{const a=_,r=d("click");return o(),f(g,b(v(m(y)(m(p),12))),{default:l(()=>[e[3]||(e[3]=t("div",{class:"text-center mb-2",style:{"font-size":"15px",color:"var(--neutral)"}},[s(" Mean Absolute Error (MAE), lower is better · "),t("span",{style:{color:"var(--baseline)","font-weight":"600"}},"gray = baselines"),s(" · color = latest TSFM per family ")],-1)),t("div",M,[e[2]||(e[2]=t("img",{src:h,class:"block mx-auto w-full max-h-[400px] object-contain rounded-lg",alt:"Zero-shot MAE across 4 event logs — gray baselines (Seasonal-Naive, XGBoost) vs the latest TSFM of each family (Chronos-2, MOIRAI-2.0, TimesFM-2.5); colored bars lower on every log"},null,-1)),n((o(),i("div",k,[c(a,{style:{"text-align":"center","line-height":"1.5"}},{default:l(()=>[...e[0]||(e[0]=[s("−21% mean MAE",-1),t("br",null,null,-1),s("vs best baseline",-1)])]),_:1})])),[[r,1]]),n((o(),i("div",w,[c(a,{style:{"text-align":"center","line-height":"1.5"}},{default:l(()=>[...e[1]||(e[1]=[s("All 12 variants:",-1),t("br",null,null,-1),s("92% beat baseline",-1),t("br",null,null,-1),s("−15% mean MAE",-1)])]),_:1})])),[[r,2]])])]),_:1},16)}}};export{V as default}; diff --git a/assets/md-DjtU-WpW.js b/assets/md-923VPEbh.js similarity index 76% rename from assets/md-DjtU-WpW.js rename to assets/md-923VPEbh.js index 4a3752b30d5da798fb99e960107f277224b637aa..951daedd46eabd1491199b348297412bb9195647 100644 --- a/assets/md-DjtU-WpW.js +++ b/assets/md-923VPEbh.js @@ -1 +1 @@ -import{_ as r}from"./Callout-D9ibgtrC.js";import{o as n,b as u,w as s,g as t,d,ad as c,v as m,x as p,T as a}from"./modules/vue-CZamTkmS.js";import{_}from"./assertion-evidence-BNrEFU8E.js";import{u as f,f as v}from"./slidev/context-z1Z7Rpcn.js";import"./index-D8MtK2Qe.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-FcNtCKNX.js";const h={class:"mt-6 text-center"},b={__name:"slides.md__slidev_30",setup(x){const{$clicksContext:l,$frontmatter:o}=f();return l.setup(),(C,e)=>{const i=r;return n(),u(_,m(p(a(v)(a(o),29))),{default:s(()=>[e[1]||(e[1]=t("div",{class:"ae-cols"},[t("div",{class:"ae-col"},[t("div",{class:"ae-collabel"},"What we tried"),t("div",{class:"ae-lead"},"Multivariate inference, where the model supports it"),t("ul",null,[t("li",null,"MOIRAI, MOIRAI-MoE, Chronos-2 all support it"),t("li",null,"No consistent gains over univariate"),t("li",null,"Consistent with Yu 2025")])]),t("div",{class:"ae-col"},[t("div",{class:"ae-collabel"},"Why & what next"),t("div",{class:"ae-lead"},"Cross-DF heterogeneity makes shared attention hurt"),t("ul",null,[t("li",null,"Cross-series attention hurts at this scale"),t("li",null,"Future work: dedicated multivariate fine-tuning for PMF")])])],-1)),t("div",h,[d(i,null,{default:s(()=>[...e[0]||(e[0]=[c("Univariate stays our default",-1)])]),_:1})])]),_:1},16)}}};export{b as default}; +import{_ as r}from"./Callout-D44NXjfg.js";import{o as n,b as u,w as s,g as t,d,ad as c,v as m,x as p,T as a}from"./modules/vue-CZamTkmS.js";import{_}from"./assertion-evidence-B8cDdxTN.js";import{u as f,f as v}from"./slidev/context-Ch1IIjuh.js";import"./index-CIas0rwA.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-bIvqdETk.js";const h={class:"mt-6 text-center"},b={__name:"slides.md__slidev_30",setup(x){const{$clicksContext:l,$frontmatter:o}=f();return l.setup(),(C,e)=>{const i=r;return n(),u(_,m(p(a(v)(a(o),29))),{default:s(()=>[e[1]||(e[1]=t("div",{class:"ae-cols"},[t("div",{class:"ae-col"},[t("div",{class:"ae-collabel"},"What we tried"),t("div",{class:"ae-lead"},"Multivariate inference, where the model supports it"),t("ul",null,[t("li",null,"MOIRAI, MOIRAI-MoE, Chronos-2 all support it"),t("li",null,"No consistent gains over univariate"),t("li",null,"Consistent with Yu 2025")])]),t("div",{class:"ae-col"},[t("div",{class:"ae-collabel"},"Why & what next"),t("div",{class:"ae-lead"},"Cross-DF heterogeneity makes shared attention hurt"),t("ul",null,[t("li",null,"Cross-series attention hurts at this scale"),t("li",null,"Future work: dedicated multivariate fine-tuning for PMF")])])],-1)),t("div",h,[d(i,null,{default:s(()=>[...e[0]||(e[0]=[c("Univariate stays our default",-1)])]),_:1})])]),_:1},16)}}};export{b as default}; diff --git a/assets/md-7wpyl-I0.js b/assets/md-B8NyDvYk.js similarity index 80% rename from assets/md-7wpyl-I0.js rename to assets/md-B8NyDvYk.js index 74d64a65a52fe3b04069a58aa5d973f2a3f31a87..2a229751ec4858e520256cb69b27e7fabc045fad 100644 --- a/assets/md-7wpyl-I0.js +++ b/assets/md-B8NyDvYk.js @@ -1 +1 @@ -import{_ as c}from"./Callout-D9ibgtrC.js";import{aL as m,o as s,b as f,w as o,g as t,af as d,e as p,d as _,ad as u,v as g,x as v,T as i}from"./modules/vue-CZamTkmS.js";import{_ as x}from"./assertion-evidence-BNrEFU8E.js";import{u as k,f as b}from"./slidev/context-z1Z7Rpcn.js";import"./index-D8MtK2Qe.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-FcNtCKNX.js";const y="/figures/ft-slope.png",w={class:"flex items-center gap-5 mt-2"},h={style:{flex:"0 0 23%"},class:"space-y-8"},D={__name:"slides.md__slidev_15",setup(B){const{$clicksContext:r,$frontmatter:a}=k();return r.setup(),(C,e)=>{const l=c,n=m("click");return s(),f(x,g(v(i(b)(i(a),14))),{default:o(()=>[t("div",w,[e[2]||(e[2]=t("div",{style:{flex:"1"}},[t("img",{src:y,class:"block w-full object-contain rounded-lg",style:{"max-height":"500px"},alt:"MAE relative to zero-shot across LoRA and full fine-tuning — most lines barely move; full fine-tuning sometimes overfits (amber), worst +87%"})],-1)),d((s(),p("div",h,[_(l,{dir:"left",style:{"line-height":"1.5"}},{default:o(()=>[...e[0]||(e[0]=[u("53% of fine-tuning runs got worse",-1)])]),_:1}),e[1]||(e[1]=t("div",{class:"font-semibold text-xl",style:{color:"var(--brand)"}},"Skip fine-tuning at PMF data scale.",-1))])),[[n]])])]),_:1},16)}}};export{D as default}; +import{_ as c}from"./Callout-D44NXjfg.js";import{aL as m,o as s,b as f,w as o,g as t,af as d,e as p,d as _,ad as u,v as g,x as v,T as i}from"./modules/vue-CZamTkmS.js";import{_ as x}from"./assertion-evidence-B8cDdxTN.js";import{u as k,f as b}from"./slidev/context-Ch1IIjuh.js";import"./index-CIas0rwA.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-bIvqdETk.js";const y="/figures/ft-slope.png",w={class:"flex items-center gap-5 mt-2"},h={style:{flex:"0 0 23%"},class:"space-y-8"},D={__name:"slides.md__slidev_15",setup(B){const{$clicksContext:r,$frontmatter:a}=k();return r.setup(),(C,e)=>{const l=c,n=m("click");return s(),f(x,g(v(i(b)(i(a),14))),{default:o(()=>[t("div",w,[e[2]||(e[2]=t("div",{style:{flex:"1"}},[t("img",{src:y,class:"block w-full object-contain rounded-lg",style:{"max-height":"500px"},alt:"MAE relative to zero-shot across LoRA and full fine-tuning — most lines barely move; full fine-tuning sometimes overfits (amber), worst +87%"})],-1)),d((s(),p("div",h,[_(l,{dir:"left",style:{"line-height":"1.5"}},{default:o(()=>[...e[0]||(e[0]=[u("53% of fine-tuning runs got worse",-1)])]),_:1}),e[1]||(e[1]=t("div",{class:"font-semibold text-xl",style:{color:"var(--brand)"}},"Skip fine-tuning at PMF data scale.",-1))])),[[n]])])]),_:1},16)}}};export{D as default}; diff --git a/assets/md-BFOngcN9.js b/assets/md-BBEPGRJn.js similarity index 89% rename from assets/md-BFOngcN9.js rename to assets/md-BBEPGRJn.js index 4e278835b2e75cbb8648ece411c8ba8c20809df5..dcd12bf8ac291cae6bdd34919bd9b4e8a5675925 100644 --- a/assets/md-BFOngcN9.js +++ b/assets/md-BBEPGRJn.js @@ -1 +1 @@ -import{o as i,b as n,w as c,g as e,j as o,ad as t,v as d,x as p,T as l}from"./modules/vue-CZamTkmS.js";import{_ as m}from"./assertion-evidence-BNrEFU8E.js";import{u as f,f as _}from"./slidev/context-z1Z7Rpcn.js";import{_ as u}from"./index-D8MtK2Qe.js";import"./PageNo-FcNtCKNX.js";import"./modules/shiki-COQlGosf.js";const g="/figures/s5-drift-truth.png",v="/figures/s5-intermittent-truth.png",x={__name:"slides.md__slidev_5",setup(h){const{$clicksContext:r,$frontmatter:a}=f();return r.setup(),(y,s)=>(i(),n(m,d(p(l(_)(l(a),4))),{default:c(()=>[...s[0]||(s[0]=[e("div",{class:"grid grid-cols-2 gap-8 mt-3",style:{height:"350px"}},[o(" LEFT — drift (truth only) "),e("div",{class:"flex flex-col"},[e("div",{class:"s5-panel-label"},"① Drift: a real level shift"),e("img",{src:g,class:"block w-full object-contain rounded-lg",style:{"max-height":"280px"},alt:"BPI2017 Sent→Cancelled daily values — drops from ~46 to ~3 over the test period"}),e("div",{class:"s5-panel-cap"},"BPI2017 · Sent → Cancelled")]),o(" RIGHT — intermittency (truth only) "),e("div",{class:"flex flex-col"},[e("div",{class:"s5-panel-label"},"② Intermittent: long zeros, sudden spikes"),e("img",{src:v,class:"block w-full object-contain rounded-lg",style:{"max-height":"280px"},alt:"BPI2019_1 Cancel→Record Invoice Receipt daily values — mostly zero with spikes to 29"}),e("div",{class:"s5-panel-cap"},"BPI2019_1 · Cancel → Record Invoice Receipt")])],-1),e("div",{class:"mt-4 text-center",style:{"font-size":"20px",color:"#334155"}},[t(" ③ "),e("strong",{style:{color:"var(--brand)"}},"Heterogeneous"),t(" · pattern differs "),e("strong",null,"within"),t(" and "),e("strong",null,"across"),t(" logs ")],-1)])]),_:1},16))}},w=u(x,[["__scopeId","data-v-db571241"]]);export{w as default}; +import{o as i,b as n,w as c,g as e,j as o,ad as t,v as d,x as p,T as l}from"./modules/vue-CZamTkmS.js";import{_ as m}from"./assertion-evidence-B8cDdxTN.js";import{u as f,f as _}from"./slidev/context-Ch1IIjuh.js";import{_ as u}from"./index-CIas0rwA.js";import"./PageNo-bIvqdETk.js";import"./modules/shiki-COQlGosf.js";const g="/figures/s5-drift-truth.png",v="/figures/s5-intermittent-truth.png",x={__name:"slides.md__slidev_5",setup(h){const{$clicksContext:r,$frontmatter:a}=f();return r.setup(),(y,s)=>(i(),n(m,d(p(l(_)(l(a),4))),{default:c(()=>[...s[0]||(s[0]=[e("div",{class:"grid grid-cols-2 gap-8 mt-3",style:{height:"350px"}},[o(" LEFT — drift (truth only) "),e("div",{class:"flex flex-col"},[e("div",{class:"s5-panel-label"},"① Drift: a real level shift"),e("img",{src:g,class:"block w-full object-contain rounded-lg",style:{"max-height":"280px"},alt:"BPI2017 Sent→Cancelled daily values — drops from ~46 to ~3 over the test period"}),e("div",{class:"s5-panel-cap"},"BPI2017 · Sent → Cancelled")]),o(" RIGHT — intermittency (truth only) "),e("div",{class:"flex flex-col"},[e("div",{class:"s5-panel-label"},"② Intermittent: long zeros, sudden spikes"),e("img",{src:v,class:"block w-full object-contain rounded-lg",style:{"max-height":"280px"},alt:"BPI2019_1 Cancel→Record Invoice Receipt daily values — mostly zero with spikes to 29"}),e("div",{class:"s5-panel-cap"},"BPI2019_1 · Cancel → Record Invoice Receipt")])],-1),e("div",{class:"mt-4 text-center",style:{"font-size":"20px",color:"#334155"}},[t(" ③ "),e("strong",{style:{color:"var(--brand)"}},"Heterogeneous"),t(" · pattern differs "),e("strong",null,"within"),t(" and "),e("strong",null,"across"),t(" logs ")],-1)])]),_:1},16))}},w=u(x,[["__scopeId","data-v-db571241"]]);export{w as default}; diff --git a/assets/md-B0C6jHCs.js b/assets/md-BM1BCY1p.js similarity index 84% rename from assets/md-B0C6jHCs.js rename to assets/md-BM1BCY1p.js index 09290a63b0c68d158396f5a52612f4d734cf841a..0db76aa3e6d78e32e7f88be09d94ca7e64e4eeeb 100644 --- a/assets/md-B0C6jHCs.js +++ b/assets/md-BM1BCY1p.js @@ -1 +1 @@ -import{_ as p}from"./Callout-D9ibgtrC.js";import{aL as m,o as a,b as _,w as r,g as s,j as o,ad as t,af as f,e as u,d as v,v as g,x as b,T as i}from"./modules/vue-CZamTkmS.js";import{_ as x}from"./assertion-evidence-BNrEFU8E.js";import{u as F,f as h}from"./slidev/context-z1Z7Rpcn.js";import{_ as k}from"./index-D8MtK2Qe.js";import"./PageNo-FcNtCKNX.js";import"./modules/shiki-COQlGosf.js";const w={class:"s18"},y={class:"flex justify-center mt-3 s18-cta"},T={__name:"slides.md__slidev_18",setup(C){const{$clicksContext:l,$frontmatter:n}=F();return l.setup(),(M,e)=>{const c=p,d=m("click");return a(),_(x,g(b(i(h)(i(n),17))),{default:r(()=>[s("div",w,[o(" For Process Model Forecasting — the two PMF-specific signals, boxed (four-logs hedge stays spoken) "),e[1]||(e[1]=s("div",{class:"s18-prac s18-pmf"},[s("div",{class:"s18-prac-label"},"For process mining"),s("div",{class:"s18-pmf-rows"},[s("div",{class:"s18-pmf-row"},[s("strong",null,"Zero-shot"),t(" is the new default of PMF · "),s("strong",null,"Fine-tuning is marginal"),t(" at this data scale")])])],-1)),o(" For practitioners — applied guidance (brand-tinted banner) "),e[2]||(e[2]=s("div",{class:"s18-prac"},[s("div",{class:"s18-prac-label"},"For practitioners"),s("div",{class:"s18-prac-body"},[t(" These TSFMs are "),s("strong",null,"tiny beside LLMs"),t(": deploy locally, forecast fast on a laptop, with little compute. ")])],-1)),o(" General CTA — the broadening close, the one amber Callout, on click "),f((a(),u("div",y,[v(c,null,{default:r(()=>[...e[0]||(e[0]=[t("Try TSFMs for your forecasts",-1)])]),_:1})])),[[d]])])]),_:1},16)}}},j=k(T,[["__scopeId","data-v-6ba56047"]]);export{j as default}; +import{_ as p}from"./Callout-D44NXjfg.js";import{aL as m,o as a,b as _,w as r,g as s,j as o,ad as t,af as f,e as u,d as v,v as g,x as b,T as i}from"./modules/vue-CZamTkmS.js";import{_ as x}from"./assertion-evidence-B8cDdxTN.js";import{u as F,f as h}from"./slidev/context-Ch1IIjuh.js";import{_ as k}from"./index-CIas0rwA.js";import"./PageNo-bIvqdETk.js";import"./modules/shiki-COQlGosf.js";const w={class:"s18"},y={class:"flex justify-center mt-3 s18-cta"},T={__name:"slides.md__slidev_18",setup(C){const{$clicksContext:l,$frontmatter:n}=F();return l.setup(),(M,e)=>{const c=p,d=m("click");return a(),_(x,g(b(i(h)(i(n),17))),{default:r(()=>[s("div",w,[o(" For Process Model Forecasting — the two PMF-specific signals, boxed (four-logs hedge stays spoken) "),e[1]||(e[1]=s("div",{class:"s18-prac s18-pmf"},[s("div",{class:"s18-prac-label"},"For process mining"),s("div",{class:"s18-pmf-rows"},[s("div",{class:"s18-pmf-row"},[s("strong",null,"Zero-shot"),t(" is the new default of PMF · "),s("strong",null,"Fine-tuning is marginal"),t(" at this data scale")])])],-1)),o(" For practitioners — applied guidance (brand-tinted banner) "),e[2]||(e[2]=s("div",{class:"s18-prac"},[s("div",{class:"s18-prac-label"},"For practitioners"),s("div",{class:"s18-prac-body"},[t(" These TSFMs are "),s("strong",null,"tiny beside LLMs"),t(": deploy locally, forecast fast on a laptop, with little compute. ")])],-1)),o(" General CTA — the broadening close, the one amber Callout, on click "),f((a(),u("div",y,[v(c,null,{default:r(()=>[...e[0]||(e[0]=[t("Try TSFMs for your forecasts",-1)])]),_:1})])),[[d]])])]),_:1},16)}}},j=k(T,[["__scopeId","data-v-6ba56047"]]);export{j as default}; diff --git a/assets/md-DIcVEpCI.js b/assets/md-BMWHI9-X.js similarity index 85% rename from assets/md-DIcVEpCI.js rename to assets/md-BMWHI9-X.js index d919bc42fb51935ee838b50e0c9ffbffc23ad5a8..eff6e55c77b7370be5106b0f4ebe9863ea9eb0bf 100644 --- a/assets/md-DIcVEpCI.js +++ b/assets/md-BMWHI9-X.js @@ -1 +1 @@ -import{aL as d,o,b as p,w as _,g as s,af as r,e as i,ad as t,v as m,x as f,T as c}from"./modules/vue-CZamTkmS.js";import{_ as v}from"./assertion-evidence-BNrEFU8E.js";import{u,f as g}from"./slidev/context-z1Z7Rpcn.js";import{_ as w}from"./index-D8MtK2Qe.js";import"./PageNo-FcNtCKNX.js";import"./modules/shiki-COQlGosf.js";const x={class:"s17"},h={class:"s17-rows"},k={class:"s17-row"},B={class:"s17-row"},P={class:"s17-row"},C={__name:"slides.md__slidev_17",setup(T){const{$clicksContext:n,$frontmatter:l}=u();return n.setup(),($,e)=>{const a=d("click");return o(),p(v,m(f(c(g)(c(l),16))),{default:_(()=>[s("div",x,[s("div",h,[r((o(),i("div",k,[...e[0]||(e[0]=[s("span",{class:"s17-t"},"Beyond control flow",-1),t(),s("span",{class:"s17-sep"},"—",-1),t(),s("span",{class:"s17-d"},"add resources, decisions, richer relations",-1)])])),[[a,1]]),r((o(),i("div",B,[...e[1]||(e[1]=[s("span",{class:"s17-t"},"Smarter fine-tuning",-1),t(),s("span",{class:"s17-sep"},"—",-1),t(),s("span",{class:"s17-d"},"lightweight, incremental tuning for PMF",-1)])])),[[a,1]]),r((o(),i("div",P,[...e[2]||(e[2]=[s("span",{class:"s17-t"},"Larger log corpora",-1),t(),s("span",{class:"s17-sep"},"—",-1),t(),s("span",{class:"s17-d"},"bigger, higher-quality logs for a process-native model",-1)])])),[[a,1]])])])]),_:1},16)}}},V=w(C,[["__scopeId","data-v-1c2f79d2"]]);export{V as default}; +import{aL as d,o,b as p,w as _,g as s,af as r,e as i,ad as t,v as m,x as f,T as c}from"./modules/vue-CZamTkmS.js";import{_ as v}from"./assertion-evidence-B8cDdxTN.js";import{u,f as g}from"./slidev/context-Ch1IIjuh.js";import{_ as w}from"./index-CIas0rwA.js";import"./PageNo-bIvqdETk.js";import"./modules/shiki-COQlGosf.js";const x={class:"s17"},h={class:"s17-rows"},k={class:"s17-row"},B={class:"s17-row"},P={class:"s17-row"},C={__name:"slides.md__slidev_17",setup(T){const{$clicksContext:n,$frontmatter:l}=u();return n.setup(),($,e)=>{const a=d("click");return o(),p(v,m(f(c(g)(c(l),16))),{default:_(()=>[s("div",x,[s("div",h,[r((o(),i("div",k,[...e[0]||(e[0]=[s("span",{class:"s17-t"},"Beyond control flow",-1),t(),s("span",{class:"s17-sep"},"—",-1),t(),s("span",{class:"s17-d"},"add resources, decisions, richer relations",-1)])])),[[a,1]]),r((o(),i("div",B,[...e[1]||(e[1]=[s("span",{class:"s17-t"},"Smarter fine-tuning",-1),t(),s("span",{class:"s17-sep"},"—",-1),t(),s("span",{class:"s17-d"},"lightweight, incremental tuning for PMF",-1)])])),[[a,1]]),r((o(),i("div",P,[...e[2]||(e[2]=[s("span",{class:"s17-t"},"Larger log corpora",-1),t(),s("span",{class:"s17-sep"},"—",-1),t(),s("span",{class:"s17-d"},"bigger, higher-quality logs for a process-native model",-1)])])),[[a,1]])])])]),_:1},16)}}},V=w(C,[["__scopeId","data-v-1c2f79d2"]]);export{V as default}; diff --git a/assets/md-nTG-yQvE.js b/assets/md-BSI6HPQb.js similarity index 72% rename from assets/md-nTG-yQvE.js rename to assets/md-BSI6HPQb.js index 33a2e387ab869eb4dce8342de07a62214ce0b459..43b4c587847f7a3f9182c5bc09060abdecf340d7 100644 --- a/assets/md-nTG-yQvE.js +++ b/assets/md-BSI6HPQb.js @@ -1 +1 @@ -import{_ as i}from"./Callout-D9ibgtrC.js";import{o as l,b as u,w as e,g as s,d as f,ad as m,v as d,x as p,T as o}from"./modules/vue-CZamTkmS.js";import{_ as c}from"./assertion-evidence-BNrEFU8E.js";import{u as _,f as g}from"./slidev/context-z1Z7Rpcn.js";import"./index-D8MtK2Qe.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-FcNtCKNX.js";const x="/figures/ft-table.png",v={class:"flex justify-center mt-3"},w={__name:"slides.md__slidev_24",setup(b){const{$clicksContext:n,$frontmatter:a}=_();return n.setup(),(R,t)=>{const r=i;return l(),u(c,d(p(o(g)(o(a),23))),{default:e(()=>[t[1]||(t[1]=s("img",{src:x,class:"block mx-auto w-full max-h-[430px] object-contain rounded-lg",alt:"Fine-tuning results (paper Table 6) — MAE and RMSE for zero-shot, LoRA and full fine-tuning on five TSFMs across the four logs; gains over zero-shot are small and inconsistent, and MOIRAI-1.1-R-large full fine-tuning degrades sharply on BPI2019_1 (23.06 vs 12.30)"},null,-1)),s("div",v,[f(r,null,{default:e(()=>[...t[0]||(t[0]=[m("Gains are marginal and inconsistent — full fine-tuning can degrade",-1)])]),_:1})])]),_:1},16)}}};export{w as default}; +import{_ as i}from"./Callout-D44NXjfg.js";import{o as l,b as u,w as e,g as s,d as f,ad as m,v as d,x as p,T as o}from"./modules/vue-CZamTkmS.js";import{_ as c}from"./assertion-evidence-B8cDdxTN.js";import{u as _,f as g}from"./slidev/context-Ch1IIjuh.js";import"./index-CIas0rwA.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-bIvqdETk.js";const x="/figures/ft-table.png",v={class:"flex justify-center mt-3"},w={__name:"slides.md__slidev_24",setup(b){const{$clicksContext:n,$frontmatter:a}=_();return n.setup(),(R,t)=>{const r=i;return l(),u(c,d(p(o(g)(o(a),23))),{default:e(()=>[t[1]||(t[1]=s("img",{src:x,class:"block mx-auto w-full max-h-[430px] object-contain rounded-lg",alt:"Fine-tuning results (paper Table 6) — MAE and RMSE for zero-shot, LoRA and full fine-tuning on five TSFMs across the four logs; gains over zero-shot are small and inconsistent, and MOIRAI-1.1-R-large full fine-tuning degrades sharply on BPI2019_1 (23.06 vs 12.30)"},null,-1)),s("div",v,[f(r,null,{default:e(()=>[...t[0]||(t[0]=[m("Gains are marginal and inconsistent — full fine-tuning can degrade",-1)])]),_:1})])]),_:1},16)}}};export{w as default}; diff --git a/assets/md-BI5KNNjZ.js b/assets/md-BW7tv8wC.js similarity index 83% rename from assets/md-BI5KNNjZ.js rename to assets/md-BW7tv8wC.js index acd2159c55b823f51416cbbcf17afe262ffd7130..c481f2f735b615574f7f73626ec403c620d24df4 100644 --- a/assets/md-BI5KNNjZ.js +++ b/assets/md-BW7tv8wC.js @@ -1 +1 @@ -import{o,b as i,w as r,g as e,v as n,x as c,T as l}from"./modules/vue-CZamTkmS.js";import{_ as u}from"./assertion-evidence-BNrEFU8E.js";import{u as d,f as p}from"./slidev/context-z1Z7Rpcn.js";import"./PageNo-FcNtCKNX.js";import"./index-D8MtK2Qe.js";import"./modules/shiki-COQlGosf.js";const B={__name:"slides.md__slidev_26",setup(m){const{$clicksContext:t,$frontmatter:s}=d();return t.setup(),(f,a)=>(o(),i(u,n(c(l(p)(l(s),25))),{default:r(()=>[...a[0]||(a[0]=[e("div",{class:"ae-cols"},[e("div",{class:"ae-col"},[e("div",{class:"ae-collabel"},"XGBoost"),e("div",{class:"ae-lead"},"Tuned per dataset, not left at defaults"),e("ul",null,[e("li",null,"Optuna hyperparameter optimization, per dataset"),e("li",null,"Lagged features, daily aggregation")])]),e("div",{class:"ae-col"},[e("div",{class:"ae-collabel"},"LoRA / full fine-tuning"),e("div",{class:"ae-lead"},"Fully specified, reproducible recipe"),e("ul",null,[e("li",null,"LoRA r=2, α=4 on Q/K/V/O attention"),e("li",null,"Patch 16 · batch 32 · AdamW · LR 1e-4 · 3 epochs"),e("li",null,"Full fine-tuning uses each model's original recipe")])])],-1)])]),_:1},16))}};export{B as default}; +import{o,b as i,w as r,g as e,v as n,x as c,T as l}from"./modules/vue-CZamTkmS.js";import{_ as u}from"./assertion-evidence-B8cDdxTN.js";import{u as d,f as p}from"./slidev/context-Ch1IIjuh.js";import"./PageNo-bIvqdETk.js";import"./index-CIas0rwA.js";import"./modules/shiki-COQlGosf.js";const B={__name:"slides.md__slidev_26",setup(m){const{$clicksContext:t,$frontmatter:s}=d();return t.setup(),(f,a)=>(o(),i(u,n(c(l(p)(l(s),25))),{default:r(()=>[...a[0]||(a[0]=[e("div",{class:"ae-cols"},[e("div",{class:"ae-col"},[e("div",{class:"ae-collabel"},"XGBoost"),e("div",{class:"ae-lead"},"Tuned per dataset, not left at defaults"),e("ul",null,[e("li",null,"Optuna hyperparameter optimization, per dataset"),e("li",null,"Lagged features, daily aggregation")])]),e("div",{class:"ae-col"},[e("div",{class:"ae-collabel"},"LoRA / full fine-tuning"),e("div",{class:"ae-lead"},"Fully specified, reproducible recipe"),e("ul",null,[e("li",null,"LoRA r=2, α=4 on Q/K/V/O attention"),e("li",null,"Patch 16 · batch 32 · AdamW · LR 1e-4 · 3 epochs"),e("li",null,"Full fine-tuning uses each model's original recipe")])])],-1)])]),_:1},16))}};export{B as default}; diff --git a/assets/md-BhCL--6g.css b/assets/md-BhCL--6g.css new file mode 100644 index 0000000000000000000000000000000000000000..e2b940d47422c28773c7fdc8ed1838b1407d8ad8 --- /dev/null +++ b/assets/md-BhCL--6g.css @@ -0,0 +1 @@ +.s10[data-v-deb47240]{max-width:1040px;margin:0 auto}.s10-heading[data-v-deb47240]{font-size:40px;font-weight:700;color:var(--brand);line-height:1.12;letter-spacing:-.01em}.s10-rule[data-v-deb47240]{width:72px;height:5px;background:var(--accent);border-radius:3px;margin:20px 0 44px}.s10-list[data-v-deb47240]{display:flex;flex-direction:column;gap:32px}.s10-q[data-v-deb47240]{display:flex;align-items:flex-start;gap:24px}.s10-num[data-v-deb47240]{flex:none;width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--brand);color:#fff;font-weight:700;font-size:25px;line-height:1;font-variant-numeric:tabular-nums}.s10-num--amber[data-v-deb47240]{background:var(--accent);color:var(--ink)}.s10-text[data-v-deb47240]{font-size:30px;line-height:1.4;color:var(--ink);padding-top:7px}.s10-text strong[data-v-deb47240]{color:var(--brand);font-weight:700}.s10-q--open .s10-text strong[data-v-deb47240]{color:#b06317} diff --git a/assets/md-BY0chVOS.js b/assets/md-Bn7Qx5kc.js similarity index 68% rename from assets/md-BY0chVOS.js rename to assets/md-Bn7Qx5kc.js index 0ca38227cb4f1f332f756686451487f511a3fa8b..692e3c7e9506841baba62b6b9cdd832a43267e19 100644 --- a/assets/md-BY0chVOS.js +++ b/assets/md-Bn7Qx5kc.js @@ -1 +1 @@ -import{_ as l}from"./Callout-D9ibgtrC.js";import{o as i,b as m,w as o,g as s,d as p,ad as c,v as _,x as u,T as e}from"./modules/vue-CZamTkmS.js";import{_ as f}from"./assertion-evidence-BNrEFU8E.js";import{u as d,f as x}from"./slidev/context-z1Z7Rpcn.js";import"./index-D8MtK2Qe.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-FcNtCKNX.js";const b="/figures/er-bars.png",g={class:"flex justify-center mt-3"},N={__name:"slides.md__slidev_25",setup(v){const{$clicksContext:a,$frontmatter:r}=d();return a.setup(),(B,t)=>{const n=l;return i(),m(f,_(u(e(x)(e(r),24))),{default:o(()=>[t[1]||(t[1]=s("img",{src:b,class:"block mx-auto w-full max-h-[400px] object-contain rounded-lg",alt:"Entropic Relevance across four logs — TSFMs match baselines on BPI2017, BPI2019_1 and Hospital Billing, but trail far behind on Sepsis (bottom-left panel)"},null,-1)),s("div",g,[p(n,null,{default:o(()=>[...t[0]||(t[0]=[c("Sepsis (bottom-left): ER far above the rest — TSFMs worst",-1)])]),_:1})])]),_:1},16)}}};export{N as default}; +import{_ as l}from"./Callout-D44NXjfg.js";import{o as i,b as m,w as o,g as s,d as p,ad as c,v as _,x as u,T as e}from"./modules/vue-CZamTkmS.js";import{_ as f}from"./assertion-evidence-B8cDdxTN.js";import{u as d,f as x}from"./slidev/context-Ch1IIjuh.js";import"./index-CIas0rwA.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-bIvqdETk.js";const b="/figures/er-bars.png",g={class:"flex justify-center mt-3"},N={__name:"slides.md__slidev_25",setup(v){const{$clicksContext:a,$frontmatter:r}=d();return a.setup(),(B,t)=>{const n=l;return i(),m(f,_(u(e(x)(e(r),24))),{default:o(()=>[t[1]||(t[1]=s("img",{src:b,class:"block mx-auto w-full max-h-[400px] object-contain rounded-lg",alt:"Entropic Relevance across four logs — TSFMs match baselines on BPI2017, BPI2019_1 and Hospital Billing, but trail far behind on Sepsis (bottom-left panel)"},null,-1)),s("div",g,[p(n,null,{default:o(()=>[...t[0]||(t[0]=[c("Sepsis (bottom-left): ER far above the rest — TSFMs worst",-1)])]),_:1})])]),_:1},16)}}};export{N as default}; diff --git a/assets/md-B1I1GQy8.js b/assets/md-Bpf-ls04.js similarity index 89% rename from assets/md-B1I1GQy8.js rename to assets/md-Bpf-ls04.js index 2cf8950ea4620a0d82afbcf8e7e1cc034ad6abd5..ff8dfad974c0d1f9439d552fcae983330ea426ed 100644 --- a/assets/md-B1I1GQy8.js +++ b/assets/md-Bpf-ls04.js @@ -1 +1 @@ -import{o as l,b as i,w as c,g as t,j as s,ad as n,v as d,x as m,T as o}from"./modules/vue-CZamTkmS.js";import{_ as p}from"./assertion-evidence-BNrEFU8E.js";import{u as f,f as _}from"./slidev/context-z1Z7Rpcn.js";import{_ as h}from"./index-D8MtK2Qe.js";import"./PageNo-FcNtCKNX.js";import"./modules/shiki-COQlGosf.js";const x="/figures/s6-drift-xgb-box.png",g="/figures/s6-intermittent-xgb-arrow.png",u={__name:"slides.md__slidev_6",setup(v){const{$clicksContext:r,$frontmatter:a}=f();return r.setup(),(b,e)=>(l(),i(p,d(m(o(_)(o(a),5))),{default:c(()=>[...e[0]||(e[0]=[t("div",{class:"grid grid-cols-2 gap-8 mt-3",style:{height:"350px"}},[s(" LEFT — drift: XGBoost misses the drop "),t("div",{class:"flex flex-col"},[t("div",{class:"s6-panel-label"},"Drift: XGBoost stays high, misses the drop"),t("img",{src:x,class:"block w-full object-contain rounded-lg",style:{"max-height":"280px"},alt:"BPI2017 drift — XGBoost stays elevated while the truth collapses late, amber box over the back-half"}),t("div",{class:"s6-cap"},"BPI2017 · Sent → Cancelled")]),s(" RIGHT — intermittent: XGBoost overshoots the zeros "),t("div",{class:"flex flex-col"},[t("div",{class:"s6-panel-label"},"Intermittent: XGBoost overshoots the zeros"),t("img",{src:g,class:"block w-full object-contain rounded-lg",style:{"max-height":"280px"},alt:"BPI2019_1 intermittent — XGBoost hallucinates 40–71 where the truth is mostly zero, amber arrow at an overshoot peak"}),t("div",{class:"s6-cap"},"BPI2019_1 · Cancel → Record Invoice Receipt")])],-1),t("div",{class:"mt-4 text-center",style:{"font-size":"20px",color:"#334155"}},[t("strong",{style:{color:"var(--brand)"}},"XGBoost"),n(": the recommended top forecaster in the prior benchmark (Yu et al. 2025) ")],-1)])]),_:1},16))}},P=h(u,[["__scopeId","data-v-ac288f66"]]);export{P as default}; +import{o as l,b as i,w as c,g as t,j as s,ad as n,v as d,x as m,T as o}from"./modules/vue-CZamTkmS.js";import{_ as p}from"./assertion-evidence-B8cDdxTN.js";import{u as f,f as _}from"./slidev/context-Ch1IIjuh.js";import{_ as h}from"./index-CIas0rwA.js";import"./PageNo-bIvqdETk.js";import"./modules/shiki-COQlGosf.js";const x="/figures/s6-drift-xgb-box.png",g="/figures/s6-intermittent-xgb-arrow.png",u={__name:"slides.md__slidev_6",setup(v){const{$clicksContext:r,$frontmatter:a}=f();return r.setup(),(b,e)=>(l(),i(p,d(m(o(_)(o(a),5))),{default:c(()=>[...e[0]||(e[0]=[t("div",{class:"grid grid-cols-2 gap-8 mt-3",style:{height:"350px"}},[s(" LEFT — drift: XGBoost misses the drop "),t("div",{class:"flex flex-col"},[t("div",{class:"s6-panel-label"},"Drift: XGBoost stays high, misses the drop"),t("img",{src:x,class:"block w-full object-contain rounded-lg",style:{"max-height":"280px"},alt:"BPI2017 drift — XGBoost stays elevated while the truth collapses late, amber box over the back-half"}),t("div",{class:"s6-cap"},"BPI2017 · Sent → Cancelled")]),s(" RIGHT — intermittent: XGBoost overshoots the zeros "),t("div",{class:"flex flex-col"},[t("div",{class:"s6-panel-label"},"Intermittent: XGBoost overshoots the zeros"),t("img",{src:g,class:"block w-full object-contain rounded-lg",style:{"max-height":"280px"},alt:"BPI2019_1 intermittent — XGBoost hallucinates 40–71 where the truth is mostly zero, amber arrow at an overshoot peak"}),t("div",{class:"s6-cap"},"BPI2019_1 · Cancel → Record Invoice Receipt")])],-1),t("div",{class:"mt-4 text-center",style:{"font-size":"20px",color:"#334155"}},[t("strong",{style:{color:"var(--brand)"}},"XGBoost"),n(": the recommended top forecaster in the prior benchmark (Yu et al. 2025) ")],-1)])]),_:1},16))}},P=h(u,[["__scopeId","data-v-ac288f66"]]);export{P as default}; diff --git a/assets/md-DMA1qHpL.js b/assets/md-CKLGNKcA.js similarity index 90% rename from assets/md-DMA1qHpL.js rename to assets/md-CKLGNKcA.js index d6edd28e3caa1a819cd9c0ee7e9df5d0d37fd920..ff2c5c47fce62d2e16de46b72c528670c2a2a0f5 100644 --- a/assets/md-DMA1qHpL.js +++ b/assets/md-CKLGNKcA.js @@ -1 +1 @@ -import{o as l,b as o,w as d,g as s,ad as e,v as c,x as n,T as t}from"./modules/vue-CZamTkmS.js";import{_ as x}from"./assertion-evidence-BNrEFU8E.js";import{u as p,f as h}from"./slidev/context-z1Z7Rpcn.js";import{_ as f}from"./index-D8MtK2Qe.js";import"./PageNo-FcNtCKNX.js";import"./modules/shiki-COQlGosf.js";const m={__name:"slides.md__slidev_12",setup(y){const{$clicksContext:i,$frontmatter:r}=p();return i.setup(),(_,a)=>(l(),o(x,c(n(t(h)(t(r),11))),{default:d(()=>[...a[0]||(a[0]=[s("div",{class:"s12-wrap mt-0"},[s("div",{class:"s12-schem"},[s("div",{class:"s12-schem-title"},"Expanding window · stride = 1 day · 7-day horizon"),s("svg",{viewBox:"0 0 600 224",class:"s12-svg",role:"img","aria-label":"Expanding-window evaluation: history grows one day per step, each step forecasts 7 days"},[s("rect",{x:"72",y:"26",width:"188",height:"26",rx:"4",fill:"#00407a"}),s("rect",{x:"260",y:"26",width:"84",height:"26",rx:"4",fill:"#dd8a2e"}),s("rect",{x:"72",y:"66",width:"214",height:"26",rx:"4",fill:"#00407a"}),s("rect",{x:"286",y:"66",width:"84",height:"26",rx:"4",fill:"#dd8a2e"}),s("rect",{x:"72",y:"106",width:"240",height:"26",rx:"4",fill:"#00407a"}),s("rect",{x:"312",y:"106",width:"84",height:"26",rx:"4",fill:"#dd8a2e"}),s("rect",{x:"72",y:"146",width:"266",height:"26",rx:"4",fill:"#00407a",opacity:"0.4"}),s("rect",{x:"338",y:"146",width:"84",height:"26",rx:"4",fill:"#dd8a2e",opacity:"0.4"}),s("text",{x:"26",y:"99",class:"s12-side","text-anchor":"middle",transform:"rotate(-90 26 99)"},"+1 day per step"),s("line",{x1:"72",y1:"188",x2:"560",y2:"188",class:"s12-axis"}),s("text",{x:"558",y:"206",class:"s12-axis-lbl","text-anchor":"end"},"Day →")]),s("div",{class:"s12-legend"},[s("span",null,[s("i",{class:"s12-sw s12-sw--navy"}),e("history")]),s("span",null,[s("i",{class:"s12-sw s12-sw--amber"}),e("7-day forecast")])])]),s("div",{class:"s12-strip"},[s("span",{class:"s12-pill"},"daily DF aggregation"),s("span",{class:"s12-pill"},"baselines · seasonal-naive + XGBoost"),s("span",{class:"s12-pill"},"univariate inference")])],-1)])]),_:1},16))}},k=f(m,[["__scopeId","data-v-b0604fe6"]]);export{k as default}; +import{o as l,b as o,w as d,g as s,ad as e,v as c,x as n,T as t}from"./modules/vue-CZamTkmS.js";import{_ as x}from"./assertion-evidence-B8cDdxTN.js";import{u as p,f as h}from"./slidev/context-Ch1IIjuh.js";import{_ as f}from"./index-CIas0rwA.js";import"./PageNo-bIvqdETk.js";import"./modules/shiki-COQlGosf.js";const m={__name:"slides.md__slidev_12",setup(y){const{$clicksContext:i,$frontmatter:r}=p();return i.setup(),(_,a)=>(l(),o(x,c(n(t(h)(t(r),11))),{default:d(()=>[...a[0]||(a[0]=[s("div",{class:"s12-wrap mt-0"},[s("div",{class:"s12-schem"},[s("div",{class:"s12-schem-title"},"Expanding window · stride = 1 day · 7-day horizon"),s("svg",{viewBox:"0 0 600 224",class:"s12-svg",role:"img","aria-label":"Expanding-window evaluation: history grows one day per step, each step forecasts 7 days"},[s("rect",{x:"72",y:"26",width:"188",height:"26",rx:"4",fill:"#00407a"}),s("rect",{x:"260",y:"26",width:"84",height:"26",rx:"4",fill:"#dd8a2e"}),s("rect",{x:"72",y:"66",width:"214",height:"26",rx:"4",fill:"#00407a"}),s("rect",{x:"286",y:"66",width:"84",height:"26",rx:"4",fill:"#dd8a2e"}),s("rect",{x:"72",y:"106",width:"240",height:"26",rx:"4",fill:"#00407a"}),s("rect",{x:"312",y:"106",width:"84",height:"26",rx:"4",fill:"#dd8a2e"}),s("rect",{x:"72",y:"146",width:"266",height:"26",rx:"4",fill:"#00407a",opacity:"0.4"}),s("rect",{x:"338",y:"146",width:"84",height:"26",rx:"4",fill:"#dd8a2e",opacity:"0.4"}),s("text",{x:"26",y:"99",class:"s12-side","text-anchor":"middle",transform:"rotate(-90 26 99)"},"+1 day per step"),s("line",{x1:"72",y1:"188",x2:"560",y2:"188",class:"s12-axis"}),s("text",{x:"558",y:"206",class:"s12-axis-lbl","text-anchor":"end"},"Day →")]),s("div",{class:"s12-legend"},[s("span",null,[s("i",{class:"s12-sw s12-sw--navy"}),e("history")]),s("span",null,[s("i",{class:"s12-sw s12-sw--amber"}),e("7-day forecast")])])]),s("div",{class:"s12-strip"},[s("span",{class:"s12-pill"},"daily DF aggregation"),s("span",{class:"s12-pill"},"baselines · seasonal-naive + XGBoost"),s("span",{class:"s12-pill"},"univariate inference")])],-1)])]),_:1},16))}},k=f(m,[["__scopeId","data-v-b0604fe6"]]);export{k as default}; diff --git a/assets/md-DmeGpXl3.js b/assets/md-CQBJYljb.js similarity index 90% rename from assets/md-DmeGpXl3.js rename to assets/md-CQBJYljb.js index 252576d95f252ccd0693f4cf7cbc4cefffc7df78..c7268ab2f98f28cb801428568192420692984d32 100644 --- a/assets/md-DmeGpXl3.js +++ b/assets/md-CQBJYljb.js @@ -1 +1 @@ -import{o as s,e as t,T as o,t as l,j as c,i as m,b as v,w as p,g as r,ad as i,v as f,x as g}from"./modules/vue-CZamTkmS.js";import{u as _,f as y}from"./slidev/context-z1Z7Rpcn.js";import{_ as h}from"./index-D8MtK2Qe.js";import"./modules/shiki-COQlGosf.js";const b={class:"slidev-layout ae-cover"},k=["src"],w={key:1,class:"cover-eyebrow"},x=["src"],S={key:3,class:"cover-venue",style:{"white-space":"pre-line"}},C={__name:"cover",setup(d){const{$frontmatter:e}=_();return(a,u)=>(s(),t("div",b,[o(e).eyebrowImage?(s(),t("img",{key:0,src:o(e).eyebrowImage,class:"cover-eyebrow-logo",alt:"CAiSE 2026"},null,8,k)):o(e).eyebrow?(s(),t("div",w,l(o(e).eyebrow),1)):c("v-if",!0),m(a.$slots,"default"),o(e).logo?(s(),t("img",{key:2,src:o(e).logo,class:"cover-logo",alt:"KU Leuven · LIRIS"},null,8,x)):c("v-if",!0),o(e).venue?(s(),t("div",S,l(o(e).venue),1)):c("v-if",!0)]))}},I={__name:"slides.md__slidev_1",setup(d){const{$clicksContext:e,$frontmatter:a}=_();return e.setup(),(u,n)=>(s(),v(C,f(g(o(y)(o(a),0))),{default:p(()=>[...n[0]||(n[0]=[r("h1",null,[i("Time Series Foundation Models"),r("br"),i("for Process Model Forecasting")],-1),r("div",{class:"cover-bar"},null,-1),r("div",{class:"cover-authors"},"Yongbo Yu · Jari Peeperkorn · Johannes De Smedt · Jochen De Weerdt",-1)])]),_:1},16))}},D=h(I,[["__scopeId","data-v-088d9758"]]);export{D as default}; +import{o as s,e as t,T as o,t as l,j as c,i as m,b as v,w as p,g as r,ad as i,v as f,x as g}from"./modules/vue-CZamTkmS.js";import{u as _,f as y}from"./slidev/context-Ch1IIjuh.js";import{_ as h}from"./index-CIas0rwA.js";import"./modules/shiki-COQlGosf.js";const b={class:"slidev-layout ae-cover"},k=["src"],w={key:1,class:"cover-eyebrow"},x=["src"],S={key:3,class:"cover-venue",style:{"white-space":"pre-line"}},C={__name:"cover",setup(d){const{$frontmatter:e}=_();return(a,u)=>(s(),t("div",b,[o(e).eyebrowImage?(s(),t("img",{key:0,src:o(e).eyebrowImage,class:"cover-eyebrow-logo",alt:"CAiSE 2026"},null,8,k)):o(e).eyebrow?(s(),t("div",w,l(o(e).eyebrow),1)):c("v-if",!0),m(a.$slots,"default"),o(e).logo?(s(),t("img",{key:2,src:o(e).logo,class:"cover-logo",alt:"KU Leuven · LIRIS"},null,8,x)):c("v-if",!0),o(e).venue?(s(),t("div",S,l(o(e).venue),1)):c("v-if",!0)]))}},I={__name:"slides.md__slidev_1",setup(d){const{$clicksContext:e,$frontmatter:a}=_();return e.setup(),(u,n)=>(s(),v(C,f(g(o(y)(o(a),0))),{default:p(()=>[...n[0]||(n[0]=[r("h1",null,[i("Time Series Foundation Models"),r("br"),i("for Process Model Forecasting")],-1),r("div",{class:"cover-bar"},null,-1),r("div",{class:"cover-authors"},"Yongbo Yu · Jari Peeperkorn · Johannes De Smedt · Jochen De Weerdt",-1)])]),_:1},16))}},D=h(I,[["__scopeId","data-v-088d9758"]]);export{D as default}; diff --git a/assets/md-B1UxDSPD.js b/assets/md-CTDIE4oQ.js similarity index 88% rename from assets/md-B1UxDSPD.js rename to assets/md-CTDIE4oQ.js index 1e3b6bd1989f9e93d86917f86152779db7dd5efc..8b80393f76e639f0ea6c8b3be685a0c585e9c75b 100644 --- a/assets/md-B1UxDSPD.js +++ b/assets/md-CTDIE4oQ.js @@ -1 +1 @@ -import{o as r,b as l,w as i,g as e,v as n,x as c,T as s}from"./modules/vue-CZamTkmS.js";import{_ as u}from"./assertion-evidence-BNrEFU8E.js";import{u as d,f as p}from"./slidev/context-z1Z7Rpcn.js";import"./PageNo-FcNtCKNX.js";import"./index-D8MtK2Qe.js";import"./modules/shiki-COQlGosf.js";const x={__name:"slides.md__slidev_29",setup(m){const{$clicksContext:t,$frontmatter:o}=d();return t.setup(),(f,a)=>(r(),l(u,n(c(s(p)(s(o),28))),{default:i(()=>[...a[0]||(a[0]=[e("div",{class:"ae-cols"},[e("div",{class:"ae-col"},[e("div",{class:"ae-collabel"},"What we tested — 7 days"),e("div",{class:"ae-lead"},"Chosen to match every reference point"),e("ul",null,[e("li",null,"Matches the Yu 2025 benchmark cadence"),e("li",null,"Matches the source logs' reporting cadence"),e("li",null,"Comparable to TSFM pretraining horizons")])]),e("div",{class:"ae-col"},[e("div",{class:"ae-collabel"},"What remains open — 30+ days"),e("div",{class:"ae-lead"},"Longer horizons stay future work"),e("ul",null,[e("li",null,"Longer horizons untested here"),e("li",null,"Future work: pair forecasts with drift detection")])])],-1)])]),_:1},16))}};export{x as default}; +import{o as r,b as l,w as i,g as e,v as n,x as c,T as s}from"./modules/vue-CZamTkmS.js";import{_ as u}from"./assertion-evidence-B8cDdxTN.js";import{u as d,f as p}from"./slidev/context-Ch1IIjuh.js";import"./PageNo-bIvqdETk.js";import"./index-CIas0rwA.js";import"./modules/shiki-COQlGosf.js";const x={__name:"slides.md__slidev_29",setup(m){const{$clicksContext:t,$frontmatter:o}=d();return t.setup(),(f,a)=>(r(),l(u,n(c(s(p)(s(o),28))),{default:i(()=>[...a[0]||(a[0]=[e("div",{class:"ae-cols"},[e("div",{class:"ae-col"},[e("div",{class:"ae-collabel"},"What we tested — 7 days"),e("div",{class:"ae-lead"},"Chosen to match every reference point"),e("ul",null,[e("li",null,"Matches the Yu 2025 benchmark cadence"),e("li",null,"Matches the source logs' reporting cadence"),e("li",null,"Comparable to TSFM pretraining horizons")])]),e("div",{class:"ae-col"},[e("div",{class:"ae-collabel"},"What remains open — 30+ days"),e("div",{class:"ae-lead"},"Longer horizons stay future work"),e("ul",null,[e("li",null,"Longer horizons untested here"),e("li",null,"Future work: pair forecasts with drift detection")])])],-1)])]),_:1},16))}};export{x as default}; diff --git a/assets/md-rLkBbld3.js b/assets/md-ChS77cA2.js similarity index 79% rename from assets/md-rLkBbld3.js rename to assets/md-ChS77cA2.js index 32f6ce3f30af4df50e3cafc0dc3b9a9cc19ad070..3b473b5f0f56962a1abe92ec9c6e2f350822fa2a 100644 --- a/assets/md-rLkBbld3.js +++ b/assets/md-ChS77cA2.js @@ -1 +1 @@ -import{_ as n}from"./Callout-D9ibgtrC.js";import{o as l,b as c,w as s,g as t,d as m,ad as d,v as p,x as u,T as o}from"./modules/vue-CZamTkmS.js";import{_ as f}from"./assertion-evidence-BNrEFU8E.js";import{u as _,f as v}from"./slidev/context-z1Z7Rpcn.js";import"./index-D8MtK2Qe.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-FcNtCKNX.js";const x={class:"flex justify-center mt-4"},z={__name:"slides.md__slidev_28",setup(g){const{$clicksContext:r,$frontmatter:a}=_();return r.setup(),(h,e)=>{const i=n;return l(),c(f,p(u(o(v)(o(a),27))),{default:s(()=>[e[1]||(e[1]=t("div",{class:"dense",style:{"max-width":"1000px","margin-left":"auto","margin-right":"auto"}},[t("div",{class:"ae-lead text-center"},"790 trace variants over 999 cases — huge variant tail, sparse DF activity"),t("div",{class:"text-center mt-4",style:{"font-size":"16px",color:"var(--neutral)"}}," ER fitting ratio — higher = easier to encode · lower = harder "),t("div",{class:"text-center mt-1",style:{"font-size":"19px",color:"var(--ink)"}}," Truth 100%  ·  Training 77.9%  ·  Naive 39.4%  ·  XGBoost 74.6% "),t("div",{class:"text-center mt-1",style:{"font-size":"19px",color:"var(--brand)","font-weight":"700"}}," Chronos-2 13.2%  ·  MOIRAI-2.0 4.1%  ·  TimesFM-2.5 17.5% "),t("div",{class:"text-center mt-3",style:{color:"var(--neutral)"}},"All models struggle; the TSFMs struggle most.")],-1)),t("div",x,[m(i,null,{default:s(()=>[...e[0]||(e[0]=[d("ER exception only — Sepsis still wins on MAE (MOIRAI-2.0 ↓28%)",-1)])]),_:1})])]),_:1},16)}}};export{z as default}; +import{_ as n}from"./Callout-D44NXjfg.js";import{o as l,b as c,w as s,g as t,d as m,ad as d,v as p,x as u,T as o}from"./modules/vue-CZamTkmS.js";import{_ as f}from"./assertion-evidence-B8cDdxTN.js";import{u as _,f as v}from"./slidev/context-Ch1IIjuh.js";import"./index-CIas0rwA.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-bIvqdETk.js";const x={class:"flex justify-center mt-4"},z={__name:"slides.md__slidev_28",setup(g){const{$clicksContext:r,$frontmatter:a}=_();return r.setup(),(h,e)=>{const i=n;return l(),c(f,p(u(o(v)(o(a),27))),{default:s(()=>[e[1]||(e[1]=t("div",{class:"dense",style:{"max-width":"1000px","margin-left":"auto","margin-right":"auto"}},[t("div",{class:"ae-lead text-center"},"790 trace variants over 999 cases — huge variant tail, sparse DF activity"),t("div",{class:"text-center mt-4",style:{"font-size":"16px",color:"var(--neutral)"}}," ER fitting ratio — higher = easier to encode · lower = harder "),t("div",{class:"text-center mt-1",style:{"font-size":"19px",color:"var(--ink)"}}," Truth 100%  ·  Training 77.9%  ·  Naive 39.4%  ·  XGBoost 74.6% "),t("div",{class:"text-center mt-1",style:{"font-size":"19px",color:"var(--brand)","font-weight":"700"}}," Chronos-2 13.2%  ·  MOIRAI-2.0 4.1%  ·  TimesFM-2.5 17.5% "),t("div",{class:"text-center mt-3",style:{color:"var(--neutral)"}},"All models struggle; the TSFMs struggle most.")],-1)),t("div",x,[m(i,null,{default:s(()=>[...e[0]||(e[0]=[d("ER exception only — Sepsis still wins on MAE (MOIRAI-2.0 ↓28%)",-1)])]),_:1})])]),_:1},16)}}};export{z as default}; diff --git a/assets/md-BLel6lXo.js b/assets/md-CxyPjZjU.js similarity index 89% rename from assets/md-BLel6lXo.js rename to assets/md-CxyPjZjU.js index b63e11b888120b2f16ad439cb9dd2c880564625e..5c4c8e5d19b94aca1a3409b80145b17f6def4da0 100644 --- a/assets/md-BLel6lXo.js +++ b/assets/md-CxyPjZjU.js @@ -1 +1 @@ -import{o as i,b as n,w as d,g as s,j as e,ad as a,v as c,x as p,T as r}from"./modules/vue-CZamTkmS.js";import{_ as m}from"./assertion-evidence-BNrEFU8E.js";import{u,f}from"./slidev/context-z1Z7Rpcn.js";import{_ as v}from"./index-D8MtK2Qe.js";import"./PageNo-FcNtCKNX.js";import"./modules/shiki-COQlGosf.js";const _={__name:"slides.md__slidev_9",setup(g){const{$clicksContext:t,$frontmatter:l}=u();return t.setup(),(b,o)=>(i(),n(m,c(p(r(f)(r(l),8))),{default:d(()=>[...o[0]||(o[0]=[s("div",{class:"s9-flow"},[e(' ROW 1 — our data: complex + short (number dropped; "small" sharpened to short series → few samples) '),s("div",{class:"s9-row"},[s("div",{class:"s9-tag"},"our data"),s("div",{class:"s9-line"},[s("div",{class:"s9-sub"},[s("span",{class:"s9-lead"},[a("complex signal · "),s("strong",{class:"s9-em"},"short series (few samples)")])]),s("div",{class:"s9-sub"},[s("span",{class:"s9-arr"},"→"),s("span",{class:"s9-out s9-out--bad"},[a("from-scratch models "),s("strong",null,"overfit")])])])]),e(" pivot connector "),s("div",{class:"s9-so"},"so"),e(" THE BET — the focal claim: a foundation model brings a prior "),s("div",{class:"s9-row s9-row--bet"},[s("div",{class:"s9-tag s9-tag--brand"},"TSFM"),s("div",{class:"s9-line"},[s("div",{class:"s9-sub"},[s("span",{class:"s9-lead s9-lead--brand"},"pretrained on"),s("span",{class:"s9-chip s9-chip--big"},"a wide range of time series from various domains")]),s("div",{class:"s9-sub"},[s("span",{class:"s9-arr s9-arr--brand"},"→"),s("span",{class:"s9-out s9-out--good"},[s("strong",null,"general forecasting knowledge"),a(", not a fresh fit")])])])])],-1),s("div",{class:"s9-caveat"},[a("No event logs in pretraining, "),s("em",null,"to our knowledge"),a(".")],-1)])]),_:1},16))}},C=v(_,[["__scopeId","data-v-4165a4ce"]]);export{C as default}; +import{o as i,b as n,w as d,g as s,j as e,ad as a,v as c,x as p,T as r}from"./modules/vue-CZamTkmS.js";import{_ as m}from"./assertion-evidence-B8cDdxTN.js";import{u,f}from"./slidev/context-Ch1IIjuh.js";import{_ as v}from"./index-CIas0rwA.js";import"./PageNo-bIvqdETk.js";import"./modules/shiki-COQlGosf.js";const _={__name:"slides.md__slidev_9",setup(g){const{$clicksContext:t,$frontmatter:l}=u();return t.setup(),(b,o)=>(i(),n(m,c(p(r(f)(r(l),8))),{default:d(()=>[...o[0]||(o[0]=[s("div",{class:"s9-flow"},[e(' ROW 1 — our data: complex + short (number dropped; "small" sharpened to short series → few samples) '),s("div",{class:"s9-row"},[s("div",{class:"s9-tag"},"our data"),s("div",{class:"s9-line"},[s("div",{class:"s9-sub"},[s("span",{class:"s9-lead"},[a("complex signal · "),s("strong",{class:"s9-em"},"short series (few samples)")])]),s("div",{class:"s9-sub"},[s("span",{class:"s9-arr"},"→"),s("span",{class:"s9-out s9-out--bad"},[a("from-scratch models "),s("strong",null,"overfit")])])])]),e(" pivot connector "),s("div",{class:"s9-so"},"so"),e(" THE BET — the focal claim: a foundation model brings a prior "),s("div",{class:"s9-row s9-row--bet"},[s("div",{class:"s9-tag s9-tag--brand"},"TSFM"),s("div",{class:"s9-line"},[s("div",{class:"s9-sub"},[s("span",{class:"s9-lead s9-lead--brand"},"pretrained on"),s("span",{class:"s9-chip s9-chip--big"},"a wide range of time series from various domains")]),s("div",{class:"s9-sub"},[s("span",{class:"s9-arr s9-arr--brand"},"→"),s("span",{class:"s9-out s9-out--good"},[s("strong",null,"general forecasting knowledge"),a(", not a fresh fit")])])])])],-1),s("div",{class:"s9-caveat"},[a("No event logs in pretraining, "),s("em",null,"to our knowledge"),a(".")],-1)])]),_:1},16))}},C=v(_,[["__scopeId","data-v-4165a4ce"]]);export{C as default}; diff --git a/assets/md-Bk1O0Wcq.js b/assets/md-CzcunVWZ.js similarity index 82% rename from assets/md-Bk1O0Wcq.js rename to assets/md-CzcunVWZ.js index 7a194f7c8abec868799e2919986b3b40bba9df08..6f2551322e0f0bc41af1e0aed73c6ae6f2d72e46 100644 --- a/assets/md-Bk1O0Wcq.js +++ b/assets/md-CzcunVWZ.js @@ -1 +1 @@ -import{o,b as r,w as n,g as e,v as i,x as c,T as s}from"./modules/vue-CZamTkmS.js";import{_ as d}from"./assertion-evidence-BNrEFU8E.js";import{u as m,f as u}from"./slidev/context-z1Z7Rpcn.js";import"./PageNo-FcNtCKNX.js";import"./index-D8MtK2Qe.js";import"./modules/shiki-COQlGosf.js";const g={__name:"slides.md__slidev_21",setup(p){const{$clicksContext:l,$frontmatter:t}=m();return l.setup(),(v,a)=>(o(),r(d,i(c(s(u)(s(t),20))),{default:n(()=>[...a[0]||(a[0]=[e("div",{class:"ae-cols"},[e("div",{class:"ae-col"},[e("div",{class:"ae-collabel"},"Seasonal-Naive"),e("div",{class:"ae-lead"},"Strongest non-trained baseline"),e("ul",null,[e("li",null,"7-day lag matches the weekly cadence")])]),e("div",{class:"ae-col"},[e("div",{class:"ae-collabel"},"XGBoost"),e("div",{class:"ae-lead"},"Strongest trained ML baseline"),e("ul",null,[e("li",null,"Recommended by the Yu 2025 benchmark")])])],-1),e("div",{class:"text-center mt-10",style:{"font-size":"20px",color:"var(--neutral)"}},"Not cherry-picked — the full ranking lives in the Yu 2025 benchmark.",-1)])]),_:1},16))}};export{g as default}; +import{o,b as r,w as n,g as e,v as i,x as c,T as s}from"./modules/vue-CZamTkmS.js";import{_ as d}from"./assertion-evidence-B8cDdxTN.js";import{u as m,f as u}from"./slidev/context-Ch1IIjuh.js";import"./PageNo-bIvqdETk.js";import"./index-CIas0rwA.js";import"./modules/shiki-COQlGosf.js";const g={__name:"slides.md__slidev_21",setup(p){const{$clicksContext:l,$frontmatter:t}=m();return l.setup(),(v,a)=>(o(),r(d,i(c(s(u)(s(t),20))),{default:n(()=>[...a[0]||(a[0]=[e("div",{class:"ae-cols"},[e("div",{class:"ae-col"},[e("div",{class:"ae-collabel"},"Seasonal-Naive"),e("div",{class:"ae-lead"},"Strongest non-trained baseline"),e("ul",null,[e("li",null,"7-day lag matches the weekly cadence")])]),e("div",{class:"ae-col"},[e("div",{class:"ae-collabel"},"XGBoost"),e("div",{class:"ae-lead"},"Strongest trained ML baseline"),e("ul",null,[e("li",null,"Recommended by the Yu 2025 benchmark")])])],-1),e("div",{class:"text-center mt-10",style:{"font-size":"20px",color:"var(--neutral)"}},"Not cherry-picked — the full ranking lives in the Yu 2025 benchmark.",-1)])]),_:1},16))}};export{g as default}; diff --git a/assets/md-BmhR_QV9.js b/assets/md-Czx4xdSf.js similarity index 96% rename from assets/md-BmhR_QV9.js rename to assets/md-Czx4xdSf.js index 822ed3900d2422afa12b8db27002f109ad12397e..15b9d48322823beb3c5380c841d82f0914541a1d 100644 --- a/assets/md-BmhR_QV9.js +++ b/assets/md-Czx4xdSf.js @@ -1 +1 @@ -import{o as r,b as o,w as n,g as t,e as c,ad as e,v as f,x,T as i}from"./modules/vue-CZamTkmS.js";import{_ as y}from"./assertion-evidence-BNrEFU8E.js";import{u as m,f as h}from"./slidev/context-z1Z7Rpcn.js";import{_ as d}from"./index-D8MtK2Qe.js";import"./PageNo-FcNtCKNX.js";import"./modules/shiki-COQlGosf.js";const p={class:"s11-evidence"},v={viewBox:"-70 0 1010 430",width:"100%",style:{display:"block"}},u={__name:"slides.md__slidev_11",setup(k){const{$clicksContext:a,$frontmatter:s}=m();return a.setup(),(w,l)=>(r(),o(y,f(x(i(h)(i(s),10))),{default:n(()=>[t("div",p,[(r(),c("svg",v,[...l[0]||(l[0]=[t("line",{x1:"95",y1:"40",x2:"95",y2:"345",stroke:"var(--neutral)","stroke-width":"1.5"},null,-1),t("line",{x1:"95",y1:"345",x2:"760",y2:"345",stroke:"var(--neutral)","stroke-width":"1.5"},null,-1),t("text",{transform:"translate(28,192) rotate(-90)","text-anchor":"middle",style:{"font-size":"16px"},fill:"var(--neutral)","font-weight":"600"},"model size (params, log)",-1),t("text",{x:"428",y:"393","text-anchor":"middle",style:{"font-size":"16px"},fill:"var(--neutral)","font-weight":"600"},"release date",-1),t("line",{x1:"95",y1:"320.6",x2:"760",y2:"320.6",stroke:"var(--neutral-soft)","stroke-width":"1","stroke-dasharray":"2 4",opacity:"0.5"},null,-1),t("text",{x:"85",y:"324.6","text-anchor":"end",style:{"font-size":"16px"},fill:"var(--neutral)"},"10M",-1),t("line",{x1:"95",y1:"162.8",x2:"760",y2:"162.8",stroke:"var(--neutral-soft)","stroke-width":"1","stroke-dasharray":"2 4",opacity:"0.5"},null,-1),t("text",{x:"85",y:"166.8","text-anchor":"end",style:{"font-size":"16px"},fill:"var(--neutral)"},"100M",-1),t("line",{x1:"95",y1:"52.5",x2:"760",y2:"52.5",stroke:"var(--neutral-soft)","stroke-width":"1","stroke-dasharray":"2 4",opacity:"0.5"},null,-1),t("text",{x:"85",y:"56.5","text-anchor":"end",style:{"font-size":"16px"},fill:"var(--neutral)"},"500M",-1),t("text",{x:"95.0",y:"371","text-anchor":"middle",style:{"font-size":"16px"},fill:"var(--neutral)","font-weight":"600"},"2024",-1),t("text",{x:"427.5",y:"371","text-anchor":"middle",style:{"font-size":"16px"},fill:"var(--neutral)","font-weight":"600"},"2025",-1),t("text",{x:"760.0",y:"371","text-anchor":"middle",style:{"font-size":"16px"},fill:"var(--neutral)","font-weight":"600"},"2026",-1),t("rect",{x:"387.3",y:"106.6",width:"14",height:"236.3",rx:"7",fill:"var(--family-chronos)",opacity:"0.14"},null,-1),t("rect",{x:"387.3",y:"106.6",width:"14",height:"236.3",rx:"7",fill:"none",stroke:"var(--family-chronos)","stroke-width":"1",opacity:"0.40"},null,-1),t("rect",{x:"254.2",y:"78.0",width:"14",height:"226.5",rx:"7",fill:"var(--family-moirai)",opacity:"0.14"},null,-1),t("rect",{x:"254.2",y:"78.0",width:"14",height:"226.5",rx:"7",fill:"none",stroke:"var(--family-moirai)","stroke-width":"1",opacity:"0.40"},null,-1),t("circle",{cx:"394.3",cy:"335.8",r:"5",fill:"var(--family-chronos)"},null,-1),t("circle",{cx:"394.3",cy:"269.7",r:"5",fill:"var(--family-chronos)"},null,-1),t("circle",{cx:"394.3",cy:"213.1",r:"5",fill:"var(--family-chronos)"},null,-1),t("circle",{cx:"394.3",cy:"113.6",r:"5",fill:"var(--family-chronos)"},null,-1),t("circle",{cx:"693.5",cy:"150.3",r:"11",fill:"none",stroke:"var(--accent)","stroke-width":"3.5"},null,-1),t("circle",{cx:"693.5",cy:"150.3",r:"6.5",fill:"var(--family-chronos)"},null,-1),t("circle",{cx:"261.2",cy:"297.5",r:"5",fill:"var(--family-moirai)"},null,-1),t("circle",{cx:"261.2",cy:"85.0",r:"5",fill:"var(--family-moirai)"},null,-1),t("circle",{cx:"354.3",cy:"173.1",r:"5",fill:"var(--family-moirai)"},null,-1),t("circle",{cx:"627.0",cy:"311.6",r:"11",fill:"none",stroke:"var(--accent)","stroke-width":"3.5"},null,-1),t("circle",{cx:"627.0",cy:"311.6",r:"6.5",fill:"var(--family-moirai)"},null,-1),t("circle",{cx:"221.4",cy:"115.3",r:"5",fill:"var(--family-timesfm)"},null,-1),t("circle",{cx:"434.1",cy:"52.5",r:"5",fill:"var(--family-timesfm)"},null,-1),t("circle",{cx:"663.6",cy:"115.3",r:"11",fill:"none",stroke:"var(--accent)","stroke-width":"3.5"},null,-1),t("circle",{cx:"663.6",cy:"115.3",r:"6.5",fill:"var(--family-timesfm)"},null,-1),t("text",{x:"394.3",y:"98.6","text-anchor":"middle",style:{"font-size":"18px"},"font-weight":"700",fill:"var(--family-chronos)"},"Chronos Bolt",-1),t("text",{x:"710.5",y:"155.3","text-anchor":"start",style:{"font-size":"18px"},"font-weight":"700",fill:"var(--family-chronos)"},"Chronos-2",-1),t("text",{x:"261.2",y:"70.0","text-anchor":"middle",style:{"font-size":"18px"},"font-weight":"700",fill:"var(--ink)"},"MOIRAI-1.1",-1),t("text",{x:"340.3",y:"177.1","text-anchor":"end",style:{"font-size":"18px"},"font-weight":"700",fill:"var(--ink)"},"MOIRAI-MoE",-1),t("text",{x:"340.3",y:"195.1","text-anchor":"end",style:{"font-size":"14px"},fill:"var(--neutral)"},"86M active · 935M total",-1),t("text",{x:"644.0",y:"316.6","text-anchor":"start",style:{"font-size":"18px"},"font-weight":"700",fill:"var(--ink)"},"MOIRAI-2.0",-1),t("text",{x:"209.4",y:"120.3","text-anchor":"end",style:{"font-size":"18px"},"font-weight":"700",fill:"var(--family-timesfm)"},"TimesFM-1.0",-1),t("text",{x:"448.1",y:"56.5","text-anchor":"start",style:{"font-size":"18px"},"font-weight":"700",fill:"var(--family-timesfm)"},"TimesFM-2.0",-1),t("text",{x:"680.6",y:"120.3","text-anchor":"start",style:{"font-size":"18px"},"font-weight":"700",fill:"var(--family-timesfm)"},"TimesFM-2.5",-1)])])),l[1]||(l[1]=t("div",{class:"s11-strip"},[t("span",{class:"s11-pill s11-pill--zs"},[e("zero-shot "),t("span",{class:"ct"},"12")]),t("span",{class:"s11-pill"},[e("Low-Rank Adaptation (LoRA) "),t("span",{class:"ct"},"4")]),t("span",{class:"s11-pill"},[e("full fine-tuning "),t("span",{class:"ct"},"5")])],-1))])]),_:1},16))}},R=d(u,[["__scopeId","data-v-ed1d1bc4"]]);export{R as default}; +import{o as r,b as o,w as n,g as t,e as c,ad as e,v as f,x,T as i}from"./modules/vue-CZamTkmS.js";import{_ as y}from"./assertion-evidence-B8cDdxTN.js";import{u as m,f as h}from"./slidev/context-Ch1IIjuh.js";import{_ as d}from"./index-CIas0rwA.js";import"./PageNo-bIvqdETk.js";import"./modules/shiki-COQlGosf.js";const p={class:"s11-evidence"},v={viewBox:"-70 0 1010 430",width:"100%",style:{display:"block"}},u={__name:"slides.md__slidev_11",setup(k){const{$clicksContext:a,$frontmatter:s}=m();return a.setup(),(w,l)=>(r(),o(y,f(x(i(h)(i(s),10))),{default:n(()=>[t("div",p,[(r(),c("svg",v,[...l[0]||(l[0]=[t("line",{x1:"95",y1:"40",x2:"95",y2:"345",stroke:"var(--neutral)","stroke-width":"1.5"},null,-1),t("line",{x1:"95",y1:"345",x2:"760",y2:"345",stroke:"var(--neutral)","stroke-width":"1.5"},null,-1),t("text",{transform:"translate(28,192) rotate(-90)","text-anchor":"middle",style:{"font-size":"16px"},fill:"var(--neutral)","font-weight":"600"},"model size (params, log)",-1),t("text",{x:"428",y:"393","text-anchor":"middle",style:{"font-size":"16px"},fill:"var(--neutral)","font-weight":"600"},"release date",-1),t("line",{x1:"95",y1:"320.6",x2:"760",y2:"320.6",stroke:"var(--neutral-soft)","stroke-width":"1","stroke-dasharray":"2 4",opacity:"0.5"},null,-1),t("text",{x:"85",y:"324.6","text-anchor":"end",style:{"font-size":"16px"},fill:"var(--neutral)"},"10M",-1),t("line",{x1:"95",y1:"162.8",x2:"760",y2:"162.8",stroke:"var(--neutral-soft)","stroke-width":"1","stroke-dasharray":"2 4",opacity:"0.5"},null,-1),t("text",{x:"85",y:"166.8","text-anchor":"end",style:{"font-size":"16px"},fill:"var(--neutral)"},"100M",-1),t("line",{x1:"95",y1:"52.5",x2:"760",y2:"52.5",stroke:"var(--neutral-soft)","stroke-width":"1","stroke-dasharray":"2 4",opacity:"0.5"},null,-1),t("text",{x:"85",y:"56.5","text-anchor":"end",style:{"font-size":"16px"},fill:"var(--neutral)"},"500M",-1),t("text",{x:"95.0",y:"371","text-anchor":"middle",style:{"font-size":"16px"},fill:"var(--neutral)","font-weight":"600"},"2024",-1),t("text",{x:"427.5",y:"371","text-anchor":"middle",style:{"font-size":"16px"},fill:"var(--neutral)","font-weight":"600"},"2025",-1),t("text",{x:"760.0",y:"371","text-anchor":"middle",style:{"font-size":"16px"},fill:"var(--neutral)","font-weight":"600"},"2026",-1),t("rect",{x:"387.3",y:"106.6",width:"14",height:"236.3",rx:"7",fill:"var(--family-chronos)",opacity:"0.14"},null,-1),t("rect",{x:"387.3",y:"106.6",width:"14",height:"236.3",rx:"7",fill:"none",stroke:"var(--family-chronos)","stroke-width":"1",opacity:"0.40"},null,-1),t("rect",{x:"254.2",y:"78.0",width:"14",height:"226.5",rx:"7",fill:"var(--family-moirai)",opacity:"0.14"},null,-1),t("rect",{x:"254.2",y:"78.0",width:"14",height:"226.5",rx:"7",fill:"none",stroke:"var(--family-moirai)","stroke-width":"1",opacity:"0.40"},null,-1),t("circle",{cx:"394.3",cy:"335.8",r:"5",fill:"var(--family-chronos)"},null,-1),t("circle",{cx:"394.3",cy:"269.7",r:"5",fill:"var(--family-chronos)"},null,-1),t("circle",{cx:"394.3",cy:"213.1",r:"5",fill:"var(--family-chronos)"},null,-1),t("circle",{cx:"394.3",cy:"113.6",r:"5",fill:"var(--family-chronos)"},null,-1),t("circle",{cx:"693.5",cy:"150.3",r:"11",fill:"none",stroke:"var(--accent)","stroke-width":"3.5"},null,-1),t("circle",{cx:"693.5",cy:"150.3",r:"6.5",fill:"var(--family-chronos)"},null,-1),t("circle",{cx:"261.2",cy:"297.5",r:"5",fill:"var(--family-moirai)"},null,-1),t("circle",{cx:"261.2",cy:"85.0",r:"5",fill:"var(--family-moirai)"},null,-1),t("circle",{cx:"354.3",cy:"173.1",r:"5",fill:"var(--family-moirai)"},null,-1),t("circle",{cx:"627.0",cy:"311.6",r:"11",fill:"none",stroke:"var(--accent)","stroke-width":"3.5"},null,-1),t("circle",{cx:"627.0",cy:"311.6",r:"6.5",fill:"var(--family-moirai)"},null,-1),t("circle",{cx:"221.4",cy:"115.3",r:"5",fill:"var(--family-timesfm)"},null,-1),t("circle",{cx:"434.1",cy:"52.5",r:"5",fill:"var(--family-timesfm)"},null,-1),t("circle",{cx:"663.6",cy:"115.3",r:"11",fill:"none",stroke:"var(--accent)","stroke-width":"3.5"},null,-1),t("circle",{cx:"663.6",cy:"115.3",r:"6.5",fill:"var(--family-timesfm)"},null,-1),t("text",{x:"394.3",y:"98.6","text-anchor":"middle",style:{"font-size":"18px"},"font-weight":"700",fill:"var(--family-chronos)"},"Chronos Bolt",-1),t("text",{x:"710.5",y:"155.3","text-anchor":"start",style:{"font-size":"18px"},"font-weight":"700",fill:"var(--family-chronos)"},"Chronos-2",-1),t("text",{x:"261.2",y:"70.0","text-anchor":"middle",style:{"font-size":"18px"},"font-weight":"700",fill:"var(--ink)"},"MOIRAI-1.1",-1),t("text",{x:"340.3",y:"177.1","text-anchor":"end",style:{"font-size":"18px"},"font-weight":"700",fill:"var(--ink)"},"MOIRAI-MoE",-1),t("text",{x:"340.3",y:"195.1","text-anchor":"end",style:{"font-size":"14px"},fill:"var(--neutral)"},"86M active · 935M total",-1),t("text",{x:"644.0",y:"316.6","text-anchor":"start",style:{"font-size":"18px"},"font-weight":"700",fill:"var(--ink)"},"MOIRAI-2.0",-1),t("text",{x:"209.4",y:"120.3","text-anchor":"end",style:{"font-size":"18px"},"font-weight":"700",fill:"var(--family-timesfm)"},"TimesFM-1.0",-1),t("text",{x:"448.1",y:"56.5","text-anchor":"start",style:{"font-size":"18px"},"font-weight":"700",fill:"var(--family-timesfm)"},"TimesFM-2.0",-1),t("text",{x:"680.6",y:"120.3","text-anchor":"start",style:{"font-size":"18px"},"font-weight":"700",fill:"var(--family-timesfm)"},"TimesFM-2.5",-1)])])),l[1]||(l[1]=t("div",{class:"s11-strip"},[t("span",{class:"s11-pill s11-pill--zs"},[e("zero-shot "),t("span",{class:"ct"},"12")]),t("span",{class:"s11-pill"},[e("Low-Rank Adaptation (LoRA) "),t("span",{class:"ct"},"4")]),t("span",{class:"s11-pill"},[e("full fine-tuning "),t("span",{class:"ct"},"5")])],-1))])]),_:1},16))}},R=d(u,[["__scopeId","data-v-ed1d1bc4"]]);export{R as default}; diff --git a/assets/md-DqmAczud.js b/assets/md-D33qndAU.js similarity index 92% rename from assets/md-DqmAczud.js rename to assets/md-D33qndAU.js index 36545fec931b57c969d92542fdedd418215a81d0..33828438f6c608b67337b93b3a39884fb669e759 100644 --- a/assets/md-DqmAczud.js +++ b/assets/md-D33qndAU.js @@ -1 +1 @@ -import{aL as c,o as r,b as m,w as _,g as s,j as a,af as i,e as p,ad as o,v as f,x as g,T as l}from"./modules/vue-CZamTkmS.js";import{_ as u}from"./assertion-evidence-BNrEFU8E.js";import{u as v,f as h}from"./slidev/context-z1Z7Rpcn.js";import{_ as x}from"./index-D8MtK2Qe.js";import"./PageNo-FcNtCKNX.js";import"./modules/shiki-COQlGosf.js";const I="/figures/s6-drift-xgb.png",b="/figures/s14-drift-tsfm.png",w="/figures/s6-intermittent-xgb.png",B="/figures/s14-intermittent-tsfm.png",k={class:"grid grid-cols-2 gap-8 mt-3",style:{height:"330px"}},y={class:"flex flex-col"},P={class:"s14-stack"},R={src:I,class:"s14-img",alt:"BPI2017 drift — XGBoost stays high while truth collapses late"},T={src:b,class:"s14-img s14-img--over",alt:"BPI2017 drift revealed — MOIRAI-2.0 dips toward the truth in the boxed back-half where XGBoost stays elevated"},z={class:"flex flex-col"},C={class:"s14-stack"},M={src:w,class:"s14-img",alt:"BPI2019_1 intermittent — XGBoost hallucinates 40–71 where truth is mostly zero"},S={src:B,class:"s14-img s14-img--over",alt:"BPI2019_1 intermittent revealed — MOIRAI-2.0 holds near zero (amber arrow), no false bursts, no spikes"},A={class:"mt-4 text-left",style:{"font-size":"20px",color:"#334155","line-height":"1.5",width:"fit-content","margin-left":"auto","margin-right":"auto"}},D={__name:"slides.md__slidev_14",setup(G){const{$clicksContext:n,$frontmatter:d}=v();return n.setup(),(N,t)=>{const e=c("click");return r(),m(u,f(g(l(h)(l(d),13))),{default:_(()=>[s("div",k,[a(" LEFT — drift: reveal MOIRAI-2.0 + amber adaptation box "),s("div",y,[t[0]||(t[0]=s("div",{class:"s14-panel-label"},"Drift: tracked",-1)),s("div",P,[i(s("img",R,null,512),[[e,1,void 0,{hide:!0}]]),i(s("img",T,null,512),[[e,1]])]),t[1]||(t[1]=s("div",{class:"s14-cap"},"BPI2017 · Sent → Cancelled",-1))]),a(" RIGHT — sparsity: reveal MOIRAI-2.0 + amber arrow to the zero line "),s("div",z,[t[2]||(t[2]=s("div",{class:"s14-panel-label"},"Sparsity: controlled",-1)),s("div",C,[i(s("img",M,null,512),[[e,1,void 0,{hide:!0}]]),i(s("img",S,null,512),[[e,1]])]),t[3]||(t[3]=s("div",{class:"s14-cap"},"BPI2019_1 · Cancel → Record Invoice Receipt",-1))])]),i((r(),p("div",A,[...t[4]||(t[4]=[s("div",null,[o("Drift: TSFM misses the initial drop, then "),s("strong",{style:{color:"var(--brand)"}},"adapts"),o(". A growing history window, no retraining.")],-1),s("div",null,[o("Sparsity: TSFM holds near zero. No false bursts, but "),s("strong",null,"no spikes either"),o(".")],-1)])])),[[e,1]])]),_:1},16)}}},L=x(D,[["__scopeId","data-v-c344ee46"]]);export{L as default}; +import{aL as c,o as r,b as m,w as _,g as s,j as a,af as i,e as p,ad as o,v as f,x as g,T as l}from"./modules/vue-CZamTkmS.js";import{_ as u}from"./assertion-evidence-B8cDdxTN.js";import{u as v,f as h}from"./slidev/context-Ch1IIjuh.js";import{_ as x}from"./index-CIas0rwA.js";import"./PageNo-bIvqdETk.js";import"./modules/shiki-COQlGosf.js";const I="/figures/s6-drift-xgb.png",b="/figures/s14-drift-tsfm.png",w="/figures/s6-intermittent-xgb.png",B="/figures/s14-intermittent-tsfm.png",k={class:"grid grid-cols-2 gap-8 mt-3",style:{height:"330px"}},y={class:"flex flex-col"},P={class:"s14-stack"},R={src:I,class:"s14-img",alt:"BPI2017 drift — XGBoost stays high while truth collapses late"},T={src:b,class:"s14-img s14-img--over",alt:"BPI2017 drift revealed — MOIRAI-2.0 dips toward the truth in the boxed back-half where XGBoost stays elevated"},z={class:"flex flex-col"},C={class:"s14-stack"},M={src:w,class:"s14-img",alt:"BPI2019_1 intermittent — XGBoost hallucinates 40–71 where truth is mostly zero"},S={src:B,class:"s14-img s14-img--over",alt:"BPI2019_1 intermittent revealed — MOIRAI-2.0 holds near zero (amber arrow), no false bursts, no spikes"},A={class:"mt-4 text-left",style:{"font-size":"20px",color:"#334155","line-height":"1.5",width:"fit-content","margin-left":"auto","margin-right":"auto"}},D={__name:"slides.md__slidev_14",setup(G){const{$clicksContext:n,$frontmatter:d}=v();return n.setup(),(N,t)=>{const e=c("click");return r(),m(u,f(g(l(h)(l(d),13))),{default:_(()=>[s("div",k,[a(" LEFT — drift: reveal MOIRAI-2.0 + amber adaptation box "),s("div",y,[t[0]||(t[0]=s("div",{class:"s14-panel-label"},"Drift: tracked",-1)),s("div",P,[i(s("img",R,null,512),[[e,1,void 0,{hide:!0}]]),i(s("img",T,null,512),[[e,1]])]),t[1]||(t[1]=s("div",{class:"s14-cap"},"BPI2017 · Sent → Cancelled",-1))]),a(" RIGHT — sparsity: reveal MOIRAI-2.0 + amber arrow to the zero line "),s("div",z,[t[2]||(t[2]=s("div",{class:"s14-panel-label"},"Sparsity: controlled",-1)),s("div",C,[i(s("img",M,null,512),[[e,1,void 0,{hide:!0}]]),i(s("img",S,null,512),[[e,1]])]),t[3]||(t[3]=s("div",{class:"s14-cap"},"BPI2019_1 · Cancel → Record Invoice Receipt",-1))])]),i((r(),p("div",A,[...t[4]||(t[4]=[s("div",null,[o("Drift: TSFM misses the initial drop, then "),s("strong",{style:{color:"var(--brand)"}},"adapts"),o(". A growing history window, no retraining.")],-1),s("div",null,[o("Sparsity: TSFM holds near zero. No false bursts, but "),s("strong",null,"no spikes either"),o(".")],-1)])])),[[e,1]])]),_:1},16)}}},L=x(D,[["__scopeId","data-v-c344ee46"]]);export{L as default}; diff --git a/assets/md-BvSHvUIS.js b/assets/md-D5MfDGpq.js similarity index 52% rename from assets/md-BvSHvUIS.js rename to assets/md-D5MfDGpq.js index 758536e05a3a6272c5376ef156e96232cd2fae33..06e0ef24cb2f3c7fe65ad16ced4d66ef1f8b4774 100644 --- a/assets/md-BvSHvUIS.js +++ b/assets/md-D5MfDGpq.js @@ -1 +1 @@ -import{o as a,e as l,i as u,ad as c,b as i,w as m,g as t,v as d,x as f,T as r}from"./modules/vue-CZamTkmS.js";import{_ as p}from"./index-D8MtK2Qe.js";import{u as _,f as v}from"./slidev/context-z1Z7Rpcn.js";import"./modules/shiki-COQlGosf.js";const g="/logos/kuleuven-liris.png",b={},x={class:"slidev-layout end"};function y(o,e){return a(),l("div",x,[u(o.$slots,"default",{},()=>[e[0]||(e[0]=c("END",-1))],!0)])}const h=p(b,[["render",y],["__scopeId","data-v-143086bc"]]),Y={__name:"slides.md__slidev_20",setup(o){const{$clicksContext:e,$frontmatter:n}=_();return e.setup(),(k,s)=>(a(),i(h,d(f(r(v)(r(n),19))),{default:m(()=>[...s[0]||(s[0]=[t("h1",null,"Thank you",-1),t("div",{class:"text-2xl mt-4",style:{color:"var(--neutral)"}}," Questions, please. ",-1),t("div",{class:"mt-10 text-lg"},[t("a",{href:"mailto:yongbo.yu@kuleuven.be",style:{color:"var(--brand)","font-weight":"600"}},"yongbo.yu@kuleuven.be"),t("span",{style:{color:"var(--neutral-soft)"}}," · "),t("a",{href:"https://github.com/YongboYu/pmf-tsfm",style:{color:"var(--brand)","font-weight":"600"}},"github.com/YongboYu/pmf-tsfm")],-1),t("img",{src:g,class:"h-12 mx-auto mt-12",alt:"KU Leuven · LIRIS"},null,-1)])]),_:1},16))}};export{Y as default}; +import{o as r,e as l,i as u,ad as c,b as i,w as m,g as t,v as d,x as f,T as a}from"./modules/vue-CZamTkmS.js";import{_ as p}from"./index-CIas0rwA.js";import{u as _,f as v}from"./slidev/context-Ch1IIjuh.js";import"./modules/shiki-COQlGosf.js";const g="/logos/kuleuven-liris.png",x={},b={class:"slidev-layout end"};function y(o,e){return r(),l("div",b,[u(o.$slots,"default",{},()=>[e[0]||(e[0]=c("END",-1))],!0)])}const h=p(x,[["render",y],["__scopeId","data-v-61e4aa10"]]),Y={__name:"slides.md__slidev_20",setup(o){const{$clicksContext:e,$frontmatter:n}=_();return e.setup(),(k,s)=>(r(),i(h,d(f(a(v)(a(n),19))),{default:m(()=>[...s[0]||(s[0]=[t("h1",null,"Thank you",-1),t("div",{class:"text-2xl mt-4",style:{color:"var(--neutral)"}}," Questions, please. ",-1),t("div",{class:"mt-10 text-lg"},[t("a",{href:"mailto:yongbo.yu@kuleuven.be",style:{color:"var(--brand)","font-weight":"600"}},"yongbo.yu@kuleuven.be"),t("span",{style:{color:"var(--neutral-soft)"}}," · "),t("a",{href:"https://github.com/YongboYu/pmf-tsfm",style:{color:"var(--brand)","font-weight":"600"}},"github.com/YongboYu/pmf-tsfm")],-1),t("img",{src:g,class:"h-12 mx-auto mt-12",alt:"KU Leuven · LIRIS"},null,-1)])]),_:1},16))}};export{Y as default}; diff --git a/assets/md-DsWGWXpD.css b/assets/md-DZ1tVds7.css similarity index 89% rename from assets/md-DsWGWXpD.css rename to assets/md-DZ1tVds7.css index 5548931ae18d00fa00f1687498eff78efadde514..8c52ce62783a966732d324c4e1fce3df1b997ea8 100644 --- a/assets/md-DsWGWXpD.css +++ b/assets/md-DZ1tVds7.css @@ -1 +1 @@ -.slidev-layout.end[data-v-143086bc]{display:grid;height:100%;-webkit-user-select:none;user-select:none;place-content:center;--un-bg-opacity:1;background-color:rgb(0 0 0 / var(--un-bg-opacity));text-align:center;font-size:1.25rem;line-height:1.75rem;--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity));--un-text-opacity:.85;letter-spacing:.1em}.slidev-layout.ty-light{background:radial-gradient(1100px 500px at 78% -8%,#eaf1f8,#eaf1f800 60%),var(--surface)!important;color:var(--ink)!important;text-align:center}.slidev-layout.ty-light h1{color:var(--brand)!important} +.slidev-layout.end[data-v-61e4aa10]{display:grid;height:100%;-webkit-user-select:none;user-select:none;place-content:center;--un-bg-opacity:1;background-color:rgb(0 0 0 / var(--un-bg-opacity));text-align:center;font-size:1.25rem;line-height:1.75rem;--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity));--un-text-opacity:.85;letter-spacing:.1em}.slidev-layout.ty-light{background:radial-gradient(1100px 500px at 78% -8%,#eaf1f8,#eaf1f800 60%),var(--surface)!important;color:var(--ink)!important;text-align:center}.slidev-layout.ty-light h1{color:var(--brand)!important} diff --git a/assets/md-By7USaRF.js b/assets/md-Dw7OShh3.js similarity index 86% rename from assets/md-By7USaRF.js rename to assets/md-Dw7OShh3.js index 3508fab267977c4bf020f5bb7a142f1e93cac933..9f7a14ba47932d772ebf4a5c4d5dc3f4d643f817 100644 --- a/assets/md-By7USaRF.js +++ b/assets/md-Dw7OShh3.js @@ -1 +1 @@ -import{_ as u}from"./Callout-D9ibgtrC.js";import{aL as f,o as s,b as _,w as r,g as e,ad as o,af as l,e as n,d as c,v,x as g,T as d}from"./modules/vue-CZamTkmS.js";import{_ as x}from"./assertion-evidence-BNrEFU8E.js";import{u as b,f as h}from"./slidev/context-z1Z7Rpcn.js";import"./index-D8MtK2Qe.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-FcNtCKNX.js";const w="/figures/er-hospital-billing.png",y={class:"relative"},k={class:"absolute",style:{left:"40%",top:"14%"}},T={class:"absolute",style:{left:"58%",top:"40%"}},D={__name:"slides.md__slidev_16",setup(B){const{$clicksContext:m,$frontmatter:p}=b();return m.setup(),(C,t)=>{const a=u,i=f("click");return s(),_(x,v(g(d(h)(d(p),15))),{default:r(()=>[t[3]||(t[3]=e("div",{class:"text-center mb-3",style:{"font-size":"19px","max-width":"1040px","margin-left":"auto","margin-right":"auto"}},[e("b",{style:{color:"var(--ink)"}},"Entropic Relevance (ER):"),o(),e("span",{style:{color:"var(--neutral)"}},"average bits to encode one log trace with the forecasted process model ·"),o(),e("b",{style:{color:"var(--brand)"}},"lower = better")],-1)),e("div",y,[t[2]||(t[2]=e("img",{src:w,class:"block mx-auto w-full max-h-[380px] object-contain rounded-lg",alt:"Hospital Billing ER — reusing the historical (Training) model is far worse than any forecast; the five forecasts cluster close together"},null,-1)),l((s(),n("div",k,[c(a,{dir:"left"},{default:r(()=>[...t[0]||(t[0]=[o("Forecast ≫ the static discovery model over training set",-1)])]),_:1})])),[[i,1]]),l((s(),n("div",T,[c(a,{dir:"down"},{default:r(()=>[...t[1]||(t[1]=[o("TSFMs ≈ baselines",-1)])]),_:1})])),[[i,2]])]),t[4]||(t[4]=e("div",{class:"caption text-center mt-2",style:{color:"var(--neutral)"}},"Hospital Billing · Truth = ideal floor · Training = the discovered model, reused unchanged across the horizon",-1))]),_:1},16)}}};export{D as default}; +import{_ as u}from"./Callout-D44NXjfg.js";import{aL as f,o as s,b as _,w as r,g as e,ad as o,af as l,e as n,d as c,v,x as g,T as d}from"./modules/vue-CZamTkmS.js";import{_ as x}from"./assertion-evidence-B8cDdxTN.js";import{u as b,f as h}from"./slidev/context-Ch1IIjuh.js";import"./index-CIas0rwA.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-bIvqdETk.js";const w="/figures/er-hospital-billing.png",y={class:"relative"},k={class:"absolute",style:{left:"40%",top:"14%"}},T={class:"absolute",style:{left:"58%",top:"40%"}},D={__name:"slides.md__slidev_16",setup(B){const{$clicksContext:m,$frontmatter:p}=b();return m.setup(),(C,t)=>{const a=u,i=f("click");return s(),_(x,v(g(d(h)(d(p),15))),{default:r(()=>[t[3]||(t[3]=e("div",{class:"text-center mb-3",style:{"font-size":"19px","max-width":"1040px","margin-left":"auto","margin-right":"auto"}},[e("b",{style:{color:"var(--ink)"}},"Entropic Relevance (ER):"),o(),e("span",{style:{color:"var(--neutral)"}},"average bits to encode one log trace with the forecasted process model ·"),o(),e("b",{style:{color:"var(--brand)"}},"lower = better")],-1)),e("div",y,[t[2]||(t[2]=e("img",{src:w,class:"block mx-auto w-full max-h-[380px] object-contain rounded-lg",alt:"Hospital Billing ER — reusing the historical (Training) model is far worse than any forecast; the five forecasts cluster close together"},null,-1)),l((s(),n("div",k,[c(a,{dir:"left"},{default:r(()=>[...t[0]||(t[0]=[o("Forecast ≫ the static discovery model over training set",-1)])]),_:1})])),[[i,1]]),l((s(),n("div",T,[c(a,{dir:"down"},{default:r(()=>[...t[1]||(t[1]=[o("TSFMs ≈ baselines",-1)])]),_:1})])),[[i,2]])]),t[4]||(t[4]=e("div",{class:"caption text-center mt-2",style:{color:"var(--neutral)"}},"Hospital Billing · Truth = ideal floor · Training = the discovered model, reused unchanged across the horizon",-1))]),_:1},16)}}};export{D as default}; diff --git a/assets/md-2-_NAqid.js b/assets/md-KwgLmFjp.js similarity index 93% rename from assets/md-2-_NAqid.js rename to assets/md-KwgLmFjp.js index fbf4e6c9aa0683ce415db398e773e5dfc46133fa..42c52cba871b714f1171a700d227cf1a1d42a2d1 100644 --- a/assets/md-2-_NAqid.js +++ b/assets/md-KwgLmFjp.js @@ -1 +1 @@ -import{o as i,b as n,w as r,g as s,ad as e,v as d,x as p,T as a}from"./modules/vue-CZamTkmS.js";import{_ as v}from"./two-col-evidence-C1aPThn8.js";import{u as x,f}from"./slidev/context-z1Z7Rpcn.js";import{_ as k}from"./index-D8MtK2Qe.js";import"./PageNo-FcNtCKNX.js";import"./modules/shiki-COQlGosf.js";const y={__name:"slides.md__slidev_3",setup(w){const{$clicksContext:t,$frontmatter:c}=x();return t.setup(),(m,l)=>(i(),n(v,d(p(a(f)(a(c),2))),{left:r(o=>[...l[0]||(l[0]=[s("div",{class:"s3-collabel"},"Predictive Process Monitoring (PPM)",-1),s("div",{class:"s3-level"},"Scope: case-level",-1),s("div",{class:"s3-trace"},[s("span",{class:"s3-pill"},"Create"),s("span",{class:"s3-arrow"},"→"),s("span",{class:"s3-pill"},"Assess"),s("span",{class:"s3-arrow"},"→"),s("span",{class:"s3-pill s3-pill-q"},"?")],-1),s("div",{class:"s3-tasks"},[s("div",{class:"s3-task"},[s("span",{class:"s3-task-q"},[e('"Will '),s("strong",null,"this"),e(' loan be cancelled?"')])]),s("div",{class:"s3-task"},[s("span",{class:"s3-task-q"},[e('"What does '),s("strong",null,"this"),e(' applicant do next?"')])])],-1),s("div",{class:"s3-horizon"},"Horizon: the rest of one case",-1)])]),right:r(o=>[...l[1]||(l[1]=[s("div",{class:"s3-collabel"},"Process Model Forecasting (PMF)",-1),s("div",{class:"s3-level"},"Scope: system-level",-1),s("div",{class:"s3-flow"},[s("span",{class:"s3-pill"},"Log window"),s("span",{class:"s3-arrow"},"→"),s("div",{class:"s3-dfg"},[s("svg",{viewBox:"0 0 84 64",width:"116",height:"88"},[s("line",{x1:"12",y1:"32",x2:"40",y2:"16",stroke:"#475569","stroke-width":"2"}),s("line",{x1:"12",y1:"32",x2:"40",y2:"48",stroke:"#475569","stroke-width":"2"}),s("line",{x1:"40",y1:"16",x2:"70",y2:"32",stroke:"#475569","stroke-width":"2"}),s("line",{x1:"40",y1:"48",x2:"70",y2:"32",stroke:"#475569","stroke-width":"2"}),s("circle",{cx:"12",cy:"32",r:"5",fill:"var(--brand)"}),s("circle",{cx:"40",cy:"16",r:"5",fill:"var(--brand)"}),s("circle",{cx:"40",cy:"48",r:"5",fill:"var(--brand)"}),s("circle",{cx:"70",cy:"32",r:"5",fill:"var(--brand)"})]),s("div",{class:"s3-dfg-cap"},"DFG now")]),s("span",{class:"s3-arrow"},"→"),s("div",{class:"s3-dfg"},[s("svg",{viewBox:"0 0 84 64",width:"116",height:"88"},[s("line",{x1:"12",y1:"32",x2:"40",y2:"16",stroke:"#475569","stroke-width":"2"}),s("line",{x1:"12",y1:"32",x2:"40",y2:"48",stroke:"#475569","stroke-width":"2"}),s("line",{x1:"40",y1:"16",x2:"70",y2:"32",stroke:"#475569","stroke-width":"2"}),s("line",{x1:"40",y1:"48",x2:"70",y2:"32",stroke:"var(--accent)","stroke-width":"2"}),s("circle",{cx:"12",cy:"32",r:"5",fill:"var(--brand)"}),s("circle",{cx:"40",cy:"16",r:"5",fill:"var(--brand)"}),s("circle",{cx:"40",cy:"48",r:"5",fill:"var(--accent)"}),s("circle",{cx:"70",cy:"32",r:"5",fill:"var(--brand)"})]),s("div",{class:"s3-dfg-cap"},"next week's DFG")])],-1),s("div",{class:"s3-ask"},[e('"How often does '),s("strong",null,"offer sent → cancelled"),e(' occur?"')],-1),s("div",{class:"s3-horizon"},"Horizon: the near-term system future",-1)])]),_:1},16))}},z=k(y,[["__scopeId","data-v-fc652937"]]);export{z as default}; +import{o as i,b as n,w as r,g as s,ad as e,v as d,x as p,T as a}from"./modules/vue-CZamTkmS.js";import{_ as v}from"./two-col-evidence-BJy_vMOO.js";import{u as x,f}from"./slidev/context-Ch1IIjuh.js";import{_ as k}from"./index-CIas0rwA.js";import"./PageNo-bIvqdETk.js";import"./modules/shiki-COQlGosf.js";const y={__name:"slides.md__slidev_3",setup(w){const{$clicksContext:t,$frontmatter:c}=x();return t.setup(),(m,l)=>(i(),n(v,d(p(a(f)(a(c),2))),{left:r(o=>[...l[0]||(l[0]=[s("div",{class:"s3-collabel"},"Predictive Process Monitoring (PPM)",-1),s("div",{class:"s3-level"},"Scope: case-level",-1),s("div",{class:"s3-trace"},[s("span",{class:"s3-pill"},"Create"),s("span",{class:"s3-arrow"},"→"),s("span",{class:"s3-pill"},"Assess"),s("span",{class:"s3-arrow"},"→"),s("span",{class:"s3-pill s3-pill-q"},"?")],-1),s("div",{class:"s3-tasks"},[s("div",{class:"s3-task"},[s("span",{class:"s3-task-q"},[e('"Will '),s("strong",null,"this"),e(' loan be cancelled?"')])]),s("div",{class:"s3-task"},[s("span",{class:"s3-task-q"},[e('"What does '),s("strong",null,"this"),e(' applicant do next?"')])])],-1),s("div",{class:"s3-horizon"},"Horizon: the rest of one case",-1)])]),right:r(o=>[...l[1]||(l[1]=[s("div",{class:"s3-collabel"},"Process Model Forecasting (PMF)",-1),s("div",{class:"s3-level"},"Scope: system-level",-1),s("div",{class:"s3-flow"},[s("span",{class:"s3-pill"},"Log window"),s("span",{class:"s3-arrow"},"→"),s("div",{class:"s3-dfg"},[s("svg",{viewBox:"0 0 84 64",width:"116",height:"88"},[s("line",{x1:"12",y1:"32",x2:"40",y2:"16",stroke:"#475569","stroke-width":"2"}),s("line",{x1:"12",y1:"32",x2:"40",y2:"48",stroke:"#475569","stroke-width":"2"}),s("line",{x1:"40",y1:"16",x2:"70",y2:"32",stroke:"#475569","stroke-width":"2"}),s("line",{x1:"40",y1:"48",x2:"70",y2:"32",stroke:"#475569","stroke-width":"2"}),s("circle",{cx:"12",cy:"32",r:"5",fill:"var(--brand)"}),s("circle",{cx:"40",cy:"16",r:"5",fill:"var(--brand)"}),s("circle",{cx:"40",cy:"48",r:"5",fill:"var(--brand)"}),s("circle",{cx:"70",cy:"32",r:"5",fill:"var(--brand)"})]),s("div",{class:"s3-dfg-cap"},"DFG now")]),s("span",{class:"s3-arrow"},"→"),s("div",{class:"s3-dfg"},[s("svg",{viewBox:"0 0 84 64",width:"116",height:"88"},[s("line",{x1:"12",y1:"32",x2:"40",y2:"16",stroke:"#475569","stroke-width":"2"}),s("line",{x1:"12",y1:"32",x2:"40",y2:"48",stroke:"#475569","stroke-width":"2"}),s("line",{x1:"40",y1:"16",x2:"70",y2:"32",stroke:"#475569","stroke-width":"2"}),s("line",{x1:"40",y1:"48",x2:"70",y2:"32",stroke:"var(--accent)","stroke-width":"2"}),s("circle",{cx:"12",cy:"32",r:"5",fill:"var(--brand)"}),s("circle",{cx:"40",cy:"16",r:"5",fill:"var(--brand)"}),s("circle",{cx:"40",cy:"48",r:"5",fill:"var(--accent)"}),s("circle",{cx:"70",cy:"32",r:"5",fill:"var(--brand)"})]),s("div",{class:"s3-dfg-cap"},"next week's DFG")])],-1),s("div",{class:"s3-ask"},[e('"How often does '),s("strong",null,"offer sent → cancelled"),e(' occur?"')],-1),s("div",{class:"s3-horizon"},"Horizon: the near-term system future",-1)])]),_:1},16))}},z=k(y,[["__scopeId","data-v-fc652937"]]);export{z as default}; diff --git a/assets/md-LN6kLwF6.css b/assets/md-LN6kLwF6.css deleted file mode 100644 index 4a7d9d7b2a41d1e77a0528c5b1caf567193b5ac9..0000000000000000000000000000000000000000 --- a/assets/md-LN6kLwF6.css +++ /dev/null @@ -1 +0,0 @@ -.s10[data-v-fcf10452]{max-width:1040px;margin:0 auto}.s10-heading[data-v-fcf10452]{font-size:40px;font-weight:700;color:var(--brand);line-height:1.12;letter-spacing:-.01em}.s10-rule[data-v-fcf10452]{width:72px;height:5px;background:var(--accent);border-radius:3px;margin:20px 0 44px}.s10-list[data-v-fcf10452]{display:flex;flex-direction:column;gap:32px}.s10-q[data-v-fcf10452]{display:flex;align-items:flex-start;gap:24px}.s10-num[data-v-fcf10452]{flex:none;width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--brand);color:#fff;font-weight:700;font-size:25px;line-height:1;font-variant-numeric:tabular-nums}.s10-num--amber[data-v-fcf10452]{background:var(--accent);color:var(--ink)}.s10-text[data-v-fcf10452]{font-size:30px;line-height:1.4;color:var(--ink);padding-top:7px}.s10-text strong[data-v-fcf10452]{color:var(--brand);font-weight:700}.s10-q--open .s10-text strong[data-v-fcf10452]{color:#b06317} diff --git a/assets/md-DZhFsmU6.js b/assets/md-PNN-aPN9.js similarity index 77% rename from assets/md-DZhFsmU6.js rename to assets/md-PNN-aPN9.js index f7aeaf80798c3adaf246caa6004d2319319b845a..39446bf318b42fea83a485345f5421f27a35c39e 100644 --- a/assets/md-DZhFsmU6.js +++ b/assets/md-PNN-aPN9.js @@ -1 +1 @@ -import{_ as l}from"./Callout-D9ibgtrC.js";import{o as m,b as u,w as a,g as s,d as c,ad as e,v as d,x as p,T as o}from"./modules/vue-CZamTkmS.js";import{_ as f}from"./assertion-evidence-BNrEFU8E.js";import{u as _,f as x}from"./slidev/context-z1Z7Rpcn.js";import"./index-D8MtK2Qe.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-FcNtCKNX.js";const g="/figures/df-complexity-radar.png",y={class:"relative"},v={class:"absolute",style:{right:"0",top:"50%",transform:"translateY(-50%)"}},P={__name:"slides.md__slidev_27",setup(b){const{$clicksContext:n,$frontmatter:r}=_();return n.setup(),(h,t)=>{const i=l;return m(),u(f,d(p(o(x)(o(r),26))),{default:a(()=>[s("div",y,[t[1]||(t[1]=s("img",{src:g,class:"block mx-auto w-full max-h-[400px] object-contain rounded-lg",alt:"Radar of seven complexity metrics for DF series — seasonality, trend, stationarity, transition, shifting, correlation, non-Gaussianity, with transition, shifting and non-Gaussianity markedly elevated"},null,-1)),s("div",v,[c(i,{style:{"text-align":"center"}},{default:a(()=>[...t[0]||(t[0]=[e("Elevated:",-1),s("br",null,null,-1),e("Transition · Shifting",-1),s("br",null,null,-1),e("· Non-Gaussianity",-1)])]),_:1})])]),t[2]||(t[2]=s("div",{class:"text-center mt-2",style:{"font-size":"18px",color:"var(--neutral)"}},"Higher than typical public benchmarks (Li et al. 2025)",-1))]),_:1},16)}}};export{P as default}; +import{_ as l}from"./Callout-D44NXjfg.js";import{o as m,b as u,w as a,g as s,d as c,ad as e,v as d,x as p,T as o}from"./modules/vue-CZamTkmS.js";import{_ as f}from"./assertion-evidence-B8cDdxTN.js";import{u as _,f as x}from"./slidev/context-Ch1IIjuh.js";import"./index-CIas0rwA.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-bIvqdETk.js";const g="/figures/df-complexity-radar.png",y={class:"relative"},v={class:"absolute",style:{right:"0",top:"50%",transform:"translateY(-50%)"}},P={__name:"slides.md__slidev_27",setup(b){const{$clicksContext:n,$frontmatter:r}=_();return n.setup(),(h,t)=>{const i=l;return m(),u(f,d(p(o(x)(o(r),26))),{default:a(()=>[s("div",y,[t[1]||(t[1]=s("img",{src:g,class:"block mx-auto w-full max-h-[400px] object-contain rounded-lg",alt:"Radar of seven complexity metrics for DF series — seasonality, trend, stationarity, transition, shifting, correlation, non-Gaussianity, with transition, shifting and non-Gaussianity markedly elevated"},null,-1)),s("div",v,[c(i,{style:{"text-align":"center"}},{default:a(()=>[...t[0]||(t[0]=[e("Elevated:",-1),s("br",null,null,-1),e("Transition · Shifting",-1),s("br",null,null,-1),e("· Non-Gaussianity",-1)])]),_:1})])]),t[2]||(t[2]=s("div",{class:"text-center mt-2",style:{"font-size":"18px",color:"var(--neutral)"}},"Higher than typical public benchmarks (Li et al. 2025)",-1))]),_:1},16)}}};export{P as default}; diff --git a/assets/md-DWphB_8g.js b/assets/md-PQiRBmeA.js similarity index 77% rename from assets/md-DWphB_8g.js rename to assets/md-PQiRBmeA.js index a388e09019f8d56852785b98771d9d0fe72c0d90..80300d32fb7b3107ee957714031b0b57acbf1308 100644 --- a/assets/md-DWphB_8g.js +++ b/assets/md-PQiRBmeA.js @@ -1 +1 @@ -import{o as n,e as i,g as s,i as d,b as u,w as _,ad as e,v as m,x as f,T as r}from"./modules/vue-CZamTkmS.js";import{_ as c}from"./index-D8MtK2Qe.js";import{u as p,f as v}from"./slidev/context-z1Z7Rpcn.js";import"./modules/shiki-COQlGosf.js";const g={},x={class:"slidev-layout center h-full grid place-content-center"},h={class:"my-auto"};function b(t,a){return n(),i("div",x,[s("div",h,[d(t.$slots,"default")])])}const q=c(g,[["render",b]]),k={__name:"slides.md__slidev_10",setup(t){const{$clicksContext:a,$frontmatter:l}=p();return a.setup(),(B,o)=>(n(),u(q,m(f(r(v)(r(l),9))),{default:_(()=>[...o[0]||(o[0]=[s("div",{class:"s10"},[s("div",{class:"s10-heading"},"Research questions"),s("div",{class:"s10-rule"}),s("div",{class:"s10-list"},[s("div",{class:"s10-q"},[s("span",{class:"s10-num"},"1"),s("div",{class:"s10-text"},[e("Can "),s("strong",null,"zero-shot"),e(" TSFMs give better "),s("strong",null,"DF time-series forecasts"),e("?")])]),s("div",{class:"s10-q"},[s("span",{class:"s10-num"},"2"),s("div",{class:"s10-text"},[e("Does "),s("strong",null,"fine-tuning"),e(" improve the results further?")])]),s("div",{class:"s10-q s10-q--open"},[s("span",{class:"s10-num s10-num--amber"},"3"),s("div",{class:"s10-text"},[e("Does a better forecast give us a "),s("strong",null,"better forecasted process model"),e("?")])])])],-1)])]),_:1},16))}},D=c(k,[["__scopeId","data-v-fcf10452"]]);export{D as default}; +import{o as n,e as i,g as s,i as d,b as u,w as _,ad as e,v as m,x as p,T as r}from"./modules/vue-CZamTkmS.js";import{_ as c}from"./index-CIas0rwA.js";import{u as f,f as v}from"./slidev/context-Ch1IIjuh.js";import"./modules/shiki-COQlGosf.js";const g={},x={class:"slidev-layout center h-full grid place-content-center"},h={class:"my-auto"};function b(t,a){return n(),i("div",x,[s("div",h,[d(t.$slots,"default")])])}const q=c(g,[["render",b]]),k={__name:"slides.md__slidev_10",setup(t){const{$clicksContext:a,$frontmatter:l}=f();return a.setup(),(B,o)=>(n(),u(q,m(p(r(v)(r(l),9))),{default:_(()=>[...o[0]||(o[0]=[s("div",{class:"s10"},[s("div",{class:"s10-heading"},"Research questions"),s("div",{class:"s10-rule"}),s("div",{class:"s10-list"},[s("div",{class:"s10-q"},[s("span",{class:"s10-num"},"1"),s("div",{class:"s10-text"},[e("Can "),s("strong",null,"zero-shot"),e(" TSFMs give better "),s("strong",null,"DF time-series forecasts"),e("?")])]),s("div",{class:"s10-q"},[s("span",{class:"s10-num"},"2"),s("div",{class:"s10-text"},[e("Does "),s("strong",null,"fine-tuning"),e(" improve the results further?")])]),s("div",{class:"s10-q s10-q--open"},[s("span",{class:"s10-num s10-num--amber"},"3"),s("div",{class:"s10-text"},[e("Does a better forecast give us a "),s("strong",null,"better forecasted process model"),e("?")])])])],-1)])]),_:1},16))}},D=c(k,[["__scopeId","data-v-deb47240"]]);export{D as default}; diff --git a/assets/md-Dc-PbqDM.js b/assets/md-ZwnkpR5j.js similarity index 94% rename from assets/md-Dc-PbqDM.js rename to assets/md-ZwnkpR5j.js index 3a34ddd7415a4233c829e1a628033f0394e9bfef..a9056c96f1b1d4a9b1de48a51d36daf5c760ef19 100644 --- a/assets/md-Dc-PbqDM.js +++ b/assets/md-ZwnkpR5j.js @@ -1 +1 @@ -import{_ as G}from"./Callout-D9ibgtrC.js";import{o as s,e as o,t as v,j as g,F as _,aj as w,g as t,T as n,z as k,aL as O,b as B,w as m,d as y,af as b,ad as r,v as T,x as N}from"./modules/vue-CZamTkmS.js";import{u as E,f as S}from"./slidev/context-z1Z7Rpcn.js";import{d as p,e as P,a as j}from"./dfgGeometry-Bu62KhA-.js";import{_ as F}from"./index-D8MtK2Qe.js";import{_ as z}from"./assertion-evidence-BNrEFU8E.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-FcNtCKNX.js";const L={class:"dfg-snapshot"},R={key:0,class:"snapshot-title"},M={viewBox:"0 0 248 44",width:"100%",height:"100%",preserveAspectRatio:"xMidYMid meet"},V=["x1","y1","x2","y2","stroke"],H=["d","fill"],I=["x","y"],U=["x","y"],W=["cx","cy"],X=["x","y"],D=1.6,A=24,C=9,Y="var(--accent)",q="var(--brand)",$="#475569",J={__name:"DfgSnapshot",props:{frame:{type:Number,default:0},title:{type:String,default:""},heroEdge:{type:String,default:p.hero},revealed:{type:Boolean,default:!0}},setup(a){E();const u={start:{x:12,y:27},create:{x:46,y:27},created:{x:80,y:27},sent:{x:114,y:27},returned:{x:148,y:27},accepted:{x:182,y:27},cancelled:{x:188,y:9},end:{x:232,y:27}},d=p.nodes.map(i=>({...i,x:u[i.id].x,y:u[i.id].y})),h=a,x=P(d,p.edges,12.5,12.5,{accepted__end:5,cancelled__end:5},{start__create:6}),l=k(()=>Object.fromEntries(p.edges.map(i=>[i.id,j(x[i.id],D)]))),c=k(()=>h.revealed?Y:q);return(i,f)=>(s(),o("div",L,[a.title?(s(),o("div",R,v(a.title),1)):g("v-if",!0),(s(),o("svg",M,[(s(!0),o(_,null,w(n(p).edges,e=>(s(),o("g",{key:e.id},[t("line",{x1:l.value[e.id].shaft[0],y1:l.value[e.id].shaft[1],x2:l.value[e.id].shaft[2],y2:l.value[e.id].shaft[3],"stroke-linecap":"butt","stroke-width":D,stroke:e.id===a.heroEdge?c.value:$},null,8,V),t("path",{d:l.value[e.id].headPath,fill:e.id===a.heroEdge?c.value:$},null,8,H)]))),128)),(s(!0),o(_,null,w(n(d),e=>(s(),o("g",{key:e.id},[e.kind==="activity"?(s(),o(_,{key:0},[t("rect",{x:e.x-A/2,y:e.y-C/2,width:A,height:C,rx:"2",fill:"#ffffff",stroke:"#cbd5e1","stroke-width":"0.6"},null,8,I),t("text",{x:e.x,y:e.y+1.5,"text-anchor":"middle",style:{"font-size":"4.2px"},fill:"#0f172a"},v(e.label),9,U)],64)):e.kind==="start"?(s(),o("circle",{key:1,cx:e.x,cy:e.y,r:"4.5",fill:"#0f172a"},null,8,W)):(s(),o("rect",{key:2,x:e.x-4,y:e.y-4,width:"8",height:"8",rx:"1",fill:"#0f172a"},null,8,X))]))),128))]))]))}},K=F(J,[["__scopeId","data-v-47d8e66c"]]),Q={class:"grid items-stretch mt-4",style:{"grid-template-columns":"30% 70%",gap:"20px",height:"380px"}},Z={style:{display:"grid","grid-template-columns":"44px 1fr","grid-template-rows":"1fr 1fr",gap:"14px","min-height":"0"}},tt={class:"border border-gray-200 rounded-lg px-3 py-1 relative",style:{"min-height":"0"}},et={style:{position:"absolute",left:"81%",top:"72%","white-space":"nowrap"}},lt={class:"border border-gray-200 rounded-lg px-3 py-1 relative",style:{"min-height":"0"}},st={style:{position:"absolute",left:"81%",top:"72%","white-space":"nowrap"}},ot={__name:"slides.md__slidev_2",setup(a){const{$clicksContext:u,$clicks:d,$frontmatter:h}=E();return u.setup(),(x,l)=>{const c=K,i=G,f=O("click");return s(),B(z,T(N(n(S)(n(h),1))),{default:m(()=>[t("div",Q,[g(" LEFT 30% — event log (data): two slices, row-aligned with the two DFGs they feed "),l[4]||(l[4]=t("div",{style:{display:"grid","grid-template-rows":"1fr 1fr",gap:"14px","min-height":"0",position:"relative"}},[t("div",{class:"s2log-ell",style:{position:"absolute",left:"48%",top:"50%",transform:"translate(-50%, -50%)"}},"⋮"),t("div",{style:{display:"flex","flex-direction":"column","justify-content":"center","min-height":"0"}},[t("div",{class:"s2log-title"},"Event log (data)"),t("table",{class:"s2log"},[t("colgroup",null,[t("col",{style:{width:"30%"}}),t("col",{style:{width:"36%"}}),t("col",{style:{width:"34%"}})]),t("thead",null,[t("tr",null,[t("th",null,"Case"),t("th",null,"Activity"),t("th",null,"Timestamp")])]),t("tbody",null,[t("tr",null,[t("td",null,"App 6528"),t("td",null,"Create Offer"),t("td",null,"Oct 02 09:12")]),t("tr",null,[t("td",null,"App 6528"),t("td",null,"Created"),t("td",null,"Oct 02 09:13")]),t("tr",null,[t("td",null,"App 6531"),t("td",null,"Sent"),t("td",null,"Oct 02 10:05")])])])]),t("div",{style:{display:"flex","flex-direction":"column","justify-content":"center","min-height":"0"}},[t("table",{class:"s2log"},[t("colgroup",null,[t("col",{style:{width:"30%"}}),t("col",{style:{width:"36%"}}),t("col",{style:{width:"34%"}})]),t("tbody",null,[t("tr",null,[t("td",null,"App 9043"),t("td",null,"Accepted"),t("td",null,"Oct 16 14:20")]),t("tr",null,[t("td",null,"App 9043"),t("td",null,"Cancelled"),t("td",null,"Oct 16 15:02")]),t("tr",null,[t("td",null,"App 9047"),t("td",null,"Sent"),t("td",null,"Oct 16 16:48")])])])])],-1)),g(" RIGHT 70% — two stacked weekly DFGs, each fed by a slice of the log "),t("div",Z,[l[2]||(l[2]=t("div",{class:"s2conn"},"→",-1)),t("div",tt,[y(c,{frame:0,title:"early week's DFG","hero-edge":"accepted__end",revealed:n(d)>0},null,8,["revealed"]),b((s(),o("div",et,[y(i,{dir:"up"},{default:m(()=>[...l[0]||(l[0]=[r("465",-1)])]),_:1})])),[[f,1]])]),l[3]||(l[3]=t("div",{class:"s2conn"},"→",-1)),t("div",lt,[y(c,{frame:2,title:"later week's DFG","hero-edge":"accepted__end",revealed:n(d)>0},null,8,["revealed"]),b((s(),o("div",st,[y(i,{dir:"up"},{default:m(()=>[...l[1]||(l[1]=[r("306 (−34%)",-1)])]),_:1})])),[[f,1]])])])]),l[5]||(l[5]=t("div",{class:"mt-6",style:{"max-width":"1180px","margin-left":"auto","margin-right":"auto"}},[t("p",{style:{"font-size":"20px",color:"#334155","line-height":"1.5",margin:"0 0 12px","white-space":"nowrap"}},[r(" A "),t("strong",{style:{color:"var(--brand)"}},"Directly-Follows Graph (DFG)"),r(" is one kind of "),t("strong",{style:{color:"var(--brand)"}},"process model"),r(". ")]),t("p",{style:{"font-size":"20px",color:"#334155","line-height":"1.5",margin:"0"}},[t("strong",{style:{color:"var(--brand)"}},"Process discovery"),r(" → one static snapshot · "),t("strong",{style:{color:"var(--brand)"}},"Process Model Forecasting (PMF)"),r(" predicts the next. ")])],-1))]),_:1},16)}}},yt=F(ot,[["__scopeId","data-v-d1bc988a"]]);export{yt as default}; +import{_ as G}from"./Callout-D44NXjfg.js";import{o as s,e as o,t as v,j as g,F as _,aj as w,g as t,T as n,z as k,aL as O,b as B,w as m,d as y,af as b,ad as r,v as T,x as N}from"./modules/vue-CZamTkmS.js";import{u as E,f as S}from"./slidev/context-Ch1IIjuh.js";import{d as p,e as P,a as j}from"./dfgGeometry-Bu62KhA-.js";import{_ as F}from"./index-CIas0rwA.js";import{_ as z}from"./assertion-evidence-B8cDdxTN.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-bIvqdETk.js";const L={class:"dfg-snapshot"},R={key:0,class:"snapshot-title"},M={viewBox:"0 0 248 44",width:"100%",height:"100%",preserveAspectRatio:"xMidYMid meet"},V=["x1","y1","x2","y2","stroke"],H=["d","fill"],I=["x","y"],U=["x","y"],W=["cx","cy"],X=["x","y"],D=1.6,A=24,C=9,Y="var(--accent)",q="var(--brand)",$="#475569",J={__name:"DfgSnapshot",props:{frame:{type:Number,default:0},title:{type:String,default:""},heroEdge:{type:String,default:p.hero},revealed:{type:Boolean,default:!0}},setup(a){E();const u={start:{x:12,y:27},create:{x:46,y:27},created:{x:80,y:27},sent:{x:114,y:27},returned:{x:148,y:27},accepted:{x:182,y:27},cancelled:{x:188,y:9},end:{x:232,y:27}},d=p.nodes.map(i=>({...i,x:u[i.id].x,y:u[i.id].y})),h=a,x=P(d,p.edges,12.5,12.5,{accepted__end:5,cancelled__end:5},{start__create:6}),l=k(()=>Object.fromEntries(p.edges.map(i=>[i.id,j(x[i.id],D)]))),c=k(()=>h.revealed?Y:q);return(i,f)=>(s(),o("div",L,[a.title?(s(),o("div",R,v(a.title),1)):g("v-if",!0),(s(),o("svg",M,[(s(!0),o(_,null,w(n(p).edges,e=>(s(),o("g",{key:e.id},[t("line",{x1:l.value[e.id].shaft[0],y1:l.value[e.id].shaft[1],x2:l.value[e.id].shaft[2],y2:l.value[e.id].shaft[3],"stroke-linecap":"butt","stroke-width":D,stroke:e.id===a.heroEdge?c.value:$},null,8,V),t("path",{d:l.value[e.id].headPath,fill:e.id===a.heroEdge?c.value:$},null,8,H)]))),128)),(s(!0),o(_,null,w(n(d),e=>(s(),o("g",{key:e.id},[e.kind==="activity"?(s(),o(_,{key:0},[t("rect",{x:e.x-A/2,y:e.y-C/2,width:A,height:C,rx:"2",fill:"#ffffff",stroke:"#cbd5e1","stroke-width":"0.6"},null,8,I),t("text",{x:e.x,y:e.y+1.5,"text-anchor":"middle",style:{"font-size":"4.2px"},fill:"#0f172a"},v(e.label),9,U)],64)):e.kind==="start"?(s(),o("circle",{key:1,cx:e.x,cy:e.y,r:"4.5",fill:"#0f172a"},null,8,W)):(s(),o("rect",{key:2,x:e.x-4,y:e.y-4,width:"8",height:"8",rx:"1",fill:"#0f172a"},null,8,X))]))),128))]))]))}},K=F(J,[["__scopeId","data-v-47d8e66c"]]),Q={class:"grid items-stretch mt-4",style:{"grid-template-columns":"30% 70%",gap:"20px",height:"380px"}},Z={style:{display:"grid","grid-template-columns":"44px 1fr","grid-template-rows":"1fr 1fr",gap:"14px","min-height":"0"}},tt={class:"border border-gray-200 rounded-lg px-3 py-1 relative",style:{"min-height":"0"}},et={style:{position:"absolute",left:"81%",top:"72%","white-space":"nowrap"}},lt={class:"border border-gray-200 rounded-lg px-3 py-1 relative",style:{"min-height":"0"}},st={style:{position:"absolute",left:"81%",top:"72%","white-space":"nowrap"}},ot={__name:"slides.md__slidev_2",setup(a){const{$clicksContext:u,$clicks:d,$frontmatter:h}=E();return u.setup(),(x,l)=>{const c=K,i=G,f=O("click");return s(),B(z,T(N(n(S)(n(h),1))),{default:m(()=>[t("div",Q,[g(" LEFT 30% — event log (data): two slices, row-aligned with the two DFGs they feed "),l[4]||(l[4]=t("div",{style:{display:"grid","grid-template-rows":"1fr 1fr",gap:"14px","min-height":"0",position:"relative"}},[t("div",{class:"s2log-ell",style:{position:"absolute",left:"48%",top:"50%",transform:"translate(-50%, -50%)"}},"⋮"),t("div",{style:{display:"flex","flex-direction":"column","justify-content":"center","min-height":"0"}},[t("div",{class:"s2log-title"},"Event log (data)"),t("table",{class:"s2log"},[t("colgroup",null,[t("col",{style:{width:"30%"}}),t("col",{style:{width:"36%"}}),t("col",{style:{width:"34%"}})]),t("thead",null,[t("tr",null,[t("th",null,"Case"),t("th",null,"Activity"),t("th",null,"Timestamp")])]),t("tbody",null,[t("tr",null,[t("td",null,"App 6528"),t("td",null,"Create Offer"),t("td",null,"Oct 02 09:12")]),t("tr",null,[t("td",null,"App 6528"),t("td",null,"Created"),t("td",null,"Oct 02 09:13")]),t("tr",null,[t("td",null,"App 6531"),t("td",null,"Sent"),t("td",null,"Oct 02 10:05")])])])]),t("div",{style:{display:"flex","flex-direction":"column","justify-content":"center","min-height":"0"}},[t("table",{class:"s2log"},[t("colgroup",null,[t("col",{style:{width:"30%"}}),t("col",{style:{width:"36%"}}),t("col",{style:{width:"34%"}})]),t("tbody",null,[t("tr",null,[t("td",null,"App 9043"),t("td",null,"Accepted"),t("td",null,"Oct 16 14:20")]),t("tr",null,[t("td",null,"App 9043"),t("td",null,"Cancelled"),t("td",null,"Oct 16 15:02")]),t("tr",null,[t("td",null,"App 9047"),t("td",null,"Sent"),t("td",null,"Oct 16 16:48")])])])])],-1)),g(" RIGHT 70% — two stacked weekly DFGs, each fed by a slice of the log "),t("div",Z,[l[2]||(l[2]=t("div",{class:"s2conn"},"→",-1)),t("div",tt,[y(c,{frame:0,title:"early week's DFG","hero-edge":"accepted__end",revealed:n(d)>0},null,8,["revealed"]),b((s(),o("div",et,[y(i,{dir:"up"},{default:m(()=>[...l[0]||(l[0]=[r("465",-1)])]),_:1})])),[[f,1]])]),l[3]||(l[3]=t("div",{class:"s2conn"},"→",-1)),t("div",lt,[y(c,{frame:2,title:"later week's DFG","hero-edge":"accepted__end",revealed:n(d)>0},null,8,["revealed"]),b((s(),o("div",st,[y(i,{dir:"up"},{default:m(()=>[...l[1]||(l[1]=[r("306 (−34%)",-1)])]),_:1})])),[[f,1]])])])]),l[5]||(l[5]=t("div",{class:"mt-6",style:{"max-width":"1180px","margin-left":"auto","margin-right":"auto"}},[t("p",{style:{"font-size":"20px",color:"#334155","line-height":"1.5",margin:"0 0 12px","white-space":"nowrap"}},[r(" A "),t("strong",{style:{color:"var(--brand)"}},"Directly-Follows Graph (DFG)"),r(" is one kind of "),t("strong",{style:{color:"var(--brand)"}},"process model"),r(". ")]),t("p",{style:{"font-size":"20px",color:"#334155","line-height":"1.5",margin:"0"}},[t("strong",{style:{color:"var(--brand)"}},"Process discovery"),r(" → one static snapshot · "),t("strong",{style:{color:"var(--brand)"}},"Process Model Forecasting (PMF)"),r(" predicts the next. ")])],-1))]),_:1},16)}}},yt=F(ot,[["__scopeId","data-v-d1bc988a"]]);export{yt as default}; diff --git a/assets/md-DTwv1tMs.js b/assets/md-dZq5p6Bn.js similarity index 91% rename from assets/md-DTwv1tMs.js rename to assets/md-dZq5p6Bn.js index f1774a47b85c7c611f00f865d8198fd487a437b9..43abcc1ea1631260cdcd73cc00b69f3b94f265e7 100644 --- a/assets/md-DTwv1tMs.js +++ b/assets/md-dZq5p6Bn.js @@ -1 +1 @@ -import{_ as u}from"./Callout-D9ibgtrC.js";import{aL as f,o as r,b as g,w as n,g as s,j as t,ad as e,af as i,e as d,d as c,v as _,x as k,T as p}from"./modules/vue-CZamTkmS.js";import{_ as w}from"./assertion-evidence-BNrEFU8E.js";import{u as x,f as b}from"./slidev/context-z1Z7Rpcn.js";import{_ as L}from"./index-D8MtK2Qe.js";import"./PageNo-FcNtCKNX.js";import"./modules/shiki-COQlGosf.js";const T={class:"s8-evidence mt-4"},M={class:"s8-link s8-link--data"},C={class:"s8-link s8-link--task"},y={__name:"slides.md__slidev_8",setup(z){const{$clicksContext:m,$frontmatter:v}=x();return m.setup(),(B,a)=>{const l=u,o=f("click");return r(),g(w,_(k(p(b)(p(v),7))),{default:n(()=>[s("div",T,[a[6]||(a[6]=s("div",{class:"grid grid-cols-2 items-stretch",style:{gap:"186px"}},[t(" LEFT — LLM: foundation model for language (neutral gray) "),s("div",{class:"s8-card"},[s("div",{class:"s8-name"},"Large Language Model (LLM)"),s("div",{class:"s8-ex"},[s("span",{class:"s8-ex-q"},[e("I am a math "),s("span",{class:"s8-blank"},"?")]),s("span",{class:"s8-ex-arrow"},"→"),s("span",{class:"s8-ex-a"},"teacher")]),s("div",{class:"s8-rows"},[s("div",{class:"s8-row"},[s("span",{class:"s8-rk"},"training data"),s("span",{class:"s8-rv"},"web-scale text")]),s("div",{class:"s8-row"},[s("span",{class:"s8-rk"},"tasks"),s("span",{class:"s8-rv"},"language")])])]),t(" RIGHT — TSFM: foundation model for time series, what we use (brand-navy emphasis) "),s("div",{class:"s8-card s8-card--tsfm"},[s("div",{class:"s8-badge"},"what we use"),s("div",{class:"s8-name s8-name--brand"},"Time Series Foundation Model (TSFM)"),s("div",{class:"s8-ex"},[s("span",{class:"s8-ex-q"},[e("…12, 9, 14, 11, "),s("span",{class:"s8-blank"},"?")]),s("span",{class:"s8-ex-arrow"},"→"),s("span",{class:"s8-ex-a s8-ex-a--brand"},"13")]),s("div",{class:"s8-rows"},[s("div",{class:"s8-row"},[s("span",{class:"s8-rk"},"training data"),s("span",{class:"s8-rv s8-rv--brand"},"millions of diverse series")]),s("div",{class:"s8-row"},[s("span",{class:"s8-rk"},"tasks"),s("span",{class:"s8-rv s8-rv--brand"},"forecasting")])])])],-1)),t(" centered linking callouts (double arrows) bridging the two shared rows; reveal on click "),i((r(),d("div",M,[a[1]||(a[1]=s("span",{class:"s8-larr"},"←",-1)),c(l,null,{default:n(()=>[...a[0]||(a[0]=[e("pretrained at scale",-1)])]),_:1}),a[2]||(a[2]=s("span",{class:"s8-rarr"},"→",-1))])),[[o,1]]),i((r(),d("div",C,[a[4]||(a[4]=s("span",{class:"s8-larr"},"←",-1)),c(l,null,{default:n(()=>[...a[3]||(a[3]=[e("generalizable",-1)])]),_:1}),a[5]||(a[5]=s("span",{class:"s8-rarr"},"→",-1))])),[[o,1]])]),a[7]||(a[7]=s("div",{class:"s8-defs"},[s("div",{class:"s8-def"},[s("strong",null,"zero-shot"),e(": frozen parameters, run as-is")]),s("div",{class:"s8-def"},[s("strong",null,"fine-tuning"),e(": tweak the parameters on your own data")])],-1))]),_:1},16)}}},q=L(y,[["__scopeId","data-v-309f9dc2"]]);export{q as default}; +import{_ as u}from"./Callout-D44NXjfg.js";import{aL as f,o as r,b as g,w as n,g as s,j as t,ad as e,af as i,e as d,d as c,v as _,x as k,T as p}from"./modules/vue-CZamTkmS.js";import{_ as w}from"./assertion-evidence-B8cDdxTN.js";import{u as x,f as b}from"./slidev/context-Ch1IIjuh.js";import{_ as L}from"./index-CIas0rwA.js";import"./PageNo-bIvqdETk.js";import"./modules/shiki-COQlGosf.js";const T={class:"s8-evidence mt-4"},M={class:"s8-link s8-link--data"},C={class:"s8-link s8-link--task"},y={__name:"slides.md__slidev_8",setup(z){const{$clicksContext:m,$frontmatter:v}=x();return m.setup(),(B,a)=>{const l=u,o=f("click");return r(),g(w,_(k(p(b)(p(v),7))),{default:n(()=>[s("div",T,[a[6]||(a[6]=s("div",{class:"grid grid-cols-2 items-stretch",style:{gap:"186px"}},[t(" LEFT — LLM: foundation model for language (neutral gray) "),s("div",{class:"s8-card"},[s("div",{class:"s8-name"},"Large Language Model (LLM)"),s("div",{class:"s8-ex"},[s("span",{class:"s8-ex-q"},[e("I am a math "),s("span",{class:"s8-blank"},"?")]),s("span",{class:"s8-ex-arrow"},"→"),s("span",{class:"s8-ex-a"},"teacher")]),s("div",{class:"s8-rows"},[s("div",{class:"s8-row"},[s("span",{class:"s8-rk"},"training data"),s("span",{class:"s8-rv"},"web-scale text")]),s("div",{class:"s8-row"},[s("span",{class:"s8-rk"},"tasks"),s("span",{class:"s8-rv"},"language")])])]),t(" RIGHT — TSFM: foundation model for time series, what we use (brand-navy emphasis) "),s("div",{class:"s8-card s8-card--tsfm"},[s("div",{class:"s8-badge"},"what we use"),s("div",{class:"s8-name s8-name--brand"},"Time Series Foundation Model (TSFM)"),s("div",{class:"s8-ex"},[s("span",{class:"s8-ex-q"},[e("…12, 9, 14, 11, "),s("span",{class:"s8-blank"},"?")]),s("span",{class:"s8-ex-arrow"},"→"),s("span",{class:"s8-ex-a s8-ex-a--brand"},"13")]),s("div",{class:"s8-rows"},[s("div",{class:"s8-row"},[s("span",{class:"s8-rk"},"training data"),s("span",{class:"s8-rv s8-rv--brand"},"millions of diverse series")]),s("div",{class:"s8-row"},[s("span",{class:"s8-rk"},"tasks"),s("span",{class:"s8-rv s8-rv--brand"},"forecasting")])])])],-1)),t(" centered linking callouts (double arrows) bridging the two shared rows; reveal on click "),i((r(),d("div",M,[a[1]||(a[1]=s("span",{class:"s8-larr"},"←",-1)),c(l,null,{default:n(()=>[...a[0]||(a[0]=[e("pretrained at scale",-1)])]),_:1}),a[2]||(a[2]=s("span",{class:"s8-rarr"},"→",-1))])),[[o,1]]),i((r(),d("div",C,[a[4]||(a[4]=s("span",{class:"s8-larr"},"←",-1)),c(l,null,{default:n(()=>[...a[3]||(a[3]=[e("generalizable",-1)])]),_:1}),a[5]||(a[5]=s("span",{class:"s8-rarr"},"→",-1))])),[[o,1]])]),a[7]||(a[7]=s("div",{class:"s8-defs"},[s("div",{class:"s8-def"},[s("strong",null,"zero-shot"),e(": frozen parameters, run as-is")]),s("div",{class:"s8-def"},[s("strong",null,"fine-tuning"),e(": tweak the parameters on your own data")])],-1))]),_:1},16)}}},q=L(y,[["__scopeId","data-v-309f9dc2"]]);export{q as default}; diff --git a/assets/md-CmeCqFHV.js b/assets/md-lOx-aq1b.js similarity index 69% rename from assets/md-CmeCqFHV.js rename to assets/md-lOx-aq1b.js index 0c7db0a5b6634c410d5b3f48192e1cf599169ef0..955fb98294092c28ba8872168132531f9ac397d2 100644 --- a/assets/md-CmeCqFHV.js +++ b/assets/md-lOx-aq1b.js @@ -1 +1 @@ -import{_ as n}from"./Callout-D9ibgtrC.js";import{o as i,b as m,w as e,g as o,d as p,ad as u,v as c,x as _,T as s}from"./modules/vue-CZamTkmS.js";import{_ as f}from"./assertion-evidence-BNrEFU8E.js";import{u as d,f as g}from"./slidev/context-z1Z7Rpcn.js";import"./index-D8MtK2Qe.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-FcNtCKNX.js";const x="/figures/rmse-full.png",b={class:"flex justify-center mt-3"},F={__name:"slides.md__slidev_23",setup(v){const{$clicksContext:r,$frontmatter:a}=d();return r.setup(),(T,t)=>{const l=n;return i(),m(f,c(_(s(g)(s(a),22))),{default:e(()=>[t[1]||(t[1]=o("img",{src:x,class:"block mx-auto w-full max-h-[430px] object-contain rounded-lg",alt:"Full RMSE table across all four event logs (paper Table 5) — amber = best per log, gray = baseline rows; latest zero-shot TSFMs are best or competitive on every log"},null,-1)),o("div",b,[p(l,null,{default:e(()=>[...t[0]||(t[0]=[u("Latest zero-shot TSFMs best or competitive on all four logs",-1)])]),_:1})])]),_:1},16)}}};export{F as default}; +import{_ as n}from"./Callout-D44NXjfg.js";import{o as i,b as m,w as e,g as o,d as p,ad as u,v as c,x as _,T as s}from"./modules/vue-CZamTkmS.js";import{_ as f}from"./assertion-evidence-B8cDdxTN.js";import{u as d,f as g}from"./slidev/context-Ch1IIjuh.js";import"./index-CIas0rwA.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-bIvqdETk.js";const x="/figures/rmse-full.png",b={class:"flex justify-center mt-3"},F={__name:"slides.md__slidev_23",setup(v){const{$clicksContext:r,$frontmatter:a}=d();return r.setup(),(T,t)=>{const l=n;return i(),m(f,c(_(s(g)(s(a),22))),{default:e(()=>[t[1]||(t[1]=o("img",{src:x,class:"block mx-auto w-full max-h-[430px] object-contain rounded-lg",alt:"Full RMSE table across all four event logs (paper Table 5) — amber = best per log, gray = baseline rows; latest zero-shot TSFMs are best or competitive on every log"},null,-1)),o("div",b,[p(l,null,{default:e(()=>[...t[0]||(t[0]=[u("Latest zero-shot TSFMs best or competitive on all four logs",-1)])]),_:1})])]),_:1},16)}}};export{F as default}; diff --git a/assets/md-jcv7dFDq.js b/assets/md-mAYixMWd.js similarity index 89% rename from assets/md-jcv7dFDq.js rename to assets/md-mAYixMWd.js index b2fd798fae922b84dc43c183dce0c7ececd47938..35577726c1a877f8cc22c5d044c22ba44d040b88 100644 --- a/assets/md-jcv7dFDq.js +++ b/assets/md-mAYixMWd.js @@ -1 +1 @@ -import{_ as i}from"./Callout-D9ibgtrC.js";import{aL as u,o as l,b as p,w as a,g as s,af as _,e as m,d as h,ad as o,v as x,x as f,T as c}from"./modules/vue-CZamTkmS.js";import{_ as g}from"./assertion-evidence-BNrEFU8E.js";import{u as v,f as w}from"./slidev/context-z1Z7Rpcn.js";import{_ as y}from"./index-D8MtK2Qe.js";import"./PageNo-FcNtCKNX.js";import"./modules/shiki-COQlGosf.js";const b={class:"s7-wrap mt-6"},k={class:"s7-punch flex justify-center mt-8"},B={__name:"slides.md__slidev_7",setup(C){const{$clicksContext:e,$frontmatter:n}=v();return e.setup(),(D,t)=>{const r=i,d=u("click");return l(),p(g,x(f(c(w)(c(n),6))),{default:a(()=>[s("div",b,[t[1]||(t[1]=s("table",{class:"s7-stats"},[s("colgroup",null,[s("col",{style:{width:"22%"}}),s("col",{style:{width:"11%"}}),s("col",{style:{width:"11%"}}),s("col",{style:{width:"18.67%"}}),s("col",{style:{width:"18.67%"}}),s("col",{style:{width:"18.67%"}})]),s("thead",null,[s("tr",{class:"s7-grouprow"},[s("th",{colspan:"3",class:"s7-nogroup"}),s("th",{colspan:"3",class:"s7-cxgroup"},"Complexity measurements")]),s("tr",null,[s("th",null,"Event log"),s("th",{class:"hot"},"Days"),s("th",null,"DFs"),s("th",{class:"cx"},"Transition"),s("th",{class:"cx"},"Shifting"),s("th",{class:"cx"},"Non-Gaussianity")])]),s("tbody",null,[s("tr",null,[s("td",null,"BPI2017"),s("td",{class:"hot"},"319"),s("td",null,"21"),s("td",{class:"cx"},".06"),s("td",{class:"cx"},".27"),s("td",{class:"cx"},".33")]),s("tr",null,[s("td",null,"BPI2019_1"),s("td",{class:"hot"},"307"),s("td",{class:"b"},"149"),s("td",{class:"cx"},".15"),s("td",{class:"cx"},".36"),s("td",{class:"cx"},".47")]),s("tr",null,[s("td",null,"Sepsis"),s("td",{class:"hot"},"459"),s("td",{class:"b"},"135"),s("td",{class:"cx"},".23"),s("td",{class:"cx"},".28"),s("td",{class:"cx"},".59")]),s("tr",null,[s("td",null,"Hospital Billing"),s("td",{class:"hot"},"726"),s("td",null,"73"),s("td",{class:"cx"},".17"),s("td",{class:"cx"},".48"),s("td",{class:"cx"},".46")])]),s("tfoot",null,[s("tr",{class:"s7-footrow"},[s("td",{colspan:"3",class:"s7-foot-blank"}),s("td",{colspan:"3",class:"s7-foot-note"},"higher than 21 public time-series datasets (Li et al. 2025)")])])],-1)),_((l(),m("div",k,[h(r,null,{default:a(()=>[...t[0]||(t[0]=[o("Complex signal + little data → ",-1),s("strong",null,"trained-from-scratch",-1),o(" ML/DL ",-1),s("strong",null,"overfit",-1)])]),_:1})])),[[d]])])]),_:1},16)}}},$=y(B,[["__scopeId","data-v-4b7f4996"]]);export{$ as default}; +import{_ as i}from"./Callout-D44NXjfg.js";import{aL as u,o as l,b as p,w as a,g as s,af as _,e as m,d as h,ad as o,v as x,x as f,T as c}from"./modules/vue-CZamTkmS.js";import{_ as g}from"./assertion-evidence-B8cDdxTN.js";import{u as v,f as w}from"./slidev/context-Ch1IIjuh.js";import{_ as y}from"./index-CIas0rwA.js";import"./PageNo-bIvqdETk.js";import"./modules/shiki-COQlGosf.js";const b={class:"s7-wrap mt-6"},k={class:"s7-punch flex justify-center mt-8"},B={__name:"slides.md__slidev_7",setup(C){const{$clicksContext:e,$frontmatter:n}=v();return e.setup(),(D,t)=>{const r=i,d=u("click");return l(),p(g,x(f(c(w)(c(n),6))),{default:a(()=>[s("div",b,[t[1]||(t[1]=s("table",{class:"s7-stats"},[s("colgroup",null,[s("col",{style:{width:"22%"}}),s("col",{style:{width:"11%"}}),s("col",{style:{width:"11%"}}),s("col",{style:{width:"18.67%"}}),s("col",{style:{width:"18.67%"}}),s("col",{style:{width:"18.67%"}})]),s("thead",null,[s("tr",{class:"s7-grouprow"},[s("th",{colspan:"3",class:"s7-nogroup"}),s("th",{colspan:"3",class:"s7-cxgroup"},"Complexity measurements")]),s("tr",null,[s("th",null,"Event log"),s("th",{class:"hot"},"Days"),s("th",null,"DFs"),s("th",{class:"cx"},"Transition"),s("th",{class:"cx"},"Shifting"),s("th",{class:"cx"},"Non-Gaussianity")])]),s("tbody",null,[s("tr",null,[s("td",null,"BPI2017"),s("td",{class:"hot"},"319"),s("td",null,"21"),s("td",{class:"cx"},".06"),s("td",{class:"cx"},".27"),s("td",{class:"cx"},".33")]),s("tr",null,[s("td",null,"BPI2019_1"),s("td",{class:"hot"},"307"),s("td",{class:"b"},"149"),s("td",{class:"cx"},".15"),s("td",{class:"cx"},".36"),s("td",{class:"cx"},".47")]),s("tr",null,[s("td",null,"Sepsis"),s("td",{class:"hot"},"459"),s("td",{class:"b"},"135"),s("td",{class:"cx"},".23"),s("td",{class:"cx"},".28"),s("td",{class:"cx"},".59")]),s("tr",null,[s("td",null,"Hospital Billing"),s("td",{class:"hot"},"726"),s("td",null,"73"),s("td",{class:"cx"},".17"),s("td",{class:"cx"},".48"),s("td",{class:"cx"},".46")])]),s("tfoot",null,[s("tr",{class:"s7-footrow"},[s("td",{colspan:"3",class:"s7-foot-blank"}),s("td",{colspan:"3",class:"s7-foot-note"},"higher than 21 public time-series datasets (Li et al. 2025)")])])],-1)),_((l(),m("div",k,[h(r,null,{default:a(()=>[...t[0]||(t[0]=[o("Complex signal + little data → ",-1),s("strong",null,"trained-from-scratch",-1),o(" ML/DL ",-1),s("strong",null,"overfit",-1)])]),_:1})])),[[d]])])]),_:1},16)}}},$=y(B,[["__scopeId","data-v-4b7f4996"]]);export{$ as default}; diff --git a/assets/md-CuTJ0ECW.js b/assets/md-sNK_Cw7C.js similarity index 69% rename from assets/md-CuTJ0ECW.js rename to assets/md-sNK_Cw7C.js index 15cc1d8a7dd5a26e0b0decb24cf2e1b32f41f513..3f09e9f12b58e15513c70f8bd0944b8378beda45 100644 --- a/assets/md-CuTJ0ECW.js +++ b/assets/md-sNK_Cw7C.js @@ -1 +1 @@ -import{_ as n}from"./Callout-D9ibgtrC.js";import{o as i,b as m,w as t,g as o,d as p,ad as u,v as c,x as _,T as s}from"./modules/vue-CZamTkmS.js";import{_ as f}from"./assertion-evidence-BNrEFU8E.js";import{u as d,f as g}from"./slidev/context-z1Z7Rpcn.js";import"./index-D8MtK2Qe.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-FcNtCKNX.js";const x="/figures/mae-full.png",v={class:"flex justify-center mt-3"},V={__name:"slides.md__slidev_22",setup(b){const{$clicksContext:r,$frontmatter:a}=d();return r.setup(),(y,e)=>{const l=n;return i(),m(f,c(_(s(g)(s(a),21))),{default:t(()=>[e[1]||(e[1]=o("img",{src:x,class:"block mx-auto w-full max-h-[430px] object-contain rounded-lg",alt:"Full MAE table across all four event logs (paper Table 4) — amber = best per log, gray = baseline rows; the latest zero-shot TSFM per family is best or competitive on every log"},null,-1)),o("div",v,[p(l,null,{default:t(()=>[...e[0]||(e[0]=[u("Best or competitive on every log — all 14 variants",-1)])]),_:1})])]),_:1},16)}}};export{V as default}; +import{_ as n}from"./Callout-D44NXjfg.js";import{o as i,b as m,w as t,g as o,d as p,ad as u,v as c,x as _,T as s}from"./modules/vue-CZamTkmS.js";import{_ as f}from"./assertion-evidence-B8cDdxTN.js";import{u as d,f as g}from"./slidev/context-Ch1IIjuh.js";import"./index-CIas0rwA.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-bIvqdETk.js";const x="/figures/mae-full.png",v={class:"flex justify-center mt-3"},V={__name:"slides.md__slidev_22",setup(b){const{$clicksContext:r,$frontmatter:a}=d();return r.setup(),(y,e)=>{const l=n;return i(),m(f,c(_(s(g)(s(a),21))),{default:t(()=>[e[1]||(e[1]=o("img",{src:x,class:"block mx-auto w-full max-h-[430px] object-contain rounded-lg",alt:"Full MAE table across all four event logs (paper Table 4) — amber = best per log, gray = baseline rows; the latest zero-shot TSFM per family is best or competitive on every log"},null,-1)),o("div",v,[p(l,null,{default:t(()=>[...e[0]||(e[0]=[u("Best or competitive on every log — all 14 variants",-1)])]),_:1})])]),_:1},16)}}};export{V as default}; diff --git a/assets/md-jiyB8QwP.js b/assets/md-v0HCTDOQ.js similarity index 93% rename from assets/md-jiyB8QwP.js rename to assets/md-v0HCTDOQ.js index 1fe6da167b8987c1a905b5364b595940d7f3143a..8285b66469ff69616586957695e35e79772599f0 100644 --- a/assets/md-jiyB8QwP.js +++ b/assets/md-v0HCTDOQ.js @@ -1,2 +1,2 @@ -import{f as T,L as $,K as w,o as v,e as L,i as R,z as n,r as b,aE as B,aL as D,b as x,w as m,j as k,g as e,af as h,v as M,x as N,T as P}from"./modules/vue-CZamTkmS.js";import{a as H,ak as V,_ as Y}from"./index-D8MtK2Qe.js";import{u as C,f as E}from"./slidev/context-z1Z7Rpcn.js";import{_ as F}from"./two-col-evidence-C1aPThn8.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-FcNtCKNX.js";const Q=["poster","controls"],U=T({__name:"SlidevVideo",props:{autoplay:{type:[Boolean,String]},autoreset:{},poster:{},printPoster:{},timestamp:{},printTimestamp:{},controls:{type:Boolean}},setup(f){const s=f,i=n(()=>s.printPoster??s.poster),d=n(()=>s.printTimestamp??s.timestamp??0),{$slidev:o,$renderContext:p,$route:l}=C(),{isPrintMode:u}=H(),c=n(()=>u.value||!["slide","presenter"].includes(p.value)),r=b(),g=b(!1);$(()=>{if(c.value)return;const a=+(s.timestamp??0);r.value.currentTime=a;const t=n(()=>!!l&&l.no===o?.nav.currentSlideNo),y=n(()=>!!r.value&&(V.get(r.value)?.isShown?.value??!0)),_=B(t,y);w(_,()=>{_.value?(s.autoplay===!0||s.autoplay==="once"&&!g.value)&&r.value.play():(r.value.pause(),(s.autoreset==="click"||s.autoreset==="slide"&&!t.value)&&(r.value.currentTime=a))},{immediate:!0})});function S(a){const t=a.target;c.value&&(!i.value||s.printTimestamp)&&(t.currentTime=d.value==="last"?t.duration:+d.value)}return(a,t)=>(v(),L("video",{ref_key:"video",ref:r,poster:c.value?i.value:s.poster,controls:!c.value&&s.controls,onPlay:t[0]||(t[0]=y=>g.value=!0),onLoadedmetadata:S},[R(a.$slots,"default")],40,Q))}}),z="/figures/demo-screencast-poster.png",A="/figures/demo-screencast.mp4",X="/figures/demo-qr.png",j={class:"demo-vstack"},q={src:z,class:"demo-vlayer",alt:"Demo app · click to play the ~29s live walkthrough"},G={__name:"slides.md__slidev_19",setup(f){const{$clicksContext:s,$frontmatter:i}=C();return s.setup(),(d,o)=>{const p=U,l=D("click");return v(),x(F,M(N(P(E)(P(i),18))),{left:m(u=>[k(` Live deck: poster frame → ONE click swaps in the screencast, which plays once (no loop). +import{f as T,L as $,K as w,o as v,e as L,i as R,z as n,r as b,aE as B,aL as D,b as x,w as m,j as k,g as e,af as h,v as M,x as N,T as P}from"./modules/vue-CZamTkmS.js";import{a as H,ak as V,_ as Y}from"./index-CIas0rwA.js";import{u as C,f as E}from"./slidev/context-Ch1IIjuh.js";import{_ as F}from"./two-col-evidence-BJy_vMOO.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-bIvqdETk.js";const Q=["poster","controls"],U=T({__name:"SlidevVideo",props:{autoplay:{type:[Boolean,String]},autoreset:{},poster:{},printPoster:{},timestamp:{},printTimestamp:{},controls:{type:Boolean}},setup(f){const s=f,i=n(()=>s.printPoster??s.poster),d=n(()=>s.printTimestamp??s.timestamp??0),{$slidev:o,$renderContext:p,$route:l}=C(),{isPrintMode:u}=H(),c=n(()=>u.value||!["slide","presenter"].includes(p.value)),r=b(),g=b(!1);$(()=>{if(c.value)return;const a=+(s.timestamp??0);r.value.currentTime=a;const t=n(()=>!!l&&l.no===o?.nav.currentSlideNo),y=n(()=>!!r.value&&(V.get(r.value)?.isShown?.value??!0)),_=B(t,y);w(_,()=>{_.value?(s.autoplay===!0||s.autoplay==="once"&&!g.value)&&r.value.play():(r.value.pause(),(s.autoreset==="click"||s.autoreset==="slide"&&!t.value)&&(r.value.currentTime=a))},{immediate:!0})});function S(a){const t=a.target;c.value&&(!i.value||s.printTimestamp)&&(t.currentTime=d.value==="last"?t.duration:+d.value)}return(a,t)=>(v(),L("video",{ref_key:"video",ref:r,poster:c.value?i.value:s.poster,controls:!c.value&&s.controls,onPlay:t[0]||(t[0]=y=>g.value=!0),onLoadedmetadata:S},[R(a.$slots,"default")],40,Q))}}),z="/figures/demo-screencast-poster.png",A="/figures/demo-screencast.mp4",X="/figures/demo-qr.png",j={class:"demo-vstack"},q={src:z,class:"demo-vlayer",alt:"Demo app · click to play the ~29s live walkthrough"},G={__name:"slides.md__slidev_19",setup(f){const{$clicksContext:s,$frontmatter:i}=C();return s.setup(),(d,o)=>{const p=U,l=D("click");return v(),x(F,M(N(P(E)(P(i),18))),{left:m(u=>[k(` Live deck: poster frame → ONE click swaps in the screencast, which plays once (no loop). PDF/PPTX export fallback (e.g. the 5-shot carousel) to be designed later. `),e("div",j,[h(e("img",q,null,512),[[l,1,void 0,{hide:!0}]]),h((v(),x(p,{autoplay:"once",class:"demo-vlayer demo-vlayer--over",poster:"/figures/demo-screencast-poster.png","print-poster":"/figures/demo-screencast-poster.png"},{default:m(()=>[...o[0]||(o[0]=[e("source",{src:A,type:"video/mp4"},null,-1)])]),_:1})),[[l,1]])])]),right:m(u=>[k(" live demo = QR block (QR + readable URL in one): top of column, the single amber emphasis "),o[1]||(o[1]=e("div",{class:"border-2 rounded-lg flex items-center gap-4 px-4 py-3",style:{"border-color":"var(--accent)",background:"var(--surface-alt)"}},[e("img",{src:X,class:"w-[120px] h-[120px]",alt:"QR to the live demo on Hugging Face Spaces"}),e("div",null,[e("div",{class:"font-semibold",style:{color:"var(--brand)"}},"Live demo · scan or visit"),e("div",{class:"dense--xs"},"huggingface.co/spaces/YongboYu/pmf-tsfm-demo"),e("div",{class:"dense--xs",style:{color:"var(--neutral)"}},"Chronos-2 on HF ZeroGPU")])],-1)),o[2]||(o[2]=e("div",{class:"space-y-3 mt-4"},[e("div",{class:"border rounded-lg px-4 py-2",style:{"border-color":"var(--hairline)"}},[e("div",{class:"font-semibold",style:{color:"var(--brand)"}},"Code"),e("div",{class:"dense--xs"},"github.com/YongboYu/pmf-tsfm"),e("div",{class:"dense--xs",style:{color:"var(--neutral)"}},"MCP server · Docker image (experimental, in repo)")])],-1)),o[3]||(o[3]=e("div",{class:"flex gap-2 mt-4 dense--xs",style:{color:"var(--neutral)"}},[e("span",{class:"border rounded px-2 py-1",style:{"border-color":"var(--hairline)"}},"laptop · MPS"),e("span",{class:"border rounded px-2 py-1",style:{"border-color":"var(--hairline)"}},"Linux · CUDA"),e("span",{class:"border rounded px-2 py-1",style:{"border-color":"var(--hairline)"}},"HPC · H100 / Slurm")],-1)),o[4]||(o[4]=e("div",{class:"mt-3 caption"},"yongbo.yu@kuleuven.be · arXiv:2512.07624",-1))]),_:1},16)}}},ee=Y(G,[["__scopeId","data-v-fdef2d25"]]);export{ee as default}; diff --git a/assets/md-idRyEHFL.js b/assets/md-wsTnYcR5.js similarity index 97% rename from assets/md-idRyEHFL.js rename to assets/md-wsTnYcR5.js index a45adcf671bca4f875cb500911eccc23cbb02747..d743166737bc626dfef6cfd74339bd44ff3ec7e6 100644 --- a/assets/md-idRyEHFL.js +++ b/assets/md-wsTnYcR5.js @@ -1 +1 @@ -import{o,e as r,g as t,t as B,k as A,j as l,F as v,aj as g,z as b,T as e,b as C,ad as k,n as M,w as G,d as N,v as P,x as R}from"./modules/vue-CZamTkmS.js";import{u as Y,f as T}from"./slidev/context-z1Z7Rpcn.js";import{s as E,e as W,d,a as O}from"./dfgGeometry-Bu62KhA-.js";import{_ as H}from"./index-D8MtK2Qe.js";import{_ as V}from"./assertion-evidence-BNrEFU8E.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-FcNtCKNX.js";const X=["data-arc"],I=["viewBox"],q=["x1","y1","x2","y2"],K=["x1","y1","x2","y2"],U=["stroke","points"],J=["cx","cy","fill"],Q=["stroke","points"],Z=["cx","cy","fill"],tt=7,et={__name:"StackSpark",props:{arc:{type:Object,required:!0},frames:{type:Array,required:!0},showForecast:{type:Boolean,default:!1},accent:{type:String,default:"#dd8a2e"},brand:{type:String,default:"#00407a"}},setup(n){Y();const p=n,c={W:178,H:52,padL:6,padR:8,padT:9,padB:8},m=b(()=>p.frames.flatMap(u=>u.daily[p.arc.id])),w=b(()=>E(m.value,c)),y=b(()=>{let u=0;for(const _ of p.frames){if(_.kind==="forecast")break;u+=tt}return u}),h=b(()=>{const{X:u,Y:_}=w.value,s=m.value,f=[],i=[];s.forEach((x,$)=>{const F=`${u($)},${_(x)}`;$x.pt).join(" "),fcLine:[...a,...i.map(x=>x.pt)].join(" "),obsDots:f,fcDots:i,splitX:u(y.value),top:c.padT,bottom:c.H-c.padB}});return(u,_)=>(o(),r("div",{class:"stack-spark","data-arc":n.arc.id},[t("div",{class:"arc-label",style:A({color:n.arc.hero?n.brand:"#486581"})},B(n.arc.label),5),(o(),r("svg",{viewBox:`0 0 ${c.W} ${c.H}`,width:"100%",height:"100%",preserveAspectRatio:"none"},[l(" baseline "),t("line",{x1:c.padL,y1:h.value.bottom,x2:c.W-c.padR,y2:h.value.bottom,stroke:"#dde5ee","stroke-width":"0.8"},null,8,q),l(' "today" divider where the 7-day forecast begins '),n.showForecast?(o(),r("line",{key:0,x1:h.value.splitX,y1:h.value.top,x2:h.value.splitX,y2:h.value.bottom,stroke:"#93a4b8","stroke-width":"0.6","stroke-dasharray":"2 2",opacity:"0.8"},null,8,K)):l("v-if",!0),l(" observed history (always) "),t("polyline",{"data-testid":"stack-obs",fill:"none",stroke:n.brand,"stroke-width":"1.7","stroke-linejoin":"round","stroke-linecap":"round",points:h.value.obsLine},null,8,U),(o(!0),r(v,null,g(h.value.obsDots,(s,f)=>(o(),r("circle",{key:"o"+f,cx:s.cx,cy:s.cy,r:"0.8",fill:n.brand},null,8,J))),128)),l(" 7-day forecast tail (revealed on click) "),n.showForecast?(o(),r(v,{key:1},[t("polyline",{"data-testid":"stack-fc",fill:"none",stroke:n.accent,"stroke-width":"2","stroke-dasharray":"3 2","stroke-linejoin":"round","stroke-linecap":"round",points:h.value.fcLine},null,8,Q),(o(!0),r(v,null,g(h.value.fcDots,(s,f)=>(o(),r("circle",{key:"f"+f,cx:s.cx,cy:s.cy,r:"1.2",fill:n.accent},null,8,Z))),128))],64)):l("v-if",!0)],8,I))],8,X))}},st=H(et,[["__scopeId","data-v-48834b08"]]),at={class:"dfg-evo","data-testid":"dfg-pipeline"},ot={class:"grid-a"},rt={class:"wcol"},it={class:"slot slot-log"},lt=["viewBox"],nt=["x","y"],ct=["x","y","width","height"],dt=["x","y","width","height"],ht=["x","y"],ft={key:0},ut=["x","y","width","height"],yt=["x","y"],pt={class:"wcol wcol-stack"},xt={class:"slot stack-body"},vt={class:"cap"},wt={key:0,class:"cap-fc"},_t={class:"warrow warrow-fc"},kt={class:"wcol"},mt={class:"slot slot-dfg"},gt={key:0,viewBox:"0 0 100 104",width:"100%",height:"100%"},bt=["data-edge","x1","y1","x2","y2"],$t=["d"],St=["x","y"],Dt=["x","y"],Ft=["x","y"],Bt=["cx","cy"],Yt=["x","y"],j=1.6,zt={__name:"DfgPipeline",props:{frame:{type:Number,default:0}},setup(n){Y();const p=n,c=b(()=>p.frame>=1),m=b(()=>p.frame>=2),w=W(d.nodes,d.edges,4.4,5.8,{[d.hero]:14}),y=Object.fromEntries(d.edges.map(f=>[f.id,O(w[f.id],j)])),h=[(w[d.hero][0]+w[d.hero][2])/2,(w[d.hero][1]+w[d.hero][3])/2],u=d.frames[d.frames.length-1],_=`≈${u.weights[d.hero]} (truth ${u.truth[d.hero]})`,s=(()=>{const z=[];for(let S=0;S<6;S++)for(let D=0;D<8;D++)z.push({x:6+D*12.2,y:26+S*14.5});const L=(S,D)=>({x:6+S*12.2-1.5,w:D*12.2-1.7+2*1.5});return{cells:z,bw:10.5,bh:10.5,x0:6,headerY:10,bandY:23,bandH:6*14.5-4+6,past:L(0,4),future:L(5,2),labelY:26+6*14.5+17,W:6+8*12.2+4,H:26+6*14.5+26}})();return(f,i)=>(o(),r("div",at,[t("div",ot,[l(" ① event log "),t("div",rt,[t("div",it,[(o(),r("svg",{viewBox:`0 0 ${e(s).W} ${e(s).H}`,width:"100%",height:"100%",preserveAspectRatio:"xMidYMid meet"},[t("text",{x:e(s).x0,y:e(s).headerY,style:{"font-size":"12px"},fill:"var(--neutral)","font-weight":"700"},"event log",8,nt),(o(!0),r(v,null,g(e(s).cells,(a,x)=>(o(),r("rect",{key:x,x:a.x,y:a.y,width:e(s).bw,height:e(s).bh,rx:"1.6",fill:"var(--surface-alt)",stroke:"var(--hairline)","stroke-width":"0.5"},null,8,ct))),128)),l(" past window (navy) — always "),t("g",null,[t("rect",{x:e(s).past.x,y:e(s).bandY,width:e(s).past.w,height:e(s).bandH,rx:"2",fill:"var(--brand)","fill-opacity":"0.10",stroke:"var(--brand)","stroke-width":"1.2","stroke-dasharray":"3 2"},null,8,dt),t("text",{x:e(s).past.x+e(s).past.w/2,y:e(s).labelY,"text-anchor":"middle",style:{"font-size":"12px"},"font-weight":"700",fill:"var(--brand)"},"past",8,ht)]),l(" future window (amber) — appears with the forecast "),c.value?(o(),r("g",ft,[t("rect",{x:e(s).future.x,y:e(s).bandY,width:e(s).future.w,height:e(s).bandH,rx:"2",fill:"var(--accent)","fill-opacity":"0.12",stroke:"var(--accent)","stroke-width":"1.2","stroke-dasharray":"3 2"},null,8,ut),t("text",{x:e(s).future.x+e(s).future.w/2,y:e(s).labelY,"text-anchor":"middle",style:{"font-size":"12px"},"font-weight":"700",fill:"var(--accent)"},"future",8,yt)])):l("v-if",!0)],8,lt))]),i[0]||(i[0]=t("div",{class:"cap"},"① Event log → daily DF counts",-1))]),i[5]||(i[5]=t("div",{class:"warrow"},"→",-1)),l(" ② STACK of DF series (the point: forecast ALL arcs) "),t("div",pt,[i[2]||(i[2]=t("div",{class:"stack-head"},"one daily series per DF edge",-1)),t("div",xt,[(o(!0),r(v,null,g(e(d).stack,a=>(o(),C(st,{key:a.id,arc:a,frames:e(d).frames,"show-forecast":c.value},null,8,["arc","frames","show-forecast"]))),128))]),t("div",vt,[i[1]||(i[1]=k(" ② Each DF edge → a daily series ",-1)),c.value?(o(),r("span",wt," · ③ forecast 7 days")):l("v-if",!0)])]),l(" ③ forecast arrow (appears with the amber tail) "),t("div",_t,[c.value?(o(),r(v,{key:0},[i[3]||(i[3]=t("span",{class:"fc-tag"},[k("forecast"),t("br"),k("7 days")],-1)),i[4]||(i[4]=t("span",{class:"fc-arrow"},"→",-1))],64)):l("v-if",!0)]),l(" ④ reassembled / forecasted DFG (appears last) "),t("div",kt,[t("div",mt,[m.value?(o(),r("svg",gt,[(o(!0),r(v,null,g(e(d).edges,a=>(o(),r("g",{key:a.id},[t("line",{"data-edge":a.id,x1:e(y)[a.id].shaft[0],y1:e(y)[a.id].shaft[1],x2:e(y)[a.id].shaft[2],y2:e(y)[a.id].shaft[3],fill:"none","stroke-linecap":"butt","stroke-width":j,stroke:"var(--accent)","stroke-dasharray":"2.4 1.8"},null,8,bt),t("path",{d:e(y)[a.id].headPath,fill:"var(--accent)"},null,8,$t)]))),128)),l(" forecast count as an on-arc number (replaces edge-thickness encoding) "),t("text",{x:h[0]+4,y:h[1]-2.5,style:{"font-size":"4.4px"},"font-weight":"700",fill:"var(--accent)"},B(_),8,St),(o(!0),r(v,null,g(e(d).nodes,a=>(o(),r("g",{key:a.id},[a.kind==="activity"?(o(),r(v,{key:0},[t("rect",{x:a.x-16,y:a.y-4.6,width:"32",height:"9.2",rx:"2.4",fill:"#fff",stroke:"var(--hairline)","stroke-width":"0.6"},null,8,Dt),t("text",{x:a.x,y:a.y+1.6,"text-anchor":"middle",style:{"font-size":"4.4px"},fill:"var(--ink)"},B(a.label),9,Ft)],64)):a.kind==="start"?(o(),r("circle",{key:1,cx:a.x,cy:a.y,r:"3.8",fill:"var(--ink)"},null,8,Bt)):(o(),r("rect",{key:2,x:a.x-3.4,y:a.y-3.4,width:"6.8",height:"6.8",rx:"0.9",fill:"var(--ink)"},null,8,Yt))]))),128))])):l("v-if",!0)]),t("div",{class:M(["cap",{"cap-ghost":!m.value}])},"④ Σ daily → forecasted DFG",2)])])]))}},Lt=H(zt,[["__scopeId","data-v-9d2ffa6b"]]);function jt(n,p){return Math.min(Math.max(n||0,0),p-1)}const Ct={class:"mt-3",style:{height:"392px"}},Xt={__name:"slides.md__slidev_4",setup(n){const{$clicksContext:p,$clicks:c,$frontmatter:m}=Y();return p.setup(),(w,y)=>{const h=Lt;return o(),C(V,P(R(e(T)(e(m),3))),{default:G(()=>[y[0]||(y[0]=t("div",{style:{"font-size":"21px",color:"var(--ink)","margin-top":"8px"}},[k(" directly-follows (DF) relation = one A→B transition "),t("span",{style:{margin:"0 16px",color:"var(--neutral-soft)"}},"·"),k(" aggregated "),t("strong",null,"daily"),k(),t("span",{style:{margin:"0 16px",color:"var(--neutral-soft)"}},"·"),k(" forecast "),t("strong",null,"7 days"),k(" ahead ")],-1)),t("div",Ct,[N(h,{frame:e(jt)(e(c),3)},null,8,["frame"])])]),_:1},16)}}};export{Xt as default}; +import{o,e as r,g as t,t as B,k as A,j as l,F as v,aj as g,z as b,T as e,b as C,ad as k,n as M,w as G,d as N,v as P,x as R}from"./modules/vue-CZamTkmS.js";import{u as Y,f as T}from"./slidev/context-Ch1IIjuh.js";import{s as E,e as W,d,a as O}from"./dfgGeometry-Bu62KhA-.js";import{_ as H}from"./index-CIas0rwA.js";import{_ as V}from"./assertion-evidence-B8cDdxTN.js";import"./modules/shiki-COQlGosf.js";import"./PageNo-bIvqdETk.js";const X=["data-arc"],I=["viewBox"],q=["x1","y1","x2","y2"],K=["x1","y1","x2","y2"],U=["stroke","points"],J=["cx","cy","fill"],Q=["stroke","points"],Z=["cx","cy","fill"],tt=7,et={__name:"StackSpark",props:{arc:{type:Object,required:!0},frames:{type:Array,required:!0},showForecast:{type:Boolean,default:!1},accent:{type:String,default:"#dd8a2e"},brand:{type:String,default:"#00407a"}},setup(n){Y();const p=n,c={W:178,H:52,padL:6,padR:8,padT:9,padB:8},m=b(()=>p.frames.flatMap(u=>u.daily[p.arc.id])),w=b(()=>E(m.value,c)),y=b(()=>{let u=0;for(const _ of p.frames){if(_.kind==="forecast")break;u+=tt}return u}),h=b(()=>{const{X:u,Y:_}=w.value,s=m.value,f=[],i=[];s.forEach((x,$)=>{const F=`${u($)},${_(x)}`;$x.pt).join(" "),fcLine:[...a,...i.map(x=>x.pt)].join(" "),obsDots:f,fcDots:i,splitX:u(y.value),top:c.padT,bottom:c.H-c.padB}});return(u,_)=>(o(),r("div",{class:"stack-spark","data-arc":n.arc.id},[t("div",{class:"arc-label",style:A({color:n.arc.hero?n.brand:"#486581"})},B(n.arc.label),5),(o(),r("svg",{viewBox:`0 0 ${c.W} ${c.H}`,width:"100%",height:"100%",preserveAspectRatio:"none"},[l(" baseline "),t("line",{x1:c.padL,y1:h.value.bottom,x2:c.W-c.padR,y2:h.value.bottom,stroke:"#dde5ee","stroke-width":"0.8"},null,8,q),l(' "today" divider where the 7-day forecast begins '),n.showForecast?(o(),r("line",{key:0,x1:h.value.splitX,y1:h.value.top,x2:h.value.splitX,y2:h.value.bottom,stroke:"#93a4b8","stroke-width":"0.6","stroke-dasharray":"2 2",opacity:"0.8"},null,8,K)):l("v-if",!0),l(" observed history (always) "),t("polyline",{"data-testid":"stack-obs",fill:"none",stroke:n.brand,"stroke-width":"1.7","stroke-linejoin":"round","stroke-linecap":"round",points:h.value.obsLine},null,8,U),(o(!0),r(v,null,g(h.value.obsDots,(s,f)=>(o(),r("circle",{key:"o"+f,cx:s.cx,cy:s.cy,r:"0.8",fill:n.brand},null,8,J))),128)),l(" 7-day forecast tail (revealed on click) "),n.showForecast?(o(),r(v,{key:1},[t("polyline",{"data-testid":"stack-fc",fill:"none",stroke:n.accent,"stroke-width":"2","stroke-dasharray":"3 2","stroke-linejoin":"round","stroke-linecap":"round",points:h.value.fcLine},null,8,Q),(o(!0),r(v,null,g(h.value.fcDots,(s,f)=>(o(),r("circle",{key:"f"+f,cx:s.cx,cy:s.cy,r:"1.2",fill:n.accent},null,8,Z))),128))],64)):l("v-if",!0)],8,I))],8,X))}},st=H(et,[["__scopeId","data-v-48834b08"]]),at={class:"dfg-evo","data-testid":"dfg-pipeline"},ot={class:"grid-a"},rt={class:"wcol"},it={class:"slot slot-log"},lt=["viewBox"],nt=["x","y"],ct=["x","y","width","height"],dt=["x","y","width","height"],ht=["x","y"],ft={key:0},ut=["x","y","width","height"],yt=["x","y"],pt={class:"wcol wcol-stack"},xt={class:"slot stack-body"},vt={class:"cap"},wt={key:0,class:"cap-fc"},_t={class:"warrow warrow-fc"},kt={class:"wcol"},mt={class:"slot slot-dfg"},gt={key:0,viewBox:"0 0 100 104",width:"100%",height:"100%"},bt=["data-edge","x1","y1","x2","y2"],$t=["d"],St=["x","y"],Dt=["x","y"],Ft=["x","y"],Bt=["cx","cy"],Yt=["x","y"],j=1.6,zt={__name:"DfgPipeline",props:{frame:{type:Number,default:0}},setup(n){Y();const p=n,c=b(()=>p.frame>=1),m=b(()=>p.frame>=2),w=W(d.nodes,d.edges,4.4,5.8,{[d.hero]:14}),y=Object.fromEntries(d.edges.map(f=>[f.id,O(w[f.id],j)])),h=[(w[d.hero][0]+w[d.hero][2])/2,(w[d.hero][1]+w[d.hero][3])/2],u=d.frames[d.frames.length-1],_=`≈${u.weights[d.hero]} (truth ${u.truth[d.hero]})`,s=(()=>{const z=[];for(let S=0;S<6;S++)for(let D=0;D<8;D++)z.push({x:6+D*12.2,y:26+S*14.5});const L=(S,D)=>({x:6+S*12.2-1.5,w:D*12.2-1.7+2*1.5});return{cells:z,bw:10.5,bh:10.5,x0:6,headerY:10,bandY:23,bandH:6*14.5-4+6,past:L(0,4),future:L(5,2),labelY:26+6*14.5+17,W:6+8*12.2+4,H:26+6*14.5+26}})();return(f,i)=>(o(),r("div",at,[t("div",ot,[l(" ① event log "),t("div",rt,[t("div",it,[(o(),r("svg",{viewBox:`0 0 ${e(s).W} ${e(s).H}`,width:"100%",height:"100%",preserveAspectRatio:"xMidYMid meet"},[t("text",{x:e(s).x0,y:e(s).headerY,style:{"font-size":"12px"},fill:"var(--neutral)","font-weight":"700"},"event log",8,nt),(o(!0),r(v,null,g(e(s).cells,(a,x)=>(o(),r("rect",{key:x,x:a.x,y:a.y,width:e(s).bw,height:e(s).bh,rx:"1.6",fill:"var(--surface-alt)",stroke:"var(--hairline)","stroke-width":"0.5"},null,8,ct))),128)),l(" past window (navy) — always "),t("g",null,[t("rect",{x:e(s).past.x,y:e(s).bandY,width:e(s).past.w,height:e(s).bandH,rx:"2",fill:"var(--brand)","fill-opacity":"0.10",stroke:"var(--brand)","stroke-width":"1.2","stroke-dasharray":"3 2"},null,8,dt),t("text",{x:e(s).past.x+e(s).past.w/2,y:e(s).labelY,"text-anchor":"middle",style:{"font-size":"12px"},"font-weight":"700",fill:"var(--brand)"},"past",8,ht)]),l(" future window (amber) — appears with the forecast "),c.value?(o(),r("g",ft,[t("rect",{x:e(s).future.x,y:e(s).bandY,width:e(s).future.w,height:e(s).bandH,rx:"2",fill:"var(--accent)","fill-opacity":"0.12",stroke:"var(--accent)","stroke-width":"1.2","stroke-dasharray":"3 2"},null,8,ut),t("text",{x:e(s).future.x+e(s).future.w/2,y:e(s).labelY,"text-anchor":"middle",style:{"font-size":"12px"},"font-weight":"700",fill:"var(--accent)"},"future",8,yt)])):l("v-if",!0)],8,lt))]),i[0]||(i[0]=t("div",{class:"cap"},"① Event log → daily DF counts",-1))]),i[5]||(i[5]=t("div",{class:"warrow"},"→",-1)),l(" ② STACK of DF series (the point: forecast ALL arcs) "),t("div",pt,[i[2]||(i[2]=t("div",{class:"stack-head"},"one daily series per DF edge",-1)),t("div",xt,[(o(!0),r(v,null,g(e(d).stack,a=>(o(),C(st,{key:a.id,arc:a,frames:e(d).frames,"show-forecast":c.value},null,8,["arc","frames","show-forecast"]))),128))]),t("div",vt,[i[1]||(i[1]=k(" ② Each DF edge → a daily series ",-1)),c.value?(o(),r("span",wt," · ③ forecast 7 days")):l("v-if",!0)])]),l(" ③ forecast arrow (appears with the amber tail) "),t("div",_t,[c.value?(o(),r(v,{key:0},[i[3]||(i[3]=t("span",{class:"fc-tag"},[k("forecast"),t("br"),k("7 days")],-1)),i[4]||(i[4]=t("span",{class:"fc-arrow"},"→",-1))],64)):l("v-if",!0)]),l(" ④ reassembled / forecasted DFG (appears last) "),t("div",kt,[t("div",mt,[m.value?(o(),r("svg",gt,[(o(!0),r(v,null,g(e(d).edges,a=>(o(),r("g",{key:a.id},[t("line",{"data-edge":a.id,x1:e(y)[a.id].shaft[0],y1:e(y)[a.id].shaft[1],x2:e(y)[a.id].shaft[2],y2:e(y)[a.id].shaft[3],fill:"none","stroke-linecap":"butt","stroke-width":j,stroke:"var(--accent)","stroke-dasharray":"2.4 1.8"},null,8,bt),t("path",{d:e(y)[a.id].headPath,fill:"var(--accent)"},null,8,$t)]))),128)),l(" forecast count as an on-arc number (replaces edge-thickness encoding) "),t("text",{x:h[0]+4,y:h[1]-2.5,style:{"font-size":"4.4px"},"font-weight":"700",fill:"var(--accent)"},B(_),8,St),(o(!0),r(v,null,g(e(d).nodes,a=>(o(),r("g",{key:a.id},[a.kind==="activity"?(o(),r(v,{key:0},[t("rect",{x:a.x-16,y:a.y-4.6,width:"32",height:"9.2",rx:"2.4",fill:"#fff",stroke:"var(--hairline)","stroke-width":"0.6"},null,8,Dt),t("text",{x:a.x,y:a.y+1.6,"text-anchor":"middle",style:{"font-size":"4.4px"},fill:"var(--ink)"},B(a.label),9,Ft)],64)):a.kind==="start"?(o(),r("circle",{key:1,cx:a.x,cy:a.y,r:"3.8",fill:"var(--ink)"},null,8,Bt)):(o(),r("rect",{key:2,x:a.x-3.4,y:a.y-3.4,width:"6.8",height:"6.8",rx:"0.9",fill:"var(--ink)"},null,8,Yt))]))),128))])):l("v-if",!0)]),t("div",{class:M(["cap",{"cap-ghost":!m.value}])},"④ Σ daily → forecasted DFG",2)])])]))}},Lt=H(zt,[["__scopeId","data-v-9d2ffa6b"]]);function jt(n,p){return Math.min(Math.max(n||0,0),p-1)}const Ct={class:"mt-3",style:{height:"392px"}},Xt={__name:"slides.md__slidev_4",setup(n){const{$clicksContext:p,$clicks:c,$frontmatter:m}=Y();return p.setup(),(w,y)=>{const h=Lt;return o(),C(V,P(R(e(T)(e(m),3))),{default:G(()=>[y[0]||(y[0]=t("div",{style:{"font-size":"21px",color:"var(--ink)","margin-top":"8px"}},[k(" directly-follows (DF) relation = one A→B transition "),t("span",{style:{margin:"0 16px",color:"var(--neutral-soft)"}},"·"),k(" aggregated "),t("strong",null,"daily"),k(),t("span",{style:{margin:"0 16px",color:"var(--neutral-soft)"}},"·"),k(" forecast "),t("strong",null,"7 days"),k(" ahead ")],-1)),t("div",Ct,[N(h,{frame:e(jt)(e(c),3)},null,8,["frame"])])]),_:1},16)}}};export{Xt as default}; diff --git a/assets/presenter-C9PexJxI.css b/assets/presenter-BQK0mnUI.css similarity index 61% rename from assets/presenter-C9PexJxI.css rename to assets/presenter-BQK0mnUI.css index b7023723357669ae41c3bc4fde4196a70ff03577..709df27d631b94f7b13da1a291e5c9af868f0f5c 100644 --- a/assets/presenter-C9PexJxI.css +++ b/assets/presenter-BQK0mnUI.css @@ -1 +1 @@ -.slidev-presenter[data-v-45f7809b]{--slidev-controls-foreground: current}.grid-container[data-v-45f7809b]{--slidev-presenter-notes-width: 360px;--slidev-presenter-notes-row-size: 280px;flex:1 1 0%;overflow:hidden;background-color:#9ca3af33;display:grid;gap:1px 1px}.grid-container.layout1[data-v-45f7809b]{grid-template-columns:var(--slidev-presenter-notes-width) minmax(0,1fr);grid-template-rows:minmax(0,2fr) minmax(0,var(--slidev-presenter-notes-row-size)) min-content;grid-template-areas:"main main" "note next" "bottom bottom"}.grid-container.layout2[data-v-45f7809b]{grid-template-columns:var(--slidev-presenter-notes-width) minmax(0,1fr);grid-template-rows:minmax(0,var(--slidev-presenter-notes-row-size)) minmax(0,1fr) min-content;grid-template-areas:"note main" "note next" "bottom bottom"}@media(max-aspect-ratio:3/5){.grid-container.layout1[data-v-45f7809b]{grid-template-columns:1fr;grid-template-rows:2fr 1fr 1fr min-content;grid-template-areas:"main" "note" "next" "bottom"}}@media(min-aspect-ratio:1/1){.grid-container.layout1[data-v-45f7809b]{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) var(--slidev-presenter-notes-width);grid-template-rows:minmax(0,1fr) minmax(0,var(--slidev-presenter-notes-row-size)) min-content;grid-template-areas:"main main next" "main main note" "bottom bottom bottom"}}.grid-container.layout3[data-v-45f7809b]{grid-template-columns:var(--slidev-presenter-notes-width) minmax(0,1fr);grid-template-rows:minmax(0,var(--slidev-presenter-notes-row-size)) minmax(0,1fr) min-content;grid-template-areas:"note next" "main next" "bottom bottom"}.grid-section[data-v-45f7809b]{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark .grid-section[data-v-45f7809b]{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.grid-section.top[data-v-45f7809b]{grid-area:top}.grid-section.main[data-v-45f7809b]{grid-area:main}.grid-section.next[data-v-45f7809b]{grid-area:next}.grid-section.note[data-v-45f7809b]{grid-area:note}.grid-section.bottom[data-v-45f7809b]{grid-area:bottom}.notes-resizer[data-v-45f7809b]{position:absolute;top:0;width:12px;height:100%;cursor:col-resize;z-index:10;touch-action:none}.notes-resizer[data-v-45f7809b]:before{content:"";position:absolute;left:50%;top:0;width:1px;height:100%;background-color:currentColor;opacity:.2;transform:translate(-50%)}.notes-row-resizer[data-v-45f7809b]{position:absolute;left:0;width:100%;height:12px;cursor:row-resize;z-index:10;touch-action:none}.notes-row-resizer[data-v-45f7809b]:before{content:"";position:absolute;left:0;top:50%;width:100%;height:1px;background-color:currentColor;opacity:.2;transform:translateY(-50%)}.notes-vertical-resizer[data-v-45f7809b]{position:absolute;right:var(--slidev-presenter-notes-width);top:0;bottom:var(--slidev-presenter-bottom-height, 0px);width:12px;cursor:col-resize;z-index:10;touch-action:none;transform:translate(50%)}.notes-vertical-resizer[data-v-45f7809b]:before{content:"";position:absolute;left:50%;top:0;width:1px;height:100%;background-color:currentColor;opacity:.2;transform:translate(-50%)}.notes-vertical-resizer-left[data-v-45f7809b]{position:absolute;left:var(--slidev-presenter-notes-width);top:0;bottom:var(--slidev-presenter-bottom-height, 0px);width:12px;cursor:col-resize;z-index:10;touch-action:none;transform:translate(-50%)}.notes-vertical-resizer-left[data-v-45f7809b]:before{content:"";position:absolute;left:50%;top:0;width:1px;height:100%;background-color:currentColor;opacity:.2;transform:translate(-50%)} +.slidev-presenter[data-v-e5b232f6]{--slidev-controls-foreground: current}.grid-container[data-v-e5b232f6]{--slidev-presenter-notes-width: 360px;--slidev-presenter-notes-row-size: 280px;flex:1 1 0%;overflow:hidden;background-color:#9ca3af33;display:grid;gap:1px 1px}.grid-container.layout1[data-v-e5b232f6]{grid-template-columns:var(--slidev-presenter-notes-width) minmax(0,1fr);grid-template-rows:minmax(0,2fr) minmax(0,var(--slidev-presenter-notes-row-size)) min-content;grid-template-areas:"main main" "note next" "bottom bottom"}.grid-container.layout2[data-v-e5b232f6]{grid-template-columns:var(--slidev-presenter-notes-width) minmax(0,1fr);grid-template-rows:minmax(0,var(--slidev-presenter-notes-row-size)) minmax(0,1fr) min-content;grid-template-areas:"note main" "note next" "bottom bottom"}@media(max-aspect-ratio:3/5){.grid-container.layout1[data-v-e5b232f6]{grid-template-columns:1fr;grid-template-rows:2fr 1fr 1fr min-content;grid-template-areas:"main" "note" "next" "bottom"}}@media(min-aspect-ratio:1/1){.grid-container.layout1[data-v-e5b232f6]{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) var(--slidev-presenter-notes-width);grid-template-rows:minmax(0,1fr) minmax(0,var(--slidev-presenter-notes-row-size)) min-content;grid-template-areas:"main main next" "main main note" "bottom bottom bottom"}}.grid-container.layout3[data-v-e5b232f6]{grid-template-columns:var(--slidev-presenter-notes-width) minmax(0,1fr);grid-template-rows:minmax(0,var(--slidev-presenter-notes-row-size)) minmax(0,1fr) min-content;grid-template-areas:"note next" "main next" "bottom bottom"}.grid-section[data-v-e5b232f6]{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark .grid-section[data-v-e5b232f6]{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.grid-section.top[data-v-e5b232f6]{grid-area:top}.grid-section.main[data-v-e5b232f6]{grid-area:main}.grid-section.next[data-v-e5b232f6]{grid-area:next}.grid-section.note[data-v-e5b232f6]{grid-area:note}.grid-section.bottom[data-v-e5b232f6]{grid-area:bottom}.notes-resizer[data-v-e5b232f6]{position:absolute;top:0;width:12px;height:100%;cursor:col-resize;z-index:10;touch-action:none}.notes-resizer[data-v-e5b232f6]:before{content:"";position:absolute;left:50%;top:0;width:1px;height:100%;background-color:currentColor;opacity:.2;transform:translate(-50%)}.notes-row-resizer[data-v-e5b232f6]{position:absolute;left:0;width:100%;height:12px;cursor:row-resize;z-index:10;touch-action:none}.notes-row-resizer[data-v-e5b232f6]:before{content:"";position:absolute;left:0;top:50%;width:100%;height:1px;background-color:currentColor;opacity:.2;transform:translateY(-50%)}.notes-vertical-resizer[data-v-e5b232f6]{position:absolute;right:var(--slidev-presenter-notes-width);top:0;bottom:var(--slidev-presenter-bottom-height, 0px);width:12px;cursor:col-resize;z-index:10;touch-action:none;transform:translate(50%)}.notes-vertical-resizer[data-v-e5b232f6]:before{content:"";position:absolute;left:50%;top:0;width:1px;height:100%;background-color:currentColor;opacity:.2;transform:translate(-50%)}.notes-vertical-resizer-left[data-v-e5b232f6]{position:absolute;left:var(--slidev-presenter-notes-width);top:0;bottom:var(--slidev-presenter-bottom-height, 0px);width:12px;cursor:col-resize;z-index:10;touch-action:none;transform:translate(-50%)}.notes-vertical-resizer-left[data-v-e5b232f6]:before{content:"";position:absolute;left:50%;top:0;width:1px;height:100%;background-color:currentColor;opacity:.2;transform:translate(-50%)} diff --git a/assets/shortcuts-C3iD51Aa.css b/assets/shortcuts-DEelySGM.css similarity index 64% rename from assets/shortcuts-C3iD51Aa.css rename to assets/shortcuts-DEelySGM.css index a7fadb966bfb677c53d8cc2011169394a2134a17..fc6d0bfaeb6f48b691c44811788cfcdb9bbf2078 100644 --- a/assets/shortcuts-C3iD51Aa.css +++ b/assets/shortcuts-DEelySGM.css @@ -1 +1 @@ -.autocomplete-list[data-v-04ae10e7]{margin-top:.25rem;--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity));overflow:auto;max-height:calc(100vh - 100px)}.dark .autocomplete-list[data-v-04ae10e7]{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.autocomplete[data-v-04ae10e7]{cursor:pointer}.slider{appearance:none;height:22px;outline:none;opacity:.7;-webkit-transition:.2s;transition:opacity .2s;overflow:hidden;border-width:1px;border-color:#9ca3af33;border-radius:.25rem;background-color:#9ca3af0d}.slider:hover{opacity:1}.slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:5px;height:22px;background:var(--slidev-theme-primary);cursor:pointer;z-index:10}.slider::-moz-range-thumb{width:5px;height:22px;background:var(--slidev-theme-primary);cursor:pointer;z-index:10}.item[data-v-6daa8a70]{display:flex;cursor:default;gap:.25rem;white-space:nowrap;border-radius:.25rem;padding:.25rem .5rem}.item[data-v-6daa8a70]:hover{--un-bg-opacity:1;background-color:rgb(156 163 175 / var(--un-bg-opacity));--un-bg-opacity:.1}.title[data-v-6daa8a70]{-webkit-user-select:none;user-select:none;padding:.25rem .75rem;text-wrap:nowrap;font-size:.875rem;line-height:1.25rem;font-weight:700;opacity:.75}#slideshow[data-v-4a4ea8e3]{height:100%} +.autocomplete-list[data-v-65edf6ad]{margin-top:.25rem;--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity));overflow:auto;max-height:calc(100vh - 100px)}.dark .autocomplete-list[data-v-65edf6ad]{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.autocomplete[data-v-65edf6ad]{cursor:pointer}.slider{appearance:none;height:22px;outline:none;opacity:.7;-webkit-transition:.2s;transition:opacity .2s;overflow:hidden;border-width:1px;border-color:#9ca3af33;border-radius:.25rem;background-color:#9ca3af0d}.slider:hover{opacity:1}.slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:5px;height:22px;background:var(--slidev-theme-primary);cursor:pointer;z-index:10}.slider::-moz-range-thumb{width:5px;height:22px;background:var(--slidev-theme-primary);cursor:pointer;z-index:10}.item[data-v-4a3b9b0a]{display:flex;cursor:default;gap:.25rem;white-space:nowrap;border-radius:.25rem;padding:.25rem .5rem}.item[data-v-4a3b9b0a]:hover{--un-bg-opacity:1;background-color:rgb(156 163 175 / var(--un-bg-opacity));--un-bg-opacity:.1}.title[data-v-4a3b9b0a]{-webkit-user-select:none;user-select:none;padding:.25rem .75rem;text-wrap:nowrap;font-size:.875rem;line-height:1.25rem;font-weight:700;opacity:.75}#slideshow[data-v-e952cc0e]{height:100%} diff --git a/assets/slidev/404-Dlg9VO0J.js b/assets/slidev/404-BFwhB7Bg.js similarity index 90% rename from assets/slidev/404-Dlg9VO0J.js rename to assets/slidev/404-BFwhB7Bg.js index 3c0fa98984a2201ec5bd7469ea9ccd6ba8f925b3..b9719b4a40e2b1177d3baa267de35a195470fe88 100644 --- a/assets/slidev/404-Dlg9VO0J.js +++ b/assets/slidev/404-BFwhB7Bg.js @@ -1 +1 @@ -import{f,S as m,e as _,g as o,ad as a,t as r,T as x,b as u,w as i,j as c,z as v,a as g,o as n}from"../modules/vue-CZamTkmS.js";import{a as k,_ as h}from"../index-D8MtK2Qe.js";import"../modules/shiki-COQlGosf.js";const N={class:"grid justify-center text-center pt-15% gap-5"},w={class:"text-2xl"},y={class:"op-60"},B={class:"mt-3 flex flex-col gap-2 max-w-xs mx-auto w-full"},C=f({__name:"404",setup(R){const{currentRoute:l}=m(),{total:d}=k(),s=v(()=>{const t=l.value.path.match(/\d+/);if(t){const e=+t[0];if(e>0&&e<=d.value)return e}return null});return(p,t)=>{const e=g("RouterLink");return n(),_("div",N,[o("div",null,[t[2]||(t[2]=o("h1",{class:"text-9xl font-light"}," 404 ",-1)),o("p",w,[t[0]||(t[0]=a(" Page ",-1)),o("code",y,r(x(l).path),1),t[1]||(t[1]=a(" not found ",-1))])]),o("div",B,[s.value!==1?(n(),u(e,{key:0,to:"/",class:"page-link"},{default:i(()=>[...t[3]||(t[3]=[a(" Go Home ",-1)])]),_:1})):c("v-if",!0),s.value?(n(),u(e,{key:1,to:`/${s.value}`,class:"page-link"},{default:i(()=>[a(" Go to Slide "+r(s.value),1)]),_:1},8,["to"])):c("v-if",!0)])])}}}),G=h(C,[["__scopeId","data-v-78622178"]]);export{G as default}; +import{f,S as m,e as _,g as o,ad as a,t as r,T as x,b as u,w as i,j as c,z as v,a as g,o as n}from"../modules/vue-CZamTkmS.js";import{a as k,_ as h}from"../index-CIas0rwA.js";import"../modules/shiki-COQlGosf.js";const N={class:"grid justify-center text-center pt-15% gap-5"},w={class:"text-2xl"},y={class:"op-60"},B={class:"mt-3 flex flex-col gap-2 max-w-xs mx-auto w-full"},C=f({__name:"404",setup(R){const{currentRoute:l}=m(),{total:d}=k(),s=v(()=>{const t=l.value.path.match(/\d+/);if(t){const e=+t[0];if(e>0&&e<=d.value)return e}return null});return(p,t)=>{const e=g("RouterLink");return n(),_("div",N,[o("div",null,[t[2]||(t[2]=o("h1",{class:"text-9xl font-light"}," 404 ",-1)),o("p",w,[t[0]||(t[0]=a(" Page ",-1)),o("code",y,r(x(l).path),1),t[1]||(t[1]=a(" not found ",-1))])]),o("div",B,[s.value!==1?(n(),u(e,{key:0,to:"/",class:"page-link"},{default:i(()=>[...t[3]||(t[3]=[a(" Go Home ",-1)])]),_:1})):c("v-if",!0),s.value?(n(),u(e,{key:1,to:`/${s.value}`,class:"page-link"},{default:i(()=>[a(" Go to Slide "+r(s.value),1)]),_:1},8,["to"])):c("v-if",!0)])])}}}),G=h(C,[["__scopeId","data-v-454f38f1"]]);export{G as default}; diff --git a/assets/slidev/DrawingControls-B8BzR2ZS.js b/assets/slidev/DrawingControls-B8BzR2ZS.js new file mode 100644 index 0000000000000000000000000000000000000000..c0aee88ea7badd3d7bc6956be6ca9455c4b527db --- /dev/null +++ b/assets/slidev/DrawingControls-B8BzR2ZS.js @@ -0,0 +1 @@ +import{_ as o}from"./DrawingControls.vue_vue_type_style_index_0_lang-NbfDtc9_.js";import"../modules/vue-CZamTkmS.js";import"../modules/shiki-COQlGosf.js";import"./SlideWrapper-_oMsn9ML.js";import"../index-CIas0rwA.js";import"./IconButton.vue_vue_type_script_setup_true_lang-DEyEjvqJ.js";import"./shortcuts-B1mBgg0H.js";import"./context-Ch1IIjuh.js";import"../modules/unplugin-icons-ByIekoE6.js";export{o as default}; diff --git a/assets/slidev/DrawingControls-Bg4GTq4a.js b/assets/slidev/DrawingControls-Bg4GTq4a.js deleted file mode 100644 index 55004baadc69ab878aa1d4a746a54b91b09cb0b7..0000000000000000000000000000000000000000 --- a/assets/slidev/DrawingControls-Bg4GTq4a.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./DrawingControls.vue_vue_type_style_index_0_lang-BypqiqJS.js";import"../modules/vue-CZamTkmS.js";import"../modules/shiki-COQlGosf.js";import"./SlideWrapper-Dcg6ZMCe.js";import"../index-D8MtK2Qe.js";import"./IconButton.vue_vue_type_script_setup_true_lang-DEyEjvqJ.js";import"./shortcuts-B6x-gEsD.js";import"./context-z1Z7Rpcn.js";import"../modules/unplugin-icons-ByIekoE6.js";export{o as default}; diff --git a/assets/slidev/DrawingControls.vue_vue_type_style_index_0_lang-BypqiqJS.js b/assets/slidev/DrawingControls.vue_vue_type_style_index_0_lang-NbfDtc9_.js similarity index 97% rename from assets/slidev/DrawingControls.vue_vue_type_style_index_0_lang-BypqiqJS.js rename to assets/slidev/DrawingControls.vue_vue_type_style_index_0_lang-NbfDtc9_.js index ae3db46b2dcfaef5f18ad5d0b0b353b73ebeec4f..1a902ee2d62d114684afd3f873cf924931cd21ae 100644 --- a/assets/slidev/DrawingControls.vue_vue_type_style_index_0_lang-BypqiqJS.js +++ b/assets/slidev/DrawingControls.vue_vue_type_style_index_0_lang-NbfDtc9_.js @@ -1 +1 @@ -import{f as B,W as N,r as M,aM as R,o as c,e as V,k as S,T as e,i as A,b as D,n as a,w as n,d as i,g as s,t as F,af as f,ag as P,F as T,aj as W,am as b,j as z}from"../modules/vue-CZamTkmS.js";import{L as Y}from"../modules/shiki-COQlGosf.js";import{u as _}from"./SlideWrapper-Dcg6ZMCe.js";import{_ as r}from"./IconButton.vue_vue_type_script_setup_true_lang-DEyEjvqJ.js";import{V as $}from"./shortcuts-B6x-gEsD.js";const h=B({__name:"Draggable",props:{storageKey:{},initial:{}},setup(L){const u=L,g=M(null),m=u.initial??{x:0,y:0},y=u.storageKey?N(u.storageKey,m):M(m),{style:C}=R(g,{initialValue:y});return(k,v)=>(c(),V("div",{ref_key:"el",ref:g,class:"fixed",style:S(e(C))},[A(k.$slots,"default")],4))}}),q={class:"flex bg-main p-2"},G={class:"inline-block w-7 text-center"},H={class:"pt-.5"},I={class:"i-carbon:pin-filled transform -rotate-45"},J={class:"i-carbon:pin"},O={class:"i-carbon:error"},Q={class:"i-carbon:close-outline"},nl=B({__name:"DrawingControls",setup(L){const{brush:u,canClear:g,canRedo:m,canUndo:y,clear:C,drauu:k,drawingEnabled:v,drawingMode:o,drawingPinned:d,brushColors:U}=_();function j(){k.undo()}function E(){k.redo()}let x="stylus";function p(w){o.value=w,v.value=!0,w!=="eraseLine"&&(x=w)}function K(w){u.color=w,v.value=!0,o.value=x}return(w,l)=>e(v)||e(d)?(c(),D(h,{key:0,class:a(["flex flex-wrap text-xl p-2 gap-1 rounded-md bg-main shadow transition-opacity duration-200 z-nav border border-main",!e(v)&&e(d)?"opacity-40 hover:opacity-90":""]),"storage-key":"slidev-drawing-pos","initial-x":10,"initial-y":10},{default:n(()=>[i(r,{title:"Draw with stylus",class:a({shallow:e(o)!=="stylus"}),onClick:l[0]||(l[0]=t=>p("stylus"))},{default:n(()=>[...l[13]||(l[13]=[s("div",{class:"i-carbon:pen"},null,-1)])]),_:1},8,["class"]),i(r,{title:"Draw a line",class:a({shallow:e(o)!=="line"}),onClick:l[1]||(l[1]=t=>p("line"))},{default:n(()=>[...l[14]||(l[14]=[s("svg",{width:"1em",height:"1em",class:"-mt-0.5",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},[s("path",{d:"M21.71 3.29a1 1 0 0 0-1.42 0l-18 18a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l18-18a1 1 0 0 0 0-1.42z",fill:"currentColor"})],-1)])]),_:1},8,["class"]),i(r,{title:"Draw an arrow",class:a({shallow:e(o)!=="arrow"}),onClick:l[2]||(l[2]=t=>p("arrow"))},{default:n(()=>[...l[15]||(l[15]=[s("div",{class:"i-carbon:arrow-up-right"},null,-1)])]),_:1},8,["class"]),i(r,{title:"Draw an ellipse",class:a({shallow:e(o)!=="ellipse"}),onClick:l[3]||(l[3]=t=>p("ellipse"))},{default:n(()=>[...l[16]||(l[16]=[s("div",{class:"i-carbon:radio-button"},null,-1)])]),_:1},8,["class"]),i(r,{title:"Draw a rectangle",class:a({shallow:e(o)!=="rectangle"}),onClick:l[4]||(l[4]=t=>p("rectangle"))},{default:n(()=>[...l[17]||(l[17]=[s("div",{class:"i-carbon:checkbox"},null,-1)])]),_:1},8,["class"]),i(r,{title:"Erase",class:a({shallow:e(o)!=="eraseLine"}),onClick:l[5]||(l[5]=t=>p("eraseLine"))},{default:n(()=>[...l[18]||(l[18]=[s("div",{class:"i-carbon:erase"},null,-1)])]),_:1},8,["class"]),i($),i(e(Y),null,{popper:n(()=>[s("div",q,[s("div",G,F(e(u).size),1),s("div",H,[f(s("input",{"onUpdate:modelValue":l[6]||(l[6]=t=>e(u).size=t),type:"range",min:"1",max:"15",onChange:l[7]||(l[7]=t=>o.value=e(x))},null,544),[[P,e(u).size]])])])]),default:n(()=>[i(r,{title:"Adjust stroke width",class:a({shallow:e(o)==="eraseLine"})},{default:n(()=>[...l[19]||(l[19]=[s("svg",{viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},[s("line",{x1:"2",y1:"15",x2:"22",y2:"4",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round"}),s("line",{x1:"2",y1:"24",x2:"28",y2:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"}),s("line",{x1:"7",y1:"31",x2:"29",y2:"19",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round"})],-1)])]),_:1},8,["class"])]),_:1}),(c(!0),V(T,null,W(e(U),t=>(c(),D(r,{key:t,title:"Set brush color",class:a(e(u).color===t&&e(o)!=="eraseLine"?"active":"shallow"),onClick:X=>K(t)},{default:n(()=>[s("div",{class:a(["w-6 h-6 transition-all transform border",e(u).color!==t?"rounded-1/2 scale-85 border-white":"rounded-md border-gray-300/50"]),style:S(e(v)?{background:t}:{borderColor:t})},null,6)]),_:2},1032,["class","onClick"]))),128)),i($),i(r,{title:"Undo",class:a({disabled:!e(y)}),onClick:l[8]||(l[8]=t=>j())},{default:n(()=>[...l[20]||(l[20]=[s("div",{class:"i-carbon:undo"},null,-1)])]),_:1},8,["class"]),i(r,{title:"Redo",class:a({disabled:!e(m)}),onClick:l[9]||(l[9]=t=>E())},{default:n(()=>[...l[21]||(l[21]=[s("div",{class:"i-carbon:redo"},null,-1)])]),_:1},8,["class"]),i(r,{title:"Delete",class:a({disabled:!e(g)}),onClick:l[10]||(l[10]=t=>e(C)())},{default:n(()=>[...l[22]||(l[22]=[s("div",{class:"i-carbon:trash-can"},null,-1)])]),_:1},8,["class"]),i($),i(r,{title:e(d)?"Unpin drawing":"Pin drawing",class:a({shallow:!e(d)}),onClick:l[11]||(l[11]=t=>d.value=!e(d))},{default:n(()=>[f(s("div",I,null,512),[[b,e(d)]]),f(s("div",J,null,512),[[b,!e(d)]])]),_:1},8,["title","class"]),e(v)?(c(),D(r,{key:0,title:e(d)?"Drawing pinned":"Drawing unpinned",class:a({shallow:!e(v)}),onClick:l[12]||(l[12]=t=>v.value=!e(v))},{default:n(()=>[f(s("div",O,null,512),[[b,e(d)]]),f(s("div",Q,null,512),[[b,!e(d)]])]),_:1},8,["title","class"])):z("v-if",!0)]),_:1},8,["class"])):z("v-if",!0)}});export{nl as _}; +import{f as B,W as N,r as M,aM as R,o as c,e as V,k as S,T as e,i as A,b as D,n as a,w as n,d as i,g as s,t as F,af as f,ag as P,F as T,aj as W,am as b,j as z}from"../modules/vue-CZamTkmS.js";import{L as Y}from"../modules/shiki-COQlGosf.js";import{u as _}from"./SlideWrapper-_oMsn9ML.js";import{_ as r}from"./IconButton.vue_vue_type_script_setup_true_lang-DEyEjvqJ.js";import{V as $}from"./shortcuts-B1mBgg0H.js";const h=B({__name:"Draggable",props:{storageKey:{},initial:{}},setup(L){const u=L,g=M(null),m=u.initial??{x:0,y:0},y=u.storageKey?N(u.storageKey,m):M(m),{style:C}=R(g,{initialValue:y});return(k,v)=>(c(),V("div",{ref_key:"el",ref:g,class:"fixed",style:S(e(C))},[A(k.$slots,"default")],4))}}),q={class:"flex bg-main p-2"},G={class:"inline-block w-7 text-center"},H={class:"pt-.5"},I={class:"i-carbon:pin-filled transform -rotate-45"},J={class:"i-carbon:pin"},O={class:"i-carbon:error"},Q={class:"i-carbon:close-outline"},nl=B({__name:"DrawingControls",setup(L){const{brush:u,canClear:g,canRedo:m,canUndo:y,clear:C,drauu:k,drawingEnabled:v,drawingMode:o,drawingPinned:d,brushColors:U}=_();function j(){k.undo()}function E(){k.redo()}let x="stylus";function p(w){o.value=w,v.value=!0,w!=="eraseLine"&&(x=w)}function K(w){u.color=w,v.value=!0,o.value=x}return(w,l)=>e(v)||e(d)?(c(),D(h,{key:0,class:a(["flex flex-wrap text-xl p-2 gap-1 rounded-md bg-main shadow transition-opacity duration-200 z-nav border border-main",!e(v)&&e(d)?"opacity-40 hover:opacity-90":""]),"storage-key":"slidev-drawing-pos","initial-x":10,"initial-y":10},{default:n(()=>[i(r,{title:"Draw with stylus",class:a({shallow:e(o)!=="stylus"}),onClick:l[0]||(l[0]=t=>p("stylus"))},{default:n(()=>[...l[13]||(l[13]=[s("div",{class:"i-carbon:pen"},null,-1)])]),_:1},8,["class"]),i(r,{title:"Draw a line",class:a({shallow:e(o)!=="line"}),onClick:l[1]||(l[1]=t=>p("line"))},{default:n(()=>[...l[14]||(l[14]=[s("svg",{width:"1em",height:"1em",class:"-mt-0.5",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},[s("path",{d:"M21.71 3.29a1 1 0 0 0-1.42 0l-18 18a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l18-18a1 1 0 0 0 0-1.42z",fill:"currentColor"})],-1)])]),_:1},8,["class"]),i(r,{title:"Draw an arrow",class:a({shallow:e(o)!=="arrow"}),onClick:l[2]||(l[2]=t=>p("arrow"))},{default:n(()=>[...l[15]||(l[15]=[s("div",{class:"i-carbon:arrow-up-right"},null,-1)])]),_:1},8,["class"]),i(r,{title:"Draw an ellipse",class:a({shallow:e(o)!=="ellipse"}),onClick:l[3]||(l[3]=t=>p("ellipse"))},{default:n(()=>[...l[16]||(l[16]=[s("div",{class:"i-carbon:radio-button"},null,-1)])]),_:1},8,["class"]),i(r,{title:"Draw a rectangle",class:a({shallow:e(o)!=="rectangle"}),onClick:l[4]||(l[4]=t=>p("rectangle"))},{default:n(()=>[...l[17]||(l[17]=[s("div",{class:"i-carbon:checkbox"},null,-1)])]),_:1},8,["class"]),i(r,{title:"Erase",class:a({shallow:e(o)!=="eraseLine"}),onClick:l[5]||(l[5]=t=>p("eraseLine"))},{default:n(()=>[...l[18]||(l[18]=[s("div",{class:"i-carbon:erase"},null,-1)])]),_:1},8,["class"]),i($),i(e(Y),null,{popper:n(()=>[s("div",q,[s("div",G,F(e(u).size),1),s("div",H,[f(s("input",{"onUpdate:modelValue":l[6]||(l[6]=t=>e(u).size=t),type:"range",min:"1",max:"15",onChange:l[7]||(l[7]=t=>o.value=e(x))},null,544),[[P,e(u).size]])])])]),default:n(()=>[i(r,{title:"Adjust stroke width",class:a({shallow:e(o)==="eraseLine"})},{default:n(()=>[...l[19]||(l[19]=[s("svg",{viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},[s("line",{x1:"2",y1:"15",x2:"22",y2:"4",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round"}),s("line",{x1:"2",y1:"24",x2:"28",y2:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"}),s("line",{x1:"7",y1:"31",x2:"29",y2:"19",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round"})],-1)])]),_:1},8,["class"])]),_:1}),(c(!0),V(T,null,W(e(U),t=>(c(),D(r,{key:t,title:"Set brush color",class:a(e(u).color===t&&e(o)!=="eraseLine"?"active":"shallow"),onClick:X=>K(t)},{default:n(()=>[s("div",{class:a(["w-6 h-6 transition-all transform border",e(u).color!==t?"rounded-1/2 scale-85 border-white":"rounded-md border-gray-300/50"]),style:S(e(v)?{background:t}:{borderColor:t})},null,6)]),_:2},1032,["class","onClick"]))),128)),i($),i(r,{title:"Undo",class:a({disabled:!e(y)}),onClick:l[8]||(l[8]=t=>j())},{default:n(()=>[...l[20]||(l[20]=[s("div",{class:"i-carbon:undo"},null,-1)])]),_:1},8,["class"]),i(r,{title:"Redo",class:a({disabled:!e(m)}),onClick:l[9]||(l[9]=t=>E())},{default:n(()=>[...l[21]||(l[21]=[s("div",{class:"i-carbon:redo"},null,-1)])]),_:1},8,["class"]),i(r,{title:"Delete",class:a({disabled:!e(g)}),onClick:l[10]||(l[10]=t=>e(C)())},{default:n(()=>[...l[22]||(l[22]=[s("div",{class:"i-carbon:trash-can"},null,-1)])]),_:1},8,["class"]),i($),i(r,{title:e(d)?"Unpin drawing":"Pin drawing",class:a({shallow:!e(d)}),onClick:l[11]||(l[11]=t=>d.value=!e(d))},{default:n(()=>[f(s("div",I,null,512),[[b,e(d)]]),f(s("div",J,null,512),[[b,!e(d)]])]),_:1},8,["title","class"]),e(v)?(c(),D(r,{key:0,title:e(d)?"Drawing pinned":"Drawing unpinned",class:a({shallow:!e(v)}),onClick:l[12]||(l[12]=t=>v.value=!e(v))},{default:n(()=>[f(s("div",O,null,512),[[b,e(d)]]),f(s("div",Q,null,512),[[b,!e(d)]])]),_:1},8,["title","class"])):z("v-if",!0)]),_:1},8,["class"])):z("v-if",!0)}});export{nl as _}; diff --git a/assets/slidev/DrawingLayer-UqGfx46V.js b/assets/slidev/DrawingLayer-cl9SU_LS.js similarity index 80% rename from assets/slidev/DrawingLayer-UqGfx46V.js rename to assets/slidev/DrawingLayer-cl9SU_LS.js index 663eb390640c399c263dc71182645b9381d6a2bc..7558b85be024cc34d1b8abb9a5ebe914361f90c4 100644 --- a/assets/slidev/DrawingLayer-UqGfx46V.js +++ b/assets/slidev/DrawingLayer-cl9SU_LS.js @@ -1 +1 @@ -import{f as u,L as l,K as m,G as c,o as i,e as p,n as f,T as t,r as d}from"../modules/vue-CZamTkmS.js";import{u as _}from"./SlideWrapper-Dcg6ZMCe.js";import{u as v}from"./context-z1Z7Rpcn.js";import"../index-D8MtK2Qe.js";import"../modules/shiki-COQlGosf.js";const E=u({__name:"DrawingLayer",setup(g){const{drauu:e,drawingEnabled:o,loadCanvas:s}=_(),r=v().$scale,n=d();return l(()=>{e.mount(n.value,n.value.parentElement),m(r,a=>e.options.coordinateScale=1/a,{immediate:!0}),s()}),c(()=>{e.unmount()}),(a,w)=>(i(),p("svg",{ref_key:"svg",ref:n,class:f(["w-full h-full absolute top-0",{"pointer-events-none":!t(o),"touch-none":t(o)}])},null,2))}});export{E as default}; +import{f as u,L as l,K as m,G as c,o as i,e as p,n as f,T as t,r as d}from"../modules/vue-CZamTkmS.js";import{u as _}from"./SlideWrapper-_oMsn9ML.js";import{u as v}from"./context-Ch1IIjuh.js";import"../index-CIas0rwA.js";import"../modules/shiki-COQlGosf.js";const E=u({__name:"DrawingLayer",setup(g){const{drauu:e,drawingEnabled:o,loadCanvas:s}=_(),r=v().$scale,n=d();return l(()=>{e.mount(n.value,n.value.parentElement),m(r,a=>e.options.coordinateScale=1/a,{immediate:!0}),s()}),c(()=>{e.unmount()}),(a,w)=>(i(),p("svg",{ref_key:"svg",ref:n,class:f(["w-full h-full absolute top-0",{"pointer-events-none":!t(o),"touch-none":t(o)}])},null,2))}});export{E as default}; diff --git a/assets/slidev/NoteDisplay.vue_vue_type_style_index_0_lang-D15LqXLz.js b/assets/slidev/NoteDisplay.vue_vue_type_style_index_0_lang-CA1o434c.js similarity index 78% rename from assets/slidev/NoteDisplay.vue_vue_type_style_index_0_lang-D15LqXLz.js rename to assets/slidev/NoteDisplay.vue_vue_type_style_index_0_lang-CA1o434c.js index 1d6ed7df23679699fbee13337ab0c306ab61d100..2136a02faadc322912c1882673cad2471447ffc7 100644 --- a/assets/slidev/NoteDisplay.vue_vue_type_style_index_0_lang-D15LqXLz.js +++ b/assets/slidev/NoteDisplay.vue_vue_type_style_index_0_lang-CA1o434c.js @@ -1 +1 @@ -import{f as B,e as p,n as f,g as c,T as H,F as $,t as y,aj as T,af as N,ag as z,k as E,z as h,o as m,K as I,L as F,E as P,r as A,p as K}from"../modules/vue-CZamTkmS.js";import{C as D,r as R,v as V,_ as j}from"../index-D8MtK2Qe.js";const q=["title"],U={class:"flex gap-0.2 items-center min-w-16 font-mono mr1"},X={"text-primary":""},G={op50:"","text-sm":""},J={key:1,op50:"","flex-auto":"",pl1:""},O={relative:"","flex-auto":"",h5:"","font-mono":"",flex:"~"},Q=["min","max"],W=B({__name:"ClicksSlider",props:{clicksContext:{},readonly:{type:Boolean},active:{type:Boolean,default:!0}},setup(u){const d=u,t=h(()=>d.clicksContext.total),x=h(()=>R(0,d.clicksContext.clicksStart,t.value)),v=h(()=>t.value-x.value+1),n=h({get(){return d.clicksContext.current>t.value?-1:d.clicksContext.current},set(k){d.clicksContext.current=k}}),C=h(()=>V(x.value,t.value+1));function b(){d.readonly||(n.value<0||n.value>t.value)&&(n.value=0)}return(k,r)=>(m(),p("div",{class:f(["flex gap-1 items-center select-none",v.value&&d.clicksContext.isMounted?"":"op50"]),title:`Clicks in this slide: ${v.value}`},[c("div",U,[r[4]||(r[4]=c("div",{class:"i-carbon:cursor-1 text-sm op50"},null,-1)),n.value>=0&&n.value!==H(D)&&u.active?(m(),p($,{key:0},[r[2]||(r[2]=c("div",{"flex-auto":""},null,-1)),c("span",X,y(n.value),1),r[3]||(r[3]=c("span",{op25:"","text-sm":""},"/",-1)),c("span",G,y(t.value),1)],64)):(m(),p("div",J,y(t.value),1))]),c("div",O,[(m(!0),p($,null,T(C.value,l=>(m(),p("div",{key:l,border:"y main","of-hidden":"",relative:"",class:f([l===0?"rounded-l border-l":"",l===t.value?"rounded-r border-r":""]),style:E({width:v.value>0?`${1/v.value*100}%`:"100%"})},[c("div",{absolute:"","inset-0":"",class:f(l<=n.value&&u.active?"bg-primary op15":"")},null,2),c("div",{class:f([+l==+n.value&&u.active?"text-primary font-bold op100 border-primary":"op30 border-main",l===0?"rounded-l":"",l===t.value?"rounded-r":"border-r-2"]),"w-full":"","h-full":"","text-xs":"",flex:"","items-center":"","justify-center":"","z-1":""},y(l),3)],6))),128)),N(c("input",{"onUpdate:modelValue":r[0]||(r[0]=l=>n.value=l),class:f(["range",u.readonly?"pointer-events-none":""]),type:"range",min:x.value,max:t.value,step:1,absolute:"","inset-0":"","z-label":"",op0:"",style:E({"--thumb-width":`${1/(v.value+1)*100}%`}),onMousedown:b,onFocus:r[1]||(r[1]=l=>l.currentTarget?.blur())},null,46,Q),[[z,n.value]])])],10,q))}}),le=j(W,[["__scopeId","data-v-f7f7509b"]]),Y=["innerHTML"],Z=["textContent"],ee=["textContent"],L="slidev-note-fade",g="slidev-note-click-mark",se=B({__name:"NoteDisplay",props:{class:{},noteHtml:{},note:{},highlight:{type:Boolean,default:!0},placeholder:{},clicksContext:{},autoScroll:{type:Boolean}},emits:["markerDblclick","markerClick"],setup(u,{emit:d}){const t=u,x=d,v=h(()=>t.clicksContext!=null&&t.noteHtml?.includes(g)),n=A(null);function C(){if(!n.value||!v.value)return;const k=Array.from(n.value.querySelectorAll(`.${g}`)),r=new Map,l=new Map;let M=0;for(const a of k){const s=Number(a.dataset.clicks);r.set(a,s);let o=a,e=a.parentElement;for(;e&&o!==n.value;)l.has(e)||l.set(e,[[null,M]]),l.get(e).push([o,s]),o=e,e=e.parentElement;M=s}const S=new Map;for(const[a,s]of l){let o=!1,e=0;for(const i of Array.from(a.childNodes)){let w=!1;for(;i===s[e+1]?.[0];)w=!0,e++;if(w)continue;let _=i;if(i.nodeType===3){if(!i.textContent?.trim())continue;_=document.createElement("span"),_.textContent=i.textContent,a.insertBefore(_,i),i.remove()}o||=e===0,S.set(_,s[e][1])}o||(s[0][1]=-1)}return a=>{const s=t.highlight;for(const[o,e]of l)o.classList.toggle(L,s&&!e.some(([i,w])=>w===a));for(const[o,e]of S)o.classList.toggle(L,s&&e!==a);for(const[o,e]of r)o.classList.remove(L),o.classList.toggle(`${g}-past`,s&&ea+1),o.ondblclick=i=>{s&&(x("markerDblclick",i,e),!i.defaultPrevented&&(t.clicksContext.current=e,i.stopPropagation(),i.stopImmediatePropagation()))},o.onclick=i=>{s&&x("markerClick",i,e)},s&&t.autoScroll&&e===a&&o.scrollIntoView({block:"center",behavior:"smooth"})}}const b=A();return I(()=>[t.noteHtml,t.highlight],()=>{K(()=>{b.value=C()})},{immediate:!0}),F(()=>{C()}),P(()=>{const k=t.clicksContext?.current??D;b.value?.(k)}),(k,r)=>u.noteHtml?(m(),p("div",{key:0,ref_key:"noteDisplay",ref:n,class:f(["prose dark:prose-invert overflow-auto outline-none slidev-note",[t.class,v.value?"slidev-note-with-clicks":""]]),innerHTML:u.noteHtml},null,10,Y)):u.note?(m(),p("div",{key:1,class:f(["prose dark:prose-invert overflow-auto outline-none slidev-note",t.class])},[c("p",{textContent:y(u.note)},null,8,Z)],2)):(m(),p("div",{key:2,class:f(["prose dark:prose-invert overflow-auto outline-none opacity-50 italic select-none slidev-note",t.class])},[c("p",{textContent:y(t.placeholder||"No notes.")},null,8,ee)],2))}});export{le as C,se as _}; +import{f as B,e as p,n as m,g as c,T as H,F as $,t as y,aj as T,af as N,ag as z,k as E,z as h,o as f,K as I,L as F,E as P,r as A,p as K}from"../modules/vue-CZamTkmS.js";import{C as D,r as R,v as V,_ as j}from"../index-CIas0rwA.js";const q=["title"],U={class:"flex gap-0.2 items-center min-w-16 font-mono mr1"},X={"text-primary":""},G={op50:"","text-sm":""},J={key:1,op50:"","flex-auto":"",pl1:""},O={relative:"","flex-auto":"",h5:"","font-mono":"",flex:"~"},Q=["min","max"],W=B({__name:"ClicksSlider",props:{clicksContext:{},readonly:{type:Boolean},active:{type:Boolean,default:!0}},setup(u){const d=u,t=h(()=>d.clicksContext.total),x=h(()=>R(0,d.clicksContext.clicksStart,t.value)),v=h(()=>t.value-x.value+1),n=h({get(){return d.clicksContext.current>t.value?-1:d.clicksContext.current},set(k){d.clicksContext.current=k}}),C=h(()=>V(x.value,t.value+1));function b(){d.readonly||(n.value<0||n.value>t.value)&&(n.value=0)}return(k,r)=>(f(),p("div",{class:m(["flex gap-1 items-center select-none",v.value&&d.clicksContext.isMounted?"":"op50"]),title:`Clicks in this slide: ${v.value}`},[c("div",U,[r[4]||(r[4]=c("div",{class:"i-carbon:cursor-1 text-sm op50"},null,-1)),n.value>=0&&n.value!==H(D)&&u.active?(f(),p($,{key:0},[r[2]||(r[2]=c("div",{"flex-auto":""},null,-1)),c("span",X,y(n.value),1),r[3]||(r[3]=c("span",{op25:"","text-sm":""},"/",-1)),c("span",G,y(t.value),1)],64)):(f(),p("div",J,y(t.value),1))]),c("div",O,[(f(!0),p($,null,T(C.value,l=>(f(),p("div",{key:l,border:"y main","of-hidden":"",relative:"",class:m([l===0?"rounded-l border-l":"",l===t.value?"rounded-r border-r":""]),style:E({width:v.value>0?`${1/v.value*100}%`:"100%"})},[c("div",{absolute:"","inset-0":"",class:m(l<=n.value&&u.active?"bg-primary op15":"")},null,2),c("div",{class:m([+l==+n.value&&u.active?"text-primary font-bold op100 border-primary":"op30 border-main",l===0?"rounded-l":"",l===t.value?"rounded-r":"border-r-2"]),"w-full":"","h-full":"","text-xs":"",flex:"","items-center":"","justify-center":"","z-1":""},y(l),3)],6))),128)),N(c("input",{"onUpdate:modelValue":r[0]||(r[0]=l=>n.value=l),class:m(["range",u.readonly?"pointer-events-none":""]),type:"range",min:x.value,max:t.value,step:1,absolute:"","inset-0":"","z-label":"",op0:"",style:E({"--thumb-width":`${1/(v.value+1)*100}%`}),onMousedown:b,onFocus:r[1]||(r[1]=l=>l.currentTarget?.blur())},null,46,Q),[[z,n.value]])])],10,q))}}),le=j(W,[["__scopeId","data-v-f2325566"]]),Y=["innerHTML"],Z=["textContent"],ee=["textContent"],L="slidev-note-fade",g="slidev-note-click-mark",se=B({__name:"NoteDisplay",props:{class:{},noteHtml:{},note:{},highlight:{type:Boolean,default:!0},placeholder:{},clicksContext:{},autoScroll:{type:Boolean}},emits:["markerDblclick","markerClick"],setup(u,{emit:d}){const t=u,x=d,v=h(()=>t.clicksContext!=null&&t.noteHtml?.includes(g)),n=A(null);function C(){if(!n.value||!v.value)return;const k=Array.from(n.value.querySelectorAll(`.${g}`)),r=new Map,l=new Map;let M=0;for(const a of k){const s=Number(a.dataset.clicks);r.set(a,s);let o=a,e=a.parentElement;for(;e&&o!==n.value;)l.has(e)||l.set(e,[[null,M]]),l.get(e).push([o,s]),o=e,e=e.parentElement;M=s}const S=new Map;for(const[a,s]of l){let o=!1,e=0;for(const i of Array.from(a.childNodes)){let w=!1;for(;i===s[e+1]?.[0];)w=!0,e++;if(w)continue;let _=i;if(i.nodeType===3){if(!i.textContent?.trim())continue;_=document.createElement("span"),_.textContent=i.textContent,a.insertBefore(_,i),i.remove()}o||=e===0,S.set(_,s[e][1])}o||(s[0][1]=-1)}return a=>{const s=t.highlight;for(const[o,e]of l)o.classList.toggle(L,s&&!e.some(([i,w])=>w===a));for(const[o,e]of S)o.classList.toggle(L,s&&e!==a);for(const[o,e]of r)o.classList.remove(L),o.classList.toggle(`${g}-past`,s&&ea+1),o.ondblclick=i=>{s&&(x("markerDblclick",i,e),!i.defaultPrevented&&(t.clicksContext.current=e,i.stopPropagation(),i.stopImmediatePropagation()))},o.onclick=i=>{s&&x("markerClick",i,e)},s&&t.autoScroll&&e===a&&o.scrollIntoView({block:"center",behavior:"smooth"})}}const b=A();return I(()=>[t.noteHtml,t.highlight],()=>{K(()=>{b.value=C()})},{immediate:!0}),F(()=>{C()}),P(()=>{const k=t.clicksContext?.current??D;b.value?.(k)}),(k,r)=>u.noteHtml?(f(),p("div",{key:0,ref_key:"noteDisplay",ref:n,class:m(["prose dark:prose-invert overflow-auto outline-none slidev-note",[t.class,v.value?"slidev-note-with-clicks":""]]),innerHTML:u.noteHtml},null,10,Y)):u.note?(f(),p("div",{key:1,class:m(["prose dark:prose-invert overflow-auto outline-none slidev-note",t.class])},[c("p",{textContent:y(u.note)},null,8,Z)],2)):(f(),p("div",{key:2,class:m(["prose dark:prose-invert overflow-auto outline-none opacity-50 italic select-none slidev-note",t.class])},[c("p",{textContent:y(t.placeholder||"No notes.")},null,8,ee)],2))}});export{le as C,se as _}; diff --git a/assets/slidev/SlideWrapper-Dcg6ZMCe.js b/assets/slidev/SlideWrapper-_oMsn9ML.js similarity index 99% rename from assets/slidev/SlideWrapper-Dcg6ZMCe.js rename to assets/slidev/SlideWrapper-_oMsn9ML.js index df8b1390cfffb437f8dc4e6123a9df1122337f96..e4dd2eff208caa2e93d4a427f21c2f5e521fb67e 100644 --- a/assets/slidev/SlideWrapper-Dcg6ZMCe.js +++ b/assets/slidev/SlideWrapper-_oMsn9ML.js @@ -1 +1 @@ -import{a1 as Vt,W as ct,aI as qt,y as Ht,p as Zt,K as Yt,r as L,z as C,P as Nt,f as mt,T as Y,o as X,e as et,j as At,aJ as Xt,E as Jt,O as Qt,aK as A,k as tt,g as V,i as _t,F as Wt,h as rt,ai as te,n as ee,d as St,b as se,ay as ne}from"../modules/vue-CZamTkmS.js";import{a as Ft,a5 as dt,a6 as wt,a4 as re,o as ft,a7 as ie,a8 as R,a9 as oe,aa as ae,w as le,Y as he,ab as ue,M as bt,V as Pt,W as Et,ac as Mt,b as ce,_ as jt,ad as de,ae as fe,af as pe,ag as ge,ah as me,ai as ve,aj as ye}from"../index-D8MtK2Qe.js";let xe=()=>({emit(t,...e){for(let s=this.events[t]||[],n=0,r=s.length;n{this.events[t]=this.events[t]?.filter(s=>e!==s)}}});function st(t,e){return t-e}function _e(t){return t<0?-1:1}function nt(t){return[Math.abs(t),_e(t)]}function Tt(){const t=()=>((1+Math.random())*65536|0).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}const Se=2,k=Se;function Kt(t,e){const s=document.createElementNS("http://www.w3.org/2000/svg","defs"),n=document.createElementNS("http://www.w3.org/2000/svg","marker"),r=document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("fill",e),n.setAttribute("id",t),n.setAttribute("viewBox","0 -5 10 10"),n.setAttribute("refX","5"),n.setAttribute("refY","0"),n.setAttribute("markerWidth","4"),n.setAttribute("markerHeight","4"),n.setAttribute("orient","auto"),r.setAttribute("d","M0,-5L10,0L0,5"),n.appendChild(r),s.appendChild(n),s}function we(t,e){const s=t.x-e.x,n=t.y-e.y;return s*s+n*n}function be(t,e,s){let n=e.x,r=e.y,i=s.x-n,a=s.y-r;if(i!==0||a!==0){const o=((t.x-n)*i+(t.y-r)*a)/(i*i+a*a);o>1?(n=s.x,r=s.y):o>0&&(n+=i*o,r+=a*o)}return i=t.x-n,a=t.y-r,i*i+a*a}function Pe(t,e){let s=t[0];const n=[s];let r;for(let i=1,a=t.length;ie&&(n.push(r),s=r);return s!==r&&r&&n.push(r),n}function pt(t,e,s,n,r){let i=n,a=0;for(let o=e+1;oi&&(a=o,i=l)}i>n&&(a-e>1&&pt(t,e,a,n,r),r.push(t[a]),s-a>1&&pt(t,a,s,n,r))}function Ee(t,e){const s=t.length-1,n=[t[0]];return pt(t,0,s,e,n),n.push(t[s]),n}function Ct(t,e,s=!1){if(t.length<=2)return t;const n=e*e;return t=s?t:Pe(t,n),t=Ee(t,n),t}var O=class{constructor(t){this.drauu=t,this.event=void 0,this.point=void 0,this.start=void 0,this.el=null}onSelected(t){}onUnselected(){}onStart(t){}onMove(t){return!1}onEnd(t){}get brush(){return this.drauu.brush}get shiftPressed(){return this.drauu.shiftPressed}get altPressed(){return this.drauu.altPressed}get svgElement(){return this.drauu.el}getMousePosition(t){const e=this.drauu.el,s=this.drauu.options.cssZoom??1,n=this.drauu.options.coordinateScale??1,r=this.drauu.options.offset??{x:0,y:0};if(this.drauu.options.coordinateTransform===!1){const i=this.drauu.el.getBoundingClientRect();return{x:(t.pageX/s-i.left+r.x)*n,y:(t.pageY/s-i.top+r.y)*n,pressure:t.pressure}}else{const i=this.drauu.svgPoint;i.x=t.clientX/s+r.x,i.y=t.clientY/s+r.y;const a=i.matrixTransform(e.getScreenCTM()?.inverse());return{x:a.x*n,y:a.y*n,pressure:t.pressure}}}createElement(t,e){const s=document.createElementNS("http://www.w3.org/2000/svg",t),n=e?{...this.brush,...e}:this.brush;return s.setAttribute("fill",n.fill??"transparent"),s.setAttribute("stroke",n.color),s.setAttribute("stroke-width",n.size.toString()),s.setAttribute("stroke-linecap","round"),n.dasharray&&s.setAttribute("stroke-dasharray",n.dasharray),s}attr(t,e){this.el.setAttribute(t,typeof e=="string"?e:e.toFixed(k))}_setEvent(t){this.event=t,this.point=this.getMousePosition(t)}_eventDown(t){return this._setEvent(t),this.start=this.point,this.onStart(this.point)}_eventMove(t){return this._setEvent(t),this.onMove(this.point)}_eventUp(t){return this._setEvent(t),this.onEnd(this.point)}},Me=class K extends O{constructor(...e){super(...e),this.points=[],this.count=0}onStart(e){if(this.el=this.createElement("path",{fill:"transparent"}),this.points=[e],this.brush.arrowEnd){this.arrowId=Tt();const s=Kt(this.arrowId,this.brush.color);this.el.appendChild(s)}return this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&(this.points.push(e),this.count+=1),this.count>5&&(this.points=Ct(this.points,1,!0),this.count=0),this.attr("d",K.toSvgData(this.points)),!0}onEnd(){const e=this.el;if(this.el=null,!e)return!1;if(e.setAttribute("d",K.toSvgData(Ct(this.points,1,!0))),!e.getTotalLength()){const{x:s,y:n}=this.points[0],r=this.brush.size/2;e.setAttribute("d",`M ${s-r} ${n} a ${r},${r} 0 1,0 ${r*2},0 a ${r},${r} 0 1,0 ${-r*2},0`),e.setAttribute("fill",this.brush.color),e.setAttribute("stroke-width","0")}return!0}static line(e,s){const n=s.x-e.x,r=s.y-e.y;return{length:Math.sqrt(n**2+r**2),angle:Math.atan2(r,n)}}static controlPoint(e,s,n,r){const i=s||e,a=n||e,o=.2,l=K.line(i,a),p=l.angle+(r?Math.PI:0),v=l.length*o;return{x:e.x+Math.cos(p)*v,y:e.y+Math.sin(p)*v}}static bezierCommand(e,s,n){const r=K.controlPoint(n[s-1],n[s-2],e),i=K.controlPoint(e,n[s-1],n[s+1],!0);return`C ${r.x.toFixed(k)},${r.y.toFixed(k)} ${i.x.toFixed(k)},${i.y.toFixed(k)} ${e.x.toFixed(k)},${e.y.toFixed(k)}`}static toSvgData(e){return e.reduce((s,n,r,i)=>r===0?`M ${n.x.toFixed(k)},${n.y.toFixed(k)}`:`${s} ${K.bezierCommand(n,r,i)}`,"")}},Ce=class extends O{onStart(t){return this.el=this.createElement("ellipse"),this.attr("cx",t.x),this.attr("cy",t.y),this.el}onMove(t){if(!this.el||!this.start)return!1;let[e,s]=nt(t.x-this.start.x),[n,r]=nt(t.y-this.start.y);if(this.shiftPressed){const i=Math.min(e,n);e=i,n=i}if(this.altPressed)this.attr("cx",this.start.x),this.attr("cy",this.start.y),this.attr("rx",e),this.attr("ry",n);else{const[i,a]=[this.start.x,this.start.x+e*s].sort(st),[o,l]=[this.start.y,this.start.y+n*r].sort(st);this.attr("cx",(i+a)/2),this.attr("cy",(o+l)/2),this.attr("rx",(a-i)/2),this.attr("ry",(l-o)/2)}return!0}onEnd(){const t=this.el;if(this.el=null,!t)return!1;try{if(!t.getTotalLength())return!1}catch{return!1}return!0}},ke=class extends O{constructor(...t){super(...t),this.pathSubFactor=20,this.pathFragments=[],this._erased=[]}onSelected(t){const e=(s,n)=>{if(s&&s.length)for(let r=0;rt.forEach(e=>this.drauu._restoreNode(e)),redo:()=>t.forEach(e=>this.drauu._removeNode(e))}}checkAndEraseElement(){if(this.pathFragments.length)for(let t=0;t!this._erased.includes(t.element))),this._erased.length>0}lineLineIntersect(t,e){const s=t.x1,n=t.x2,r=e.x1,i=e.x2,a=t.y1,o=t.y2,l=e.y1,p=e.y2,v=(s-n)*(l-p)-(a-o)*(r-i),y=(s*o-a*n)*(r-i)-(s-n)*(r*p-l*i),x=(s*o-a*n)*(l-p)-(a-o)*(r*p-l*i),d=(f,c,P)=>f>=c&&f<=P?!0:f>=P&&f<=c;if(v===0)return!1;{const f={x:y/v,y:x/v};return d(f.x,s,n)&&d(f.y,a,o)&&d(f.x,r,i)&&d(f.y,l,p)}}},Le=class extends O{onStart(t){if(this.el=this.createElement("line",{fill:"transparent"}),this.attr("x1",t.x),this.attr("y1",t.y),this.attr("x2",t.x),this.attr("y2",t.y),this.brush.arrowEnd){const e=Tt(),s=document.createElementNS("http://www.w3.org/2000/svg","g");return s.append(Kt(e,this.brush.color)),s.append(this.el),this.attr("marker-end",`url(#${e})`),s}return this.el}onMove(t){if(!this.el)return!1;let{x:e,y:s}=t;if(this.shiftPressed){const n=t.x-this.start.x,r=t.y-this.start.y;if(r!==0){let i=n/r;i=Math.round(i),Math.abs(i)<=1?(e=this.start.x+r*i,s=this.start.y+r):(e=this.start.x+n,s=this.start.y)}}return this.altPressed?(this.attr("x1",this.start.x*2-e),this.attr("y1",this.start.y*2-s),this.attr("x2",e),this.attr("y2",s)):(this.attr("x1",this.start.x),this.attr("y1",this.start.y),this.attr("x2",e),this.attr("y2",s)),!0}onEnd(){const t=this.el;if(this.el=null,!t)return!1;try{if(t.getTotalLength()<5)return!1}catch{return!1}return!0}},De=class extends O{onStart(t){return this.el=this.createElement("rect"),this.brush.cornerRadius&&(this.attr("rx",this.brush.cornerRadius),this.attr("ry",this.brush.cornerRadius)),this.attr("x",t.x),this.attr("y",t.y),this.el}onMove(t){if(!this.el||!this.start)return!1;let[e,s]=nt(t.x-this.start.x),[n,r]=nt(t.y-this.start.y);if(this.shiftPressed){const i=Math.min(e,n);e=i,n=i}if(this.altPressed)this.attr("x",this.start.x-e),this.attr("y",this.start.y-n),this.attr("width",e*2),this.attr("height",n*2);else{const[i,a]=[this.start.x,this.start.x+e*s].sort(st),[o,l]=[this.start.y,this.start.y+n*r].sort(st);this.attr("x",i),this.attr("y",o),this.attr("width",a-i),this.attr("height",l-o)}return!0}onEnd(){const t=this.el;if(this.el=null,!t)return!1;try{if(!t.getTotalLength())return!1}catch{return!1}return!0}};function kt(t,e,s,n=r=>r){return t*n(.5-e*(.5-s))}function $e(t){return[-t[0],-t[1]]}function M(t,e){return[t[0]+e[0],t[1]+e[1]]}function b(t,e){return[t[0]-e[0],t[1]-e[1]]}function E(t,e){return[t[0]*e,t[1]*e]}function Ie(t,e){return[t[0]/e,t[1]/e]}function q(t){return[t[1],-t[0]]}function Lt(t,e){return t[0]*e[0]+t[1]*e[1]}function Ne(t,e){return t[0]===e[0]&&t[1]===e[1]}function Ae(t){return Math.hypot(t[0],t[1])}function Fe(t){return t[0]*t[0]+t[1]*t[1]}function Dt(t,e){return Fe(b(t,e))}function zt(t){return Ie(t,Ae(t))}function je(t,e){return Math.hypot(t[1]-e[1],t[0]-e[0])}function H(t,e,s){let n=Math.sin(s),r=Math.cos(s),i=t[0]-e[0],a=t[1]-e[1],o=i*r-a*n,l=i*n+a*r;return[o+e[0],l+e[1]]}function gt(t,e,s){return M(t,E(b(e,t),s))}function $t(t,e,s){return M(t,E(e,s))}var{min:B,PI:Te}=Math,It=.275,Z=Te+1e-4;function Ke(t,e={}){let{size:s=16,smoothing:n=.5,thinning:r=.5,simulatePressure:i=!0,easing:a=u=>u,start:o={},end:l={},last:p=!1}=e,{cap:v=!0,easing:y=u=>u*(2-u)}=o,{cap:x=!0,easing:d=u=>--u*u*u+1}=l;if(t.length===0||s<=0)return[];let f=t[t.length-1].runningLength,c=o.taper===!1?0:o.taper===!0?Math.max(s,f):o.taper,P=l.taper===!1?0:l.taper===!0?Math.max(s,f):l.taper,z=Math.pow(s*n,2),D=[],h=[],_=t.slice(0,10).reduce((u,w)=>{let g=w.pressure;if(i){let m=B(1,w.distance/s);g=B(1,u+(B(1,1-m)-u)*(m*It))}return(u+g)/2},t[0].pressure),S=kt(s,r,t[t.length-1].pressure,a),it,ot=t[0].vector,U=t[0].point,J=U,j=U,T=J,at=!1;for(let u=0;uz)&&(D.push(j),U=j),T=M(g,xt),(u<=1||Dt(J,T)>z)&&(h.push(T),J=T),_=w,ot=m}let $=t[0].point.slice(0,2),I=t.length>1?t[t.length-1].point.slice(0,2):M(t[0].point,[1,1]),lt=[],Q=[];if(t.length===1){if(!(c||P)||p){let u=$t($,zt(q(b($,I))),-(it||S)),w=[];for(let g=1/13,m=g;m<=1;m+=g)w.push(H(u,$,Z*2*m));return w}}else{if(!(c||P&&t.length===1))if(v)for(let w=1/13,g=w;g<=1;g+=w){let m=H(h[0],$,Z*g);lt.push(m)}else{let w=b(D[0],h[0]),g=E(w,.5),m=E(w,.51);lt.push(b($,g),b($,m),M($,m),M($,g))}let u=q($e(t[t.length-1].vector));if(P||c&&t.length===1)Q.push(I);else if(x){let w=$t(I,u,S);for(let g=1/29,m=g;m<1;m+=g)Q.push(H(w,I,Z*3*m))}else Q.push(M(I,E(u,S)),M(I,E(u,S*.99)),b(I,E(u,S*.99)),b(I,E(u,S)))}return D.concat(Q,h.reverse(),lt)}function ze(t,e={}){var s;let{streamline:n=.5,size:r=16,last:i=!1}=e;if(t.length===0)return[];let a=.15+(1-n)*.85,o=Array.isArray(t[0])?t:t.map(({x:d,y:f,pressure:c=.5})=>[d,f,c]);if(o.length===2){let d=o[1];o=o.slice(0,-1);for(let f=1;f<5;f++)o.push(gt(o[0],d,f/4))}o.length===1&&(o=[...o,[...M(o[0],[1,1]),...o[0].slice(2)]]);let l=[{point:[o[0][0],o[0][1]],pressure:o[0][2]>=0?o[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],p=!1,v=0,y=l[0],x=o.length-1;for(let d=1;d=0?o[d][2]:.5,vector:zt(b(y.point,f)),distance:c,runningLength:v},l.push(y)}return l[0].vector=((s=l[1])==null?void 0:s.vector)||[0,0],l}function Be(t,e={}){return Ke(ze(t,e),e)}var Re=class Bt extends O{constructor(...e){super(...e),this.points=[]}onStart(e){return this.el=document.createElementNS("http://www.w3.org/2000/svg","path"),this.points=[e],this.attr("fill",this.brush.color),this.attr("d",this.getSvgData(this.points)),this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&this.points.push(e),this.attr("d",this.getSvgData(this.points)),!0}onEnd(){const e=this.el;return this.el=null,!!e}getSvgData(e){return Bt.getSvgData(e,this.brush)}static getSvgData(e,s){const n=Be(e,{size:s.size,thinning:.9,simulatePressure:!1,start:{taper:5},end:{taper:5},...s.stylusOptions});if(!n.length)return"";const r=n.reduce((i,[a,o],l,p)=>{const[v,y]=p[(l+1)%p.length];return i.push(a,o,(a+v)/2,(o+y)/2),i},["M",...n[0],"Q"]);return r.push("Z"),r.map(i=>typeof i=="number"?i.toFixed(2):i).join(" ")}};function Oe(t){return{draw:new Me(t),stylus:new Re(t),line:new Le(t),rectangle:new De(t),ellipse:new Ce(t),eraseLine:new ke(t)}}var Ue=class{constructor(t={}){this.options=t,this.el=null,this.svgPoint=null,this.eventEl=null,this.shiftPressed=!1,this.altPressed=!1,this.drawing=!1,this._emitter=xe(),this._originalPointerId=null,this._models=Oe(this),this._opStack=[],this._opIndex=0,this._disposables=[],this._elements=[],this.options.brush||(this.options.brush={color:"black",size:3,mode:"stylus"}),t.el&&this.mount(t.el,t.eventTarget,t.window)}get model(){return this._models[this.mode]}get mounted(){return!!this.el}get mode(){return this.options.brush.mode||"stylus"}set mode(t){this._models[this.mode].onUnselected(),this.options.brush.mode=t,this.model.onSelected(this.el)}get brush(){return this.options.brush}set brush(t){this.options.brush=t}resolveSelector(t){return typeof t=="string"?document.querySelector(t):t||null}mount(t,e,s=window){if(this.el)throw new Error("[drauu] already mounted, unmount previous target first");if(this.el=this.resolveSelector(t),!this.el)throw new Error("[drauu] target element not found");if(this.el.tagName.toLocaleLowerCase()!=="svg")throw new Error("[drauu] can only mount to a SVG element");if(!this.el.createSVGPoint)throw new Error("[drauu] SVG element must be create by document.createElementNS('http://www.w3.org/2000/svg', 'svg')");this.svgPoint=this.el.createSVGPoint();const n=this.resolveSelector(e)||this.el,r=this.eventStart.bind(this),i=this.eventMove.bind(this),a=this.eventEnd.bind(this),o=this.eventKeyboard.bind(this),l=this.touchMove.bind(this);n.addEventListener("pointerdown",r,{passive:!1}),s.addEventListener("pointermove",i,{passive:!1}),s.addEventListener("pointerup",a,{passive:!1}),s.addEventListener("pointercancel",a,{passive:!1}),s.addEventListener("keydown",o,!1),s.addEventListener("keyup",o,!1),s.addEventListener("touchmove",l,{passive:!1}),this._disposables.push(()=>{n.removeEventListener("pointerdown",r),s.removeEventListener("pointermove",i),s.removeEventListener("pointerup",a),s.removeEventListener("pointercancel",a),s.removeEventListener("keydown",o,!1),s.removeEventListener("keyup",o,!1),s.removeEventListener("touchmove",l)}),this._emitter.emit("mounted")}unmount(){this._disposables.forEach(t=>t()),this._disposables.length=0,this._elements.length=0,this.el=null,this._emitter.emit("unmounted")}on(t,e){return this._emitter.on(t,e)}undo(){return!this.canUndo()||this.drawing?!1:(this._opStack[--this._opIndex].undo(),this._emitter.emit("changed"),!0)}redo(){return!this.canRedo()||this.drawing?!1:(this._opStack[this._opIndex++].redo(),this._emitter.emit("changed"),!0)}canRedo(){return this._opIndex0}eventMove(t){!this.acceptsInput(t)||!this.drawing||this.model._eventMove(t)&&(t.stopPropagation(),t.preventDefault(),this._emitter.emit("changed"))}eventStart(t){this.acceptsInput(t)&&(t.stopPropagation(),t.preventDefault(),this._currentNode&&this.cancel(),this.drawing=!0,this._originalPointerId=t.pointerId,this._emitter.emit("start"),this._currentNode=this.model._eventDown(t),this._currentNode&&this.mode!=="eraseLine"&&this.el.appendChild(this._currentNode),this._emitter.emit("changed"))}eventEnd(t){if(!this.acceptsInput(t)||!this.drawing)return;const e=this.model._eventUp(t);if(!e)this.cancel();else if(e===!0){const s=this._currentNode;s&&(this._appendNode(s),this.commit({undo:()=>this._removeNode(s),redo:()=>this._restoreNode(s)}))}else this.commit(e);this.drawing=!1,this._emitter.emit("end"),this._emitter.emit("changed"),this._originalPointerId=null}touchMove(t){Array.from(t.touches).some(e=>e.touchType==="stylus"&&e.identifier===this._originalPointerId)&&t.preventDefault()}acceptsInput(t){return(!this.options.acceptsInputTypes||this.options.acceptsInputTypes.includes(t.pointerType))&&!(this._originalPointerId&&this._originalPointerId!==t.pointerId)}eventKeyboard(t){this.shiftPressed===t.shiftKey&&this.altPressed===t.altKey||(this.shiftPressed=t.shiftKey,this.altPressed=t.altKey,this.model.point&&this.model.onMove(this.model.point)&&this._emitter.emit("changed"))}commit(t){this._opStack.length=this._opIndex,this._opStack.push(t),this._opIndex++;const e=this._currentNode;this._currentNode=void 0,this._emitter.emit("committed",e)}clear(){this._opStack.length=0,this._opIndex=0,this._elements=[],this.cancel(),this.el.innerHTML="",this._emitter.emit("changed")}cancel(){this._currentNode&&(this.el.removeChild(this._currentNode),this._currentNode=void 0,this._emitter.emit("canceled"))}dump(){return this.el.innerHTML}load(t){this.clear(),this.el.innerHTML=t}_appendNode(t){const e=this._elements.at(-1);e?e.after(t):this.el.append(t);const s=this._elements.push(t)-1;t.dataset.drauu_index=s.toString()}_removeNode(t){t.remove(),this._elements[+t.dataset.drauu_index]=null}_restoreNode(t){const e=+t.dataset.drauu_index;this._elements[e]=t;for(let s=e-1;s>=0;s--){const n=this._elements[s];if(n){n.after(t);return}}this.el.prepend(t)}};function Ge(t){return new Ue(t)}const Ve=Vt(()=>{const{currentSlideNo:t,isPresenter:e}=Ft(),s=["#ff595e","#ffca3a","#8ac926","#1982c4","#6a4c93","#ffffff","#000000"],n=ct("slidev-drawing-enabled",!1),r=ct("slidev-drawing-pinned",!1),i=qt(ct("slidev-drawing-brush",{color:s[0],size:4,mode:"stylus"})),a=L(!1),o=L(!1),l=L(!1),p=L(!1),v=L("stylus"),y=C(()=>ft.drawings.syncAll||e.value);let x=!1;const d=C({get(){return v.value},set(h){v.value=h,h==="arrow"?(c.mode="line",i.arrowEnd=!0):(c.mode=h,i.arrowEnd=!1)}}),f=Nt({brush:i,acceptsInputTypes:C(()=>n.value&&(!ft.drawings.presenterOnly||e.value)?void 0:["pen"]),coordinateTransform:!1}),c=Ht(Ge(f));function P(){c.clear(),y.value&&wt(t.value,"")}function z(){l.value=c.canRedo(),o.value=c.canUndo(),p.value=!!c.el?.children.length}function D(h){x=!0;const _=dt[h||t.value];_!=null?c.load(_):c.clear(),z(),x=!1}return c.on("changed",()=>{if(z(),!x){const h=c.dump(),_=t.value;(dt[_]||"")!==h&&y.value&&wt(_,c.dump())}}),ie(h=>{x=!0,h[t.value]!=null&&c.load(h[t.value]||""),x=!1,z()}),Zt(()=>{Yt(t,()=>{c.mounted&&D()},{immediate:!0})}),c.on("start",()=>a.value=!0),c.on("end",()=>a.value=!1),window.addEventListener("keydown",h=>{if(!n.value||re.value)return;const _=!h.ctrlKey&&!h.altKey&&!h.shiftKey&&!h.metaKey;let S=!0;h.code==="KeyZ"&&(h.ctrlKey||h.metaKey)?h.shiftKey?c.redo():c.undo():h.code==="Escape"?n.value=!1:h.code==="KeyL"&&_?d.value="line":h.code==="KeyA"&&_?d.value="arrow":h.code==="KeyS"&&_?d.value="stylus":h.code==="KeyR"&&_?d.value="rectangle":h.code==="KeyE"&&_?d.value="ellipse":h.code==="KeyC"&&_?P():h.code.startsWith("Digit")&&_&&+h.code[5]<=s.length?i.color=s[+h.code[5]-1]:S=!1,S&&(h.preventDefault(),h.stopPropagation())},!1),{brush:i,brushColors:s,canClear:p,canRedo:l,canUndo:o,clear:P,drauu:c,drauuOptions:f,drawingEnabled:n,drawingMode:d,drawingPinned:r,drawingState:dt,isDrawing:a,loadCanvas:D}}),qe=["innerHTML"],fs=mt({__name:"DrawingPreview",props:{page:{}},setup(t){const{drawingState:e}=Ve();return(s,n)=>Y(e)[t.page]?(X(),et("svg",{key:0,class:"w-full h-full absolute top-0 pointer-events-none",innerHTML:Y(e)[t.page]},null,8,qe)):At("v-if",!0)}}),F=Nt({});let He=[],Ze=[];R(F,"$syncUp",!0);R(F,"$syncDown",!0);R(F,"$paused",!1);R(F,"$onSet",t=>He.push(t));R(F,"$onPatch",t=>Ze.push(t));oe();R(F,"$patch",async()=>!1);const Ye=ae(F,F,!0);window.navigator.userAgent.match(/Chrome\/(\d+)/)?.[1];window.navigator.userAgent.match(/Chrome\/(\d+)/)?.[1];class Xe{constructor(){this._screenshotSession=null}getSnapshot(e,s){const n=e+(s?"-dark":"-light"),r=Ye.state[n];if(!r)return;const i=le(e);if(i&&r?.revision===i?.meta.slide.revision)return r.image}async saveSnapshot(e,s,n){return!1}async startCapturing(e){return!1}}const Je=new Xe,Qe=["id"],We=["id"],ts={class:"slidev-slide-container w-full h-full relative"},es=["src"],ss=mt({__name:"SlideContainer",props:{width:{type:Number},meta:{default:()=>({})},isMain:{type:Boolean,default:!1},no:{type:Number,required:!1},useSnapshot:{type:Boolean,default:!1},contentStyle:{type:Object,default:()=>({})}},setup(t){const e=t,{isPrintMode:s}=Ft(),n=L(null),r=Xt(n),i=L(null),a=C(()=>e.width??r.width.value),o=C(()=>e.width?e.width/Mt.value:r.height.value),l=C(()=>bt.value&&!s.value?+bt.value:Math.min(a.value/Pt.value,o.value/Et.value)),p=C(()=>({...e.contentStyle,height:`${Et.value}px`,width:`${Pt.value}px`,"--slidev-slide-scale":l.value})),v=C(()=>e.width?{width:`${e.width}px`,height:`${e.width/Mt.value}px`}:{});if(e.isMain){const x=document.documentElement.style;Jt(()=>x.setProperty("--slidev-slide-scale",l.value.toString())),Qt(()=>x.removeProperty("--slidev-slide-scale"))}A(he,l),A(ue,i);const y=C(()=>{if(!(e.no==null||!e.useSnapshot))return Je.getSnapshot(e.no,ce.value)});return(x,d)=>y.value?(X(),et(Wt,{key:1},[At(" Image Snapshot "),V("div",ts,[V("img",{src:y.value,class:"w-full h-full object-cover",style:tt(v.value)},null,12,es),d[0]||(d[0]=V("div",{absolute:"","bottom-1":"","right-1":"","p0.5":"","text-cyan:75":"","bg-cyan:10":"",rounded:"",title:"Snapshot"},[V("div",{class:"i-carbon-camera"})],-1))])],2112)):(X(),et("div",{key:0,id:t.isMain?"slide-container":void 0,ref_key:"container",ref:n,class:"slidev-slide-container",style:tt(v.value)},[V("div",{id:t.isMain?"slide-content":void 0,ref_key:"slideElement",ref:i,class:"slidev-slide-content",style:tt(p.value)},[_t(x.$slots,"default",{},void 0,!0)],12,We),_t(x.$slots,"controls",{},void 0,!0)],12,Qe))}}),ps=jt(ss,[["__scopeId","data-v-f33e502d"]]),ns=[Object.values([])[0],Object.values([])[0]].filter(Boolean),gs={render:()=>ns.map(t=>rt(t))},rs=[Object.values([])[0],Object.values([])[0]].filter(Boolean),ms={render:()=>rs.map(t=>rt(t))},is=[Object.values([])[0],Object.values([])[0]].filter(Boolean),os={render:()=>is.map(t=>rt(t))},as=[Object.values([])[0],Object.values([])[0]].filter(Boolean),ls={render:()=>as.map(t=>rt(t))},hs=["data-slidev-no","lang"],us=mt({__name:"SlideWrapper",props:{clicksContext:{type:Object,required:!0},renderContext:{type:String,default:"slide"},route:{type:Object,required:!0}},setup(t){const e=t,s=C(()=>e.route.meta?.slide?.frontmatter.zoom??1);A(de,e.route),A(fe,e.route.meta.slide.frontmatter),A(pe,L(e.route.no)),A(ge,L(e.renderContext)),A(me,te(e,"clicksContext")),A(ve,s);const n=C(()=>({"user-select":ft.selectable?void 0:"none","--slidev-slide-zoom-scale":s.value===1?void 0:s.value}));return(r,i)=>(X(),et("div",{"data-slidev-no":e.route.no,class:ee(Y(ye)(t.route,["slide","presenter"].includes(e.renderContext)?"":"disable-view-transition")),style:tt(n.value),lang:e.route.meta.slide.frontmatter.lang},[St(Y(ls)),(X(),se(ne(e.route.component))),St(Y(os))],14,hs))}}),vs=jt(us,[["__scopeId","data-v-7f4a33e4"]]);export{ms as G,vs as S,fs as _,ps as a,gs as b,Ve as u}; +import{a1 as Vt,W as ct,aI as qt,y as Ht,p as Zt,K as Yt,r as L,z as C,P as Nt,f as mt,T as Y,o as X,e as et,j as At,aJ as Xt,E as Jt,O as Qt,aK as A,k as tt,g as V,i as _t,F as Wt,h as rt,ai as te,n as ee,d as St,b as se,ay as ne}from"../modules/vue-CZamTkmS.js";import{a as Ft,a5 as dt,a6 as wt,a4 as re,o as ft,a7 as ie,a8 as R,a9 as oe,aa as ae,w as le,Y as he,ab as ue,M as bt,V as Pt,W as Et,ac as Mt,b as ce,_ as jt,ad as de,ae as fe,af as pe,ag as ge,ah as me,ai as ve,aj as ye}from"../index-CIas0rwA.js";let xe=()=>({emit(t,...e){for(let s=this.events[t]||[],n=0,r=s.length;n{this.events[t]=this.events[t]?.filter(s=>e!==s)}}});function st(t,e){return t-e}function _e(t){return t<0?-1:1}function nt(t){return[Math.abs(t),_e(t)]}function Tt(){const t=()=>((1+Math.random())*65536|0).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}const Se=2,k=Se;function Kt(t,e){const s=document.createElementNS("http://www.w3.org/2000/svg","defs"),n=document.createElementNS("http://www.w3.org/2000/svg","marker"),r=document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("fill",e),n.setAttribute("id",t),n.setAttribute("viewBox","0 -5 10 10"),n.setAttribute("refX","5"),n.setAttribute("refY","0"),n.setAttribute("markerWidth","4"),n.setAttribute("markerHeight","4"),n.setAttribute("orient","auto"),r.setAttribute("d","M0,-5L10,0L0,5"),n.appendChild(r),s.appendChild(n),s}function we(t,e){const s=t.x-e.x,n=t.y-e.y;return s*s+n*n}function be(t,e,s){let n=e.x,r=e.y,i=s.x-n,a=s.y-r;if(i!==0||a!==0){const o=((t.x-n)*i+(t.y-r)*a)/(i*i+a*a);o>1?(n=s.x,r=s.y):o>0&&(n+=i*o,r+=a*o)}return i=t.x-n,a=t.y-r,i*i+a*a}function Pe(t,e){let s=t[0];const n=[s];let r;for(let i=1,a=t.length;ie&&(n.push(r),s=r);return s!==r&&r&&n.push(r),n}function pt(t,e,s,n,r){let i=n,a=0;for(let o=e+1;oi&&(a=o,i=l)}i>n&&(a-e>1&&pt(t,e,a,n,r),r.push(t[a]),s-a>1&&pt(t,a,s,n,r))}function Ee(t,e){const s=t.length-1,n=[t[0]];return pt(t,0,s,e,n),n.push(t[s]),n}function Ct(t,e,s=!1){if(t.length<=2)return t;const n=e*e;return t=s?t:Pe(t,n),t=Ee(t,n),t}var O=class{constructor(t){this.drauu=t,this.event=void 0,this.point=void 0,this.start=void 0,this.el=null}onSelected(t){}onUnselected(){}onStart(t){}onMove(t){return!1}onEnd(t){}get brush(){return this.drauu.brush}get shiftPressed(){return this.drauu.shiftPressed}get altPressed(){return this.drauu.altPressed}get svgElement(){return this.drauu.el}getMousePosition(t){const e=this.drauu.el,s=this.drauu.options.cssZoom??1,n=this.drauu.options.coordinateScale??1,r=this.drauu.options.offset??{x:0,y:0};if(this.drauu.options.coordinateTransform===!1){const i=this.drauu.el.getBoundingClientRect();return{x:(t.pageX/s-i.left+r.x)*n,y:(t.pageY/s-i.top+r.y)*n,pressure:t.pressure}}else{const i=this.drauu.svgPoint;i.x=t.clientX/s+r.x,i.y=t.clientY/s+r.y;const a=i.matrixTransform(e.getScreenCTM()?.inverse());return{x:a.x*n,y:a.y*n,pressure:t.pressure}}}createElement(t,e){const s=document.createElementNS("http://www.w3.org/2000/svg",t),n=e?{...this.brush,...e}:this.brush;return s.setAttribute("fill",n.fill??"transparent"),s.setAttribute("stroke",n.color),s.setAttribute("stroke-width",n.size.toString()),s.setAttribute("stroke-linecap","round"),n.dasharray&&s.setAttribute("stroke-dasharray",n.dasharray),s}attr(t,e){this.el.setAttribute(t,typeof e=="string"?e:e.toFixed(k))}_setEvent(t){this.event=t,this.point=this.getMousePosition(t)}_eventDown(t){return this._setEvent(t),this.start=this.point,this.onStart(this.point)}_eventMove(t){return this._setEvent(t),this.onMove(this.point)}_eventUp(t){return this._setEvent(t),this.onEnd(this.point)}},Me=class K extends O{constructor(...e){super(...e),this.points=[],this.count=0}onStart(e){if(this.el=this.createElement("path",{fill:"transparent"}),this.points=[e],this.brush.arrowEnd){this.arrowId=Tt();const s=Kt(this.arrowId,this.brush.color);this.el.appendChild(s)}return this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&(this.points.push(e),this.count+=1),this.count>5&&(this.points=Ct(this.points,1,!0),this.count=0),this.attr("d",K.toSvgData(this.points)),!0}onEnd(){const e=this.el;if(this.el=null,!e)return!1;if(e.setAttribute("d",K.toSvgData(Ct(this.points,1,!0))),!e.getTotalLength()){const{x:s,y:n}=this.points[0],r=this.brush.size/2;e.setAttribute("d",`M ${s-r} ${n} a ${r},${r} 0 1,0 ${r*2},0 a ${r},${r} 0 1,0 ${-r*2},0`),e.setAttribute("fill",this.brush.color),e.setAttribute("stroke-width","0")}return!0}static line(e,s){const n=s.x-e.x,r=s.y-e.y;return{length:Math.sqrt(n**2+r**2),angle:Math.atan2(r,n)}}static controlPoint(e,s,n,r){const i=s||e,a=n||e,o=.2,l=K.line(i,a),p=l.angle+(r?Math.PI:0),v=l.length*o;return{x:e.x+Math.cos(p)*v,y:e.y+Math.sin(p)*v}}static bezierCommand(e,s,n){const r=K.controlPoint(n[s-1],n[s-2],e),i=K.controlPoint(e,n[s-1],n[s+1],!0);return`C ${r.x.toFixed(k)},${r.y.toFixed(k)} ${i.x.toFixed(k)},${i.y.toFixed(k)} ${e.x.toFixed(k)},${e.y.toFixed(k)}`}static toSvgData(e){return e.reduce((s,n,r,i)=>r===0?`M ${n.x.toFixed(k)},${n.y.toFixed(k)}`:`${s} ${K.bezierCommand(n,r,i)}`,"")}},Ce=class extends O{onStart(t){return this.el=this.createElement("ellipse"),this.attr("cx",t.x),this.attr("cy",t.y),this.el}onMove(t){if(!this.el||!this.start)return!1;let[e,s]=nt(t.x-this.start.x),[n,r]=nt(t.y-this.start.y);if(this.shiftPressed){const i=Math.min(e,n);e=i,n=i}if(this.altPressed)this.attr("cx",this.start.x),this.attr("cy",this.start.y),this.attr("rx",e),this.attr("ry",n);else{const[i,a]=[this.start.x,this.start.x+e*s].sort(st),[o,l]=[this.start.y,this.start.y+n*r].sort(st);this.attr("cx",(i+a)/2),this.attr("cy",(o+l)/2),this.attr("rx",(a-i)/2),this.attr("ry",(l-o)/2)}return!0}onEnd(){const t=this.el;if(this.el=null,!t)return!1;try{if(!t.getTotalLength())return!1}catch{return!1}return!0}},ke=class extends O{constructor(...t){super(...t),this.pathSubFactor=20,this.pathFragments=[],this._erased=[]}onSelected(t){const e=(s,n)=>{if(s&&s.length)for(let r=0;rt.forEach(e=>this.drauu._restoreNode(e)),redo:()=>t.forEach(e=>this.drauu._removeNode(e))}}checkAndEraseElement(){if(this.pathFragments.length)for(let t=0;t!this._erased.includes(t.element))),this._erased.length>0}lineLineIntersect(t,e){const s=t.x1,n=t.x2,r=e.x1,i=e.x2,a=t.y1,o=t.y2,l=e.y1,p=e.y2,v=(s-n)*(l-p)-(a-o)*(r-i),y=(s*o-a*n)*(r-i)-(s-n)*(r*p-l*i),x=(s*o-a*n)*(l-p)-(a-o)*(r*p-l*i),d=(f,c,P)=>f>=c&&f<=P?!0:f>=P&&f<=c;if(v===0)return!1;{const f={x:y/v,y:x/v};return d(f.x,s,n)&&d(f.y,a,o)&&d(f.x,r,i)&&d(f.y,l,p)}}},Le=class extends O{onStart(t){if(this.el=this.createElement("line",{fill:"transparent"}),this.attr("x1",t.x),this.attr("y1",t.y),this.attr("x2",t.x),this.attr("y2",t.y),this.brush.arrowEnd){const e=Tt(),s=document.createElementNS("http://www.w3.org/2000/svg","g");return s.append(Kt(e,this.brush.color)),s.append(this.el),this.attr("marker-end",`url(#${e})`),s}return this.el}onMove(t){if(!this.el)return!1;let{x:e,y:s}=t;if(this.shiftPressed){const n=t.x-this.start.x,r=t.y-this.start.y;if(r!==0){let i=n/r;i=Math.round(i),Math.abs(i)<=1?(e=this.start.x+r*i,s=this.start.y+r):(e=this.start.x+n,s=this.start.y)}}return this.altPressed?(this.attr("x1",this.start.x*2-e),this.attr("y1",this.start.y*2-s),this.attr("x2",e),this.attr("y2",s)):(this.attr("x1",this.start.x),this.attr("y1",this.start.y),this.attr("x2",e),this.attr("y2",s)),!0}onEnd(){const t=this.el;if(this.el=null,!t)return!1;try{if(t.getTotalLength()<5)return!1}catch{return!1}return!0}},De=class extends O{onStart(t){return this.el=this.createElement("rect"),this.brush.cornerRadius&&(this.attr("rx",this.brush.cornerRadius),this.attr("ry",this.brush.cornerRadius)),this.attr("x",t.x),this.attr("y",t.y),this.el}onMove(t){if(!this.el||!this.start)return!1;let[e,s]=nt(t.x-this.start.x),[n,r]=nt(t.y-this.start.y);if(this.shiftPressed){const i=Math.min(e,n);e=i,n=i}if(this.altPressed)this.attr("x",this.start.x-e),this.attr("y",this.start.y-n),this.attr("width",e*2),this.attr("height",n*2);else{const[i,a]=[this.start.x,this.start.x+e*s].sort(st),[o,l]=[this.start.y,this.start.y+n*r].sort(st);this.attr("x",i),this.attr("y",o),this.attr("width",a-i),this.attr("height",l-o)}return!0}onEnd(){const t=this.el;if(this.el=null,!t)return!1;try{if(!t.getTotalLength())return!1}catch{return!1}return!0}};function kt(t,e,s,n=r=>r){return t*n(.5-e*(.5-s))}function $e(t){return[-t[0],-t[1]]}function M(t,e){return[t[0]+e[0],t[1]+e[1]]}function b(t,e){return[t[0]-e[0],t[1]-e[1]]}function E(t,e){return[t[0]*e,t[1]*e]}function Ie(t,e){return[t[0]/e,t[1]/e]}function q(t){return[t[1],-t[0]]}function Lt(t,e){return t[0]*e[0]+t[1]*e[1]}function Ne(t,e){return t[0]===e[0]&&t[1]===e[1]}function Ae(t){return Math.hypot(t[0],t[1])}function Fe(t){return t[0]*t[0]+t[1]*t[1]}function Dt(t,e){return Fe(b(t,e))}function zt(t){return Ie(t,Ae(t))}function je(t,e){return Math.hypot(t[1]-e[1],t[0]-e[0])}function H(t,e,s){let n=Math.sin(s),r=Math.cos(s),i=t[0]-e[0],a=t[1]-e[1],o=i*r-a*n,l=i*n+a*r;return[o+e[0],l+e[1]]}function gt(t,e,s){return M(t,E(b(e,t),s))}function $t(t,e,s){return M(t,E(e,s))}var{min:B,PI:Te}=Math,It=.275,Z=Te+1e-4;function Ke(t,e={}){let{size:s=16,smoothing:n=.5,thinning:r=.5,simulatePressure:i=!0,easing:a=u=>u,start:o={},end:l={},last:p=!1}=e,{cap:v=!0,easing:y=u=>u*(2-u)}=o,{cap:x=!0,easing:d=u=>--u*u*u+1}=l;if(t.length===0||s<=0)return[];let f=t[t.length-1].runningLength,c=o.taper===!1?0:o.taper===!0?Math.max(s,f):o.taper,P=l.taper===!1?0:l.taper===!0?Math.max(s,f):l.taper,z=Math.pow(s*n,2),D=[],h=[],_=t.slice(0,10).reduce((u,w)=>{let g=w.pressure;if(i){let m=B(1,w.distance/s);g=B(1,u+(B(1,1-m)-u)*(m*It))}return(u+g)/2},t[0].pressure),S=kt(s,r,t[t.length-1].pressure,a),it,ot=t[0].vector,U=t[0].point,J=U,j=U,T=J,at=!1;for(let u=0;uz)&&(D.push(j),U=j),T=M(g,xt),(u<=1||Dt(J,T)>z)&&(h.push(T),J=T),_=w,ot=m}let $=t[0].point.slice(0,2),I=t.length>1?t[t.length-1].point.slice(0,2):M(t[0].point,[1,1]),lt=[],Q=[];if(t.length===1){if(!(c||P)||p){let u=$t($,zt(q(b($,I))),-(it||S)),w=[];for(let g=1/13,m=g;m<=1;m+=g)w.push(H(u,$,Z*2*m));return w}}else{if(!(c||P&&t.length===1))if(v)for(let w=1/13,g=w;g<=1;g+=w){let m=H(h[0],$,Z*g);lt.push(m)}else{let w=b(D[0],h[0]),g=E(w,.5),m=E(w,.51);lt.push(b($,g),b($,m),M($,m),M($,g))}let u=q($e(t[t.length-1].vector));if(P||c&&t.length===1)Q.push(I);else if(x){let w=$t(I,u,S);for(let g=1/29,m=g;m<1;m+=g)Q.push(H(w,I,Z*3*m))}else Q.push(M(I,E(u,S)),M(I,E(u,S*.99)),b(I,E(u,S*.99)),b(I,E(u,S)))}return D.concat(Q,h.reverse(),lt)}function ze(t,e={}){var s;let{streamline:n=.5,size:r=16,last:i=!1}=e;if(t.length===0)return[];let a=.15+(1-n)*.85,o=Array.isArray(t[0])?t:t.map(({x:d,y:f,pressure:c=.5})=>[d,f,c]);if(o.length===2){let d=o[1];o=o.slice(0,-1);for(let f=1;f<5;f++)o.push(gt(o[0],d,f/4))}o.length===1&&(o=[...o,[...M(o[0],[1,1]),...o[0].slice(2)]]);let l=[{point:[o[0][0],o[0][1]],pressure:o[0][2]>=0?o[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],p=!1,v=0,y=l[0],x=o.length-1;for(let d=1;d=0?o[d][2]:.5,vector:zt(b(y.point,f)),distance:c,runningLength:v},l.push(y)}return l[0].vector=((s=l[1])==null?void 0:s.vector)||[0,0],l}function Be(t,e={}){return Ke(ze(t,e),e)}var Re=class Bt extends O{constructor(...e){super(...e),this.points=[]}onStart(e){return this.el=document.createElementNS("http://www.w3.org/2000/svg","path"),this.points=[e],this.attr("fill",this.brush.color),this.attr("d",this.getSvgData(this.points)),this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&this.points.push(e),this.attr("d",this.getSvgData(this.points)),!0}onEnd(){const e=this.el;return this.el=null,!!e}getSvgData(e){return Bt.getSvgData(e,this.brush)}static getSvgData(e,s){const n=Be(e,{size:s.size,thinning:.9,simulatePressure:!1,start:{taper:5},end:{taper:5},...s.stylusOptions});if(!n.length)return"";const r=n.reduce((i,[a,o],l,p)=>{const[v,y]=p[(l+1)%p.length];return i.push(a,o,(a+v)/2,(o+y)/2),i},["M",...n[0],"Q"]);return r.push("Z"),r.map(i=>typeof i=="number"?i.toFixed(2):i).join(" ")}};function Oe(t){return{draw:new Me(t),stylus:new Re(t),line:new Le(t),rectangle:new De(t),ellipse:new Ce(t),eraseLine:new ke(t)}}var Ue=class{constructor(t={}){this.options=t,this.el=null,this.svgPoint=null,this.eventEl=null,this.shiftPressed=!1,this.altPressed=!1,this.drawing=!1,this._emitter=xe(),this._originalPointerId=null,this._models=Oe(this),this._opStack=[],this._opIndex=0,this._disposables=[],this._elements=[],this.options.brush||(this.options.brush={color:"black",size:3,mode:"stylus"}),t.el&&this.mount(t.el,t.eventTarget,t.window)}get model(){return this._models[this.mode]}get mounted(){return!!this.el}get mode(){return this.options.brush.mode||"stylus"}set mode(t){this._models[this.mode].onUnselected(),this.options.brush.mode=t,this.model.onSelected(this.el)}get brush(){return this.options.brush}set brush(t){this.options.brush=t}resolveSelector(t){return typeof t=="string"?document.querySelector(t):t||null}mount(t,e,s=window){if(this.el)throw new Error("[drauu] already mounted, unmount previous target first");if(this.el=this.resolveSelector(t),!this.el)throw new Error("[drauu] target element not found");if(this.el.tagName.toLocaleLowerCase()!=="svg")throw new Error("[drauu] can only mount to a SVG element");if(!this.el.createSVGPoint)throw new Error("[drauu] SVG element must be create by document.createElementNS('http://www.w3.org/2000/svg', 'svg')");this.svgPoint=this.el.createSVGPoint();const n=this.resolveSelector(e)||this.el,r=this.eventStart.bind(this),i=this.eventMove.bind(this),a=this.eventEnd.bind(this),o=this.eventKeyboard.bind(this),l=this.touchMove.bind(this);n.addEventListener("pointerdown",r,{passive:!1}),s.addEventListener("pointermove",i,{passive:!1}),s.addEventListener("pointerup",a,{passive:!1}),s.addEventListener("pointercancel",a,{passive:!1}),s.addEventListener("keydown",o,!1),s.addEventListener("keyup",o,!1),s.addEventListener("touchmove",l,{passive:!1}),this._disposables.push(()=>{n.removeEventListener("pointerdown",r),s.removeEventListener("pointermove",i),s.removeEventListener("pointerup",a),s.removeEventListener("pointercancel",a),s.removeEventListener("keydown",o,!1),s.removeEventListener("keyup",o,!1),s.removeEventListener("touchmove",l)}),this._emitter.emit("mounted")}unmount(){this._disposables.forEach(t=>t()),this._disposables.length=0,this._elements.length=0,this.el=null,this._emitter.emit("unmounted")}on(t,e){return this._emitter.on(t,e)}undo(){return!this.canUndo()||this.drawing?!1:(this._opStack[--this._opIndex].undo(),this._emitter.emit("changed"),!0)}redo(){return!this.canRedo()||this.drawing?!1:(this._opStack[this._opIndex++].redo(),this._emitter.emit("changed"),!0)}canRedo(){return this._opIndex0}eventMove(t){!this.acceptsInput(t)||!this.drawing||this.model._eventMove(t)&&(t.stopPropagation(),t.preventDefault(),this._emitter.emit("changed"))}eventStart(t){this.acceptsInput(t)&&(t.stopPropagation(),t.preventDefault(),this._currentNode&&this.cancel(),this.drawing=!0,this._originalPointerId=t.pointerId,this._emitter.emit("start"),this._currentNode=this.model._eventDown(t),this._currentNode&&this.mode!=="eraseLine"&&this.el.appendChild(this._currentNode),this._emitter.emit("changed"))}eventEnd(t){if(!this.acceptsInput(t)||!this.drawing)return;const e=this.model._eventUp(t);if(!e)this.cancel();else if(e===!0){const s=this._currentNode;s&&(this._appendNode(s),this.commit({undo:()=>this._removeNode(s),redo:()=>this._restoreNode(s)}))}else this.commit(e);this.drawing=!1,this._emitter.emit("end"),this._emitter.emit("changed"),this._originalPointerId=null}touchMove(t){Array.from(t.touches).some(e=>e.touchType==="stylus"&&e.identifier===this._originalPointerId)&&t.preventDefault()}acceptsInput(t){return(!this.options.acceptsInputTypes||this.options.acceptsInputTypes.includes(t.pointerType))&&!(this._originalPointerId&&this._originalPointerId!==t.pointerId)}eventKeyboard(t){this.shiftPressed===t.shiftKey&&this.altPressed===t.altKey||(this.shiftPressed=t.shiftKey,this.altPressed=t.altKey,this.model.point&&this.model.onMove(this.model.point)&&this._emitter.emit("changed"))}commit(t){this._opStack.length=this._opIndex,this._opStack.push(t),this._opIndex++;const e=this._currentNode;this._currentNode=void 0,this._emitter.emit("committed",e)}clear(){this._opStack.length=0,this._opIndex=0,this._elements=[],this.cancel(),this.el.innerHTML="",this._emitter.emit("changed")}cancel(){this._currentNode&&(this.el.removeChild(this._currentNode),this._currentNode=void 0,this._emitter.emit("canceled"))}dump(){return this.el.innerHTML}load(t){this.clear(),this.el.innerHTML=t}_appendNode(t){const e=this._elements.at(-1);e?e.after(t):this.el.append(t);const s=this._elements.push(t)-1;t.dataset.drauu_index=s.toString()}_removeNode(t){t.remove(),this._elements[+t.dataset.drauu_index]=null}_restoreNode(t){const e=+t.dataset.drauu_index;this._elements[e]=t;for(let s=e-1;s>=0;s--){const n=this._elements[s];if(n){n.after(t);return}}this.el.prepend(t)}};function Ge(t){return new Ue(t)}const Ve=Vt(()=>{const{currentSlideNo:t,isPresenter:e}=Ft(),s=["#ff595e","#ffca3a","#8ac926","#1982c4","#6a4c93","#ffffff","#000000"],n=ct("slidev-drawing-enabled",!1),r=ct("slidev-drawing-pinned",!1),i=qt(ct("slidev-drawing-brush",{color:s[0],size:4,mode:"stylus"})),a=L(!1),o=L(!1),l=L(!1),p=L(!1),v=L("stylus"),y=C(()=>ft.drawings.syncAll||e.value);let x=!1;const d=C({get(){return v.value},set(h){v.value=h,h==="arrow"?(c.mode="line",i.arrowEnd=!0):(c.mode=h,i.arrowEnd=!1)}}),f=Nt({brush:i,acceptsInputTypes:C(()=>n.value&&(!ft.drawings.presenterOnly||e.value)?void 0:["pen"]),coordinateTransform:!1}),c=Ht(Ge(f));function P(){c.clear(),y.value&&wt(t.value,"")}function z(){l.value=c.canRedo(),o.value=c.canUndo(),p.value=!!c.el?.children.length}function D(h){x=!0;const _=dt[h||t.value];_!=null?c.load(_):c.clear(),z(),x=!1}return c.on("changed",()=>{if(z(),!x){const h=c.dump(),_=t.value;(dt[_]||"")!==h&&y.value&&wt(_,c.dump())}}),ie(h=>{x=!0,h[t.value]!=null&&c.load(h[t.value]||""),x=!1,z()}),Zt(()=>{Yt(t,()=>{c.mounted&&D()},{immediate:!0})}),c.on("start",()=>a.value=!0),c.on("end",()=>a.value=!1),window.addEventListener("keydown",h=>{if(!n.value||re.value)return;const _=!h.ctrlKey&&!h.altKey&&!h.shiftKey&&!h.metaKey;let S=!0;h.code==="KeyZ"&&(h.ctrlKey||h.metaKey)?h.shiftKey?c.redo():c.undo():h.code==="Escape"?n.value=!1:h.code==="KeyL"&&_?d.value="line":h.code==="KeyA"&&_?d.value="arrow":h.code==="KeyS"&&_?d.value="stylus":h.code==="KeyR"&&_?d.value="rectangle":h.code==="KeyE"&&_?d.value="ellipse":h.code==="KeyC"&&_?P():h.code.startsWith("Digit")&&_&&+h.code[5]<=s.length?i.color=s[+h.code[5]-1]:S=!1,S&&(h.preventDefault(),h.stopPropagation())},!1),{brush:i,brushColors:s,canClear:p,canRedo:l,canUndo:o,clear:P,drauu:c,drauuOptions:f,drawingEnabled:n,drawingMode:d,drawingPinned:r,drawingState:dt,isDrawing:a,loadCanvas:D}}),qe=["innerHTML"],fs=mt({__name:"DrawingPreview",props:{page:{}},setup(t){const{drawingState:e}=Ve();return(s,n)=>Y(e)[t.page]?(X(),et("svg",{key:0,class:"w-full h-full absolute top-0 pointer-events-none",innerHTML:Y(e)[t.page]},null,8,qe)):At("v-if",!0)}}),F=Nt({});let He=[],Ze=[];R(F,"$syncUp",!0);R(F,"$syncDown",!0);R(F,"$paused",!1);R(F,"$onSet",t=>He.push(t));R(F,"$onPatch",t=>Ze.push(t));oe();R(F,"$patch",async()=>!1);const Ye=ae(F,F,!0);window.navigator.userAgent.match(/Chrome\/(\d+)/)?.[1];window.navigator.userAgent.match(/Chrome\/(\d+)/)?.[1];class Xe{constructor(){this._screenshotSession=null}getSnapshot(e,s){const n=e+(s?"-dark":"-light"),r=Ye.state[n];if(!r)return;const i=le(e);if(i&&r?.revision===i?.meta.slide.revision)return r.image}async saveSnapshot(e,s,n){return!1}async startCapturing(e){return!1}}const Je=new Xe,Qe=["id"],We=["id"],ts={class:"slidev-slide-container w-full h-full relative"},es=["src"],ss=mt({__name:"SlideContainer",props:{width:{type:Number},meta:{default:()=>({})},isMain:{type:Boolean,default:!1},no:{type:Number,required:!1},useSnapshot:{type:Boolean,default:!1},contentStyle:{type:Object,default:()=>({})}},setup(t){const e=t,{isPrintMode:s}=Ft(),n=L(null),r=Xt(n),i=L(null),a=C(()=>e.width??r.width.value),o=C(()=>e.width?e.width/Mt.value:r.height.value),l=C(()=>bt.value&&!s.value?+bt.value:Math.min(a.value/Pt.value,o.value/Et.value)),p=C(()=>({...e.contentStyle,height:`${Et.value}px`,width:`${Pt.value}px`,"--slidev-slide-scale":l.value})),v=C(()=>e.width?{width:`${e.width}px`,height:`${e.width/Mt.value}px`}:{});if(e.isMain){const x=document.documentElement.style;Jt(()=>x.setProperty("--slidev-slide-scale",l.value.toString())),Qt(()=>x.removeProperty("--slidev-slide-scale"))}A(he,l),A(ue,i);const y=C(()=>{if(!(e.no==null||!e.useSnapshot))return Je.getSnapshot(e.no,ce.value)});return(x,d)=>y.value?(X(),et(Wt,{key:1},[At(" Image Snapshot "),V("div",ts,[V("img",{src:y.value,class:"w-full h-full object-cover",style:tt(v.value)},null,12,es),d[0]||(d[0]=V("div",{absolute:"","bottom-1":"","right-1":"","p0.5":"","text-cyan:75":"","bg-cyan:10":"",rounded:"",title:"Snapshot"},[V("div",{class:"i-carbon-camera"})],-1))])],2112)):(X(),et("div",{key:0,id:t.isMain?"slide-container":void 0,ref_key:"container",ref:n,class:"slidev-slide-container",style:tt(v.value)},[V("div",{id:t.isMain?"slide-content":void 0,ref_key:"slideElement",ref:i,class:"slidev-slide-content",style:tt(p.value)},[_t(x.$slots,"default",{},void 0,!0)],12,We),_t(x.$slots,"controls",{},void 0,!0)],12,Qe))}}),ps=jt(ss,[["__scopeId","data-v-fd079fcd"]]),ns=[Object.values([])[0],Object.values([])[0]].filter(Boolean),gs={render:()=>ns.map(t=>rt(t))},rs=[Object.values([])[0],Object.values([])[0]].filter(Boolean),ms={render:()=>rs.map(t=>rt(t))},is=[Object.values([])[0],Object.values([])[0]].filter(Boolean),os={render:()=>is.map(t=>rt(t))},as=[Object.values([])[0],Object.values([])[0]].filter(Boolean),ls={render:()=>as.map(t=>rt(t))},hs=["data-slidev-no","lang"],us=mt({__name:"SlideWrapper",props:{clicksContext:{type:Object,required:!0},renderContext:{type:String,default:"slide"},route:{type:Object,required:!0}},setup(t){const e=t,s=C(()=>e.route.meta?.slide?.frontmatter.zoom??1);A(de,e.route),A(fe,e.route.meta.slide.frontmatter),A(pe,L(e.route.no)),A(ge,L(e.renderContext)),A(me,te(e,"clicksContext")),A(ve,s);const n=C(()=>({"user-select":ft.selectable?void 0:"none","--slidev-slide-zoom-scale":s.value===1?void 0:s.value}));return(r,i)=>(X(),et("div",{"data-slidev-no":e.route.no,class:ee(Y(ye)(t.route,["slide","presenter"].includes(e.renderContext)?"":"disable-view-transition")),style:tt(n.value),lang:e.route.meta.slide.frontmatter.lang},[St(Y(ls)),(X(),se(ne(e.route.component))),St(Y(os))],14,hs))}}),vs=jt(us,[["__scopeId","data-v-00f825d3"]]);export{ms as G,vs as S,fs as _,ps as a,gs as b,Ve as u}; diff --git a/assets/slidev/TimerBar.vue_vue_type_script_setup_true_lang-BXE25vS4.js b/assets/slidev/TimerBar.vue_vue_type_script_setup_true_lang-BUSgv3jk.js similarity index 97% rename from assets/slidev/TimerBar.vue_vue_type_script_setup_true_lang-BXE25vS4.js rename to assets/slidev/TimerBar.vue_vue_type_script_setup_true_lang-BUSgv3jk.js index ac3aa617bdb330efab24593638a727d03ac281fb..888c6907f47c53c92506231140328bbcf115178f 100644 --- a/assets/slidev/TimerBar.vue_vue_type_script_setup_true_lang-BXE25vS4.js +++ b/assets/slidev/TimerBar.vue_vue_type_script_setup_true_lang-BUSgv3jk.js @@ -1 +1 @@ -import{f as w,e as u,F as $,aj as M,T as x,o,k as f,n as A,d as T,w as B,j as m,aq as D,z as s,ar as N,ai as z,P as j}from"../modules/vue-CZamTkmS.js";import{a as q,d as F,o as b,q as P}from"../index-D8MtK2Qe.js";const V={class:"relative flex gap-px"},G=w({__name:"CurrentProgressBar",props:{clicksContext:{},current:{}},setup(r){const e=r,a=q(),t=s(()=>e.clicksContext??a.clicksContext.value),l=s(()=>e.current??a.currentSlideNo.value),{total:n}=a;return(d,g)=>(o(),u("div",V,[(o(!0),u($,null,M(x(n)-1,i=>(o(),u("div",{key:i,class:A(["border-x border-b border-main h-4px transition-all",i[i===l.value?(o(),u("div",{key:0,class:"h-full bg-primary op75 transition-all",style:f({width:`${t.value.total===0?0:t.value.current/(t.value.total+1)*100}%`})},null,4)):m("v-if",!0)]),_:2},1024)],6))),128))]))}});function E(){const r=s(()=>b.timer||"stopwatch"),e=s(()=>P(b.duration).seconds),a=N(100,{controls:!0}),t=z(F,"timer"),l=s(()=>t.value?.status),n=s(()=>(a.counter.value,t.value.status==="stopped"||!t.value.startedAt?0:t.value.status==="paused"?t.value.pausedAt-t.value.startedAt:Date.now()-t.value.startedAt)),d=s(()=>n.value/1e3),g=s(()=>d.value/e.value*100),i=s(()=>{if(r.value==="stopwatch"&&(t.value.status==="stopped"||!t.value.startedAt))return{h:"",m:"-",s:"--",ms:"-"};const c=r.value==="countdown"?e.value*1e3-n.value:n.value;let p=Math.floor(c/1e3/60/60).toString();p==="0"&&(p="");let v=Math.floor(c/1e3/60%60).toString();p&&(v=v.padStart(2,"0"));const C=Math.floor(c/1e3%60).toString().padStart(2,"0"),S=Math.floor(c%1e3/100).toString();return{h:p,m:v,s:C,ms:S}});function y(){a.pause(),t.value={status:"stopped",slides:{},startedAt:0,pausedAt:0}}function h(){t.value&&(t.value?.status==="stopped"?(t.value.status="running",t.value.startedAt=Date.now()):t.value.status==="paused"&&(t.value.status="running",t.value.startedAt=Date.now()-(t.value.pausedAt-t.value.startedAt)),a.resume())}function _(){t.value.status="paused",t.value.pausedAt=Date.now(),a.pause()}function k(){t.value.status==="running"?_():h()}return{state:t,status:l,timer:i,reset:y,toggle:k,resume:h,pause:_,passed:d,percentage:g,duration:e,mode:r}}const I={class:"border-b mt-px border-main relative flex h-4px"},H=w({__name:"TimerBar",setup(r){const e=j(E()),a=s(()=>e.status==="stopped"?"op50":e.status==="paused"?"bg-blue":e.percentage>100?"bg-red":e.percentage>80?"bg-yellow":"bg-green");return(t,l)=>(o(),u("div",I,[e.status!=="stopped"?(o(),u("div",{key:0,class:A(["h-4px",a.value]),style:f({width:`${e.percentage}%`})},null,6)):m("v-if",!0),m(" {{ timesplits }} ")]))}});export{G as _,H as a,E as u}; +import{f as w,e as u,F as $,aj as M,T as x,o,k as f,n as A,d as T,w as B,j as m,aq as D,z as s,ar as N,ai as z,P as j}from"../modules/vue-CZamTkmS.js";import{a as q,d as F,o as b,q as P}from"../index-CIas0rwA.js";const V={class:"relative flex gap-px"},G=w({__name:"CurrentProgressBar",props:{clicksContext:{},current:{}},setup(r){const e=r,a=q(),t=s(()=>e.clicksContext??a.clicksContext.value),l=s(()=>e.current??a.currentSlideNo.value),{total:n}=a;return(d,g)=>(o(),u("div",V,[(o(!0),u($,null,M(x(n)-1,i=>(o(),u("div",{key:i,class:A(["border-x border-b border-main h-4px transition-all",i[i===l.value?(o(),u("div",{key:0,class:"h-full bg-primary op75 transition-all",style:f({width:`${t.value.total===0?0:t.value.current/(t.value.total+1)*100}%`})},null,4)):m("v-if",!0)]),_:2},1024)],6))),128))]))}});function E(){const r=s(()=>b.timer||"stopwatch"),e=s(()=>P(b.duration).seconds),a=N(100,{controls:!0}),t=z(F,"timer"),l=s(()=>t.value?.status),n=s(()=>(a.counter.value,t.value.status==="stopped"||!t.value.startedAt?0:t.value.status==="paused"?t.value.pausedAt-t.value.startedAt:Date.now()-t.value.startedAt)),d=s(()=>n.value/1e3),g=s(()=>d.value/e.value*100),i=s(()=>{if(r.value==="stopwatch"&&(t.value.status==="stopped"||!t.value.startedAt))return{h:"",m:"-",s:"--",ms:"-"};const c=r.value==="countdown"?e.value*1e3-n.value:n.value;let p=Math.floor(c/1e3/60/60).toString();p==="0"&&(p="");let v=Math.floor(c/1e3/60%60).toString();p&&(v=v.padStart(2,"0"));const C=Math.floor(c/1e3%60).toString().padStart(2,"0"),S=Math.floor(c%1e3/100).toString();return{h:p,m:v,s:C,ms:S}});function y(){a.pause(),t.value={status:"stopped",slides:{},startedAt:0,pausedAt:0}}function h(){t.value&&(t.value?.status==="stopped"?(t.value.status="running",t.value.startedAt=Date.now()):t.value.status==="paused"&&(t.value.status="running",t.value.startedAt=Date.now()-(t.value.pausedAt-t.value.startedAt)),a.resume())}function _(){t.value.status="paused",t.value.pausedAt=Date.now(),a.pause()}function k(){t.value.status==="running"?_():h()}return{state:t,status:l,timer:i,reset:y,toggle:k,resume:h,pause:_,passed:d,percentage:g,duration:e,mode:r}}const I={class:"border-b mt-px border-main relative flex h-4px"},H=w({__name:"TimerBar",setup(r){const e=j(E()),a=s(()=>e.status==="stopped"?"op50":e.status==="paused"?"bg-blue":e.percentage>100?"bg-red":e.percentage>80?"bg-yellow":"bg-green");return(t,l)=>(o(),u("div",I,[e.status!=="stopped"?(o(),u("div",{key:0,class:A(["h-4px",a.value]),style:f({width:`${e.percentage}%`})},null,6)):m("v-if",!0),m(" {{ timesplits }} ")]))}});export{G as _,H as a,E as u}; diff --git a/assets/slidev/context-z1Z7Rpcn.js b/assets/slidev/context-Ch1IIjuh.js similarity index 87% rename from assets/slidev/context-z1Z7Rpcn.js rename to assets/slidev/context-Ch1IIjuh.js index 97a42367197f562b3b4f90917ca55dd07a1f1979..199add762712592b399bdc2a626a4bf002225be9 100644 --- a/assets/slidev/context-z1Z7Rpcn.js +++ b/assets/slidev/context-Ch1IIjuh.js @@ -1 +1 @@ -import{a8 as t,z as d,r as j,ai as a,aN as $}from"../modules/vue-CZamTkmS.js";import{ah as f,ai as C,Y as x,ae as S,ag as p,ad as v,af as R,al as T,am as E,an as F}from"../index-D8MtK2Qe.js";function A(){const n=t(T),o=a(n,"nav"),e=t(f).value,s=a(e,"current"),i=t(R),c=t(p),r=t(S,{}),l=t(v,void 0),u=t(x,j(1)),m=t(C,d(()=>1));return{$slidev:n,$nav:o,$clicksContext:e,$clicks:s,$page:i,$route:l,$renderContext:c,$frontmatter:r,$scale:u,$zoom:m}}function D(n,o){return{...$(n,o===0?E:F),frontmatter:n}}export{D as f,A as u}; +import{a8 as t,z as d,r as j,ai as a,aN as $}from"../modules/vue-CZamTkmS.js";import{ah as f,ai as C,Y as x,ae as S,ag as p,ad as v,af as R,al as T,am as E,an as F}from"../index-CIas0rwA.js";function A(){const n=t(T),o=a(n,"nav"),e=t(f).value,s=a(e,"current"),i=t(R),c=t(p),r=t(S,{}),l=t(v,void 0),u=t(x,j(1)),m=t(C,d(()=>1));return{$slidev:n,$nav:o,$clicksContext:e,$clicks:s,$page:i,$route:l,$renderContext:c,$frontmatter:r,$scale:u,$zoom:m}}function D(n,o){return{...$(n,o===0?E:F),frontmatter:n}}export{D as f,A as u}; diff --git a/assets/slidev/entry-C7bHC-DN.js b/assets/slidev/entry-Bg1XkCzs.js similarity index 87% rename from assets/slidev/entry-C7bHC-DN.js rename to assets/slidev/entry-Bg1XkCzs.js index 2b3b5e2a46eec458de1396760a05102b66727d6a..be54eaadec220fbbd28874ecfc6d354ffaf60fb7 100644 --- a/assets/slidev/entry-C7bHC-DN.js +++ b/assets/slidev/entry-Bg1XkCzs.js @@ -1 +1 @@ -import{e as n,d as t,w as o,a as r,o as i,g as l,ad as a}from"../modules/vue-CZamTkmS.js";import{_ as d}from"../index-D8MtK2Qe.js";import"../modules/shiki-COQlGosf.js";const c={},f={class:"h-full w-full flex items-center justify-center gap-5 lt-md:flex-col"};function p(u,e){const s=r("RouterLink");return i(),n("div",f,[t(s,{to:"/",class:"page-link"},{default:o(()=>[...e[0]||(e[0]=[l("div",{class:"i-carbon:presentation-file"},null,-1),a(" Slides ",-1)])]),_:1}),t(s,{to:"/presenter",class:"page-link"},{default:o(()=>[...e[1]||(e[1]=[l("div",{class:"i-carbon:user-speaker"},null,-1),a(" Presenter ",-1)])]),_:1}),t(s,{to:"/notes",class:"page-link"},{default:o(()=>[...e[2]||(e[2]=[l("div",{class:"i-carbon:catalog"},null,-1),a(" Notes ",-1)])]),_:1}),t(s,{to:"/overview",class:"page-link"},{default:o(()=>[...e[3]||(e[3]=[l("div",{class:"i-carbon:list-boxes"},null,-1),a(" Overview ",-1)])]),_:1})])}const k=d(c,[["render",p],["__scopeId","data-v-e8604146"]]);export{k as default}; +import{e as n,d as t,w as o,a as r,o as i,g as l,ad as a}from"../modules/vue-CZamTkmS.js";import{_ as d}from"../index-CIas0rwA.js";import"../modules/shiki-COQlGosf.js";const c={},f={class:"h-full w-full flex items-center justify-center gap-5 lt-md:flex-col"};function p(u,e){const s=r("RouterLink");return i(),n("div",f,[t(s,{to:"/",class:"page-link"},{default:o(()=>[...e[0]||(e[0]=[l("div",{class:"i-carbon:presentation-file"},null,-1),a(" Slides ",-1)])]),_:1}),t(s,{to:"/presenter",class:"page-link"},{default:o(()=>[...e[1]||(e[1]=[l("div",{class:"i-carbon:user-speaker"},null,-1),a(" Presenter ",-1)])]),_:1}),t(s,{to:"/notes",class:"page-link"},{default:o(()=>[...e[2]||(e[2]=[l("div",{class:"i-carbon:catalog"},null,-1),a(" Notes ",-1)])]),_:1}),t(s,{to:"/overview",class:"page-link"},{default:o(()=>[...e[3]||(e[3]=[l("div",{class:"i-carbon:list-boxes"},null,-1),a(" Overview ",-1)])]),_:1})])}const k=d(c,[["render",p],["__scopeId","data-v-32bef920"]]);export{k as default}; diff --git a/assets/slidev/notes-Bll_90vV.js b/assets/slidev/notes-B-ufuhY-.js similarity index 94% rename from assets/slidev/notes-Bll_90vV.js rename to assets/slidev/notes-B-ufuhY-.js index 5c0e19f530c68ab156488c2468aac6fb364005ba..6f453b8a801d3e84a5e2c41eb18e9e346be352ce 100644 --- a/assets/slidev/notes-Bll_90vV.js +++ b/assets/slidev/notes-B-ufuhY-.js @@ -1 +1 @@ -import{f as $,W as S,K as T,e as f,d as t,w as l,g as s,k as N,T as a,t as g,F,r as m,z as v,o as p,ad as V}from"../modules/vue-CZamTkmS.js";import{u as H,a as B,f as E,s as D,d as x,e as I}from"../index-D8MtK2Qe.js";import{_ as L,C as K}from"./NoteDisplay.vue_vue_type_style_index_0_lang-D15LqXLz.js";import{_ as M,a as R}from"./TimerBar.vue_vue_type_script_setup_true_lang-BXE25vS4.js";import{_ as i}from"./IconButton.vue_vue_type_script_setup_true_lang-DEyEjvqJ.js";import{_ as U}from"./Modal.vue_vue_type_script_setup_true_lang-CSndaKrY.js";import"../modules/shiki-COQlGosf.js";const W={class:"flex my-1"},j={class:"h-full flex flex-col"},q={class:"flex-none border-t border-main",px3:"",py2:""},A={class:"flex-none border-t border-main"},G={class:"flex gap-1 items-center px-6 py-3"},J={key:0,class:"i-carbon:minimize"},O={key:1,class:"i-carbon:maximize"},P={class:"px2 my-auto"},Q={class:"text-lg"},X={class:"opacity-50 text-sm"},ae=$({__name:"notes",setup(Y){H({title:`Notes - ${D}`});const{slides:y,total:C}=B(),{isFullscreen:_,toggle:z}=E,k=m(),o=S("slidev-notes-font-size",18),n=v(()=>x.page),r=m(!1),b=v(()=>y.value.find(c=>c.no===n.value));T(n,()=>{k.value?.scrollTo({left:0,top:0,behavior:"smooth"}),window.scrollTo({left:0,top:0,behavior:"smooth"})});function h(){o.value=o.value+1}function w(){o.value=o.value-1}const d=v(()=>{const c=x.clicks,e=x.clicksTotal;return I(m(c),void 0,e)});return(c,e)=>(p(),f(F,null,[t(U,{modelValue:r.value,"onUpdate:modelValue":e[1]||(e[1]=u=>r.value=u),class:"px-6 py-4 flex flex-col gap-2"},{default:l(()=>[e[3]||(e[3]=s("div",{class:"flex gap-2 text-xl"},[s("div",{class:"i-carbon:information my-auto"}),V(" Help ")],-1)),e[4]||(e[4]=s("div",{class:"prose dark:prose-invert"},[s("p",null,"This is the hands-free live notes viewer."),s("p",null,"It's designed to be used in a separate view or device. The progress is controlled by and auto synced with the main presenter or slide.")],-1)),s("div",W,[s("button",{class:"slidev-form-button",onClick:e[0]||(e[0]=u=>r.value=!1)}," Close ")])]),_:1},8,["modelValue"]),s("div",j,[t(M,{"clicks-context":d.value,current:n.value},null,8,["clicks-context","current"]),t(R),s("div",{ref_key:"scroller",ref:k,class:"px-5 py-3 flex-auto h-full overflow-auto",style:N({fontSize:`${a(o)}px`})},[t(L,{note:b.value?.meta.slide.note,"note-html":b.value?.meta.slide.noteHTML,placeholder:`No notes for Slide ${n.value}.`,"clicks-context":d.value,"auto-scroll":!0},null,8,["note","note-html","placeholder","clicks-context"])],4),s("div",q,[t(K,{"clicks-context":d.value,readonly:""},null,8,["clicks-context"])]),s("div",A,[s("div",G,[t(i,{title:a(_)?"Close fullscreen":"Enter fullscreen",onClick:a(z)},{default:l(()=>[a(_)?(p(),f("div",J)):(p(),f("div",O))]),_:1},8,["title","onClick"]),t(i,{title:"Increase font size",onClick:h},{default:l(()=>[...e[5]||(e[5]=[s("div",{class:"i-carbon:zoom-in"},null,-1)])]),_:1}),t(i,{title:"Decrease font size",onClick:w},{default:l(()=>[...e[6]||(e[6]=[s("div",{class:"i-carbon:zoom-out"},null,-1)])]),_:1}),t(i,{title:"Edit notes",to:"/notes-edit",target:"_blank"},{default:l(()=>[...e[7]||(e[7]=[s("div",{class:"i-carbon:edit"},null,-1)])]),_:1}),t(i,{title:"Help",class:"rounded-full",onClick:e[2]||(e[2]=u=>r.value=!0)},{default:l(()=>[...e[8]||(e[8]=[s("div",{class:"i-carbon:help"},null,-1)])]),_:1}),e[9]||(e[9]=s("div",{class:"flex-auto"},null,-1)),s("div",P,[s("span",Q,g(n.value),1),s("span",X," / "+g(a(C)),1)])])])])],64))}});export{ae as default}; +import{f as $,W as S,K as T,e as f,d as t,w as l,g as s,k as N,T as a,t as g,F,r as m,z as v,o as p,ad as V}from"../modules/vue-CZamTkmS.js";import{u as H,a as B,f as E,s as D,d as x,e as I}from"../index-CIas0rwA.js";import{_ as L,C as K}from"./NoteDisplay.vue_vue_type_style_index_0_lang-CA1o434c.js";import{_ as M,a as R}from"./TimerBar.vue_vue_type_script_setup_true_lang-BUSgv3jk.js";import{_ as i}from"./IconButton.vue_vue_type_script_setup_true_lang-DEyEjvqJ.js";import{_ as U}from"./Modal.vue_vue_type_script_setup_true_lang-CSndaKrY.js";import"../modules/shiki-COQlGosf.js";const W={class:"flex my-1"},j={class:"h-full flex flex-col"},q={class:"flex-none border-t border-main",px3:"",py2:""},A={class:"flex-none border-t border-main"},G={class:"flex gap-1 items-center px-6 py-3"},J={key:0,class:"i-carbon:minimize"},O={key:1,class:"i-carbon:maximize"},P={class:"px2 my-auto"},Q={class:"text-lg"},X={class:"opacity-50 text-sm"},ae=$({__name:"notes",setup(Y){H({title:`Notes - ${D}`});const{slides:y,total:C}=B(),{isFullscreen:_,toggle:z}=E,k=m(),o=S("slidev-notes-font-size",18),n=v(()=>x.page),r=m(!1),b=v(()=>y.value.find(c=>c.no===n.value));T(n,()=>{k.value?.scrollTo({left:0,top:0,behavior:"smooth"}),window.scrollTo({left:0,top:0,behavior:"smooth"})});function h(){o.value=o.value+1}function w(){o.value=o.value-1}const d=v(()=>{const c=x.clicks,e=x.clicksTotal;return I(m(c),void 0,e)});return(c,e)=>(p(),f(F,null,[t(U,{modelValue:r.value,"onUpdate:modelValue":e[1]||(e[1]=u=>r.value=u),class:"px-6 py-4 flex flex-col gap-2"},{default:l(()=>[e[3]||(e[3]=s("div",{class:"flex gap-2 text-xl"},[s("div",{class:"i-carbon:information my-auto"}),V(" Help ")],-1)),e[4]||(e[4]=s("div",{class:"prose dark:prose-invert"},[s("p",null,"This is the hands-free live notes viewer."),s("p",null,"It's designed to be used in a separate view or device. The progress is controlled by and auto synced with the main presenter or slide.")],-1)),s("div",W,[s("button",{class:"slidev-form-button",onClick:e[0]||(e[0]=u=>r.value=!1)}," Close ")])]),_:1},8,["modelValue"]),s("div",j,[t(M,{"clicks-context":d.value,current:n.value},null,8,["clicks-context","current"]),t(R),s("div",{ref_key:"scroller",ref:k,class:"px-5 py-3 flex-auto h-full overflow-auto",style:N({fontSize:`${a(o)}px`})},[t(L,{note:b.value?.meta.slide.note,"note-html":b.value?.meta.slide.noteHTML,placeholder:`No notes for Slide ${n.value}.`,"clicks-context":d.value,"auto-scroll":!0},null,8,["note","note-html","placeholder","clicks-context"])],4),s("div",q,[t(K,{"clicks-context":d.value,readonly:""},null,8,["clicks-context"])]),s("div",A,[s("div",G,[t(i,{title:a(_)?"Close fullscreen":"Enter fullscreen",onClick:a(z)},{default:l(()=>[a(_)?(p(),f("div",J)):(p(),f("div",O))]),_:1},8,["title","onClick"]),t(i,{title:"Increase font size",onClick:h},{default:l(()=>[...e[5]||(e[5]=[s("div",{class:"i-carbon:zoom-in"},null,-1)])]),_:1}),t(i,{title:"Decrease font size",onClick:w},{default:l(()=>[...e[6]||(e[6]=[s("div",{class:"i-carbon:zoom-out"},null,-1)])]),_:1}),t(i,{title:"Edit notes",to:"/notes-edit",target:"_blank"},{default:l(()=>[...e[7]||(e[7]=[s("div",{class:"i-carbon:edit"},null,-1)])]),_:1}),t(i,{title:"Help",class:"rounded-full",onClick:e[2]||(e[2]=u=>r.value=!0)},{default:l(()=>[...e[8]||(e[8]=[s("div",{class:"i-carbon:help"},null,-1)])]),_:1}),e[9]||(e[9]=s("div",{class:"flex-auto"},null,-1)),s("div",P,[s("span",Q,g(n.value),1),s("span",X," / "+g(a(C)),1)])])])])],64))}});export{ae as default}; diff --git a/assets/slidev/notes-edit-DBQoatID.js b/assets/slidev/notes-edit-EFZ74HT3.js similarity index 94% rename from assets/slidev/notes-edit-DBQoatID.js rename to assets/slidev/notes-edit-EFZ74HT3.js index dd72f0baf979eec7fd4647b56dd9810f923ed79e..ea0fb3b7f7da89057734db6c6aee27503b457b1b 100644 --- a/assets/slidev/notes-edit-DBQoatID.js +++ b/assets/slidev/notes-edit-EFZ74HT3.js @@ -1,2 +1,2 @@ -import{f as k,r as m,ak as w,e as N,d as p,w as c,g as t,af as _,ag as $,F as V,o as y,ad as a}from"../modules/vue-CZamTkmS.js";import{u as C,a as T,s as H}from"../index-D8MtK2Qe.js";import{u as z}from"./useSlideInfo-DSL8NNQ0.js";import{_ as B}from"./IconButton.vue_vue_type_script_setup_true_lang-DEyEjvqJ.js";import{_ as E}from"./Modal.vue_vue_type_script_setup_true_lang-CSndaKrY.js";import"../modules/shiki-COQlGosf.js";const D={class:"flex my-1"},F={class:"h-full"},I={class:"slidev-glass-effect fixed bottom-5 right-5 rounded-full border border-main"},A=k({__name:"notes-edit",setup(U){C({title:`Notes Edit - ${H}`});const{slides:i}=T(),l=m(!1),n=m(v(i.value));function v(o){const e=[];for(const s of o)s.meta.slide.note?.trim()&&(e.push(`--- #${s.no}`),e.push(""),e.push(s.meta.slide.note),e.push(""));return e.join(` +import{f as k,r as m,ak as w,e as N,d as p,w as c,g as t,af as _,ag as $,F as V,o as y,ad as a}from"../modules/vue-CZamTkmS.js";import{u as C,a as T,s as H}from"../index-CIas0rwA.js";import{u as z}from"./useSlideInfo-95lRLUff.js";import{_ as B}from"./IconButton.vue_vue_type_script_setup_true_lang-DEyEjvqJ.js";import{_ as E}from"./Modal.vue_vue_type_script_setup_true_lang-CSndaKrY.js";import"../modules/shiki-COQlGosf.js";const D={class:"flex my-1"},F={class:"h-full"},I={class:"slidev-glass-effect fixed bottom-5 right-5 rounded-full border border-main"},A=k({__name:"notes-edit",setup(U){C({title:`Notes Edit - ${H}`});const{slides:i}=T(),l=m(!1),n=m(v(i.value));function v(o){const e=[];for(const s of o)s.meta.slide.note?.trim()&&(e.push(`--- #${s.no}`),e.push(""),e.push(s.meta.slide.note),e.push(""));return e.join(` `)}function h(o,e){const s=o.split(/^(---\s*#\d+\s*)$/gm);s.forEach((x,b)=>{const r=x.match(/^---\s*#(\d+)\s*$/);if(r){const d=Number.parseInt(r[1]),u=s[b+1].trim(),f=e.find(g=>g.no===d);f&&(f.meta.slide.note=u,z(d).update({note:u}))}})}return w(n,o=>{h(o,i.value)},{debounce:300}),(o,e)=>(y(),N(V,null,[p(E,{modelValue:l.value,"onUpdate:modelValue":e[1]||(e[1]=s=>l.value=s),class:"px-6 py-4 flex flex-col gap-2"},{default:c(()=>[e[4]||(e[4]=t("div",{class:"flex gap-2 text-xl"},[t("div",{class:"i-carbon:information my-auto"}),a(" Help ")],-1)),e[5]||(e[5]=t("div",{class:"prose dark:prose-invert"},[t("p",null,"This is the batch notes editor. You can edit the notes for all the slides at once here."),t("p",null,[a("The note for each slide are separated by "),t("code",null,"--- #[no]"),a(" lines, you might want to keep them while editing.")])],-1)),t("div",D,[t("button",{class:"slidev-form-button",onClick:e[0]||(e[0]=s=>l.value=!1)}," Close ")])]),_:1},8,["modelValue"]),t("div",F,[t("div",I,[p(B,{title:"Help",class:"rounded-full",onClick:e[2]||(e[2]=s=>l.value=!0)},{default:c(()=>[...e[6]||(e[6]=[t("div",{class:"i-carbon:help text-2xl"},null,-1)])]),_:1})]),_(t("textarea",{"onUpdate:modelValue":e[3]||(e[3]=s=>n.value=s),class:"prose dark:prose-invert resize-none p5 outline-none bg-transparent block h-full w-full! max-w-full! max-h-full! min-h-full! min-w-full!"},null,512),[[$,n.value]])])],64))}});export{A as default}; diff --git a/assets/slidev/overview-s5HYztaj.js b/assets/slidev/overview-Eg3JoHVT.js similarity index 95% rename from assets/slidev/overview-s5HYztaj.js rename to assets/slidev/overview-Eg3JoHVT.js index 0bce64a4a2d6d3b7135ab36136dc07789793fc2f..407ba82969b5152efd132fb06ef75189a690ff8e 100644 --- a/assets/slidev/overview-s5HYztaj.js +++ b/assets/slidev/overview-Eg3JoHVT.js @@ -1 +1 @@ -import{_ as J,a as Y}from"../modules/unplugin-icons-ByIekoE6.js";import{f as U,ae as Z,K as L,E as ee,a7 as te,T as s,o,b as k,k as V,n as F,af as le,ag as ne,e as x,l as oe,ah as ie,r as H,ai as ae,p as q,L as se,g as a,F as P,aj as R,t as w,j as T,w as E,d as M,P as ce,z as I,Q as re}from"../modules/vue-CZamTkmS.js";import{u as ue,s as de,a as me,i as fe,b as B,t as ve,g as j,c as pe,C as O,p as he}from"../index-D8MtK2Qe.js";import{_ as ge,C as ke}from"./NoteDisplay.vue_vue_type_style_index_0_lang-D15LqXLz.js";import{S as be,_ as _e,a as xe}from"./SlideWrapper-Dcg6ZMCe.js";import{_ as A}from"./IconButton.vue_vue_type_script_setup_true_lang-DEyEjvqJ.js";import{u as ye}from"./useSlideInfo-DSL8NNQ0.js";import"../modules/shiki-COQlGosf.js";const we=["placeholder"],Ce=U({__name:"NoteEditable",props:{no:{type:Number,required:!0},class:{default:""},editing:{default:!1},style:{default:()=>({})},placeholder:{default:"No notes for this slide"},clicksContext:{type:Object},highlight:{default:!0},autoHeight:{default:!1}},emits:["update:editing","markerDblclick","markerClick"],setup(C,{emit:z}){const n=C,y=z,c=ie(n,"editing",y,{passive:!0}),{info:h,update:D}=ye(ae(n,"no")),m=H("");let S;const{ignoreUpdates:b}=Z(m,f=>{if(!c.value)return;const u=n.no;clearTimeout(S),S=setTimeout(()=>{D({note:f},u)},500)});L(()=>h.value?.note,(f="")=>{c.value||(clearTimeout(S),b(()=>{m.value=f}))},{immediate:!0,flush:"sync"});const r=H(),_=H();ee(()=>{c.value&&r.value?.focus()}),te(r,()=>{c.value=!1});function N(){!n.autoHeight||!r.value||!c.value||r.value.scrollHeight>r.value.clientHeight&&(r.value.style.height=`${r.value.scrollHeight}px`)}function W(f){c.value&&f.metaKey&&f.key==="s"&&(f.preventDefault(),D({note:m.value},n.no))}return L([m,c],()=>{q(()=>{N()})},{flush:"post",immediate:!0}),(f,u)=>s(c)?le((o(),x("textarea",{key:1,ref_key:"inputEl",ref:r,"onUpdate:modelValue":u[2]||(u[2]=g=>m.value=g),class:F(["prose dark:prose-invert resize-none overflow-auto outline-none bg-transparent block border-primary border-2",n.class]),style:V([{"line-height":"1.75"},[n.style,_.value!=null?{height:`${_.value}px`}:{}]]),placeholder:C.placeholder,onKeydown:[u[3]||(u[3]=oe(g=>c.value=!1,["esc"])),W]},null,46,we)),[[ne,m.value]]):(o(),k(ge,{key:0,class:F(["border-transparent border-2",[n.class,m.value?"":"opacity-25 italic select-none"]]),style:V(n.style),note:m.value||C.placeholder,"note-html":s(h)?.noteHTML,"clicks-context":C.clicksContext,"auto-scroll":!C.autoHeight,highlight:n.highlight,onMarkerClick:u[0]||(u[0]=(g,$)=>y("markerClick",g,$)),onMarkerDblclick:u[1]||(u[1]=(g,$)=>y("markerDblclick",g,$))},null,8,["class","style","note","note-html","clicks-context","auto-scroll","highlight"]))}}),De={class:"h-screen w-screen of-hidden flex"},$e={class:"grid grid-rows-[auto_max-content] border-r border-main select-none max-h-full h-full"},Fe={class:"relative"},Se={class:"absolute left-0 top-0 bottom-0 w-200 flex flex-col flex-auto items-end group p2 gap-1 max-h-full of-x-visible of-y-auto",style:{direction:"rtl"}},Ee=["onClick"],Me={p2:"",border:"t main"},He={class:"select-none w-13 text-right my4 flex flex-col gap-1 items-end"},Ne={class:"text-3xl op20 mb2"},Te=["onDblclick"],Be={class:"py3 mt-0.5 mr--8 ml--4 op0 transition group-hover:op100"},Ae={key:0,class:"select-none absolute bottom-0 right-0 bg-main rounded-tl p2 op35 text-xs"},Ve={class:"absolute top-0 right-0 px3 py1.5 border-b border-l rounded-lb bg-main border-main select-none"},We={class:"text-xs op50"},K=450,Ue=U({__name:"overview",setup(C){ue({title:`Overview - ${de}`});const{openInEditor:z,slides:n}=me(),y=ce(new Map),c=H([]),h=H(null),D=I(()=>n.value.map(e=>f(e.meta?.slide?.note||""))),m=I(()=>D.value.reduce((e,t)=>e+t,0)),S=I(()=>n.value.map(e=>N(e)).reduce((e,t)=>e+t,0)),b=re(),r=new WeakMap;function _(e){return r.has(e)||r.set(e,pe(e,O)),r.get(e)}function N(e){return e.meta?.clicks||_(e)?.total}function W(e){b.value===e?b.value=void 0:b.value=e}function f(e){const t=/[\w`'\-\u0392-\u03C9\u00C0-\u00FF\u0600-\u06FF\u0400-\u04FF]+|[\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF\u3040-\u309F\uAC00-\uD7AF]+/g,i=e.match(t);let v=0;if(!i)return 0;for(let l=0;l=19968?v+=i[l].length:v+=1;return v}function u(e){const t=e.getBoundingClientRect(),i=20;return t.top>=0-i&&t.left>=0-i&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)+i&&t.right<=(window.innerWidth||document.documentElement.clientWidth)+i}function g(){const e=[];Array.from(y.entries()).forEach(([t,i])=>{u(i)&&e.push(t)}),c.value=e}function $(e){const t=document.createElement("a");t.target="_blank",t.href=he+e.slice(1),t.click()}function Q(e){const t=y.get(e);t&&t.scrollIntoView({behavior:"smooth",block:"start"})}function X(e,t,i){const v=_(i);v.current===t?v.current=O:v.current=t,e.preventDefault()}return se(()=>{q(()=>{g()})}),(e,t)=>{const i=J,v=Y;return o(),x("div",De,[a("nav",$e,[a("div",Fe,[a("div",Se,[(o(!0),x(P,null,R(s(n),(l,p)=>(o(),x("div",{key:l.no,class:"relative",style:{direction:"ltr"}},[a("button",{class:F(["relative transition duration-300 w-8 h-8 rounded hover:bg-active hover:op100",c.value.includes(p)?"op100 text-primary bg-gray:5":"op20"]),onClick:d=>Q(p)},[a("div",null,w(p+1),1)],10,Ee),l.meta?.slide?.title?(o(),x("div",{key:0,class:F(["pointer-events-none select-none absolute left-110% top-50% translate-y--50% ws-nowrap z-label px2 slidev-glass-effect transition duration-400 op0 group-hover:op100",c.value.includes(p)?"text-primary":"text-main important-text-op-50"])},w(l.meta?.slide?.title),3)):T("v-if",!0)]))),128))])]),a("div",Me,[s(fe)?(o(),k(A,{key:1,title:s(B)?"Dark mode":"Light mode","pointer-events-none":"",op50:""},{default:E(()=>[s(B)?(o(),k(i,{key:0})):(o(),k(v,{key:1}))]),_:1},8,["title"])):(o(),k(A,{key:0,title:s(B)?"Switch to light mode theme":"Switch to dark mode theme",onClick:t[0]||(t[0]=l=>s(ve)())},{default:E(()=>[s(B)?(o(),k(i,{key:0})):(o(),k(v,{key:1}))]),_:1},8,["title"]))])]),a("main",{class:"flex-1 h-full of-auto",style:V(`grid-template-columns: repeat(auto-fit,minmax(${K}px,1fr))`),onScroll:g},[(o(!0),x(P,null,R(s(n),(l,p)=>(o(),x("div",{key:l.no,ref_for:!0,ref:d=>y.set(p,d),class:F(["relative border-t border-main of-hidden flex gap-4 min-h-50 group",p===0?"pt5":""])},[a("div",He,[a("div",Ne,w(p+1),1),M(A,{class:"mr--3 op0 group-hover:op80",title:"Play in new tab",onClick:d=>$(s(j)(l,!1))},{default:E(()=>[...t[2]||(t[2]=[a("div",{class:"i-carbon:presentation-file"},null,-1)])]),_:1},8,["onClick"]),T("v-if",!0)]),a("div",{class:"flex flex-col gap-2 my5",style:V({width:`${K}px`})},[a("div",{class:"border rounded border-main overflow-hidden bg-main select-none h-max",onDblclick:d=>$(s(j)(l,!1))},[(o(),k(xe,{key:l.no,width:K,class:"pointer-events-none important:[&_*]:select-none"},{default:E(()=>[M(be,{"clicks-context":_(l),route:l,"render-context":"overview"},null,8,["clicks-context","route"]),M(_e,{page:l.no},null,8,["page"])]),_:2},1024))],40,Te),N(l)?(o(),k(ke,{key:0,active:b.value===l,"clicks-context":_(l),class:"w-full mt-2",onDblclick:d=>W(l),onClick:d=>b.value=l},null,8,["active","clicks-context","onDblclick","onClick"])):T("v-if",!0)],4),a("div",Be,[M(A,{title:"Edit Note",class:F(["rounded-full w-9 h-9 text-sm",h.value===l.no?"important:op0":""]),onClick:d=>h.value=l.no},{default:E(()=>[...t[4]||(t[4]=[a("div",{class:"i-carbon:pen"},null,-1)])]),_:1},8,["class","onClick"])]),M(Ce,{no:l.no,class:"max-w-250 w-250 text-lg rounded p3","auto-height":!0,highlight:b.value===l,editing:h.value===l.no,"clicks-context":_(l),onDblclick:d=>h.value!==l.no?h.value=l.no:null,"onUpdate:editing":t[1]||(t[1]=d=>h.value=null),onMarkerClick:(d,G)=>X(d,G,l)},null,8,["no","highlight","editing","clicks-context","onDblclick","onMarkerClick"]),D.value[p]>0?(o(),x("div",Ae,w(D.value[p])+" words ",1)):T("v-if",!0)],2))),128))],36),a("div",Ve,[a("div",We,w(s(n).length)+" slides · "+w(S.value+s(n).length-1)+" clicks · "+w(m.value)+" words ",1)])])}}});export{Ue as default}; +import{_ as J,a as Y}from"../modules/unplugin-icons-ByIekoE6.js";import{f as U,ae as Z,K as L,E as ee,a7 as te,T as s,o,b as k,k as V,n as F,af as le,ag as ne,e as x,l as oe,ah as ie,r as H,ai as ae,p as q,L as se,g as a,F as P,aj as R,t as w,j as T,w as E,d as M,P as ce,z as I,Q as re}from"../modules/vue-CZamTkmS.js";import{u as ue,s as de,a as me,i as fe,b as B,t as ve,g as j,c as pe,C as O,p as he}from"../index-CIas0rwA.js";import{_ as ge,C as ke}from"./NoteDisplay.vue_vue_type_style_index_0_lang-CA1o434c.js";import{S as be,_ as _e,a as xe}from"./SlideWrapper-_oMsn9ML.js";import{_ as A}from"./IconButton.vue_vue_type_script_setup_true_lang-DEyEjvqJ.js";import{u as ye}from"./useSlideInfo-95lRLUff.js";import"../modules/shiki-COQlGosf.js";const we=["placeholder"],Ce=U({__name:"NoteEditable",props:{no:{type:Number,required:!0},class:{default:""},editing:{default:!1},style:{default:()=>({})},placeholder:{default:"No notes for this slide"},clicksContext:{type:Object},highlight:{default:!0},autoHeight:{default:!1}},emits:["update:editing","markerDblclick","markerClick"],setup(C,{emit:z}){const n=C,y=z,c=ie(n,"editing",y,{passive:!0}),{info:h,update:D}=ye(ae(n,"no")),m=H("");let S;const{ignoreUpdates:b}=Z(m,f=>{if(!c.value)return;const u=n.no;clearTimeout(S),S=setTimeout(()=>{D({note:f},u)},500)});L(()=>h.value?.note,(f="")=>{c.value||(clearTimeout(S),b(()=>{m.value=f}))},{immediate:!0,flush:"sync"});const r=H(),_=H();ee(()=>{c.value&&r.value?.focus()}),te(r,()=>{c.value=!1});function N(){!n.autoHeight||!r.value||!c.value||r.value.scrollHeight>r.value.clientHeight&&(r.value.style.height=`${r.value.scrollHeight}px`)}function W(f){c.value&&f.metaKey&&f.key==="s"&&(f.preventDefault(),D({note:m.value},n.no))}return L([m,c],()=>{q(()=>{N()})},{flush:"post",immediate:!0}),(f,u)=>s(c)?le((o(),x("textarea",{key:1,ref_key:"inputEl",ref:r,"onUpdate:modelValue":u[2]||(u[2]=g=>m.value=g),class:F(["prose dark:prose-invert resize-none overflow-auto outline-none bg-transparent block border-primary border-2",n.class]),style:V([{"line-height":"1.75"},[n.style,_.value!=null?{height:`${_.value}px`}:{}]]),placeholder:C.placeholder,onKeydown:[u[3]||(u[3]=oe(g=>c.value=!1,["esc"])),W]},null,46,we)),[[ne,m.value]]):(o(),k(ge,{key:0,class:F(["border-transparent border-2",[n.class,m.value?"":"opacity-25 italic select-none"]]),style:V(n.style),note:m.value||C.placeholder,"note-html":s(h)?.noteHTML,"clicks-context":C.clicksContext,"auto-scroll":!C.autoHeight,highlight:n.highlight,onMarkerClick:u[0]||(u[0]=(g,$)=>y("markerClick",g,$)),onMarkerDblclick:u[1]||(u[1]=(g,$)=>y("markerDblclick",g,$))},null,8,["class","style","note","note-html","clicks-context","auto-scroll","highlight"]))}}),De={class:"h-screen w-screen of-hidden flex"},$e={class:"grid grid-rows-[auto_max-content] border-r border-main select-none max-h-full h-full"},Fe={class:"relative"},Se={class:"absolute left-0 top-0 bottom-0 w-200 flex flex-col flex-auto items-end group p2 gap-1 max-h-full of-x-visible of-y-auto",style:{direction:"rtl"}},Ee=["onClick"],Me={p2:"",border:"t main"},He={class:"select-none w-13 text-right my4 flex flex-col gap-1 items-end"},Ne={class:"text-3xl op20 mb2"},Te=["onDblclick"],Be={class:"py3 mt-0.5 mr--8 ml--4 op0 transition group-hover:op100"},Ae={key:0,class:"select-none absolute bottom-0 right-0 bg-main rounded-tl p2 op35 text-xs"},Ve={class:"absolute top-0 right-0 px3 py1.5 border-b border-l rounded-lb bg-main border-main select-none"},We={class:"text-xs op50"},K=450,Ue=U({__name:"overview",setup(C){ue({title:`Overview - ${de}`});const{openInEditor:z,slides:n}=me(),y=ce(new Map),c=H([]),h=H(null),D=I(()=>n.value.map(e=>f(e.meta?.slide?.note||""))),m=I(()=>D.value.reduce((e,t)=>e+t,0)),S=I(()=>n.value.map(e=>N(e)).reduce((e,t)=>e+t,0)),b=re(),r=new WeakMap;function _(e){return r.has(e)||r.set(e,pe(e,O)),r.get(e)}function N(e){return e.meta?.clicks||_(e)?.total}function W(e){b.value===e?b.value=void 0:b.value=e}function f(e){const t=/[\w`'\-\u0392-\u03C9\u00C0-\u00FF\u0600-\u06FF\u0400-\u04FF]+|[\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF\u3040-\u309F\uAC00-\uD7AF]+/g,i=e.match(t);let v=0;if(!i)return 0;for(let l=0;l=19968?v+=i[l].length:v+=1;return v}function u(e){const t=e.getBoundingClientRect(),i=20;return t.top>=0-i&&t.left>=0-i&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)+i&&t.right<=(window.innerWidth||document.documentElement.clientWidth)+i}function g(){const e=[];Array.from(y.entries()).forEach(([t,i])=>{u(i)&&e.push(t)}),c.value=e}function $(e){const t=document.createElement("a");t.target="_blank",t.href=he+e.slice(1),t.click()}function Q(e){const t=y.get(e);t&&t.scrollIntoView({behavior:"smooth",block:"start"})}function X(e,t,i){const v=_(i);v.current===t?v.current=O:v.current=t,e.preventDefault()}return se(()=>{q(()=>{g()})}),(e,t)=>{const i=J,v=Y;return o(),x("div",De,[a("nav",$e,[a("div",Fe,[a("div",Se,[(o(!0),x(P,null,R(s(n),(l,p)=>(o(),x("div",{key:l.no,class:"relative",style:{direction:"ltr"}},[a("button",{class:F(["relative transition duration-300 w-8 h-8 rounded hover:bg-active hover:op100",c.value.includes(p)?"op100 text-primary bg-gray:5":"op20"]),onClick:d=>Q(p)},[a("div",null,w(p+1),1)],10,Ee),l.meta?.slide?.title?(o(),x("div",{key:0,class:F(["pointer-events-none select-none absolute left-110% top-50% translate-y--50% ws-nowrap z-label px2 slidev-glass-effect transition duration-400 op0 group-hover:op100",c.value.includes(p)?"text-primary":"text-main important-text-op-50"])},w(l.meta?.slide?.title),3)):T("v-if",!0)]))),128))])]),a("div",Me,[s(fe)?(o(),k(A,{key:1,title:s(B)?"Dark mode":"Light mode","pointer-events-none":"",op50:""},{default:E(()=>[s(B)?(o(),k(i,{key:0})):(o(),k(v,{key:1}))]),_:1},8,["title"])):(o(),k(A,{key:0,title:s(B)?"Switch to light mode theme":"Switch to dark mode theme",onClick:t[0]||(t[0]=l=>s(ve)())},{default:E(()=>[s(B)?(o(),k(i,{key:0})):(o(),k(v,{key:1}))]),_:1},8,["title"]))])]),a("main",{class:"flex-1 h-full of-auto",style:V(`grid-template-columns: repeat(auto-fit,minmax(${K}px,1fr))`),onScroll:g},[(o(!0),x(P,null,R(s(n),(l,p)=>(o(),x("div",{key:l.no,ref_for:!0,ref:d=>y.set(p,d),class:F(["relative border-t border-main of-hidden flex gap-4 min-h-50 group",p===0?"pt5":""])},[a("div",He,[a("div",Ne,w(p+1),1),M(A,{class:"mr--3 op0 group-hover:op80",title:"Play in new tab",onClick:d=>$(s(j)(l,!1))},{default:E(()=>[...t[2]||(t[2]=[a("div",{class:"i-carbon:presentation-file"},null,-1)])]),_:1},8,["onClick"]),T("v-if",!0)]),a("div",{class:"flex flex-col gap-2 my5",style:V({width:`${K}px`})},[a("div",{class:"border rounded border-main overflow-hidden bg-main select-none h-max",onDblclick:d=>$(s(j)(l,!1))},[(o(),k(xe,{key:l.no,width:K,class:"pointer-events-none important:[&_*]:select-none"},{default:E(()=>[M(be,{"clicks-context":_(l),route:l,"render-context":"overview"},null,8,["clicks-context","route"]),M(_e,{page:l.no},null,8,["page"])]),_:2},1024))],40,Te),N(l)?(o(),k(ke,{key:0,active:b.value===l,"clicks-context":_(l),class:"w-full mt-2",onDblclick:d=>W(l),onClick:d=>b.value=l},null,8,["active","clicks-context","onDblclick","onClick"])):T("v-if",!0)],4),a("div",Be,[M(A,{title:"Edit Note",class:F(["rounded-full w-9 h-9 text-sm",h.value===l.no?"important:op0":""]),onClick:d=>h.value=l.no},{default:E(()=>[...t[4]||(t[4]=[a("div",{class:"i-carbon:pen"},null,-1)])]),_:1},8,["class","onClick"])]),M(Ce,{no:l.no,class:"max-w-250 w-250 text-lg rounded p3","auto-height":!0,highlight:b.value===l,editing:h.value===l.no,"clicks-context":_(l),onDblclick:d=>h.value!==l.no?h.value=l.no:null,"onUpdate:editing":t[1]||(t[1]=d=>h.value=null),onMarkerClick:(d,G)=>X(d,G,l)},null,8,["no","highlight","editing","clicks-context","onDblclick","onMarkerClick"]),D.value[p]>0?(o(),x("div",Ae,w(D.value[p])+" words ",1)):T("v-if",!0)],2))),128))],36),a("div",Ve,[a("div",We,w(s(n).length)+" slides · "+w(S.value+s(n).length-1)+" clicks · "+w(m.value)+" words ",1)])])}}});export{Ue as default}; diff --git a/assets/slidev/play-Dirf0-rK.js b/assets/slidev/play-BaoSMgbA.js similarity index 85% rename from assets/slidev/play-Dirf0-rK.js rename to assets/slidev/play-BaoSMgbA.js index f6446a82a860ffd05cfa5b78b6db024007e266a0..1e961d80f7d9573c83d0c415c15e247599335514 100644 --- a/assets/slidev/play-Dirf0-rK.js +++ b/assets/slidev/play-BaoSMgbA.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/slidev/DrawingControls-Bg4GTq4a.js","assets/slidev/DrawingControls.vue_vue_type_style_index_0_lang-BypqiqJS.js","assets/modules/vue-CZamTkmS.js","assets/modules/shiki-COQlGosf.js","assets/modules/shiki-UqVAgQbi.css","assets/slidev/SlideWrapper-Dcg6ZMCe.js","assets/index-D8MtK2Qe.js","assets/index-zCBU-I5-.css","assets/SlideWrapper-CgHDuBf7.css","assets/slidev/IconButton.vue_vue_type_script_setup_true_lang-DEyEjvqJ.js","assets/slidev/shortcuts-B6x-gEsD.js","assets/slidev/context-z1Z7Rpcn.js","assets/modules/unplugin-icons-ByIekoE6.js","assets/shortcuts-C3iD51Aa.css","assets/DrawingControls-Cxk9a9ub.css"])))=>i.map(i=>d[i]); -import{K as N,ao as z,z as g,as as F,f as x,o as a,b as p,A as $,T as t,w as E,g as r,e as y,j as u,ad as H,ah as L,F as M,d,Q as k,k as A,n as I,r as O}from"../modules/vue-CZamTkmS.js";import{u as U,a as W}from"./SlideWrapper-Dcg6ZMCe.js";import{x as j,o as w,a as P,y as G,z as V,A as C,d as S,j as h,B as K,D as Q,E as l,F as b}from"../index-D8MtK2Qe.js";import{c as X,G as Y,d as q,u as J,r as Z,a as ee,o as te,b as oe,S as se}from"./shortcuts-B6x-gEsD.js";import{_ as ae}from"./Modal.vue_vue_type_script_setup_true_lang-CSndaKrY.js";import{b as ne}from"../modules/unplugin-icons-ByIekoE6.js";import"../modules/shiki-COQlGosf.js";import"./context-z1Z7Rpcn.js";import"./IconButton.vue_vue_type_script_setup_true_lang-DEyEjvqJ.js";const ie=2e3;function le(v){const i=g(()=>v.value&&j.value);function m(){document.body.style.cursor="none"}function o(){document.body.style.cursor=""}let e=null;N(i,c=>{c||(o(),e&&clearTimeout(e),e=null)}),F(()=>{o(),e&&clearTimeout(e),e=null}),z(document.body,["pointermove","pointerdown"],()=>{o(),e&&clearTimeout(e),i.value?e=setTimeout(m,ie):e=null},{passive:!0})}const re="/assets/logo-BYkHSa_O.png",ue={class:"slidev-info-dialog slidev-layout flex flex-col gap-4 text-base"},ce=["innerHTML"],de=x({__name:"InfoDialog",props:{modelValue:{default:!1}},emits:["update:modelValue"],setup(v,{emit:i}){const e=L(v,"modelValue",i),c=g(()=>typeof w.info=="string");return(_,s)=>(a(),p(ae,{modelValue:t(e),"onUpdate:modelValue":s[0]||(s[0]=f=>$(e)?e.value=f:null),class:"px-6 py-4"},{default:E(()=>[r("div",ue,[c.value?(a(),y("div",{key:0,class:"mb-4",innerHTML:t(w).info},null,8,ce)):u("v-if",!0),s[1]||(s[1]=r("a",{href:"https://github.com/slidevjs/slidev",target:"_blank",class:"!opacity-100 !border-none !text-current"},[r("div",{class:"flex gap-1 children:my-auto"},[r("div",{class:"opacity-50 text-sm mr-2"},"Powered by"),r("img",{class:"w-5 h-5",src:re,alt:"Slidev logo"}),r("div",{style:{color:"#2082A6"}},[r("b",null,"Sli"),H("dev ")])])],-1))])]),_:1},8,["modelValue"]))}}),me=x({__name:"Controls",setup(v){const{isEmbedded:i}=P(),m=!w.drawings.presenterOnly&&!i.value,o=k();m&&G(()=>import("./DrawingControls-Bg4GTq4a.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(_=>o.value=_.default);const e=k(),c=k();return(_,s)=>(a(),y(M,null,[o.value?(a(),p(t(o),{key:0})):u("v-if",!0),d(X),d(Y),e.value?(a(),p(t(e),{key:1})):u("v-if",!0),c.value?(a(),p(t(c),{key:2,modelValue:t(V),"onUpdate:modelValue":s[0]||(s[0]=f=>$(V)?V.value=f:null)},null,8,["modelValue"])):u("v-if",!0),t(w).info?(a(),p(de,{key:3,modelValue:t(C),"onUpdate:modelValue":s[1]||(s[1]=f=>$(C)?C.value=f:null)},null,8,["modelValue"])):u("v-if",!0),d(q)],64))}}),fe={key:0,class:"absolute top-0 left-0 right-0 bottom-0 pointer-events-none text-xl"},pe=x({__name:"PresenterMouse",setup(v){return(i,m)=>{const o=ne;return t(S).cursor?(a(),y("div",fe,[d(o,{class:"absolute stroke-white dark:stroke-black",style:A({left:`${t(S).cursor.x}%`,top:`${t(S).cursor.y}%`,strokeWidth:16})},null,8,["style"])])):u("v-if",!0)}}}),Ve=x({__name:"play",setup(v){const{next:i,prev:m,isPrintMode:o,isPlaying:e,isEmbedded:c}=P(),{isDrawing:_}=U(),s=O();function f(n){h.value||n.button===0&&n.target?.id==="slide-container"&&(n.pageX/window.innerWidth>.5?i():m())}J(s),Z(),ee(),le(g(()=>e.value&&!c.value&&!h.value));const D=g(()=>Q.value||h.value),T=k(),B=g(()=>{let n="";return l.value.brightness!==b.brightness&&(n+=`brightness(${l.value.brightness}) `),l.value.contrast!==b.contrast&&(n+=`contrast(${l.value.contrast}) `),l.value.sepia!==b.sepia&&(n+=`sepia(${l.value.sepia}) `),l.value.hueRotate!==b.hueRotate&&(n+=`hue-rotate(${l.value.hueRotate}deg) `),l.value.invert&&(n+="invert(1) "),{filter:n}});return(n,R)=>(a(),y(M,null,[r("div",{id:"page-root",ref_key:"root",ref:s,class:I(["grid",t(K)?"grid-rows-[1fr_max-content]":"grid-cols-[1fr_max-content]"])},[d(W,{style:{background:"var(--slidev-slide-container-background, black)"},"is-main":"","content-style":B.value,onPointerdown:f,onContextmenu:t(te)},{default:E(()=>[d(se,{"render-context":"slide"}),d(pe)]),controls:E(()=>[t(o)?u("v-if",!0):(a(),y("div",{key:0,class:I(["absolute bottom-0 left-0 transition duration-300 opacity-0 hover:opacity-100 focus-within:opacity-100 focus-visible:opacity-100",[D.value?"!opacity-100 right-0":"opacity-0 p-2",t(_)?"pointer-events-none":""]])},[d(oe,{persist:D.value},null,8,["persist"])],2))]),_:1},8,["content-style","onContextmenu"]),T.value&&t(h)?(a(),p(t(T),{key:0,resize:!0})):u("v-if",!0)],2),t(o)?u("v-if",!0):(a(),p(me,{key:0})),R[0]||(R[0]=r("div",{id:"twoslash-container"},null,-1))],64))}});export{Ve as default}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/slidev/DrawingControls-B8BzR2ZS.js","assets/slidev/DrawingControls.vue_vue_type_style_index_0_lang-NbfDtc9_.js","assets/modules/vue-CZamTkmS.js","assets/modules/shiki-COQlGosf.js","assets/modules/shiki-UqVAgQbi.css","assets/slidev/SlideWrapper-_oMsn9ML.js","assets/index-CIas0rwA.js","assets/index-zCBU-I5-.css","assets/SlideWrapper-C5Fw_W4m.css","assets/slidev/IconButton.vue_vue_type_script_setup_true_lang-DEyEjvqJ.js","assets/slidev/shortcuts-B1mBgg0H.js","assets/slidev/context-Ch1IIjuh.js","assets/modules/unplugin-icons-ByIekoE6.js","assets/shortcuts-DEelySGM.css","assets/DrawingControls-Cxk9a9ub.css"])))=>i.map(i=>d[i]); +import{K as N,ao as z,z as g,as as F,f as x,o as a,b as p,A as $,T as t,w as E,g as r,e as y,j as u,ad as H,ah as L,F as M,d,Q as k,k as A,n as I,r as O}from"../modules/vue-CZamTkmS.js";import{u as U,a as W}from"./SlideWrapper-_oMsn9ML.js";import{x as j,o as w,a as P,y as G,z as V,A as C,d as S,j as h,B as K,D as Q,E as l,F as b}from"../index-CIas0rwA.js";import{c as X,G as Y,d as q,u as J,r as Z,a as ee,o as te,b as oe,S as se}from"./shortcuts-B1mBgg0H.js";import{_ as ae}from"./Modal.vue_vue_type_script_setup_true_lang-CSndaKrY.js";import{b as ne}from"../modules/unplugin-icons-ByIekoE6.js";import"../modules/shiki-COQlGosf.js";import"./context-Ch1IIjuh.js";import"./IconButton.vue_vue_type_script_setup_true_lang-DEyEjvqJ.js";const ie=2e3;function le(v){const i=g(()=>v.value&&j.value);function m(){document.body.style.cursor="none"}function o(){document.body.style.cursor=""}let e=null;N(i,c=>{c||(o(),e&&clearTimeout(e),e=null)}),F(()=>{o(),e&&clearTimeout(e),e=null}),z(document.body,["pointermove","pointerdown"],()=>{o(),e&&clearTimeout(e),i.value?e=setTimeout(m,ie):e=null},{passive:!0})}const re="/assets/logo-BYkHSa_O.png",ue={class:"slidev-info-dialog slidev-layout flex flex-col gap-4 text-base"},ce=["innerHTML"],de=x({__name:"InfoDialog",props:{modelValue:{default:!1}},emits:["update:modelValue"],setup(v,{emit:i}){const e=L(v,"modelValue",i),c=g(()=>typeof w.info=="string");return(_,s)=>(a(),p(ae,{modelValue:t(e),"onUpdate:modelValue":s[0]||(s[0]=f=>$(e)?e.value=f:null),class:"px-6 py-4"},{default:E(()=>[r("div",ue,[c.value?(a(),y("div",{key:0,class:"mb-4",innerHTML:t(w).info},null,8,ce)):u("v-if",!0),s[1]||(s[1]=r("a",{href:"https://github.com/slidevjs/slidev",target:"_blank",class:"!opacity-100 !border-none !text-current"},[r("div",{class:"flex gap-1 children:my-auto"},[r("div",{class:"opacity-50 text-sm mr-2"},"Powered by"),r("img",{class:"w-5 h-5",src:re,alt:"Slidev logo"}),r("div",{style:{color:"#2082A6"}},[r("b",null,"Sli"),H("dev ")])])],-1))])]),_:1},8,["modelValue"]))}}),me=x({__name:"Controls",setup(v){const{isEmbedded:i}=P(),m=!w.drawings.presenterOnly&&!i.value,o=k();m&&G(()=>import("./DrawingControls-B8BzR2ZS.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(_=>o.value=_.default);const e=k(),c=k();return(_,s)=>(a(),y(M,null,[o.value?(a(),p(t(o),{key:0})):u("v-if",!0),d(X),d(Y),e.value?(a(),p(t(e),{key:1})):u("v-if",!0),c.value?(a(),p(t(c),{key:2,modelValue:t(V),"onUpdate:modelValue":s[0]||(s[0]=f=>$(V)?V.value=f:null)},null,8,["modelValue"])):u("v-if",!0),t(w).info?(a(),p(de,{key:3,modelValue:t(C),"onUpdate:modelValue":s[1]||(s[1]=f=>$(C)?C.value=f:null)},null,8,["modelValue"])):u("v-if",!0),d(q)],64))}}),fe={key:0,class:"absolute top-0 left-0 right-0 bottom-0 pointer-events-none text-xl"},pe=x({__name:"PresenterMouse",setup(v){return(i,m)=>{const o=ne;return t(S).cursor?(a(),y("div",fe,[d(o,{class:"absolute stroke-white dark:stroke-black",style:A({left:`${t(S).cursor.x}%`,top:`${t(S).cursor.y}%`,strokeWidth:16})},null,8,["style"])])):u("v-if",!0)}}}),Ve=x({__name:"play",setup(v){const{next:i,prev:m,isPrintMode:o,isPlaying:e,isEmbedded:c}=P(),{isDrawing:_}=U(),s=O();function f(n){h.value||n.button===0&&n.target?.id==="slide-container"&&(n.pageX/window.innerWidth>.5?i():m())}J(s),Z(),ee(),le(g(()=>e.value&&!c.value&&!h.value));const D=g(()=>Q.value||h.value),T=k(),B=g(()=>{let n="";return l.value.brightness!==b.brightness&&(n+=`brightness(${l.value.brightness}) `),l.value.contrast!==b.contrast&&(n+=`contrast(${l.value.contrast}) `),l.value.sepia!==b.sepia&&(n+=`sepia(${l.value.sepia}) `),l.value.hueRotate!==b.hueRotate&&(n+=`hue-rotate(${l.value.hueRotate}deg) `),l.value.invert&&(n+="invert(1) "),{filter:n}});return(n,R)=>(a(),y(M,null,[r("div",{id:"page-root",ref_key:"root",ref:s,class:I(["grid",t(K)?"grid-rows-[1fr_max-content]":"grid-cols-[1fr_max-content]"])},[d(W,{style:{background:"var(--slidev-slide-container-background, black)"},"is-main":"","content-style":B.value,onPointerdown:f,onContextmenu:t(te)},{default:E(()=>[d(se,{"render-context":"slide"}),d(pe)]),controls:E(()=>[t(o)?u("v-if",!0):(a(),y("div",{key:0,class:I(["absolute bottom-0 left-0 transition duration-300 opacity-0 hover:opacity-100 focus-within:opacity-100 focus-visible:opacity-100",[D.value?"!opacity-100 right-0":"opacity-0 p-2",t(_)?"pointer-events-none":""]])},[d(oe,{persist:D.value},null,8,["persist"])],2))]),_:1},8,["content-style","onContextmenu"]),T.value&&t(h)?(a(),p(t(T),{key:0,resize:!0})):u("v-if",!0)],2),t(o)?u("v-if",!0):(a(),p(me,{key:0})),R[0]||(R[0]=r("div",{id:"twoslash-container"},null,-1))],64))}});export{Ve as default}; diff --git a/assets/slidev/presenter-BaDoaToA.js b/assets/slidev/presenter-ynkLRNMt.js similarity index 92% rename from assets/slidev/presenter-BaDoaToA.js rename to assets/slidev/presenter-ynkLRNMt.js index 400678c8658f32e109778b67b4c22a10847e2496..b5f108008b6b5d694c7db709e580685a4c781cc9 100644 --- a/assets/slidev/presenter-BaDoaToA.js +++ b/assets/slidev/presenter-ynkLRNMt.js @@ -1 +1 @@ -import{f as D,b as k,T as e,n as R,o as s,al as Re,e as l,af as me,am as fe,g as o,ad as G,j as p,Q as A,F as pe,t as Q,z as _,K as ae,W as q,an as re,ao as L,L as le,P as Ce,ap as Ne,d as v,k as ue,A as Me,w as j,a9 as ce,r as m}from"../modules/vue-CZamTkmS.js";import{a as $e,u as We,h as f,j as Be,k as Fe,l as Pe,m as Le,s as je,d as De,n as Ee,e as Te,_ as Ve}from"../index-D8MtK2Qe.js";import{u as He,a as de,S as Ie}from"./SlideWrapper-Dcg6ZMCe.js";import{r as Oe,u as Ue,a as Xe,_ as Ye,o as Ge,b as Qe,S as qe,G as Ae,c as Ke,d as Ze}from"./shortcuts-B6x-gEsD.js";import{_ as Je,C as et}from"./NoteDisplay.vue_vue_type_style_index_0_lang-D15LqXLz.js";import{u as tt,_ as ot,a as nt}from"./TimerBar.vue_vue_type_script_setup_true_lang-BXE25vS4.js";import{_ as st}from"./DrawingControls.vue_vue_type_style_index_0_lang-BypqiqJS.js";import{_ as ve}from"./IconButton.vue_vue_type_script_setup_true_lang-DEyEjvqJ.js";import{a as it}from"./useSlideInfo-DSL8NNQ0.js";import"../modules/shiki-COQlGosf.js";import"./context-z1Z7Rpcn.js";import"../modules/unplugin-icons-ByIekoE6.js";const at=D({__name:"NoteStatic",props:{no:{},class:{},clicksContext:{}},setup(N){const i=N,{info:a}=it(i.no);return(u,x)=>(s(),k(Je,{class:R(i.class),note:e(a)?.note,"note-html":e(a)?.noteHTML,"clicks-context":N.clicksContext},null,8,["class","note","note-html","clicks-context"]))}}),rt={"h-full":"","w-full":""},lt={key:0,"w-full":"","h-full":"",flex:"~ col gap-4 items-center justify-center"},ut=D({__name:"ScreenCaptureMirror",setup(N){const i=Re("video"),a=A(null),u=A(!1);async function x(){a.value=await navigator.mediaDevices.getDisplayMedia({video:{cursor:"always"},audio:!1,selfBrowserSurface:"include",preferCurrentTab:!1}),i.value.srcObject=a.value,i.value.play(),u.value=!0,a.value.addEventListener("inactive",()=>{i.value.srcObject=null,u.value=!1}),a.value.addEventListener("ended",()=>{i.value.srcObject=null,u.value=!1})}return(C,h)=>(s(),l("div",rt,[me(o("video",{ref_key:"video",ref:i,class:"w-full h-full object-contain"},null,512),[[fe,u.value]]),u.value?p("v-if",!0):(s(),l("div",lt,[h[0]||(h[0]=o("div",{op50:""},[G(" Use screen capturing to mirror your main screen back to presenter view."),o("br"),G(" Click the button below and "),o("b",null,"select your other monitor or window"),G(". ")],-1)),o("button",{class:"slidev-form-button",onClick:x}," Start Screen Mirroring ")]))]))}}),ct={class:"w-22px cursor-pointer"},dt={class:"group-not-hover:hidden flex flex-col items-center"},vt={key:0,class:"i-carbon:pause text-lg"},mt={key:1,class:"i-carbon:play"},ft={class:"text-3xl px-3 my-auto font-mono"},pt=D({__name:"TimerInlined",setup(N){const{status:i,percentage:a,mode:u,timer:x,reset:C,toggle:h}=tt(),W=_(()=>i.value==="stopped"?"op50":i.value==="paused"?"text-blue6 dark:text-blue3":a.value>100?"text-red6 dark:text-red3":a.value>80?"text-yellow6 dark:text-yellow3":"text-green6 dark:text-green3");return(B,d)=>(s(),l("div",{class:R(["group flex items-center justify-center pl-4 select-none",W.value])},[o("div",ct,[o("div",{class:R(["group-hover:hidden text-2xl",e(u)==="countdown"?"i-carbon:timer":"i-carbon:time"])},null,2),o("div",dt,[o("div",{class:"relative op-80 hover:op-100",onClick:d[0]||(d[0]=(...M)=>e(h)&&e(h)(...M))},[e(i)==="running"?(s(),l("div",vt)):(s(),l("div",mt))]),o("div",{class:"op-80 hover:op-100",onClick:d[1]||(d[1]=(...M)=>e(C)&&e(C)(...M))},[...d[2]||(d[2]=[o("div",{class:"i-carbon:renew"},null,-1)])])])]),o("div",ft,[e(x).h?(s(),l(pe,{key:0},[o("span",null,Q(e(x).h),1),d[3]||(d[3]=o("span",{op50:""},":",-1))],64)):p("v-if",!0),o("span",null,Q(e(x).m),1),d[4]||(d[4]=o("span",{op50:""},":",-1)),o("span",null,Q(e(x).s),1)])],2))}}),xt={class:"bg-main h-full slidev-presenter grid grid-rows-[max-content_1fr] of-hidden"},ht={flex:"~ gap-4 items-center",border:"b main",p1:""},wt={class:"relative grid-section next flex flex-col p-2 lg:p-4"},gt={key:2,class:"h-full flex justify-center items-center"},kt={key:3,class:"h-full grid grid-rows-[1fr_min-content]"},_t=D({__name:"presenter",setup(N){const i=ce(),a=m(),u=m(),x=m(),C=m();Oe(),Ue(a),Xe();const{clicksContext:h,currentSlideNo:W,currentSlideRoute:B,hasNext:d,nextRoute:M,slides:xe,getPrimaryClicks:he}=$e(),{isDrawing:we}=He();We({title:`Presenter - ${je}`});const ge=_(()=>xe.value.map(n=>{const t=m(0);return{context:Te(t,n?.meta.slide?.frontmatter.clicksStart??0,n?.meta.clicks),clicks:t}})),g=_(()=>h.value.currentg.value&&ge.value[g.value[0].no-1]);ae(g,()=>{F.value&&g.value&&(F.value.clicks.value=g.value[1])},{immediate:!0});const $=q("slidev-presenter-main-slide-mode","slides"),y=q("slidev-presenter-notes-width",360),S=q("slidev-presenter-notes-row-size",280),K=m(0),E=m(!1),T=m(!1),Z=m(0),V=m(360),J=m(0),H=m(280),c={minNotesWidth:240,maxNotesWidth:720,minNotesRowSize:160,maxNotesWidthRatio:.7,maxNotesRowHeightRatio:.75},ke=re("(min-aspect-ratio: 1/1)"),I=re("(max-aspect-ratio: 3/5)"),O=_(()=>f.value===1&&ke.value),P=_(()=>!(f.value===1&&I.value)),U=_(()=>f.value===1&&!I.value||f.value===2||f.value===3),ee=_(()=>f.value===1&&!I.value);function te(n){return Number.isFinite(n)?Math.max(c.minNotesWidth,Math.min(c.maxNotesWidth,Math.round(n))):c.minNotesWidth}function _e(n){const t=u.value;if(!t)return;const w=t.getBoundingClientRect(),r=n-Z.value,b=O.value?V.value-r:V.value+r,z=te(b),ze=Math.round(w.width*c.maxNotesWidthRatio);y.value=Math.min(z,Math.max(c.minNotesWidth,ze))}function X(n){P.value&&n.button===0&&(n.preventDefault(),Z.value=n.clientX,V.value=y.value,E.value=!0)}function Y(n){return Number.isFinite(n)?Math.max(c.minNotesRowSize,Math.round(n)):c.minNotesRowSize}function ye(n){const t=u.value;if(!t)return;const w=t.getBoundingClientRect(),r=n-J.value,b=ee.value?H.value-r:H.value+r,z=Math.round(w.height*c.maxNotesRowHeightRatio);S.value=Math.min(Y(b),Math.max(c.minNotesRowSize,z))}function oe(n){if(!U.value||n.button!==0)return;n.preventDefault();const t=f.value===2?a.value?.getBoundingClientRect().height:x.value?.getBoundingClientRect().height;J.value=n.clientY,H.value=Y(t??S.value),T.value=!0}function Se(){const n=C.value;n&&(K.value=Math.round(n.getBoundingClientRect().height))}function ne(){E.value=!1,T.value=!1}function se(){Se(),be()}L(window,"pointermove",n=>{E.value&&_e(n.clientX),T.value&&ye(n.clientY)}),L(window,"pointerup",ne),L(window,"pointercancel",ne),le(()=>{se()}),L(window,"resize",()=>{se()});function be(){y.value=te(y.value),S.value=Y(S.value);const n=u.value;if(!n)return;const t=n.getBoundingClientRect(),w=Math.round(t.width*c.maxNotesWidthRatio),r=Math.round(t.height*c.maxNotesRowHeightRatio);y.value=Math.min(y.value,Math.max(c.minNotesWidth,w)),S.value=Math.min(S.value,Math.max(c.minNotesRowSize,r))}const ie=A();return le(()=>{const n=a.value.querySelector("#slide-content"),t=Ce(Ne()),w=ce();ae(()=>{if(!w.value||we.value||!Ee.value||!n)return;const r=n.getBoundingClientRect(),b=(t.x-r.left)/r.width*100,z=(t.y-r.top)/r.height*100;if(!(b<0||b>100||z<0||z>100))return{x:b,y:z}},r=>{De.cursor=r})}),(n,t)=>(s(),l(pe,null,[o("div",xt,[o("div",null,[v(ot),v(nt)]),o("div",{ref_key:"gridContainer",ref:u,class:R(["grid-container",`layout${e(f)}`]),style:ue({"--slidev-presenter-notes-width":`${e(y)}px`,"--slidev-presenter-notes-row-size":`${e(S)}px`,"--slidev-presenter-bottom-height":`${K.value}px`})},[p(" Unified vertical resizer for wide layout "),P.value&&O.value?(s(),l("div",{key:0,class:"notes-vertical-resizer",role:"separator","aria-orientation":"vertical",title:"Resize notes panel",onPointerdown:X},null,32)):p("v-if",!0),p(" Unified vertical resizer for layout 3 "),P.value&&e(f)===3?(s(),l("div",{key:1,class:"notes-vertical-resizer-left",role:"separator","aria-orientation":"vertical",title:"Resize notes panel",onPointerdown:X},null,32)):p("v-if",!0),o("div",{ref_key:"main",ref:a,class:"relative grid-section main flex flex-col"},[o("div",ht,[t[3]||(t[3]=o("span",{op50:"",px2:""},"Current",-1)),t[4]||(t[4]=o("div",{"flex-auto":""},null,-1)),v(Ye,{modelValue:e($),"onUpdate:modelValue":t[0]||(t[0]=w=>Me($)?$.value=w:null),options:[{label:"Slides",value:"slides"},{label:"Screen Mirror",value:"mirror"}]},null,8,["modelValue"])]),e($)==="mirror"?(s(),k(ut,{key:0})):p("v-if",!0),p(" We use v-show here to still infer the clicks context "),me(v(de,{key:"main",class:"p-2 lg:p-4 flex-auto","is-main":"",onContextmenu:e(Ge)},{default:j(()=>[v(qe,{"render-context":"presenter"})]),_:1},8,["onContextmenu"]),[[fe,e($)==="slides"]]),(s(),k(et,{key:e(B)?.no,"clicks-context":e(he)(e(B)),class:"w-full pb2 px4 flex-none"},null,8,["clicks-context"]))],512),o("div",wt,[U.value&&e(f)===2?(s(),l("div",{key:0,class:"notes-row-resizer top-[-6px]",role:"separator","aria-orientation":"horizontal",title:"Resize notes panel height",onPointerdown:oe},null,32)):p("v-if",!0),g.value&&F.value?(s(),k(de,{key:"next"},{default:j(()=>[(s(),k(Ie,{key:g.value[0].no,"clicks-context":F.value.context,route:g.value[0],"render-context":"previewNext"},null,8,["clicks-context","route"]))]),_:1})):(s(),l("div",gt,[...t[5]||(t[5]=[o("div",{class:"text-gray-500"}," End of the presentation ",-1)])])),t[6]||(t[6]=o("div",{class:"absolute left-0 top-0 bg-main border-b border-r border-main px2 py1 op50 text-sm"}," Next ",-1))]),o("div",{ref_key:"noteSection",ref:x,class:"relative grid-section note overflow-hidden"},[P.value&&!O.value&&e(f)!==3?(s(),l("div",{key:0,class:"notes-resizer right-[-6px]",role:"separator","aria-orientation":"vertical",title:"Resize notes panel",onPointerdown:X},null,32)):p("v-if",!0),U.value&&e(f)!==2?(s(),l("div",{key:1,class:R(["notes-row-resizer",ee.value?"top-[-6px]":"bottom-[-6px]"]),role:"separator","aria-orientation":"horizontal",title:"Resize notes panel height",onPointerdown:oe},null,34)):p("v-if",!0),ie.value&&e(Be)?(s(),k(e(ie),{key:2,class:"h-full"})):(s(),l("div",kt,[(s(),k(at,{key:`static-${e(W)}`,no:e(W),class:"w-full max-w-full h-full overflow-auto p-2 lg:p-4",style:ue({fontSize:`${e(Fe)}em`}),"clicks-context":e(h)},null,8,["no","style","clicks-context"])),t[10]||(t[10]=o("div",{"border-t":"","border-main":""},null,-1)),o("div",{class:R(["py-1 px-2 text-sm transition",e(i)?"":"op25"])},[v(ve,{title:"Increase font size",onClick:e(Pe)},{default:j(()=>[...t[7]||(t[7]=[o("div",{class:"i-carbon:zoom-in"},null,-1)])]),_:1},8,["onClick"]),v(ve,{title:"Decrease font size",onClick:e(Le)},{default:j(()=>[...t[8]||(t[8]=[o("div",{class:"i-carbon:zoom-out"},null,-1)])]),_:1},8,["onClick"]),p("v-if",!0)],2)]))],512),o("div",{ref_key:"bottomSection",ref:C,class:"grid-section bottom flex"},[v(Qe,{persist:!0,class:R(["transition",e(i)?"":"op25"])},null,8,["class"]),t[11]||(t[11]=o("div",{"flex-auto":""},null,-1)),v(pt)],512),(s(),k(st,{key:2}))],6)]),v(Ae),v(Ke),v(Ze)],64))}}),Pt=Ve(_t,[["__scopeId","data-v-45f7809b"]]);export{Pt as default}; +import{f as D,b as k,T as e,n as R,o as s,al as Re,e as l,af as me,am as fe,g as o,ad as G,j as p,Q as A,F as pe,t as Q,z as _,K as ae,W as q,an as re,ao as L,L as le,P as Ce,ap as Ne,d as v,k as ue,A as Me,w as j,a9 as ce,r as m}from"../modules/vue-CZamTkmS.js";import{a as $e,u as We,h as f,j as Be,k as Fe,l as Pe,m as Le,s as je,d as De,n as Ee,e as Te,_ as Ve}from"../index-CIas0rwA.js";import{u as He,a as de,S as Ie}from"./SlideWrapper-_oMsn9ML.js";import{r as Oe,u as Ue,a as Xe,_ as Ye,o as Ge,b as Qe,S as qe,G as Ae,c as Ke,d as Ze}from"./shortcuts-B1mBgg0H.js";import{_ as Je,C as et}from"./NoteDisplay.vue_vue_type_style_index_0_lang-CA1o434c.js";import{u as tt,_ as ot,a as nt}from"./TimerBar.vue_vue_type_script_setup_true_lang-BUSgv3jk.js";import{_ as st}from"./DrawingControls.vue_vue_type_style_index_0_lang-NbfDtc9_.js";import{_ as ve}from"./IconButton.vue_vue_type_script_setup_true_lang-DEyEjvqJ.js";import{a as it}from"./useSlideInfo-95lRLUff.js";import"../modules/shiki-COQlGosf.js";import"./context-Ch1IIjuh.js";import"../modules/unplugin-icons-ByIekoE6.js";const at=D({__name:"NoteStatic",props:{no:{},class:{},clicksContext:{}},setup(N){const i=N,{info:a}=it(i.no);return(u,x)=>(s(),k(Je,{class:R(i.class),note:e(a)?.note,"note-html":e(a)?.noteHTML,"clicks-context":N.clicksContext},null,8,["class","note","note-html","clicks-context"]))}}),rt={"h-full":"","w-full":""},lt={key:0,"w-full":"","h-full":"",flex:"~ col gap-4 items-center justify-center"},ut=D({__name:"ScreenCaptureMirror",setup(N){const i=Re("video"),a=A(null),u=A(!1);async function x(){a.value=await navigator.mediaDevices.getDisplayMedia({video:{cursor:"always"},audio:!1,selfBrowserSurface:"include",preferCurrentTab:!1}),i.value.srcObject=a.value,i.value.play(),u.value=!0,a.value.addEventListener("inactive",()=>{i.value.srcObject=null,u.value=!1}),a.value.addEventListener("ended",()=>{i.value.srcObject=null,u.value=!1})}return(C,h)=>(s(),l("div",rt,[me(o("video",{ref_key:"video",ref:i,class:"w-full h-full object-contain"},null,512),[[fe,u.value]]),u.value?p("v-if",!0):(s(),l("div",lt,[h[0]||(h[0]=o("div",{op50:""},[G(" Use screen capturing to mirror your main screen back to presenter view."),o("br"),G(" Click the button below and "),o("b",null,"select your other monitor or window"),G(". ")],-1)),o("button",{class:"slidev-form-button",onClick:x}," Start Screen Mirroring ")]))]))}}),ct={class:"w-22px cursor-pointer"},dt={class:"group-not-hover:hidden flex flex-col items-center"},vt={key:0,class:"i-carbon:pause text-lg"},mt={key:1,class:"i-carbon:play"},ft={class:"text-3xl px-3 my-auto font-mono"},pt=D({__name:"TimerInlined",setup(N){const{status:i,percentage:a,mode:u,timer:x,reset:C,toggle:h}=tt(),W=_(()=>i.value==="stopped"?"op50":i.value==="paused"?"text-blue6 dark:text-blue3":a.value>100?"text-red6 dark:text-red3":a.value>80?"text-yellow6 dark:text-yellow3":"text-green6 dark:text-green3");return(B,d)=>(s(),l("div",{class:R(["group flex items-center justify-center pl-4 select-none",W.value])},[o("div",ct,[o("div",{class:R(["group-hover:hidden text-2xl",e(u)==="countdown"?"i-carbon:timer":"i-carbon:time"])},null,2),o("div",dt,[o("div",{class:"relative op-80 hover:op-100",onClick:d[0]||(d[0]=(...M)=>e(h)&&e(h)(...M))},[e(i)==="running"?(s(),l("div",vt)):(s(),l("div",mt))]),o("div",{class:"op-80 hover:op-100",onClick:d[1]||(d[1]=(...M)=>e(C)&&e(C)(...M))},[...d[2]||(d[2]=[o("div",{class:"i-carbon:renew"},null,-1)])])])]),o("div",ft,[e(x).h?(s(),l(pe,{key:0},[o("span",null,Q(e(x).h),1),d[3]||(d[3]=o("span",{op50:""},":",-1))],64)):p("v-if",!0),o("span",null,Q(e(x).m),1),d[4]||(d[4]=o("span",{op50:""},":",-1)),o("span",null,Q(e(x).s),1)])],2))}}),xt={class:"bg-main h-full slidev-presenter grid grid-rows-[max-content_1fr] of-hidden"},ht={flex:"~ gap-4 items-center",border:"b main",p1:""},wt={class:"relative grid-section next flex flex-col p-2 lg:p-4"},gt={key:2,class:"h-full flex justify-center items-center"},kt={key:3,class:"h-full grid grid-rows-[1fr_min-content]"},_t=D({__name:"presenter",setup(N){const i=ce(),a=m(),u=m(),x=m(),C=m();Oe(),Ue(a),Xe();const{clicksContext:h,currentSlideNo:W,currentSlideRoute:B,hasNext:d,nextRoute:M,slides:xe,getPrimaryClicks:he}=$e(),{isDrawing:we}=He();We({title:`Presenter - ${je}`});const ge=_(()=>xe.value.map(n=>{const t=m(0);return{context:Te(t,n?.meta.slide?.frontmatter.clicksStart??0,n?.meta.clicks),clicks:t}})),g=_(()=>h.value.currentg.value&&ge.value[g.value[0].no-1]);ae(g,()=>{F.value&&g.value&&(F.value.clicks.value=g.value[1])},{immediate:!0});const $=q("slidev-presenter-main-slide-mode","slides"),y=q("slidev-presenter-notes-width",360),S=q("slidev-presenter-notes-row-size",280),K=m(0),E=m(!1),T=m(!1),Z=m(0),V=m(360),J=m(0),H=m(280),c={minNotesWidth:240,maxNotesWidth:720,minNotesRowSize:160,maxNotesWidthRatio:.7,maxNotesRowHeightRatio:.75},ke=re("(min-aspect-ratio: 1/1)"),I=re("(max-aspect-ratio: 3/5)"),O=_(()=>f.value===1&&ke.value),P=_(()=>!(f.value===1&&I.value)),U=_(()=>f.value===1&&!I.value||f.value===2||f.value===3),ee=_(()=>f.value===1&&!I.value);function te(n){return Number.isFinite(n)?Math.max(c.minNotesWidth,Math.min(c.maxNotesWidth,Math.round(n))):c.minNotesWidth}function _e(n){const t=u.value;if(!t)return;const w=t.getBoundingClientRect(),r=n-Z.value,b=O.value?V.value-r:V.value+r,z=te(b),ze=Math.round(w.width*c.maxNotesWidthRatio);y.value=Math.min(z,Math.max(c.minNotesWidth,ze))}function X(n){P.value&&n.button===0&&(n.preventDefault(),Z.value=n.clientX,V.value=y.value,E.value=!0)}function Y(n){return Number.isFinite(n)?Math.max(c.minNotesRowSize,Math.round(n)):c.minNotesRowSize}function ye(n){const t=u.value;if(!t)return;const w=t.getBoundingClientRect(),r=n-J.value,b=ee.value?H.value-r:H.value+r,z=Math.round(w.height*c.maxNotesRowHeightRatio);S.value=Math.min(Y(b),Math.max(c.minNotesRowSize,z))}function oe(n){if(!U.value||n.button!==0)return;n.preventDefault();const t=f.value===2?a.value?.getBoundingClientRect().height:x.value?.getBoundingClientRect().height;J.value=n.clientY,H.value=Y(t??S.value),T.value=!0}function Se(){const n=C.value;n&&(K.value=Math.round(n.getBoundingClientRect().height))}function ne(){E.value=!1,T.value=!1}function se(){Se(),be()}L(window,"pointermove",n=>{E.value&&_e(n.clientX),T.value&&ye(n.clientY)}),L(window,"pointerup",ne),L(window,"pointercancel",ne),le(()=>{se()}),L(window,"resize",()=>{se()});function be(){y.value=te(y.value),S.value=Y(S.value);const n=u.value;if(!n)return;const t=n.getBoundingClientRect(),w=Math.round(t.width*c.maxNotesWidthRatio),r=Math.round(t.height*c.maxNotesRowHeightRatio);y.value=Math.min(y.value,Math.max(c.minNotesWidth,w)),S.value=Math.min(S.value,Math.max(c.minNotesRowSize,r))}const ie=A();return le(()=>{const n=a.value.querySelector("#slide-content"),t=Ce(Ne()),w=ce();ae(()=>{if(!w.value||we.value||!Ee.value||!n)return;const r=n.getBoundingClientRect(),b=(t.x-r.left)/r.width*100,z=(t.y-r.top)/r.height*100;if(!(b<0||b>100||z<0||z>100))return{x:b,y:z}},r=>{De.cursor=r})}),(n,t)=>(s(),l(pe,null,[o("div",xt,[o("div",null,[v(ot),v(nt)]),o("div",{ref_key:"gridContainer",ref:u,class:R(["grid-container",`layout${e(f)}`]),style:ue({"--slidev-presenter-notes-width":`${e(y)}px`,"--slidev-presenter-notes-row-size":`${e(S)}px`,"--slidev-presenter-bottom-height":`${K.value}px`})},[p(" Unified vertical resizer for wide layout "),P.value&&O.value?(s(),l("div",{key:0,class:"notes-vertical-resizer",role:"separator","aria-orientation":"vertical",title:"Resize notes panel",onPointerdown:X},null,32)):p("v-if",!0),p(" Unified vertical resizer for layout 3 "),P.value&&e(f)===3?(s(),l("div",{key:1,class:"notes-vertical-resizer-left",role:"separator","aria-orientation":"vertical",title:"Resize notes panel",onPointerdown:X},null,32)):p("v-if",!0),o("div",{ref_key:"main",ref:a,class:"relative grid-section main flex flex-col"},[o("div",ht,[t[3]||(t[3]=o("span",{op50:"",px2:""},"Current",-1)),t[4]||(t[4]=o("div",{"flex-auto":""},null,-1)),v(Ye,{modelValue:e($),"onUpdate:modelValue":t[0]||(t[0]=w=>Me($)?$.value=w:null),options:[{label:"Slides",value:"slides"},{label:"Screen Mirror",value:"mirror"}]},null,8,["modelValue"])]),e($)==="mirror"?(s(),k(ut,{key:0})):p("v-if",!0),p(" We use v-show here to still infer the clicks context "),me(v(de,{key:"main",class:"p-2 lg:p-4 flex-auto","is-main":"",onContextmenu:e(Ge)},{default:j(()=>[v(qe,{"render-context":"presenter"})]),_:1},8,["onContextmenu"]),[[fe,e($)==="slides"]]),(s(),k(et,{key:e(B)?.no,"clicks-context":e(he)(e(B)),class:"w-full pb2 px4 flex-none"},null,8,["clicks-context"]))],512),o("div",wt,[U.value&&e(f)===2?(s(),l("div",{key:0,class:"notes-row-resizer top-[-6px]",role:"separator","aria-orientation":"horizontal",title:"Resize notes panel height",onPointerdown:oe},null,32)):p("v-if",!0),g.value&&F.value?(s(),k(de,{key:"next"},{default:j(()=>[(s(),k(Ie,{key:g.value[0].no,"clicks-context":F.value.context,route:g.value[0],"render-context":"previewNext"},null,8,["clicks-context","route"]))]),_:1})):(s(),l("div",gt,[...t[5]||(t[5]=[o("div",{class:"text-gray-500"}," End of the presentation ",-1)])])),t[6]||(t[6]=o("div",{class:"absolute left-0 top-0 bg-main border-b border-r border-main px2 py1 op50 text-sm"}," Next ",-1))]),o("div",{ref_key:"noteSection",ref:x,class:"relative grid-section note overflow-hidden"},[P.value&&!O.value&&e(f)!==3?(s(),l("div",{key:0,class:"notes-resizer right-[-6px]",role:"separator","aria-orientation":"vertical",title:"Resize notes panel",onPointerdown:X},null,32)):p("v-if",!0),U.value&&e(f)!==2?(s(),l("div",{key:1,class:R(["notes-row-resizer",ee.value?"top-[-6px]":"bottom-[-6px]"]),role:"separator","aria-orientation":"horizontal",title:"Resize notes panel height",onPointerdown:oe},null,34)):p("v-if",!0),ie.value&&e(Be)?(s(),k(e(ie),{key:2,class:"h-full"})):(s(),l("div",kt,[(s(),k(at,{key:`static-${e(W)}`,no:e(W),class:"w-full max-w-full h-full overflow-auto p-2 lg:p-4",style:ue({fontSize:`${e(Fe)}em`}),"clicks-context":e(h)},null,8,["no","style","clicks-context"])),t[10]||(t[10]=o("div",{"border-t":"","border-main":""},null,-1)),o("div",{class:R(["py-1 px-2 text-sm transition",e(i)?"":"op25"])},[v(ve,{title:"Increase font size",onClick:e(Pe)},{default:j(()=>[...t[7]||(t[7]=[o("div",{class:"i-carbon:zoom-in"},null,-1)])]),_:1},8,["onClick"]),v(ve,{title:"Decrease font size",onClick:e(Le)},{default:j(()=>[...t[8]||(t[8]=[o("div",{class:"i-carbon:zoom-out"},null,-1)])]),_:1},8,["onClick"]),p("v-if",!0)],2)]))],512),o("div",{ref_key:"bottomSection",ref:C,class:"grid-section bottom flex"},[v(Qe,{persist:!0,class:R(["transition",e(i)?"":"op25"])},null,8,["class"]),t[11]||(t[11]=o("div",{"flex-auto":""},null,-1)),v(pt)],512),(s(),k(st,{key:2}))],6)]),v(Ae),v(Ke),v(Ze)],64))}}),Pt=Ve(_t,[["__scopeId","data-v-e5b232f6"]]);export{Pt as default}; diff --git a/assets/slidev/shortcuts-B6x-gEsD.js b/assets/slidev/shortcuts-B1mBgg0H.js similarity index 98% rename from assets/slidev/shortcuts-B6x-gEsD.js rename to assets/slidev/shortcuts-B1mBgg0H.js index 4b03443ae3c6a6b4cb4c1c6658cb4945e89f750f..d5b39599d0c224a85c54007c2d2474c876db656f 100644 --- a/assets/slidev/shortcuts-B6x-gEsD.js +++ b/assets/slidev/shortcuts-B1mBgg0H.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/slidev/DrawingLayer-UqGfx46V.js","assets/modules/vue-CZamTkmS.js","assets/slidev/SlideWrapper-Dcg6ZMCe.js","assets/index-D8MtK2Qe.js","assets/modules/shiki-COQlGosf.js","assets/modules/shiki-UqVAgQbi.css","assets/index-zCBU-I5-.css","assets/SlideWrapper-CgHDuBf7.css","assets/slidev/context-z1Z7Rpcn.js"])))=>i.map(i=>d[i]); -import{au as En,av as $n,r as Y,K as He,aw as en,z as R,Q as Rt,f as Q,a7 as tn,ao as nn,a6 as Dn,T as r,o as u,e as f,ax as sn,k as Ae,F as T,aj as Ve,n as L,b as D,ay as Ie,g,t as ee,j as w,ad as Ke,a9 as Bn,l as Qe,d as E,i as ot,at as Fn,ah as an,az as on,af as Ge,aA as Rn,aB as ln,w as $,ag as Lt,m as wt,A as ft,E as Pe,aq as In,am as rn,S as Pn,D as Vn,aC as Je,v as _e,x as ke,aD as Tn,aE as z,aF as oe,aG as Ln,aH as Nn}from"../modules/vue-CZamTkmS.js";import{a as ce,G as nt,H as lt,f as It,j as ht,o as Ce,I as On,J as Fe,_ as dt,K as $e,L as We,b as rt,E as P,F as K,M as pt,x as mt,N as Se,O as Ct,i as zn,t as At,n as Ze,P as un,A as Nt,Q as jn,h as Wn,R as Hn,S as Kn,T as le,c as cn,C as dn,p as Gn,w as Ot,U as Un,V as zt,W as jt,X as Pt,r as Wt,Y as Yn,y as Xn,Z as gt,$ as Ht,a0 as Mt,a1 as Qn,a2 as Jn,a3 as Zn,a4 as qn}from"../index-D8MtK2Qe.js";import{u as vt,a as es,S as vn,_ as ts,G as ns,b as ss}from"./SlideWrapper-Dcg6ZMCe.js";import{u as as}from"./context-z1Z7Rpcn.js";import{_ as os,a as ls,b as rs,c as is}from"../modules/unplugin-icons-ByIekoE6.js";import{_ as U}from"./IconButton.vue_vue_type_script_setup_true_lang-DEyEjvqJ.js";import{V as us,t as cs}from"../modules/shiki-COQlGosf.js";function Xo(t){const{next:e,nextSlide:s,prev:a,prevSlide:n}=ce(),{isDrawing:o}=vt(),l=Y(0),{direction:i,distanceX:v,distanceY:c}=En(t,{pointerTypes:["touch"],onSwipeStart(){o.value||(l.value=$n())},onSwipeEnd(){if(!l.value||o.value)return;const d=Math.abs(v.value),m=Math.abs(c.value);d/window.innerWidth>.3||d>75?i.value==="left"?e():a():(m/window.innerHeight>.4||m>200)&&(i.value==="down"?n():s())}})}function Qo(){const{request:t,release:e}=en();He(nt,s=>{s?t("screen"):e()},{immediate:!0})}const ds=[Object.values([])[0],Object.values([])[0]].filter(Boolean);let yt;const vs=()=>{if(yt)return yt;const{next:t,nextSlide:e,prev:s,prevSlide:a,hasNext:n,hasPrev:o,currentPage:l,total:i,isPresenter:v,enterPresenter:c,exitPresenter:d,isEmbedded:m,isPresenterAvailable:p}=ce(),{drawingEnabled:y}=vt(),{isFullscreen:x,toggle:A}=It;return yt=ds.reduce((h,b)=>b(h),R(()=>[{small:!0,icon:"i-carbon:arrow-left",label:"Previous Click",action:s,disabled:!o.value},{small:!0,icon:"i-carbon:arrow-right",label:"Next Click",action:t,disabled:!n.value},{small:!0,icon:"i-carbon:arrow-up",label:"Previous Slide",action:a,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:ht.value?"Hide editor":"Show editor",action:()=>ht.value=!ht.value,show:!1},{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:lt},v.value&&{icon:"i-carbon:presentation-file",label:"Exit Presenter Mode",action:d},p.value&&{icon:"i-carbon:user-speaker",label:"Enter Presenter Mode",action:c},!m.value&&{icon:x.value?"i-carbon:minimize":"i-carbon:maximize",label:x.value?"Close fullscreen":"Enter fullscreen",action:A}].filter(Boolean)))},Re=Rt(null);function fs(t,e){Re.value={x:t,y:e,items:vs()}}function Ne(){Re.value=null}function Jo(t){if(Ce.contextMenu!==!0&&Ce.contextMenu!=null&&Ce.contextMenu!==On||t.shiftKey||t.defaultPrevented)return;const{isEmbedded:e}=ce();e.value||(fs(t.pageX,t.pageY),t.preventDefault(),t.stopPropagation())}const hs=["title","onClick"],ps=["onClick"],ms={class:"mx-auto flex"},gs={key:0},ys={class:"w-full text-xs p2"},bs={class:"text-main text-opacity-50!"},Zo=Q({__name:"ContextMenu",setup(t){const e=Y();tn(e,Ne),nn(document,"mousedown",v=>{v.buttons&2&&Ne()},{passive:!0,capture:!0});const s=R(()=>Ce.contextMenu!=null),a=Bn();He(a,v=>{v||Ne()});const{width:n,height:o}=Dn(e),l=R(()=>{const v=Re.value?.x;return v?v+n.value>Fe.width.value?Fe.width.value-n.value:v:0}),i=R(()=>{const v=Re.value?.y;return v?v+o.value>Fe.height.value?Fe.height.value-o.value:v:0});return(v,c)=>r(Re)?(u(),f("div",{key:0,ref_key:"container",ref:e,style:Ae(`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]=sn(()=>{},["prevent"])),onClick:c[2]||(c[2]=(...d)=>r(Ne)&&r(Ne)(...d))},[(u(!0),f(T,null,Ve(r(Re).items.value,(d,m)=>(u(),f(T,{key:m},[d==="separator"?(u(),f("div",{key:m,class:"w-full my1 border-t border-main"})):d.show??!0?(u(),f(T,{key:1},[d.small?(u(),f("div",{key:0,class:L(["p-2 w-[40px] h-[40px] inline-block text-center cursor-pointer rounded flex",d.disabled?"op40":"hover:bg-active"]),title:d.label,onClick:d.action},[typeof d.icon=="string"?(u(),f("div",{key:0,class:L([d.icon,"text-1.2em ma"])},null,2)):(u(),D(Ie(d.icon),{key:1}))],10,hs)):(u(),f("div",{key:1,class:L(["w-full grid grid-cols-[35px_1fr] p-2 pl-0 cursor-pointer rounded",d.disabled?"op40":"hover:bg-active"]),onClick:d.action},[g("div",ms,[typeof d.icon=="string"?(u(),f("div",{key:0,class:L([d.icon,"text-1.2em ma"])},null,2)):(u(),D(Ie(d.icon),{key:1}))]),typeof d.label=="string"?(u(),f("div",gs,ee(d.label),1)):(u(),D(Ie(d.label),{key:1}))],10,ps))],64)):w("v-if",!0)],64))),128)),s.value?w("v-if",!0):(u(),f(T,{key:0},[c[6]||(c[6]=g("div",{class:"w-full my1 border-t border-main"},null,-1)),g("div",ys,[g("div",bs,[c[3]||(c[3]=Ke(" Hold ",-1)),c[4]||(c[4]=g("kbd",{class:"border px1 py0.5 border-main rounded text-primary"},"Shift",-1)),c[5]||(c[5]=Ke(" and right click to open the native context menu ",-1)),w("v-if",!0)])])],64))],36)):w("v-if",!0)}}),xs={},_s={class:"w-1px opacity-10 bg-current m-1 lg:m-2"};function ks(t,e){return u(),f("div",_s)}const Oe=dt(xs,[["render",ks]]),ws={key:0},Cs={key:1},As={key:2},Ms={key:3},Ss={key:4},Es={key:5},$s={key:6},Ds={key:7},Bs={key:8},Fs={key:9},Rs={key:10},Is={key:11},Ps={key:12},Vs={key:13},Ts={key:14},Ls={key:15},Ns={key:16},Os={key:17},zs={key:18},js={key:19},Ws={key:20},Hs={key:21},Ks={key:22},Gs={key:23},Us={key:24},Ys={key:25},Xs={key:26},Qs={key:27},Js={key:28},Zs={key:29},qs=Q({__name:"title-renderer",props:{no:{}},setup(t){const e=t,{$page:s}=as(),a=R(()=>+(e.no??s.value));return(n,o)=>(u(),f("div",null,[a.value===1?(u(),f("p",ws,"Time Series Foundation Models for Process Model Forecasting")):a.value===2?(u(),f("p",Cs,"undefined")):a.value===3?(u(),f("p",As,"undefined")):a.value===4?(u(),f("p",Ms,"undefined")):a.value===5?(u(),f("p",Ss,"undefined")):a.value===6?(u(),f("p",Es,"undefined")):a.value===7?(u(),f("p",$s,"undefined")):a.value===8?(u(),f("p",Ds,"undefined")):a.value===9?(u(),f("p",Bs,"undefined")):a.value===10?(u(),f("p",Fs,"undefined")):a.value===11?(u(),f("p",Rs,"undefined")):a.value===12?(u(),f("p",Is,"undefined")):a.value===13?(u(),f("p",Ps,"undefined")):a.value===14?(u(),f("p",Vs,"undefined")):a.value===15?(u(),f("p",Ts,"undefined")):a.value===16?(u(),f("p",Ls,"undefined")):a.value===17?(u(),f("p",Ns,"undefined")):a.value===18?(u(),f("p",Os,"undefined")):a.value===19?(u(),f("p",zs,"undefined")):a.value===20?(u(),f("p",js,"Thank you")):a.value===21?(u(),f("p",Ws,"undefined")):a.value===22?(u(),f("p",Hs,"undefined")):a.value===23?(u(),f("p",Ks,"undefined")):a.value===24?(u(),f("p",Gs,"undefined")):a.value===25?(u(),f("p",Us,"undefined")):a.value===26?(u(),f("p",Ys,"undefined")):a.value===27?(u(),f("p",Xs,"undefined")):a.value===28?(u(),f("p",Qs,"undefined")):a.value===29?(u(),f("p",Js,"undefined")):a.value===30?(u(),f("p",Zs,"undefined")):w("v-if",!0)]))}});function Me(t){return Array.isArray?Array.isArray(t):pn(t)==="[object Array]"}function ea(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function ta(t){return t==null?"":ea(t)}function he(t){return typeof t=="string"}function fn(t){return typeof t=="number"}function na(t){return t===!0||t===!1||sa(t)&&pn(t)=="[object Boolean]"}function hn(t){return typeof t=="object"}function sa(t){return hn(t)&&t!==null}function re(t){return t!=null}function bt(t){return!t.trim().length}function pn(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const aa="Incorrect 'index' type",oa=t=>`Invalid value for key ${t}`,la=t=>`Pattern length exceeds max of ${t}.`,ra=t=>`Missing ${t} property in key`,ia=t=>`Property 'weight' in key '${t}' must be a positive integer`,Kt=Object.prototype.hasOwnProperty;class ua{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(a=>{let n=mn(a);this._keys.push(n),this._keyMap[n.id]=n,s+=n.weight}),this._keys.forEach(a=>{a.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function mn(t){let e=null,s=null,a=null,n=1,o=null;if(he(t)||Me(t))a=t,e=Gt(t),s=St(t);else{if(!Kt.call(t,"name"))throw new Error(ra("name"));const l=t.name;if(a=l,Kt.call(t,"weight")&&(n=t.weight,n<=0))throw new Error(ia(l));e=Gt(l),s=St(l),o=t.getFn}return{path:e,id:s,weight:n,src:a,getFn:o}}function Gt(t){return Me(t)?t:t.split(".")}function St(t){return Me(t)?t.join("."):t}function ca(t,e){let s=[],a=!1;const n=(o,l,i)=>{if(re(o))if(!l[i])s.push(o);else{let v=l[i];const c=o[v];if(!re(c))return;if(i===l.length-1&&(he(c)||fn(c)||na(c)))s.push(ta(c));else if(Me(c)){a=!0;for(let d=0,m=c.length;dt.score===e.score?t.idx{this._keysMap[s.id]=a})}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,a=this.size();s{let l=n.getFn?n.getFn(e):this.getFn(e,n.path);if(re(l)){if(Me(l)){let i=[];const v=[{nestedArrIndex:-1,value:l}];for(;v.length;){const{nestedArrIndex:c,value:d}=v.pop();if(re(d))if(he(d)&&!bt(d)){let m={v:d,i:c,n:this.norm.get(d)};i.push(m)}else Me(d)&&d.forEach((m,p)=>{v.push({nestedArrIndex:p,value:m})})}a.$[o]=i}else if(he(l)&&!bt(l)){let i={v:l,n:this.norm.get(l)};a.$[o]=i}}}),this.records.push(a)}toJSON(){return{keys:this.keys,records:this.records}}}function gn(t,e,{getFn:s=k.getFn,fieldNormWeight:a=k.fieldNormWeight}={}){const n=new Vt({getFn:s,fieldNormWeight:a});return n.setKeys(t.map(mn)),n.setSources(e),n.create(),n}function ga(t,{getFn:e=k.getFn,fieldNormWeight:s=k.fieldNormWeight}={}){const{keys:a,records:n}=t,o=new Vt({getFn:e,fieldNormWeight:s});return o.setKeys(a),o.setIndexRecords(n),o}function qe(t,{errors:e=0,currentLocation:s=0,expectedLocation:a=0,distance:n=k.distance,ignoreLocation:o=k.ignoreLocation}={}){const l=e/t.length;if(o)return l;const i=Math.abs(a-s);return n?l+i/n:i?1:l}function ya(t=[],e=k.minMatchCharLength){let s=[],a=-1,n=-1,o=0;for(let l=t.length;o=e&&s.push([a,n]),a=-1)}return t[o-1]&&o-a>=e&&s.push([a,o-1]),s}const Be=32;function ba(t,e,s,{location:a=k.location,distance:n=k.distance,threshold:o=k.threshold,findAllMatches:l=k.findAllMatches,minMatchCharLength:i=k.minMatchCharLength,includeMatches:v=k.includeMatches,ignoreLocation:c=k.ignoreLocation}={}){if(e.length>Be)throw new Error(la(Be));const d=e.length,m=t.length,p=Math.max(0,Math.min(a,m));let y=o,x=p;const A=i>1||v,h=A?Array(m):[];let b;for(;(b=t.indexOf(e,x))>-1;){let _=qe(e,{currentLocation:b,expectedLocation:p,distance:n,ignoreLocation:c});if(y=Math.min(_,y),x=b+d,A){let H=0;for(;H=O;G-=1){let pe=G-1,Ue=s[t.charAt(pe)];if(A&&(h[pe]=+!!Ue),se[G]=(se[G+1]<<1|1)&Ue,_&&(se[G]|=(F[G+1]|F[G])<<1|1|F[G+1]),se[G]&M&&(W=qe(e,{errors:_,currentLocation:pe,expectedLocation:p,distance:n,ignoreLocation:c}),W<=y)){if(y=W,x=pe,x<=p)break;O=Math.max(1,2*p-x)}}if(qe(e,{errors:_+1,currentLocation:p,expectedLocation:p,distance:n,ignoreLocation:c})>y)break;F=se}const ne={isMatch:x>=0,score:Math.max(.001,W)};if(A){const _=ya(h,i);_.length?v&&(ne.indices=_):ne.isMatch=!1}return ne}function xa(t){let e={};for(let s=0,a=t.length;st.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,"")):(t=>t);class yn{constructor(e,{location:s=k.location,threshold:a=k.threshold,distance:n=k.distance,includeMatches:o=k.includeMatches,findAllMatches:l=k.findAllMatches,minMatchCharLength:i=k.minMatchCharLength,isCaseSensitive:v=k.isCaseSensitive,ignoreDiacritics:c=k.ignoreDiacritics,ignoreLocation:d=k.ignoreLocation}={}){if(this.options={location:s,threshold:a,distance:n,includeMatches:o,findAllMatches:l,minMatchCharLength:i,isCaseSensitive:v,ignoreDiacritics:c,ignoreLocation:d},e=v?e:e.toLowerCase(),e=c?it(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const m=(y,x)=>{this.chunks.push({pattern:y,alphabet:xa(y),startIndex:x})},p=this.pattern.length;if(p>Be){let y=0;const x=p%Be,A=p-x;for(;y{const{isMatch:F,score:W,indices:J}=ba(e,A,h,{location:o+b,distance:l,threshold:i,findAllMatches:v,minMatchCharLength:c,includeMatches:n,ignoreLocation:d});F&&(y=!0),p+=W,F&&J&&(m=[...m,...J])});let x={isMatch:y,score:y?p/this.chunks.length:1};return y&&n&&(x.indices=m),x}}class De{constructor(e){this.pattern=e}static isMultiMatch(e){return Ut(e,this.multiRegex)}static isSingleMatch(e){return Ut(e,this.singleRegex)}search(){}}function Ut(t,e){const s=t.match(e);return s?s[1]:null}class _a 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 ka extends De{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const a=e.indexOf(this.pattern)===-1;return{isMatch:a,score:a?0:1,indices:[0,e.length-1]}}}class wa 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 Ca 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 Aa 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 Ma 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 bn extends De{constructor(e,{location:s=k.location,threshold:a=k.threshold,distance:n=k.distance,includeMatches:o=k.includeMatches,findAllMatches:l=k.findAllMatches,minMatchCharLength:i=k.minMatchCharLength,isCaseSensitive:v=k.isCaseSensitive,ignoreDiacritics:c=k.ignoreDiacritics,ignoreLocation:d=k.ignoreLocation}={}){super(e),this._bitapSearch=new yn(e,{location:s,threshold:a,distance:n,includeMatches:o,findAllMatches:l,minMatchCharLength:i,isCaseSensitive:v,ignoreDiacritics:c,ignoreLocation:d})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class xn extends De{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,a;const n=[],o=this.pattern.length;for(;(a=e.indexOf(this.pattern,s))>-1;)s=a+o,n.push([a,s-1]);const l=!!n.length;return{isMatch:l,score:l?0:1,indices:n}}}const Et=[_a,xn,wa,Ca,Ma,Aa,ka,bn],Yt=Et.length,Sa=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Ea="|";function $a(t,e={}){return t.split(Ea).map(s=>{let a=s.trim().split(Sa).filter(o=>o&&!!o.trim()),n=[];for(let o=0,l=a.length;o!!(t[ut.AND]||t[ut.OR]),Ra=t=>!!t[Bt.PATH],Ia=t=>!Me(t)&&hn(t)&&!Ft(t),Xt=t=>({[ut.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function _n(t,e,{auto:s=!0}={}){const a=n=>{let o=Object.keys(n);const l=Ra(n);if(!l&&o.length>1&&!Ft(n))return a(Xt(n));if(Ia(n)){const v=l?n[Bt.PATH]:o[0],c=l?n[Bt.PATTERN]:n[v];if(!he(c))throw new Error(oa(v));const d={keyId:St(v),pattern:c};return s&&(d.searcher=Dt(c,e)),d}let i={children:[],operator:o[0]};return o.forEach(v=>{const c=n[v];Me(c)&&c.forEach(d=>{i.children.push(a(d))})}),i};return Ft(t)||(t=Xt(t)),a(t)}function Pa(t,{ignoreFieldNorm:e=k.ignoreFieldNorm}){t.forEach(s=>{let a=1;s.matches.forEach(({key:n,norm:o,score:l})=>{const i=n?n.weight:null;a*=Math.pow(l===0&&i?Number.EPSILON:l,(i||1)*(e?1:o))}),s.score=a})}function Va(t,e){const s=t.matches;e.matches=[],re(s)&&s.forEach(a=>{if(!re(a.indices)||!a.indices.length)return;const{indices:n,value:o}=a;let l={indices:n,value:o};a.key&&(l.key=a.key.src),a.idx>-1&&(l.refIndex=a.idx),e.matches.push(l)})}function Ta(t,e){e.score=t.score}function La(t,e,{includeMatches:s=k.includeMatches,includeScore:a=k.includeScore}={}){const n=[];return s&&n.push(Va),a&&n.push(Ta),t.map(o=>{const{idx:l}=o,i={item:e[l],refIndex:l};return n.length&&n.forEach(v=>{v(o,i)}),i})}class Te{constructor(e,s={},a){this.options={...k,...s},this.options.useExtendedSearch,this._keyStore=new ua(this.options.keys),this.setCollection(e,a)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof Vt))throw new Error(aa);this._myIndex=s||gn(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){re(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let a=0,n=this._docs.length;a-1&&(v=v.slice(0,s)),La(v,this._docs,{includeMatches:a,includeScore:n})}_searchStringList(e){const s=Dt(e,this.options),{records:a}=this._myIndex,n=[];return a.forEach(({v:o,i:l,n:i})=>{if(!re(o))return;const{isMatch:v,score:c,indices:d}=s.searchIn(o);v&&n.push({item:o,idx:l,matches:[{score:c,value:o,norm:i,indices:d}]})}),n}_searchLogical(e){const s=_n(e,this.options),a=(i,v,c)=>{if(!i.children){const{keyId:m,searcher:p}=i,y=this._findMatches({key:this._keyStore.get(m),value:this._myIndex.getValueForItemAtKeyId(v,m),searcher:p});return y&&y.length?[{idx:c,item:v,matches:y}]:[]}const d=[];for(let m=0,p=i.children.length;m{if(re(i)){let c=a(s,i,v);c.length&&(o[v]||(o[v]={idx:v,item:i,matches:[]},l.push(o[v])),c.forEach(({matches:d})=>{o[v].matches.push(...d)}))}}),l}_searchObjectList(e){const s=Dt(e,this.options),{keys:a,records:n}=this._myIndex,o=[];return n.forEach(({$:l,i})=>{if(!re(l))return;let v=[];a.forEach((c,d)=>{v.push(...this._findMatches({key:c,value:l[d],searcher:s}))}),v.length&&o.push({idx:i,item:l,matches:v})}),o}_findMatches({key:e,value:s,searcher:a}){if(!re(s))return[];let n=[];if(Me(s))s.forEach(({v:o,i:l,n:i})=>{if(!re(o))return;const{isMatch:v,score:c,indices:d}=a.searchIn(o);v&&n.push({score:c,key:e,value:o,idx:l,norm:i,indices:d})});else{const{v:o,n:l}=s,{isMatch:i,score:v,indices:c}=a.searchIn(o);i&&n.push({score:v,key:e,value:o,norm:l,indices:c})}return n}}Te.version="7.1.0";Te.createIndex=gn;Te.parseIndex=ga;Te.config=k;Te.parseQuery=_n;Fa(Ba);const Na={class:"bg-main transform",shadow:"~",p:"x-4 y-2",border:"~ transparent rounded dark:main"},Oa=["value","disabled"],za={table:"","w-full":"","border-collapse":""},ja=["border","onClick"],Wa={"text-right":"",op50:"","text-sm":"","table-cell":"","py-2":"","pl-4":"","pr-3":"","vertical-middle":""},Ha=Q({__name:"Goto",setup(t){const e=Y(),s=Y(),a=Y(),n=Y(),o=Y(""),l=Y(0),{go:i,slides:v}=ce();function c(M){return M!=null}const d=R(()=>new Te(v.value.map(M=>M.meta?.slide).filter(c),{keys:["no","title"],threshold:.3,shouldSort:!0,minMatchCharLength:1})),m=R(()=>o.value.startsWith("/")?o.value.substring(1):o.value),p=R(()=>d.value.search(m.value).map(M=>M.item)),y=R(()=>!!p.value.length);function x(){if(y.value){const M=p.value.at(l.value||0);M&&i(M.no)}A()}function A(){o.value="",$e.value=!1}function h(M){M.preventDefault(),l.value++,l.value>=p.value.length&&(l.value=0),F()}function b(M){M.preventDefault(),l.value--,l.value<=-2&&(l.value=p.value.length-1),F()}function F(){const M=n.value?.[l.value];M&&a.value&&(M.offsetTop+M.offsetHeight>a.value.offsetHeight+a.value.scrollTop?a.value.scrollTo({behavior:"smooth",top:M.offsetTop+M.offsetHeight-a.value.offsetHeight+1}):M.offsetTop{M?(o.value="",l.value=0,setTimeout(()=>s.value?.focus(),0)):s.value?.blur()}),He(We,()=>{e.value?.contains(We.value)||A()}),(M,ne)=>(u(),f("div",{id:"slidev-goto-dialog",ref_key:"container",ref:e,class:L(["fixed right-5 transition-all",r($e)?"top-5":"-top-20"]),"w-90":"","max-w-90":"","min-w-90":""},[g("div",Na,[g("input",{id:"slidev-goto-input",ref_key:"input",ref:s,value:o.value,type:"text",disabled:!r($e),class:L(["outline-none bg-transparent",{"text-red-400":!y.value&&o.value}]),placeholder:"Goto...",onKeydown:[Qe(x,["enter"]),Qe(A,["escape"]),Qe(h,["down"]),Qe(b,["up"])],onInput:W},null,42,Oa)]),p.value.length>0?(u(),f("div",{key:0,ref_key:"list",ref:a,class:"autocomplete-list",shadow:"~",border:"~ transparent rounded dark:main"},[g("ul",za,[(u(!0),f(T,null,Ve(p.value,(_,H)=>(u(),f("li",{ref_for:!0,ref_key:"items",ref:n,key:_.id,role:"button",tabindex:"0","cursor-pointer":"",hover:"op100","table-row":"","items-center":"",border:H===0?void 0:"t main",class:L(l.value===H?"bg-active op100":"op80"),onClick:sn(I=>J(_.no),["stop","prevent"])},[g("div",Wa,ee(_.no),1),E(r(qs),{"table-cell":"","py-2":"","pr-4":"","w-full":"",no:_.no},null,8,["no"])],10,ja))),128))])],512)):w("v-if",!0)],2))}}),qo=dt(Ha,[["__scopeId","data-v-04ae10e7"]]),Ka={render:()=>[]},Ga={key:0,class:"bg-main text-main shadow-xl absolute bottom-10 left-0 z-menu py2",border:"~ main rounded-md"},kn=Q({__name:"MenuButton",props:{modelValue:{default:!1},disabled:{default:!1}},setup(t,{emit:e}){const n=an(t,"modelValue",e,{passive:!0}),o=Y();return tn(o,()=>{n.value=!1}),(l,i)=>(u(),f("div",{ref_key:"el",ref:o,class:"flex relative"},[g("button",{class:L({disabled:t.disabled}),onClick:i[0]||(i[0]=v=>n.value=!r(n))},[ot(l.$slots,"button",{class:L({disabled:t.disabled})})],2),(u(),D(Fn,null,[r(n)?(u(),f("div",Ga,[ot(l.$slots,"menu")])):w("v-if",!0)],1024))],512))}}),Ua={border:"~ main rounded",flex:"~ gap-2 items-center",relative:"","h-5":"","w-5":"","p0.5":"","hover:bg-active":"",p1:""},Ya=["disabled"],xt=Q({__name:"FormCheckbox",props:ln({disabled:{type:Boolean}},{modelValue:{type:Boolean,type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=on(t,"modelValue");return(s,a)=>(u(),f("div",Ua,[g("div",{"i-ri-check-line":"",class:L(e.value?"":"op0")},null,2),Ge(g("input",{"onUpdate:modelValue":a[0]||(a[0]=n=>e.value=n),type:"checkbox",absolute:"","inset-0":"","opacity-10":"",disabled:t.disabled},null,8,Ya),[[Rn,e.value]])]))}}),Xa={"w-30":"","h-8":"",flex:"~ gap-1 items-center"},Qa={key:0,"w-1.5":"","h-1.5":"","bg-primary":"",rounded:"",absolute:"","top-0":"","right--2":""},Ja={key:0,"w-1.5":"","h-1.5":"","bg-primary":"",rounded:"",absolute:"","top-0":"","right--2":""},Za=["innerHTML"],we=Q({__name:"FormItem",props:{title:{},nested:{type:[Boolean,Number]},div:{type:Boolean},description:{},dot:{type:Boolean}},emits:["reset"],setup(t,{emit:e}){const s=e;function a(){s("reset")}return(n,o)=>(u(),D(Ie(t.div?"div":"label"),{flex:"~ row gap-2 items-center","select-none":""},{default:$(()=>[g("div",Xa,[t.nested?(u(),f("div",{key:0,"i-ri-corner-down-right-line":"",op40:"",style:Ae(typeof t.nested=="number"?{marginLeft:`${t.nested*.5+.5}rem`}:{marginLeft:"0.25rem"})},null,4)):w("v-if",!0),t.description?(u(),D(r(us),{key:2,distance:"10"},{popper:$(()=>[g("div",{"text-sm":"","min-w-90":"",innerHTML:t.description},null,8,Za)]),default:$(()=>[g("div",{op75:"","text-right":"",relative:"",onDblclick:a},[Ke(ee(t.title)+" ",1),t.dot?(u(),f("div",Ja)):w("v-if",!0)],32)]),_:1})):(u(),f("div",{key:1,op75:"",relative:"",onDblclick:a},[Ke(ee(t.title)+" ",1),t.dot?(u(),f("div",Qa)):w("v-if",!0)],32))]),ot(n.$slots,"default")]),_:3}))}}),qa={relative:"","h-22px":""},eo={key:0,"pointer-events-none":"",absolute:"","right-1":"","top-0.5":"","text-xs":"",op25:""},ze=Q({__name:"FormSlider",props:ln({max:{},min:{},step:{},unit:{},default:{}},{modelValue:{type:Number},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=t,s=on(t,"modelValue");return(a,n)=>(u(),f(T,null,[g("div",{relative:"","h-22px":"","w-60":"","flex-auto":"",onDblclick:n[1]||(n[1]=o=>e.default!==void 0?s.value=e.default:null)},[Ge(g("input",wt({"onUpdate:modelValue":n[0]||(n[0]=o=>s.value=o),type:"range",class:"slider"},e,{absolute:"","bottom-0":"","left-0":"","right-0":"","top-0":"","z-10":"","w-full":"","align-top":""}),null,16),[[Lt,s.value,void 0,{number:!0}]]),e.default!=null?(u(),f("span",{key:0,border:"r main",absolute:"","bottom-0":"","top-0":"","h-full":"","w-1px":"",op75:"",style:Ae({left:`${(e.default-t.min)/(t.max-t.min)*100}%`})},null,4)):w("v-if",!0)],32),g("div",qa,[Ge(g("input",wt({"onUpdate:modelValue":n[2]||(n[2]=o=>s.value=o),type:"number"},e,{border:"~ main rounded",m0:"","w-20":"","bg-gray:5":"",pl2:"","align-top":"","text-sm":""}),null,16),[[Lt,s.value,void 0,{number:!0}]]),e.unit?(u(),f("span",eo,ee(e.unit),1)):w("v-if",!0)])],64))}}),Qt={error:0,client:60,Light:60,Dark:240};function Jt(t,e=1){if(Qt[t])return ct(Qt[t],e);let s=0;for(let n=0;n!e.text||e.color===!1?{}:{color:typeof e.color=="number"?ct(e.color):Jt(e.text),background:typeof e.color=="number"?ct(e.color,.1):Jt(e.text,.1)}),a=R(()=>(e.size||"sm")==="sm"?"px-1.5 text-11px leading-1.6em":"");return(n,o)=>(u(),D(Ie(t.as||"span"),{"ws-nowrap":"",rounded:"",class:L(a.value),style:Ae(s.value)},{default:$(()=>[ot(n.$slots,"default",{},()=>[g("span",{textContent:ee(e.text)},null,8,to)])]),_:3},8,["class","style"]))}}),so={flex:"~ gap-1 items-center",rounded:"","bg-gray:4":"",p1:"","m--1":""},ao=Q({__name:"SegmentControl",props:{options:{},modelValue:{}},emits:["update:modelValue"],setup(t){return(e,s)=>(u(),f("div",so,[(u(!0),f(T,null,Ve(t.options,a=>(u(),D(no,{key:a.value,class:L(["px-2 py-1 text-xs font-mono",a.value===t.modelValue?"":"op50"]),color:a.value===t.modelValue,"aria-pressed":a.value===t.modelValue,size:"none",text:a.label,as:"button",onClick:n=>e.$emit("update:modelValue",a.value)},null,8,["class","color","aria-pressed","text","onClick"]))),128))]))}}),oo={"text-sm":"","select-none":"",flex:"~ col gap-1","min-w-30":"",px4:""},lo=Q({__name:"Settings",setup(t){const{isPresenter:e}=ce(),{isSupported:s}=en();return(a,n)=>(u(),f("div",oo,[E(we,{title:"Invert",dot:r(P).invert!==r(K).invert,onReset:n[1]||(n[1]=o=>r(P).invert=r(K).invert)},{default:$(()=>[E(xt,{modelValue:r(P).invert,"onUpdate:modelValue":n[0]||(n[0]=o=>r(P).invert=o)},null,8,["modelValue"])]),_:1},8,["dot"]),E(we,{title:"Brightness",dot:r(P).brightness!==r(K).brightness,onReset:n[3]||(n[3]=o=>r(P).brightness=r(K).brightness)},{default:$(()=>[E(ze,{modelValue:r(P).brightness,"onUpdate:modelValue":n[2]||(n[2]=o=>r(P).brightness=o),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:n[5]||(n[5]=o=>r(P).contrast=r(K).contrast)},{default:$(()=>[E(ze,{modelValue:r(P).contrast,"onUpdate:modelValue":n[4]||(n[4]=o=>r(P).contrast=o),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:n[7]||(n[7]=o=>r(P).saturate=r(K).saturate)},{default:$(()=>[E(ze,{modelValue:r(P).saturate,"onUpdate:modelValue":n[6]||(n[6]=o=>r(P).saturate=o),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:n[9]||(n[9]=o=>r(P).sepia=r(K).sepia)},{default:$(()=>[E(ze,{modelValue:r(P).sepia,"onUpdate:modelValue":n[8]||(n[8]=o=>r(P).sepia=o),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:n[11]||(n[11]=o=>r(P).hueRotate=r(K).hueRotate)},{default:$(()=>[E(ze,{modelValue:r(P).hueRotate,"onUpdate:modelValue":n[10]||(n[10]=o=>r(P).hueRotate=o),max:180,min:-180,step:.1,default:r(K).hueRotate},null,8,["modelValue","default"])]),_:1},8,["dot"]),n[15]||(n[15]=g("div",{class:"h-1px opacity-5 bg-current w-full my2"},null,-1)),r(e)?w("v-if",!0):(u(),D(we,{key:0,title:"Slide Scale"},{default:$(()=>[E(ao,{modelValue:r(pt),"onUpdate:modelValue":n[12]||(n[12]=o=>ft(pt)?pt.value=o: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(xt,{modelValue:r(nt),"onUpdate:modelValue":n[13]||(n[13]=o=>ft(nt)?nt.value=o:null)},null,8,["modelValue"])]),_:1})):w("v-if",!0),r(e)?w("v-if",!0):(u(),D(we,{key:2,title:"Hide Idle Cursor"},{default:$(()=>[E(xt,{modelValue:r(mt),"onUpdate:modelValue":n[14]||(n[14]=o=>ft(mt)?mt.value=o:null)},null,8,["modelValue"])]),_:1}))]))}}),ro={class:"select-list"},io={class:"title"},uo={class:"items"},co=["onClick"],vo=Q({__name:"SelectList",props:{modelValue:{type:[Object,String,Number,Boolean]},title:{type:String},items:{type:Array}},setup(t,{emit:e}){const n=an(t,"modelValue",e,{passive:!0});return(o,l)=>(u(),f("div",ro,[g("div",io,ee(t.title),1),g("div",uo,[(u(!0),f(T,null,Ve(t.items,i=>(u(),f("div",{key:i.value,class:L(["item",{active:r(n)===i.value}]),onClick:()=>{n.value=i.value,i.onClick?.()}},[g("div",{class:L(["i-carbon:checkmark text-green-500 mya",{"opacity-0":r(n)!==i.value}])},null,2),g("div",{class:L({"opacity-50":r(n)!==i.value})},ee(i.display||i.value),3)],10,co))),128))])]))}}),fo=dt(vo,[["__scopeId","data-v-6daa8a70"]]),ho={"text-sm":"",flex:"~ col gap-2"},po={px3:"","ws-nowrap":""},mo={"font-bold":"","text-primary":""},go=Q({__name:"SyncControls",setup(t){const{isPresenter:e}=ce(),s=R({get:()=>e.value?Se.value.presenterReceive:Se.value.viewerReceive,set(o){e.value?Se.value.presenterReceive=o:Se.value.viewerReceive=o}}),a=R({get:()=>e.value?Se.value.presenterSend:Se.value.viewerSend,set(o){e.value?Se.value.presenterSend=o:Se.value.viewerSend=o}}),n=R({get:()=>s.value&&a.value?"bidirectional":s.value&&!a.value?"receive-only":!s.value&&a.value?"send-only":"off",set(o){switch(o){case"bidirectional":s.value=!0,a.value=!0;break;case"receive-only":s.value=!0,a.value=!1;break;case"send-only":s.value=!1,a.value=!0;break;case"off":s.value=!1,a.value=!1;break}}});return(o,l)=>(u(),D(kn,null,{button:$(()=>[E(U,{title:"Change sync settings"},{default:$(()=>[g("div",{class:L(["i-ph:arrow-up-bold mx--1.2 scale-x-80",a.value?"text-green6 dark:text-green":"op30"])},null,2),g("div",{class:L(["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",ho,[g("div",po,[l[1]||(l[1]=g("span",{op75:""},"Slides navigation syncing for ",-1)),g("span",mo,ee(r(e)?"presenter":"viewer"),1)]),l[2]||(l[2]=g("div",{class:"h-1px opacity-10 bg-current w-full"},null,-1)),E(fo,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=i=>n.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}))}}),yo={key:0,class:"i-carbon:minimize"},bo={key:1,class:"i-carbon:maximize"},xo={key:0,"w-2":"","h-2":"","bg-primary":"","rounded-full":"",absolute:"","top-0.5":"","right-0.5":""},_o={class:"px2 my-auto"},ko={class:"text-lg"},wo={class:"opacity-50 text-sm"},el=Q({__name:"NavControls",props:{persist:{default:!1}},setup(t){const e=t,{currentSlideNo:s,hasNext:a,hasPrev:n,isEmbedded:o,isPresenter:l,isPresenterAvailable:i,next:v,prev:c,total:d,enterPresenter:m,exitPresenter:p}=ce(),{brush:y,drawingEnabled:x}=vt(),A=Ct.smaller("md"),{isFullscreen:h,toggle:b}=It,F=Y();function W(){F.value&&We.value&&F.value.contains(We.value)&&We.value.blur()}const J=R(()=>e.persist?"text-$slidev-controls-foreground bg-transparent":"rounded-md bg-main shadow-xl border border-main"),M=Rt();return(ne,_)=>{const H=os,I=ls,O=rs,de=is;return u(),f("nav",{ref_key:"root",ref:F,class:"flex flex-col"},[g("div",{class:L(["flex flex-wrap-reverse text-xl gap-0.5 p-1 lg:p-2",J.value]),onMouseleave:W},[r(o)?w("v-if",!0):(u(),D(U,{key:0,title:r(h)?"Close fullscreen":"Enter fullscreen",onClick:r(b)},{default:$(()=>[r(h)?(u(),f("div",yo)):(u(),f("div",bo))]),_:1},8,["title","onClick"])),E(U,{class:L({disabled:!r(n)}),title:"Go to previous slide",onClick:r(c)},{default:$(()=>[..._[6]||(_[6]=[g("div",{class:"i-carbon:arrow-left"},null,-1)])]),_:1},8,["class","onClick"]),E(U,{class:L({disabled:!r(a)}),title:"Go to next slide",onClick:r(v)},{default:$(()=>[..._[7]||(_[7]=[g("div",{class:"i-carbon:arrow-right"},null,-1)])]),_:1},8,["class","onClick"]),r(o)?w("v-if",!0):(u(),D(U,{key:1,title:"Show slide overview",onClick:_[0]||(_[0]=se=>r(lt)())},{default:$(()=>[..._[8]||(_[8]=[g("div",{class:"i-carbon:apps"},null,-1)])]),_:1})),r(zn)?w("v-if",!0):(u(),D(U,{key:2,title:r(rt)?"Switch to light mode theme":"Switch to dark mode theme",onClick:_[1]||(_[1]=se=>r(At)())},{default:$(()=>[r(rt)?(u(),D(H,{key:0})):(u(),D(I,{key:1}))]),_:1},8,["title"])),E(Oe),r(o)?w("v-if",!0):(u(),f(T,{key:3},[!r(l)&&!r(A)&&M.value?(u(),f(T,{key:0},[E(r(M)),E(Oe)],64)):w("v-if",!0),r(l)?(u(),D(U,{key:1,title:r(Ze)?"Hide presenter cursor":"Show presenter cursor",onClick:_[2]||(_[2]=se=>Ze.value=!r(Ze))},{default:$(()=>[r(Ze)?(u(),D(O,{key:0})):(u(),D(de,{key:1}))]),_:1},8,["title"])):w("v-if",!0)],64)),(!r(Ce).drawings.presenterOnly||r(l))&&!r(o)?(u(),f(T,{key:4},[E(U,{class:"relative",title:r(x)?"Hide drawing toolbar":"Show drawing toolbar",onClick:_[3]||(_[3]=se=>x.value=!r(x))},{default:$(()=>[_[9]||(_[9]=g("div",{class:"i-carbon:pen"},null,-1)),r(x)?(u(),f("div",{key:0,class:"absolute left-1 right-1 bottom-0 h-0.7 rounded-full",style:Ae({background:r(y).color})},null,4)):w("v-if",!0)]),_:1},8,["title"]),E(Oe)],64)):w("v-if",!0),r(o)?w("v-if",!0):(u(),f(T,{key:5},[r(l)?(u(),D(U,{key:0,title:"Play Mode",onClick:r(p)},{default:$(()=>[..._[10]||(_[10]=[g("div",{class:"i-carbon:presentation-file"},null,-1)])]),_:1},8,["onClick"])):w("v-if",!0),r(i)?(u(),D(U,{key:1,title:"Presenter Mode",onClick:r(m)},{default:$(()=>[..._[11]||(_[11]=[g("div",{class:"i-carbon:user-speaker"},null,-1)])]),_:1},8,["onClick"])):w("v-if",!0),w("v-if",!0)],64)),(u(),f(T,{key:6},[r(Ce).download?(u(),D(U,{key:0,title:"Download as PDF",onClick:r(un)},{default:$(()=>[..._[13]||(_[13]=[g("div",{class:"i-carbon:download"},null,-1)])]),_:1},8,["onClick"])):w("v-if",!0)],64)),w("v-if",!0),!r(l)&&r(Ce).info&&!r(o)?(u(),D(U,{key:8,title:"Show info",onClick:_[5]||(_[5]=se=>Nt.value=!r(Nt))},{default:$(()=>[..._[15]||(_[15]=[g("div",{class:"i-carbon:information"},null,-1)])]),_:1})):w("v-if",!0),r(o)?w("v-if",!0):(u(),f(T,{key:9},[E(Oe),r(l)?(u(),D(U,{key:0,title:"Toggle Presenter Layout",class:"aspect-ratio-initial flex items-center",onClick:r(jn)},{default:$(()=>[_[16]||(_[16]=g("div",{class:"i-carbon:template"},null,-1)),Ke(" "+ee(r(Wn)),1)]),_:1},8,["onClick"])):w("v-if",!0),(u(),D(go,{key:1})),E(kn,null,{button:$(()=>[E(U,{title:"More Options"},{default:$(()=>[_[17]||(_[17]=g("div",{class:"i-carbon:settings-adjust"},null,-1)),r(Hn)?(u(),f("div",xo)):w("v-if",!0)]),_:1})]),menu:$(()=>[E(lo)]),_:1})],64)),r(o)?w("v-if",!0):(u(),D(Oe,{key:10})),g("div",_o,[g("span",ko,ee(r(s)),1),g("span",wo," / "+ee(r(d)),1)]),E(r(Ka))],34)],512)}}}),st=Y(1),at=R(()=>Kn.value.length),X=Y(0),Tt=Y(0);function Co(){X.value>st.value&&(X.value-=1)}function Ao(){X.valuest.value){let t=X.value-Tt.value;tat.value&&(t=at.value),X.value=t}}const Eo=["onClick"],$o={class:"text-green font-bold"},Do={class:"opacity-50"},Bo={key:1,class:"opacity-50"},Fo={class:"fixed top-4 right-4 z-modal text-gray-400 flex flex-col items-center gap-2"},_t=128,Zt=32,tl=Q({__name:"QuickOverview",setup(t){const e=ce(),{currentSlideNo:s,go:a,slides:n}=e;function o(){le.value=!1}function l(y){a(y),o()}function i(y){return y===X.value}const v=Ct.smaller("xs"),c=Ct.smaller("sm"),d=R(()=>v.value?Fe.width.value-_t:c.value?(Fe.width.value-_t-Zt)/2:300),m=R(()=>Math.floor((Fe.width.value-_t)/(d.value+Zt))),p=Y("");return nn("keypress",y=>{if(!le.value){p.value="";return}if(y.key==="Enter"){y.preventDefault(),p.value?(l(+p.value),p.value=""):l(X.value);return}const x=Number.parseInt(y.key.replace(/\D/g,""));if(Number.isNaN(x)){p.value="";return}if(!p.value&&x===0)return;if(p.value+=String(x),+p.value>n.value.length){p.value="";return}const A=n.value.findIndex(h=>`/${h.no}`===p.value);A!==-1&&(X.value=A+1),+p.value*10>n.value.length&&(l(+p.value),p.value="")}),Pe(()=>{X.value=s.value,Tt.value=m.value}),(y,x)=>(u(),f(T,null,[E(In,{"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(le)?(u(),f("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:o},[g("div",{class:"grid gap-y-4 gap-x-8 w-full",style:Ae(`grid-template-columns: repeat(auto-fit,minmax(${d.value}px,1fr))`)},[(u(!0),f(T,null,Ve(r(n),(A,h)=>(u(),f("div",{key:A.no,class:"relative"},[g("div",{class:L(["inline-block border rounded overflow-hidden bg-main hover:border-primary transition",i(h+1)||r(X)===h+1?"border-primary":"border-main"]),onClick:b=>l(A.no)},[(u(),D(es,{key:A.no,no:A.no,"use-snapshot":!0,width:d.value,class:"pointer-events-none"},{default:$(()=>[E(vn,{"clicks-context":r(cn)(A,r(dn)),route:A,"render-context":"overview"},null,8,["clicks-context","route"]),E(ts,{page:A.no},null,8,["page"])]),_:2},1032,["no","width"]))],10,Eo),g("div",{class:"absolute top-0",style:Ae(`left: ${d.value+5}px`)},[p.value&&String(h+1).startsWith(p.value)?(u(),f(T,{key:0},[g("span",$o,ee(p.value),1),g("span",Do,ee(String(h+1).slice(p.value.length)),1)],64)):(u(),f("span",Bo,ee(h+1),1))],4)]))),128))],4)])):w("v-if",!0)]),_:1}),Ge(g("div",Fo,[E(U,{title:"Close",class:"text-2xl",onClick:o},{default:$(()=>[...x[0]||(x[0]=[g("div",{class:"i-carbon:close"},null,-1)])]),_:1}),(u(),D(U,{key:0,as:"a",title:"Slides Overview",target:"_blank",href:`${r(Gn)}overview`,"tab-index":"-1",class:"text-2xl"},{default:$(()=>[...x[1]||(x[1]=[g("div",{class:"i-carbon:list-boxes"},null,-1)])]),_:1},8,["href"])),w("v-if",!0)],512),[[rn,r(le)]])],64))}}),qt=new Set,et=new Set;function Ro(t){return t.startsWith("http")||t.startsWith("//")?t:`${"/".replace(/\/$/,"")}${t.startsWith("/")?t:`/${t}`}`}function Io(t){const e=Ro(t);if(qt.has(e)||et.has(e))return;et.add(e);const s=new Image;s.onload=()=>{et.delete(e),qt.add(e)},s.onerror=()=>{et.delete(e)},s.src=e}function je(t){const e=t.meta?.slide?.images;if(e?.length)for(const s of e)Io(s)}function Po(t,e,s,a){const n=Ce.preloadImages;if(n===!1)return;const o=typeof n=="object"&&n?.ahead||3;Pe(()=>{const l=t.value,i=a.value;if(!l||!i?.length)return;je(l),je(e.value),je(s.value);const v=l.no-1;for(let c=1;c<=o;c++){const d=v+c;d{const i=a.value,v=setTimeout(()=>{if(i?.length)for(const c of i)je(c)},3e3);l(()=>clearTimeout(v))})}function Vo(){const t=Pn(),e=Y(!1);let s,a;const n=typeof document<"u"&&"startViewTransition"in document;return t.beforeResolve((o,l)=>{const i=Ot(l.params.no)?.meta,v=Ot(o.params.no)?.meta,c=i?.slide?.no,d=v?.slide?.no;if((c!=null&&d!=null&&c!==d&&((c{s=A,a=h});let y;const x=new Promise(A=>y=A);return setTimeout(()=>{document.startViewTransition(()=>(y(),p))},50),x}),n&&t.afterEach(()=>{s?.(),a?.()}),e}const To=["data-drag-id"],ue=10,Ee=10,kt="absolute border border-gray bg-gray dark:border-gray-500 dark:bg-gray-800 bg-opacity-30 ",tt=20,Lo=Q({__name:"DragControl",props:{data:{}},setup(t){const{dragId:e,zoom:s,autoHeight:a,x0:n,y0:o,width:l,height:i,rotate:v,isArrow:c}=t.data,d=Vn(Yn,Y(1)),m=R(()=>d.value*s.value),{left:p,top:y}=Un(),x=c?Number.NEGATIVE_INFINITY:40,A=R(()=>v.value*Math.PI/180),h=R(()=>Math.sin(A.value)),b=R(()=>Math.cos(A.value)),F=R(()=>l.value*b.value+i.value*h.value),W=R(()=>l.value*h.value+i.value*b.value),J=R(()=>n.value-F.value/2),M=R(()=>o.value-W.value/2),ne=R(()=>n.value+F.value/2),_=R(()=>o.value+W.value/2),H=R(()=>c&&l.value<0),I=R(()=>c&&i.value<0);let O=null;function de(C){if(C.buttons!==1)return;C.preventDefault(),C.stopPropagation();const V=C.target.getBoundingClientRect(),S=l.value*b.value-i.value*h.value,B=l.value*h.value+i.value*b.value,Z=l.value*b.value+i.value*h.value,ie=-l.value*h.value+i.value*b.value;O={x0:n.value,y0:o.value,width:l.value,height:i.value,rotate:v.value,dx0:C.clientX-(V.left+V.right)/2,dy0:C.clientY-(V.top+V.bottom)/2,ltx:n.value-S/2,lty:o.value-B/2,rtx:n.value+Z/2,rty:o.value-ie/2,lbx:n.value-Z/2,lby:o.value+ie/2,rbx:n.value+S/2,rby:o.value+B/2},C.currentTarget.setPointerCapture(C.pointerId)}function se(C){if(!O||C.buttons!==1)return;C.preventDefault(),C.stopPropagation();const N=(C.clientX-p.value-O.dx0)/m.value,V=(C.clientY-y.value-O.dy0)/m.value;n.value=Wt(N,-F.value/2+Ee,zt.value+F.value/2-Ee),o.value=Wt(V,-W.value/2+Ee,jt.value+W.value/2-Ee)}function Le(C){O&&(C.preventDefault(),C.stopPropagation(),O=null)}function G(C,N){return{onPointerdown:de,onPointermove:V=>{if(!O||V.buttons!==1)return;V.preventDefault(),V.stopPropagation();let S=(V.clientX-p.value)/m.value,B=(V.clientY-y.value)/m.value;const{ltx:Z,lty:ie,rtx:me,rty:ge,lbx:ye,lby:be,rbx:xe,rby:j}=O,q=O.width/O.height,Sn=Math.max(x,x*q);function Xe(ve,fe){if(V.shiftKey){const te=Math.max(ve,fe*q,Sn),ae=te/q;return{w:te,h:ae}}else return{w:Math.max(ve,x),h:Math.max(fe,x)}}if(C)if(N){const ve=(xe-S)*b.value+(j-B)*h.value,fe=-(xe-S)*h.value+(j-B)*b.value,{w:te,h:ae}=Xe(ve,fe);S=xe-te*b.value+ae*h.value,B=j-te*h.value-ae*b.value}else{const ve=(me-S)*b.value-(B-ge)*h.value,fe=(me-S)*h.value+(B-ge)*b.value,{w:te,h:ae}=Xe(ve,fe);S=me-te*b.value-ae*h.value,B=ge-te*h.value+ae*b.value}else if(N){const ve=(S-ye)*b.value-(be-B)*h.value,fe=(S-ye)*h.value+(be-B)*b.value,{w:te,h:ae}=Xe(ve,fe);S=ye+te*b.value+ae*h.value,B=be+te*h.value-ae*b.value}else{const ve=(S-Z)*b.value+(B-ie)*h.value,fe=-(S-Z)*h.value+(B-ie)*b.value,{w:te,h:ae}=Xe(ve,fe);S=Z+te*b.value-ae*h.value,B=ie+te*h.value+ae*b.value}C?N?(n.value=(S+xe)/2,o.value=(B+j)/2,l.value=(xe-S)*b.value+(j-B)*h.value,i.value=-(xe-S)*h.value+(j-B)*b.value):(n.value=(S+me)/2,o.value=(B+ge)/2,l.value=(me-S)*b.value-(B-ge)*h.value,i.value=(me-S)*h.value+(B-ge)*b.value):N?(n.value=(S+ye)/2,o.value=(B+be)/2,l.value=(S-ye)*b.value-(be-B)*h.value,i.value=(S-ye)*h.value+(be-B)*b.value):(n.value=(S+Z)/2,o.value=(B+ie)/2,l.value=(S-Z)*b.value+(B-ie)*h.value,i.value=-(S-Z)*h.value+(B-ie)*b.value)},onPointerup:Le,style:{width:`${ue}px`,height:`${ue}px`,margin:`-${ue/2}px`,left:C!==H.value?"0":void 0,right:C!==H.value?void 0:"0",top:N!==I.value?"0":void 0,bottom:N!==I.value?void 0:"0",cursor:c?"move":+C+ +N==1?"nesw-resize":"nwse-resize",borderRadius:c?"50%":void 0},class:kt}}function pe(C){return{onPointerdown:de,onPointermove:N=>{if(!O||N.buttons!==1)return;N.preventDefault(),N.stopPropagation();const V=(N.clientX-p.value)/m.value,S=(N.clientY-y.value)/m.value,{ltx:B,lty:Z,rtx:ie,rty:me,lbx:ge,lby:ye,rbx:be,rby:xe}=O;if(C==="l"){const j=(ie+be)/2,q=(me+xe)/2;l.value=Math.max((j-V)*b.value+(q-S)*h.value,x),n.value=j-l.value*b.value/2,o.value=q-l.value*h.value/2}else if(C==="r"){const j=(B+ge)/2,q=(Z+ye)/2;l.value=Math.max((V-j)*b.value+(S-q)*h.value,x),n.value=j+l.value*b.value/2,o.value=q+l.value*h.value/2}else if(C==="t"){const j=(ge+be)/2,q=(ye+xe)/2;i.value=Math.max((q-S)*b.value-(j-V)*h.value,x),n.value=j+i.value*h.value/2,o.value=q-i.value*b.value/2}else if(C==="b"){const j=(B+ie)/2,q=(Z+me)/2;i.value=Math.max((S-q)*b.value-(V-j)*h.value,x),n.value=j-i.value*h.value/2,o.value=q+i.value*b.value/2}},onPointerup:Le,style:{width:`${ue}px`,height:`${ue}px`,margin:`-${ue/2}px`,left:C==="l"?"0":C==="r"?"100%":"50%",top:C==="t"?"0":C==="b"?"100%":"50%",cursor:"lr".includes(C)?"ew-resize":"ns-resize",borderRadius:"50%"},class:kt}}function Ue(){return{onPointerdown:de,onPointermove:C=>{if(!O||C.buttons!==1)return;C.preventDefault(),C.stopPropagation();const N=(C.clientX-p.value-O.dx0)/m.value-ue/4,V=(C.clientY-y.value-O.dy0)/m.value-ue/4;let S=Math.atan2(V-o.value,N-n.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}v.value=S},onPointerup:Le,style:{width:`${ue}px`,height:`${ue}px`,margin:`-${ue/2}px`,left:"50%",top:"-20px",cursor:"grab",borderRadius:"50%"},class:kt}}const Ye={immediate:!1,immediateCallback:!1},wn=Je(()=>{ne.value<=Ee||n.value--},tt,Ye),Cn=Je(()=>{J.value>=zt.value-Ee||n.value++},tt,Ye),An=Je(()=>{_.value<=Ee||o.value--},tt,Ye),Mn=Je(()=>{M.value>=jt.value-Ee||o.value++},tt,Ye);return Pe(()=>{function C(N,V){Pt[N].value?V.resume():V.pause()}C("left",wn),C("right",Cn),C("up",An),C("down",Mn)}),(C,N)=>Number.isFinite(r(n))?(u(),f("div",{key:0,id:"drag-control-container","data-drag-id":r(e),style:Ae({position:"absolute",zIndex:100,left:`${r(s)*(r(n)-Math.abs(r(l))/2)}px`,top:`${r(s)*(r(o)-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:Le},[g("div",{class:L(["absolute inset-0 z-nav dark:b-gray-400",r(c)?"":"b b-dark"])},[r(a)?w("v-if",!0):(u(),f(T,{key:0},[g("div",_e(ke(G(!0,!0))),null,16),g("div",_e(ke(G(!1,!1))),null,16),r(c)?w("v-if",!0):(u(),f(T,{key:0},[g("div",_e(ke(G(!0,!1))),null,16),g("div",_e(ke(G(!1,!0))),null,16)],64))],64)),r(c)?w("v-if",!0):(u(),f(T,{key:1},[g("div",_e(ke(pe("l"))),null,16),g("div",_e(ke(pe("r"))),null,16),r(a)?w("v-if",!0):(u(),f(T,{key:0},[g("div",_e(ke(pe("t"))),null,16),g("div",_e(ke(pe("b"))),null,16)],64)),g("div",_e(ke(Ue())),null,16),g("div",{class:"absolute -top-15px w-0 b b-dashed b-dark dark:b-gray-400",style:Ae({left:"calc(50% - 1px)",height:r(a)?"14px":"10px"})},null,4)],64))],2)],44,To)):w("v-if",!0)}}),No=Q({__name:"SlidesShow",props:{renderContext:{}},setup(t){const{currentSlideRoute:e,currentTransition:s,getPrimaryClicks:a,prevRoute:n,nextRoute:o,slides:l,isPrintMode:i,isPrintWithClicks:v,clicksDirection:c,printRange:d}=ce();function m(h){h.meta.preload!==!1&&(h.meta.__preloaded=!0,h.load())}Pe(()=>{m(e.value),m(n.value),m(o.value)}),Pe(h=>{const b=l.value,F=setTimeout(()=>{b.forEach(m)},3e3);h(()=>clearTimeout(F))}),Po(e,n,o,l);const p=Vo(),y=Rt();Xn(()=>import("./DrawingLayer-UqGfx46V.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])).then(h=>y.value=h.default);const x=R(()=>i.value?d.value.map(h=>l.value[h-1]):l.value.filter(h=>h.meta?.__preloaded||h===e.value));function A(){gt.value=!0,cs()}return(h,b)=>(u(),f(T,null,[w(" Global Bottom "),E(r(ns)),w(" Slides "),(u(),D(Ie(r(p)&&!r(i)&&!r(gt)&&!r(Ht)?"div":Tn),wt(r(gt)||r(Ht)||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:$(()=>[(u(!0),f(T,null,Ve(x.value,F=>Ge((u(),D(vn,{key:F.no,"clicks-context":r(i)&&!r(v)?r(cn)(F,r(dn)):r(a)(F),route:F,"render-context":t.renderContext},null,8,["clicks-context","route","render-context"])),[[rn,F===r(e)]])),128))]),_:1},16,["class"])),r(Mt)?(u(),D(Lo,{key:0,data:r(Mt)},null,8,["data"])):w("v-if",!0),w(" Global Top "),E(r(ss)),y.value?(u(),D(r(y),{key:1})):w("v-if",!0)],64))}}),nl=dt(No,[["__scopeId","data-v-4a4ea8e3"]]),Oo=[Object.values([])[0],Object.values([])[0]].filter(Boolean);function zo(){const{go:t,goFirst:e,goLast:s,next:a,nextSlide:n,prev:o,prevSlide:l}=ce(),{drawingEnabled:i}=vt(),{escape:v,space:c,shift:d,left:m,right:p,up:y,down:x,enter:A,d:h,g:b,o:F,"`":W}=Pt,J={next:a,prev:o,nextSlide:n,prevSlide:l,go:t,goFirst:e,goLast:s,downloadPDF:un,toggleDark:At,toggleOverview:lt,toggleDrawing:()=>i.value=!i.value,escapeOverview:()=>le.value=!1,showGotoDialog:()=>$e.value=!$e.value},M=z(oe(le),oe(Mt));let ne=[{name:"next_space",key:z(c,oe(d)),fn:a,autoRepeat:!0},{name:"prev_space",key:z(c,d),fn:o,autoRepeat:!0},{name:"next_right",key:z(p,oe(d),M),fn:a,autoRepeat:!0},{name:"prev_left",key:z(m,oe(d),M),fn:o,autoRepeat:!0},{name:"next_page_key",key:"pageDown",fn:a,autoRepeat:!0},{name:"prev_page_key",key:"pageUp",fn:o,autoRepeat:!0},{name:"next_down",key:z(x,M),fn:n,autoRepeat:!0},{name:"prev_up",key:z(y,M),fn:l,autoRepeat:!0},{name:"next_shift",key:z(p,d),fn:n,autoRepeat:!0},{name:"prev_shift",key:z(m,d),fn:l,autoRepeat:!0},{name:"toggle_dark",key:z(h,oe(i)),fn:At},{name:"toggle_overview",key:z(Ln(F,W),oe(i)),fn:lt},{name:"hide_overview",key:z(v,oe(i)),fn:()=>le.value=!1},{name:"goto",key:z(b,oe(i)),fn:()=>$e.value=!$e.value},{name:"next_overview",key:z(p,le),fn:Ao},{name:"prev_overview",key:z(m,le),fn:Co},{name:"up_overview",key:z(y,le),fn:Mo},{name:"down_overview",key:z(x,le),fn:So},{name:"goto_from_overview",key:z(A,le),fn:()=>{t(X.value),le.value=!1}}];const _=new Set(ne.map(I=>I.name));for(const I of Oo)ne=I(J,ne);if(ne.filter(I=>I.name&&_.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(` +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/slidev/DrawingLayer-cl9SU_LS.js","assets/modules/vue-CZamTkmS.js","assets/slidev/SlideWrapper-_oMsn9ML.js","assets/index-CIas0rwA.js","assets/modules/shiki-COQlGosf.js","assets/modules/shiki-UqVAgQbi.css","assets/index-zCBU-I5-.css","assets/SlideWrapper-C5Fw_W4m.css","assets/slidev/context-Ch1IIjuh.js"])))=>i.map(i=>d[i]); +import{au as En,av as $n,r as Y,K as He,aw as en,z as R,Q as Rt,f as Q,a7 as tn,ao as nn,a6 as Dn,T as r,o as u,e as f,ax as sn,k as Ae,F as T,aj as Ve,n as L,b as D,ay as Ie,g,t as ee,j as w,ad as Ke,a9 as Bn,l as Qe,d as E,i as ot,at as Fn,ah as an,az as on,af as Ge,aA as Rn,aB as ln,w as $,ag as Lt,m as wt,A as ft,E as Pe,aq as In,am as rn,S as Pn,D as Vn,aC as Je,v as _e,x as ke,aD as Tn,aE as z,aF as oe,aG as Ln,aH as Nn}from"../modules/vue-CZamTkmS.js";import{a as ce,G as nt,H as lt,f as It,j as ht,o as Ce,I as On,J as Fe,_ as dt,K as $e,L as We,b as rt,E as P,F as K,M as pt,x as mt,N as Se,O as Ct,i as zn,t as At,n as Ze,P as un,A as Nt,Q as jn,h as Wn,R as Hn,S as Kn,T as le,c as cn,C as dn,p as Gn,w as Ot,U as Un,V as zt,W as jt,X as Pt,r as Wt,Y as Yn,y as Xn,Z as gt,$ as Ht,a0 as Mt,a1 as Qn,a2 as Jn,a3 as Zn,a4 as qn}from"../index-CIas0rwA.js";import{u as vt,a as es,S as vn,_ as ts,G as ns,b as ss}from"./SlideWrapper-_oMsn9ML.js";import{u as as}from"./context-Ch1IIjuh.js";import{_ as os,a as ls,b as rs,c as is}from"../modules/unplugin-icons-ByIekoE6.js";import{_ as U}from"./IconButton.vue_vue_type_script_setup_true_lang-DEyEjvqJ.js";import{V as us,t as cs}from"../modules/shiki-COQlGosf.js";function Xo(t){const{next:e,nextSlide:s,prev:a,prevSlide:n}=ce(),{isDrawing:o}=vt(),l=Y(0),{direction:i,distanceX:v,distanceY:c}=En(t,{pointerTypes:["touch"],onSwipeStart(){o.value||(l.value=$n())},onSwipeEnd(){if(!l.value||o.value)return;const d=Math.abs(v.value),m=Math.abs(c.value);d/window.innerWidth>.3||d>75?i.value==="left"?e():a():(m/window.innerHeight>.4||m>200)&&(i.value==="down"?n():s())}})}function Qo(){const{request:t,release:e}=en();He(nt,s=>{s?t("screen"):e()},{immediate:!0})}const ds=[Object.values([])[0],Object.values([])[0]].filter(Boolean);let yt;const vs=()=>{if(yt)return yt;const{next:t,nextSlide:e,prev:s,prevSlide:a,hasNext:n,hasPrev:o,currentPage:l,total:i,isPresenter:v,enterPresenter:c,exitPresenter:d,isEmbedded:m,isPresenterAvailable:p}=ce(),{drawingEnabled:y}=vt(),{isFullscreen:x,toggle:A}=It;return yt=ds.reduce((h,b)=>b(h),R(()=>[{small:!0,icon:"i-carbon:arrow-left",label:"Previous Click",action:s,disabled:!o.value},{small:!0,icon:"i-carbon:arrow-right",label:"Next Click",action:t,disabled:!n.value},{small:!0,icon:"i-carbon:arrow-up",label:"Previous Slide",action:a,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:ht.value?"Hide editor":"Show editor",action:()=>ht.value=!ht.value,show:!1},{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:lt},v.value&&{icon:"i-carbon:presentation-file",label:"Exit Presenter Mode",action:d},p.value&&{icon:"i-carbon:user-speaker",label:"Enter Presenter Mode",action:c},!m.value&&{icon:x.value?"i-carbon:minimize":"i-carbon:maximize",label:x.value?"Close fullscreen":"Enter fullscreen",action:A}].filter(Boolean)))},Re=Rt(null);function fs(t,e){Re.value={x:t,y:e,items:vs()}}function Ne(){Re.value=null}function Jo(t){if(Ce.contextMenu!==!0&&Ce.contextMenu!=null&&Ce.contextMenu!==On||t.shiftKey||t.defaultPrevented)return;const{isEmbedded:e}=ce();e.value||(fs(t.pageX,t.pageY),t.preventDefault(),t.stopPropagation())}const hs=["title","onClick"],ps=["onClick"],ms={class:"mx-auto flex"},gs={key:0},ys={class:"w-full text-xs p2"},bs={class:"text-main text-opacity-50!"},Zo=Q({__name:"ContextMenu",setup(t){const e=Y();tn(e,Ne),nn(document,"mousedown",v=>{v.buttons&2&&Ne()},{passive:!0,capture:!0});const s=R(()=>Ce.contextMenu!=null),a=Bn();He(a,v=>{v||Ne()});const{width:n,height:o}=Dn(e),l=R(()=>{const v=Re.value?.x;return v?v+n.value>Fe.width.value?Fe.width.value-n.value:v:0}),i=R(()=>{const v=Re.value?.y;return v?v+o.value>Fe.height.value?Fe.height.value-o.value:v:0});return(v,c)=>r(Re)?(u(),f("div",{key:0,ref_key:"container",ref:e,style:Ae(`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]=sn(()=>{},["prevent"])),onClick:c[2]||(c[2]=(...d)=>r(Ne)&&r(Ne)(...d))},[(u(!0),f(T,null,Ve(r(Re).items.value,(d,m)=>(u(),f(T,{key:m},[d==="separator"?(u(),f("div",{key:m,class:"w-full my1 border-t border-main"})):d.show??!0?(u(),f(T,{key:1},[d.small?(u(),f("div",{key:0,class:L(["p-2 w-[40px] h-[40px] inline-block text-center cursor-pointer rounded flex",d.disabled?"op40":"hover:bg-active"]),title:d.label,onClick:d.action},[typeof d.icon=="string"?(u(),f("div",{key:0,class:L([d.icon,"text-1.2em ma"])},null,2)):(u(),D(Ie(d.icon),{key:1}))],10,hs)):(u(),f("div",{key:1,class:L(["w-full grid grid-cols-[35px_1fr] p-2 pl-0 cursor-pointer rounded",d.disabled?"op40":"hover:bg-active"]),onClick:d.action},[g("div",ms,[typeof d.icon=="string"?(u(),f("div",{key:0,class:L([d.icon,"text-1.2em ma"])},null,2)):(u(),D(Ie(d.icon),{key:1}))]),typeof d.label=="string"?(u(),f("div",gs,ee(d.label),1)):(u(),D(Ie(d.label),{key:1}))],10,ps))],64)):w("v-if",!0)],64))),128)),s.value?w("v-if",!0):(u(),f(T,{key:0},[c[6]||(c[6]=g("div",{class:"w-full my1 border-t border-main"},null,-1)),g("div",ys,[g("div",bs,[c[3]||(c[3]=Ke(" Hold ",-1)),c[4]||(c[4]=g("kbd",{class:"border px1 py0.5 border-main rounded text-primary"},"Shift",-1)),c[5]||(c[5]=Ke(" and right click to open the native context menu ",-1)),w("v-if",!0)])])],64))],36)):w("v-if",!0)}}),xs={},_s={class:"w-1px opacity-10 bg-current m-1 lg:m-2"};function ks(t,e){return u(),f("div",_s)}const Oe=dt(xs,[["render",ks]]),ws={key:0},Cs={key:1},As={key:2},Ms={key:3},Ss={key:4},Es={key:5},$s={key:6},Ds={key:7},Bs={key:8},Fs={key:9},Rs={key:10},Is={key:11},Ps={key:12},Vs={key:13},Ts={key:14},Ls={key:15},Ns={key:16},Os={key:17},zs={key:18},js={key:19},Ws={key:20},Hs={key:21},Ks={key:22},Gs={key:23},Us={key:24},Ys={key:25},Xs={key:26},Qs={key:27},Js={key:28},Zs={key:29},qs=Q({__name:"title-renderer",props:{no:{}},setup(t){const e=t,{$page:s}=as(),a=R(()=>+(e.no??s.value));return(n,o)=>(u(),f("div",null,[a.value===1?(u(),f("p",ws,"Time Series Foundation Models for Process Model Forecasting")):a.value===2?(u(),f("p",Cs,"undefined")):a.value===3?(u(),f("p",As,"undefined")):a.value===4?(u(),f("p",Ms,"undefined")):a.value===5?(u(),f("p",Ss,"undefined")):a.value===6?(u(),f("p",Es,"undefined")):a.value===7?(u(),f("p",$s,"undefined")):a.value===8?(u(),f("p",Ds,"undefined")):a.value===9?(u(),f("p",Bs,"undefined")):a.value===10?(u(),f("p",Fs,"undefined")):a.value===11?(u(),f("p",Rs,"undefined")):a.value===12?(u(),f("p",Is,"undefined")):a.value===13?(u(),f("p",Ps,"undefined")):a.value===14?(u(),f("p",Vs,"undefined")):a.value===15?(u(),f("p",Ts,"undefined")):a.value===16?(u(),f("p",Ls,"undefined")):a.value===17?(u(),f("p",Ns,"undefined")):a.value===18?(u(),f("p",Os,"undefined")):a.value===19?(u(),f("p",zs,"undefined")):a.value===20?(u(),f("p",js,"Thank you")):a.value===21?(u(),f("p",Ws,"undefined")):a.value===22?(u(),f("p",Hs,"undefined")):a.value===23?(u(),f("p",Ks,"undefined")):a.value===24?(u(),f("p",Gs,"undefined")):a.value===25?(u(),f("p",Us,"undefined")):a.value===26?(u(),f("p",Ys,"undefined")):a.value===27?(u(),f("p",Xs,"undefined")):a.value===28?(u(),f("p",Qs,"undefined")):a.value===29?(u(),f("p",Js,"undefined")):a.value===30?(u(),f("p",Zs,"undefined")):w("v-if",!0)]))}});function Me(t){return Array.isArray?Array.isArray(t):pn(t)==="[object Array]"}function ea(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function ta(t){return t==null?"":ea(t)}function he(t){return typeof t=="string"}function fn(t){return typeof t=="number"}function na(t){return t===!0||t===!1||sa(t)&&pn(t)=="[object Boolean]"}function hn(t){return typeof t=="object"}function sa(t){return hn(t)&&t!==null}function re(t){return t!=null}function bt(t){return!t.trim().length}function pn(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const aa="Incorrect 'index' type",oa=t=>`Invalid value for key ${t}`,la=t=>`Pattern length exceeds max of ${t}.`,ra=t=>`Missing ${t} property in key`,ia=t=>`Property 'weight' in key '${t}' must be a positive integer`,Kt=Object.prototype.hasOwnProperty;class ua{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(a=>{let n=mn(a);this._keys.push(n),this._keyMap[n.id]=n,s+=n.weight}),this._keys.forEach(a=>{a.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function mn(t){let e=null,s=null,a=null,n=1,o=null;if(he(t)||Me(t))a=t,e=Gt(t),s=St(t);else{if(!Kt.call(t,"name"))throw new Error(ra("name"));const l=t.name;if(a=l,Kt.call(t,"weight")&&(n=t.weight,n<=0))throw new Error(ia(l));e=Gt(l),s=St(l),o=t.getFn}return{path:e,id:s,weight:n,src:a,getFn:o}}function Gt(t){return Me(t)?t:t.split(".")}function St(t){return Me(t)?t.join("."):t}function ca(t,e){let s=[],a=!1;const n=(o,l,i)=>{if(re(o))if(!l[i])s.push(o);else{let v=l[i];const c=o[v];if(!re(c))return;if(i===l.length-1&&(he(c)||fn(c)||na(c)))s.push(ta(c));else if(Me(c)){a=!0;for(let d=0,m=c.length;dt.score===e.score?t.idx{this._keysMap[s.id]=a})}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,a=this.size();s{let l=n.getFn?n.getFn(e):this.getFn(e,n.path);if(re(l)){if(Me(l)){let i=[];const v=[{nestedArrIndex:-1,value:l}];for(;v.length;){const{nestedArrIndex:c,value:d}=v.pop();if(re(d))if(he(d)&&!bt(d)){let m={v:d,i:c,n:this.norm.get(d)};i.push(m)}else Me(d)&&d.forEach((m,p)=>{v.push({nestedArrIndex:p,value:m})})}a.$[o]=i}else if(he(l)&&!bt(l)){let i={v:l,n:this.norm.get(l)};a.$[o]=i}}}),this.records.push(a)}toJSON(){return{keys:this.keys,records:this.records}}}function gn(t,e,{getFn:s=k.getFn,fieldNormWeight:a=k.fieldNormWeight}={}){const n=new Vt({getFn:s,fieldNormWeight:a});return n.setKeys(t.map(mn)),n.setSources(e),n.create(),n}function ga(t,{getFn:e=k.getFn,fieldNormWeight:s=k.fieldNormWeight}={}){const{keys:a,records:n}=t,o=new Vt({getFn:e,fieldNormWeight:s});return o.setKeys(a),o.setIndexRecords(n),o}function qe(t,{errors:e=0,currentLocation:s=0,expectedLocation:a=0,distance:n=k.distance,ignoreLocation:o=k.ignoreLocation}={}){const l=e/t.length;if(o)return l;const i=Math.abs(a-s);return n?l+i/n:i?1:l}function ya(t=[],e=k.minMatchCharLength){let s=[],a=-1,n=-1,o=0;for(let l=t.length;o=e&&s.push([a,n]),a=-1)}return t[o-1]&&o-a>=e&&s.push([a,o-1]),s}const Be=32;function ba(t,e,s,{location:a=k.location,distance:n=k.distance,threshold:o=k.threshold,findAllMatches:l=k.findAllMatches,minMatchCharLength:i=k.minMatchCharLength,includeMatches:v=k.includeMatches,ignoreLocation:c=k.ignoreLocation}={}){if(e.length>Be)throw new Error(la(Be));const d=e.length,m=t.length,p=Math.max(0,Math.min(a,m));let y=o,x=p;const A=i>1||v,h=A?Array(m):[];let b;for(;(b=t.indexOf(e,x))>-1;){let _=qe(e,{currentLocation:b,expectedLocation:p,distance:n,ignoreLocation:c});if(y=Math.min(_,y),x=b+d,A){let H=0;for(;H=O;G-=1){let pe=G-1,Ue=s[t.charAt(pe)];if(A&&(h[pe]=+!!Ue),se[G]=(se[G+1]<<1|1)&Ue,_&&(se[G]|=(F[G+1]|F[G])<<1|1|F[G+1]),se[G]&M&&(W=qe(e,{errors:_,currentLocation:pe,expectedLocation:p,distance:n,ignoreLocation:c}),W<=y)){if(y=W,x=pe,x<=p)break;O=Math.max(1,2*p-x)}}if(qe(e,{errors:_+1,currentLocation:p,expectedLocation:p,distance:n,ignoreLocation:c})>y)break;F=se}const ne={isMatch:x>=0,score:Math.max(.001,W)};if(A){const _=ya(h,i);_.length?v&&(ne.indices=_):ne.isMatch=!1}return ne}function xa(t){let e={};for(let s=0,a=t.length;st.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,"")):(t=>t);class yn{constructor(e,{location:s=k.location,threshold:a=k.threshold,distance:n=k.distance,includeMatches:o=k.includeMatches,findAllMatches:l=k.findAllMatches,minMatchCharLength:i=k.minMatchCharLength,isCaseSensitive:v=k.isCaseSensitive,ignoreDiacritics:c=k.ignoreDiacritics,ignoreLocation:d=k.ignoreLocation}={}){if(this.options={location:s,threshold:a,distance:n,includeMatches:o,findAllMatches:l,minMatchCharLength:i,isCaseSensitive:v,ignoreDiacritics:c,ignoreLocation:d},e=v?e:e.toLowerCase(),e=c?it(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const m=(y,x)=>{this.chunks.push({pattern:y,alphabet:xa(y),startIndex:x})},p=this.pattern.length;if(p>Be){let y=0;const x=p%Be,A=p-x;for(;y{const{isMatch:F,score:W,indices:J}=ba(e,A,h,{location:o+b,distance:l,threshold:i,findAllMatches:v,minMatchCharLength:c,includeMatches:n,ignoreLocation:d});F&&(y=!0),p+=W,F&&J&&(m=[...m,...J])});let x={isMatch:y,score:y?p/this.chunks.length:1};return y&&n&&(x.indices=m),x}}class De{constructor(e){this.pattern=e}static isMultiMatch(e){return Ut(e,this.multiRegex)}static isSingleMatch(e){return Ut(e,this.singleRegex)}search(){}}function Ut(t,e){const s=t.match(e);return s?s[1]:null}class _a 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 ka extends De{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const a=e.indexOf(this.pattern)===-1;return{isMatch:a,score:a?0:1,indices:[0,e.length-1]}}}class wa 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 Ca 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 Aa 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 Ma 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 bn extends De{constructor(e,{location:s=k.location,threshold:a=k.threshold,distance:n=k.distance,includeMatches:o=k.includeMatches,findAllMatches:l=k.findAllMatches,minMatchCharLength:i=k.minMatchCharLength,isCaseSensitive:v=k.isCaseSensitive,ignoreDiacritics:c=k.ignoreDiacritics,ignoreLocation:d=k.ignoreLocation}={}){super(e),this._bitapSearch=new yn(e,{location:s,threshold:a,distance:n,includeMatches:o,findAllMatches:l,minMatchCharLength:i,isCaseSensitive:v,ignoreDiacritics:c,ignoreLocation:d})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class xn extends De{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,a;const n=[],o=this.pattern.length;for(;(a=e.indexOf(this.pattern,s))>-1;)s=a+o,n.push([a,s-1]);const l=!!n.length;return{isMatch:l,score:l?0:1,indices:n}}}const Et=[_a,xn,wa,Ca,Ma,Aa,ka,bn],Yt=Et.length,Sa=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Ea="|";function $a(t,e={}){return t.split(Ea).map(s=>{let a=s.trim().split(Sa).filter(o=>o&&!!o.trim()),n=[];for(let o=0,l=a.length;o!!(t[ut.AND]||t[ut.OR]),Ra=t=>!!t[Bt.PATH],Ia=t=>!Me(t)&&hn(t)&&!Ft(t),Xt=t=>({[ut.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function _n(t,e,{auto:s=!0}={}){const a=n=>{let o=Object.keys(n);const l=Ra(n);if(!l&&o.length>1&&!Ft(n))return a(Xt(n));if(Ia(n)){const v=l?n[Bt.PATH]:o[0],c=l?n[Bt.PATTERN]:n[v];if(!he(c))throw new Error(oa(v));const d={keyId:St(v),pattern:c};return s&&(d.searcher=Dt(c,e)),d}let i={children:[],operator:o[0]};return o.forEach(v=>{const c=n[v];Me(c)&&c.forEach(d=>{i.children.push(a(d))})}),i};return Ft(t)||(t=Xt(t)),a(t)}function Pa(t,{ignoreFieldNorm:e=k.ignoreFieldNorm}){t.forEach(s=>{let a=1;s.matches.forEach(({key:n,norm:o,score:l})=>{const i=n?n.weight:null;a*=Math.pow(l===0&&i?Number.EPSILON:l,(i||1)*(e?1:o))}),s.score=a})}function Va(t,e){const s=t.matches;e.matches=[],re(s)&&s.forEach(a=>{if(!re(a.indices)||!a.indices.length)return;const{indices:n,value:o}=a;let l={indices:n,value:o};a.key&&(l.key=a.key.src),a.idx>-1&&(l.refIndex=a.idx),e.matches.push(l)})}function Ta(t,e){e.score=t.score}function La(t,e,{includeMatches:s=k.includeMatches,includeScore:a=k.includeScore}={}){const n=[];return s&&n.push(Va),a&&n.push(Ta),t.map(o=>{const{idx:l}=o,i={item:e[l],refIndex:l};return n.length&&n.forEach(v=>{v(o,i)}),i})}class Te{constructor(e,s={},a){this.options={...k,...s},this.options.useExtendedSearch,this._keyStore=new ua(this.options.keys),this.setCollection(e,a)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof Vt))throw new Error(aa);this._myIndex=s||gn(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){re(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let a=0,n=this._docs.length;a-1&&(v=v.slice(0,s)),La(v,this._docs,{includeMatches:a,includeScore:n})}_searchStringList(e){const s=Dt(e,this.options),{records:a}=this._myIndex,n=[];return a.forEach(({v:o,i:l,n:i})=>{if(!re(o))return;const{isMatch:v,score:c,indices:d}=s.searchIn(o);v&&n.push({item:o,idx:l,matches:[{score:c,value:o,norm:i,indices:d}]})}),n}_searchLogical(e){const s=_n(e,this.options),a=(i,v,c)=>{if(!i.children){const{keyId:m,searcher:p}=i,y=this._findMatches({key:this._keyStore.get(m),value:this._myIndex.getValueForItemAtKeyId(v,m),searcher:p});return y&&y.length?[{idx:c,item:v,matches:y}]:[]}const d=[];for(let m=0,p=i.children.length;m{if(re(i)){let c=a(s,i,v);c.length&&(o[v]||(o[v]={idx:v,item:i,matches:[]},l.push(o[v])),c.forEach(({matches:d})=>{o[v].matches.push(...d)}))}}),l}_searchObjectList(e){const s=Dt(e,this.options),{keys:a,records:n}=this._myIndex,o=[];return n.forEach(({$:l,i})=>{if(!re(l))return;let v=[];a.forEach((c,d)=>{v.push(...this._findMatches({key:c,value:l[d],searcher:s}))}),v.length&&o.push({idx:i,item:l,matches:v})}),o}_findMatches({key:e,value:s,searcher:a}){if(!re(s))return[];let n=[];if(Me(s))s.forEach(({v:o,i:l,n:i})=>{if(!re(o))return;const{isMatch:v,score:c,indices:d}=a.searchIn(o);v&&n.push({score:c,key:e,value:o,idx:l,norm:i,indices:d})});else{const{v:o,n:l}=s,{isMatch:i,score:v,indices:c}=a.searchIn(o);i&&n.push({score:v,key:e,value:o,norm:l,indices:c})}return n}}Te.version="7.1.0";Te.createIndex=gn;Te.parseIndex=ga;Te.config=k;Te.parseQuery=_n;Fa(Ba);const Na={class:"bg-main transform",shadow:"~",p:"x-4 y-2",border:"~ transparent rounded dark:main"},Oa=["value","disabled"],za={table:"","w-full":"","border-collapse":""},ja=["border","onClick"],Wa={"text-right":"",op50:"","text-sm":"","table-cell":"","py-2":"","pl-4":"","pr-3":"","vertical-middle":""},Ha=Q({__name:"Goto",setup(t){const e=Y(),s=Y(),a=Y(),n=Y(),o=Y(""),l=Y(0),{go:i,slides:v}=ce();function c(M){return M!=null}const d=R(()=>new Te(v.value.map(M=>M.meta?.slide).filter(c),{keys:["no","title"],threshold:.3,shouldSort:!0,minMatchCharLength:1})),m=R(()=>o.value.startsWith("/")?o.value.substring(1):o.value),p=R(()=>d.value.search(m.value).map(M=>M.item)),y=R(()=>!!p.value.length);function x(){if(y.value){const M=p.value.at(l.value||0);M&&i(M.no)}A()}function A(){o.value="",$e.value=!1}function h(M){M.preventDefault(),l.value++,l.value>=p.value.length&&(l.value=0),F()}function b(M){M.preventDefault(),l.value--,l.value<=-2&&(l.value=p.value.length-1),F()}function F(){const M=n.value?.[l.value];M&&a.value&&(M.offsetTop+M.offsetHeight>a.value.offsetHeight+a.value.scrollTop?a.value.scrollTo({behavior:"smooth",top:M.offsetTop+M.offsetHeight-a.value.offsetHeight+1}):M.offsetTop{M?(o.value="",l.value=0,setTimeout(()=>s.value?.focus(),0)):s.value?.blur()}),He(We,()=>{e.value?.contains(We.value)||A()}),(M,ne)=>(u(),f("div",{id:"slidev-goto-dialog",ref_key:"container",ref:e,class:L(["fixed right-5 transition-all",r($e)?"top-5":"-top-20"]),"w-90":"","max-w-90":"","min-w-90":""},[g("div",Na,[g("input",{id:"slidev-goto-input",ref_key:"input",ref:s,value:o.value,type:"text",disabled:!r($e),class:L(["outline-none bg-transparent",{"text-red-400":!y.value&&o.value}]),placeholder:"Goto...",onKeydown:[Qe(x,["enter"]),Qe(A,["escape"]),Qe(h,["down"]),Qe(b,["up"])],onInput:W},null,42,Oa)]),p.value.length>0?(u(),f("div",{key:0,ref_key:"list",ref:a,class:"autocomplete-list",shadow:"~",border:"~ transparent rounded dark:main"},[g("ul",za,[(u(!0),f(T,null,Ve(p.value,(_,H)=>(u(),f("li",{ref_for:!0,ref_key:"items",ref:n,key:_.id,role:"button",tabindex:"0","cursor-pointer":"",hover:"op100","table-row":"","items-center":"",border:H===0?void 0:"t main",class:L(l.value===H?"bg-active op100":"op80"),onClick:sn(I=>J(_.no),["stop","prevent"])},[g("div",Wa,ee(_.no),1),E(r(qs),{"table-cell":"","py-2":"","pr-4":"","w-full":"",no:_.no},null,8,["no"])],10,ja))),128))])],512)):w("v-if",!0)],2))}}),qo=dt(Ha,[["__scopeId","data-v-65edf6ad"]]),Ka={render:()=>[]},Ga={key:0,class:"bg-main text-main shadow-xl absolute bottom-10 left-0 z-menu py2",border:"~ main rounded-md"},kn=Q({__name:"MenuButton",props:{modelValue:{default:!1},disabled:{default:!1}},setup(t,{emit:e}){const n=an(t,"modelValue",e,{passive:!0}),o=Y();return tn(o,()=>{n.value=!1}),(l,i)=>(u(),f("div",{ref_key:"el",ref:o,class:"flex relative"},[g("button",{class:L({disabled:t.disabled}),onClick:i[0]||(i[0]=v=>n.value=!r(n))},[ot(l.$slots,"button",{class:L({disabled:t.disabled})})],2),(u(),D(Fn,null,[r(n)?(u(),f("div",Ga,[ot(l.$slots,"menu")])):w("v-if",!0)],1024))],512))}}),Ua={border:"~ main rounded",flex:"~ gap-2 items-center",relative:"","h-5":"","w-5":"","p0.5":"","hover:bg-active":"",p1:""},Ya=["disabled"],xt=Q({__name:"FormCheckbox",props:ln({disabled:{type:Boolean}},{modelValue:{type:Boolean,type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=on(t,"modelValue");return(s,a)=>(u(),f("div",Ua,[g("div",{"i-ri-check-line":"",class:L(e.value?"":"op0")},null,2),Ge(g("input",{"onUpdate:modelValue":a[0]||(a[0]=n=>e.value=n),type:"checkbox",absolute:"","inset-0":"","opacity-10":"",disabled:t.disabled},null,8,Ya),[[Rn,e.value]])]))}}),Xa={"w-30":"","h-8":"",flex:"~ gap-1 items-center"},Qa={key:0,"w-1.5":"","h-1.5":"","bg-primary":"",rounded:"",absolute:"","top-0":"","right--2":""},Ja={key:0,"w-1.5":"","h-1.5":"","bg-primary":"",rounded:"",absolute:"","top-0":"","right--2":""},Za=["innerHTML"],we=Q({__name:"FormItem",props:{title:{},nested:{type:[Boolean,Number]},div:{type:Boolean},description:{},dot:{type:Boolean}},emits:["reset"],setup(t,{emit:e}){const s=e;function a(){s("reset")}return(n,o)=>(u(),D(Ie(t.div?"div":"label"),{flex:"~ row gap-2 items-center","select-none":""},{default:$(()=>[g("div",Xa,[t.nested?(u(),f("div",{key:0,"i-ri-corner-down-right-line":"",op40:"",style:Ae(typeof t.nested=="number"?{marginLeft:`${t.nested*.5+.5}rem`}:{marginLeft:"0.25rem"})},null,4)):w("v-if",!0),t.description?(u(),D(r(us),{key:2,distance:"10"},{popper:$(()=>[g("div",{"text-sm":"","min-w-90":"",innerHTML:t.description},null,8,Za)]),default:$(()=>[g("div",{op75:"","text-right":"",relative:"",onDblclick:a},[Ke(ee(t.title)+" ",1),t.dot?(u(),f("div",Ja)):w("v-if",!0)],32)]),_:1})):(u(),f("div",{key:1,op75:"",relative:"",onDblclick:a},[Ke(ee(t.title)+" ",1),t.dot?(u(),f("div",Qa)):w("v-if",!0)],32))]),ot(n.$slots,"default")]),_:3}))}}),qa={relative:"","h-22px":""},eo={key:0,"pointer-events-none":"",absolute:"","right-1":"","top-0.5":"","text-xs":"",op25:""},ze=Q({__name:"FormSlider",props:ln({max:{},min:{},step:{},unit:{},default:{}},{modelValue:{type:Number},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=t,s=on(t,"modelValue");return(a,n)=>(u(),f(T,null,[g("div",{relative:"","h-22px":"","w-60":"","flex-auto":"",onDblclick:n[1]||(n[1]=o=>e.default!==void 0?s.value=e.default:null)},[Ge(g("input",wt({"onUpdate:modelValue":n[0]||(n[0]=o=>s.value=o),type:"range",class:"slider"},e,{absolute:"","bottom-0":"","left-0":"","right-0":"","top-0":"","z-10":"","w-full":"","align-top":""}),null,16),[[Lt,s.value,void 0,{number:!0}]]),e.default!=null?(u(),f("span",{key:0,border:"r main",absolute:"","bottom-0":"","top-0":"","h-full":"","w-1px":"",op75:"",style:Ae({left:`${(e.default-t.min)/(t.max-t.min)*100}%`})},null,4)):w("v-if",!0)],32),g("div",qa,[Ge(g("input",wt({"onUpdate:modelValue":n[2]||(n[2]=o=>s.value=o),type:"number"},e,{border:"~ main rounded",m0:"","w-20":"","bg-gray:5":"",pl2:"","align-top":"","text-sm":""}),null,16),[[Lt,s.value,void 0,{number:!0}]]),e.unit?(u(),f("span",eo,ee(e.unit),1)):w("v-if",!0)])],64))}}),Qt={error:0,client:60,Light:60,Dark:240};function Jt(t,e=1){if(Qt[t])return ct(Qt[t],e);let s=0;for(let n=0;n!e.text||e.color===!1?{}:{color:typeof e.color=="number"?ct(e.color):Jt(e.text),background:typeof e.color=="number"?ct(e.color,.1):Jt(e.text,.1)}),a=R(()=>(e.size||"sm")==="sm"?"px-1.5 text-11px leading-1.6em":"");return(n,o)=>(u(),D(Ie(t.as||"span"),{"ws-nowrap":"",rounded:"",class:L(a.value),style:Ae(s.value)},{default:$(()=>[ot(n.$slots,"default",{},()=>[g("span",{textContent:ee(e.text)},null,8,to)])]),_:3},8,["class","style"]))}}),so={flex:"~ gap-1 items-center",rounded:"","bg-gray:4":"",p1:"","m--1":""},ao=Q({__name:"SegmentControl",props:{options:{},modelValue:{}},emits:["update:modelValue"],setup(t){return(e,s)=>(u(),f("div",so,[(u(!0),f(T,null,Ve(t.options,a=>(u(),D(no,{key:a.value,class:L(["px-2 py-1 text-xs font-mono",a.value===t.modelValue?"":"op50"]),color:a.value===t.modelValue,"aria-pressed":a.value===t.modelValue,size:"none",text:a.label,as:"button",onClick:n=>e.$emit("update:modelValue",a.value)},null,8,["class","color","aria-pressed","text","onClick"]))),128))]))}}),oo={"text-sm":"","select-none":"",flex:"~ col gap-1","min-w-30":"",px4:""},lo=Q({__name:"Settings",setup(t){const{isPresenter:e}=ce(),{isSupported:s}=en();return(a,n)=>(u(),f("div",oo,[E(we,{title:"Invert",dot:r(P).invert!==r(K).invert,onReset:n[1]||(n[1]=o=>r(P).invert=r(K).invert)},{default:$(()=>[E(xt,{modelValue:r(P).invert,"onUpdate:modelValue":n[0]||(n[0]=o=>r(P).invert=o)},null,8,["modelValue"])]),_:1},8,["dot"]),E(we,{title:"Brightness",dot:r(P).brightness!==r(K).brightness,onReset:n[3]||(n[3]=o=>r(P).brightness=r(K).brightness)},{default:$(()=>[E(ze,{modelValue:r(P).brightness,"onUpdate:modelValue":n[2]||(n[2]=o=>r(P).brightness=o),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:n[5]||(n[5]=o=>r(P).contrast=r(K).contrast)},{default:$(()=>[E(ze,{modelValue:r(P).contrast,"onUpdate:modelValue":n[4]||(n[4]=o=>r(P).contrast=o),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:n[7]||(n[7]=o=>r(P).saturate=r(K).saturate)},{default:$(()=>[E(ze,{modelValue:r(P).saturate,"onUpdate:modelValue":n[6]||(n[6]=o=>r(P).saturate=o),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:n[9]||(n[9]=o=>r(P).sepia=r(K).sepia)},{default:$(()=>[E(ze,{modelValue:r(P).sepia,"onUpdate:modelValue":n[8]||(n[8]=o=>r(P).sepia=o),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:n[11]||(n[11]=o=>r(P).hueRotate=r(K).hueRotate)},{default:$(()=>[E(ze,{modelValue:r(P).hueRotate,"onUpdate:modelValue":n[10]||(n[10]=o=>r(P).hueRotate=o),max:180,min:-180,step:.1,default:r(K).hueRotate},null,8,["modelValue","default"])]),_:1},8,["dot"]),n[15]||(n[15]=g("div",{class:"h-1px opacity-5 bg-current w-full my2"},null,-1)),r(e)?w("v-if",!0):(u(),D(we,{key:0,title:"Slide Scale"},{default:$(()=>[E(ao,{modelValue:r(pt),"onUpdate:modelValue":n[12]||(n[12]=o=>ft(pt)?pt.value=o: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(xt,{modelValue:r(nt),"onUpdate:modelValue":n[13]||(n[13]=o=>ft(nt)?nt.value=o:null)},null,8,["modelValue"])]),_:1})):w("v-if",!0),r(e)?w("v-if",!0):(u(),D(we,{key:2,title:"Hide Idle Cursor"},{default:$(()=>[E(xt,{modelValue:r(mt),"onUpdate:modelValue":n[14]||(n[14]=o=>ft(mt)?mt.value=o:null)},null,8,["modelValue"])]),_:1}))]))}}),ro={class:"select-list"},io={class:"title"},uo={class:"items"},co=["onClick"],vo=Q({__name:"SelectList",props:{modelValue:{type:[Object,String,Number,Boolean]},title:{type:String},items:{type:Array}},setup(t,{emit:e}){const n=an(t,"modelValue",e,{passive:!0});return(o,l)=>(u(),f("div",ro,[g("div",io,ee(t.title),1),g("div",uo,[(u(!0),f(T,null,Ve(t.items,i=>(u(),f("div",{key:i.value,class:L(["item",{active:r(n)===i.value}]),onClick:()=>{n.value=i.value,i.onClick?.()}},[g("div",{class:L(["i-carbon:checkmark text-green-500 mya",{"opacity-0":r(n)!==i.value}])},null,2),g("div",{class:L({"opacity-50":r(n)!==i.value})},ee(i.display||i.value),3)],10,co))),128))])]))}}),fo=dt(vo,[["__scopeId","data-v-4a3b9b0a"]]),ho={"text-sm":"",flex:"~ col gap-2"},po={px3:"","ws-nowrap":""},mo={"font-bold":"","text-primary":""},go=Q({__name:"SyncControls",setup(t){const{isPresenter:e}=ce(),s=R({get:()=>e.value?Se.value.presenterReceive:Se.value.viewerReceive,set(o){e.value?Se.value.presenterReceive=o:Se.value.viewerReceive=o}}),a=R({get:()=>e.value?Se.value.presenterSend:Se.value.viewerSend,set(o){e.value?Se.value.presenterSend=o:Se.value.viewerSend=o}}),n=R({get:()=>s.value&&a.value?"bidirectional":s.value&&!a.value?"receive-only":!s.value&&a.value?"send-only":"off",set(o){switch(o){case"bidirectional":s.value=!0,a.value=!0;break;case"receive-only":s.value=!0,a.value=!1;break;case"send-only":s.value=!1,a.value=!0;break;case"off":s.value=!1,a.value=!1;break}}});return(o,l)=>(u(),D(kn,null,{button:$(()=>[E(U,{title:"Change sync settings"},{default:$(()=>[g("div",{class:L(["i-ph:arrow-up-bold mx--1.2 scale-x-80",a.value?"text-green6 dark:text-green":"op30"])},null,2),g("div",{class:L(["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",ho,[g("div",po,[l[1]||(l[1]=g("span",{op75:""},"Slides navigation syncing for ",-1)),g("span",mo,ee(r(e)?"presenter":"viewer"),1)]),l[2]||(l[2]=g("div",{class:"h-1px opacity-10 bg-current w-full"},null,-1)),E(fo,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=i=>n.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}))}}),yo={key:0,class:"i-carbon:minimize"},bo={key:1,class:"i-carbon:maximize"},xo={key:0,"w-2":"","h-2":"","bg-primary":"","rounded-full":"",absolute:"","top-0.5":"","right-0.5":""},_o={class:"px2 my-auto"},ko={class:"text-lg"},wo={class:"opacity-50 text-sm"},el=Q({__name:"NavControls",props:{persist:{default:!1}},setup(t){const e=t,{currentSlideNo:s,hasNext:a,hasPrev:n,isEmbedded:o,isPresenter:l,isPresenterAvailable:i,next:v,prev:c,total:d,enterPresenter:m,exitPresenter:p}=ce(),{brush:y,drawingEnabled:x}=vt(),A=Ct.smaller("md"),{isFullscreen:h,toggle:b}=It,F=Y();function W(){F.value&&We.value&&F.value.contains(We.value)&&We.value.blur()}const J=R(()=>e.persist?"text-$slidev-controls-foreground bg-transparent":"rounded-md bg-main shadow-xl border border-main"),M=Rt();return(ne,_)=>{const H=os,I=ls,O=rs,de=is;return u(),f("nav",{ref_key:"root",ref:F,class:"flex flex-col"},[g("div",{class:L(["flex flex-wrap-reverse text-xl gap-0.5 p-1 lg:p-2",J.value]),onMouseleave:W},[r(o)?w("v-if",!0):(u(),D(U,{key:0,title:r(h)?"Close fullscreen":"Enter fullscreen",onClick:r(b)},{default:$(()=>[r(h)?(u(),f("div",yo)):(u(),f("div",bo))]),_:1},8,["title","onClick"])),E(U,{class:L({disabled:!r(n)}),title:"Go to previous slide",onClick:r(c)},{default:$(()=>[..._[6]||(_[6]=[g("div",{class:"i-carbon:arrow-left"},null,-1)])]),_:1},8,["class","onClick"]),E(U,{class:L({disabled:!r(a)}),title:"Go to next slide",onClick:r(v)},{default:$(()=>[..._[7]||(_[7]=[g("div",{class:"i-carbon:arrow-right"},null,-1)])]),_:1},8,["class","onClick"]),r(o)?w("v-if",!0):(u(),D(U,{key:1,title:"Show slide overview",onClick:_[0]||(_[0]=se=>r(lt)())},{default:$(()=>[..._[8]||(_[8]=[g("div",{class:"i-carbon:apps"},null,-1)])]),_:1})),r(zn)?w("v-if",!0):(u(),D(U,{key:2,title:r(rt)?"Switch to light mode theme":"Switch to dark mode theme",onClick:_[1]||(_[1]=se=>r(At)())},{default:$(()=>[r(rt)?(u(),D(H,{key:0})):(u(),D(I,{key:1}))]),_:1},8,["title"])),E(Oe),r(o)?w("v-if",!0):(u(),f(T,{key:3},[!r(l)&&!r(A)&&M.value?(u(),f(T,{key:0},[E(r(M)),E(Oe)],64)):w("v-if",!0),r(l)?(u(),D(U,{key:1,title:r(Ze)?"Hide presenter cursor":"Show presenter cursor",onClick:_[2]||(_[2]=se=>Ze.value=!r(Ze))},{default:$(()=>[r(Ze)?(u(),D(O,{key:0})):(u(),D(de,{key:1}))]),_:1},8,["title"])):w("v-if",!0)],64)),(!r(Ce).drawings.presenterOnly||r(l))&&!r(o)?(u(),f(T,{key:4},[E(U,{class:"relative",title:r(x)?"Hide drawing toolbar":"Show drawing toolbar",onClick:_[3]||(_[3]=se=>x.value=!r(x))},{default:$(()=>[_[9]||(_[9]=g("div",{class:"i-carbon:pen"},null,-1)),r(x)?(u(),f("div",{key:0,class:"absolute left-1 right-1 bottom-0 h-0.7 rounded-full",style:Ae({background:r(y).color})},null,4)):w("v-if",!0)]),_:1},8,["title"]),E(Oe)],64)):w("v-if",!0),r(o)?w("v-if",!0):(u(),f(T,{key:5},[r(l)?(u(),D(U,{key:0,title:"Play Mode",onClick:r(p)},{default:$(()=>[..._[10]||(_[10]=[g("div",{class:"i-carbon:presentation-file"},null,-1)])]),_:1},8,["onClick"])):w("v-if",!0),r(i)?(u(),D(U,{key:1,title:"Presenter Mode",onClick:r(m)},{default:$(()=>[..._[11]||(_[11]=[g("div",{class:"i-carbon:user-speaker"},null,-1)])]),_:1},8,["onClick"])):w("v-if",!0),w("v-if",!0)],64)),(u(),f(T,{key:6},[r(Ce).download?(u(),D(U,{key:0,title:"Download as PDF",onClick:r(un)},{default:$(()=>[..._[13]||(_[13]=[g("div",{class:"i-carbon:download"},null,-1)])]),_:1},8,["onClick"])):w("v-if",!0)],64)),w("v-if",!0),!r(l)&&r(Ce).info&&!r(o)?(u(),D(U,{key:8,title:"Show info",onClick:_[5]||(_[5]=se=>Nt.value=!r(Nt))},{default:$(()=>[..._[15]||(_[15]=[g("div",{class:"i-carbon:information"},null,-1)])]),_:1})):w("v-if",!0),r(o)?w("v-if",!0):(u(),f(T,{key:9},[E(Oe),r(l)?(u(),D(U,{key:0,title:"Toggle Presenter Layout",class:"aspect-ratio-initial flex items-center",onClick:r(jn)},{default:$(()=>[_[16]||(_[16]=g("div",{class:"i-carbon:template"},null,-1)),Ke(" "+ee(r(Wn)),1)]),_:1},8,["onClick"])):w("v-if",!0),(u(),D(go,{key:1})),E(kn,null,{button:$(()=>[E(U,{title:"More Options"},{default:$(()=>[_[17]||(_[17]=g("div",{class:"i-carbon:settings-adjust"},null,-1)),r(Hn)?(u(),f("div",xo)):w("v-if",!0)]),_:1})]),menu:$(()=>[E(lo)]),_:1})],64)),r(o)?w("v-if",!0):(u(),D(Oe,{key:10})),g("div",_o,[g("span",ko,ee(r(s)),1),g("span",wo," / "+ee(r(d)),1)]),E(r(Ka))],34)],512)}}}),st=Y(1),at=R(()=>Kn.value.length),X=Y(0),Tt=Y(0);function Co(){X.value>st.value&&(X.value-=1)}function Ao(){X.valuest.value){let t=X.value-Tt.value;tat.value&&(t=at.value),X.value=t}}const Eo=["onClick"],$o={class:"text-green font-bold"},Do={class:"opacity-50"},Bo={key:1,class:"opacity-50"},Fo={class:"fixed top-4 right-4 z-modal text-gray-400 flex flex-col items-center gap-2"},_t=128,Zt=32,tl=Q({__name:"QuickOverview",setup(t){const e=ce(),{currentSlideNo:s,go:a,slides:n}=e;function o(){le.value=!1}function l(y){a(y),o()}function i(y){return y===X.value}const v=Ct.smaller("xs"),c=Ct.smaller("sm"),d=R(()=>v.value?Fe.width.value-_t:c.value?(Fe.width.value-_t-Zt)/2:300),m=R(()=>Math.floor((Fe.width.value-_t)/(d.value+Zt))),p=Y("");return nn("keypress",y=>{if(!le.value){p.value="";return}if(y.key==="Enter"){y.preventDefault(),p.value?(l(+p.value),p.value=""):l(X.value);return}const x=Number.parseInt(y.key.replace(/\D/g,""));if(Number.isNaN(x)){p.value="";return}if(!p.value&&x===0)return;if(p.value+=String(x),+p.value>n.value.length){p.value="";return}const A=n.value.findIndex(h=>`/${h.no}`===p.value);A!==-1&&(X.value=A+1),+p.value*10>n.value.length&&(l(+p.value),p.value="")}),Pe(()=>{X.value=s.value,Tt.value=m.value}),(y,x)=>(u(),f(T,null,[E(In,{"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(le)?(u(),f("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:o},[g("div",{class:"grid gap-y-4 gap-x-8 w-full",style:Ae(`grid-template-columns: repeat(auto-fit,minmax(${d.value}px,1fr))`)},[(u(!0),f(T,null,Ve(r(n),(A,h)=>(u(),f("div",{key:A.no,class:"relative"},[g("div",{class:L(["inline-block border rounded overflow-hidden bg-main hover:border-primary transition",i(h+1)||r(X)===h+1?"border-primary":"border-main"]),onClick:b=>l(A.no)},[(u(),D(es,{key:A.no,no:A.no,"use-snapshot":!0,width:d.value,class:"pointer-events-none"},{default:$(()=>[E(vn,{"clicks-context":r(cn)(A,r(dn)),route:A,"render-context":"overview"},null,8,["clicks-context","route"]),E(ts,{page:A.no},null,8,["page"])]),_:2},1032,["no","width"]))],10,Eo),g("div",{class:"absolute top-0",style:Ae(`left: ${d.value+5}px`)},[p.value&&String(h+1).startsWith(p.value)?(u(),f(T,{key:0},[g("span",$o,ee(p.value),1),g("span",Do,ee(String(h+1).slice(p.value.length)),1)],64)):(u(),f("span",Bo,ee(h+1),1))],4)]))),128))],4)])):w("v-if",!0)]),_:1}),Ge(g("div",Fo,[E(U,{title:"Close",class:"text-2xl",onClick:o},{default:$(()=>[...x[0]||(x[0]=[g("div",{class:"i-carbon:close"},null,-1)])]),_:1}),(u(),D(U,{key:0,as:"a",title:"Slides Overview",target:"_blank",href:`${r(Gn)}overview`,"tab-index":"-1",class:"text-2xl"},{default:$(()=>[...x[1]||(x[1]=[g("div",{class:"i-carbon:list-boxes"},null,-1)])]),_:1},8,["href"])),w("v-if",!0)],512),[[rn,r(le)]])],64))}}),qt=new Set,et=new Set;function Ro(t){return t.startsWith("http")||t.startsWith("//")?t:`${"/".replace(/\/$/,"")}${t.startsWith("/")?t:`/${t}`}`}function Io(t){const e=Ro(t);if(qt.has(e)||et.has(e))return;et.add(e);const s=new Image;s.onload=()=>{et.delete(e),qt.add(e)},s.onerror=()=>{et.delete(e)},s.src=e}function je(t){const e=t.meta?.slide?.images;if(e?.length)for(const s of e)Io(s)}function Po(t,e,s,a){const n=Ce.preloadImages;if(n===!1)return;const o=typeof n=="object"&&n?.ahead||3;Pe(()=>{const l=t.value,i=a.value;if(!l||!i?.length)return;je(l),je(e.value),je(s.value);const v=l.no-1;for(let c=1;c<=o;c++){const d=v+c;d{const i=a.value,v=setTimeout(()=>{if(i?.length)for(const c of i)je(c)},3e3);l(()=>clearTimeout(v))})}function Vo(){const t=Pn(),e=Y(!1);let s,a;const n=typeof document<"u"&&"startViewTransition"in document;return t.beforeResolve((o,l)=>{const i=Ot(l.params.no)?.meta,v=Ot(o.params.no)?.meta,c=i?.slide?.no,d=v?.slide?.no;if((c!=null&&d!=null&&c!==d&&((c{s=A,a=h});let y;const x=new Promise(A=>y=A);return setTimeout(()=>{document.startViewTransition(()=>(y(),p))},50),x}),n&&t.afterEach(()=>{s?.(),a?.()}),e}const To=["data-drag-id"],ue=10,Ee=10,kt="absolute border border-gray bg-gray dark:border-gray-500 dark:bg-gray-800 bg-opacity-30 ",tt=20,Lo=Q({__name:"DragControl",props:{data:{}},setup(t){const{dragId:e,zoom:s,autoHeight:a,x0:n,y0:o,width:l,height:i,rotate:v,isArrow:c}=t.data,d=Vn(Yn,Y(1)),m=R(()=>d.value*s.value),{left:p,top:y}=Un(),x=c?Number.NEGATIVE_INFINITY:40,A=R(()=>v.value*Math.PI/180),h=R(()=>Math.sin(A.value)),b=R(()=>Math.cos(A.value)),F=R(()=>l.value*b.value+i.value*h.value),W=R(()=>l.value*h.value+i.value*b.value),J=R(()=>n.value-F.value/2),M=R(()=>o.value-W.value/2),ne=R(()=>n.value+F.value/2),_=R(()=>o.value+W.value/2),H=R(()=>c&&l.value<0),I=R(()=>c&&i.value<0);let O=null;function de(C){if(C.buttons!==1)return;C.preventDefault(),C.stopPropagation();const V=C.target.getBoundingClientRect(),S=l.value*b.value-i.value*h.value,B=l.value*h.value+i.value*b.value,Z=l.value*b.value+i.value*h.value,ie=-l.value*h.value+i.value*b.value;O={x0:n.value,y0:o.value,width:l.value,height:i.value,rotate:v.value,dx0:C.clientX-(V.left+V.right)/2,dy0:C.clientY-(V.top+V.bottom)/2,ltx:n.value-S/2,lty:o.value-B/2,rtx:n.value+Z/2,rty:o.value-ie/2,lbx:n.value-Z/2,lby:o.value+ie/2,rbx:n.value+S/2,rby:o.value+B/2},C.currentTarget.setPointerCapture(C.pointerId)}function se(C){if(!O||C.buttons!==1)return;C.preventDefault(),C.stopPropagation();const N=(C.clientX-p.value-O.dx0)/m.value,V=(C.clientY-y.value-O.dy0)/m.value;n.value=Wt(N,-F.value/2+Ee,zt.value+F.value/2-Ee),o.value=Wt(V,-W.value/2+Ee,jt.value+W.value/2-Ee)}function Le(C){O&&(C.preventDefault(),C.stopPropagation(),O=null)}function G(C,N){return{onPointerdown:de,onPointermove:V=>{if(!O||V.buttons!==1)return;V.preventDefault(),V.stopPropagation();let S=(V.clientX-p.value)/m.value,B=(V.clientY-y.value)/m.value;const{ltx:Z,lty:ie,rtx:me,rty:ge,lbx:ye,lby:be,rbx:xe,rby:j}=O,q=O.width/O.height,Sn=Math.max(x,x*q);function Xe(ve,fe){if(V.shiftKey){const te=Math.max(ve,fe*q,Sn),ae=te/q;return{w:te,h:ae}}else return{w:Math.max(ve,x),h:Math.max(fe,x)}}if(C)if(N){const ve=(xe-S)*b.value+(j-B)*h.value,fe=-(xe-S)*h.value+(j-B)*b.value,{w:te,h:ae}=Xe(ve,fe);S=xe-te*b.value+ae*h.value,B=j-te*h.value-ae*b.value}else{const ve=(me-S)*b.value-(B-ge)*h.value,fe=(me-S)*h.value+(B-ge)*b.value,{w:te,h:ae}=Xe(ve,fe);S=me-te*b.value-ae*h.value,B=ge-te*h.value+ae*b.value}else if(N){const ve=(S-ye)*b.value-(be-B)*h.value,fe=(S-ye)*h.value+(be-B)*b.value,{w:te,h:ae}=Xe(ve,fe);S=ye+te*b.value+ae*h.value,B=be+te*h.value-ae*b.value}else{const ve=(S-Z)*b.value+(B-ie)*h.value,fe=-(S-Z)*h.value+(B-ie)*b.value,{w:te,h:ae}=Xe(ve,fe);S=Z+te*b.value-ae*h.value,B=ie+te*h.value+ae*b.value}C?N?(n.value=(S+xe)/2,o.value=(B+j)/2,l.value=(xe-S)*b.value+(j-B)*h.value,i.value=-(xe-S)*h.value+(j-B)*b.value):(n.value=(S+me)/2,o.value=(B+ge)/2,l.value=(me-S)*b.value-(B-ge)*h.value,i.value=(me-S)*h.value+(B-ge)*b.value):N?(n.value=(S+ye)/2,o.value=(B+be)/2,l.value=(S-ye)*b.value-(be-B)*h.value,i.value=(S-ye)*h.value+(be-B)*b.value):(n.value=(S+Z)/2,o.value=(B+ie)/2,l.value=(S-Z)*b.value+(B-ie)*h.value,i.value=-(S-Z)*h.value+(B-ie)*b.value)},onPointerup:Le,style:{width:`${ue}px`,height:`${ue}px`,margin:`-${ue/2}px`,left:C!==H.value?"0":void 0,right:C!==H.value?void 0:"0",top:N!==I.value?"0":void 0,bottom:N!==I.value?void 0:"0",cursor:c?"move":+C+ +N==1?"nesw-resize":"nwse-resize",borderRadius:c?"50%":void 0},class:kt}}function pe(C){return{onPointerdown:de,onPointermove:N=>{if(!O||N.buttons!==1)return;N.preventDefault(),N.stopPropagation();const V=(N.clientX-p.value)/m.value,S=(N.clientY-y.value)/m.value,{ltx:B,lty:Z,rtx:ie,rty:me,lbx:ge,lby:ye,rbx:be,rby:xe}=O;if(C==="l"){const j=(ie+be)/2,q=(me+xe)/2;l.value=Math.max((j-V)*b.value+(q-S)*h.value,x),n.value=j-l.value*b.value/2,o.value=q-l.value*h.value/2}else if(C==="r"){const j=(B+ge)/2,q=(Z+ye)/2;l.value=Math.max((V-j)*b.value+(S-q)*h.value,x),n.value=j+l.value*b.value/2,o.value=q+l.value*h.value/2}else if(C==="t"){const j=(ge+be)/2,q=(ye+xe)/2;i.value=Math.max((q-S)*b.value-(j-V)*h.value,x),n.value=j+i.value*h.value/2,o.value=q-i.value*b.value/2}else if(C==="b"){const j=(B+ie)/2,q=(Z+me)/2;i.value=Math.max((S-q)*b.value-(V-j)*h.value,x),n.value=j-i.value*h.value/2,o.value=q+i.value*b.value/2}},onPointerup:Le,style:{width:`${ue}px`,height:`${ue}px`,margin:`-${ue/2}px`,left:C==="l"?"0":C==="r"?"100%":"50%",top:C==="t"?"0":C==="b"?"100%":"50%",cursor:"lr".includes(C)?"ew-resize":"ns-resize",borderRadius:"50%"},class:kt}}function Ue(){return{onPointerdown:de,onPointermove:C=>{if(!O||C.buttons!==1)return;C.preventDefault(),C.stopPropagation();const N=(C.clientX-p.value-O.dx0)/m.value-ue/4,V=(C.clientY-y.value-O.dy0)/m.value-ue/4;let S=Math.atan2(V-o.value,N-n.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}v.value=S},onPointerup:Le,style:{width:`${ue}px`,height:`${ue}px`,margin:`-${ue/2}px`,left:"50%",top:"-20px",cursor:"grab",borderRadius:"50%"},class:kt}}const Ye={immediate:!1,immediateCallback:!1},wn=Je(()=>{ne.value<=Ee||n.value--},tt,Ye),Cn=Je(()=>{J.value>=zt.value-Ee||n.value++},tt,Ye),An=Je(()=>{_.value<=Ee||o.value--},tt,Ye),Mn=Je(()=>{M.value>=jt.value-Ee||o.value++},tt,Ye);return Pe(()=>{function C(N,V){Pt[N].value?V.resume():V.pause()}C("left",wn),C("right",Cn),C("up",An),C("down",Mn)}),(C,N)=>Number.isFinite(r(n))?(u(),f("div",{key:0,id:"drag-control-container","data-drag-id":r(e),style:Ae({position:"absolute",zIndex:100,left:`${r(s)*(r(n)-Math.abs(r(l))/2)}px`,top:`${r(s)*(r(o)-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:Le},[g("div",{class:L(["absolute inset-0 z-nav dark:b-gray-400",r(c)?"":"b b-dark"])},[r(a)?w("v-if",!0):(u(),f(T,{key:0},[g("div",_e(ke(G(!0,!0))),null,16),g("div",_e(ke(G(!1,!1))),null,16),r(c)?w("v-if",!0):(u(),f(T,{key:0},[g("div",_e(ke(G(!0,!1))),null,16),g("div",_e(ke(G(!1,!0))),null,16)],64))],64)),r(c)?w("v-if",!0):(u(),f(T,{key:1},[g("div",_e(ke(pe("l"))),null,16),g("div",_e(ke(pe("r"))),null,16),r(a)?w("v-if",!0):(u(),f(T,{key:0},[g("div",_e(ke(pe("t"))),null,16),g("div",_e(ke(pe("b"))),null,16)],64)),g("div",_e(ke(Ue())),null,16),g("div",{class:"absolute -top-15px w-0 b b-dashed b-dark dark:b-gray-400",style:Ae({left:"calc(50% - 1px)",height:r(a)?"14px":"10px"})},null,4)],64))],2)],44,To)):w("v-if",!0)}}),No=Q({__name:"SlidesShow",props:{renderContext:{}},setup(t){const{currentSlideRoute:e,currentTransition:s,getPrimaryClicks:a,prevRoute:n,nextRoute:o,slides:l,isPrintMode:i,isPrintWithClicks:v,clicksDirection:c,printRange:d}=ce();function m(h){h.meta.preload!==!1&&(h.meta.__preloaded=!0,h.load())}Pe(()=>{m(e.value),m(n.value),m(o.value)}),Pe(h=>{const b=l.value,F=setTimeout(()=>{b.forEach(m)},3e3);h(()=>clearTimeout(F))}),Po(e,n,o,l);const p=Vo(),y=Rt();Xn(()=>import("./DrawingLayer-cl9SU_LS.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])).then(h=>y.value=h.default);const x=R(()=>i.value?d.value.map(h=>l.value[h-1]):l.value.filter(h=>h.meta?.__preloaded||h===e.value));function A(){gt.value=!0,cs()}return(h,b)=>(u(),f(T,null,[w(" Global Bottom "),E(r(ns)),w(" Slides "),(u(),D(Ie(r(p)&&!r(i)&&!r(gt)&&!r(Ht)?"div":Tn),wt(r(gt)||r(Ht)||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:$(()=>[(u(!0),f(T,null,Ve(x.value,F=>Ge((u(),D(vn,{key:F.no,"clicks-context":r(i)&&!r(v)?r(cn)(F,r(dn)):r(a)(F),route:F,"render-context":t.renderContext},null,8,["clicks-context","route","render-context"])),[[rn,F===r(e)]])),128))]),_:1},16,["class"])),r(Mt)?(u(),D(Lo,{key:0,data:r(Mt)},null,8,["data"])):w("v-if",!0),w(" Global Top "),E(r(ss)),y.value?(u(),D(r(y),{key:1})):w("v-if",!0)],64))}}),nl=dt(No,[["__scopeId","data-v-e952cc0e"]]),Oo=[Object.values([])[0],Object.values([])[0]].filter(Boolean);function zo(){const{go:t,goFirst:e,goLast:s,next:a,nextSlide:n,prev:o,prevSlide:l}=ce(),{drawingEnabled:i}=vt(),{escape:v,space:c,shift:d,left:m,right:p,up:y,down:x,enter:A,d:h,g:b,o:F,"`":W}=Pt,J={next:a,prev:o,nextSlide:n,prevSlide:l,go:t,goFirst:e,goLast:s,downloadPDF:un,toggleDark:At,toggleOverview:lt,toggleDrawing:()=>i.value=!i.value,escapeOverview:()=>le.value=!1,showGotoDialog:()=>$e.value=!$e.value},M=z(oe(le),oe(Mt));let ne=[{name:"next_space",key:z(c,oe(d)),fn:a,autoRepeat:!0},{name:"prev_space",key:z(c,d),fn:o,autoRepeat:!0},{name:"next_right",key:z(p,oe(d),M),fn:a,autoRepeat:!0},{name:"prev_left",key:z(m,oe(d),M),fn:o,autoRepeat:!0},{name:"next_page_key",key:"pageDown",fn:a,autoRepeat:!0},{name:"prev_page_key",key:"pageUp",fn:o,autoRepeat:!0},{name:"next_down",key:z(x,M),fn:n,autoRepeat:!0},{name:"prev_up",key:z(y,M),fn:l,autoRepeat:!0},{name:"next_shift",key:z(p,d),fn:n,autoRepeat:!0},{name:"prev_shift",key:z(m,d),fn:l,autoRepeat:!0},{name:"toggle_dark",key:z(h,oe(i)),fn:At},{name:"toggle_overview",key:z(Ln(F,W),oe(i)),fn:lt},{name:"hide_overview",key:z(v,oe(i)),fn:()=>le.value=!1},{name:"goto",key:z(b,oe(i)),fn:()=>$e.value=!$e.value},{name:"next_overview",key:z(p,le),fn:Ao},{name:"prev_overview",key:z(m,le),fn:Co},{name:"up_overview",key:z(y,le),fn:Mo},{name:"down_overview",key:z(x,le),fn:So},{name:"goto_from_overview",key:z(A,le),fn:()=>{t(X.value),le.value=!1}}];const _=new Set(ne.map(I=>I.name));for(const I of Oo)ne=I(J,ne);if(ne.filter(I=>I.name&&_.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 sl(){const{isPrintMode:t}=ce(),e=z(oe(qn),oe(Zn),oe(t),Qn,oe(Jn)),s=zo();new Map(s.map(l=>[l.key,l])).forEach(l=>{l.fn&&n(l.key,l.fn,l.autoRepeat)}),o("f",()=>It.toggle());function n(l,i,v=!1){typeof l=="string"&&(l=Pt[l]);const c=z(l,e);let d=0,m;const p=()=>{if(clearTimeout(m),!c.value){d=0;return}v&&(m=setTimeout(p,Math.max(1e3-d*250,150)),d++),i()};return He(c,p,{flush:"sync"})}function o(l,i){return Nn(l,v=>{e.value&&(v.repeat||i())})}}export{qo as G,nl as S,Oe as V,ao as _,Qo as a,el as b,tl as c,Zo as d,Jo as o,sl as r,Xo as u}; diff --git a/assets/slidev/useSlideInfo-DSL8NNQ0.js b/assets/slidev/useSlideInfo-95lRLUff.js similarity index 84% rename from assets/slidev/useSlideInfo-DSL8NNQ0.js rename to assets/slidev/useSlideInfo-95lRLUff.js index ad802292ebcf9e44bacf0e2ba0d1eec837a44ad3..d1c3adb63bf686ae72ea76538bbb7d06816ca7a4 100644 --- a/assets/slidev/useSlideInfo-DSL8NNQ0.js +++ b/assets/slidev/useSlideInfo-95lRLUff.js @@ -1 +1 @@ -import{r as o,T as u,z as f}from"../modules/vue-CZamTkmS.js";import{w as s}from"../index-D8MtK2Qe.js";function c(n){return{info:o(s(n)?.meta.slide??null),update:async()=>{}}}const l={};function p(n){function t(e){return l[e]??=c(e)}return{info:f({get(){return t(u(n)).info.value},set(e){t(u(n)).info.value=e}}),update:async(e,r)=>{const i=t(r??u(n)),a=await i.update(e);return a&&(i.info.value=a),a}}}export{c as a,p as u}; +import{r as o,T as u,z as f}from"../modules/vue-CZamTkmS.js";import{w as s}from"../index-CIas0rwA.js";function c(n){return{info:o(s(n)?.meta.slide??null),update:async()=>{}}}const l={};function p(n){function t(e){return l[e]??=c(e)}return{info:f({get(){return t(u(n)).info.value},set(e){t(u(n)).info.value=e}}),update:async(e,r)=>{const i=t(r??u(n)),a=await i.update(e);return a&&(i.info.value=a),a}}}export{c as a,p as u}; diff --git a/assets/two-col-evidence-C1aPThn8.js b/assets/two-col-evidence-BJy_vMOO.js similarity index 84% rename from assets/two-col-evidence-C1aPThn8.js rename to assets/two-col-evidence-BJy_vMOO.js index afabc3f5be27b62a5de04a232b37c550f4fcf5d8..f92fc5212188b4e1b2abb9fec95658ef859ebef6 100644 --- a/assets/two-col-evidence-C1aPThn8.js +++ b/assets/two-col-evidence-BJy_vMOO.js @@ -1 +1 @@ -import{_}from"./PageNo-FcNtCKNX.js";import{o,e as t,T as e,t as n,j as a,ad as u,g as r,i,d as m}from"./modules/vue-CZamTkmS.js";import{u as f}from"./slidev/context-z1Z7Rpcn.js";const p={class:"slidev-layout ae-slide ae-twocol"},v={key:0,class:"locator"},h={key:1,class:"assertion"},y={key:0,class:"rule"},g={class:"ae-cols ae-body"},k={class:"ae-col"},N={class:"ae-col"},x={__name:"two-col-evidence",setup($){const{$nav:c,$frontmatter:s}=f();return(l,V)=>{const d=_;return o(),t("div",p,[e(s).locator?(o(),t("div",v,n(e(s).locator),1)):a("v-if",!0),e(s).assertion?(o(),t("h1",h,[u(n(e(s).assertion),1),e(s).rule!==!1?(o(),t("span",y)):a("v-if",!0)])):a("v-if",!0),r("div",g,[r("div",k,[i(l.$slots,"left")]),r("div",N,[i(l.$slots,"right")])]),m(d,{current:e(c).currentPage,slides:e(c).slides},null,8,["current","slides"])])}}};export{x as _}; +import{_}from"./PageNo-bIvqdETk.js";import{o,e as t,T as e,t as n,j as a,ad as u,g as r,i,d as m}from"./modules/vue-CZamTkmS.js";import{u as f}from"./slidev/context-Ch1IIjuh.js";const p={class:"slidev-layout ae-slide ae-twocol"},v={key:0,class:"locator"},h={key:1,class:"assertion"},y={key:0,class:"rule"},g={class:"ae-cols ae-body"},k={class:"ae-col"},N={class:"ae-col"},x={__name:"two-col-evidence",setup($){const{$nav:c,$frontmatter:s}=f();return(l,V)=>{const d=_;return o(),t("div",p,[e(s).locator?(o(),t("div",v,n(e(s).locator),1)):a("v-if",!0),e(s).assertion?(o(),t("h1",h,[u(n(e(s).assertion),1),e(s).rule!==!1?(o(),t("span",y)):a("v-if",!0)])):a("v-if",!0),r("div",g,[r("div",k,[i(l.$slots,"left")]),r("div",N,[i(l.$slots,"right")])]),m(d,{current:e(c).currentPage,slides:e(c).slides},null,8,["current","slides"])])}}};export{x as _}; diff --git a/index.html b/index.html index 8feea4b828c91b2de6e9b93217b9c085aa8d679e..1cadc82f6cef0c5338dd16582f6f819e4359c142 100644 --- a/index.html +++ b/index.html @@ -29,7 +29,7 @@ - +