PageSourceSearch

https://muon-pres.vercel.app/assets/index-CFSDL--r.js

js muon-pres.vercel.app collected 2026-10-03 07:20:44 UTC 150,128 bytes, 132 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/md-8XMp8JYt.js","assets/modules/unplugin-icons-BMVXOdiE.js","assets/modules/vue-BmyRXMJ5.js","assets/slidev/context-Ig6d1oCL.js","assets/modules/shiki-BscRRNgj.js","assets/modules/shiki-DVQfPmV_.css","assets/md-yxckRzuC.css","assets/md-BK-jOdZ6.js","assets/slidev/VClicks-D8wHzHdK.js","assets/slidev/KaTexBlockWrapper.vue_vue_type_script_setup_true_lang-BojY5h_B.js","assets/slidev/center-Cef1sPsf.js","assets/md-DHdBgb6e.js","assets/md-CM4RB4Lb.js","assets/md-CLpBHUhk.js","assets/md-De27iqyQ.js","assets/md-DgtsZK1x.js","assets/slidev/default-C4K9kZ6y.js","assets/md-CZbvaa4T.js","assets/md-Cknv9hjI.js","assets/md-CImYWVRe.js","assets/md-VT00otjJ.js","assets/md-gtt3Apcg.js","assets/md-DNybdnoN.js","assets/md-D-GV4ABn.js","assets/md-DFnMRXb-.js","assets/md-DO86UYv0.js","assets/md-Bbif5KbO.js","assets/md-HVlwdQ8m.js","assets/md-DFQr4LZp.js","assets/md-CLLGHK8l.js","assets/md-C_0NbTVE.js","assets/md-VjSfdh3x.js","assets/md-DL6_j53X.js","assets/md-dv-V8Vde.js","assets/md-CVb2vsCu.js","assets/md-Cg54fJEf.js","assets/slidev/two-cols.vue_vue_type_script_setup_true_lang-Uao649vp.js","assets/md-CFADmcEo.js","assets/md-DpLUnTB-.js","assets/md-BPaTFs8d.js","assets/md-BrIsJNmb.js","assets/md-S5u8XjeX.js","assets/md-DWfAg8GA.js","assets/md-BUJNBuY6.js","assets/md-B6t4j-4Y.js","assets/md-D4W-oHW3.js","assets/md-BcQ1VNJA.js","assets/md-jawTtyH6.js","assets/md-BaCJ2E-P.js","assets/md-IloVaCkN.js","assets/md-uNVy1AM9.js","assets/md-Bawscw5T.js","assets/md-DiqUoNN8.js","assets/md-Chqm075_.js","assets/md-Bll-f_tp.js","assets/slidev/md-BowgY5X4.js","assets/md-CFH_slFC.js","assets/md-DJd0roGN.js","assets/md-Cwar1cMS.js","assets/md-ClnzVoa6.js","assets/md-B6rYbT79.js","assets/md-1GA_35gy.js","assets/md-DpyFNXic.js","assets/md-Dj1v6SL8.js","assets/md-6Bg1H1xi.js","assets/md-D6sMzfh_.js","assets/md-D3RURGxD.js","assets/my_iter-zoom-Bv7ZbzVN.js","assets/md-DHspzE2g.js","assets/md-BsMGr9DM.js","assets/md-CNvFguw3.js","assets/slidev/entry-CD_BJHP2.js","assets/entry-BmxlL8b2.css","assets/slidev/overview-BxIocGtP.js","assets/slidev/NoteDisplay.vue_vue_type_style_index_0_lang-B_7JC6aU.js","assets/NoteDisplay-C0fRRwg6.css","assets/slidev/SlideWrapper-9ySd_lBu.js","assets/SlideWrapper-0jwFrc2h.css","assets/slidev/IconButton.vue_vue_type_script_setup_true_lang-CEocZjG2.js","assets/slidev/useSlideInfo-CpXyUuMb.js","assets/slidev/notes-BFTtRXul.js","assets/slidev/TimerBar.vue_vue_type_script_setup_true_lang-BsvJh2N9.js","assets/slidev/Modal.vue_vue_type_script_setup_true_lang-C7hpUf3J.js","assets/slidev/notes-edit-B6rT3xUC.js","assets/slidev/presenter-BFJeMdm7.js","assets/slidev/shortcuts-DfhoB-pD.js","assets/shortcuts-CmYvqhzv.css","assets/slidev/DrawingControls.vue_vue_type_style_index_0_lang-CEvuJp7U.js","assets/DrawingControls-Cxk9a9ub.css","assets/presenter-BVn9Co_s.css","assets/slidev/play-D04AH0ks.js","assets/play-D_7yfuao.css","assets/slidev/404-O62lrnnu.js","assets/404-BwwK78-_.css"])))=>i.map(i=>d[i]);
2import{z as S,A as zn,B as zo,C as Wo,D as Qs,r as C,E as Pe,G as Bo,H as qo,I as Uo,J as Zs,K as tt,L as Ys,M,N as Go,O as Jo,f as Wn,o as cn,t as Ko,d as Xs,i as Qo,F as Zo,g as br,P as b,Q as or,R as Yo,S as vn,p as Xo,T as ta,U as ea,V as na,W as ra,X as sa,Y as B,Z as oa,_ as to,$ as wn,a0 as aa,a1 as eo,a2 as ia,a3 as la,a4 as ca,a5 as no,b as ua,a as fa,a6 as da,a7 as ha,a8 as pa,a9 as ma,aa as ga,ab as ya,ac as _a,c as va}from"./modules/vue-BmyRXMJ5.js";import{T as wa}from"./modules/shiki-BscRRNgj.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();const N={theme:"seriph",title:"Welcome to Slidev",titleTemplate:"%s - Slidev",addons:[],remoteAssets:!1,monaco:!0,monacoTypesSource:"local",monacoTypesAdditionalPackages:[],monacoTypesIgnorePackages:[],monacoRunAdditionalDeps:[],monacoRunUseStrict:!0,download:!1,export:{},info:`<h2>Slidev Starter Template</h2>
3<p>Presentation slides for developers.</p>
4<p>Learn more at <a href="https://sli.dev" target="_blank">Sli.dev</a></p>
5`,highlighter:"shiki",twoslash:!0,lineNumbers:!1,colorSchema:"auto",routerMode:"history",aspectRatio:1.7777777777777777,canvasWidth:980,exportFilename:"",selectable:!1,themeConfig:{},fonts:{sans:['"PT Serif"',"ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:['"PT Serif"',"ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:['"PT Mono"',"ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"],webfonts:["PT Serif","PT Mono"],provider:"google",local:[],italic:!0,weights:["400","700"]},favicon:"https://cdn.jsdelivr.net/gh/slidevjs/slidev/assets/favicon.png",drawings:{enabled:!0,persist:!1,presenterOnly:!1,syncAll:!0},plantUmlServer:"https://www.plantuml.com/plantuml",codeCopy:!0,magicMoveCopy:!0,author:"",record:"dev",css:"unocss",presenter:!0,browserExporter:"dev",htmlAttrs:{},transition:"slide-left",editor:!0,contextMenu:null,wakeLock:!0,mdc:!0,seoMeta:{},notesAutoRuby:{},duration:"35min",timer:"stopwatch",magicMoveDuration:800,background:"./assets/wal.png",class:"text-center",slidesTitle:"Welcome to Slidev - Slidev"};function Bn(e,t,n){return Math.min(n,Math.max(t,e))}function ka(...e){return Sa(e).reduce((t,n)=>t+n,0)}function ba(e){return e=e??[],Array.isArray(e)?e:[e]}function Sa(e){return ba(e).flat(1)}function Ma(e){return Array.from(new Set(e))}function Sr(...e){let t,n,r;e.length===1?(t=0,r=1,[n]=e):[t,n,r=1]=e;const s=[];let o=t;for(;o<n;)s.push(o),o+=r||1;return s}function $a(e){return e!=null}function Ta(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>t(n,r)).filter($a))}const Of="build",ro=S(()=>N.aspectRatio),so=S(()=>N.canvasWidth),Ea=S(()=>Math.ceil(so.value/ro.value)),Oa=S(()=>Ta(N.themeConfig||{},(e,t)=>[`--slidev-theme-${e}`,t])),Ln=N.slidesTitle,Lf="/",La=[],Pa=new Set(["link","style","script","noscript"]),Ca=new Set(["title","titleTemplate","script","style","noscript"]),Mr=new Set(["base","meta","link","style","script","noscript"]),Aa=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),Ra=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),Da=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),xa=new Set(["templateParams","htmlAttrs","bodyAttrs"]),Ia=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);function qn(e,t={},n){for(const r in e){const s=e[r],o=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?qn(s,t,o):typeof s=="function"&&(t[o]=s)}return t}const Na={run:e=>e()},Ha=()=>Na,oo=typeof console.createTask<"u"?console.createTask:Ha;function ja(e,t){const n=t.shift(),r=oo(n);return e.reduce((s,o)=>s.then(()=>r.run(()=>o(...t))),Promise.resolve())}function Va(e,t){const n=t.shift(),r=oo(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function Pn(e,t){for(const n of[...e])n(t)}class Fa{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const s=t;let o;for(;this._deprecatedHooks[t];)o=this._deprecatedHooks[t],t=o.to;if(o&&!r.allowDeprecated){let a=o.message;a||(a=`${s} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(a)||(console.warn(a),this._deprecatedMessages.add(a))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,s=(...o)=>(typeof r=="function"&&r(),r=void 0,s=void 0,n(...o));return r=this.hook(t,s),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const s of r)this.hook(t,s)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=qn(t),r=Object.keys(n).map(s=>this.hook(s,n[s]));return()=>{for(const s of r.splice(0,r.length))s()}}removeHooks(t){const n=qn(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(ja,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Va,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;
5this._before&&Pn(this._before,s);const o=t(n in this._hooks?[...this._hooks[n]]:[],r);return o instanceof Promise?o.finally(()=>{this._after&&s&&Pn(this._after,s)}):(this._after&&s&&Pn(this._after,s),o)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function za(){return new Fa}const Wa=["name","property","http-equiv"],Ba=new Set(["viewport","description","keywords","robots"]);function ao(e){const t=e.split(":");return t.length?Ia.has(t[1]):!1}function Un(e){const{props:t,tag:n}=e;if(Ra.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const r of Wa)if(t[r]!==void 0){const s=t[r],o=s.includes(":"),a=Ba.has(s),l=!(o||a)&&e.key?`:key:${e.key}`:"";return`${n}:${s}${l}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(Ca.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function $r(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;return n||`${e.tag}:${Object.entries(e.props).map(([r,s])=>`${r}:${String(s)}`).join(",")}`}function un(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());let s;if(t&&(s=t(n,e)),Array.isArray(s))return s.map(o=>un(o,t));if(s?.constructor===Object){const o={};for(const a of Object.keys(s))o[a]=un(s[a],t,a);return o}return s}function qa(e,t){const n=e==="style"?new Map:new Set;function r(s){const o=s.trim();if(o)if(e==="style"){const[a,...i]=o.split(":").map(l=>l.trim());a&&i.length&&n.set(a,i.join(":"))}else o.split(" ").filter(Boolean).forEach(a=>n.add(a))}return typeof t=="string"?e==="style"?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(s=>r(s)):t&&typeof t=="object"&&Object.entries(t).forEach(([s,o])=>{o&&o!=="false"&&(e==="style"?n.set(s.trim(),o):r(s))}),n}function io(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([n,r])=>{if(r===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=qa(n,r);return}if(Da.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let a=t.type;if(t.type||(a="application/json"),!a?.endsWith("json")&&a!=="speculationrules")return;t.type=a,e.props.type=a,e[n]=JSON.stringify(r)}else e[n]=r;return}const s=String(r),o=n.startsWith("data-");s==="true"||s===""?e.props[n]=o?s:!0:!r&&o&&s==="false"?e.props[n]="false":r!==void 0&&(e.props[n]=r)}),e):e}function Ua(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=io({tag:e,props:{}},n);return r.key&&Pa.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(s=>({...r,props:{...r.props,content:s}})):r}function Ga(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(s,o)=>{for(let a=0;a<t.length;a++)o=t[a](s,o);return o};e=n(void 0,e);const r=[];return e=un(e,n),Object.entries(e||{}).forEach(([s,o])=>{if(o!==void 0)for(const a of Array.isArray(o)?o:[o])r.push(Ua(s,a))}),r.flat()}const Tr=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Er={base:-10,title:10},Ja={critical:-8,high:-1,low:2},Or={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},Ka=/@import/,De=e=>e===""||e===!0;function Qa(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=Ja[t.tagPriority]||0,s=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Or;if(t.tag in Er)n=Er[t.tag];else if(t.tag==="meta"){const o=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;o&&(n=Or.meta[o])}else t.tag==="link"&&t.props.rel?n=s.link[t.props.rel]:t.tag==="script"?De(t.props.async)?n=s.script.async:t.props.src&&!De(t.props.defer)&&!De(t.props.async)&&t.props.type!=="module"&&!t.props.type?.endsWith("json")?n=s.script.sync:De(t.props.defer)&&t.props.src&&!De(t.props.async)&&(n=s.script.defer):t.tag==="style"&&(n=t.innerHTML&&Ka.test(t.innerHTML)?s.style.imported:s.style.sync);return(n||100)+r}function Lr(e,t){const n=typeof t=="function"?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function Za(e={}){const t=za();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,s=new Map,o=new Set,a={_entryCount:1,plugins:s,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:i=>Lr(a,i),push(i,l){const c={...l||{}};delete c.head;const f=c._index??a._entryCount++,h={_i:f,input:i,options:c},d={_poll(u=!1){a.dirty=!0,!u&&o.add(f),t.callHook("entries:updated",a)},dispose(){r.delete(f)&&a.invalidate()},patch(u){(!c.mode||c.mode==="server"&&n||c.mode==="client"&&!n)&&(h.input=u,r.set(f,h),d._poll())}};return d.patch(i),d},async resolveTags(){const i={tagMap:new Map,tags:[],entries:[...a.entries.values()]};for(await t.callHook("entries:resolve",i);o.size;){const d=o.values().next().value;
5o.delete(d);const u=r.get(d);if(u){const m={tags:Ga(u.input,e.propResolvers||[]).map(p=>Object.assign(p,u.options)),entry:u};await t.callHook("entries:normalize",m),u._tags=m.tags.map((p,g)=>(p._w=Qa(a,p),p._p=(u._i<<10)+g,p._d=Un(p),p))}}let l=!1;i.entries.flatMap(d=>(d._tags||[]).map(u=>({...u,props:{...u.props}}))).sort(Tr).reduce((d,u)=>{const m=String(u._d||u._p);if(!d.has(m))return d.set(m,u);const p=d.get(m);if((u?.tagDuplicateStrategy||(xa.has(u.tag)?"merge":null)||(u.key&&u.key===p.key?"merge":null))==="merge"){const y={...p.props};Object.entries(u.props).forEach(([_,v])=>y[_]=_==="style"?new Map([...p.props.style||new Map,...v]):_==="class"?new Set([...p.props.class||new Set,...v]):v),d.set(m,{...u,props:y})}else u._p>>10===p._p>>10&&u.tag==="meta"&&ao(m)?(d.set(m,Object.assign([...Array.isArray(p)?p:[p],u],u)),l=!0):(u._w===p._w?u._p>p._p:u?._w<p?._w)&&d.set(m,u);return d},i.tagMap);const c=i.tagMap.get("title"),f=i.tagMap.get("titleTemplate");if(a._title=c?.textContent,f){const d=f?.textContent;if(a._titleTemplate=d,d){let u=typeof d=="function"?d(c?.textContent):d;typeof u=="string"&&!a.plugins.has("template-params")&&(u=u.replace("%s",c?.textContent||"")),c?u===null?i.tagMap.delete("title"):i.tagMap.set("title",{...c,textContent:u}):(f.tag="title",f.textContent=u)}}i.tags=Array.from(i.tagMap.values()),l&&(i.tags=i.tags.flat().sort(Tr)),await t.callHook("tags:beforeResolve",i),await t.callHook("tags:resolve",i),await t.callHook("tags:afterResolve",i);const h=[];for(const d of i.tags){const{innerHTML:u,tag:m,props:p}=d;if(Aa.has(m)&&!(Object.keys(p).length===0&&!d.innerHTML&&!d.textContent)&&!(m==="meta"&&!p.content&&!p["http-equiv"]&&!p.charset)){if(m==="script"&&u){if(p.type?.endsWith("json")){const g=typeof u=="string"?u:JSON.stringify(u);d.innerHTML=g.replace(/</g,"\\u003C")}else typeof u=="string"&&(d.innerHTML=u.replace(new RegExp(`</${m}`,"g"),`<\\/${m}`));d._d=Un(d)}h.push(d)}}return h},invalidate(){for(const i of r.values())o.add(i._i);a.dirty=!0,t.callHook("entries:updated",a)}};return(e?.plugins||[]).forEach(i=>Lr(a,i)),a.hooks.callHook("init",a),e.init?.forEach(i=>i&&a.push(i)),a}const Ya=(e,t)=>zo(t)?zn(t):t,lo="usehead";function Xa(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(lo,e)}}.install}function ti(){if(Wo()){const e=Qs(lo);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function ei(e,t={}){const n=t.head||ti();return n.ssr?n.push(e||{},t):ni(n,e,t)}function ni(e,t,n={}){const r=C(!1);let s;return Pe(()=>{const a=r.value?{}:un(t,Ya);s?s.patch(a):s=e.push(a,n)}),Zs()&&(Bo(()=>{s.dispose()}),qo(()=>{r.value=!0}),Uo(()=>{r.value=!1})),s}function Gn(e){if(e===!1||e==="false")return null;if(e==null||e===!0||e==="true")return"+1";if(typeof e=="string"&&"+-".includes(e[0]))return e;const t=+e;return Number.isNaN(t)?(console.error(`Invalid "at" prop value: ${e}`),null):t<=0?(console.warn(`[Slidev] "at" prop value must be greater than 0, but got ${e}, has been set to 1`),1):t}function ri(e){return Array.isArray(e)?[Gn(e[0]),Gn(e[1])]:null}function co(e,t=0,n){const r=C(!1);let s=new Map,o=new Map;const a={get current(){return Bn(+e.value,t,a.total)},set current(i){e.value=r.value?Bn(i,t,a.total):i},clicksStart:t,get relativeSizeMap(){return s},get maxMap(){return o},get isMounted(){return r.value},setup(){Ys(()=>{r.value=!0,o=M(o),Go(e)||(a.current=e.value)}),Jo(()=>{r.value=!1,s=new Map,o=new Map})},calculateSince(i,l=1){const c=Gn(i);if(c==null)return null;let f,h,d;if(typeof c=="string"){const u=a.currentOffset,m=+c;f=u+m,h=u+m+l-1,d=m+l-1}else f=c,h=c+l-1,d=0;return{start:f,end:+Number.POSITIVE_INFINITY,max:h,delta:d,currentOffset:S(()=>a.current-f),isCurrent:S(()=>a.current===f),isActive:S(()=>a.current>=f)}},calculateRange(i){const l=ri(i);if(l==null)return null;const[c,f]=l;let h,d,u;return typeof c=="string"?(h=a.currentOffset+ +c,u=+c):(h=c,u=0),typeof f=="string"?(d=h+ +f,u+=+f):d=f,{start:h,end:d,max:d,delta:u,currentOffset:S(()=>a.current-h),isCurrent:S(()=>a.current===h),isActive:S(()=>h<=a.current&&a.current<d)}},calculate(i){return Array.isArray(i)?a.calculateRange(i):a.calculateSince(i)},register(i,l){if(!l)return;const{delta:c,max:f}=l;s.set(i,c),o.set(i,f)},unregister(i){s.delete(i),o.delete(i)},get currentOffset(){return ka(...s.values())},get total(){return n??(r.value?Math.max(0,...o.values()):0)}};return a}function si(e,t=0){const n=e?.meta.slide?.frontmatter.clicksStart??0,r=C(Math.max(zn(t),n));return tt(()=>zn(t),s=>{r.value=Math.max(s,n)}),co(r,n,e?.meta?.clicks)}const oi="modulepreload",ai=function(e){return"/"+e},Pr={},k=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let l=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(h=>({status:"fulfilled",value:h}),h=>
5({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),i=a?.nonce||a?.getAttribute("nonce");s=l(n.map(c=>{if(c=ai(c),c in Pr)return;Pr[c]=!0;const f=c.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const d=document.createElement("link");if(d.rel=f?"stylesheet":oi,f||(d.as="script"),d.crossOrigin="",d.href=c,i&&d.setAttribute("nonce",i),document.head.appendChild(d),f)return new Promise((u,m)=>{d.addEventListener("load",u),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(a){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a}return s.then(a=>{for(const i of a||[])i.status==="rejected"&&o(i.reason);return t().catch(o)})},ii=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},li={},ci={class:"px-4 py-10 text-center text-red-700 dark:text-red-500 font-bold font-mono"};function ui(e,t){return cn(),Wn("div",ci,Ko("Failed to fetch this slide. Please check your network connection."))}const $=ii(li,[["render",ui]]),fi={class:"h-full w-full flex items-center justify-center gap-2 slidev-slide-loading"},di=Xs({__name:"SlideLoading",setup(e){const t=C(!1);return Ys(()=>{setTimeout(()=>{t.value=!0},200)}),(n,r)=>(cn(),Wn("div",fi,[t.value?(cn(),Wn(Zo,{key:0},[r[0]||(r[0]=br("div",{class:"i-svg-spinners-90-ring-with-bg text-xl"},null,-1)),r[1]||(r[1]=br("div",null,"Loading slide...",-1))],64)):Qo("v-if",!0)]))}}),hi={theme:"seriph",background:"./assets/wal.png",title:"Welcome to Slidev",info:`## Slidev Starter Template
6Presentation slides for developers.
7
8Learn more at [Sli.dev](https://sli.dev)
9`,class:"text-center",drawings:{persist:!1},transition:"slide-left",mdc:!0,duration:"35min"},dt=b(hi),pi=M({get layout(){return dt.layout},get transition(){return dt.transition},get class(){return dt.class},get clicks(){return dt.clicks},get name(){return dt.name},get preload(){return dt.preload},slide:{content:"",revision:"49mrvl",frontmatterRaw:`theme: seriph
10background: ./assets/wal.png
11# some information about your slides (markdown enabled)
12title: Welcome to Slidev
13info: |
14  ## Slidev Starter Template
15  Presentation slides for developers.
16
17  Learn more at [Sli.dev](https://sli.dev)
18# apply UnoCSS classes to the current slide
19class: text-center
20# https://sli.dev/features/drawing
21drawings:
22  persist: false
23# slide transition: https://sli.dev/guide/animations.html#slide-transitions
24transition: slide-left
25# enable MDC Syntax: https://sli.dev/features/mdc
26mdc: true
27# duration of the presentation
28duration: 35min
29`,note:"",title:"Welcome to Slidev",index:0,noteHTML:`<p>The last comment block of each slide will be treated as slide notes. It will be visible and editable in Presenter Mode along with the slide. <a href="https://sli.dev/guide/syntax.html#notes" target="_blank">Read more in the docs</a></p>
30`,raw:"",frontmatter:dt,filepath:"",start:0,id:0,no:1},__clicksContext:null,__preloaded:!1}),mi={layout:"center"},ht=b(mi),gi=M({get layout(){return ht.layout},get transition(){return ht.transition},get class(){return ht.class},get clicks(){return ht.clicks},get name(){return ht.name},get preload(){return ht.preload},slide:{content:"",revision:"sp4uc0",frontmatterRaw:`layout: center
31`,note:"",title:"What is an Optimizer?",level:1,index:1,noteHTML:"",raw:"",frontmatter:ht,filepath:"",start:61,id:1,no:2},__clicksContext:null,__preloaded:!1}),yi={layout:"center"},pt=b(yi),_i=M({get layout(){return pt.layout},get transition(){return pt.transition},get class(){return pt.class},get clicks(){return pt.clicks},get name(){return pt.name},get preload(){return pt.preload},slide:{content:"",revision:"-9dowog",frontmatterRaw:`layout: center
32`,note:"",title:"What is an ML Optimizer?",level:1,index:2,noteHTML:"",raw:"",frontmatter:pt,filepath:"",start:87,id:2,no:3},__clicksContext:null,__preloaded:!1}),vi={layout:"center"},mt=b(vi),wi=M({get layout(){return mt.layout},get transition(){return mt.transition},get class(){return mt.class},get clicks(){return mt.clicks},get name(){return mt.name},get preload(){return mt.preload},slide:{content:"",revision:"aycrl8",frontmatterRaw:`layout: center
33`,note:"",title:"Gradient Descent",level:1,index:3,noteHTML:"",raw:"",frontmatter:mt,filepath:"",start:111,id:3,no:4},__clicksContext:null,__preloaded:!1}),ki={layout:"center"},gt=b(ki),bi=M({get layout(){return gt.layout},get transition(){return gt.transition},get class(){return gt.class},get clicks(){return gt.clicks},get name(){return gt.name},get preload(){return gt.preload},slide:{content:"",revision:"vvr7y9",frontmatterRaw:`layout: center
34`,note:"",title:"Gradient Descent Overview",level:1,index:4,noteHTML:"",raw:"",frontmatter:gt,filepath:"",start:117,id:4,no:5},__clicksContext:null,__preloaded:!1}),Si={layout:"center"},yt=b(Si),Mi=M({get layout(){return yt.layout},get transition(){return yt.transition},get class(){return yt.class},get clicks(){return yt.clicks},get name(){return yt.name},get preload(){return yt.preload},slide:{content:"",revision:"-j1lh2f",frontmatterRaw:`layout: center
35`,note:"",title:"Varients of Gradient Descent",level:1,index:5,noteHTML:"",raw:"",frontmatter:yt,filepath:"",start:129,id:5,no:6},__clicksContext:null,__preloaded:!1}),$i={},_t=b($i),Ti=M({get layout(){return _t.layout},get transition(){return _t.transition},get class(){return _t.class},get clicks(){return _t.clicks},get name(){return _t.name},get preload(){return _t.preload},slide:{content:"",revision:"ej7a7h",note:"",title:"Problems with Gradient Descent",level:1,index:6,noteHTML:"",raw:"",frontmatter:_t,filepath:"",start:141,id:6,no:7},__clicksContext:null,__preloaded:!1}),Ei={layout:"center"},vt=b(Ei),Oi=M({get layout(){return vt.layout},get transition(){return vt.transition},get class(){return vt.class},get clicks(){return vt.clicks},get name(){return vt.name},get preload(){return vt.preload},slide:{content:"",revision:"-ybhpaz",frontmatterRaw:`layout: center
36`,note:"",title:"Building on top of Gradient Descent",level:1,index:7,noteHTML:"",raw:"",frontmatter:vt,filepath:"",start:159,id:7,no:8},__clicksContext:null,__preloaded:!1}),Li={},wt=b(Li),Pi=M({get layout(){return wt.layout},get transition(){return wt.transition},get class(){return wt.class},get clicks(){return wt.clicks},get name(){return wt.name},get preload(){return wt.preload},slide:{content:"",revision:"-ut8j0i",note:"",title:"Problem Definition",level:1,index:8,noteHTML:"",raw:"",frontmatter:wt,filepath:"",start:167,id:8,no:9},__clicksContext:null,__preloaded:!1}),Ci={},kt=b(Ci),Ai=M({get layout(){return kt.layout},get transition(){return kt.transition},get class(){return kt.class},get clicks(){return kt.clicks},get name(){return kt.name},get preload(){return kt.preload},slide:{content:"",revision:"aaatxb",note:"",title:"Introduction to Momentum in Optimization",level:1,index:9,noteHTML:"",raw:"",frontmatter:kt,filepath:"",start:197,id:9,no:10},__clicksContext:null,__preloaded:!1}),Ri={},bt=b(Ri),Di=M({get layout(){return bt.layout},get transition(){return bt.transition},get class(){return bt.class},get clicks(){return bt.clicks},get name(){return bt.name},get preload(){return bt.preload},slide:{content:"",revision:"8odmxl",note:"",title:"First Moment (Momentum)",level:1,index:10,noteHTML:"",raw:"",frontmatter:bt,filepath:"",start:209,id:10,no:11},__clicksContext:null,__preloaded:!1}),xi={},St=b(xi),Ii=M({get layout(){return St.layout},get transition(){return St.transition},get class(){return St.class},get clicks(){return St.clicks},get name(){return St.name},get preload(){return St.preload},slide:{content:"",revision:"91qrxu",note:"",title:"Example of First Moment",level:1,index:11,noteHTML:"",raw:"",frontmatter:St,filepath:"",start:233,id:11,no:12},__clicksContext:null,__preloaded:!1}),Ni={},Mt=b(Ni),Hi=M({get layout(){return Mt.layout},get transition(){return Mt.transition},get class(){return Mt.class},get clicks(){return Mt.clicks},get name(){return Mt.name},get preload(){return Mt.preload},slide:{content:"",revision:"-sfqb14",note:"",title:"Second Moment (Variance)",level:1,index:12,noteHTML:"",raw:"",frontmatter:Mt,filepath:"",start:256,id:12,no:13},__clicksContext:null,__preloaded:!1}),ji={},$t=b(ji),Vi=M({get layout(){return $t.layout},get transition(){return $t.transition},get class(){return $t.class},get clicks(){return $t.clicks},get name(){return $t.name},get preload(){return $t.preload},slide:{content:"",revision:"792y04",note:"",title:"Moment Bias Correction",level:1,index:13,noteHTML:"",raw:"",frontmatter:$t,filepath:"",start:279,id:13,no:14},__clicksContext:null,__preloaded:!1}),Fi={layout:"center"},Tt=b(Fi),zi=M({get layout(){return Tt.layout},get transition(){return Tt.transition},get class(){return Tt.class},get clicks(){return Tt.clicks},get name(){return Tt.name},get preload(){return Tt.preload},slide:{content:"",revision:"cdyyng",frontmatterRaw:`layout: center
37`,note:"",title:"Building on top of Gradient Descent",level:1,index:14,noteHTML:"",raw:"",frontmatter:Tt,filepath:"",start:294,id:14,no:15},__clicksContext:null,__preloaded:!1}),Wi={},Et=b(Wi),Bi=M({get layout(){return Et.layout},get transition(){return Et.transition},get class(){return Et.class},get clicks(){return Et.clicks},get name(){return Et.name},get preload(){return Et.preload},slide:{content:"",revision:"-53ebyh",note:"",title:"Nesterov Accelerated Gradient (NAG)",level:1,index:15,noteHTML:"",raw:"",frontmatter:Et,filepath:"",start:302,id:15,no:16},__clicksContext:null,__preloaded:!1}),qi={},Ot=b(qi),Ui=M({get layout(){return Ot.layout},get transition(){return Ot.transition},get class(){return Ot.class},get clicks(){return Ot.clicks},get name(){return Ot.name},get preload(){return Ot.preload},slide:{content:"",revision:"-lx43lq",note:"",title:"Mathematical Comparison",level:1,index:16,noteHTML:"",raw:"",frontmatter:Ot,filepath:"",start:315,id:16,no:17},__clicksContext:null,__preloaded:!1}),Gi={layout:"center"},Lt=b(Gi),Ji=M({get layout(){return Lt.layout},get transition(){return Lt.transition},get class(){return Lt.class},get clicks(){return Lt.clicks},get name(){return Lt.name},get preload(){return Lt.preload},slide:{content:"",revision:"knpduq",frontmatterRaw:`layout: center
38`,note:"",title:"Building on top of Gradient Descent",level:1,index:17,noteHTML:"",raw:"",frontmatter:Lt,filepath:"",start:334,id:17,no:18},__clicksContext:null,__preloaded:!1}),Ki={},Pt=b(Ki),Qi=M({get layout(){return Pt.layout},get transition(){return Pt.transition},get class(){return Pt.class},get clicks(){return Pt.clicks},get name(){return Pt.name},get preload(){return Pt.preload},slide:{content:"",revision:"50t0l7",note:"",title:"Introduction to Adam Optimizer",level:1,index:18,noteHTML:"",raw:"",frontmatter:Pt,filepath:"",start:342,id:18,no:19},__clicksContext:null,__preloaded:!1}),Zi={},Ct=b(Zi),Yi=M({get layout(){return Ct.layout},get transition(){return Ct.transition},get class(){return Ct.class},get clicks(){return Ct.clicks},get name(){return Ct.name},get preload(){return Ct.preload},slide:{content:"",revision:"h0n817",note:"",title:"Adam’s Adaptive Learning Rate Mechanism",level:1,index:19,noteHTML:"",raw:"",frontmatter:Ct,filepath:"",start:353,id:19,no:20},__clicksContext:null,__preloaded:!1}),Xi={},At=b(Xi),tl=M({get layout(){return At.layout},get transition(){return At.transition},get class(){return At.class},get clicks(){return At.clicks},get name(){return At.name},get preload(){return At.preload},slide:{content:"",revision:"7iny6m",note:"",title:"Mathematical Formulation of Adam",level:1,index:20,noteHTML:"",raw:"",frontmatter:At,filepath:"",start:365,id:20,no:21},__clicksContext:null,__preloaded:!1}),el={},Rt=b(el),nl=M({get layout(){return Rt.layout},get transition(){return Rt.transition},get class(){return Rt.class},get clicks(){return Rt.clicks},get name(){return Rt.name},get preload(){return Rt.preload},slide:{content:"",revision:"e72f2",note:"",title:"Adam Pseudo-code",level:1,index:21,noteHTML:"",raw:"",frontmatter:
38Rt,filepath:"",start:389,id:21,no:22},__clicksContext:null,__preloaded:!1}),rl={},Dt=b(rl),sl=M({get layout(){return Dt.layout},get transition(){return Dt.transition},get class(){return Dt.class},get clicks(){return Dt.clicks},get name(){return Dt.name},get preload(){return Dt.preload},slide:{content:"",revision:"vlf39j",note:"",title:"Adam Visualization",level:1,index:22,noteHTML:"",raw:"",frontmatter:Dt,filepath:"",start:400,id:22,no:23},__clicksContext:null,__preloaded:!1}),ol={},xt=b(ol),al=M({get layout(){return xt.layout},get transition(){return xt.transition},get class(){return xt.class},get clicks(){return xt.clicks},get name(){return xt.name},get preload(){return xt.preload},slide:{content:"",revision:"-1k37ey",note:"",title:"Comparison of Momentum Methods",level:1,index:23,noteHTML:"",raw:"",frontmatter:xt,filepath:"",start:411,id:23,no:24},__clicksContext:null,__preloaded:!1}),il={layout:"center"},It=b(il),ll=M({get layout(){return It.layout},get transition(){return It.transition},get class(){return It.class},get clicks(){return It.clicks},get name(){return It.name},get preload(){return It.preload},slide:{content:"",revision:"v5yqi9",frontmatterRaw:`layout: center
39`,note:"",title:"Building on top of Gradient Descent",level:1,index:24,noteHTML:"",raw:"",frontmatter:It,filepath:"",start:422,id:24,no:25},__clicksContext:null,__preloaded:!1}),cl={layout:"two-cols"},Nt=b(cl),ul=M({get layout(){return Nt.layout},get transition(){return Nt.transition},get class(){return Nt.class},get clicks(){return Nt.clicks},get name(){return Nt.name},get preload(){return Nt.preload},slide:{content:"",revision:"-14fcti",frontmatterRaw:`layout: two-cols
40`,note:"",title:"AdamW",level:1,index:25,noteHTML:"",raw:"",frontmatter:Nt,filepath:"",start:429,id:25,no:26},__clicksContext:null,__preloaded:!1}),fl={},Ht=b(fl),dl=M({get layout(){return Ht.layout},get transition(){return Ht.transition},get class(){return Ht.class},get clicks(){return Ht.clicks},get name(){return Ht.name},get preload(){return Ht.preload},slide:{content:"",revision:"b7tu3q",note:"",title:"AdamW",level:1,index:26,noteHTML:"",raw:"",frontmatter:Ht,filepath:"",start:455,id:26,no:27},__clicksContext:null,__preloaded:!1}),hl={layout:"center"},jt=b(hl),pl=M({get layout(){return jt.layout},get transition(){return jt.transition},get class(){return jt.class},get clicks(){return jt.clicks},get name(){return jt.name},get preload(){return jt.preload},slide:{content:"",revision:"-yzm05p",frontmatterRaw:`layout: center
41`,note:"",title:"Some Prerequisites",level:1,index:27,noteHTML:"",raw:"",frontmatter:jt,filepath:"",start:473,id:27,no:28},__clicksContext:null,__preloaded:!1}),ml={layout:"center"},Vt=b(ml),gl=M({get layout(){return Vt.layout},get transition(){return Vt.transition},get class(){return Vt.class},get clicks(){return Vt.clicks},get name(){return Vt.name},get preload(){return Vt.preload},slide:{content:"",revision:"rfy2dr",frontmatterRaw:`layout: center
42`,note:"",title:"Orthogonal Matrix: Definition",level:1,index:28,noteHTML:"",raw:"",frontmatter:Vt,filepath:"",start:479,id:28,no:29},__clicksContext:null,__preloaded:!1}),yl={layout:"center"},Ft=b(yl),_l=M({get layout(){return Ft.layout},get transition(){return Ft.transition},get class(){return Ft.class},get clicks(){return Ft.clicks},get name(){return Ft.name},get preload(){return Ft.preload},slide:{content:"",revision:"-fppge3",frontmatterRaw:`layout: center
43`,note:"",title:"Orthogonal Matrix: Implications",level:1,index:29,noteHTML:"",raw:"",frontmatter:Ft,filepath:"",start:493,id:29,no:30},__clicksContext:null,__preloaded:!1}),vl={layout:"center"},zt=b(vl),wl=M({get layout(){return zt.layout},get transition(){return zt.transition},get class(){return zt.class},get clicks(){return zt.clicks},get name(){return zt.name},get preload(){return zt.preload},slide:{content:"",revision:"-ldtp9n",frontmatterRaw:`layout: center
44`,note:"",title:"What is Condition Number?",level:1,index:30,noteHTML:"",raw:"",frontmatter:zt,filepath:"",start:509,id:30,no:31},__clicksContext:null,__preloaded:!1}),kl={layout:"two-cols"},Wt=b(kl),bl=M({get layout(){return Wt.layout},get transition(){return Wt.transition},get class(){return Wt.class},get clicks(){return Wt.clicks},get name(){return Wt.name},get preload(){return Wt.preload},slide:{content:"",revision:"-kefy92",frontmatterRaw:`layout: two-cols
45`,note:"",title:"Reminder on LA",level:1,index:31,noteHTML:"",raw:"",frontmatter:Wt,filepath:"",start:534,id:31,no:32},__clicksContext:null,__preloaded:!1}),Sl={layout:"two-cols"},Bt=b(Sl),Ml=M({get layout(){return Bt.layout},get transition(){return Bt.transition},get class(){return Bt.class},get clicks(){return Bt.clicks},get name(){return Bt.name},get preload(){return Bt.preload},slide:{content:"",revision:"-23rzge",frontmatterRaw:`layout: two-cols
46`,note:"",title:"Condition Number: Geometric View",level:1,index:32,noteHTML:"",raw:"",frontmatter:Bt,filepath:"",start:571,id:32,no:33},__clicksContext:null,__preloaded:!1}),$l={layout:"two-cols"},qt=b($l),Tl=M({get layout(){return qt.layout},get transition(){return qt.transition},get class(){return qt.class},get clicks(){return qt.clicks},get name(){return qt.name},get preload(){return qt.preload},slide:{content:"",revision:"r1s556",frontmatterRaw:`layout: two-cols
47`,note:"",title:"Orthogonal Matrix: Example",level:1,index:33,noteHTML:"",raw:"",frontmatter:qt,filepath:"",start:611,id:33,no:34},__clicksContext:null,__preloaded:!1}),El={layout:"two-cols"},Ut=b(El),Ol=M({get layout(){return Ut.layout},get transition(){return Ut.transition},get class(){return Ut.class},get clicks(){return Ut.clicks},get name(){return Ut.name},get preload(){return Ut.preload},slide:{content:"",revision:"l8ckik",frontmatterRaw:`layout: two-cols
48`,note:"",title:"Orthogonal Matrix: Unit Norm Verification",level:1,index:34,noteHTML:"",raw:"",frontmatter:Ut,filepath:"",start:679,id:34,no:35},__clicksContext:null,__preloaded:!1}),Ll={layout:"center"},Gt=b(Ll),Pl=M({get layout(){return Gt.layout},get transition(){return Gt.transition},get class(){return Gt.class},get clicks(){return Gt.clicks},get name(){return Gt.name},get preload(){return Gt.preload},slide:{content:"",revision:"r3p6q0",frontmatterRaw:`layout: center
49`,note:"",title:"Orthogonalization",level:1,index:35,noteHTML:"",raw:"",frontmatter:Gt,filepath:"",start:733,id:35,no:36},__clicksContext:null,__preloaded:!1}),Cl={layout:"center"},Jt=b(Cl),Al=M({get layout(){return Jt.layout},get transition(){return Jt.transition},get class(){return Jt.class},get clicks(){return Jt.clicks},get name(){return Jt.name},get preload(){return Jt.preload},slide:{content:"",revision:"-wxctf4",frontmatterRaw:`layout: center
50`,note:"",title:"Let's Take a Few Steps Back!",level:1,index:36,noteHTML:"",raw:"",frontmatter:Jt,filepath:"",start:744,id:36,no:37},__clicksContext:null,__preloaded:!1}),Rl={layout:"center"},Kt=b(Rl),Dl=M({get layout(){return Kt.layout},get transition(){return Kt.transition},get class(){return Kt.class},get clicks(){return Kt.clicks},get name(){return Kt.name},get preload(){return Kt.preload},slide:{content:"",revision:"-ajk8qw",frontmatterRaw:`layout: center
51`,note:"",title:"Muon!",level:1,index:37,noteHTML:"",raw:"",frontmatter:Kt,filepath:"",start:751,id:37,no:38},__clicksContext:null,__preloaded:!1}),xl={layout:"center"},Qt=b(xl),Il=M({get layout(){return Qt.layout},get transition(){return Qt.transition},get class(){return Qt.class},get clicks(){return Qt.clicks},get name(){return Qt.name},get preload(){return Qt.preload},slide:{content:"",revision:"-l5b91x",frontmatterRaw:`layout: center
52`,note:"",title:"**M**oment**U**m Orthogonalized by **N**ewton-**S**chulz",level:1,index:38,noteHTML:"",raw:"",frontmatter:Qt,filepath:"",start:757,id:38,no:39},__clicksContext:null,__preloaded:!1}),Nl={layout:"center"},Zt=b(Nl),Hl=M({get layout(){return Zt.layout},get transition(){return Zt.transition},get class(){return Zt.class},get clicks(){return Zt.clicks},get name(){return Zt.name},get preload(){return Zt.preload},slide:{content:"",revision:"l5jj5t",frontmatterRaw:`layout: center
53`,note:"",title:"**M**oment**U**m Orthogonalized by **N**ewton-**S**chulz",level:1,index:39,noteHTML:"",raw:"",frontmatter:Zt,filepath:"",start:777,id:39,no:40},__clicksContext:null,__preloaded:!1}),jl={layout:"center"},Yt=b(jl),Vl=M({get layout(){return Yt.layout},get transition(){return Yt.transition},get class(){return Yt.class},get clicks(){return Yt.clicks},get name(){return Yt.name},get preload(){return Yt.preload},slide:{content:"",revision:"-xmgmoe",frontmatterRaw:`layout: center
54`,note:"",title:"Let's Start by Proofing the Effect",level:1,index:40,noteHTML:"",raw:"",frontmatter:Yt,filepath:"",start:791,id:40,no:41},__clicksContext:null,__preloaded:!1}),Fl={layout:"center"},Xt=b(Fl),zl=M({get layout(){return Xt.layout},get transition(){return Xt.transition},get class(){return Xt.class},get clicks(){return Xt.clicks},get name(){return Xt.name},get preload(){return Xt.preload},slide:{content:"",revision:"y2k1e6",frontmatterRaw:`layout: center
55`,note:"",index:41,noteHTML:"",raw:"",frontmatter:Xt,filepath:"",start:797,id:41,no:42},__clicksContext:null,__preloaded:!1}),Wl={layout:"center"},te=b(Wl),Bl=M({get layout(){return te.layout},get transition(){return te.transition},get class(){return te.class},get clicks(){return te.clicks}
55,get name(){return te.name},get preload(){return te.preload},slide:{content:"",revision:"khjqsv",frontmatterRaw:`layout: center
56`,note:"",title:"From Theory to Practice",level:1,index:42,noteHTML:"",raw:"",frontmatter:te,filepath:"",start:804,id:42,no:43},__clicksContext:null,__preloaded:!1}),ql={layout:"center"},ee=b(ql),Ul=M({get layout(){return ee.layout},get transition(){return ee.transition},get class(){return ee.class},get clicks(){return ee.clicks},get name(){return ee.name},get preload(){return ee.preload},slide:{content:"",revision:"-g312qr",frontmatterRaw:`layout: center
57`,note:"",index:43,noteHTML:"",raw:"",frontmatter:ee,filepath:"",start:824,id:43,no:44},__clicksContext:null,__preloaded:!1}),Gl={layout:"center"},ne=b(Gl),Jl=M({get layout(){return ne.layout},get transition(){return ne.transition},get class(){return ne.class},get clicks(){return ne.clicks},get name(){return ne.name},get preload(){return ne.preload},slide:{content:"",revision:"trzwq4",frontmatterRaw:`layout: center
58`,note:"",title:"Newton-Schulz 5 Implementation",level:1,index:44,noteHTML:"",raw:"",frontmatter:ne,filepath:"",start:830,id:44,no:45},__clicksContext:null,__preloaded:!1}),Kl={layout:"center"},re=b(Kl),Ql=M({get layout(){return re.layout},get transition(){return re.transition},get class(){return re.class},get clicks(){return re.clicks},get name(){return re.name},get preload(){return re.preload},slide:{content:"",revision:"oo24nj",frontmatterRaw:`layout: center
59`,note:"",title:"Muon Formulation",level:1,index:45,noteHTML:"",raw:"",frontmatter:re,filepath:"",start:853,id:45,no:46},__clicksContext:null,__preloaded:!1}),Zl={layout:"center"},se=b(Zl),Yl=M({get layout(){return se.layout},get transition(){return se.transition},get class(){return se.class},get clicks(){return se.clicks},get name(){return se.name},get preload(){return se.preload},slide:{content:"",revision:"-yrifw1",frontmatterRaw:`layout: center
60`,note:"",title:"Wait, isn't that Quadratic?",level:1,index:46,noteHTML:"",raw:"",frontmatter:se,filepath:"",start:886,id:46,no:47},__clicksContext:null,__preloaded:!1}),Xl={layout:"center"},oe=b(Xl),tc=M({get layout(){return oe.layout},get transition(){return oe.transition},get class(){return oe.class},get clicks(){return oe.clicks},get name(){return oe.name},get preload(){return oe.preload},slide:{content:"",revision:"-cz4g61",frontmatterRaw:`layout: center
61`,note:"",title:"Why Newton-Schulz Works?",level:1,index:47,noteHTML:"",raw:"",frontmatter:oe,filepath:"",start:905,id:47,no:48},__clicksContext:null,__preloaded:!1}),ec={layout:"center"},ae=b(ec),nc=M({get layout(){return ae.layout},get transition(){return ae.transition},get class(){return ae.class},get clicks(){return ae.clicks},get name(){return ae.name},get preload(){return ae.preload},slide:{content:"",revision:"-ab9geg",frontmatterRaw:`layout: center
62`,note:"",title:"Relationship to Prior Optimizers",level:1,index:48,noteHTML:"",raw:"",frontmatter:ae,filepath:"",start:926,id:48,no:49},__clicksContext:null,__preloaded:!1}),rc={layout:"center"},ie=b(rc),sc=M({get layout(){return ie.layout},get transition(){return ie.transition},get class(){return ie.class},get clicks(){return ie.clicks},get name(){return ie.name},get preload(){return ie.preload},slide:{content:"",revision:"-ss8c3f",frontmatterRaw:`layout: center
63`,note:"",title:"Why Newton-Schulz?",level:1,index:49,noteHTML:"",raw:"",frontmatter:ie,filepath:"",start:997,id:49,no:50},__clicksContext:null,__preloaded:!1}),oc={layout:"center"},le=b(oc),ac=M({get layout(){return le.layout},get transition(){return le.transition},get class(){return le.class},get clicks(){return le.clicks},get name(){return le.name},get preload(){return le.preload},slide:{content:"",revision:"p8qett",frontmatterRaw:`layout: center
64`,note:"",title:"Scaling Up Muon (Moonshot)",level:1,index:50,noteHTML:"",raw:"",frontmatter:le,filepath:"",start:1014,id:50,no:51},__clicksContext:null,__preloaded:!1}),ic={layout:"center"},ce=b(ic),lc=M({get layout(){return ce.layout},get transition(){return ce.transition},get class(){return ce.class},get clicks(){return ce.clicks},get name(){return ce.name},get preload(){return ce.preload},slide:{content:"",revision:"-jpuidq",frontmatterRaw:`layout: center
65`,note:"",index:51,noteHTML:"",raw:"",frontmatter:ce,filepath:"",start:1086,id:51,no:52},__clicksContext:null,__preloaded:!1}),cc={layout:"center"},ue=b(cc),uc=M({get layout(){return ue.layout},get transition(){return ue.transition},get class(){return ue.class},get clicks(){return ue.clicks},get name(){return ue.name},get preload(){return ue.preload},slide:{content:"",revision:"-bkixgl",frontmatterRaw:`layout: center
66`,note:"",title:"Moonshot New LLMs ***Kimi K2*** and ***Kimi K2.5*** Varients are Trained by Moonshot Varient of Muon",level:1,index:52,noteHTML:"",raw:"",frontmatter:ue,filepath:"",start:1092,id:52,no:53},__clicksContext:null,__preloaded:!1}),fc={layout:"center"},fe=b(fc),dc=M({get layout(){return fe.layout},get transition(){return fe.transition},get class(){return fe.class},get clicks(){return fe.clicks},get name(){return fe.name},get preload(){return fe.preload},slide:{content:"",revision:"owh0dj",frontmatterRaw:`layout: center
67`,note:"",title:"Two Ideas for Further Research",level:1,index:53,noteHTML:"",raw:"",frontmatter:fe,filepath:"",start:1098,id:53,no:54},__clicksContext:null,__preloaded:!1}),hc={layout:"center"},de=b(hc),pc=M({get layout(){return de.layout},get transition(){return de.transition},get class(){return de.class},get clicks(){return de.clicks},get name(){return de.name},get preload(){return de.preload},slide:{content:"",revision:"eu4fr8",frontmatterRaw:`layout: center
68`,note:"",index:54,noteHTML:"",raw:"",frontmatter:de,filepath:"",start:1107,id:54,no:55},__clicksContext:null,__preloaded:!1}),mc={layout:"center"},he=b(mc),gc=M({get layout(){return he.layout},get transition(){return he.transition},get class(){return he.class},get clicks(){return he.clicks},get name(){return he.name},get preload(){return he.preload},slide:{content:"",revision:"-vb6488",frontmatterRaw:`layout: center
69`,note:"",index:55,noteHTML:"",raw:"",frontmatter:he,filepath:"",start:1113,id:55,no:56},__clicksContext:null,__preloaded:!1}),yc={layout:"center"},pe=b(yc),_c=M({get layout(){return pe.layout},get transition(){return pe.transition},get class(){return pe.class},get clicks(){return pe.clicks},get name(){return pe.name},get preload(){return pe.preload},slide:{content:"",revision:"ggtsd0",frontmatterRaw:`layout: center
70`,note:"",index:56,noteHTML:"",raw:"",frontmatter:pe,filepath:"",start:1119,id:56,no:57},__clicksContext:null,__preloaded:!1}),vc={layout:"center"},me=b(vc),wc=M({get layout(){return me.layout},get transition(){return me.transition},get class(){return me.class},get clicks(){return me.clicks},get name(){return me.name},get preload(){return me.preload},slide:{content:"",revision:"-vb6488",frontmatterRaw:`layout: center
71`,note:"",index:57,noteHTML:"",raw:"",frontmatter:me,filepath:"",start:1125,id:57,no:58},__clicksContext:null,__preloaded:!1}),kc={layout:"center"},ge=b(kc),bc=M({get layout(){return ge.layout},get transition(){return ge.transition},get class(){return ge.class},get clicks(){return ge.clicks},get name(){return ge.name},get preload(){return ge.preload},slide:{content:"",revision:"uyg525",frontmatterRaw:`layout: center
72`,note:"",title:"Key References",level:1,index:58,noteHTML:`<p>
72paper's which did it already , comparing muon loss with others</p>
73`,raw:"",frontmatter:ge,filepath:"",start:1131,id:58,no:59},__clicksContext:null,__preloaded:!1}),E=new Array(59),T=(e,t)=>Yo({loader:t,delay:300,loadingComponent:di,errorComponent:$,onError:n=>console.error("Failed to load slide "+(e+1),n)}),Cr=async()=>{try{return E[0]??=await k(()=>import("./md-8XMp8JYt.js"),__vite__mapDeps([0,1,2,3,4,5,6]))}catch(e){return console.error("slide failed to load",e),$}},Ar=async()=>{try{return E[1]??=await k(()=>import("./md-BK-jOdZ6.js"),__vite__mapDeps([7,8,2,3,9,10,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Rr=async()=>{try{return E[2]??=await k(()=>import("./md-DHdBgb6e.js"),__vite__mapDeps([11,9,2,3,10,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Dr=async()=>{try{return E[3]??=await k(()=>import("./md-CM4RB4Lb.js"),__vite__mapDeps([12,2,10,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},xr=async()=>{try{return E[4]??=await k(()=>import("./md-CLpBHUhk.js"),__vite__mapDeps([13,9,2,3,10,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Ir=async()=>{try{return E[5]??=await k(()=>import("./md-De27iqyQ.js"),__vite__mapDeps([14,2,10,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Nr=async()=>{try{return E[6]??=await k(()=>import("./md-DgtsZK1x.js"),__vite__mapDeps([15,2,16,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Hr=async()=>{try{return E[7]??=await k(()=>import("./md-CZbvaa4T.js"),__vite__mapDeps([17,2,10,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},jr=async()=>{try{return E[8]??=await k(()=>import("./md-Cknv9hjI.js"),__vite__mapDeps([18,2,16,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Vr=async()=>{try{return E[9]??=await k(()=>import("./md-CImYWVRe.js"),__vite__mapDeps([19,2,16,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Fr=async()=>{try{return E[10]??=await k(()=>import("./md-VT00otjJ.js"),__vite__mapDeps([20,9,2,3,16,4,5]))}catch(e){return console.error("slide failed to load",e),$}},zr=async()=>{try{return E[11]??=await k(()=>import("./md-gtt3Apcg.js"),__vite__mapDeps([21,2,16,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Wr=async()=>{try{return E[12]??=await k(()=>import("./md-DNybdnoN.js"),__vite__mapDeps([22,9,2,3,16,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Br=async()=>{try{return E[13]??=await k(()=>import("./md-D-GV4ABn.js"),__vite__mapDeps([23,9,2,3,16,4,5]))}catch(e){return console.error("slide failed to load",e),$}},qr=async()=>{try{return E[14]??=await k(()=>import("./md-DFnMRXb-.js"),__vite__mapDeps([24,2,10,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Ur=async()=>{try{return E[15]??=await k(()=>import("./md-DO86UYv0.js"),__vite__mapDeps([25,2,16,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Gr=async()=>{try{return E[16]??=await k(()=>import("./md-Bbif5KbO.js"),__vite__mapDeps([26,2,16,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Jr=async()=>{try{return E[17]??=await k(()=>import("./md-HVlwdQ8m.js"),__vite__mapDeps([27,2,10,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Kr=async()=>{try{return E[18]??=await k(()=>import("./md-DFQr4LZp.js"),__vite__mapDeps([28,2,16,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Qr=async()=>{try{return E[19]??=await k(()=>import("./md-CLLGHK8l.js"),__vite__mapDeps([29,2,16,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Zr=async()=>{try{return E[20]??=await k(()=>import("./md-C_0NbTVE.js"),__vite__mapDeps([30,2,16,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Yr=async()=>{try{return E[21]??=await k(()=>import("./md-VjSfdh3x.js"),__vite__mapDeps([31,2,16,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Xr=async()=>{try{return E[22]??=await k(()=>import("./md-DL6_j53X.js"),__vite__mapDeps([32,2,16,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},ts=async()=>{try{return E[23]??=await k(()=>import("./md-dv-V8Vde.js"),__vite__mapDeps([33,2,16,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},es=async()=>{try{return E[24]??=await k(()=>import("./md-CVb2vsCu.js"),__vite__mapDeps([34,2,10,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},ns=async()=>{try{return E[25]??=await k(()=>import("./md-Cg54fJEf.js"),__vite__mapDeps([35,2,36,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},rs=async()=>{try{return E[26]??=await k(()=>import("./md-CFADmcEo.js"),__vite__mapDeps([37,2,16,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},ss=async()=>{try{return E[27]??=await k(()=>import("./md-DpLUnTB-.js"),__vite__mapDeps([38,2,10,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},os=async()=>{try{return E[28]??=await k(()=>import("./md-BPaTFs8d.js"),__vite__mapDeps([39,2,10,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},as=async()=>{try{return E[29]??=await k(()=>import("./md-BrIsJNmb.js"),__vite__mapDeps([40,8,2,3,10,4,5]))}catch(e){return console.error("slide failed to load",e),$}},is=async()=>{try{return E[30]??=await k(()=>import("./md-S5u8XjeX.js"),__vite__mapDeps([41,8,2,3,10,4,5]))}catch(e){return console.error("slide failed to load",e),$}},ls=async()=>{try{return E[31]??=await k(()=>import("./md-DWfAg8GA.js"),__vite__mapDeps([42,2,36,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},cs=async()=>{try{return E[32]??=await k(()=>import("./md-BUJNBuY6.js"),__vite__mapDeps([43,8,2,3,36,4,5]))}catch(e){return console.error("slide failed to load",e),$}},us=async()=>{try{return E[33]??=await k(()=>import("./md-B6t4j-4Y.js"),__vite__mapDeps([44,9,2,3,36,4,5]))}catch(e){return console.error("slide failed to load",e),$}},fs=async()=>{try{return E[34]??=await k(()=>import("./md-D4W-oHW3.js"),__vite__mapDeps([45,9,2,3,36,4,5]))}catch(e){return console.error("slide failed to load",e),$}},ds=async()=>
73{try{return E[35]??=await k(()=>import("./md-BcQ1VNJA.js"),__vite__mapDeps([46,9,2,3,10,4,5]))}catch(e){return console.error("slide failed to load",e),$}},hs=async()=>{try{return E[36]??=await k(()=>import("./md-jawTtyH6.js"),__vite__mapDeps([47,2,10,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},ps=async()=>{try{return E[37]??=await k(()=>import("./md-BaCJ2E-P.js"),__vite__mapDeps([48,2,10,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},ms=async()=>{try{return E[38]??=await k(()=>import("./md-IloVaCkN.js"),__vite__mapDeps([49,8,2,3,10,4,5]))}catch(e){return console.error("slide failed to load",e),$}},gs=async()=>{try{return E[39]??=await k(()=>import("./md-uNVy1AM9.js"),__vite__mapDeps([50,8,2,3,10,4,5]))}catch(e){return console.error("slide failed to load",e),$}},ys=async()=>{try{return E[40]??=await k(()=>import("./md-Bawscw5T.js"),__vite__mapDeps([51,2,10,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},_s=async()=>{try{return E[41]??=await k(()=>import("./md-DiqUoNN8.js"),__vite__mapDeps([52,2,10,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},vs=async()=>{try{return E[42]??=await k(()=>import("./md-Chqm075_.js"),__vite__mapDeps([53,2,10,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},ws=async()=>{try{return E[43]??=await k(()=>import("./md-Bll-f_tp.js"),__vite__mapDeps([54,2,10,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},ks=async()=>{try{return E[44]??=await k(()=>import("./slidev/md-BowgY5X4.js"),__vite__mapDeps([55,1,2,3,10,4,5]))}catch(e){return console.error("slide failed to load",e),$}},bs=async()=>{try{return E[45]??=await k(()=>import("./md-CFH_slFC.js"),__vite__mapDeps([56,9,2,3,10,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Ss=async()=>{try{return E[46]??=await k(()=>import("./md-DJd0roGN.js"),__vite__mapDeps([57,8,2,3,10,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Ms=async()=>{try{return E[47]??=await k(()=>import("./md-Cwar1cMS.js"),__vite__mapDeps([58,9,2,3,10,4,5]))}catch(e){return console.error("slide failed to load",e),$}},$s=async()=>{try{return E[48]??=await k(()=>import("./md-ClnzVoa6.js"),__vite__mapDeps([59,9,2,3,10,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Ts=async()=>{try{return E[49]??=await k(()=>import("./md-B6rYbT79.js"),__vite__mapDeps([60,8,2,3,10,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Es=async()=>{try{return E[50]??=await k(()=>import("./md-1GA_35gy.js"),__vite__mapDeps([61,9,2,3,10,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Os=async()=>{try{return E[51]??=await k(()=>import("./md-DpyFNXic.js"),__vite__mapDeps([62,2,10,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Ls=async()=>{try{return E[52]??=await k(()=>import("./md-Dj1v6SL8.js"),__vite__mapDeps([63,2,10,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Ps=async()=>{try{return E[53]??=await k(()=>import("./md-6Bg1H1xi.js"),__vite__mapDeps([64,2,10,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Cs=async()=>{try{return E[54]??=await k(()=>import("./md-D6sMzfh_.js"),__vite__mapDeps([65,2,10,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},As=async()=>{try{return E[55]??=await k(()=>import("./md-D3RURGxD.js"),__vite__mapDeps([66,2,67,10,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Rs=async()=>{try{return E[56]??=await k(()=>import("./md-DHspzE2g.js"),__vite__mapDeps([68,2,10,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Ds=async()=>{try{return E[57]??=await k(()=>import("./md-BsMGr9DM.js"),__vite__mapDeps([69,2,67,10,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},xs=async()=>{try{return E[58]??=await k(()=>import("./md-CNvFguw3.js"),__vite__mapDeps([70,2,10,3,4,5]))}catch(e){return console.error("slide failed to load",e),$}},Sc=[{no:1,meta:pi,load:Cr,component:T(0,Cr)},{no:2,meta:gi,load:Ar,component:T(1,Ar)},{no:3,meta:_i,load:Rr,component:T(2,Rr)},{no:4,meta:wi,load:Dr,component:T(3,Dr)},{no:5,meta:bi,load:xr,component:T(4,xr)},{no:6,meta:Mi,load:Ir,component:T(5,Ir)},{no:7,meta:Ti,load:Nr,component:T(6,Nr)},{no:8,meta:Oi,load:Hr,component:T(7,Hr)},{no:9,meta:Pi,load:jr,component:T(8,jr)},{no:10,meta:Ai,load:Vr,component:T(9,Vr)},{no:11,meta:Di,load:Fr,component:T(10,Fr)},{no:12,meta:Ii,load:zr,component:T(11,zr)},{no:13,meta:Hi,load:Wr,component:T(12,Wr)},{no:14,meta:Vi,load:Br,component:T(13,Br)},{no:15,meta:zi,load:qr,component:T(14,qr)},{no:16,meta:Bi,load:Ur,component:T(15,Ur)},{no:17,meta:Ui,load:Gr,component:T(16,Gr)},{no:18,meta:Ji,load:Jr,component:T(17,Jr)},{no:19,meta:Qi,load:Kr,component:T(18,Kr)},{no:20,meta:Yi,load:Qr,component:T(19,Qr)},{no:21,meta:tl,load:Zr,component:T(20,Zr)},{no:22,meta:nl,load:Yr,component:T(21,Yr)},{no:23,meta:sl,load:Xr,component:T(22,Xr)},{no:24,meta:al,load:ts,component:T(23,ts)},{no:25,meta:ll,load:es,component:T(24,es)},{no:26,meta:ul,load:ns,component:T(25,ns)},{no:27,meta:dl,load:rs,component:T(26,rs)},{no:28,meta:pl,load:ss,component:T(27,ss)},{no:29,meta:gl,load:os,component:T(28,os)},{no:30,meta:_l,load:as,component:T(29,as)},{no:31,meta:wl,load:is,component:T(30,is)},{no:32,meta:bl,load:ls,component:T(31,ls)},{no:33,meta:Ml,load:cs,component:T(32,cs)},{no:34,meta:Tl,load:us,component:T(33,us)},{no:35,meta:Ol,load:fs,component:T(34,fs)},{no:36,meta:Pl,load:ds,component:T(35,ds)},{no:37,meta:Al,load:hs,component:T(36,hs)},{no:38,meta:Dl,load:ps,component:T(37,ps)},{no:39,meta:Il,load:ms,component:T(38,ms)},{no:40,meta:Hl,load:gs,component:T(39,gs)},{no:41,meta:Vl,load:ys,component:T(40,ys)},{no:42,meta:zl,load:_s,component:T(41,_s)},{no:43,meta:Bl,load:vs,component:T(42,vs)},{no:44,meta:Ul,load:ws,component:T(43,ws)},{no:45,meta:Jl,load:ks,component:T(44,ks)},{no:46,meta:Ql,load:bs,component:T(45,bs)},{no:47,meta:Yl,load:Ss,component:T(46,Ss)},{no:48,meta:tc,load:Ms,component:T(47,Ms)},{no:49,meta:nc,load:$s,component:T(48,$s)},{no:50,meta:sc,load:Ts,component:T(49,Ts)},{no:51,meta:ac,load:Es,component:T(50,Es)},{no:52,meta:lc,load:Os,component:T(51,Os)},{no:53,meta:uc,load:Ls,component:T(52,Ls)},{no:54,meta:dc,load:Ps,component:T(53,Ps)},{no:55,meta:pc,load:Cs,component:T(54,Cs)},{no:56,meta:gc,load:As,component:T(55,As)},{no:57,meta:_c,load:Rs,component:T(56,Rs)},{no:58,meta:wc,load:Ds,component:T(57,Ds)},{no:59,meta:bc,load:xs,component:T(58,xs)}],rt=or(Sc);function Pf(e){if(typeof e=="number")return{seconds:e,relative:!1};const t=e.startsWith("+");t&&(e=e.slice(1));let n=0;if(e.includes(":")){const r=e.split(":").map(Number);let s=0,o=0,a=0;if(r.length===3)s=r[0],o=r[1],a=r[2];else if(r.length===2)o=r[0],a=r[1];else if(r.length===1)a=r[0];else throw new TypeError("Invalid timestamp format");if(Number.isNaN(s)||Number.isNaN(o)||Number.isNaN(a))throw new TypeError("Invalid timestamp format");n=(s||0)*3600+(o||0)*60+(a||0)}else if(!e.match(/[a-z]/i))n=Number(e);else{const r={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},s=/([\d.]+)([a-z]+)/gi,o=e.matchAll(s);if(o)for(const i of o){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 r))throw new TypeError(`Invalid timestamp unit: ${c}`);n+=l*r[c]}const a=e.replace(s,"").trim();if(a)throw new TypeError(`Unknown timestamp remaining: ${a}`)}return{seconds:n,relative:t}}function uo(e,t){if(!t||t==="all"||t==="*")return Sr(1,e+1);if(t==="none")return[];const n=[];for(const r of t.split(/[,;]/g))if(!r.includes("-"))n.push(+r);else{const[s,o]=r.split("-",2);n.push(...Sr(+s,o?+o+1:e+1))}return Ma(n).filter(r=>r<=e).sort((r,s)=>r-s)}const kn="$$slidev-clicks-context",ar="$$slidev-page",fo="$$slidev-slide-element",Mc="$$slidev-slide-scale",$c="$$slidev-context",Cf="$$slidev-route",ir="$$
73slidev-render-context",Tc="$$slidev-fontmatter",Ec="$$slidev-slide-zoom",en="slidev-vclick-target",xe="slidev-vclick-hidden",Ie="slidev-vclick-fade",Cn="slidev-vclick-hidden-explicitly",An="slidev-vclick-current",Rn="slidev-vclick-prior",nn=999999,Oc=["localhost","127.0.0.1"],Lc=["clicks","clicksStart","disabled","hide","hideInToc","layout","level","preload","routeAlias","src","title","transition","zoom","dragPos","lang"],Af=[...Lc,"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","contextMenu","wakeLock","seoMeta","notesAutoRuby","magicMoveDuration"];function Pc(e,t,{mode:n="replace"}={}){const r=vn();return S({get(){const s=r.currentRoute.value.query[e];return s==null?t:Array.isArray(s)?s.filter(Boolean):s},set(s){Xo(()=>{(r.currentRoute.value.query[e]??t?.toString())!==s.toString()&&r[ta(n)]({query:{...r.currentRoute.value.query,[e]:`${s}`===t?void 0:s}})})}})}function bn(e){return rt.value.find(t=>t.no===+e||t.meta.slide?.frontmatter.routeAlias===e)}function Te(e,t,n=!1){(typeof e=="number"||typeof e=="string")&&(e=bn(e));const r=e.meta.slide?.frontmatter.routeAlias??e.no;return n?`/export/${r}`:t?`/presenter/${r}`:`/${r}`}const Cc={"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 Ac(e,t=!1){if(!e||(typeof e=="string"&&(e={name:e}),!e.name))return;let n=e.name.includes("|")?e.name:Cc[e.name]||e.name;if(n.includes("|")){const[r,s]=n.split("|").map(o=>o.trim());n=t?s:r}if(n)return{...e,name:n}}function Rc(e,t,n){let r=e>0?n?.meta?.transition:t?.meta?.transition;return r||(r=N.transition||void 0),Ac(r,e<0)}const Rf=C(!1),Df=C(!1),xf=C(!1),Dc=C(!1),lr=C(!1),If=C(!1),Nf=C(!0),xc=b(new Set),Hf=S(()=>xc.size>0),jf=oa({xs:460,...aa}),fn=na(),Vf=ea(),Ff=S(()=>fn.height.value-fn.width.value/ro.value>120),zf=ra(wn?document.body:null),ho=sa(),Wf=S(()=>["INPUT","TEXTAREA"].includes(ho.value?.tagName||"")),Bf=S(()=>["BUTTON","A"].includes(ho.value?.tagName||""));B("slidev-camera","default",{listenToStorageChanges:!1});B("slidev-mic","default",{listenToStorageChanges:!1});const Ic=B("slidev-scale",0),qf=B("slidev-wake-lock",!0),Uf=B("slidev-hide-cursor-idle",!0);B("slidev-skip-export-pdf-tip",!1);B("slidev-export-capture-delay",400,{listenToStorageChanges:!1});const Gf=B("slidev-presenter-cursor",!0,{listenToStorageChanges:!1}),Nc=B("slidev-show-editor",!1,{listenToStorageChanges:!1}),Hc=B("slidev-editor-vertical",!1,{listenToStorageChanges:!1}),jc=B("slidev-editor-width",wn?window.innerWidth*.4:318,{listenToStorageChanges:!1}),Vc=B("slidev-editor-height",wn?window.innerHeight*.4:300,{listenToStorageChanges:!1}),Ge=or(null),dn=B("slidev-presenter-font-size",1,{listenToStorageChanges:!1}),Je=B("slidev-presenter-layout",1,{listenToStorageChanges:!1}),Jn={invert:!1,contrast:1,brightness:1,hueRotate:0,saturate:1,sepia:0},Fc=B("slidev-viewer-css-filter",Jn,{listenToStorageChanges:!1,mergeDefaults:!0,deep:!0}),Jf=S(()=>Object.keys(Jn).some(e=>Fc.value[e]!==Jn[e]));function Kf(){Je.value=Je.value+1,Je.value>3&&(Je.value=1)}function Qf(){dn.value=Math.min(2,dn.value+.1)}function Zf(){dn.value=Math.max(.5,dn.value-.1)}const Yf=to(Dc),Ke=B("slidev-sync-directions",{viewerSend:!0,viewerReceive:!0,presenterSend:!0,presenterReceive:!0},{listenToStorageChanges:!1,mergeDefaults:!0});function po(e,t,n=1){const r=t.meta.slide.level??n;r&&r>n&&e.length>0?po(e[e.length-1].children,t,n+1):e.push({no:t.no,children:[],level:n,titleLevel:r,path:Te(t.meta.slide?.frontmatter?.routeAlias??t.no,!1),hideInToc:!!t.meta?.slide?.frontmatter?.hideInToc,title:t.meta?.slide?.title})}function mo(e,t,n=!1,r,s){return e.map(o=>{const a={...o,active:o.no===s?.value,hasActiveParent:n};return a.children.length>0&&(a.children=mo(a.children,t,a.active||a.hasActiveParent,a,s)),r&&(a.active||a.activeParent)&&(r.activeParent=!0),a})}function go(e,t=1){return e.filter(n=>!n.hideInToc).map(n=>({...n,children:go(n.children,t+1)}))}
73function zc(e,t,n){const r=S(()=>e.value.filter(o=>o.meta?.slide?.title).reduce((o,a)=>(po(o,a),o),[])),s=S(()=>mo(r.value,n.value,void 0,void 0,t));return S(()=>go(s.value))}function Wc(e,t,n=C(0),r,s,o){const a=S(()=>rt.value.length),i=C(0),l=C(0),c=S(()=>Te(e.value,r.value)),f=S(()=>e.value.no),h=S(()=>e.value.meta?.layout||(f.value===1?"cover":"default")),d=S(()=>t.value.current),u=S(()=>t.value.clicksStart),m=S(()=>t.value.total),p=S(()=>rt.value[Math.min(rt.value.length,f.value+1)-1]),g=S(()=>rt.value[Math.max(1,f.value-1)-1]),y=S(()=>f.value<rt.value.length||d.value<m.value),_=S(()=>f.value>1||d.value>0),v=S(()=>s.value?void 0:Rc(i.value,e.value,g.value));tt(e,(j,x)=>{i.value=j.no-x.no});async function w(j){return!1}const O=zc(rt,f,e);async function A(){l.value=1,m.value<=n.value?await F():n.value+=1}async function D(){l.value=-1,n.value<=u.value?await U(!0):n.value-=1}async function F(j=!1){l.value=1,f.value<rt.value.length&&await P(f.value+1,j&&!s.value?nn:void 0)}async function U(j=!1){l.value=-1,f.value>1&&await P(f.value-1,j&&!s.value?nn:void 0)}function lt(){return P(1)}function Y(){return P(a.value)}async function P(j,x=0,at=!1){lr.value=!1;const ct=f.value!==j,Re=x!==n.value,K=bn(j)?.meta,H=K?.slide?.frontmatter.clicksStart??0;x=Bn(x,H,K?.__clicksContext?.total??nn),(at||ct||Re)&&await o?.push({path:Te(j,r.value,o.currentRoute.value.name==="export"),query:{...o.currentRoute.value.query,clicks:x===0?void 0:x.toString(),embedded:location.search.includes("embedded")?"true":void 0}})}function R(){o?.push({path:Te(f.value,!0),query:{...o.currentRoute.value.query}})}function z(){o?.push({path:Te(f.value,!1),query:{...o.currentRoute.value.query}})}return{slides:rt,total:a,currentPath:c,currentSlideNo:f,currentPage:f,currentSlideRoute:e,currentLayout:h,currentTransition:v,clicksDirection:l,nextRoute:p,prevRoute:g,clicksContext:t,clicks:d,clicksStart:u,clicksTotal:m,hasNext:y,hasPrev:_,tocTree:O,navDirection:i,openInEditor:w,next:A,prev:D,go:P,goLast:Y,goFirst:lt,nextSlide:F,prevSlide:U,enterPresenter:R,exitPresenter:z}}const Bc=eo(()=>{const e=vn(),t=ia(),n=S(()=>(e?.currentRoute?.value?.query,new URLSearchParams(location.search))),r=S(()=>n.value.has("print")||t.name==="export"),s=C(n.value.get("print")==="clicks"),o=S(()=>n.value.has("embedded")),a=S(()=>t.name==="play"),i=S(()=>t.name==="presenter"),l=S(()=>t.name==="notes"),c=S(()=>!i.value&&(!N.remote||n.value.get("password")===N.remote)),f=S(()=>!!t.params.no),h=S(()=>f.value?bn(t.params.no)?.no??1:1),d=S(()=>rt.value[h.value-1]),u=C(uo(rt.value.length,t?.query?.range)),m=Pc("clicks","0"),p=S(()=>y(d.value)),g=S({get(){let _=+(m.value||0);return Number.isNaN(_)&&(_=0),_},set(_){lr.value=!1,m.value=_.toString()}});function y(_){if(_?.meta?.__clicksContext)return _.meta.__clicksContext;const v=_.no,w=co(S({get(){return h.value===v?Math.max(+(m.value??0),w.clicksStart):h.value>v?nn:w.clicksStart},set(O){h.value===v&&(m.value=O.toString())}}),_?.meta.slide?.frontmatter.clicksStart??0,_?.meta.clicks);return _?.meta&&(_.meta.__clicksContext=w),w}return{router:e,currentRoute:S(()=>t),isPrintMode:r,isPrintWithClicks:s,isEmbedded:o,isPlaying:a,isPresenter:i,isNotesViewer:l,isPresenterAvailable:c,hasPrimarySlide:f,currentSlideNo:h,currentSlideRoute:d,clicksContext:p,queryClicksRaw:m,queryClicks:g,printRange:u,getPrimaryClicks:y}}),Ae=eo(()=>{const e=Bc(),t=vn(),n=Wc(e.currentSlideRoute,e.clicksContext,e.queryClicks,e.isPresenter,e.isPrintMode,t);return tt([n.total,e.currentRoute],async()=>{const r=e.currentRoute.value.params.no;e.hasPrimarySlide.value&&!bn(r)&&(r&&r!=="index.html"?await n.go(n.total.value,0,!0):await n.go(1,0,!0))},{flush:"pre",immediate:!0}),{...n,...e}}),Is=la(),Dn=B("slidev-color-schema","auto"),Ns=S(()=>N.colorSchema!=="auto"),yo=S({get(){return Ns.value?N.colorSchema==="dark":Dn.value==="auto"?Is.value:Dn.value==="dark"},set(e){Ns.value||(Dn.value=e===Is.value?"auto":e?"dark":"light")}}),Xf=to(yo);if(wn){const e="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";tt(yo,t=>{const n=window.document.createElement("style");n.appendChild(document.createTextNode(e)),window.document.head.appendChild(n);const r=document.querySelector("html");r.classList.toggle("dark",t),r.classList.toggle("light",!t),window.getComputedStyle(n).opacity,document.head.removeChild(n)},{immediate:!0})}function qc(){const{isPrintMode:e}=Ae();ca(S(()=>e.value?`
74@page {
75  size: ${so.value}px ${Ea.value}px;
76  margin: 0px;
77}
78
79* {
80  transition: none !important;
81  transition-duration: 0s !important;
82}`:""))}const cr=Symbol.for("yaml.alias"),Uc=Symbol.for("yaml.document"),we=Symbol.for("yaml.map"),_o=Symbol.for("yaml.pair"),ur=Symbol.for("yaml.scalar"),Be=Symbol.for("yaml.seq"),ot=Symbol.for("yaml.node.type"),ke=e=>!!e&&typeof e=="object"&&e[ot]===cr,Sn=e=>!!e&&typeof e=="object"&&e[ot]===Uc,vo=e=>!!e&&typeof e=="object"&&e[ot]===we,W=e=>!!e&&typeof e=="object"&&e[ot]===_o,V=e=>!!e&&typeof e=="object"&&e[ot]===ur,fr=e=>!!e&&typeof e=="object"&&e[ot]===Be;function Z(e){if(e&&typeof e=="object")switch(e[ot]){case we:case Be:return!0}return!1}function q(e){if(e&&typeof e=="object")switch(e[ot]){case cr:case we:case ur:case Be:return!0}return!1}const wo=e=>(V(e)||Z(e))&&!!e.anchor,ye=Symbol("break visit"),Gc=Symbol("skip children"),Ve=Symbol("remove node");function Mn(e,t){const n=Jc(t);Sn(e)?Ee(null,e.contents,n,Object.freeze([e]))===Ve&&(e.contents=null):Ee(null,e,n,Object.freeze([]))}Mn.BREAK=ye;Mn.SKIP=Gc;Mn.REMOVE=Ve;function Ee(e,t,n,r){const s=Kc(e,t,n,r);if(q(s)||W(s))return Qc(e,r,s),Ee(e,s,n,r);if(typeof s!="symbol"){if(Z(t)){r=Object.freeze(r.concat(t));for(let o=0;o<t.items.length;++o){const a=Ee(o,t.items[o],n,r);if(typeof a=="number")o=a-1;else{if(a===ye)return ye;a===Ve&&(t.items.splice(o,1),o-=1)}}}
82else if(W(t)){r=Object.freeze(r.concat(t));const o=Ee("key",t.key,n,r);if(o===ye)return ye;o===Ve&&(t.key=null);const a=Ee("value",t.value,n,r);if(a===ye)return ye;a===Ve&&(t.value=null)}}return s}function Jc(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Kc(e,t,n,r){if(typeof n=="function")return n(e,t,r);if(vo(t))return n.Map?.(e,t,r);if(fr(t))return n.Seq?.(e,t,r);if(W(t))return n.Pair?.(e,t,r);if(V(t))return n.Scalar?.(e,t,r);if(ke(t))return n.Alias?.(e,t,r)}function Qc(e,t,n){const r=t[t.length-1];if(Z(r))r.items[e]=n;else if(W(r))e==="key"?r.key=n:r.value=n;else if(Sn(r))r.contents=n;else{const s=ke(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${s} parent`)}}function ko(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function je(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let s=0,o=r.length;s<o;++s){const a=r[s],i=je(e,r,String(s),a);i===void 0?delete r[s]:i!==a&&(r[s]=i)}else if(r instanceof Map)for(const s of Array.from(r.keys())){const o=r.get(s),a=je(e,r,s,o);a===void 0?r.delete(s):a!==o&&r.set(s,a)}else if(r instanceof Set)for(const s of Array.from(r)){const o=je(e,r,s,s);o===void 0?r.delete(s):o!==s&&(r.delete(s),r.add(o))}else for(const[s,o]of Object.entries(r)){const a=je(e,r,s,o);a===void 0?delete r[s]:a!==o&&(r[s]=a)}return e.call(t,n,r)}function st(e,t,n){if(Array.isArray(e))return e.map((r,s)=>st(r,String(s),n));if(e&&typeof e.toJSON=="function"){if(!n||!wo(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=o=>{r.res=o,delete n.onCreate};const s=e.toJSON(t,n);return n.onCreate&&n.onCreate(s),s}return typeof e=="bigint"&&!n?.keep?Number(e):e}class dr{constructor(t){Object.defineProperty(this,ot,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:s,reviver:o}={}){if(!Sn(t))throw new TypeError("A document argument is required");const a={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},i=st(this,"",a);if(typeof s=="function")for(const{count:l,res:c}of a.anchors.values())s(c,l);return typeof o=="function"?je(o,{"":i},"",i):i}}class Zc extends dr{constructor(t){super(cr),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,n){let r;n?.aliasResolveCache?r=n.aliasResolveCache:(r=[],Mn(t,{Node:(o,a)=>{(ke(a)||wo(a))&&r.push(a)}}),n&&(n.aliasResolveCache=r));let s;for(const o of r){if(o===this)break;o.anchor===this.source&&(s=o)}return s}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:s,maxAliasCount:o}=n,a=this.resolve(s,n);if(!a){const l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let i=r.get(a);if(i||(st(a,null,n),i=r.get(a)),!i||i.res===void 0){const l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(o>=0&&(i.count+=1,i.aliasCount===0&&(i.aliasCount=rn(s,a,r)),i.count*i.aliasCount>
82o)){const l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return i.res}toString(t,n,r){const s=`*${this.source}`;if(t){if(ko(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const o=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(o)}if(t.implicitKey)return`${s} `}return s}}function rn(e,t,n){if(ke(t)){const r=t.resolve(e),s=n&&r&&n.get(r);return s?s.count*s.aliasCount:0}else if(Z(t)){let r=0;for(const s of t.items){const o=rn(e,s,n);o>r&&(r=o)}return r}else if(W(t)){const r=rn(e,t.key,n),s=rn(e,t.value,n);return Math.max(r,s)}return 1}const bo=e=>!e||typeof e!="function"&&typeof e!="object";class I extends dr{constructor(t){super(ur),this.value=t}toJSON(t,n){return n?.keep?this.value:st(this.value,t,n)}toString(){return String(this.value)}}I.BLOCK_FOLDED="BLOCK_FOLDED";I.BLOCK_LITERAL="BLOCK_LITERAL";I.PLAIN="PLAIN";I.QUOTE_DOUBLE="QUOTE_DOUBLE";I.QUOTE_SINGLE="QUOTE_SINGLE";function Yc(e,t,n){return n.find(r=>r.identify?.(e)&&!r.format)}function hn(e,t,n){if(Sn(e)&&(e=e.contents),q(e))return e;
82if(W(e)){const h=n.schema[we].createNode?.(n.schema,null,n);return h.items.push(e),h}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:s,onTagObj:o,schema:a,sourceObjects:i}=n;let l;if(r&&e&&typeof e=="object"){if(l=i.get(e),l)return l.anchor??(l.anchor=s(e)),new Zc(l.anchor);l={anchor:null,node:null},i.set(e,l)}let c=Yc(e,t,a.tags);if(!c){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const h=new I(e);return l&&(l.node=h),h}c=e instanceof Map?a[we]:Symbol.iterator in Object(e)?a[Be]:a[we]}o&&(o(c),delete n.onTagObj);const f=c?.createNode?c.createNode(n.schema,e,n):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(n.schema,e,n):new I(e);return c.default||(f.tag=c.tag),l&&(l.node=f),f}function Hs(e,t,n){let r=n;for(let s=t.length-1;s>=0;--s){const o=t[s];if(typeof o=="number"&&Number.isInteger(o)&&o>=0){const a=[];a[o]=r,r=a}else r=new Map([[o,r]])}return hn(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const Xc=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class So extends dr{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>q(r)||W(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Xc(t))this.add(n);else{const[r,...s]=t,o=this.get(r,!0);if(Z(o))o.addIn(s,n);else if(o===void 0&&this.schema)this.set(r,Hs(this.schema,s,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const s=this.get(n,!0);if(Z(s))return s.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...s]=t,o=this.get(r,!0);return s.length===0?!n&&V(o)?o.value:o:Z(o)?o.getIn(s,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!W(n))return!1;const r=n.value;return r==null||t&&V(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const s=this.get(n,!0);return Z(s)?s.hasIn(r):!1}setIn(t,n){const[r,...s]=t;if(s.length===0)this.set(r,n);else{const o=this.get(r,!0);if(Z(o))o.setIn(s,n);else if(o===void 0&&this.schema)this.set(r,Hs(this.schema,s,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}}const tu=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function We(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const Oe=(e,t,n)=>e.endsWith(`
83`)?We(n,t):n.includes(`
84`)?`
85`+We(n,t):(e.endsWith(" ")?"":" ")+n,Mo="flow",Kn="block",sn="quoted";function $n(e,t,n="flow",{indentAtStart:r,lineWidth:s=80,minContentWidth:o=20,onFold:a,onOverflow:i}={}){if(!s||s<0)return e;s<o&&(o=0);const l=Math.max(1+o,1+s-t.length);if(e.length<=l)return e;const c=[],f={};let h=s-t.length;typeof r=="number"&&(r>s-Math.max(2,o)?c.push(0):h=s-r);let d,u,m=!1,p=-1,g=-1,y=-1;n===Kn&&(p=js(e,p,t.length),p!==-1&&(h=p+l));for(let v;v=e[p+=1];){if(n===sn&&v==="\\"){switch(g=p,e[p+1]){case"x":p+=3;break;case"u":p+=5;break;case"U":p+=9;break;default:p+=1}y=p}if(v===`
86`)n===Kn&&(p=js(e,p,t.length)),h=p+t.length+l,d=void 0;else{if(v===" "&&u&&u!==" "&&u!==`
87`&&u!=="	"){const w=e[p+1];w&&w!==" "&&w!==`
88`&&w!=="	"&&(d=p)}if(p>=h)if(d)c.push(d),h=d+l,d=void 0;else if(n===sn){for(;u===" "||u==="	";)u=v,v=e[p+=1],m=!0;const w=p>y+1?p-2:g-1;if(f[w])return e;c.push(w),f[w]=!0,h=w+l,d=void 0}else m=!0}u=v}if(m&&i&&i(),c.length===0)return e;a&&a();let _=e.slice(0,c[0]);for(let v=0;v<c.length;++v){const w=c[v],O=c[v+1]||e.length;w===0?_=`
89${t}${e.slice(0,O)}`:(n===sn&&f[w]&&(_+=`${e[w]}\\`),_+=`
90${t}${e.slice(w+1,O)}`)}return _}function js(e,t,n){let r=t,s=t+1,o=e[s];for(;o===" "||o==="	";)if(t<s+n)o=e[++t];else{do o=e[++t];while(o&&o!==`
91`);r=t,s=t+1,o=e[s]}return r}const Tn=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}
91),En=e=>/^(%|---|\.\.\.)/m.test(e);function eu(e,t,n){if(!t||t<0)return!1;const r=t-n,s=e.length;if(s<=r)return!1;for(let o=0,a=0;o<s;++o)if(e[o]===`
92`){if(o-a>r)return!0;if(a=o+1,s-a<=r)return!1}return!0}function Fe(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,s=t.options.doubleQuotedMinMultiLineLength,o=t.indent||(En(e)?"  ":"");let a="",i=0;for(let l=0,c=n[l];c;c=n[++l])if(c===" "&&n[l+1]==="\\"&&n[l+2]==="n"&&(a+=n.slice(i,l)+"\\ ",l+=1,i=l,c="\\"),c==="\\")switch(n[l+1]){case"u":{a+=n.slice(i,l);const f=n.substr(l+2,4);switch(f){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:f.substr(0,2)==="00"?a+="\\x"+f.substr(2):a+=n.substr(l,6)}l+=5,i=l+1}break;case"n":if(r||n[l+2]==='"'||n.length<s)l+=1;else{for(a+=n.slice(i,l)+`
93
94`;n[l+2]==="\\"&&n[l+3]==="n"&&n[l+4]!=='"';)a+=`
95`,l+=2;a+=o,n[l+2]===" "&&(a+="\\"),l+=1,i=l+1}break;default:l+=1}return a=i?a+n.slice(i):n,r?a:$n(a,o,sn,Tn(t,!1))}function Qn(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
96`)||/[ \t]\n|\n[ \t]/.test(e))return Fe(e,t);const n=t.indent||(En(e)?"  ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
97${n}`)+"'";return t.implicitKey?r:$n(r,n,Mo,Tn(t,!1))}function Le(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=Fe;else{const s=e.includes('"'),o=e.includes("'");s&&!o?r=Qn:o&&!s?r=Fe:r=n?Qn:Fe}return r(e,t)}let Zn;try{Zn=new RegExp(`(^|(?<!
98))
99+(?!
100|$)`,"g")}catch{Zn=/\n+(?!\n|$)/g}function on({comment:e,type:t,value:n},r,s,o){const{blockQuote:a,commentString:i,lineWidth:l}=r.options;if(!a||/\n[\t ]+$/.test(n))return Le(n,r);const c=r.indent||(r.forceBlockIndent||En(n)?"  ":""),f=a==="literal"?!0:a==="folded"||t===I.BLOCK_FOLDED?!1:t===I.BLOCK_LITERAL?!0:!eu(n,l,c.length);if(!n)return f?`|
101`:`>
102`;let h,d;for(d=n.length;d>0;--d){const O=n[d-1];if(O!==`
103`&&O!=="	"&&O!==" ")break}let u=n.substring(d);const m=u.indexOf(`
104`);m===-1?h="-":n===u||m!==u.length-1?(h="+",o&&o()):h="",u&&(n=n.slice(0,-u.length),u[u.length-1]===`
105`&&(u=u.slice(0,-1)),u=u.replace(Zn,`$&${c}`));let p=!1,g,y=-1;for(g=0;g<n.length;++g){const O=n[g];if(O===" ")p=!0;else if(O===`
106`)y=g;else break}let _=n.substring(0,y<g?y+1:g);_&&(n=n.substring(_.length),_=_.replace(/\n+/g,`$&${c}`));let w=(p?c?"2":"1":"")+h;if(e&&(w+=" "+i(e.replace(/ ?[\r\n]+/g," ")),s&&s()),!f){const O=n.replace(/\n+/g,`
107$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);let A=!1;const D=Tn(r,!0);a!=="folded"&&t!==I.BLOCK_FOLDED&&(D.onOverflow=()=>{A=!0});const F=$n(`${_}${O}${u}`,c,Kn,D);if(!A)return`>${w}
108${c}${F}`}return n=n.replace(/\n+/g,`$&${c}`),`|${w}
109${c}${_}${n}${u}`}function nu(e,t,n,r){const{type:s,value:o}=e,{actualString:a,implicitKey:i,indent:l,indentStep:c,inFlow:f}=t;if(i&&o.includes(`
110`)||f&&/[[\]{},]/.test(o))return Le(o,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return i||f||!o.includes(`
111`)?Le(o,t):on(e,t,n,r);if(!i&&!f&&s!==I.PLAIN&&o.includes(`
112`))return on(e,t,n,r);if(En(o)){if(l==="")return t.forceBlockIndent=!0,on(e,t,n,r);if(i&&l===c)return Le(o,t)}const h=o.replace(/\n+/g,`$&
113${l}`);if(a){const d=p=>p.default&&p.tag!=="tag:yaml.org,2002:str"&&p.test?.test(h),{compat:u,tags:m}=t.doc.schema;if(m.some(d)||u?.some(d))return Le(o,t)}return i?h:$n(h,l,Mo,Tn(t,!1))}function ru(e,t,n,r){const{implicitKey:s,inFlow:o}=t,a=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:i}=e;i!==I.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(i=I.QUOTE_DOUBLE);const l=f=>{switch(f){case I.BLOCK_FOLDED:case I.BLOCK_LITERAL:return s||o?Le(a.value,t):on(a,t,n,r);case I.QUOTE_DOUBLE:return Fe(a.value,t);case I.QUOTE_SINGLE:return Qn(a.value,t);case I.PLAIN:return nu(a,t,n,r);default:return null}};let c=l(i);if(c===null){const{defaultKeyType:f,defaultStringType:h}=t.options,d=s&&f||h;if(c=l(d),c===null)throw new Error(`Unsupported default string type ${d}`)}return c}function su(e,t){const n=Object.assign({blockQuote:!0,commentString:tu,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):"  ",inFlow:r,options:n}}function ou(e,t){if(t.tag){const s=e.filter(o=>o.tag===t.tag);if(s.length>0)return s.find(o=>o.format===t.format)??s[0]}let n,r;if(V(t)){r=t.value;let s=e.filter(o=>o.identify?.(r));if(s.length>1){const o=s.filter(a=>a.test);o.length>0&&(s=o)}n=s.find(o=>o.format===t.format)??s.find(o=>!o.format)}else r=t,n=e.find(s=>
113s.nodeClass&&r instanceof s.nodeClass);if(!n){const s=r?.constructor?.name??(r===null?"null":typeof r);throw new Error(`Tag not resolved for ${s} value`)}return n}function au(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const s=[],o=(V(e)||Z(e))&&e.anchor;o&&ko(o)&&(n.add(o),s.push(`&${o}`));const a=e.tag??(t.default?null:t.tag);return a&&s.push(r.directives.tagString(a)),s.join(" ")}function pn(e,t,n,r){if(W(e))return e.toString(t,n,r);if(ke(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let s;const o=q(e)?e:t.doc.createNode(e,{onTagObj:l=>s=l});s??(s=ou(t.doc.schema.tags,o));const a=au(o,s,t);a.length>0&&(t.indentAtStart=(t.indentAtStart??0)+a.length+1);const i=typeof s.stringify=="function"?s.stringify(o,t,n,r):V(o)?ru(o,t,n,r):o.toString(t,n,r);return a?V(o)||i[0]==="{"||i[0]==="["?`${a} ${i}`:`${a}
114${t.indent}${i}`:i}function iu({key:e,value:t},n,r,s){const{allNullValues:o,doc:a,indent:i,indentStep:l,options:{commentString:c,indentSeq:f,simpleKeys:h}}=n;let d=q(e)&&e.comment||null;if(h){if(d)throw new Error("With simple keys, key nodes cannot have comments");if(Z(e)||!q(e)&&typeof e=="object"){const D="With simple keys, collection cannot be used as a key value";throw new Error(D)}}let u=!h&&(!e||d&&t==null&&!n.inFlow||Z(e)||(V(e)?e.type===I.BLOCK_FOLDED||e.type===I.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!u&&(h||!o),indent:i+l});let m=!1,p=!1,g=pn(e,n,()=>m=!0,()=>p=!0);if(!u&&!n.inFlow&&g.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");u=!0}if(n.inFlow){if(o||t==null)return m&&r&&r(),g===""?"?":u?`? ${g}`:g}else if(o&&!h||t==null&&u)return g=`? ${g}`,d&&!m?g+=Oe(g,n.indent,c(d)):p&&s&&s(),g;m&&(d=null),u?(d&&(g+=Oe(g,n.indent,c(d))),g=`? ${g}
115${i}:`):(g=`${g}:`,d&&(g+=Oe(g,n.indent,c(d))));let y,_,v;q(t)?(y=!!t.spaceBefore,_=t.commentBefore,v=t.comment):(y=!1,_=null,v=null,t&&typeof t=="object"&&(t=a.createNode(t))),n.implicitKey=!1,!u&&!d&&V(t)&&(n.indentAtStart=g.length+1),p=!1,!f&&l.length>=2&&!n.inFlow&&!u&&fr(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let w=!1;const O=pn(t,n,()=>w=!0,()=>p=!0);let A=" ";if(d||y||_){if(A=y?`
116`:"",_){const D=c(_);A+=`
117${We(D,n.indent)}`}O===""&&!n.inFlow?A===`
118`&&(A=`
119
120`):A+=`
121${n.indent}`}else if(!u&&Z(t)){const D=O[0],F=O.indexOf(`
122`),U=F!==-1,lt=n.inFlow??t.flow??t.items.length===0;if(U||!lt){let Y=!1;if(U&&(D==="&"||D==="!")){let P=O.indexOf(" ");D==="&"&&P!==-1&&P<F&&O[P+1]==="!"&&(P=O.indexOf(" ",P+1)),(P===-1||F<P)&&(Y=!0)}Y||(A=`
123${n.indent}`)}}else(O===""||O[0]===`
124`)&&(A="");return g+=A+O,n.inFlow?w&&r&&r():v&&!w?g+=Oe(g,n.indent,c(v)):p&&s&&s(),g}function lu(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const Qe="<<",xn={identify:e=>e===Qe||typeof e=="symbol"&&e.description===Qe,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new I(Symbol(Qe)),{addToJSMap:$o}),stringify:()=>Qe},cu=(e,t)=>(xn.identify(t)||V(t)&&(!t.type||t.type===I.PLAIN)&&xn.identify(t.value))&&e?.doc.schema.tags.some(n=>n.tag===xn.tag&&n.default);function $o(e,t,n){if(n=e&&ke(n)?n.resolve(e.doc):n,fr(n))for(const r of n.items)In(e,t,r);else if(Array.isArray(n))for(const r of n)In(e,t,r);else In(e,t,n)}function In(e,t,n){const r=e&&ke(n)?n.resolve(e.doc):n;if(!vo(r))throw new Error("Merge sources must be maps or map aliases");const s=r.toJSON(null,e,Map);for(const[o,a]of s)t instanceof Map?t.has(o)||t.set(o,a):t instanceof Set?t.add(o):Object.prototype.hasOwnProperty.call(t,o)||Object.defineProperty(t,o,{value:a,writable:!0,enumerable:!0,configurable:!0});return t}function To(e,t,{key:n,value:r}){if(q(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(cu(e,n))$o(e,t,r);else{const s=st(n,"",e);if(t instanceof Map)t.set(s,st(r,s,e));else if(t instanceof Set)t.add(s);else{const o=uu(n,s,e),a=st(r,o,e);o in t?Object.defineProperty(t,o,{value:a,writable:!0,enumerable:!0,configurable:!0}):t[o]=a}}return t}function uu(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(q(e)&&n?.doc){const r=su(n.doc,{});r.anchors=new Set;for(const o of n.anchors.keys())r.anchors.add(o.anchor);r.inFlow=!0,r.inStringifyKey=!0;const s=e.toString(r);if(!n.mapKeyWarned){let o=JSON.stringify(s);o.length>40&&(o=o.substring(0,36)+'..."'),lu(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${o}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return s}return JSON.stringify(t)}function hr(e,t,n){const r=hn(e,void 0,n),s=hn(t,void 0,n);return new it(r,s)}class it{constructor(t,n=null){Object.defineProperty(this,ot,{value:_o}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return q(n)&&(n=n.clone(t)),q(r)&&(r=r.clone(t)),new it(n,r)}toJSON(t,n){const r=n?.mapAsMap?new Map:{};return To(n,r,this)}toString(t,n,r){return t?.doc?iu(this,t,n,r):JSON.stringify(this)}}function Eo(e,t,n){return(t.inFlow??e.flow?du:fu)(e,t,n)}function fu({comment:e,items:t},n,{blockItemPrefix:r,flowChars:s,itemIndent:o,onChompKeep:a,onComment:i}){const{indent:l,options:{commentString:c}}=n,f=Object.assign({},n,{indent:o,type:null});let h=!1;const d=[];for(let m=0;m<t.length;++m){const p=t[m];let g=null;if(q(p))!h&&p.spaceBefore&&d.push(""),mn(n,d,p.commentBefore,h),p.comment&&(g=p.comment);
124else if(W(p)){const _=q(p.key)?p.key:null;_&&(!h&&_.spaceBefore&&d.push(""),mn(n,d,_.commentBefore,h))}h=!1;let y=pn(p,f,()=>g=null,()=>h=!0);g&&(y+=Oe(y,o,c(g))),h&&g&&(h=!1),d.push(r+y)}let u;if(d.length===0)u=s.start+s.end;else{u=d[0];for(let m=1;m<d.length;++m){const p=d[m];u+=p?`
125${l}${p}`:`
126`}}return e?(u+=`
127`+We(c(e),l),i&&i()):h&&a&&a(),u}function du({items:e},t,{flowChars:n,itemIndent:r}){const{indent:s,indentStep:o,flowCollectionPadding:a,options:{commentString:i}}=t;r+=o;const l=Object.assign({},t,{indent:r,inFlow:!0,type:null});let c=!1,f=0;const h=[];for(let m=0;m<e.length;++m){const p=e[m];let g=null;if(q(p))p.spaceBefore&&h.push(""),mn(t,h,p.commentBefore,!1),p.comment&&(g=p.comment);else if(W(p)){const _=q(p.key)?p.key:null;_&&(_.spaceBefore&&h.push(""),mn(t,h,_.commentBefore,!1),_.comment&&(c=!0));const v=q(p.value)?p.value:null;v?(v.comment&&(g=v.comment),v.commentBefore&&(c=!0)):p.value==null&&_?.comment&&(g=_.comment)}g&&(c=!0);let y=pn(p,l,()=>g=null);m<e.length-1&&(y+=","),g&&(y+=Oe(y,r,i(g))),!c&&(h.length>f||y.includes(`
128`))&&(c=!0),h.push(y),f=h.length}const{start:d,end:u}=n;if(h.length===0)return d+u;if(!c){const m=h.reduce((p,g)=>p+g.length+2,2);c=t.options.lineWidth>0&&m>t.options.lineWidth}if(c){let m=d;for(const p of h)m+=p?`
129${o}${s}${p}`:`
130`;return`${m}
131${s}${u}`}else return`${d}${a}${h.join(" ")}${a}${u}`}function mn({indent:e,options:{commentString:t}},n,r,s){if(r&&s&&(r=r.replace(/^\n+/,"")),r){const o=We(t(r),e);n.push(o.trimStart())}}function ve(e,t){const n=V(t)?t.value:t;for(const r of e)if(W(r)&&(r.key===t||r.key===n||V(r.key)&&r.key.value===n))return r}class Me extends So{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(we,t),this.items=[]}static from(t,n,r){const{keepUndefined:s,replacer:o}=r,a=new this(t),i=(l,c)=>{if(typeof o=="function")c=o.call(n,l,c);else if(Array.isArray(o)&&!o.includes(l))return;(c!==void 0||s)&&a.items.push(hr(l,c,r))};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 t.sortMapEntries=="function"&&a.items.sort(t.sortMapEntries),a}add(t,n){let r;W(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new it(t,t?.value):r=new it(t.key,t.value);const s=ve(this.items,r.key),o=this.schema?.sortMapEntries;if(s){if(!n)throw new Error(`Key ${r.key} already set`);V(s.value)&&bo(r.value)?s.value.value=r.value:s.value=r.value}else if(o){const a=this.items.findIndex(i=>o(r,i)<0);a===-1?this.items.push(r):this.items.splice(a,0,r)}else this.items.push(r)}delete(t){const n=ve(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const s=ve(this.items,t)?.value;return(!n&&V(s)?s.value:s)??void 0}has(t){return!!ve(this.items,t)}set(t,n){this.add(new it(t,n),!0)}toJSON(t,n,r){const s=r?new r:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(s);for(const o of this.items)To(n,s,o);return s}toString(t,n,r){if(!t)return JSON.stringify(this);for(const s of this.items)if(!W(s))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),Eo(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}class Oo extends So{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Be,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=Ze(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=Ze(t);if(typeof r!="number")return;const s=this.items[r];return!n&&V(s)?s.value:s}has(t){const n=Ze(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=Ze(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const s=this.items[r];V(s)&&bo(n)?s.value=n:this.items[r]=n}toJSON(t,n){const r=[];n?.onCreate&&n.onCreate(r);let s=0;for(const o of this.items)r.push(st(o,String(s++),n));return r}toString(t,n,r){return t?Eo(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+"  ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:s}=r,o=new this(t);if(n&&Symbol.iterator in Object(n)){let a=0;for(let i of n){if(typeof s=="function"){const l=n instanceof Set?i:String(a++);i=s.call(n,l,i)}o.items.push(hn(i,void 0,r))}}return o}}function Ze(e){let t=V(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}function hu(e,t,n){const{replacer:r}=n,s=new Oo(e);s.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let a of t){typeof r=="function"&&(a=r.call(t,String(o++),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;s.items.push(hr(i,l,n))}return s}class pr extends Oo{constructor(){super(),this.add=Me.prototype.add.bind(this),this.delete=Me.prototype.delete.bind(this),this.get=Me.prototype.get.bind(this),this.has=Me.prototype.has.bind(this),this.set=Me.prototype.set.bind(this),this.tag=pr.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n?.onCreate&&n.onCreate(r);for(const s of this.items){let o,a;if(W(s)?(o=st(s.key,"",n),a=st(s.value,o,n)):o=st(s,"",n),r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,a)}return r}static from(t,n,r){const s=hu(t,n,r),o=new this;return o.items=s.items,o}}pr.tag="tag:yaml.org,2002:omap";class mr extends Me{constructor(t){super(t),this.tag=mr.tag}add(t){let n;
131W(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new it(t.key,null):n=new it(t,null),ve(this.items,n.key)||this.items.push(n)}get(t,n){const r=ve(this.items,t);return!n&&W(r)?V(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=ve(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new it(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){const{replacer:s}=r,o=new this(t);if(n&&Symbol.iterator in Object(n))for(let a of n)typeof s=="function"&&(a=s.call(n,a,a)),o.items.push(hr(a,null,r));return o}}mr.tag="tag:yaml.org,2002:set";new Set("0123456789ABCDEFabcdef");new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");new Set(",[]{}");new Set(` ,[]{}
132\r	`);function gr(e=5){const t=[],n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",r=n.length;for(let s=0;s<e;s++)t.push(n.charAt(Math.floor(Math.random()*r)));return t.join("")}function td(e,t,n,r){const s=uo(t+n-1,e);for(let o=0;o<t;o++){const a=r(o),i=s.includes(o+n);for(const l of a)l.classList.toggle("slidev-code-highlighted",i),l.classList.toggle("slidev-code-dishonored",!i),l.classList.toggle("highlighted",i),l.classList.toggle("dishonored",!i)}}function Lo(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(2,10)}function et(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!1})}const ut=b({});let pu=[],mu=[];et(ut,"$syncUp",!0);et(ut,"$syncDown",!0);et(ut,"$paused",!1);et(ut,"$onSet",e=>pu.push(e));et(ut,"$onPatch",e=>mu.push(e));Lo();et(ut,"$patch",async()=>!1);const gu={channels:[],enabled:!0,init(e,t,n,r=!1){let s;if(!r)s=new BroadcastChannel(e),s.addEventListener("message",o=>t(o.data)),this.channels.push(s);else if(r){this.listener=function(a){a&&a.key===e&&a.newValue&&t(JSON.parse(a.newValue))},window.addEventListener("storage",this.listener);const o=window.localStorage.getItem(e);o&&t(JSON.parse(o))}return(o,a=!1)=>{this.enabled&&(!r&&s&&!a&&s.postMessage(no(o)),r&&!a&&window.localStorage.setItem(e,JSON.stringify(o)))}},disable(){this.enabled=!1,this.channels.forEach(e=>e.close()),this.listener&&window.removeEventListener("storage",this.listener)}},yu=b([gu]),_u=new Map,Vs=C({});function Po(e,t,n=!1){const r=[];let s=!1,o=!1,a,i;const l=b(t);function c(u){r.push(u)}function f(u,m){l[u]!==m&&(clearTimeout(a),s=!0,l[u]=m,a=setTimeout(()=>s=!1,0))}function h(u){s||(clearTimeout(i),o=!0,Object.entries(u).forEach(([m,p])=>{l[m]=p}),i=setTimeout(()=>o=!1,0))}function d(u){_u.set(u,{onUpdate:h,persist:n,state:l}),Vs.value[u]=yu.map(p=>p.init(u,h,l,n)).filter(p=>!!p);function m(){Vs.value[u].forEach(p=>p?.(no(l),o)),s||r.forEach(p=>p(l))}tt(l,m,{deep:!0})}return{init:d,onPatch:c,onUpdate:h,patch:f,state:l}}const{init:vu,onPatch:ed,patch:nd,state:rd}=Po(ut,ut,!1),be=b({page:0,clicks:0,timer:{status:"stopped",slides:{},startedAt:0,pausedAt:0}});let wu=[],ku=[];et(be,"$syncUp",!0);et(be,"$syncDown",!0);et(be,"$paused",!1);et(be,"$onSet",e=>wu.push(e));et(be,"$onPatch",e=>ku.push(e));Lo();et(be,"$patch",async()=>!1);const{init:bu,onPatch:Su,patch:Ye,state:sd}=Po(be,{page:1,clicks:0,clicksTotal:0,timer:{status:"stopped",slides:{},startedAt:0,pausedAt:0}});function Mu(){const e=Zs().appContext.app,t=b({nav:Ae(),configs:N,themeConfigs:S(()=>N.themeConfig)});e.provide(ir,C("none")),e.provide($c,t),e.provide(ar,S(()=>t.nav.currentSlideNo)),e.provide(kn,or(si()));for(const d of La)d();const{clicksContext:n,currentSlideNo:r,hasPrimarySlide:s,isNotesViewer:o,isPresenter:a,isPrintMode:i}=Ae();ei({title:Ln,htmlAttrs:N.htmlAttrs}),qc(),bu(`${Ln} - shared`),vu(`${Ln} - drawings`);const l=`${location.origin}_${gr()}`,c=S(()=>a.value?"presenter":"viewer");function f(){(a.value?Ke.value.presenterSend:Ke.value.viewerSend)&&(o.value||i.value||!a.value&&!Oc.includes(location.host.split(":")[0])||(Ye("page",+r.value),Ye("clicks",n.value.current),Ye("clicksTotal",n.value.total),Ye("lastUpdate",{id:l,type:c.value,time:new Date().getTime()})))}const h=vn();h.afterEach(f),tt(n,f),Su(d=>{(a.value?Ke.value.presenterReceive:Ke.value.viewerReceive)&&(!s.value||i.value||d.lastUpdate?.type!==c.value&&(+d.page==+r.value&&+n.value.current==+d.clicks||(lr.value=!1,h.replace({path:Te(d.page,a.value),query:{...h.currentRoute.value.query,clicks:d.clicks||0}}))))})}const $u=Xs({__name:"App",setup(e){return Mu(),Pe(()=>{for(const[t,n]of Object.entries(Oa.value))document.body.style.setProperty(t,n.toString())}),(t,n)=>{const r=fa("RouterView");return cn(),ua(r)}}}),Tu=[];async function Co(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async s=>{const o=new Map,a=new Promise(u=>{e.resolveTags().then(m=>{u(m.map(p=>{const g=o.get(p._d)||0,y={tag:p,id:(g?`${p._d}:${g}`:p._d)||$r(p),shouldRender:!0};return p._d&&ao(p._d)&&o.set(p._d,g+1),y}))})});let i=e._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 m=n[u]?.children;for(const p of m){const g=p.tagName.toLowerCase();if(!Mr.has(g))continue;const y=io({tag:g,props:{}},{innerHTML:p.innerHTML,...p.getAttributeNames().reduce((_,v)=>(_[v]=p.getAttribute(v),_),{})||{}});if(y.key=p.getAttribute("data-hid")||void 0,y._d=Un(y)||$r(y),i.elMap.has(y._d)){let _=1,v=y._d;for(;i.elMap.has(v);)v=`${y._d}:${_++}`;i.elMap.set(v,p)}else i.elMap.set(y._d,p)}}}i.pendingSideEffects={...i.sideEffects},i.sideEffects={};function l(u,m,p){const g=`${u}:${m}`;i.sideEffects[g]=p,delete i.pendingSideEffects[g]}function c({id:u,$el:m,tag:p}){const g=p.tag.endsWith("Attrs");i.elMap.set(u,m),g||(p.textContent&&p.textContent!==m.textContent&&(m.textContent=p.textContent),p.innerHTML&&p.innerHTML!==m.innerHTML&&(m.innerHTML=p.innerHTML),l(u,"el",()=>{m?.remove(),i.elMap.delete(u)}));for(const y in p.props){if(!Object.prototype.hasOwnProperty.call(p.props,y))continue;const _=p.props[y];if(y.startsWith("on")&&typeof _=="function"){const w=m?.dataset;if(w&&w[`${y}fired`]){const O=y.slice(0,-5);_.call(m,new Event(O.substring(2)))}m.getAttribute(`data-${y}`)!==""&&((p.tag==="bodyAttrs"?n.defaultView:m).addEventListener(y.substring(2),_.bind(m)),m.setAttribute(`data-${y}`,""));continue}const v=`attr:${y}`;if(y==="class"){if(!_)continue;for(const w of _)g&&l(u,`${v}:${w}`,()=>m.classList.remove(w)),!m.classList.contains(w)&&m.classList.add(w)}else if(y==="style"){if(!_)continue;for(const[w,O]of _)l(u,`${v}:${w}`,()=>{m.style.removeProperty(w)}),m.style.setProperty(w,O)}else _!==!1&&_!==null&&(m.getAttribute(y)!==_&&m.setAttribute(y,_===!0?"":String(_)),g&&l(u,v,()=>m.removeAttribute(y)))}}const f=[],h={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await a;for(const u of d){const{tag:m,shouldRender:p,id:g}=u;if(p){if(m.tag==="title"){n.title=m.textContent,l("title","",()=>n.title=i.title);continue}u.$el=u.$el||i.elMap.get(g),u.$el?c(u):Mr.has(m.tag)&&f.push(u)}}for(const u of f){const m=u.tag.tagPosition||"head";u.$el=n.createElement(u.tag.tag),c(u),h[m]=h[m]||n.createDocumentFragment(),h[m].appendChild(u.$el)}for(const u of d)await e.hooks.callHook("dom:renderTag",u,n,l);h.head&&n.head.appendChild(h.head),h.bodyOpen&&n.body.insertBefore(h.bodyOpen,n.body.firstChild),h.bodyClose&&n.body.appendChild(h.bodyClose);for(const u in i.pendingSideEffects)i.pendingSideEffects[u]();e._dom=i,await e.hooks.callHook("dom:rendered",{renders:d}),s()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function Eu(e={}){const t=e.domOptions?.render||Co;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return Za({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function Ou(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function Lu(e={}){const t=Eu({domOptions:{render:Ou(()=>Co(t),n=>setTimeout(n,0))},...e});return t.install=Xa(t),t}function od(e,t=""){const n=["slidev-page",t],r=e?.meta?.slide?.no;return r!=null&&n.push(`slidev-page-${r}
132`),n.filter(Boolean).join(" ")}async function ad(){const{saveAs:e}=await k(async()=>{const{saveAs:t}=await import("./modules/file-saver-DKWcVV7Q.js").then(n=>n.F);return{saveAs:t}},[]);e(typeof N.download=="string"?N.download:N.exportFilename?`${N.exportFilename}.pdf`:"/slidev-exported.pdf",`${N.title}.pdf`)}function Ce(e,t,n){return(e.instance?.$).provides[t]??n}function Pu(){return{install(e){e.directive("click",{name:"v-click",mounted(t,n){const r=an(t,n,n.value);r!=null&&(t.classList.toggle(en,!0),t.dataset.slidevClicksStart=String(r.start),Number.isFinite(r.end)&&(t.dataset.slidevClicksEnd=String(r.end)),t.watchStopHandle=Pe(()=>{const s=r.isActive.value,o=r.isCurrent.value,a=s&&!o;r.flagHide?(t.classList.toggle(r.flagFade?Ie:xe,s),t.classList.toggle(Cn,s)):t.classList.toggle(r.flagFade?Ie:xe,!s),t.classList.toggle(An,o),t.classList.toggle(Rn,a)}))},unmounted:Nn}),e.directive("after",{name:"v-after",mounted(t,n){const r=an(t,n,"+0");r!=null&&(t.classList.toggle(en,!0),t.watchStopHandle=Pe(()=>{const s=r.isActive.value,o=r.isCurrent.value,a=s&&!o;r.flagHide?(t.classList.toggle(r.flagFade?Ie:xe,s),t.classList.toggle(Cn,s)):t.classList.toggle(r.flagFade?Ie:xe,!s),t.classList.toggle(An,o),t.classList.toggle(Rn,a)}))},unmounted:Nn}),e.directive("click-hide",{name:"v-click-hide",mounted(t,n){const r=an(t,n,n.value,!0);r!=null&&(t.classList.toggle(en,!0),t.watchStopHandle=Pe(()=>{const s=r.isActive.value,o=r.isCurrent.value,a=s&&!o;t.classList.toggle(r.flagFade?Ie:xe,s),t.classList.toggle(Cn,s),t.classList.toggle(An,o),t.classList.toggle(Rn,a)}))},unmounted:Nn})}}}const Ao=new Map;function an(e,t,n,r=!1){const s=Ce(t,kn)?.value;if(!e||!s)return null;const o=r||t.modifiers.hide!==!1&&t.modifiers.hide!=null,a=t.modifiers.fade!==!1&&t.modifiers.fade!=null,i=s.calculate(n);if(!i)return null;s.register(e,i);const l=S(()=>o?!i.isActive.value:i.isActive.value),c=S(()=>l.value?"shown":Number.isFinite(i.end)?s.current<i.start?"before":"after":o?"after":"before"),f={...i,isShown:l,visibilityState:c,flagFade:a,flagHide:o};return Ao.set(e,f),f}function Nn(e,t){e.classList.toggle(en,!1),Ce(t,kn)?.value?.unregister(e),e.watchStopHandle?.()}function Cu(e=Qs(fo,C())){const t=da(e),n=tt([Nc,Hc,jc,Vc,Ic,fn.width,fn.height],()=>{setTimeout(t.update,300)},{flush:"post",immediate:!0});return{...t,stop:n}}function Au(e){return()=>{}}function Ru(e,t,n,r=!1){function s(H){return e?Ce(e,H):pa(H)}const o=s(ir),a=s(Tc)??{},i=s(ar),l=S(()=>Au(i.value)),c=s(Mc)??C(1),f=s(Ec)??C(1),{left:h,top:d,stop:u}=Cu(s(fo)??C()),{isPrintMode:m}=Ae(),p=["slide","presenter"].includes(o.value)&&!m.value;let g=e?"directive":"prop",y=gr(),_;if(Array.isArray(t)?_=t:typeof t=="string"&&t.includes(",")?_=t.split(",").map(Number):t!=null&&(g="frontmatter",y=`${t}`,t=a?.dragPos?.[y],_=t?.split(",").map(Number)),g!=="frontmatter"&&!n)throw new Error("[Slidev] Can not identify the source position of the v-drag element, please provide an explicit `id` prop.");const v=[u],w=!r&&t!=null&&!Number.isFinite(_?.[3]);_??=[Number.NaN,Number.NaN,0];const O=C(_[2]),A=C(_[0]+_[2]/2),D=C(r?0:_[4]??0),F=S(()=>D.value*Math.PI/180),U=S(()=>Math.sin(F.value)),lt=S(()=>Math.cos(F.value)),Y=C(),P=C({left:0,top:0,width:0,height:0}),R=C(0);function z(){if(!Y.value)return;const H=Y.value.getBoundingClientRect();P.value={left:H.left/f.value,top:H.top/f.value,width:H.width/f.value,height:H.height/f.value},R.value=(P.value.width+P.value.height)/c.value/(Math.abs(U.value)+Math.abs(lt.value))-O.value}v.push(tt(O,z,{flush:"post"}));const j=C(_[3]??0),x=w?S({get:()=>(w?R.value:j.value)||0,set:H=>!w&&(j.value=H)}):j,at=w?C(_[1]):C(_[1]+_[3]/2),ct=w?S({get:()=>at.value+x.value/2,set:H=>at.value=H-x.value/2}):at,Re=S(()=>Number.isFinite(A.value)?{position:"absolute",zIndex:100,left:`${A.value-O.value/2}px`,top:`${ct.value-x.value/2}px`,width:`${O.value}px`,height:w?void 0:`${x.value}px`,transformOrigin:"center center",transform:`rotate(${D.value}deg)`}:{position:"absolute",zIndex:100});v.push(tt([A,ct,O,x,D],([H,Ue,vr,wr,kr])=>{let Se=[H-vr/2,Ue-wr/2,vr].map(Math.round).join();w?Se+=g==="directive"?",NaN":",_":Se+=`,${Math.round(wr)}`,Math.round(kr)!==0&&(Se+=`,${Math.round(kr)}`),g==="directive"&&(Se=`[${Se}]`),l.value(y,Se,g,n)}));const K={dragId:y,dataSource:g,markdownSource:n,isArrow:r,zoom:f,autoHeight:w,x0:A,y0:ct,width:O,height:x,rotate:D,container:Y,containerStyle:Re,watchStopHandles:v,dragging:S(()=>Ge.value===K),mounted(){p&&(z(),t||setTimeout(()=>{z(),A.value=(P.value.left+P.value.width/2-h.value)/c.value,ct.value=(P.value.top-d.value)/c.value,O.value=P.value.width/c.value,x.value=P.value.height/c.value},100))},unmounted(){p&&K.stopDragging()},startDragging(){p&&(z(),Ge.value=K)},stopDragging(){p&&Ge.value===K&&(Ge.value=null)}};return v.push(ha(Y,H=>{const Ue=document.querySelector("#drag-control-container");Ue&&H.target&&Ue.contains(H.target)||K.stopDragging()}),tt(ma(),H=>{H||K.stopDragging()})),K}function Du(){return{install(e){e.directive("drag",{name:"v-drag",created(t,n,r){const s=Ru(n,n.value,r.props?.markdownSource);r.props&&(r.props={...r.props},delete r.props.markdownSource),s.container.value=t,t.draggingState=s,t.dataset.dragId=s.dragId,s.watchStopHandles.push(tt(s.containerStyle,o=>{for(const[a,i]of Object.entries(o))i&&(t.style[a]=i)},{immediate:!0}
132)),t.addEventListener("dblclick",s.startDragging)},mounted(t){t.draggingState.mounted()},unmounted(t){const n=t.draggingState;n.unmounted(),t.removeEventListener("dblclick",n.startDragging),n.watchStopHandles.forEach(r=>r())}})}}}function Ro(){return Math.floor(Math.random()*2**31)}class xu{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}function Yn(e,t,n){if(e&&e.length){const[r,s]=t,o=Math.PI/180*n,a=Math.cos(o),i=Math.sin(o);for(const l of e){const[c,f]=l;l[0]=(c-r)*a-(f-s)*i+r,l[1]=(c-r)*i+(f-s)*a+s}}}function Iu(e,t,n){const r=[];e.forEach(s=>r.push(...s)),Yn(r,t,n)}function Nu(e,t){return e[0]===t[0]&&e[1]===t[1]}function Hu(e,t,n,r=1){const s=n,o=Math.max(t,.1),a=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,i=[0,0];if(s)for(const c of a)Yn(c,i,s);const l=ju(a,o,r);if(s){for(const c of a)Yn(c,i,-s);Iu(l,i,-s)}return l}function ju(e,t,n){const r=[];for(const c of e){const f=[...c];Nu(f[0],f[f.length-1])||f.push([f[0][0],f[0][1]]),f.length>2&&r.push(f)}const s=[];t=Math.max(t,.1);const o=[];for(const c of r)for(let f=0;f<c.length-1;f++){const h=c[f],d=c[f+1];if(h[1]!==d[1]){const u=Math.min(h[1],d[1]);o.push({ymin:u,ymax:Math.max(h[1],d[1]),x:u===h[1]?h[0]:d[0],islope:(d[0]-h[0])/(d[1]-h[1])})}}if(o.sort((c,f)=>c.ymin<f.ymin?-1:c.ymin>f.ymin?1:c.x<f.x?-1:c.x>f.x?1:c.ymax===f.ymax?0:(c.ymax-f.ymax)/Math.abs(c.ymax-f.ymax)),!o.length)return s;let a=[],i=o[0].ymin,l=0;for(;a.length||o.length;){if(o.length){let c=-1;for(let h=0;h<o.length&&!(o[h].ymin>i);h++)c=h;o.splice(0,c+1).forEach(h=>{a.push({s:i,edge:h})})}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%t===0)&&a.length>1)for(let c=0;c<a.length;c=c+2){const f=c+1;if(f>=a.length)break;const h=a[c].edge,d=a[f].edge;s.push([[Math.round(h.x),i],[Math.round(d.x),i]])}i+=n,a.forEach(c=>{c.edge.x=c.edge.x+n*c.edge.islope}),l++}return s}function qe(e,t){var n;const r=t.hachureAngle+90;let s=t.hachureGap;s<0&&(s=t.strokeWidth*4),s=Math.round(Math.max(s,.1));let o=1;return t.roughness>=1&&(((n=t.randomizer)===null||n===void 0?void 0:n.next())||Math.random())>.7&&(o=s),Hu(e,s,r,o||1)}class yr{constructor(t){this.helper=t}fillPolygons(t,n){return this._fillPolygons(t,n)}_fillPolygons(t,n){const r=qe(t,n);return{type:"fillSketch",ops:this.renderLines(r,n)}}renderLines(t,n){const r=[];for(const s of t)r.push(...this.helper.doubleLineOps(s[0][0],s[0][1],s[1][0],s[1][1],n));return r}}function On(e){const t=e[0],n=e[1];return Math.sqrt(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2))}class Vu extends yr{fillPolygons(t,n){let r=n.hachureGap;r<0&&(r=n.strokeWidth*4),r=Math.max(r,.1);const s=Object.assign({},n,{hachureGap:r}),o=qe(t,s),a=Math.PI/180*n.hachureAngle,i=[],l=r*.5*Math.cos(a),c=r*.5*Math.sin(a);for(const[h,d]of o)On([h,d])&&i.push([[h[0]-l,h[1]+c],[...d]],[[h[0]+l,h[1]-c],[...d]]);return{type:"fillSketch",ops:this.renderLines(i,n)}}}class Fu extends yr{fillPolygons(t,n){const r=this._fillPolygons(t,n),s=Object.assign({},n,{hachureAngle:n.hachureAngle+90}),o=this._fillPolygons(t,s);return r.ops=r.ops.concat(o.ops),r}}class zu{constructor(t){this.helper=t}fillPolygons(t,n){n=Object.assign({},n,{hachureAngle:0});const r=qe(t,n);return this.dotsOnLines(r,n)}dotsOnLines(t,n){const r=[];let s=n.hachureGap;s<0&&(s=n.strokeWidth*4),s=Math.max(s,.1);let o=n.fillWeight;o<0&&(o=n.strokeWidth/2);const a=s/4;for(const i of t){const l=On(i),c=l/s,f=Math.ceil(c)-1,h=l-f*s,d=(i[0][0]+i[1][0])/2-s/4,u=Math.min(i[0][1],i[1][1]);for(let m=0;m<f;m++){const p=u+h+m*s,g=d-a+Math.random()*2*a,y=p-a+Math.random()*2*a,_=this.helper.ellipse(g,y,o,o,n);r.push(..._.ops)}}return{type:"fillSketch",ops:r}}}class Wu{constructor(t){this.helper=t}fillPolygons(t,n){const r=qe(t,n);return{type:"fillSketch",ops:this.dashedLine(r,n)}}dashedLine(t,n){const r=n.dashOffset<0?n.hachureGap<0?n.strokeWidth*4:n.hachureGap:n.dashOffset,s=n.dashGap<0?n.hachureGap<0?n.strokeWidth*4:n.hachureGap:n.dashGap,o=[];return t.forEach(a=>{const i=On(a),l=Math.floor(i/(r+s)),c=(i+s-l*(r+s))/2;let f=a[0],h=a[1];f[0]>h[0]&&(f=a[1],h=a[0]);
132const d=Math.atan((h[1]-f[1])/(h[0]-f[0]));for(let u=0;u<l;u++){const m=u*(r+s),p=m+r,g=[f[0]+m*Math.cos(d)+c*Math.cos(d),f[1]+m*Math.sin(d)+c*Math.sin(d)],y=[f[0]+p*Math.cos(d)+c*Math.cos(d),f[1]+p*Math.sin(d)+c*Math.sin(d)];o.push(...this.helper.doubleLineOps(g[0],g[1],y[0],y[1],n))}}),o}}class Bu{constructor(t){this.helper=t}fillPolygons(t,n){const r=n.hachureGap<0?n.strokeWidth*4:n.hachureGap,s=n.zigzagOffset<0?r:n.zigzagOffset;n=Object.assign({},n,{hachureGap:r+s});const o=qe(t,n);return{type:"fillSketch",ops:this.zigzagLines(o,s,n)}}zigzagLines(t,n,r){const s=[];return t.forEach(o=>{const a=On(o),i=Math.round(a/(2*n));let l=o[0],c=o[1];l[0]>c[0]&&(l=o[1],c=o[0]);const f=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let h=0;h<i;h++){const d=h*2*n,u=(h+1)*2*n,m=Math.sqrt(2*Math.pow(n,2)),p=[l[0]+d*Math.cos(f),l[1]+d*Math.sin(f)],g=[l[0]+u*Math.cos(f),l[1]+u*Math.sin(f)],y=[p[0]+m*Math.cos(f+Math.PI/4),p[1]+m*Math.sin(f+Math.PI/4)];s.push(...this.helper.doubleLineOps(p[0],p[1],y[0],y[1],r),...this.helper.doubleLineOps(y[0],y[1],g[0],g[1],r))}}),s}}const G={};function qu(e,t){let n=e.fillStyle||"hachure";if(!G[n])switch(n){case"zigzag":G[n]||(G[n]=new Vu(t));break;case"cross-hatch":G[n]||(G[n]=new Fu(t));break;case"dots":G[n]||(G[n]=new zu(t));break;case"dashed":G[n]||(G[n]=new Wu(t));break;case"zigzag-line":G[n]||(G[n]=new Bu(t));break;case"hachure":default:n="hachure",G[n]||(G[n]=new yr(t));break}return G[n]}const Uu=0,Xn=1,Do=2,Xe={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Gu(e){const t=new Array;for(;e!=="";)if(e.match(/^([ \t\r\n,]+)/))e=e.substr(RegExp.$1.length);else if(e.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:Uu,text:RegExp.$1},e=e.substr(RegExp.$1.length);else if(e.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))t[t.length]={type:Xn,text:`${parseFloat(RegExp.$1)}`},e=e.substr(RegExp.$1.length);else return[];return t[t.length]={type:Do,text:""},t}function Hn(e,t){return e.type===t}function _r(e){const t=[],n=Gu(e);let r="BOD",s=0,o=n[s];for(;!Hn(o,Do);){let a=0;const i=[];if(r==="BOD")if(o.text==="M"||o.text==="m")s++,a=Xe[o.text],r=o.text;else return _r("M0,0"+e);else Hn(o,Xn)?a=Xe[r]:(s++,a=Xe[o.text],r=o.text);if(s+a<n.length){for(let l=s;l<s+a;l++){const c=n[l];if(Hn(c,Xn))i[i.length]=+c.text;else throw new Error("Param not a number: "+r+","+c.text)}if(typeof Xe[r]=="number"){const l={key:r,data:i};t.push(l),s+=a,o=n[s],r==="M"&&(r="L"),r==="m"&&(r="l")}else throw new Error("Bad segment: "+r)}else throw new Error("Path data ended short")}return t}function xo(e){let t=0,n=0,r=0,s=0;const o=[];for(const{key:a,data:i}of e)switch(a){case"M":o.push({key:"M",data:[...i]}),[t,n]=i,[r,s]=i;break;case"m":t+=i[0],n+=i[1],o.push({key:"M",data:[t,n]}),r=t,s=n;break;case"L":o.push({key:"L",data:[...i]}),[t,n]=i;break;case"l":t+=i[0],n+=i[1],o.push({key:"L",data:[t,n]});break;case"C":o.push({key:"C",data:[...i]}),t=i[4],n=i[5];break;case"c":{const l=i.map((c,f)=>f%2?c+n:c+t);o.push({key:"C",data:l}),t=l[4],n=l[5];break}case"Q":o.push({key:"Q",data:[...i]}),t=i[2],n=i[3];break;case"q":{const l=i.map((c,f)=>f%2?c+n:c+t);o.push({key:"Q",data:l}),t=l[2],n=l[3];break}case"A":o.push({key:"A",data:[...i]}),t=i[5],n=i[6];break;case"a":t+=i[5],n+=i[6],o.push({key:"A",data:[i[0],i[1],i[2],i[3],i[4],t,n]});break;case"H":o.push({key:"H",data:[...i]}),t=i[0];break;case"h":t+=i[0],o.push({key:"H",data:[t]});break;case"V":o.push({key:"V",data:[...i]}),n=i[0];break;case"v":n+=i[0],o.push({key:"V",data:[n]});break;case"S":o.push({key:"S",data:[...i]}),t=i[2],n=i[3];break;case"s":{const l=i.map((c,f)=>f%2?c+n:c+t);o.push({key:"S",data:l}),t=l[2],n=l[3];break}case"T":o.push({key:"T",data:[...i]}),t=i[0],n=i[1];break;case"t":t+=i[0],n+=i[1],o.push({key:"T",data:[t,n]});break;case"Z":case"z":o.push({key:"Z",data:[]}),t=r,n=s;break}return o}function Io(e){const t=[];let n="",r=0,s=0,o=0,a=0,i=0,l=0;for(const{key:c,data:f}of e){switch(c){case"M":t.push({key:"M",data:[...f]}),[r,s]=f,[o,a]=f;break;case"C":t.push({key:"C",data:[...f]}),r=f[4],s=f[5],i=f[2],l=f[3];break;case"L":t.push({key:"L",data:[...f]}),[r,s]=f;break;case"H":r=f[0],t.push({key:"L",data:[r,s]});break;case"V":s=f[0],t.push({key:"L",data:[r,s]});break;case"S":{let h=0,d=0;n==="C"||n==="S"?(h=r+(r-i),d=s+(s-l)):(h=r,d=s),t.push({key:"C",data:[h,d,...f]}
132),i=f[0],l=f[1],r=f[2],s=f[3];break}case"T":{const[h,d]=f;let u=0,m=0;n==="Q"||n==="T"?(u=r+(r-i),m=s+(s-l)):(u=r,m=s);const p=r+2*(u-r)/3,g=s+2*(m-s)/3,y=h+2*(u-h)/3,_=d+2*(m-d)/3;t.push({key:"C",data:[p,g,y,_,h,d]}),i=u,l=m,r=h,s=d;break}case"Q":{const[h,d,u,m]=f,p=r+2*(h-r)/3,g=s+2*(d-s)/3,y=u+2*(h-u)/3,_=m+2*(d-m)/3;t.push({key:"C",data:[p,g,y,_,u,m]}),i=h,l=d,r=u,s=m;break}case"A":{const h=Math.abs(f[0]),d=Math.abs(f[1]),u=f[2],m=f[3],p=f[4],g=f[5],y=f[6];h===0||d===0?(t.push({key:"C",data:[r,s,g,y,g,y]}),r=g,s=y):(r!==g||s!==y)&&(No(r,s,g,y,h,d,u,m,p).forEach(function(v){t.push({key:"C",data:v})}),r=g,s=y);break}case"Z":t.push({key:"Z",data:[]}),r=o,s=a;break}n=c}return t}function Ju(e){return Math.PI*e/180}function Ne(e,t,n){const r=e*Math.cos(n)-t*Math.sin(n),s=e*Math.sin(n)+t*Math.cos(n);return[r,s]}function No(e,t,n,r,s,o,a,i,l,c){const f=Ju(a);let h=[],d=0,u=0,m=0,p=0;if(c)[d,u,m,p]=c;else{[e,t]=Ne(e,t,-f),[n,r]=Ne(n,r,-f);const P=(e-n)/2,R=(t-r)/2;let z=P*P/(s*s)+R*R/(o*o);z>1&&(z=Math.sqrt(z),s=z*s,o=z*o);const j=i===l?-1:1,x=s*s,at=o*o,ct=x*at-x*R*R-at*P*P,Re=x*R*R+at*P*P,K=j*Math.sqrt(Math.abs(ct/Re));m=K*s*R/o+(e+n)/2,p=K*-o*P/s+(t+r)/2,d=Math.asin(parseFloat(((t-p)/o).toFixed(9))),u=Math.asin(parseFloat(((r-p)/o).toFixed(9))),e<m&&(d=Math.PI-d),n<m&&(u=Math.PI-u),d<0&&(d=Math.PI*2+d),u<0&&(u=Math.PI*2+u),l&&d>u&&(d=d-Math.PI*2),!l&&u>d&&(u=u-Math.PI*2)}let g=u-d;if(Math.abs(g)>Math.PI*120/180){const P=u,R=n,z=r;l&&u>d?u=d+Math.PI*120/180*1:u=d+Math.PI*120/180*-1,n=m+s*Math.cos(u),r=p+o*Math.sin(u),h=No(n,r,R,z,s,o,a,0,l,[u,P,m,p])}g=u-d;const y=Math.cos(d),_=Math.sin(d),v=Math.cos(u),w=Math.sin(u),O=Math.tan(g/4),A=4/3*s*O,D=4/3*o*O,F=[e,t],U=[e+A*_,t-D*y],lt=[n+A*w,r-D*v],Y=[n,r];if(U[0]=2*F[0]-U[0],U[1]=2*F[1]-U[1],c)return[U,lt,Y].concat(h);{h=[U,lt,Y].concat(h);const P=[];for(let R=0;R<h.length;R+=3){const z=Ne(h[R][0],h[R][1],f),j=Ne(h[R+1][0],h[R+1][1],f),x=Ne(h[R+2][0],h[R+2][1],f);P.push([z[0],z[1],j[0],j[1],x[0],x[1]])}return P}}const Ku={randOffset:Yu,randOffsetWithRange:Xu,ellipse:tr,doubleLineOps:tf};function X(e,t,n,r,s){return{type:"path",ops:ft(e,t,n,r,s)}}function ze(e,t,n){const r=(e||[]).length;if(r>2){const s=[];for(let o=0;o<r-1;o++)s.push(...ft(e[o][0],e[o][1],e[o+1][0],e[o+1][1],n));return t&&s.push(...ft(e[r-1][0],e[r-1][1],e[0][0],e[0][1],n)),{type:"path",ops:s}}else if(r===2)return X(e[0][0],e[0][1],e[1][0],e[1][1],n);return{type:"path",ops:[]}}function Qu(e,t){return ze(e,!0,t)}function Ho(e,t,n,r,s){const o=[[e,t],[e+n,t],[e+n,t+r],[e,t+r]];return Qu(o,s)}function Fs(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,s=tn(r[0],1*(1+t.roughness*.2),t),o=t.disableMultiStroke?[]:tn(r[0],1.5*(1+t.roughness*.22),Bs(t));for(let a=1;a<r.length;a++){const i=r[a];if(i.length){const l=tn(i,1*(1+t.roughness*.2),t),c=t.disableMultiStroke?[]:tn(i,1.5*(1+t.roughness*.22),Bs(t));for(const f of l)f.op!=="move"&&s.push(f);for(const f of c)f.op!=="move"&&o.push(f)}}return{type:"path",ops:s.concat(o)}}return{type:"path",ops:[]}}function tr(e,t,n,r,s){const o=jo(n,r,s);return er(e,t,s,o).opset}function jo(e,t,n){const r=Math.sqrt(Math.PI*2*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),s=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),o=Math.PI*2/s;let a=Math.abs(e/2),i=Math.abs(t/2);const l=1-n.curveFitting;return a+=L(a*l,n),i+=L(i*l,n),{increment:o,rx:a,ry:i}}function er(e,t,n,r){const[s,o]=qs(r.increment,e,t,r.rx,r.ry,1,r.increment*gn(.1,gn(.4,1,n),n),n);let a=yn(s,null,n);if(!n.disableMultiStroke&&n.roughness!==0){const[i]=qs(r.increment,e,t,r.rx,r.ry,1.5,0,n),l=yn(i,null,n);a=a.concat(l)}return{estimatedPoints:o,opset:{type:"path",ops:a}}}function zs(e,t,n,r,s,o,a,i,l){const c=e,f=t;let h=Math.abs(n/2),d=Math.abs(r/2);h+=L(h*.01,l),d+=L(d*.01,l);let u=s,m=o;for(;u<0;)u+=Math.PI*2,m+=Math.PI*2;m-u>Math.PI*2&&(u=0,m=Math.PI*2);const p=Math.PI*2/l.curveStepCount,g=Math.min(p/2,(m-u)/2),y=Us(g,c,f,h,d,u,m,1,l);if(!l.disableMultiStroke){const _=Us(g,c,f,h,d,u,m,1.5,l);y.push(..._)}return a&&(i?y.push(...ft(c,f,c+h*Math.cos(u),f+d*Math.sin(u),l),...ft(c,f,c+h*Math.cos(m),f+d*Math.sin(m),l)):y.push({op:"lineTo",data:[c,f]},{op:"lineTo",data:[c+h*Math.cos(u),f+d*Math.sin(u)]})),{type:"path",ops:y}}function Ws(e,t){const n=Io(xo(_r(e))),r=[];let s=[0,0],o=[0,0];for(const{key:a,data:i}of n)switch(a){case"M":{o=[i[0],i[1]],s=[i[0],i[1]];break}case"L":r.push(...ft(o[0],o[1],i[0],i[1],t)),o=[i[0],i[1]];break;case"C":{const[l,c,f,h,d,u]=i;r.push(...ef(l,c,f,h,d,u,o,t)),o=[d,u];break}case"Z":r.push(...ft(o[0],o[1],s[0],s[1],t)),o=[s[0],s[1]];break}return{type:"path",ops:r}}function jn(e,t){const n=[];for(const r of e)if(r.length){const s=t.maxRandomnessOffset||0,o=r.length;if(o>2){n.push({op:"move",data:[r[0][0]+L(s,t),r[0][1]+L(s,t)]});for(let a=1;a<o;a++)n.push({op:"lineTo",data:[r[a][0]+L(s,t),r[a][1]+L(s,t)]})}}return{type:"fillPath",ops:n}}function $e(e,t){return qu(t,Ku).fillPolygons(e,t)}function Zu(e,t,n,r,s,o,a){const i=e,l=t;let c=Math.abs(n/2),f=Math.abs(r/2);c+=L(c*.01,a),f+=L(f*.01,a);let h=s,d=o;for(;h<0;)h+=Math.PI*2,d+=Math.PI*2;d-h>Math.PI*2&&(h=0,d=Math.PI*2);const u=(d-h)/a.curveStepCount,m=[];for(let p=h;p<=d;p=p+u)m.push([i+c*Math.cos(p),l+f*Math.sin(p)]);return m.push([i+c*Math.cos(d),l+f*Math.sin(d)]),m.push([i,l]),$e([m],a)}function Yu(e,t){return L(e,t)}function Xu(e,t,n){return gn(e,t,n)}
132function tf(e,t,n,r,s){return ft(e,t,n,r,s,!0)}function Bs(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function Vo(e){return e.randomizer||(e.randomizer=new xu(e.seed||0)),e.randomizer.next()}function gn(e,t,n,r=1){return n.roughness*r*(Vo(n)*(t-e)+e)}function L(e,t,n=1){return gn(-e,e,t,n)}function ft(e,t,n,r,s,o=!1){const a=o?s.disableMultiStrokeFill:s.disableMultiStroke,i=nr(e,t,n,r,s,!0,!1);if(a)return i;const l=nr(e,t,n,r,s,!0,!0);return i.concat(l)}function nr(e,t,n,r,s,o,a){const i=Math.pow(e-n,2)+Math.pow(t-r,2),l=Math.sqrt(i);let c=1;l<200?c=1:l>500?c=.4:c=-.0016668*l+1.233334;let f=s.maxRandomnessOffset||0;f*f*100>i&&(f=l/10);const h=f/2,d=.2+Vo(s)*.2;let u=s.bowing*s.maxRandomnessOffset*(r-t)/200,m=s.bowing*s.maxRandomnessOffset*(e-n)/200;u=L(u,s,c),m=L(m,s,c);const p=[],g=()=>L(h,s,c),y=()=>L(f,s,c),_=s.preserveVertices;return a?p.push({op:"move",data:[e+(_?0:g()),t+(_?0:g())]}):p.push({op:"move",data:[e+(_?0:L(f,s,c)),t+(_?0:L(f,s,c))]}),a?p.push({op:"bcurveTo",data:[u+e+(n-e)*d+g(),m+t+(r-t)*d+g(),u+e+2*(n-e)*d+g(),m+t+2*(r-t)*d+g(),n+(_?0:g()),r+(_?0:g())]}):p.push({op:"bcurveTo",data:[u+e+(n-e)*d+y(),m+t+(r-t)*d+y(),u+e+2*(n-e)*d+y(),m+t+2*(r-t)*d+y(),n+(_?0:y()),r+(_?0:y())]}),p}function tn(e,t,n){if(!e.length)return[];const r=[];r.push([e[0][0]+L(t,n),e[0][1]+L(t,n)]),r.push([e[0][0]+L(t,n),e[0][1]+L(t,n)]);for(let s=1;s<e.length;s++)r.push([e[s][0]+L(t,n),e[s][1]+L(t,n)]),s===e.length-1&&r.push([e[s][0]+L(t,n),e[s][1]+L(t,n)]);return yn(r,null,n)}function yn(e,t,n){const r=e.length,s=[];if(r>3){const o=[],a=1-n.curveTightness;s.push({op:"move",data:[e[1][0],e[1][1]]});for(let i=1;i+2<r;i++){const l=e[i];o[0]=[l[0],l[1]],o[1]=[l[0]+(a*e[i+1][0]-a*e[i-1][0])/6,l[1]+(a*e[i+1][1]-a*e[i-1][1])/6],o[2]=[e[i+1][0]+(a*e[i][0]-a*e[i+2][0])/6,e[i+1][1]+(a*e[i][1]-a*e[i+2][1])/6],o[3]=[e[i+1][0],e[i+1][1]],s.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}}else r===3?(s.push({op:"move",data:[e[1][0],e[1][1]]}),s.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):r===2&&s.push(...nr(e[0][0],e[0][1],e[1][0],e[1][1],n,!0,!0));return s}function qs(e,t,n,r,s,o,a,i){const l=i.roughness===0,c=[],f=[];if(l){e=e/4,f.push([t+r*Math.cos(-e),n+s*Math.sin(-e)]);for(let h=0;h<=Math.PI*2;h=h+e){const d=[t+r*Math.cos(h),n+s*Math.sin(h)];c.push(d),f.push(d)}f.push([t+r*Math.cos(0),n+s*Math.sin(0)]),f.push([t+r*Math.cos(e),n+s*Math.sin(e)])}else{const h=L(.5,i)-Math.PI/2;f.push([L(o,i)+t+.9*r*Math.cos(h-e),L(o,i)+n+.9*s*Math.sin(h-e)]);const d=Math.PI*2+h-.01;for(let u=h;u<d;u=u+e){const m=[L(o,i)+t+r*Math.cos(u),L(o,i)+n+s*Math.sin(u)];c.push(m),f.push(m)}f.push([L(o,i)+t+r*Math.cos(h+Math.PI*2+a*.5),L(o,i)+n+s*Math.sin(h+Math.PI*2+a*.5)]),f.push([L(o,i)+t+.98*r*Math.cos(h+a),L(o,i)+n+.98*s*Math.sin(h+a)]),f.push([L(o,i)+t+.9*r*Math.cos(h+a*.5),L(o,i)+n+.9*s*Math.sin(h+a*.5)])}return[f,c]}function Us(e,t,n,r,s,o,a,i,l){const c=o+L(.1,l),f=[];f.push([L(i,l)+t+.9*r*Math.cos(c-e),L(i,l)+n+.9*s*Math.sin(c-e)]);for(let h=c;h<=a;h=h+e)f.push([L(i,l)+t+r*Math.cos(h),L(i,l)+n+s*Math.sin(h)]);return f.push([t+r*Math.cos(a),n+s*Math.sin(a)]),f.push([t+r*Math.cos(a),n+s*Math.sin(a)]),yn(f,null,l)}function ef(e,t,n,r,s,o,a,i){const l=[],c=[i.maxRandomnessOffset||1,(i.maxRandomnessOffset||1)+.3];let f=[0,0];const h=i.disableMultiStroke?1:2,d=i.preserveVertices;for(let u=0;u<h;u++)u===0?l.push({op:"move",data:[a[0],a[1]]}):l.push({op:"move",data:[a[0]+(d?0:L(c[0],i)),a[1]+(d?0:L(c[0],i))]}),f=d?[s,o]:[s+L(c[u],i),o+L(c[u],i)],l.push({op:"bcurveTo",data:[e+L(c[u],i),t+L(c[u],i),n+L(c[u],i),r+L(c[u],i),f[0],f[1]]});return l}function He(e){return[...e]}function Gs(e,t=0){const n=e.length;if(n<3)throw new Error("A curve must have at least three points.");const r=[];if(n===3)r.push(He(e[0]),He(e[1]),He(e[2]),He(e[2]));else{const s=[];s.push(e[0],e[0]);for(let i=1;i<e.length;i++)s.push(e[i]),i===e.length-1&&s.push(e[i]);const o=[],a=1-t;r.push(He(s[0]));for(let i=1;i+2<s.length;i++){const l=s[i];o[0]=[l[0],l[1]],o[1]=[l[0]+(a*s[i+1][0]-a*s[i-1][0])/6,l[1]+(a*s[i+1][
vendor: 4,992 bytes, line 132
1321]-a*s[i-1][1])/6],o[2]=[s[i+1][0]+(a*s[i][0]-a*s[i+2][0])/6,s[i+1][1]+(a*s[i][1]-a*s[i+2][1])/6],o[3]=[s[i+1][0],s[i+1][1]],r.push(o[1],o[2],o[3])}}return r}function nf(e,t){return Math.sqrt(ln(e,t))}function ln(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function rf(e,t,n){const r=ln(t,n);if(r===0)return ln(e,t);let s=((e[0]-t[0])*(n[0]-t[0])+(e[1]-t[1])*(n[1]-t[1]))/r;return s=Math.max(0,Math.min(1,s)),ln(e,_e(t,n,s))}function _e(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n]}function sf(e,t){const n=e[t+0],r=e[t+1],s=e[t+2],o=e[t+3];let a=3*r[0]-2*n[0]-o[0];a*=a;let i=3*r[1]-2*n[1]-o[1];i*=i;let l=3*s[0]-2*o[0]-n[0];l*=l;let c=3*s[1]-2*o[1]-n[1];return c*=c,a<l&&(a=l),i<c&&(i=c),a+i}function rr(e,t,n,r){const s=r||[];if(sf(e,t)<n){const o=e[t+0];s.length?nf(s[s.length-1],o)>1&&s.push(o):s.push(o),s.push(e[t+3])}else{const a=e[t+0],i=e[t+1],l=e[t+2],c=e[t+3],f=_e(a,i,.5),h=_e(i,l,.5),d=_e(l,c,.5),u=_e(f,h,.5),m=_e(h,d,.5),p=_e(u,m,.5);rr([a,f,u,p],0,n,s),rr([p,m,d,c],0,n,s)}return s}function of(e,t){return _n(e,0,e.length,t)}function _n(e,t,n,r,s){const o=s||[],a=e[t],i=e[n-1];let l=0,c=1;for(let f=t+1;f<n-1;++f){const h=rf(e[f],a,i);h>l&&(l=h,c=f)}return Math.sqrt(l)>r?(_n(e,t,c+1,r,o),_n(e,c,n,r,o)):(o.length||o.push(a),o.push(i)),o}function sr(e,t=.15,n){const r=[],s=(e.length-1)/3;for(let o=0;o<s;o++){const a=o*3;rr(e,a,t,r)}return n&&n>0?_n(r,0,r.length,n):r}function af(e,t,n){const r=_r(e),s=Io(xo(r)),o=[];let a=[],i=[0,0],l=[];const c=()=>{l.length>=4&&a.push(...sr(l,t)),l=[]},f=()=>{c(),a.length&&(o.push(a),a=[])};for(const{key:d,data:u}of s)switch(d){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 m=a.length?a[a.length-1]:i;l.push([m[0],m[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 o;const h=[];for(const d of o){const u=of(d,n);u.length&&h.push(u)}return h}const Q="none";class lf{constructor(t){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=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Ro()}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,n,r){return{shape:t,sets:n||[],options:r||this.defaultOptions}}line(t,n,r,s,o){const a=this._o(o);return this._d("line",[X(t,n,r,s,a)],a)}rectangle(t,n,r,s,o){const a=this._o(o),i=[],l=Ho(t,n,r,s,a);if(a.fill){const c=[[t,n],[t+r,n],[t+r,n+s],[t,n+s]];a.fillStyle==="solid"?i.push(jn([c],a)):i.push($e([c],a))}return a.stroke!==Q&&i.push(l),this._d("rectangle",i,a)}ellipse(t,n,r,s,o){const a=this._o(o),i=[],l=jo(r,s,a),c=er(t,n,a,l);if(a.fill)if(a.fillStyle==="solid"){const f=er(t,n,a,l).opset;f.type="fillPath",i.push(f)}else i.push($e([c.estimatedPoints],a));return a.stroke!==Q&&i.push(c.opset),this._d("ellipse",i,a)}circle(t,n,r,s){const o=this.ellipse(t,n,r,r,s);return o.shape="circle",o}linearPath(t,n){const r=this._o(n);return this._d("linearPath",[ze(t,!1,r)],r)}arc(t,n,r,s,o,a,i=!1,l){const c=this._o(l),f=[],h=zs(t,n,r,s,o,a,i,!0,c);if(i&&c.fill)if(c.fillStyle==="solid"){const d=Object.assign({},c);d.disableMultiStroke=!0;const u=zs(t,n,r,s,o,a,!0,!1,d);u.type="fillPath",f.push(u)}else f.push(Zu(t,n,r,s,o,a,c));return c.stroke!==Q&&f.push(h),this._d("arc",f,c)}curve(t,n){const r=this._o(n),s=[],o=Fs(t,r);if(r.fill&&r.fill!==Q)if(r.fillStyle==="solid"){const a=Fs(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(a.ops)})}else{const a=[],i=t;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(...sr(Gs([f[0],f[0],f[1],f[2]]),10,(1+r.roughness)/2)):a.push(...sr(Gs(f),10,(1+r.roughness)/2))}a.length&&s.push($e([a],r))}return r.stroke!==Q&&s.push(o),this._d("curve",s,r)}polygon(t,n){const r=this._o(n),s=[],o=ze(t,!0,r);return r.fill&&(r.fillStyle==="solid"?s.push(jn([t],r)):s.push($e([t],r))),r.stroke!==Q&&s.push(o),this._d("polygon",s,r)}path(t,n){const r=this._o(n),s=[];if(!t)return this._d("path",s,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=r.fill&&r.fill!=="transparent"&&r.fill!==Q,a=r.stroke!==Q,i=!!(r.simplification&&r.simplification<1),l=i?4-4*(r.simplification||1):(1+r.roughness)/2,c=af(t,1,l),f=Ws(t,r);if(o)if(r.fillStyle==="solid")if(c.length===1){const h=Ws(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(h.ops)})}else s.push(jn(c,r));else s.push($e(c,r));
132return a&&(i?c.forEach(h=>{s.push(ze(h,!1,r))}):s.push(f)),this._d("path",s,r)}opsToPath(t,n){let r="";for(const s of t.ops){const o=typeof n=="number"&&n>=0?s.data.map(a=>+a.toFixed(n)):s.data;switch(s.op){case"move":r+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":r+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":r+=`L${o[0]} ${o[1]} `;break}}return r.trim()}toPaths(t){const n=t.sets||[],r=t.options||this.defaultOptions,s=[];for(const o of n){let a=null;switch(o.type){case"path":a={d:this.opsToPath(o),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:Q};break;case"fillPath":a={d:this.opsToPath(o),stroke:Q,strokeWidth:0,fill:r.fill||Q};break;case"fillSketch":a=this.fillSketch(o,r);break}a&&s.push(a)}return s}fillSketch(t,n){let r=n.fillWeight;return r<0&&(r=n.strokeWidth/2),{d:this.opsToPath(t),stroke:n.fill||Q,strokeWidth:r,fill:Q}}_mergedShape(t){return t.filter((n,r)=>r===0?!0:n.op!=="move")}}const Fo="http://www.w3.org/2000/svg",cf=800;let Vn=null;function uf(){return Vn||(Vn=new lf().defaultOptions),Vn}function Fn(e,t,n){return{...uf(),maxRandomnessOffset:2,roughness:e==="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:e!=="double",disableMultiStrokeFill:!1,seed:t,...n}}function ff(e){const t=e.padding;if(t||t===0){if(typeof t=="number")return[t,t,t,t];if(Array.isArray(t)){const n=t;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 df(e,t,n,r,s,o){const a=[];let i=n.strokeWidth||2;const l=ff(n),c=n.animate===void 0?!0:!!n.animate,f=n.iterations||2,h=n.rtl?1:0,d=Fn("single",o,n);switch(n.type){case"underline":{const u=t.y+t.h+l[2];for(let m=h;m<f+h;m++)m%2?a.push(X(t.x+t.w,u,t.x,u,d)):a.push(X(t.x,u,t.x+t.w,u,d));break}case"strike-through":{const u=t.y+t.h/2;for(let m=h;m<f+h;m++)m%2?a.push(X(t.x+t.w,u,t.x,u,d)):a.push(X(t.x,u,t.x+t.w,u,d));break}case"box":{const u=t.x-l[3],m=t.y-l[0],p=t.w+(l[1]+l[3]),g=t.h+(l[0]+l[2]);for(let y=0;y<f;y++)a.push(Ho(u,m,p,g,d));break}case"bracket":{const u=Array.isArray(n.brackets)?n.brackets:n.brackets?[n.brackets]:["right"],m=t.x-l[3]*2,p=t.x+t.w+l[1]*2,g=t.y-l[0]*2,y=t.y+t.h+l[2]*2;for(const _ of u){let v;switch(_){case"bottom":v=[[m,t.y+t.h],[m,y],[p,y],[p,t.y+t.h]];break;case"top":v=[[m,t.y],[m,g],[p,g],[p,t.y]];break;case"left":v=[[t.x,g],[m,g],[m,y],[t.x,y]];break;case"right":v=[[t.x+t.w,g],[p,g],[p,y],[t.x+t.w,y]];break}v&&a.push(ze(v,!1,d))}break}case"crossed-off":{const u=t.x,m=t.y,p=u+t.w,g=m+t.h;for(let y=h;y<f+h;y++)y%2?a.push(X(p,g,u,m,d)):a.push(X(u,m,p,g,d));for(let y=h;y<f+h;y++)y%2?a.push(X(u,g,p,m,d)):a.push(X(p,m,u,g,d));break}case"circle":{const u=Fn("double",o,n),m=t.w+(l[1]+l[3]),p=t.h+(l[0]+l[2]),g=t.x-l[3]+m/2,y=t.y-l[0]+p/2,_=Math.floor(f/2),v=f-_*2;for(let w=0;w<_;w++)a.push(tr(g,y,m,p,u));for(let w=0;w<v;w++)a.push(tr(g,y,m,p,d));break}case"highlight":{const u=Fn("highlight",o,n);i=t.h*.95;const m=t.y+t.h/2;for(let p=h;p<f+h;p++)p%2?a.push(X(t.x+t.w,m,t.x,m,u)):a.push(X(t.x,m,t.x+t.w,m,u));break}}if(a.length){const u=hf(a),m=[],p=[];let g=0;const y=(_,v,w)=>_.setAttribute(v,w);for(const _ of u){const v=document.createElementNS(Fo,"path");if(y(v,"d",_),y(v,"fill","none"),y(v,"stroke",n.color||"currentColor"),y(v,"stroke-width",`${i}`),n.opacity!==void 0&&y(v,"style",`opacity:${n.opacity}`),c){const w=v.getTotalLength();m.push(w),g+=w}e.appendChild(v),p.push(v)}if(c){let _=0;for(let v=0;v<p.length;v++){const w=p[v],O=m[v],A=g?s*(O/g):0,D=r+_,F=w.style;F.strokeDashoffset=`${O}`,F.strokeDasharray=`${O}`,F.animation=`rough-notation-dash ${A}ms ease-out ${D}ms forwards`,_+=A}return Js(s+r)}}return Js(0)}function Js(e){return new Promise(t=>setTimeout(t,e))}function hf(e){const t=[];for(const n of e){let r="";for(const s of n.ops){const o=s.data;switch(s.op){case"move":r.trim()&&t.push(r.trim()),r=`M${o[0]} ${o[1]} `;break;case"bcurveTo":r+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":r+=`L${o[0]} ${o[1]} `;break}}
132r.trim()&&t.push(r.trim())}return t}function pf(){if(!window.__rno_kf_s){const e=window.__rno_kf_s=document.createElement("style");e.textContent="@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }",document.head.appendChild(e)}}var mf=Object.defineProperty,gf=(e,t,n)=>t in e?mf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nt=(e,t,n)=>(gf(e,typeof t!="symbol"?t+"":t,n),n);class yf{constructor(t,n){nt(this,"_state","unattached"),nt(this,"_config"),nt(this,"_resizing",!1),nt(this,"_ro"),nt(this,"_seed",Ro()),nt(this,"_e"),nt(this,"_svg"),nt(this,"_lastSizes",[]),nt(this,"_animationDelay",0),nt(this,"_resizeListener",()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,this._state==="showing"&&this.haveRectsChanged()&&this.show()},400))}),nt(this,"pendingRefresh"),this._e=t,this._config=JSON.parse(JSON.stringify(n)),this.attach()}getConfig(t){return this._config[t]}setConfig(t,n){this._config[t]!==n&&(this._config[t]=n,this.refresh())}get animate(){return this._config.animate}set animate(t){this._config.animate=t}get animationDuration(){return this._config.animationDuration}set animationDuration(t){this._config.animationDuration=t}get iterations(){return this._config.iterations}set iterations(t){this._config.iterations=t}get color(){return this._config.color}set color(t){this._config.color!==t&&(this._config.color=t,this.refresh())}get class(){return this._config.class}set class(t){this._config.class!==t&&(this._config.class=t,this._svg&&this._svg.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" ")))}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(t){this._config.strokeWidth!==t&&(this._config.strokeWidth=t,this.refresh())}get padding(){return this._config.padding}set padding(t){this._config.padding!==t&&(this._config.padding=t,this.refresh())}attach(){if(this._state==="unattached"&&this._e.parentElement){pf();const t=this._svg=document.createElementNS(Fo,"svg");t.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" "));const n=t.style;n.position="absolute",n.top="0",n.left="0",n.overflow="visible",n.pointerEvents="none",n.width="100px",n.height="100px";const r=this._config.type==="highlight";if(this._e.insertAdjacentElement(r?"beforebegin":"afterend",t),this._state="not-showing",r){const s=window.getComputedStyle(this._e).position;(!s||s==="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(t=>{for(const n of t)n.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){const t=this.rects();if(t.length===this._lastSizes.length){for(let n=0;n<t.length;n++)if(!this.isSameRect(t[n],this._lastSizes[n]))return!0}else return!0}return!1}isSameRect(t,n){const r=(s,o)=>Math.round(s)===Math.round(o);return r(t.x,n.x)&&r(t.y,n.y)&&r(t.w,n.w)&&r(t.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(t,n){let r=this._config;n&&(r=JSON.parse(JSON.stringify(this._config)),r.animate=!1);const s=this.rects();let o=0;s.forEach(c=>o+=c.w);const a=r.animationDuration||cf;let i=0;const l=[];for(let c=0;c<s.length;c++){const f=s[c],h=a*(f.w/o);l.push(df(t,s[c],r,i+this._animationDelay+(this._config.delay||0),h,this._seed)),i+=h}return this._lastSizes=s,this._state="showing",await Promise.all(l)}rects(){const t=[];if(this._svg)if(this._config.multiline){const n=this._e.getClientRects();for(let r=0;r<n.length;r++)t.push(this.svgRect(this._svg,n[r]))}else t.push(this.svgRect(this._svg,this._e.getBoundingClientRect()));return t}svgRect(t,n){const r=t.getBoundingClientRect(),s=n;return{x:(s.x||s.left)-(r.x||r.left),y:(s.y||s.top)-(r.y||r.top),w:s.width,h:s.height}}}
132function _f(e,t){return new yf(e,t)}function J(e,t){return e.class=[e.class,t].filter(Boolean).join(" "),e}const Ks={box:e=>Object.assign(e,{type:"box"}),circle:e=>Object.assign(e,{type:"circle"}),underline:e=>Object.assign(e,{type:"underline"}),highlight:e=>Object.assign(e,{type:"highlight"}),"strike-through":e=>Object.assign(e,{type:"strike-through"}),"crossed-off":e=>Object.assign(e,{type:"crossed-off"}),bracket:e=>Object.assign(e,{type:"bracket"}),strike:e=>Object.assign(e,{type:"strike-through"}),cross:e=>Object.assign(e,{type:"crossed-off"}),crossed:e=>Object.assign(e,{type:"crossed-off"}),linethrough:e=>Object.assign(e,{type:"strike-through"}),"line-through":e=>Object.assign(e,{type:"strike-through"}),black:e=>J(e,"text-black"),blue:e=>J(e,"text-blue"),cyan:e=>J(e,"text-cyan"),gray:e=>J(e,"text-gray"),green:e=>J(e,"text-green"),indigo:e=>J(e,"text-indigo"),lime:e=>J(e,"text-lime"),orange:e=>J(e,"text-orange"),pink:e=>J(e,"text-pink"),purple:e=>J(e,"text-purple"),red:e=>J(e,"text-red"),teal:e=>J(e,"text-teal"),white:e=>J(e,"text-white"),yellow:e=>J(e,"text-yellow")},vf=[[/^delay-?(\d+)?$/,(e,t,n)=>{const r=(e[1]?Number.parseInt(e[1]):n)||300;return t.delay=r,t}],[/^(?:op|opacity)-?(\d+)?$/,(e,t,n)=>{const r=(e[1]?Number.parseInt(e[1]):n)||100;return t.opacity=r/100,t}]];function wf(){return{install(e){e.directive("mark",{name:"v-mark",mounted:(t,n)=>{const{isPrintMode:r}=Ae(),s=S(()=>{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(([h,d])=>{if(Ks[h])return l=Ks[h](l,d),!1;for(const[u,m]of vf){const p=h.match(u);if(p)return l=m(p,l,d),!1}return!0});c.length&&console.warn("[Slidev] Invalid modifiers for v-mark:",c);const f={...l,...i};return f.type||="underline",r.value&&(f.animationDuration=1),f}),o=_f(t,s.value),a=an(t,n,s.value.at);if(!a){o.show();return}t.watchStopHandle=Pe(()=>{let i;s.value.class&&(o.class=s.value.class),s.value.color&&(o.color=s.value.color);const l=s.value.at;l===!0?i=!0:l===!1?i=!1:i=a.isActive.value,i!=null&&(i?o.show():o.hide())})},unmounted:t=>{t.watchStopHandle?.()}})}}}function kf(){return{install(e){const t=ga();e.directive("motion",{name:"v-motion",mounted(n,r,s,o){const a=Ce(r,kn),i=Ce(r,ar),l=Ce(r,ir),{currentPage:c,clicks:f,isPrintMode:h}=Ae(),d=s.props={...s.props},u={...d.initial,...d.variants?.["slidev-initial"]},m={...d.enter,...d.variants?.["slidev-enter"]},p={...d.leave,...d.variants?.["slidev-leave"]};delete d.initial,delete d.enter,delete d.leave;const g=`${gr()}-`,y=[];for(const v of Object.keys(d))if(v.startsWith("click-")){const w=v.slice(6),O=w.includes("-")?w.split("-").map(Number):+w,A=g+w;y.push({id:A,at:O,variant:{...d[v]},info:a?.value.calculate(O)}),delete d[v]}y.sort((v,w)=>(Array.isArray(v.at)?v.at[0]:v.at)-(Array.isArray(w.at)?w.at[0]:w.at)),t.created(n,r,s,o),t.mounted(n,r,s,o);const _=n.motionInstance;_.clickIds=y.map(v=>v.id),_.set(u),_.watchStopHandle=tt([i,c,f].filter(Boolean),()=>{const v=Ao.get(n)?.visibilityState.value??"shown";if(!a?.value||!["slide","presenter"].includes(l?.value??"")){const w={...u,...m};for(const{variant:O}of y)Object.assign(w,O);_.set(w)}else if(h.value||i?.value===c.value)if(v==="shown"){const w={...u,...m};for(const{variant:O,info:A}of y)(!A||A.isActive.value)&&Object.assign(w,O);h.value?_.set(w):_.apply(w)}else _.apply(v==="before"?u:p);
132else _.apply((i?.value??-1)>c.value?u:p)},{immediate:!0})},unmounted(n){n.motionInstance.watchStopHandle()}})}}}const bf=[];function Sf(){const e=[];function t(n){if(!N.remote||N.remote===n.query.password)return!0;if(N.remote&&n.query.password===void 0){const r=prompt("Enter password");if(N.remote===r)return!0}return n.params.no?{path:`/${n.params.no}`}:{path:""}}return e.push({name:"entry",path:"/entry",component:()=>k(()=>import("./slidev/entry-CD_BJHP2.js"),__vite__mapDeps([71,2,4,5,72])),beforeEnter:t},{name:"overview",path:"/overview",component:()=>k(()=>import("./slidev/overview-BxIocGtP.js"),__vite__mapDeps([73,1,2,74,75,76,77,78,79,4,5])),beforeEnter:t},{name:"notes",path:"/notes",component:()=>k(()=>import("./slidev/notes-BFTtRXul.js"),__vite__mapDeps([80,2,74,75,81,78,82,4,5])),beforeEnter:t},{name:"notes-edit",path:"/notes-edit",component:()=>k(()=>import("./slidev/notes-edit-B6rT3xUC.js"),__vite__mapDeps([83,2,79,78,82,4,5])),beforeEnter:t},{name:"presenter",path:"/presenter/:no",component:()=>k(()=>import("./slidev/presenter-BFJeMdm7.js"),__vite__mapDeps([84,2,76,77,85,79,3,1,78,4,5,86,74,75,81,87,88,89])),beforeEnter:t},{path:"/presenter",redirect:{path:"/presenter/1"}}),e.push({name:"play",path:"/:no",component:()=>k(()=>import("./slidev/play-D04AH0ks.js"),__vite__mapDeps([90,2,76,77,85,79,3,1,78,4,5,86,82,91]))},{path:"",redirect:{path:"/1"}},{path:"/:pathMatch(.*)*",name:"NotFound",component:()=>k(()=>import("./slidev/404-O62lrnnu.js"),__vite__mapDeps([92,2,4,5,93]))}),bf.reduce((n,r)=>r(n),e)}async function Mf(e){function t(){document.documentElement.style.setProperty("--vh",`${window.innerHeight*.01}px`)}t(),window.addEventListener("resize",t);const n=ya({history:_a("/"),routes:Sf()});e.use(n),e.use(Lu()),e.use(Pu()),e.use(wf()),e.use(Du()),e.use(kf()),e.use(wa,{container:"#twoslash-container"});const r={app:e,router:n};for(const s of Tu)await s(r)}async function $f(){const e=va($u);await Mf(e),e.mount("#app")}$f();export{If as $,Ff as A,Fc as B,nn as C,Jn as D,Hc as E,qf as F,Yf as G,Of as H,fn as I,xf as J,ho as K,Ic as L,Ke as M,jf as N,ad as O,Kf as P,Jf as Q,rt as R,Dc as S,bn as T,Mc as U,Cu as V,so as W,Ea as X,Vf as Y,lr as Z,ii as _,Ae as a,Ge as a0,Hf as a1,Nf as a2,Bf as a3,Wf as a4,rd as a5,nd as a6,ed as a7,et as a8,Lo as a9,Po as aa,ro as ab,fo as ac,Cf as ad,Tc as ae,ar as af,ir as ag,kn as ah,Ec as ai,od as aj,$c as ak,Af as al,Lc as am,gr as an,Gn as ao,ba as ap,xe as aq,uo as ar,en as as,td as at,yo as b,si as c,sd as d,co as e,zf as f,Te as g,Je as h,Ns as i,Nc as j,dn as k,Qf as l,Zf as m,Gf as n,N as o,Lf as p,Pf as q,Bn as r,Ln as s,Xf as t,ei as u,Sr as v,Uf as w,k as x,Rf as y,Df as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.