PageSourceSearch

https://sitecore-astro-demo-presentation.netlify.app/assets/index-B7TgU_Qo.js

js sitecore-astro-demo-presentation.netlify.app collected 2026-10-03 11:24:42 UTC 131,981 bytes, 272 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/md-BC0_S7Iz.js","assets/modules/vue-D3Kwzj76.js","assets/slidev/image.vue_vue_type_script_setup_true_lang-DVQSxax3.js","assets/slidev/context-BAiXtdiw.js","assets/modules/shiki-B7TF6yWh.js","assets/modules/shiki-CozCpemh.css","assets/md-itf_dFec.js","assets/slidev/default-Dnd_fowp.js","assets/md-DgVScOQW.js","assets/background-DT98CjNM.js","assets/md-di1N5v6A.js","assets/md-CWXnYTS7.js","assets/md-DEJKOmBN.js","assets/md-C6bR-Lf5.js","assets/installCanvasRenderer-CoBZKKtH.js","assets/md-DUNu_HEZ.js","assets/modules/file-saver-C8BEGaqa.js","assets/md-D7mj9DLL.css","assets/md-BfTyonSu.js","assets/md-o2EVmhf9.js","assets/md-DGp4wEy-.css","assets/md-BmqNrmtU.js","assets/md-Ciq_46aj.js","assets/md-BLvkj5Yo.css","assets/animation-BlXC-Rv-.css","assets/md-B0vorlnx.js","assets/md-B7iVzdJ6.js","assets/md-D9QW4S96.js","assets/md-D3bqmy1-.css","assets/md-B94YCgC2.js","assets/md-Cm3pkGTP.js","assets/md-gE0CKNCr.js","assets/md-D_p1iJ7e.js","assets/slidev/entry-9ziHTrdE.js","assets/entry-15QH0Q6e.css","assets/slidev/overview-DgxK6WAb.js","assets/modules/unplugin-icons-SPk84Ur5.js","assets/slidev/NoteDisplay.vue_vue_type_style_index_0_lang-TAEU9xFO.js","assets/NoteDisplay-R4MfDMfa.css","assets/slidev/SlideWrapper-BEW69cDZ.js","assets/SlideWrapper-DoEfutxU.css","assets/slidev/IconButton.vue_vue_type_script_setup_true_lang-BI2mJ7Wr.js","assets/slidev/notes-EPuF2nT7.js","assets/slidev/presenter-CRpM3Ebq.js","assets/slidev/shortcuts-U9z0myeJ.js","assets/shortcuts--Adx2Pgt.css","assets/slidev/DrawingControls.vue_vue_type_style_index_0_lang-CXWzG_By.js","assets/DrawingControls-Cxk9a9ub.css","assets/presenter-Dqqe6yma.css","assets/slidev/play-DosqXXeU.js","assets/play-D_7yfuao.css","assets/slidev/404-mtTefC72.js","assets/404-n_Eqdu3W.css"])))=>i.map(i=>d[i]);
2import{z as k,A as tn,B as mo,C as yo,D as Ms,r as A,E as ze,G as vo,H as wo,I as bo,J as As,K as ee,L as Os,M as N,N as ko,O as So,f as nn,o as St,t as _o,d as Ts,i as Mo,F as Ao,g as jn,P,Q as wn,R as Oo,S as $t,p as To,T as Po,U as Co,V as Lo,W as Eo,X as $o,Y as Io,Z as z,_ as Ps,$ as It,a0 as Do,a1 as Cs,a2 as No,a3 as jo,a4 as Ro,a5 as Ls,b as xo,a as Ho,a6 as Fo,a7 as Vo,a8 as Wo,a9 as Bo,aa as zo,ab as qo,ac as Uo,c as Ko}from"./modules/vue-D3Kwzj76.js";import{T as Jo}from"./modules/shiki-B7TF6yWh.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function t(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=t(o);fetch(o.href,r)}})();const I={theme:"default",title:"Sitecore Astro Demo Website",titleTemplate:"%s - Slidev",addons:[],remoteAssets:!1,monaco:!0,monacoTypesSource:"local",monacoTypesAdditionalPackages:[],monacoTypesIgnorePackages:[],monacoRunAdditionalDeps:[],download:!1,export:{},info:!1,highlighter:"shiki",twoslash:!0,lineNumbers:!1,colorSchema:"auto",routerMode:"history",aspectRatio:1.7777777777777777,canvasWidth:980,exportFilename:"",selectable:!1,themeConfig:{},fonts:{sans:['"Avenir Next"','"Nunito Sans"',"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:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:['"Fira Code"',"ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"],webfonts:["Avenir Next","Nunito Sans","Fira Code"],provider:"google",local:["Avenir Next"],italic:!1,weights:["200","400","600"]},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,author:"",record:"dev",css:"unocss",presenter:!0,browserExporter:"dev",htmlAttrs:{},transition:"slide-left",editor:!0,contextMenu:null,wakeLock:!0,mdc:!1,seoMeta:{},src:"./pages/010-cover.md",hide:!1,slidesTitle:"Sitecore Astro Demo Website - Slidev"};function sn(n,e,t){return Math.min(t,Math.max(e,n))}function Go(...n){return Yo(n).reduce((e,t)=>
2e+t,0)}function Qo(n){return n=n??[],Array.isArray(n)?n:[n]}function Yo(n){return Qo(n).flat(1)}function Zo(n){return Array.from(new Set(n))}function Rn(...n){let e,t,s;n.length===1?(e=0,s=1,[t]=n):[e,t,s=1]=n;const o=[];let r=e;for(;r<t;)o.push(r),r+=s||1;return o}function Xo(n){return n!=null}function er(n,e){return Object.fromEntries(Object.entries(n).map(([t,s])=>e(t,s)).filter(Xo))}function Pl(n,e){return new Promise(t=>setTimeout(async()=>{await e?.(),t()},n))}const Cl="build",Es=k(()=>I.aspectRatio),$s=k(()=>I.canvasWidth),tr=k(()=>Math.ceil($s.value/Es.value)),nr=k(()=>er(I.themeConfig||{},(n,e)=>[`--slidev-theme-${n}`,e])),Wt=I.slidesTitle,Ll="/",sr=[],or=new Set(["link","style","script","noscript"]),rr=new Set(["title","titleTemplate","script","style","noscript"]),xn=new Set(["base","meta","link","style","script","noscript"]),ir=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),ar=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),lr=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),cr=new Set(["templateParams","htmlAttrs","bodyAttrs"]),ur=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);function on(n,e={},t){for(const s in n){const o=n[s],r=t?`${t}:${s}`:s;typeof o=="object"&&o!==null?on(o,e,r):typeof o=="function"&&(e[r]=o)}return e}const fr={run:n=>n()},dr=()=>fr,Is=typeof console.createTask<"u"?console.createTask:dr;function hr(n,e){const t=e.shift(),s=Is(t);return n.reduce((o,r)=>o.then(()=>s.run(()=>r(...e))),Promise.resolve())}function pr(n,e){const t=e.shift(),s=Is(t);return Promise.all(n.map(o=>s.run(()=>o(...e))))}function Bt(n,e){for(const t of[...n])t(e)}class gr{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(e,t,s={}){if(!e||typeof t!="function")return()=>{};const o=e;let r;for(;this._deprecatedHooks[e];)r=this._deprecatedHooks[e],e=r.to;if(r&&!s.allowDeprecated){let i=r.message;i||(i=`${o} hook has been deprecated`+(r.to?`, please use ${r.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let s,o=(...r)=>(typeof s=="function"&&s(),s=void 0,o=void 0,t(...r));return s=this.hook(e,o),s}removeHook(e,t){if(this._hooks[e]){const s=this._hooks[e].indexOf(t);s!==-1&&this._hooks[e].splice(s,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t=="string"?{to:t}:t;const s=this._hooks[e]||[];delete this._hooks[e];for(const o of s)this.hook(e,o)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=on(e),s=Object.keys(t).map(o=>this.hook(o,t[o]));return()=>{for(const o of s.splice(0,s.length))o()}}removeHooks(e){const t=on(e);for(const s in t)this.removeHook(s,t[s])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(hr,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(pr,e,...t)}callHookWith(e,t,...s){const o=this._before||this._after?{name:t,args:s,context:{}}:void 0;this._before&&Bt(this._before,o);const r=e(t in this._hooks?[...this._hooks[t]]:[],s);return r instanceof Promise?r.finally(()=>{this._after&&o&&Bt(this._after,o)}):(this._after&&o&&Bt(this._after,o),r)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}}function mr(){return new gr}const yr=["name","property","http-equiv"],vr=new Set(["viewport","description","keywords","robots"]);function Ds(n){const e=n.split(":");return e.length?ur.has(e[1]):!1}function rn(n){const{props:e,tag:t}=n;if(ar.has(t))return t;if(t==="link"&&e.rel==="canonical")return"canonical";if(e.charset)return"charset";if(n.tag==="meta"){for(const s of yr)if(e[s]!==void 0){const o=e[s],r=o.includes(":"),i=vr.has(o),l=!(r||i)&&n.key?`:key:${n.key}`:"";return`${t}:${o}
2${l}`}}if(n.key)return`${t}:key:${n.key}`;if(e.id)return`${t}:id:${e.id}`;if(rr.has(t)){const s=n.textContent||n.innerHTML;if(s)return`${t}:content:${s}`}}function Hn(n){const e=n._h||n._d;if(e)return e;const t=n.textContent||n.innerHTML;return t||`${n.tag}:${Object.entries(n.props).map(([s,o])=>`${s}:${String(o)}`).join(",")}`}function _t(n,e,t){typeof n==="function"&&(!t||t!=="titleTemplate"&&!(t[0]==="o"&&t[1]==="n"))&&(n=n());let o;if(e&&(o=e(t,n)),Array.isArray(o))return o.map(r=>_t(r,e));if(o?.constructor===Object){const r={};for(const i of Object.keys(o))r[i]=_t(o[i],e,i);return r}return o}function wr(n,e){const t=n==="style"?new Map:new Set;function s(o){const r=o.trim();if(r)if(n==="style"){const[i,...a]=r.split(":").map(l=>l.trim());i&&a.length&&t.set(i,a.join(":"))}else r.split(" ").filter(Boolean).forEach(i=>t.add(i))}return typeof e=="string"?n==="style"?e.split(";").forEach(s):s(e):Array.isArray(e)?e.forEach(o=>s(o)):e&&typeof e=="object"&&Object.entries(e).forEach(([o,r])=>{r&&r!=="false"&&(n==="style"?t.set(o.trim(),r):s(o))}),t}function Ns(n,e){return n.props=n.props||{},e&&Object.entries(e).forEach(([t,s])=>{if(s===null){n.props[t]=null;return}if(t==="class"||t==="style"){n.props[t]=wr(t,s);return}if(lr.has(t)){if(["textContent","innerHTML"].includes(t)&&typeof s=="object"){let i=e.type;if(e.type||(i="application/json"),!i?.endsWith("json")&&i!=="speculationrules")return;e.type=i,n.props.type=i,n[t]=JSON.stringify(s)}else n[t]=s;return}const o=String(s),r=t.startsWith("data-");o==="true"||o===""?n.props[t]=r?o:!0:!s&&r&&o==="false"?n.props[t]="false":s!==void 0&&(n.props[t]=s)}),n}function br(n,e){const t=typeof e=="object"&&typeof e!="function"?e:{[n==="script"||n==="noscript"||n==="style"?"innerHTML":"textContent"]:e},s=Ns({tag:n,props:{}},t);return s.key&&or.has(s.tag)&&(s.props["data-hid"]=s._h=s.key),s.tag==="script"&&typeof s.innerHTML=="object"&&(s.innerHTML=JSON.stringify(s.innerHTML),s.props.type=s.props.type||"application/json"),Array.isArray(s.props.content)?s.props.content.map(o=>({...s,props:{...s.props,content:o}})):s}function kr(n,e){if(!n)return[];typeof n=="function"&&(n=n());const t=(o,r)=>{for(let i=0;i<e.length;i++)r=e[i](o,r);return r};n=t(void 0,n);const s=[];return n=_t(n,t),Object.entries(n||{}).forEach(([o,r])=>{if(r!==void 0)for(const i of Array.isArray(r)?r:[r])s.push(br(o,i))}),s.flat()}const Fn=(n,e)=>n._w===e._w?n._p-e._p:n._w-e._w,Vn={base:-10,title:10},Sr={critical:-8,high:-1,low:2},Wn={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}},_r=/@import/,Je=n=>n===""||n===!0;function Mr(n,e){if(typeof e.tagPriority=="number")return e.tagPriority;let t=100;const s=Sr[e.tagPriority]||0,o=n.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Wn;if(e.tag in Vn)t=Vn[e.tag];else if(e.tag==="meta"){const r=e.props["http-equiv"]==="content-security-policy"?"content-security-policy":e.props.charset?"charset":e.props.name==="viewport"?"viewport":null;r&&(t=Wn.meta[r])}else e.tag==="link"&&e.props.rel?t=o.link[e.props.rel]:e.tag==="script"?Je(e.props.async)?t=o.script.async:e.props.src&&!Je(e.props.defer)&&!Je(e.props.async)&&e.props.type!=="module"&&!e.props.type?.endsWith("json")?t=o.script.sync:Je(e.props.defer)&&e.props.src&&!Je(e.props.async)&&(t=o.script.defer):e.tag==="style"&&(t=e.innerHTML&&_r.test(e.innerHTML)?o.style.imported:o.style.sync);return(t||100)+s}function Bn(n,e){const t=typeof e=="function"?e(n):e,s=t.key||String(n.plugins.size+1);n.plugins.get(s)||(n.plugins.set(s,t),n.hooks.addHooks(t.hooks||{}))}function Ar(n={}){const e=mr();e.addHooks(n.hooks||{});const t=!n.document,s=new Map,o=new Map,r=new Set,i={_entryCount:1,plugins:o,dirty:!1,resolvedOptions:n,hooks:e,ssr:t,entries:s,headEntries(){return[...s.values()]},use:a=>Bn(i,a),push(a,l){const c={...l||{}};delete c.head;const f=c._index??i._entryCount++,h={_i:f,input:a,options:c},d={_poll(u=!1){i.dirty=!0,!u&&r.add(f),e.callHook("entries:updated",i)},dispose(){s.delete(f)&&i.invalidate()},patch(u){(!c.mode||c.mode==="server"&&t||c.mode==="client"&&!t)&&(h.input=u,s.set(f,h),d._poll())}};return d.patch(a),d},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await e.callHook("entries:resolve",a);r.size;){const d=r.values().next().value;r.delete(d);const u=s.get(d);if(u){const g={tags:kr(u.input,n.propResolvers||[]).map(p=>Object.assign(p,u.options)),entry:u};await e.callHook("entries:normalize",g),u._tags=g.tags.map((p,m)=>(p._w=Mr(i,p),p._p=(u._i<<10)+m,p._d=rn(p),p))}}let l=!1;a.entries.flatMap(d=>(d._tags||[]).map(u=>({...u,props:{...u.props}}))).sort(Fn).reduce((d,u)=>{const g=String(u._d||u._p);if(!d.has(g))return d.set(g,u);const p=d.get(g);if((u?.tagDuplicateStrategy||(cr.has(u.tag)?"merge":null)||(u.key&&u.key===p.key?"merge":null))==="merge"){const y={...p.props};
2Object.entries(u.props).forEach(([v,w])=>y[v]=v==="style"?new Map([...p.props.style||new Map,...w]):v==="class"?new Set([...p.props.class||new Set,...w]):w),d.set(g,{...u,props:y})}else u._p>>10===p._p>>10&&u.tag==="meta"&&Ds(g)?(d.set(g,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(g,u);return d},a.tagMap);const c=a.tagMap.get("title"),f=a.tagMap.get("titleTemplate");if(i._title=c?.textContent,f){const d=f?.textContent;if(i._titleTemplate=d,d){let u=typeof d=="function"?d(c?.textContent):d;typeof u=="string"&&!i.plugins.has("template-params")&&(u=u.replace("%s",c?.textContent||"")),c?u===null?a.tagMap.delete("title"):a.tagMap.set("title",{...c,textContent:u}):(f.tag="title",f.textContent=u)}}a.tags=Array.from(a.tagMap.values()),l&&(a.tags=a.tags.flat().sort(Fn)),await e.callHook("tags:beforeResolve",a),await e.callHook("tags:resolve",a),await e.callHook("tags:afterResolve",a);const h=[];for(const d of a.tags){const{innerHTML:u,tag:g,props:p}=d;if(ir.has(g)&&!(Object.keys(p).length===0&&!d.innerHTML&&!d.textContent)&&!(g==="meta"&&!p.content&&!p["http-equiv"]&&!p.charset)){if(g==="script"&&u){if(p.type?.endsWith("json")){const m=typeof u=="string"?u:JSON.stringify(u);d.innerHTML=m.replace(/</g,"\\u003C")}else typeof u=="string"&&(d.innerHTML=u.replace(new RegExp(`</${g}`,"g"),`<\\/${g}`));d._d=rn(d)}h.push(d)}}return h},invalidate(){for(const a of s.values())r.add(a._i);i.dirty=!0,e.callHook("entries:updated",i)}};return(n?.plugins||[]).forEach(a=>Bn(i,a)),i.hooks.callHook("init",i),n.init?.forEach(a=>a&&i.push(a)),i}const Or=(n,e)=>mo(e)?tn(e):e,js="usehead";function Tr(n){return{install(t){t.config.globalProperties.$unhead=n,t.config.globalProperties.$head=n,t.provide(js,n)}}.install}function Pr(){if(yo()){const n=Ms(js);if(!n)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return n}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function Cr(n,e={}){const t=e.head||Pr();return t.ssr?t.push(n||{},e):Lr(t,n,e)}function Lr(n,e,t={}){const s=A(!1);let o;return ze(()=>{const i=s.value?{}:_t(e,Or);o?o.patch(i):o=n.push(i,t)}),As()&&(vo(()=>{o.dispose()}),wo(()=>{s.value=!0}),bo(()=>{s.value=!1})),o}function an(n){if(n===!1||n==="false")return null;if(n==null||n===!0||n==="true")return"+1";if(typeof n=="string"&&"+-".includes(n[0]))return n;const e=+n;return Number.isNaN(e)?(console.error(`Invalid "at" prop value: ${n}`),null):e<=0?(console.warn(`[Slidev] "at" prop value must be greater than 0, but got ${n}, has been set to 1`),1):e}function Er(n){return Array.isArray(n)?[an(n[0]),an(n[1])]:null}function Rs(n,e=0,t){const s=A(!1);let o=new Map,r=new Map;const i={get current(){return sn(+n.value,e,i.total)},set current(a){n.value=s.value?sn(a,e,i.total):a},clicksStart:e,get relativeSizeMap(){return o},get maxMap(){return r},get isMounted(){return s.value},setup(){Os(()=>{s.value=!0,r=N(r),ko(n)||(i.current=n.value)}),So(()=>{s.value=!1,o=new Map,r=new Map})},calculateSince(a,l=1){const c=an(a);if(c==null)return null;let f,h,d;if(typeof c=="string"){const u=i.currentOffset,g=+c;f=u+g,h=u+g+l-1,d=g+l-1}else f=c,h=c+l-1,d=0;return{start:f,end:+Number.POSITIVE_INFINITY,max:h,delta:d,currentOffset:k(()=>i.current-f),isCurrent:k(()=>i.current===f),isActive:k(()=>i.current>=f)}},calculateRange(a){const l=Er(a);if(l==null)return null;const[c,f]=l;let h,d,u;return typeof c=="string"?(h=i.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:k(()=>i.current-h),isCurrent:k(()=>i.current===h),isActive:k(()=>h<=i.current&&i.current<d)}},calculate(a){return Array.isArray(a)?i.calculateRange(a):i.calculateSince(a)},register(a,l){if(!l)return;const{delta:c,max:f}=l;o.set(a,c),r.set(a,f)},unregister(a){o.delete(a),r.delete(a)},get currentOffset(){return Go(...o.values())},get total(){return t??(s.value?Math.max(0,...r.values()):0)}};return i}function $r(n,e=0){const t=n?.meta.slide?.frontmatter.clicksStart??0,s=A(Math.max(tn(e),t));return ee(()=>tn(e),o=>{s.value=Math.max(o,t)}),Rs(s,t,n?.meta?.clicks)}const Ir="modulepreload",Dr=function(n){return"/"+n},zn={}
2,T=function(e,t,s){let o=Promise.resolve();if(t&&t.length>0){let l=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=i?.nonce||i?.getAttribute("nonce");o=l(t.map(c=>{if(c=Dr(c),c in zn)return;zn[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":Ir,f||(d.as="script"),d.crossOrigin="",d.href=c,a&&d.setAttribute("nonce",a),document.head.appendChild(d),f)return new Promise((u,g)=>{d.addEventListener("load",u),d.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return o.then(i=>{for(const a of i||[])a.status==="rejected"&&r(a.reason);return e().catch(r)})},Nr=(n,e)=>{const t=n.__vccOpts||n;for(const[s,o]of e)t[s]=o;return t},jr={},Rr={class:"px-4 py-10 text-center text-red-700 dark:text-red-500 font-bold font-mono"};function xr(n,e){return St(),nn("div",Rr,_o("Failed to fetch this slide. Please check your network connection."))}const j=Nr(jr,[["render",xr]]),Hr={class:"h-full w-full flex items-center justify-center gap-2 slidev-slide-loading"},Fr=Ts({__name:"SlideLoading",setup(n){const e=A(!1);return Os(()=>{setTimeout(()=>{e.value=!0},200)}),(t,s)=>(St(),nn("div",Hr,[e.value?(St(),nn(Ao,{key:0},[s[0]||(s[0]=jn("div",{class:"i-svg-spinners-90-ring-with-bg text-xl"},null,-1)),s[1]||(s[1]=jn("div",null,"Loading slide...",-1))],64)):Mo("v-if",!0)]))}}),Vr={theme:"seriph",layout:"image",title:"Sitecore Astro Demo Website",info:`## Slidev Starter Template
3Presentation slides for developers.
4
5Learn more at [Sli.dev](https://sli.dev)
6`,class:"text-center",drawings:{persist:!1},transition:"slide-left",mdc:!0,hide:!1},de=P(Vr),Wr=N({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:"-kdd52d",frontmatterRaw:`# You can also start simply with 'default'
7theme: seriph
8# random image from a curated Unsplash collection by Anthony
9# like them? see https://unsplash.com/collections/94734566/slidev
10#background: ./pages/images/010-start/background.png
11#image: ./pages/images/010-start/background.png
12layout: image
13# some information about your slides (markdown enabled)
14title: Sitecore Astro Demo Website
15info: |
16  ## Slidev Starter Template
17  Presentation slides for developers.
18
19  Learn more at [Sli.dev](https://sli.dev)
20# apply unocss classes to the current slide
21class: text-center
22# https://sli.dev/features/drawing
23drawings:
24  persist: false
25# slide transition: https://sli.dev/guide/animations.html#slide-transitions
26transition: slide-left
27# enable MDC Syntax: https://sli.dev/features/mdc
28mdc: true
29# open graph
30# seoMeta:
31#  ogImage: https://cover.sli.dev
32`,note:"",title:"Sitecore Astro Demo Website",index:0,noteHTML:`<h1>Sitecore Astro Demo Website</h1>
33<p>Hello everyone!</p>
34<p>Initially, I wanted to present it on some big event. But unfortunately, this presentation was note selected to for Sitecore Symposium. So, it is here.</p>
35<p>Today we will talk about Sitecore Astro Demo Website. Why did we do it? How did we do it?
36And what results did we achieve compared to traditional Next.js approach.</p>
37`,raw:"",frontmatter:de,filepath:"",start:0,id:0,no:1},__clicksContext:null,__preloaded:!1}),Br={title:"Anton Tishchenko",hide:!1,transition:"slide-left"},he=P(Br),zr=N({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:"-arljjv",frontmatterRaw:`title: Anton Tishchenko
38`,note:"",title:"Anton Tishchenko",index:1,noteHTML:`<p>Let me introduce myself.</p>
39<p>My name is Anton Tishchenko. I am co-founder and CTO of Sitecore development company EXDST.</p>
40<p>I am already in Sitecore development for 12 years and started as Sitecore employee.
41I was recognized as Sitecore MVP for 7 times starting from 2019.</p>
42<p>And you probably heard about me if you read about Sitecore and Astro or Sitecore MCP server.</p>
43`,raw:"",frontmatter:he,filepath:"",start:0,id:1,no:2},__clicksContext:null,__preloaded:!1}),qr={theme:"seriph",layout:"image",title:"Sitecore - Astro",info:`## Slidev Starter Template
44Presentation slides for developers.
45
46Learn more at [Sli.dev](https://sli.dev)
47`,class:"text-center",drawings:{persist:!1},transition:"slide-left",mdc:!0,hide:!1},pe=P(qr),Ur=N({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:"-r86t7d",frontmatterRaw:`# You can also start simply with 'default'
48theme: seriph
49# random image from a curated Unsplash collection by Anthony
50# like them? see https://unsplash.com/collections/94734566/slidev
51#background: ./pages/images/010-start/background.png
52#image: ./pages/images/000-demo-portal/background.png
53layout: image
54# some information about your slides (markdown enabled)
55title: Sitecore - Astro
56info: |
57  ## Slidev Starter Template
58  Presentation slides for developers.
59
60  Learn more at [Sli.dev](https://sli.dev)
61# apply unocss classes to the current slide
62class: text-center
63# https://sli.dev/features/drawing
64drawings:
65  persist: false
66# slide transition: https://sli.dev/guide/animations.html#slide-transitions
67transition: slide-left
68# enable MDC Syntax: https://sli.dev/features/mdc
69mdc: true
70# open graph
71# seoMeta:
72#  ogImage: https://cover.sli.dev
73`,note:"",title:"Sitecore - Astro",index:2,noteHTML:`<h1>Sitecore Demo Portal</h1>
74<p>Let's start from demo part.
75I will configure new website that is Astro based on Sitecore Demo Portal.</p>
76<h2>It is time to check how is our Sitecore Demo Portal. Was it deployed?</h2>
77`,raw:"",frontmatter:pe,filepath:"",start:0,id:2,no:3},__clicksContext:null,__preloaded:!1}),Kr={hide:!1,transition:"slide-left"},ge=P(Kr),Jr=N({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:"-94igmb",note:"",title:"Refresher",level:1,index:3,noteHTML:`<p>Now let's back to the presentation.
78Sitecore AStro SDK was presented before on SUGCON by Vasyl Gavryliuk and on SUG LATAM by myself. If you want to understand key benefits of Astro compared to different frameworks, including Next.js. You can view these presentations.</p>
79<p>I will make only small recap here to avoid repeating myself! ==&gt;</p>
80`,raw:"",frontmatter:ge,filepath:"",start:0,id:3,no:4},__clicksContext:null,__preloaded:!1}),Gr={hide:!1,transition:"slide-left"},me=P(Gr),Qr=N({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:"-yvajyc",note:"",title:"Key Astro Advantages",level:1,index:4,noteHTML:`<p>The key advantages of Astro are speed, UI agnostics, Islands architecture, easiness to use and content focused.</p>
81<p>How do they achieve it? Please review mine or Vasyl presentations.</p>
82<p>The main thing for us is that <strong>Astro is content-focused</strong>! And what else is <strong>content-focused</strong>? - Sitecore!</p>
83<p>That is why Astro and Sitecore could be the perfect match for your content website.</p>
84`,raw:"",frontmatter:me,filepath:"",start:0,id:4,no:5},__clicksContext:null,__preloaded:!1}),Yr={hide:!1,transition:"slide-left"},ye=P(Yr),Zr=N({get layout(){return ye.layout},get transition(){return ye.transition},get class(){return ye.class},get clicks(){return ye.clicks},get name(){return ye.name},get preload(){return ye.preload},slide:{content:"",revision:"-6bh1uu",note:"",title:"Motivation for Demo Website Implementation",level:1,index:5,noteHTML:`<p>We built Astro SDK some time ago. It is feature equal and it is much faster than Next.js.
85But it didn't get big popularity.</p>
86<p>In order to improve awareness and easiness to try, we decided to build Astro Demo Website.</p>
87<p>Fortunately for us Sitecore Demo Portal has ability to run custom demos.
88That is why we took the official Sitecore Next.js Verticals Demo and decided to migrate it on Astro.</p>
89`,raw:"",frontmatter:ye,filepath:"",start:0,id:5,no:6},__clicksContext:null,__preloaded:!1}),Xr={hide:!1,transition:"slide-left"},ve=P(Xr),ei=N({get layout(){return ve.layout},get transition(){return ve.transition},get class(){return ve.class},get clicks(){return ve.clicks},get name(){return ve.name},get preload(){return ve.preload},slide:{content:"",revision:"pl5px0",note:"",title:"Process",level:1,index:6,noteHTML:`<p>Here is approximate Gant Diagram of the process.</p>
90<ol>
91<li>At the first state we left all component on React and moved only layout to Astro. Astro is UI Agnostics and allows it. And even after finishing stage 1, we already had a website that was faster that it's twin on Next.js.</li>
92<li>The we took components one by one and migrated them from React to Astro.
93Migration was done manually and took some time. Taking into account modern development of AI, I think that probably it might be done automatically, with minimum human interactions.
94If you are interested, it might be some future presentation.</li>
95<li>Meanwhile we also worked on CI/CD changes to make Sitecore Demo Portal work with Astro</li>
96<li>And middlewares: for multilanguage, multisite, redirects</li>
97<li>Then we covered all pages with Backstop.js, pixel-perfect testing. To make sure that website will be same. And fixed some issues.</li>
98<li>And as final phase, we made performance testing of our new Astro Demo and existing official Sitecore Next.js Demo.</li>
99</ol>
100`,raw:"",frontmatter:ve,filepath:"",start:0,id:6,no:7},__clicksContext:null,__preloaded:!1}),ti={layout:"default",hide:!1,transition:"slide-left"},we=P(ti),ni=N({get layout(){return we.layout},get transition(){return we.transition},get class(){return we.class},get clicks(){return we.clicks},get name(){return we.name},get preload(){return we.preload},slide:{content:"",revision:"3iyf0d",note:"",title:"Code Comparison: App Promo Component",level:1,index:7,noteHTML:`<p>Here is how typical task in our migration process looked like.</p>
101<p>
101We took component: in this case it is App Promo, it is written on React.
102And migrated to Astro syntax.</p>
103<p>It is a matter of taste, which code you like more. Astro code, usually was a little bit shorter and more like HTML. It will not be a problem for any frontend developer to write Astro code. You don't need to learn a lot.</p>
104`,raw:"",frontmatter:we,filepath:"",start:0,id:7,no:8},__clicksContext:null,__preloaded:!1}),si={hide:!1,transition:"slide-left"},be=P(si),oi=N({get layout(){return be.layout},get transition(){return be.transition},get class(){return be.class},get clicks(){return be.clicks},get name(){return be.name},get preload(){return be.preload},slide:{content:"",revision:"jhn309",note:"",title:"What is included?",level:1,index:8,noteHTML:`<p>So, what is it included.</p>
105<ul>
106<li>Multisite configuration with 3 websites in 3 different languages.</li>
107<li>42 components!</li>
108<li>You can run it on Sitecore XM/XP or with Sitecore XM Cloud.</li>
109<li>On Sitecore Demo Portal, locally in Docker or on on prem hosting.</li>
110<li>Frontend part could be hosted in any modern hostings, including Vercel and Netlify</li>
111<li>Total amount of pages is 140</li>
112<li>And also we wrote tests for regression and performance based on Backstop.js and Lighthouse.</li>
113</ul>
114`,raw:"",frontmatter:be,filepath:"",start:0,id:8,no:9},__clicksContext:null,__preloaded:!1}),ri={hide:!1,transition:"slide-left",layout:"default"},ke=P(ri),ii=N({get layout(){return ke.layout},get transition(){return ke.transition},get class(){return ke.class},get clicks(){return ke.clicks},get name(){return ke.name},get preload(){return ke.preload},slide:{content:"",revision:"pj21e4",frontmatterRaw:"",note:"",title:"Features List",level:1,index:9,noteHTML:`<p>If we compare Astro with Next.js as frameworks the some additional features will be present in Astro. Some, will be present in Next.js.</p>
115<p>It makes sense to compare only Next.js features that are used by official Sitecore Verticals Demo website. And all these features are supported by our Astro implementation.</p>
116<p>Nothing is missed.
117Everything is present, including SXA Headless feature like rendering variants, partial designs, row/column splitters.</p>
118`,raw:"",frontmatter:ke,filepath:"",start:0,id:9,no:10},__clicksContext:null,__preloaded:!1}),ai={layout:"default",hide:!1,transition:"slide-left"},Se=P(ai),li=N({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:"11rans",frontmatterRaw:"",note:"",title:"Performance Analysis: Methodology",level:1,index:10,noteHTML:`<ul>
119<li>
120<p>We have two exact websites. We are sure that they looks the same.</p>
121</li>
122<li>
123<p>We run Backstop.js to compare them to be pixel-perfect.</p>
124</li>
125<li>
126<p>One website is on Next.js, second is on Astro. Both 140 pages. It is ideal case to compare performance.</p>
127</li>
128<li>
129<p>We used strict approach to make the performance results be reproducible. Anyone can take our testing script and run it.</p>
130</li>
131<li>
132<p>We used the same hosting: Vercel ISR</p>
133</li>
134<li>
135<p>We used the same Sitecore XM Cloud based instance</p>
136</li>
137<li>
138<p>We didn't select it, we used the default Sitecore Demo Portal setup.</p>
139</li>
140<li>
141<p>For each page we make warm-up call before testing. It simulates typical visitor situation, when all possible server caches are present.</p>
142</li>
143<li>
144<p>We make 5 request to each page and calculate average result</p>
145</li>
146</ul>
147<p>Are you ready to see them?</p>
148`,raw:"",frontmatter:Se,filepath:"",start:0,id:10,no:11},__clicksContext:null,__preloaded:!1}),ci={layout:"default",hide:!1,transition:"slide-left"},_e=P(ci),ui=N({get layout(){return _e.layout},get transition(){return _e.transition},get class(){return _e.class},get clicks(){return _e.clicks},get name(){return _e.name},get preload(){return _e.preload},slide:{content:"",revision:"-3rset7",frontmatterRaw:"",note:"",title:"Performance Analysis: Lighthouse",level:1,index:11,noteHTML:`<p>Here they are. We got +15 score only by changing technology from Next.js to Astro.
149We are not proud of 80 score, we know what and how should be improved.</p>
150<p>But here the task was to build exact the same website: pixel perfect, including animations.</p>
151<p>And that is actually, huge improvement!
152Let's see the details!</p>
153`,raw:"",frontmatter:_e,filepath:"",start:0,id:11,no:12},__clicksContext:null,__preloaded:!1}),fi={layout:"default",hide:!1,transition:"slide-left"},Me=P(fi),di=N({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:"-nwcu3k",note:"",title:"Performance Analysis: Lighthouse",level:1,index:12,noteHTML:`<p>Here is detailed table on how Lighthouse score is calculated.
154It contains from First Contentful Paint, Largest Contentful Paint, Speed Index, Total Blocking Time and Cumulative Layout Shift.</p>
155<p>The biggest improvements are in First Contentful Paint. Plus five.
156And this plus five in score correspond to almost minus two seconds.
157It was 4 seconds on Next.js and now it is 2 seconds on Astro. It is huge!</p>
158<p>The next big improvement is in Largest Contentful Paint. +7 in score, which correspond to minus 3 seconds. Previously it was 8 seconds, now it is 5. Another big improvement.</p>
159<p>And together with small Speed Index improvement, we get +15 for final score.</p>
160<p>That were average results fro 140 pages. Let's look on pages distribution.</p>
161`,raw:"",frontmatter:Me,filepath:"",start:0,id:12,no:13},__clicksContext:null,__preloaded:!1}),hi={layout:"default",hide:!1,transition:"slide-left"},Ae=P(hi),pi=N({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:"2yg4g0",frontmatterRaw:"",note:"",title:"Performance Analysis: Improvement per Page",level:1,index:13,noteHTML:`<p>There is no page that is slower on Astro. All of them get some improvements:
162Some get +8 to score, some get +30.</p>
163<p>The common rule is: the more complex(the more components page has) is the page, the bigger improvement.</p>
164`,raw:"",frontmatter:Ae,filepath:"",start:0,id:13,no:14},__clicksContext:null,__preloaded:!1}),gi={layout:"default",hide:!1,transition:"slide-left"},Oe=P(gi),mi=N({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:"uyym88",note:"",title:"Conclusions",level:1,index:14,noteHTML:`<p>We developed an open-source Astro SDK for Sitecore. It enables you to create blazing-fast websites.</p>
165<p>We made a demo website on Astro. It is a copy on existing, official demo on Next.js. One to one. You can check it, you can try it. You can use it as starting point.
166Astro demo is much more faster than Next.js demo.</p>
167<p>And Astro was, is and will be the most easiest way to get fast Sitecore website!</p>
168`,raw:"",frontmatter:Oe,filepath:"",start:0,id:14,no:15},__clicksContext:null,__preloaded:!1}),yi={theme:"seriph",layout:"image",title:"Sitecore - Astro",info:`## Slidev Starter Template
169Presentation slides for developers.
170
171Learn more at [Sli.dev](https://sli.dev)
172`,class:"text-center",drawings:{persist:!1},transition:"slide-left",mdc:!0,hide:!1},Te=P(yi),vi=N({get layout(){return Te.layout},get transition(){return Te.transition},get class(){return Te.class},get clicks(){return Te.clicks},get name(){return Te.name},get preload(){return Te.preload},slide:{content:"",revision:"-r86t7d",frontmatterRaw:`# You can also start simply with 'default'
173theme: seriph
174# random image from a curated Unsplash collection by Anthony
175# like them? see https://unsplash.com/collections/94734566/slidev
176#background: ./pages/images/010-start/background.png
177#image: ./pages/images/000-demo-portal/background.png
178layout: image
179# some information about your slides (markdown enabled)
180title: Sitecore - Astro
181info: |
182  ## Slidev Starter Template
183  Presentation slides for developers.
184
185  Learn more at [Sli.dev](https://sli.dev)
186# apply unocss classes to the current slide
187class: text-center
188# https://sli.dev/features/drawing
189drawings:
190  persist: false
191# slide transition: https://sli.dev/guide/animations.html#slide-transitions
192transition: slide-left
193# enable MDC Syntax: https://sli.dev/features/mdc
194mdc: true
195# open graph
196# seoMeta:
197#  ogImage: https://cover.sli.dev
198`,note:"",title:"Sitecore - Astro",index:15,noteHTML:`<h1>Sitecore Demo Portal</h1>
199<p>Let's start from demo part.
200I will configure new website that is Astro based on Sitecore Demo Portal.</p>
201<h2>It is time to check how is our Sitecore Demo Portal. Was it deployed?</h2>
202`,raw:"",frontmatter:Te,filepath:"",start:0,id:15,no:16},__clicksContext:null,__preloaded:!1}),wi={layout:"default",hide:!1,transition:"slide-left"},Pe=P(wi),bi=N({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:"-q8pan2",note:"",title:"Links",level:1,index:16,noteHTML:`<p>That is it. Here is QR code that leads you into this presentation. It includes links to blog posts, videos and GitHub, where you can learn more about Astro and Astro Demo website.</p>
203<p>Now, I am ready to answer any your questions!</p>
204`,raw:"",frontmatter:Pe,filepath:"",start:0,id:16,no:17},__clicksContext:null,__preloaded:!1}),ki={layout:"default",hide:!1,transition:"slide-left"},Ce=P(ki),Si=N({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:"-yagwqh",note:"",title:"Sitecore Content SDK",level:1,index:17,noteHTML:`<p>You may say that we compare with Sitecore JSS and we should compare with Sitecore Content SDK.</p>
205<p>Probably, but our Astro Demo was done winter 2025. There was no Sitecore Content SDK at that time.</p>
206<p>Content SDK was recently released. And it doesn't have any proper demo on Sitecore Demo Portal. There is nothing to compare with.</p>
207<p>Sitecore Content SDK is definitely faster than Sitecore JSS.
208But it will not be faster than Astro. Once they have a demo, we will be able to compare.</p>
209`,raw:"",frontmatter:Ce,filepath:"",start:0,id:17,no:18},__clicksContext:null,__preloaded:!1}),_i={layout:"default",hide:!1,transition:"slide-left"},Le=P(_i),Mi=N({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:"jeamug",note:"",title:"Sitecore Next.js App Router",level:1,index:18,noteHTML:`<p>Another thing that you may suggest: Next.js App Router.
210That Sitecore at some point may add support for it.</p>
211<p>I thought about it. And I even made a working Sitecore JSS prototype with layouts, placeholders components. And it was not faster if we compare to the current implementation that is based on Sitecore</p>
212<p>We will see... But I don't have a big hope on App Router support.</p>
213`,raw:"",frontmatter:Le,filepath:"",start:0,id:18,no:19},__clicksContext:null,__preloaded:!1}),F=new Array(19),x=(n,e)=>Oo({loader:e,delay:300,loadingComponent:Fr,errorComponent:j,onError:t=>console.error("Failed to load slide "+(n+1),t)}),qn=async()=>{try{return F[0]??=await T(()=>import("./md-BC0_S7Iz.js"),__vite__mapDeps([0,1,2,3,4,5]))}catch(n){return console.error("slide failed to load",n),j}},Un=async()=>{try{return F[1]??=await T(()=>import("./md-itf_dFec.js"),__vite__mapDeps([6,1,7,3,4,5]))}catch(n){return console.error("slide failed to load",n),j}},Kn=async()=>{try{return F[2]??=await T(()=>import("./md-DgVScOQW.js"),__vite__mapDeps([8,1,9,2,3,4,5]))}catch(n){return console.error("slide failed to load",n),j}},Jn=async()=>{try{return F[3]??=await T(()=>import("./md-di1N5v6A.js"),__vite__mapDeps([10,1,7,3,4,5]))}catch(n){return console.error("slide failed to load",n),j}},Gn=async()=>{try{return F[4]??=await T(()=>import("./md-CWXnYTS7.js"),__vite__mapDeps([11,1,7,3,4,5]))}catch(n){return console.error("slide failed to load",n),j}},Qn=async()=>{try{return F[5]??=await T(()=>import("./md-DEJKOmBN.js"),__vite__mapDeps([12,1,7,3,4,5]))}catch(n){return console.error("slide failed to load",n),j}},Yn=async()=>{try{return F[6]??=await T(()=>import("./md-C6bR-Lf5.js"),__vite__mapDeps([13,1,3,14,7,4,5]))}catch(n){return console.error("slide failed to load",n),j}},Zn=async()=>{try{return F[7]??=await T(()=>import("./md-DUNu_HEZ.js"),__vite__mapDeps([15,1,16,3,7,4,5,17]))}catch(n){return console.error("slide failed to load",n),j}},Xn=async()=>{try{return F[8]??=await T(()=>import("./md-BfTyonSu.js"),__vite__mapDeps([18,1,7,3,4,5]))}catch(n){return console.error("slide failed to load",n),j}},es=async()=>{try{return F[9]??=await T(()=>import("./md-o2EVmhf9.js"),__vite__mapDeps([19,1,3,7,4,5,20]))}catch(n){return console.error("slide failed to load",n),j}},ts=async()=>{try{return F[10]??=await T(()=>import("./md-BmqNrmtU.js"),__vite__mapDeps([21,1,7,3,4,5]))}catch(n){return console.error("slide failed to load",n),j}},ns=async()=>{try{return F[11]??=await T(()=>import("./md-Ciq_46aj.js"),__vite__mapDeps([22,1,7,3,4,5,23,24]))}catch(n){return console.error("slide failed to load",n),j}},ss=async()=>{try{return F[12]??=await T(()=>import("./md-B0vorlnx.js"),__vite__mapDeps([25,1,7,3,4,5]))}catch(n){return console.error("slide failed to load",n),j}},os=async()=>{try{return F[13]??=await T(()=>import("./md-B7iVzdJ6.js"),__vite__mapDeps([26,1,7,3,14,4,5]))}catch(n){return console.error("slide failed to load",n),j}},rs=async()=>{try{return F[14]??=await T(()=>import("./md-D9QW4S96.js"),__vite__mapDeps([27,1,3,7,4,5,28,24]))}catch(n){return console.error("slide failed to load",n),j}},is=async()=>{try{return F[15]??=await T(()=>import("./md-B94YCgC2.js"),__vite__mapDeps([29,1,9,2,3,4,5]))}catch(n){return console.error("slide failed to load",n),j}},as=async()=>{try{return F[16]??=await T(()=>import("./md-Cm3pkGTP.js"),__vite__mapDeps([30,1,7,3,4,5]))}catch(n){return console.error("slide failed to load",n),j}},ls=async()=>{try{return F[17]??=await T(()=>import("./md-gE0CKNCr.js"),__vite__mapDeps([31,1,7,3,4,5]))}catch(n){return console.error("slide failed to load",n),j}},cs=async()=>{try{return F[18]??=await T(()=>import("./md-D_p1iJ7e.js"),__vite__mapDeps([32,1,7,3,4,5]))}catch(n){return console.error("slide failed to load",n),j}},Ai=[{no:1,meta:Wr,load:qn,component:x(0,qn)},{no:2,meta:zr,load:Un,component:x(1,Un)},{no:3,meta:Ur,load:Kn,component:x(2,Kn)},{no:4,meta:Jr,load:Jn,component:x(3,Jn)},{no:5,meta:Qr,load:Gn,component:x(4,Gn)},{no:6,meta:Zr,load:Qn,component:x(5,Qn)},{no:7,meta:ei,load:Yn,component:x(6,Yn)},{no:8,meta:ni,load:Zn,component:x(7,Zn)},{no:9,meta:oi,load:Xn,component:x(8,Xn)},{no:10,meta:ii,load:es,component:x(9,es)},{no:11,meta:li,load:ts,component:x(10,ts)},{no:12,meta:ui,load:ns,component:x(11,ns)},{no:13,meta:di,load:ss,component:x(12,ss)},{no:14,meta:pi,load:os,component:x(13,os)},{no:15,meta:mi,load:rs,component:x(14,rs)},{no:16,meta:vi,load:is,component:x(15,is)},{no:17,meta:bi,load:as,component:x(16,as)},{no:18,meta:Si,load:ls,component:x(17,ls)},{no:19,meta:Mi,load:cs,component:x(18,cs)}],se=wn(Ai);function xs(n,e){if(!e||e==="all"||e==="*")return Rn(1,n+1);if(e==="none")return[];const t=[];for(const s of e.split(/[,;]/g))if(!s.includes("-"))t.push(+s);else{const[o,r]=s.split("-",2);t.push(...Rn(+o,r?+r+1:n+1))}return Zo(t).filter(s=>s<=n).sort((s,o)=>s-o)}const Dt="$$slidev-clicks-context",bn="$$slidev-page",Hs="$$slidev-slide-element",Oi="$$slidev-slide-scale",Ti="$$slidev-context",El="$$slidev-route",kn="$$slidev-render-context",Pi="$$slidev-fontmatter",Ci="$$slidev-slide-zoom",gt="slidev-vclick-target",Ge="slidev-vclick-hidden",Qe="slidev-vclick-fade",zt="slidev-vclick-hidden-explicitly",qt="slidev-vclick-current",Ut="slidev-vclick-prior",mt=999999,Li=["localhost","127.0.0.1"],Ei=["clicks","clicksStart","disabled","hide","hideInToc","layout","level","preload","routeAlias","src","title","transition","zoom","dragPos","lang"],$l=[...Ei,"theme","titleTemplate","info","author","keywords","presenter","browserExporter","download","exportFilename","export","highlighter","lineNumbers","monaco","monacoTypesSource","monacoTypesAdditionalPackages","monacoRunAdditionalDeps","remoteAssets","selectable","record","colorSchema","routerMode","aspectRatio","canvasWidth","themeConfig","favicon","plantUmlServer","fonts","defaults","drawings","htmlAttrs","mdc","contextMenu","wakeLock","seoMeta"];function $i(n,e,{mode:t="replace"}={}){const s=$t();return k({get(){const o=s.currentRoute.value.query[n];
213return o==null?e:Array.isArray(o)?o.filter(Boolean):o},set(o){To(()=>{(s.currentRoute.value.query[n]??e?.toString())!==o.toString()&&s[Po(t)]({query:{...s.currentRoute.value.query,[n]:`${o}`===e?void 0:o}})})}})}function Nt(n){return se.value.find(e=>e.no===+n||e.meta.slide?.frontmatter.routeAlias===n)}function Fe(n,e,t=!1){(typeof n=="number"||typeof n=="string")&&(n=Nt(n));const s=n.meta.slide?.frontmatter.routeAlias??n.no;return t?`/export/${s}`:e?`/presenter/${s}`:`/${s}`}const Ii={"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 Di(n,e=!1){if(!n||(typeof n=="string"&&(n={name:n}),!n.name))return;let t=n.name.includes("|")?n.name:Ii[n.name]||n.name;if(t.includes("|")){const[s,o]=t.split("|").map(r=>r.trim());t=e?o:s}if(t)return{...n,name:t}}function Ni(n,e,t){let s=n>0?t?.meta?.transition:e?.meta?.transition;return s||(s=I.transition||void 0),Di(s,n<0)}const Il=A(!1),Dl=A(!1),Nl=A(!1),ji=A(!1),Sn=A(!1),jl=A(!1),Rl=A(!0),xl=Co({xs:460,...Do}),Mt=Lo(),Hl=Eo(),Fl=k(()=>Mt.height.value-Mt.width.value/Es.value>120),Vl=$o(It?document.body:null),Fs=Io(),Wl=k(()=>["INPUT","TEXTAREA"].includes(Fs.value?.tagName||"")),Bl=k(()=>["BUTTON","A"].includes(Fs.value?.tagName||""));z("slidev-camera","default",{listenToStorageChanges:!1});z("slidev-mic","default",{listenToStorageChanges:!1});const Ri=z("slidev-scale",0),zl=z("slidev-wake-lock",!0),ql=z("slidev-hide-cursor-idle",!0);z("slidev-skip-export-pdf-tip",!1);z("slidev-export-capture-delay",400,{listenToStorageChanges:!1});const Ul=z("slidev-presenter-cursor",!0,{listenToStorageChanges:!1}),xi=z("slidev-show-editor",!1,{listenToStorageChanges:!1}),Hi=z("slidev-editor-vertical",!1,{listenToStorageChanges:!1}),Fi=z("slidev-editor-width",It?window.innerWidth*.4:318,{listenToStorageChanges:!1}),Vi=z("slidev-editor-height",It?window.innerHeight*.4:300,{listenToStorageChanges:!1}),at=wn(null),At=z("slidev-presenter-font-size",1,{listenToStorageChanges:!1}),lt=z("slidev-presenter-layout",1,{listenToStorageChanges:!1}),ln={invert:!1,contrast:1,brightness:1,hueRotate:0,saturate:1,sepia:0},Wi=z("slidev-viewer-css-filter",ln,{listenToStorageChanges:!1,mergeDefaults:!0,deep:!0}),Kl=k(()=>Object.keys(ln).some(n=>Wi.value[n]!==ln[n]));function Jl(){lt.value=lt.value+1,lt.value>3&&(lt.value=1)}function Gl(){At.value=Math.min(2,At.value+.1)}function Ql(){At.value=Math.max(.5,At.value-.1)}const Yl=Ps(ji),ct=z("slidev-sync-directions",{viewerSend:!0,viewerReceive:!0,presenterSend:!0,presenterReceive:!0},{listenToStorageChanges:!1,mergeDefaults:!0});function Vs(n,e,t=1){const s=e.meta.slide.level??t;s&&s>t&&n.length>0?Vs(n[n.length-1].children,e,t+1):n.push({no:e.no,children:[],level:t,titleLevel:s,path:Fe(e.meta.slide?.frontmatter?.routeAlias??e.no,!1),hideInToc:!!e.meta?.slide?.frontmatter?.hideInToc,title:e.meta?.slide?.title})}function Ws(n,e,t=!1,s,o){return n.map(r=>{const i={...r,active:r.no===o?.value,hasActiveParent:t};return i.children.length>0&&(i.children=Ws(i.children,e,i.active||i.hasActiveParent,i,o)),s&&(i.active||i.activeParent)&&(s.activeParent=!0),i})}function Bs(n,e=1){return n.filter(t=>!t.hideInToc).map(t=>({...t,children:Bs(t.children,e+1)}))}function Bi(n,e,t){const s=k(()=>n.value.filter(r=>r.meta?.slide?.title).reduce((r,i)=>(Vs(r,i),r),[])),o=k(()=>Ws(s.value,t.value,void 0,void 0,e));return k(()=>Bs(o.value))}function zi(n,e,t=A(0),s,o,r){const i=k(()=>se.value.length),a=A(0),l=A(0),c=k(()=>Fe(n.value,s.value)),f=k(()=>n.value.no),h=k(()=>n.value.meta?.layout||(f.value===1?"cover":"default")),d=k(()=>e.value.current),u=k(()=>e.value.clicksStart),g=k(()=>e.value.total),p=k(()=>se.value[Math.min(se.value.length,f.value+1)-1]),m=k(()=>se.value[Math.max(1,f.value-1)-1]),y=k(()=>f.value<se.value.length||d.value<g.value),v=k(()=>f.value>1||d.value>0),w=k(()=>o.value?void 0:Ni(a.value,n.value,m.value));ee(n,(R,E)=>{a.value=R.no-E.no});async function b(R){return!1}const S=Bi(se,f,n);async function O(){l.value=1,g.value<=t.value?await V():t.value+=1}async function L(){l.value=-1,t.value<=u.value?await U(!0):t.value-=1}async function V(R=!1){l.value=1,f.value<se.value.length&&await M(f.value+1,R&&!o.value?mt:void 0)}async function U(R=!1){l.value=-1,f.value>1&&await M(f.value-1,R&&!o.value?mt:void 0)}function le(){return M(1)}function Z(){return M(i.value)}async function M(R,E=0,ie=!1){Sn.value=!1;const ce=f.value!==R,Ke=E!==t.value,G=Nt(R)?.meta,D=G?.slide?.frontmatter.clicksStart??0;E=sn(E,D,G?.__clicksContext?.total??mt),(ie||ce||Ke)&&await r?.push({path:Fe(R,s.value,r.currentRoute.value.name==="export"),query:{...r.currentRoute.value.query,clicks:E===0?void 0:E.toString(),embedded:location.search.includes("embedded")?"true":void 0}})}function C(){r?.push({path:Fe(f.value,!0),query:{...r.currentRoute.value.query}})}function W(){r?.push({path:Fe(f.value,!1),query:{...r.currentRoute.value.query}})}return{slides:se,total:i,currentPath:c,currentSlideNo:f,currentPage:f,currentSlideRoute:n,currentLayout:h,currentTransition:w,clicksDirection:l,nextRoute:p,prevRoute:m,clicksContext:e,clicks:d,clicksStart:u,clicksTotal:g,hasNext:y,hasPrev:v,tocTree:S,navDirection:a,openInEditor:b,next:O,prev:L,go:M,goLast:Z,goFirst:le,nextSlide:V,prevSlide:U,enterPresenter:C,exitPresenter:W}}const qi=Cs(()=>{const n=$t(),e=No(),t=k(()=>(n?.currentRoute?.value?.query,new URLSearchParams(location.search))),s=k(()=>t.value.has("print")||e.name==="export"),o=A(t.value.get("print")==="clicks"),r=k(()=>t.value.has("embedded")),i=k(()=>e.name==="play"),a=k(()=>e.name==="presenter"),l=k(()=>e.name==="notes"),c=k(()=>!a.value&&(!I.remote||t.value.get("password")===I.remote)),f=k(()=>!!e.params.no),h=k(()=>f.value?Nt(e.params.no)?.no??1:1),d=k(()=>se.value[h.value-1]),u=A(xs(se.value.length,e.query.range)),g=$i("clicks","0"),p=k(()=>y(d.value)),m=k({get(){let v=+(g.value||0);return Number.isNaN(v)&&(v=0),v},set(v){Sn.value=!1,g.value=v.toString()}});function y(v){if(v?.meta?.__clicksContext)return v.meta.__clicksContext;const w=v.no,b=Rs(k({get(){return h.value===w?Math.max(+(g.value??0),b.clicksStart):h.value>w?mt:b.clicksStart},set(S){h.value===w&&(g.value=S.toString())}}),v?.meta.slide?.frontmatter.clicksStart??0,v?.meta.clicks);return v?.meta&&(v.meta.__clicksContext=b),b}return{router:n,currentRoute:k(()=>e),isPrintMode:s,isPrintWithClicks:o,isEmbedded:r,isPlaying:i,isPresenter:a,isNotesViewer:l,isPresenterAvailable:c,hasPrimarySlide:f,currentSlideNo:h,currentSlideRoute:d,clicksContext:p,queryClicksRaw:g,queryClicks:m,printRange:u,getPrimaryClicks:y}}),Ue=Cs(()=>{const n=qi(),e=$t(),t=zi(n.currentSlideRoute,n.clicksContext,n.queryClicks,n.isPresenter,n.isPrintMode,e);return ee([t.total,n.currentRoute],async()=>{const s=n.currentRoute.value.params.no;n.hasPrimarySlide.value&&!Nt(s)&&(s&&s!=="index.html"?await t.go(t.total.value,0,!0):await t.go(1,0,!0))},{flush:"pre",immediate:!0}),{...t,...n}}),us=jo(),Kt=z("slidev-color-schema","auto"),fs=k(()=>I.colorSchema!=="auto"),zs=k({get(){return fs.value?I.colorSchema==="dark":Kt.value==="auto"?us.value:Kt.value==="dark"},set(n){fs.value||(Kt.value=n===us.value?"auto":n?"dark":"light")}}),Zl=Ps(zs);if(It){const n="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";ee(zs,e=>{const t=window.document.createElement("style");t.appendChild(document.createTextNode(n)),window.document.head.appendChild(t);const s=document.querySelector("html");s.classList.toggle("dark",e),s.classList.toggle("light",!e),window.getComputedStyle(t).op
213acity,document.head.removeChild(t)},{immediate:!0})}function Ui(){const{isPrintMode:n}=Ue();Ro(k(()=>n.value?`
214@page {
215  size: ${$s.value}px ${tr.value}px;
216  margin: 0px;
217}
218
219* {
220  transition: none !important;
221  transition-duration: 0s !important;
222}`:""))}const _n=Symbol.for("yaml.alias"),Ki=Symbol.for("yaml.document"),De=Symbol.for("yaml.map"),qs=Symbol.for("yaml.pair"),Mn=Symbol.for("yaml.scalar"),ot=Symbol.for("yaml.seq"),re=Symbol.for("yaml.node.type"),Ne=n=>!!n&&typeof n=="object"&&n[re]===_n,jt=n=>!!n&&typeof n=="object"&&n[re]===Ki,Us=n=>!!n&&typeof n=="object"&&n[re]===De,B=n=>!!n&&typeof n=="object"&&n[re]===qs,H=n=>!!n&&typeof n=="object"&&n[re]===Mn,An=n=>!!n&&typeof n=="object"&&n[re]===ot;function Y(n){if(n&&typeof n=="object")switch(n[re]){case De:case ot:return!0}return!1}function q(n){if(n&&typeof n=="object")switch(n[re]){case _n:case De:case Mn:case ot:return!0}return!1}const Ks=n=>(H(n)||Y(n))&&!!n.anchor,Ee=Symbol("break visit"),Ji=Symbol("skip children"),et=Symbol("remove node");function Rt(n,e){const t=Gi(e);jt(n)?Ve(null,n.contents,t,Object.freeze([n]))===et&&(n.contents=null):Ve(null,n,t,Object.freeze([]))}Rt.BREAK=Ee;Rt.SKIP=Ji;Rt.REMOVE=et;function Ve(n,e,t,s){const o=Qi(n,e,t,s);if(q(o)||B(o))return Yi(n,s,o),Ve(n,o,t,s);if(typeof o!="symbol"){if(Y(e)){s=Object.freeze(s.concat(e));for(let r=0;r<e.items.length;++r){const i=Ve(r,e.items[r],t,s);if(typeof i=="number")r=i-1;else{if(i===Ee)return Ee;i===et&&(e.items.splice(r,1),r-=1)}}}else if(B(e)){s=Object.freeze(s.concat(e));const r=Ve("key",e.key,t,s);if(r===Ee)return Ee;r===et&&(e.key=null);const i=Ve("value",e.value,t,s);if(i===Ee)return Ee;i===et&&(e.value=null)}}return o}function Gi(n){return typeof n=="object"&&(n.Collection||n.Node||n.Value)?Object.assign({Alias:n.Node,Map:n.Node,Scalar:n.Node,Seq:n.Node},n.Value&&{Map:n.Value,Scalar:n.Value,Seq:n.Value},n.Collection&&{Map:n.Collection,Seq:n.Collection},n):n}function Qi(n,e,t,s){if(typeof t=="function")return t(n,e,s);if(Us(e))return t.Map?.(n,e,s);if(An(e))return t.Seq?.(n,e,s);if(B(e))return t.Pair?.(n,e,s);if(H(e))return t.Scalar?.(n,e,s);if(Ne(e))return t.Alias?.(n,e,s)}function Yi(n,e,t){const s=e[e.length-1];if(Y(s))s.items[n]=t;else if(B(s))n==="key"?s.key=t:s.value=t;else if(jt(s))s.contents=t;else{const o=Ne(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}function Js(n){if(/[\x00-\x19\s,[\]{}]/.test(n)){const t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(n)}`;throw new Error(t)}return!0}function Xe(n,e,t,s){if(s&&typeof s=="object")if(Array.isArray(s))for(let o=0,r=s.length;o<r;++o){const i=s[o],a=Xe(n,s,String(o),i);a===void 0?delete s[o]:a!==i&&(s[o]=a)}else if(s instanceof Map)for(const o of Array.from(s.keys())){const r=s.get(o),i=Xe(n,s,o,r);i===void 0?s.delete(o):i!==r&&s.set(o,i)}else if(s instanceof Set)for(const o of Array.from(s)){const r=Xe(n,s,o,o);r===void 0?s.delete(o):r!==o&&(s.delete(o),s.add(r))}else for(const[o,r]of Object.entries(s)){const i=Xe(n,s,o,r);i===void 0?delete s[o]:i!==r&&(s[o]=i)}return n.call(e,t,s)}function oe(n,e,t){if(Array.isArray(n))return n.map((s,o)=>oe(s,String(o),t));if(n&&typeof n.toJSON=="function"){if(!t||!Ks(n))return n.toJSON(e,t);const s={aliasCount:0,count:1,res:void 0};t.anchors.set(n,s),t.onCreate=r=>{s.res=r,delete t.onCreate};const o=n.toJSON(e,t);return t.onCreate&&t.onCreate(o),o}return typeof n=="bigint"&&!t?.keep?Number(n):n}class On{constructor(e){Object.defineProperty(this,re,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:s,onAnchor:o,reviver:r}={}){if(!jt(e))throw new TypeError("A document argument is required");const i={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},a=oe(this,"",i);if(typeof o=="function")for(const{count:l,res:c}of i.anchors.values())o(c,l);return typeof r=="function"?Xe(r,{"":a},"",a):a}}class Zi extends On{constructor(e){super(_n),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,t){let s;t?.aliasResolveCache?s=t.aliasResolveCache:(s=[],Rt(e,{Node:(r,i)=>{(Ne(i)||Ks(i))&&s.push(i)}}),t&&(t.aliasResolveCache=s));let o;for(const r of s){if(r===this)break;r.anchor===this.source&&(o=r)}return o}toJSON(e,t){if(!t)return{source:this.source};const{anchors:s,doc:o,maxAliasCount:r}=t,i=this.resolve(o,t);if(!i){const l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=s.get(i);
222if(a||(oe(i,null,t),a=s.get(i)),!a||a.res===void 0){const l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(r>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=yt(o,i,s)),a.count*a.aliasCount>r)){const l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(e,t,s){const o=`*${this.source}`;if(e){if(Js(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const r=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(r)}if(e.implicitKey)return`${o} `}return o}}function yt(n,e,t){if(Ne(e)){const s=e.resolve(n),o=t&&s&&t.get(s);return o?o.count*o.aliasCount:0}else if(Y(e)){let s=0;for(const o of e.items){const r=yt(n,o,t);r>s&&(s=r)}return s}else if(B(e)){const s=yt(n,e.key,t),o=yt(n,e.value,t);return Math.max(s,o)}return 1}const Gs=n=>!n||typeof n!="function"&&typeof n!="object";class $ extends On{constructor(e){super(Mn),this.value=e}toJSON(e,t){return t?.keep?this.value:oe(this.value,e,t)}toString(){return String(this.value)}}$.BLOCK_FOLDED="BLOCK_FOLDED";$.BLOCK_LITERAL="BLOCK_LITERAL";$.PLAIN="PLAIN";$.QUOTE_DOUBLE="QUOTE_DOUBLE";$.QUOTE_SINGLE="QUOTE_SINGLE";function Xi(n,e,t){return t.find(s=>s.identify?.(n)&&!s.format)}function Ot(n,e,t){if(jt(n)&&(n=n.contents),q(n))return n;if(B(n)){const h=t.schema[De].createNode?.(t.schema,null,t);return h.items.push(n),h}(n instanceof String||n instanceof Number||n instanceof Boolean||typeof BigInt<"u"&&n instanceof BigInt)&&(n=n.valueOf());const{aliasDuplicateObjects:s,onAnchor:o,onTagObj:r,schema:i,sourceObjects:a}=t;let l;if(s&&n&&typeof n=="object"){if(l=a.get(n),l)return l.anchor??(l.anchor=o(n)),new Zi(l.anchor);l={anchor:null,node:null},a.set(n,l)}let c=Xi(n,e,i.tags);if(!c){if(n&&typeof n.toJSON=="function"&&(n=n.toJSON()),!n||typeof n!="object"){const h=new $(n);return l&&(l.node=h),h}c=n instanceof Map?i[De]:Symbol.iterator in Object(n)?i[ot]:i[De]}r&&(r(c),delete t.onTagObj);const f=c?.createNode?c.createNode(t.schema,n,t):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(t.schema,n,t):new $(n);return c.default||(f.tag=c.tag),l&&(l.node=f),f}function ds(n,e,t){let s=t;for(let o=e.length-1;o>=0;--o){const r=e[o];if(typeof r=="number"&&Number.isInteger(r)&&r>=0){const i=[];i[r]=s,s=i}else s=new Map([[r,s]])}return Ot(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:n,sourceObjects:new Map})}const ea=n=>n==null||typeof n=="object"&&!!n[Symbol.iterator]().next().done;class Qs extends On{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(s=>q(s)||B(s)?s.clone(e):s),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(ea(e))this.add(t);else{const[s,...o]=e,r=this.get(s,!0);if(Y(r))r.addIn(o,t);else if(r===void 0&&this.schema)this.set(s,ds(this.schema,o,t));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${o}`)}}deleteIn(e){const[t,...s]=e;if(s.length===0)return this.delete(t);const o=this.get(t,!0);if(Y(o))return o.deleteIn(s);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${s}`)}getIn(e,t){const[s,...o]=e,r=this.get(s,!0);return o.length===0?!t&&H(r)?r.value:r:Y(r)?r.getIn(o,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!B(t))return!1;const s=t.value;return s==null||e&&H(s)&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag})}hasIn(e){const[t,...s]=e;if(s.length===0)return this.has(t);const o=this.get(t,!0);return Y(o)?o.hasIn(s):!1}setIn(e,t){const[s,...o]=e;if(o.length===0)this.set(s,t);else{const r=this.get(s,!0);if(Y(r))r.setIn(o,t);else if(r===void 0&&this.schema)this.set(s,ds(this.schema,o,t));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${o}`)}}}const ta=n=>n.replace(/^(?!$)(?: $)?/gm,"#");function st(n,e){return/^\n+$/.test(n)?n.substring(1):e?n.replace(/^(?! *$)/gm,e):n}const We=(n,e,t)=>n.endsWith(`
223`)?st(t,e):t.includes(`
224`)?`
225`+st(t,e):(n.endsWith(" ")?"":" ")+t,Ys="flow",cn="block",vt="quoted";function xt(n,e,t="flow",{indentAtStart:s,lineWidth:o=80,minContentWidth:r=20,onFold:i,onOverflow:a}={}){if(!o||o<0)return n;o<r&&(r=0);const l=Math.max(1+r,1+o-e.length);if(n.length<=l)return n;const c=[],f={};let h=o-e.length;typeof s=="number"&&(s>o-Math.max(2,r)?c.push(0):h=o-s);let d,u,g=!1,p=-1,m=-1,y=-1;t===cn&&(p=hs(n,p,e.length),p!==-1&&(h=p+l));for(let w;w=n[p+=1];){if(t===vt&&w==="\\"){switch(m=p,n[p+1]){case"x":p+=3;break;case"u":p+=5;break;case"U":p+=9;break;default:p+=1}y=p}if(w===`
226`)t===cn&&(p=hs(n,p,e.length)),h=p+e.length+l,d=void 0;else{if(w===" "&&u&&u!==" "&&u!==`
227`&&u!=="	"){const b=n[p+1];b&&b!==" "&&b!==`
228`&&b!=="	"&&(d=p)}if(p>=h)if(d)c.push(d),h=d+l,d=void 0;else if(t===vt){for(;u===" "||u==="	";)u=w,w=n[p+=1],g=!0;const b=p>y+1?p-2:m-1;if(f[b])return n;c.push(b),f[b]=!0,h=b+l,d=void 0}else g=!0}u=w}if(g&&a&&a(),c.length===0)return n;i&&i();let v=n.slice(0,c[0]);for(let w=0;w<c.length;++w){const b=c[w],S=c[w+1]||n.length;b===0?v=`
229${e}${n.slice(0,S)}`:(t===vt&&f[b]&&(v+=`${n[b]}\\`),v+=`
230${e}${n.slice(b+1,S)}`)}return v}function hs(n,e,t){let s=e,o=e+1,r=n[o];for(;r===" "||r==="	";)if(e<o+t)r=n[++e];else{do r=n[++e];while(r&&r!==`
231`);s=e,o=e+1,r=n[o]}return s}const Ht=(n,e)=>({indentAtStart:e?n.indent.length:n.indentAtStart,lineWidth:n.options.lineWidth,minContentWidth:n.options.minContentWidth}),Ft=n=>/^(%|---|\.\.\.)/m.test(n);function na(n,e,t){if(!e||e<0)return!1;const s=e-t,o=n.length;if(o<=s)return!1;for(let r=0,i=0;r<o;++r)if(n[r]===`
232`){if(r-i>s)return!0;if(i=r+1,o-i<=s)return!1}return!0}function tt(n,e){const t=JSON.stringify(n);if(e.options.doubleQuotedAsJSON)return t;const{implicitKey:s}=e,o=e.options.doubleQuotedMinMultiLineLength,r=e.indent||(Ft(n)?"  ":"");let i="",a=0;for(let l=0,c=t[l];c;c=t[++l])if(c===" "&&t[l+1]==="\\"&&t[l+2]==="n"&&(i+=t.slice(a,l)+"\\ ",l+=1,a=l,c="\\"),c==="\\")switch(t[l+1]){case"u":{i+=t.slice(a,l);const f=t.substr(l+2,4);switch(f){case"0000":i+="\\0";break;case"0007":i+="\\a";break;case"000b":i+="\\v";break;case"001b":i+="\\e";break;case"0085":i+="\\N";break;case"00a0":i+="\\_";break;case"2028":i+="\\L";break;case"2029":i+="\\P";break;default:f.substr(0,2)==="00"?i+="\\x"+f.substr(2):i+=t.substr(l,6)}l+=5,a=l+1}break;case"n":if(s||t[l+2]==='"'||t.length<o)l+=1;else{for(i+=t.slice(a,l)+`
233
234`;t[l+2]==="\\"&&t[l+3]==="n"&&t[l+4]!=='"';)i+=`
235`,l+=2;i+=r,t[l+2]===" "&&(i+="\\"),l+=1,a=l+1}break;default:l+=1}return i=a?i+t.slice(a):t,s?i:xt(i,r,vt,Ht(e,!1))}function un(n,e){if(e.options.singleQuote===!1||e.implicitKey&&n.includes(`
236`)||/[ \t]\n|\n[ \t]/.test(n))return tt(n,e);const t=e.indent||(Ft(n)?"  ":""),s="'"+n.replace(/'/g,"''").replace(/\n+/g,`$&
237${t}`)+"'";return e.implicitKey?s:xt(s,t,Ys,Ht(e,!1))}function Be(n,e){const{singleQuote:t}=e.options;let s;if(t===!1)s=tt;else{const o=n.includes('"'),r=n.includes("'");o&&!r?s=un:r&&!o?s=tt:s=t?un:tt}return s(n,e)}let fn;try{fn=new RegExp(`(^|(?<!
238))
239+(?!
240|$)`,"g")}catch{fn=/\n+(?!\n|$)/g}function wt({comment:n,type:e,value:t},s,o,r){const{blockQuote:i,commentString:a,lineWidth:l}=s.options;if(!i||/\n[\t ]+$/.test(t)||/^\s*$/.test(t))return Be(t,s);const c=s.indent||(s.forceBlockIndent||Ft(t)?"  ":""),f=i==="literal"?!0:i==="folded"||e===$.BLOCK_FOLDED?!1:e===$.BLOCK_LITERAL?!0:!na(t,l,c.length);if(!t)return f?`|
241`:`>
242`;let h,d;for(d=t.length;d>0;--d){const S=t[d-1];if(S!==`
243`&&S!=="	"&&S!==" ")break}let u=t.substring(d);const g=u.indexOf(`
244`);g===-1?h="-":t===u||g!==u.length-1?(h="+",r&&r()):h="",u&&(t=t.slice(0,-u.length),u[u.length-1]===`
245`&&(u=u.slice(0,-1)),u=u.replace(fn,`$&${c}`));let p=!1,m,y=-1;for(m=0;m<t.length;++m){const S=t[m];if(S===" ")p=!0;else if(S===`
246`)y=m;else break}let v=t.substring(0,y<m?y+1:m);v&&(t=t.substring(v.length),v=v.replace(/\n+/g,`$&${c}`));let b=(p?c?"2":"1":"")+h;if(n&&(b+=" "+a(n.replace(/ ?[\r\n]+/g," ")),o&&o()),!f){const S=t.replace(/\n+/g,`
247$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);let O=!1;const L=Ht(s,!0);i!=="folded"&&e!==$.BLOCK_FOLDED&&(L.onOverflow=()=>{O=!0});const V=xt(`${v}${S}${u}`,c,cn,L);if(!O)return`>${b}
248${c}${V}`}return t=t.replace(/\n+/g,`$&${c}`),`|${b}
249${c}${v}${t}${u}`}function sa(n,e,t,s){const{type:o,value:r}=n,{actualString:i,implicitKey:a,indent:l,indentStep:c,inFlow:f}=e;if(a&&r.includes(`
250`)||f&&/[[\]{},]/.test(r))return Be(r,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))return a||f||!r.includes(`
251`)?Be(r,e):wt(n,e,t,s);if(!a&&!f&&o!==$.PLAIN&&r.includes(`
252`))return wt(n,e,t,s);if(Ft(r)){if(l==="")return e.forceBlockIndent=!0,wt(n,e,t,s);if(a&&l===c)return Be(r,e)}const h=r.replace(/\n+/g,`$&
253${l}`);if(i){const d=p=>p.default&&p.tag!=="tag:yaml.org,2002:str"&&p.test?.test(h),{compat:u,tags:g}=e.doc.schema;if(g.some(d)||u?.some(d))return Be(r,e)}return a?h:xt(h,l,Ys,Ht(e,!1))}function oa(n,e,t,s){const{implicitKey:o,inFlow:r}=e,i=typeof n.value=="string"?n:Object.assign({},n,{value:String(n.value)});let{type:a}=n;a!==$.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(i.value)&&(a=$.QUOTE_DOUBLE);const l=f=>{switch(f){case $.BLOCK_FOLDED:case $.BLOCK_LITERAL:return o||r?Be(i.value,e):wt(i,e,t,s);case $.QUOTE_DOUBLE:return tt(i.value,e);case $.QUOTE_SINGLE:return un(i.value,e);case $.PLAIN:return sa(i,e,t,s);default:return null}};let c=l(a);if(c===null){const{defaultKeyType:f,defaultStringType:h}=e.options,d=o&&f||h;if(c=l(d),c===null)throw new Error(`Unsupported default string type ${d}`)}return c}function ra(n,e){const t=Object.assign({blockQuote:!0,commentString:ta,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},n.schema.toStringOptions,e);let s;switch(t.collectionStyle){case"block":s=!1;break;case"flow":s=!0;break;default:s=null}return{anchors:new Set,doc:n,flowCollectionPadding:t.flowCollectionPadding?" ":"",indent:"",indentStep:typeof t.indent=="number"?" ".repeat(t.indent):"  ",inFlow:s,options:t}}function ia(n,e){if(e.tag){const o=n.filter(r=>r.tag===e.tag);if(o.length>0)return o.find(r=>r.format===e.format)??o[0]}let t,s;if(H(e)){s=e.value;let o=n.filter(r=>r.identify?.(s));if(o.length>1){const r=o.filter(i=>i.test);r.length>0&&(o=r)}t=o.find(r=>r.format===e.format)??o.find(r=>!r.format)}else s=e,t=n.find(o=>o.nodeClass&&s instanceof o.nodeClass);if(!t){const o=s?.constructor?.name??(s===null?"null":typeof s);throw new Error(`Tag not resolved for ${o} value`)}return t}function aa(n,e,{anchors:t,doc:s}){if(!s.directives)return"";const o=[],r=(H(n)||Y(n))&&n.anchor;r&&Js(r)&&(t.add(r),o.push(`&${r}`));const i=n.tag??(e.default?null:e.tag);return i&&o.push(s.directives.tagString(i)),o.join(" ")}
253function Tt(n,e,t,s){if(B(n))return n.toString(e,t,s);if(Ne(n)){if(e.doc.directives)return n.toString(e);if(e.resolvedAliases?.has(n))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(n):e.resolvedAliases=new Set([n]),n=n.resolve(e.doc)}let o;const r=q(n)?n:e.doc.createNode(n,{onTagObj:l=>o=l});o??(o=ia(e.doc.schema.tags,r));const i=aa(r,o,e);i.length>0&&(e.indentAtStart=(e.indentAtStart??0)+i.length+1);const a=typeof o.stringify=="function"?o.stringify(r,e,t,s):H(r)?oa(r,e,t,s):r.toString(e,t,s);return i?H(r)||a[0]==="{"||a[0]==="["?`${i} ${a}`:`${i}
254${e.indent}${a}`:a}function la({key:n,value:e},t,s,o){const{allNullValues:r,doc:i,indent:a,indentStep:l,options:{commentString:c,indentSeq:f,simpleKeys:h}}=t;let d=q(n)&&n.comment||null;if(h){if(d)throw new Error("With simple keys, key nodes cannot have comments");if(Y(n)||!q(n)&&typeof n=="object"){const L="With simple keys, collection cannot be used as a key value";throw new Error(L)}}let u=!h&&(!n||d&&e==null&&!t.inFlow||Y(n)||(H(n)?n.type===$.BLOCK_FOLDED||n.type===$.BLOCK_LITERAL:typeof n=="object"));t=Object.assign({},t,{allNullValues:!1,implicitKey:!u&&(h||!r),indent:a+l});let g=!1,p=!1,m=Tt(n,t,()=>g=!0,()=>p=!0);if(!u&&!t.inFlow&&m.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");u=!0}if(t.inFlow){if(r||e==null)return g&&s&&s(),m===""?"?":u?`? ${m}`:m}else if(r&&!h||e==null&&u)return m=`? ${m}`,d&&!g?m+=We(m,t.indent,c(d)):p&&o&&o(),m;g&&(d=null),u?(d&&(m+=We(m,t.indent,c(d))),m=`? ${m}
255${a}:`):(m=`${m}:`,d&&(m+=We(m,t.indent,c(d))));let y,v,w;q(e)?(y=!!e.spaceBefore,v=e.commentBefore,w=e.comment):(y=!1,v=null,w=null,e&&typeof e=="object"&&(e=i.createNode(e))),t.implicitKey=!1,!u&&!d&&H(e)&&(t.indentAtStart=m.length+1),p=!1,!f&&l.length>=2&&!t.inFlow&&!u&&An(e)&&!e.flow&&!e.tag&&!e.anchor&&(t.indent=t.indent.substring(2));let b=!1;const S=Tt(e,t,()=>b=!0,()=>p=!0);let O=" ";if(d||y||v){if(O=y?`
256`:"",v){const L=c(v);O+=`
257${st(L,t.indent)}`}
257S===""&&!t.inFlow?O===`
258`&&(O=`
259
260`):O+=`
261${t.indent}`}else if(!u&&Y(e)){const L=S[0],V=S.indexOf(`
262`),U=V!==-1,le=t.inFlow??e.flow??e.items.length===0;if(U||!le){let Z=!1;if(U&&(L==="&"||L==="!")){let M=S.indexOf(" ");L==="&"&&M!==-1&&M<V&&S[M+1]==="!"&&(M=S.indexOf(" ",M+1)),(M===-1||V<M)&&(Z=!0)}Z||(O=`
263${t.indent}`)}}else(S===""||S[0]===`
264`)&&(O="");return m+=O+S,t.inFlow?b&&s&&s():w&&!b?m+=We(m,t.indent,c(w)):p&&o&&o(),m}function ca(n,e){(n==="debug"||n==="warn")&&console.warn(e)}const ut="<<",Jt={identify:n=>n===ut||typeof n=="symbol"&&n.description===ut,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new $(Symbol(ut)),{addToJSMap:Zs}),stringify:()=>ut},ua=(n,e)=>(Jt.identify(e)||H(e)&&(!e.type||e.type===$.PLAIN)&&Jt.identify(e.value))&&n?.doc.schema.tags.some(t=>t.tag===Jt.tag&&t.default);function Zs(n,e,t){if(t=n&&Ne(t)?t.resolve(n.doc):t,An(t))for(const s of t.items)Gt(n,e,s);else if(Array.isArray(t))for(const s of t)Gt(n,e,s);else Gt(n,e,t)}function Gt(n,e,t){const s=n&&Ne(t)?t.resolve(n.doc):t;if(!Us(s))throw new Error("Merge sources must be maps or map aliases");const o=s.toJSON(null,n,Map);for(const[r,i]of o)e instanceof Map?e.has(r)||e.set(r,i):e instanceof Set?e.add(r):Object.prototype.hasOwnProperty.call(e,r)||Object.defineProperty(e,r,{value:i,writable:!0,enumerable:!0,configurable:!0});return e}function Xs(n,e,{key:t,value:s}){if(q(t)&&t.addToJSMap)t.addToJSMap(n,e,s);else if(ua(n,t))Zs(n,e,s);else{const o=oe(t,"",n);if(e instanceof Map)e.set(o,oe(s,o,n));else if(e instanceof Set)e.add(o);else{const r=fa(t,o,n),i=oe(s,r,n);r in e?Object.defineProperty(e,r,{value:i,writable:!0,enumerable:!0,configurable:!0}):e[r]=i}}return e}function fa(n,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if(q(n)&&t?.doc){const s=ra(t.doc,{});s.anchors=new Set;for(const r of t.anchors.keys())s.anchors.add(r.anchor);s.inFlow=!0,s.inStringifyKey=!0;const o=n.toString(s);if(!t.mapKeyWarned){let r=JSON.stringify(o);r.length>40&&(r=r.substring(0,36)+'..."'),ca(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return o}return JSON.stringify(e)}function Tn(n,e,t){const s=Ot(n,void 0,t),o=Ot(e,void 0,t);return new ae(s,o)}class ae{constructor(e,t=null){Object.defineProperty(this,re,{value:qs}),this.key=e,this.value=t}clone(e){let{key:t,value:s}=this;return q(t)&&(t=t.clone(e)),q(s)&&(s=s.clone(e)),new ae(t,s)}toJSON(e,t){const s=t?.mapAsMap?new Map:{};return Xs(t,s,this)}toString(e,t,s){return e?.doc?la(this,e,t,s):JSON.stringify(this)}}function eo(n,e,t){return(e.inFlow??n.flow?ha:da)(n,e,t)}function da({comment:n,items:e},t,{blockItemPrefix:s,flowChars:o,itemIndent:r,onChompKeep:i,onComment:a}){const{indent:l,options:{commentString:c}}=t,f=Object.assign({},t,{indent:r,type:null});let h=!1;const d=[];for(let g=0;g<e.length;++g){const p=e[g];let m=null;if(q(p))!h&&p.spaceBefore&&d.push(""),Pt(t,d,p.commentBefore,h),p.comment&&(m=p.comment);else if(B(p)){const v=q(p.key)?p.key:null;v&&(!h&&v.spaceBefore&&d.push(""),Pt(t,d,v.commentBefore,h))}h=!1;let y=Tt(p,f,()=>m=null,()=>h=!0);m&&(y+=We(y,r,c(m))),h&&m&&(h=!1),d.push(s+y)}let u;if(d.length===0)u=o.start+o.end;else{u=d[0];for(let g=1;g<d.length;++g){const p=d[g];u+=p?`
265${l}${p}`:`
266`}}return n?(u+=`
267`+st(c(n),l),a&&a()):h&&i&&i(),u}function ha({items:n},e,{flowChars:t,itemIndent:s}){const{indent:o,indentStep:r,flowCollectionPadding:i,options:{commentString:a}}=e;s+=r;const l=Object.assign({},e,{indent:s,inFlow:!0,type:null});let c=!1,f=0;const h=[];for(let g=0;g<n.length;++g){const p=n[g];let m=null;if(q(p))p.spaceBefore&&h.push(""),Pt(e,h,p.commentBefore,!1),p.comment&&(m=p.comment);else if(B(p)){const v=q(p.key)?p.key:null;v&&(v.spaceBefore&&h.push(""),Pt(e,h,v.commentBefore,!1),v.comment&&(c=!0));const w=q(p.value)?p.value:null;w?(w.comment&&(m=w.comment),w.commentBefore&&(c=!0)):p.value==null&&v?.comment&&(m=v.comment)}m&&(c=!0);let y=Tt(p,l,()=>m=null);g<n.length-1&&(y+=","),m&&(y+=We(y,s,a(m))),!c&&(h.length>f||y.includes(`
268`))&&(c=!0),h.push(y),f=h.length}const{start:d,end:u}=t;if(h.length===0)return d+u;if(!c){const g=h.reduce((p,m)=>p+m.length+2,2);c=e.options.lineWidth>0&&g>e.options.lineWidth}if(c){let g=d;for(const p of h)g+=p?`
269${r}${o}${p}`:`
270`;return`${g}
271${o}${u}`}else return`${d}${i}${h.join(" ")}${i}${u}`}
271function Pt({indent:n,options:{commentString:e}},t,s,o){if(s&&o&&(s=s.replace(/^\n+/,"")),s){const r=st(e(s),n);t.push(r.trimStart())}}function Ie(n,e){const t=H(e)?e.value:e;for(const s of n)if(B(s)&&(s.key===e||s.key===t||H(s.key)&&s.key.value===t))return s}class xe extends Qs{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(De,e),this.items=[]}static from(e,t,s){const{keepUndefined:o,replacer:r}=s,i=new this(e),a=(l,c)=>{if(typeof r=="function")c=r.call(t,l,c);else if(Array.isArray(r)&&!r.includes(l))return;(c!==void 0||o)&&i.items.push(Tn(l,c,s))};if(t instanceof Map)for(const[l,c]of t)a(l,c);else if(t&&typeof t=="object")for(const l of Object.keys(t))a(l,t[l]);return typeof e.sortMapEntries=="function"&&i.items.sort(e.sortMapEntries),i}add(e,t){let s;B(e)?s=e:!e||typeof e!="object"||!("key"in e)?s=new ae(e,e?.value):s=new ae(e.key,e.value);const o=Ie(this.items,s.key),r=this.schema?.sortMapEntries;if(o){if(!t)throw new Error(`Key ${s.key} already set`);H(o.value)&&Gs(s.value)?o.value.value=s.value:o.value=s.value}else if(r){const i=this.items.findIndex(a=>r(s,a)<0);i===-1?this.items.push(s):this.items.splice(i,0,s)}else this.items.push(s)}delete(e){const t=Ie(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){const o=Ie(this.items,e)?.value;return(!t&&H(o)?o.value:o)??void 0}has(e){return!!Ie(this.items,e)}set(e,t){this.add(new ae(e,t),!0)}toJSON(e,t,s){const o=s?new s:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(o);for(const r of this.items)Xs(t,o,r);return o}toString(e,t,s){if(!e)return JSON.stringify(this);for(const o of this.items)if(!B(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),eo(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:s,onComment:t})}}class to extends Qs{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(ot,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=ft(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){const s=ft(e);if(typeof s!="number")return;const o=this.items[s];return!t&&H(o)?o.value:o}has(e){const t=ft(e);return typeof t=="number"&&t<this.items.length}set(e,t){const s=ft(e);if(typeof s!="number")throw new Error(`Expected a valid index, not ${e}.`);const o=this.items[s];H(o)&&Gs(t)?o.value=t:this.items[s]=t}toJSON(e,t){const s=[];t?.onCreate&&t.onCreate(s);let o=0;for(const r of this.items)s.push(oe(r,String(o++),t));return s}toString(e,t,s){return e?eo(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+"  ",onChompKeep:s,onComment:t}):JSON.stringify(this)}static from(e,t,s){const{replacer:o}=s,r=new this(e);if(t&&Symbol.iterator in Object(t)){let i=0;for(let a of t){if(typeof o=="function"){const l=t instanceof Set?a:String(i++);a=o.call(t,l,a)}r.items.push(Ot(a,void 0,s))}}return r}}function ft(n){let e=H(n)?n.value:n;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}function pa(n,e,t){const{replacer:s}=t,o=new to(n);o.tag="tag:yaml.org,2002:pairs";let r=0;if(e&&Symbol.iterator in Object(e))for(let i of e){typeof s=="function"&&(i=s.call(e,String(r++),i));let a,l;if(Array.isArray(i))if(i.length===2)a=i[0],l=i[1];else throw new TypeError(`Expected [key, value] tuple: ${i}`);else if(i&&i instanceof Object){const c=Object.keys(i);if(c.length===1)a=c[0],l=i[a];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else a=i;o.items.push(Tn(a,l,t))}return o}class Pn extends to{constructor(){super(),this.add=xe.prototype.add.bind(this),this.delete=xe.prototype.delete.bind(this),this.get=xe.prototype.get.bind(this),this.has=xe.prototype.has.bind(this),this.set=xe.prototype.set.bind(this),this.tag=Pn.tag}toJSON(e,t){if(!t)return super.toJSON(e);const s=new Map;t?.onCreate&&t.onCreate(s);for(const o of this.items){let r,i;if(B(o)?(r=oe(o.key,"",t),i=oe(o.value,r,t)):r=oe(o,"",t),s.has(r))throw new Error("Ordered maps must not include duplicate keys");s.set(r,i)}return s}static from(e,t,s){const o=pa(e,t,s),r=new this;return r.items=o.items,r}}Pn.tag="tag:yaml.org,2002:omap";class Cn extends xe{constructor(e){super(e),this.tag=Cn.tag}add(e){let t;
271B(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new ae(e.key,null):t=new ae(e,null),Ie(this.items,t.key)||this.items.push(t)}get(e,t){const s=Ie(this.items,e);return!t&&B(s)?H(s.key)?s.key.value:s.key:s}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const s=Ie(this.items,e);s&&!t?this.items.splice(this.items.indexOf(s),1):!s&&t&&this.items.push(new ae(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,s){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,s);throw new Error("Set items must all have null values")}static from(e,t,s){const{replacer:o}=s,r=new this(e);if(t&&Symbol.iterator in Object(t))for(let i of t)typeof o=="function"&&(i=o.call(t,i,i)),r.items.push(Tn(i,null,s));return r}}Cn.tag="tag:yaml.org,2002:set";new Set("0123456789ABCDEFabcdef");new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");new Set(",[]{}");new Set(` ,[]{}
272\r	`);function Ln(n=5){const e=[],t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s=t.length;for(let o=0;o<n;o++)e.push(t.charAt(Math.floor(Math.random()*s)));return e.join("")}function Xl(n,e,t,s){const o=xs(e+t-1,n);for(let r=0;r<e;r++){const i=s(r),a=o.includes(r+t);for(const l of i)l.classList.toggle("slidev-code-highlighted",a),l.classList.toggle("slidev-code-dishonored",!a),l.classList.toggle("highlighted",a),l.classList.toggle("dishonored",!a)}}function no(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(2,10)}function te(n,e,t){Object.defineProperty(n,e,{value:t,writable:!0,enumerable:!1})}const ue=P({});let ga=[],ma=[];te(ue,"$syncUp",!0);te(ue,"$syncDown",!0);te(ue,"$paused",!1);te(ue,"$onSet",n=>ga.push(n));te(ue,"$onPatch",n=>ma.push(n));no();te(ue,"$patch",async()=>!1);const ya={channels:[],enabled:!0,init(n,e,t,s=!1){let o;if(!s)o=new BroadcastChannel(n),o.addEventListener("message",r=>e(r.data)),this.channels.push(o);else if(s){this.listener=function(i){i&&i.key===n&&i.newValue&&e(JSON.parse(i.newValue))},window.addEventListener("storage",this.listener);const r=window.localStorage.getItem(n);r&&e(JSON.parse(r))}return(r,i=!1)=>{this.enabled&&(!s&&o&&!i&&o.postMessage(Ls(r)),s&&!i&&window.localStorage.setItem(n,JSON.stringify(r)))}},disable(){this.enabled=!1,this.channels.forEach(n=>n.close()),this.listener&&window.removeEventListener("storage",this.listener)}},va=P([ya]),wa=new Map,ps=A({});function so(n,e,t=!1){const s=[];let o=!1,r=!1,i,a;const l=P(e);function c(u){s.push(u)}function f(u,g){l[u]!==g&&(clearTimeout(i),o=!0,l[u]=g,i=setTimeout(()=>o=!1,0))}function h(u){o||(clearTimeout(a),r=!0,Object.entries(u).forEach(([g,p])=>{l[g]=p}),a=setTimeout(()=>r=!1,0))}function d(u){wa.set(u,{onUpdate:h,persist:t,state:l}),ps.value[u]=va.map(p=>p.init(u,h,l,t)).filter(p=>!!p);function g(){ps.value[u].forEach(p=>p?.(Ls(l),r)),o||s.forEach(p=>p(l))}ee(l,g,{deep:!0})}return{init:d,onPatch:c,onUpdate:h,patch:f,state:l}}const{init:ba,onPatch:ec,patch:tc,state:nc}=so(ue,ue,!1),je=P({page:0,clicks:0});let ka=[],Sa=[];te(je,"$syncUp",!0);te(je,"$syncDown",!0);te(je,"$paused",!1);te(je,"$onSet",n=>ka.push(n));te(je,"$onPatch",n=>Sa.push(n));no();te(je,"$patch",async()=>!1);const{init:_a,onPatch:Ma,patch:dt,state:sc}=so(je,{page:1,clicks:0,clicksTotal:0});function Aa(){const n=As().appContext.app,e=P({nav:Ue(),configs:I,themeConfigs:k(()=>I.themeConfig)});n.provide(kn,A("none")),n.provide(Ti,e),n.provide(bn,k(()=>e.nav.currentSlideNo)),n.provide(Dt,wn($r()));for(const d of sr)d();const{clicksContext:t,currentSlideNo:s,hasPrimarySlide:o,isNotesViewer:r,isPresenter:i,isPrintMode:a}=Ue();Cr({title:Wt,htmlAttrs:I.htmlAttrs}),Ui(),_a(`${Wt} - shared`),ba(`${Wt} - drawings`);const l=`${location.origin}_${Ln()}`,c=k(()=>i.value?"presenter":"viewer");function f(){(i.value?ct.value.presenterSend:ct.value.viewerSend)&&(r.value||a.value||!i.value&&!Li.includes(location.host.split(":")[0])||(dt("page",+s.value),dt("clicks",t.value.current),dt("clicksTotal",t.value.total),dt("lastUpdate",{id:l,type:c.value,time:new Date().getTime()})))}const h=$t();h.afterEach(f),ee(t,f),Ma(d=>{(i.value?ct.value.presenterReceive:ct.value.viewerReceive)&&(!o.value||a.value||d.lastUpdate?.type!==c.value&&(+d.page==+s.value&&+t.value.current==+d.clicks||(Sn.value=!1,h.replace({path:Fe(d.page,i.value),query:{...h.currentRoute.value.query,clicks:d.clicks||0}}))))})}const Oa=Ts({__name:"App",setup(n){return Aa(),ze(()=>{for(const[e,t]of Object.entries(nr.value))document.body.style.setProperty(e,t.toString())}),(e,t)=>{const s=Ho("RouterView");return St(),xo(s)}}}),Ta=[];async function oo(n,e={}){const t=e.document||n.resolvedOptions.document;if(!t||!n.dirty)return;const s={shouldRender:!0,tags:[]};if(await n.hooks.callHook("dom:beforeRender",s),!!s.shouldRender)return n._domUpdatePromise||(n._domUpdatePromise=new Promise(async o=>{const r=new Map,i=new Promise(u=>{n.resolveTags().then(g=>{u(g.map(p=>{const m=r.get(p._d)||0,y={tag:p,id:(m?`${p._d}:${m}`:p._d)||Hn(p),shouldRender:!0};return p._d&&Ds(p._d)&&r.set(p._d,m+1),y}))})});let a=n._dom;if(!a){a={title:t.title,elMap:new Map().set("htmlAttrs",t.documentElement).set("bodyAttrs",t.body)};for(const u of["body","head"]){const g=t[u]?.children;for(const p of g){const m=p.tagName.toLowerCase();if(!xn.has(m))continue;const y=Ns({tag:m,props:{}},{innerHTML:p.innerHTML,...p.getAttributeNames().reduce((v,w)=>(v[w]=p.getAttribute(w),v),{})||{}});if(y.key=p.getAttribute("data-hid")||void 0,y._d=rn(y)||Hn(y),a.elMap.has(y._d)){let v=1,w=y._d;for(;a.elMap.has(w);)w=`${y._d}:${v++}`;a.elMap.set(w,p)}else a.elMap.set(y._d,p)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(u,g,p){const m=`${u}:${g}`;a.sideEffects[m]=p,delete a.pendingSideEffects[m]}function c({id:u,$el:g,tag:p}){const m=p.tag.endsWith("Attrs");a.elMap.set(u,g),m||(p.textContent&&p.textContent!==g.textContent&&(g.textContent=p.textContent),p.innerHTML&&p.innerHTML!==g.innerHTML&&(g.innerHTML=p.innerHTML),l(u,"el",()=>{g?.remove(),a.elMap.delete(u)}));for(const y in p.props){if(!Object.prototype.hasOwnProperty.call(p.props,y))continue;const v=p.props[y];if(y.startsWith("on")&&typeof v=="function"){const b=g?.dataset;if(b&&b[`${y}fired`]){const S=y.slice(0,-5);v.call(g,new Event(S.substring(2)))}g.getAttribute(`data-${y}`)!==""&&((p.tag==="bodyAttrs"?t.defaultView:g).addEventListener(y.substring(2),v.bind(g)),g.setAttribute(`data-${y}`,""));continue}const w=`attr:${y}`;if(y==="class"){if(!v)continue;for(const b of v)m&&l(u,`${w}:${b}`,()=>g.classList.remove(b)),!g.classList.contains(b)&&g.classList.add(b)}else if(y==="style"){if(!v)continue;for(const[b,S]of v)l(u,`${w}:${b}`,()=>{g.style.removeProperty(b)}),g.style.setProperty(b,S)}else v!==!1&&v!==null&&(g.getAttribute(y)!==v&&g.setAttribute(y,v===!0?"":String(v)),m&&l(u,w,()=>g.removeAttribute(y)))}}const f=[],h={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await i;for(const u of d){const{tag:g,shouldRender:p,id:m}=u;if(p){if(g.tag==="title"){t.title=g.textContent,l("title","",()=>t.title=a.title);continue}u.$el=u.$el||a.elMap.get(m),u.$el?c(u):xn.has(g.tag)&&f.push(u)}}for(const u of f){const g=u.tag.tagPosition||"head";u.$el=t.createElement(u.tag.tag),c(u),h[g]=h[g]||t.createDocumentFragment(),h[g].appendChild(u.$el)}for(const u of d)await n.hooks.callHook("dom:renderTag",u,t,l);h.head&&t.head.appendChild(h.head),h.bodyOpen&&t.body.insertBefore(h.bodyOpen,t.body.firstChild),h.bodyClose&&t.body.appendChild(h.bodyClose);for(const u in a.pendingSideEffects)a.pendingSideEffects[u]();n._dom=a,await n.hooks.callHook("dom:rendered",{renders:d}),o()}).finally(()=>{n._domUpdatePromise=void 0,n.dirty=!1})),n._domUpdatePromise}function Pa(n={}){const e=n.domOptions?.render||oo;n.document=n.document||(typeof window<"u"?document:void 0);const t=n.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return Ar({...n,plugins:[...n.plugins||[],{key:"client",hooks:{"entries:updated":e}}],init:[t?JSON.parse(t):!1,...n.init||[]]})}function Ca(n,e){let t=0;return()=>{const s=++t;e(()=>{t===s&&n()})}}function La(n={}){const e=Pa({domOptions:{render:Ca(()=>oo(e),t=>setTimeout(t,0))},...n});return e.install=Tr(e),e}function oc(n,e=""){const t=["slidev-page",e],s=n?.meta?.slide?.no;return s!=null&&t.push(`slidev-page-${s}`),t.filter(Boolean).join(" ")}async function rc(){const{saveAs:n}=await T(async()=>{const{saveAs:e}=await import("./modules/file-saver-C8BEGaqa.js").then(t=>t.F);return{saveAs:e}},[]);n(typeof I.download=="string"?I.download:I.exportFilename?`${I.exportFilename}.pdf`:"/slidev-exported.pdf",`${I.title}.pdf`)}function qe(n,e,t){return(n.instance?.$).provides[e]??t}function Ea(){return{install(n){n.directive("click",{name:"v-click",mounted(e,t){const s=bt(e,t,t.value);s!=null&&(e.classList.toggle(gt,!0),e.dataset.slidevClicksStart=String(s.start),Number.isFinite(s.end)&&(e.dataset.slidevClicksEnd=String(s.end)),e.watchStopHandle=ze(()=>{const o=s.isActive.value,r=s.isCurrent.value,i=o&&!r;s.flagHide?(e.classList.toggle(s.flagFade?Qe:Ge,o),e.classList.toggle(zt,o)):e.classList.toggle(s.flagFade?Qe:Ge,!o),e.classList.toggle(qt,r),e.classList.toggle(Ut,i)}
272))},unmounted:Qt}),n.directive("after",{name:"v-after",mounted(e,t){const s=bt(e,t,"+0");s!=null&&(e.classList.toggle(gt,!0),e.watchStopHandle=ze(()=>{const o=s.isActive.value,r=s.isCurrent.value,i=o&&!r;s.flagHide?(e.classList.toggle(s.flagFade?Qe:Ge,o),e.classList.toggle(zt,o)):e.classList.toggle(s.flagFade?Qe:Ge,!o),e.classList.toggle(qt,r),e.classList.toggle(Ut,i)}))},unmounted:Qt}),n.directive("click-hide",{name:"v-click-hide",mounted(e,t){const s=bt(e,t,t.value,!0);s!=null&&(e.classList.toggle(gt,!0),e.watchStopHandle=ze(()=>{const o=s.isActive.value,r=s.isCurrent.value,i=o&&!r;e.classList.toggle(s.flagFade?Qe:Ge,o),e.classList.toggle(zt,o),e.classList.toggle(qt,r),e.classList.toggle(Ut,i)}))},unmounted:Qt})}}}const ro=new Map;function bt(n,e,t,s=!1){const o=qe(e,Dt)?.value;if(!n||!o)return null;const r=s||e.modifiers.hide!==!1&&e.modifiers.hide!=null,i=e.modifiers.fade!==!1&&e.modifiers.fade!=null,a=o.calculate(t);if(!a)return null;o.register(n,a);const l=k(()=>r?!a.isActive.value:a.isActive.value),c=k(()=>l.value?"shown":Number.isFinite(a.end)?o.current<a.start?"before":"after":r?"after":"before"),f={...a,isShown:l,visibilityState:c,flagFade:i,flagHide:r};return ro.set(n,f),f}function Qt(n,e){n.classList.toggle(gt,!1),qe(e,Dt)?.value?.unregister(n),n.watchStopHandle?.()}function $a(n=Ms(Hs,A())){const e=Fo(n),t=ee([xi,Hi,Fi,Vi,Ri,Mt.width,Mt.height],()=>{setTimeout(e.update,300)},{flush:"post",immediate:!0});return{...e,stop:t}}function Ia(n){return()=>{}}function Da(n,e,t,s=!1){function o(D){return n?qe(n,D):Bo(D)}const r=o(kn),i=o(Pi)??{},a=o(bn),l=k(()=>Ia(a.value)),c=o(Oi)??A(1),f=o(Ci)??A(1),{left:h,top:d,stop:u}=$a(o(Hs)??A()),{isPrintMode:g}=Ue(),p=["slide","presenter"].includes(r.value)&&!g.value;let m=n?"directive":"prop",y=Ln(),v;if(Array.isArray(e)?v=e:typeof e=="string"&&e.includes(",")?v=e.split(",").map(Number):e!=null&&(m="frontmatter",y=`${e}`,e=i?.dragPos?.[y],v=e?.split(",").map(Number)),m!=="frontmatter"&&!t)throw new Error("[Slidev] Can not identify the source position of the v-drag element, please provide an explicit `id` prop.");const w=[u],b=!s&&e!=null&&!Number.isFinite(v?.[3]);v??=[Number.NaN,Number.NaN,0];const S=A(v[2]),O=A(v[0]+v[2]/2),L=A(s?0:v[4]??0),V=k(()=>L.value*Math.PI/180),U=k(()=>Math.sin(V.value)),le=k(()=>Math.cos(V.value)),Z=A(),M=A({left:0,top:0,width:0,height:0}),C=A(0);function W(){if(!Z.value)return;const D=Z.value.getBoundingClientRect();M.value={left:D.left/f.value,top:D.top/f.value,width:D.width/f.value,height:D.height/f.value},C.value=(M.value.width+M.value.height)/c.value/(Math.abs(U.value)+Math.abs(le.value))-S.value}w.push(ee(S,W,{flush:"post"}));const R=A(v[3]??0),E=b?k({get:()=>(b?C.value:R.value)||0,set:D=>!b&&(R.value=D)}):R,ie=b?A(v[1]):A(v[1]+v[3]/2),ce=b?k({get:()=>ie.value+E.value/2,set:D=>ie.value=D-E.value/2}):ie,Ke=k(()=>Number.isFinite(O.value)?{position:"absolute",zIndex:100,left:`${O.value-S.value/2}px`,top:`${ce.value-E.value/2}px`,width:`${S.value}px`,height:b?void 0:`${E.value}px`,transformOrigin:"center center",transform:`rotate(${L.value}deg)`}:{position:"absolute",zIndex:100});w.push(ee([O,ce,S,E,L],([D,it,In,Dn,Nn])=>{let Re=[D-In/2,it-Dn/2,In].map(Math.round).join();b?Re+=m==="directive"?",NaN":",_":Re+=`,${Math.round(Dn)}`,Math.round(Nn)!==0&&(Re+=`,${Math.round(Nn)}`),m==="directive"&&(Re=`[${Re}]`),l.value(y,Re,m,t)}));const G={dragId:y,dataSource:m,markdownSource:t,isArrow:s,zoom:f,autoHeight:b,x0:O,y0:ce,width:S,height:E,rotate:L,container:Z,containerStyle:Ke,watchStopHandles:w,dragging:k(()=>at.value===G),mounted(){p&&(W(),e||setTimeout(()=>{W(),O.value=(M.value.left+M.value.width/2-h.value)/c.value,ce.value=(M.value.top-d.value)/c.value,S.value=M.value.width/c.value,E.value=M.value.height/c.value},100))},unmounted(){p&&G.stopDragging()},startDragging(){p&&(W(),at.value=G)},stopDragging(){p&&at.value===G&&(at.value=null)}};return w.push(Vo(Z,D=>{const it=document.querySelector("#drag-control-container");it&&D.target&&it.contains(D.target)||G.stopDragging()}),ee(Wo(),D=>{D||G.stopDragging()})),G}function Na(){return{install(n){n.directive("drag",{name:"v-drag",created(e,t,s){const o=Da(t,t.value,s.props?.markdownSource);s.props&&(s.props={...s.props},delete s.props.markdownSource),o.container.value=e,e.draggingState=o,e.dataset.dragId=o.dragId,o.watchStopHandles.push(ee(o.containerStyle,r=>{for(const[i,a]of Object.entries(r))a&&(e.style[i]=a)},{immediate:!0})),e.addEventListener("dblclick",o.startDragging)},mounted(e){e.draggingState.mounted()},unmounted(e){const t=e.draggingState;t.unmounted(),e.removeEventListener("dblclick",t.startDragging),t.watchStopHandles.forEac
272h(s=>s())}})}}}function io(){return Math.floor(Math.random()*2**31)}class ja{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}function dn(n,e,t){if(n&&n.length){const[s,o]=e,r=Math.PI/180*t,i=Math.cos(r),a=Math.sin(r);for(const l of n){const[c,f]=l;l[0]=(c-s)*i-(f-o)*a+s,l[1]=(c-s)*a+(f-o)*i+o}}}function Ra(n,e,t){const s=[];n.forEach(o=>s.push(...o)),dn(s,e,t)}function xa(n,e){return n[0]===e[0]&&n[1]===e[1]}function Ha(n,e,t,s=1){const o=t,r=Math.max(e,.1),i=n[0]&&n[0][0]&&typeof n[0][0]=="number"?[n]:n,a=[0,0];if(o)for(const c of i)dn(c,a,o);const l=Fa(i,r,s);if(o){for(const c of i)dn(c,a,-o);Ra(l,a,-o)}return l}function Fa(n,e,t){const s=[];for(const c of n){const f=[...c];xa(f[0],f[f.length-1])||f.push([f[0][0],f[0][1]]),f.length>2&&s.push(f)}const o=[];e=Math.max(e,.1);const r=[];for(const c of s)for(let f=0;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]);r.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(r.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)),!r.length)return o;let i=[],a=r[0].ymin,l=0;for(;i.length||r.length;){if(r.length){let c=-1;for(let h=0;h<r.length&&!(r[h].ymin>a);h++)c=h;r.splice(0,c+1).forEach(h=>{i.push({s:a,edge:h})})}if(i=i.filter(c=>!(c.edge.ymax<=a)),i.sort((c,f)=>c.edge.x===f.edge.x?0:(c.edge.x-f.edge.x)/Math.abs(c.edge.x-f.edge.x)),(t!==1||l%e===0)&&i.length>1)for(let c=0;c<i.length;c=c+2){const f=c+1;if(f>=i.length)break;const h=i[c].edge,d=i[f].edge;o.push([[Math.round(h.x),a],[Math.round(d.x),a]])}a+=t,i.forEach(c=>{c.edge.x=c.edge.x+t*c.edge.islope}),l++}return o}function rt(n,e){var t;const s=e.hachureAngle+90;let o=e.hachureGap;o<0&&(o=e.strokeWidth*4),o=Math.round(Math.max(o,.1));let r=1;return e.roughness>=1&&(((t=e.randomizer)===null||t===void 0?void 0:t.next())||Math.random())>.7&&(r=o),Ha(n,o,s,r||1)}class En{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){const s=rt(e,t);return{type:"fillSketch",ops:this.renderLines(s,t)}}renderLines(e,t){const s=[];for(const o of e)s.push(...this.helper.doubleLineOps(o[0][0],o[0][1],o[1][0],o[1][1],t));return s}}function Vt(n){const e=n[0],t=n[1];return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2))}class Va extends En{fillPolygons(e,t){let s=t.hachureGap;s<0&&(s=t.strokeWidth*4),s=Math.max(s,.1);const o=Object.assign({},t,{hachureGap:s}),r=rt(e,o),i=Math.PI/180*t.hachureAngle,a=[],l=s*.5*Math.cos(i),c=s*.5*Math.sin(i);for(const[h,d]of r)Vt([h,d])&&a.push([[h[0]-l,h[1]+c],[...d]],[[h[0]+l,h[1]-c],[...d]]);return{type:"fillSketch",ops:this.renderLines(a,t)}}}class Wa extends En{fillPolygons(e,t){const s=this._fillPolygons(e,t),o=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),r=this._fillPolygons(e,o);return s.ops=s.ops.concat(r.ops),s}}class Ba{constructor(e){this.helper=e}fillPolygons(e,t){t=Object.assign({},t,{hachureAngle:0});const s=rt(e,t);return this.dotsOnLines(s,t)}dotsOnLines(e,t){const s=[];let o=t.hachureGap;o<0&&(o=t.strokeWidth*4),o=Math.max(o,.1);let r=t.fillWeight;r<0&&(r=t.strokeWidth/2);const i=o/4;for(const a of e){const l=Vt(a),c=l/o,f=Math.ceil(c)-1,h=l-f*o,d=(a[0][0]+a[1][0])/2-o/4,u=Math.min(a[0][1],a[1][1]);for(let g=0;g<f;g++){const p=u+h+g*o,m=d-i+Math.random()*2*i,y=p-i+Math.random()*2*i,v=this.helper.ellipse(m,y,r,r,t);s.push(...v.ops)}}return{type:"fillSketch",ops:s}}}class za{constructor(e){this.helper=e}fillPolygons(e,t){const s=rt(e,t);return{type:"fillSketch",ops:this.dashedLine(s,t)}}dashedLine(e,t){const s=t.dashOffset<0?t.hachureGap<0?t.strokeWidth*4:t.hachureGap:t.dashOffset,o=t.dashGap<0?t.hachureGap<0?t.strokeWidth*4:t.hachureGap:t.dashGap,r=[];return e.forEach(i=>{const a=Vt(i),l=Math.floor(a/(s+o)),c=(a+o-l*(s+o))/2;let f=i[0],h=i[1];f[0]>h[0]&&(f=i[1],h=i[0]);const d=Math.atan((h[1]-f[1])/(h[0]-f[0]));for(let u=0;u<l;u++){const g=u*(s+o),p=g+s,m=[f[0]+g*Math.cos(d)+c*Math.cos(d),f[1]+g*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*
272Math.sin(d)];r.push(...this.helper.doubleLineOps(m[0],m[1],y[0],y[1],t))}}),r}}class qa{constructor(e){this.helper=e}fillPolygons(e,t){const s=t.hachureGap<0?t.strokeWidth*4:t.hachureGap,o=t.zigzagOffset<0?s:t.zigzagOffset;t=Object.assign({},t,{hachureGap:s+o});const r=rt(e,t);return{type:"fillSketch",ops:this.zigzagLines(r,o,t)}}zigzagLines(e,t,s){const o=[];return e.forEach(r=>{const i=Vt(r),a=Math.round(i/(2*t));let l=r[0],c=r[1];l[0]>c[0]&&(l=r[1],c=r[0]);const f=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let h=0;h<a;h++){const d=h*2*t,u=(h+1)*2*t,g=Math.sqrt(2*Math.pow(t,2)),p=[l[0]+d*Math.cos(f),l[1]+d*Math.sin(f)],m=[l[0]+u*Math.cos(f),l[1]+u*Math.sin(f)],y=[p[0]+g*Math.cos(f+Math.PI/4),p[1]+g*Math.sin(f+Math.PI/4)];o.push(...this.helper.doubleLineOps(p[0],p[1],y[0],y[1],s),...this.helper.doubleLineOps(y[0],y[1],m[0],m[1],s))}}),o}}const K={};function Ua(n,e){let t=n.fillStyle||"hachure";if(!K[t])switch(t){case"zigzag":K[t]||(K[t]=new Va(e));break;case"cross-hatch":K[t]||(K[t]=new Wa(e));break;case"dots":K[t]||(K[t]=new Ba(e));break;case"dashed":K[t]||(K[t]=new za(e));break;case"zigzag-line":K[t]||(K[t]=new qa(e));break;case"hachure":default:t="hachure",K[t]||(K[t]=new En(e));break}return K[t]}const Ka=0,hn=1,ao=2,ht={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 Ja(n){const e=new Array;for(;n!=="";)if(n.match(/^([ \t\r\n,]+)/))n=n.substr(RegExp.$1.length);else if(n.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:Ka,text:RegExp.$1},n=n.substr(RegExp.$1.length);else if(n.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))e[e.length]={type:hn,text:`${parseFloat(RegExp.$1)}`},n=n.substr(RegExp.$1.length);else return[];return e[e.length]={type:ao,text:""},e}function Yt(n,e){return n.type===e}function $n(n){const e=[],t=Ja(n);let s="BOD",o=0,r=t[o];for(;!Yt(r,ao);){let i=0;const a=[];if(s==="BOD")if(r.text==="M"||r.text==="m")o++,i=ht[r.text],s=r.text;else return $n("M0,0"+n);else Yt(r,hn)?i=ht[s]:(o++,i=ht[r.text],s=r.text);if(o+i<t.length){for(let l=o;l<o+i;l++){const c=t[l];if(Yt(c,hn))a[a.length]=+c.text;else throw new Error("Param not a number: "+s+","+c.text)}if(typeof ht[s]=="number"){const l={key:s,data:a};e.push(l),o+=i,r=t[o],s==="M"&&(s="L"),s==="m"&&(s="l")}else throw new Error("Bad segment: "+s)}else throw new Error("Path data ended short")}return e}function lo(n){let e=0,t=0,s=0,o=0;const r=[];for(const{key:i,data:a}of n)switch(i){case"M":r.push({key:"M",data:[...a]}),[e,t]=a,[s,o]=a;break;case"m":e+=a[0],t+=a[1],r.push({key:"M",data:[e,t]}),s=e,o=t;break;case"L":r.push({key:"L",data:[...a]}),[e,t]=a;break;case"l":e+=a[0],t+=a[1],r.push({key:"L",data:[e,t]});break;case"C":r.push({key:"C",data:[...a]}),e=a[4],t=a[5];break;case"c":{const l=a.map((c,f)=>f%2?c+t:c+e);r.push({key:"C",data:l}),e=l[4],t=l[5];break}case"Q":r.push({key:"Q",data:[...a]}),e=a[2],t=a[3];break;case"q":{const l=a.map((c,f)=>f%2?c+t:c+e);r.push({key:"Q",data:l}),e=l[2],t=l[3];break}case"A":r.push({key:"A",data:[...a]}),e=a[5],t=a[6];break;case"a":e+=a[5],t+=a[6],r.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],e,t]});break;case"H":r.push({key:"H",data:[...a]}),e=a[0];break;case"h":e+=a[0],r.push({key:"H",data:[e]});break;case"V":r.push({key:"V",data:[...a]}),t=a[0];break;case"v":t+=a[0],r.push({key:"V",data:[t]});break;case"S":r.push({key:"S",data:[...a]}),e=a[2],t=a[3];break;case"s":{const l=a.map((c,f)=>f%2?c+t:c+e);r.push({key:"S",data:l}),e=l[2],t=l[3];break}case"T":r.push({key:"T",data:[...a]}),e=a[0],t=a[1];break;case"t":e+=a[0],t+=a[1],r.push({key:"T",data:[e,t]});break;case"Z":case"z":r.push({key:"Z",data:[]}),e=s,t=o;break}return r}function co(n){const e=[];let t="",s=0,o=0,r=0,i=0,a=0,l=0;for(const{key:c,data:f}of n){switch(c){case"M":e.push({key:"M",data:[...f]}),[s,o]=f,[r,i]=f;break;case"C":e.push({key:"C",data:[...f]}),s=f[4],o=f[5],a=f[2],l=f[3];break;case"L":e.push({key:"L",data:[...f]}),[s,o]=f;break;case"H":s=f[0],e.push({key:"L",data:[s,o]});break;case"V":o=f[0],e.push({key:"L",data:[s,o]});break;case"S":{let h=0,d=0;t==="C"||t==="S"?(h=s+(s-a),d=o+(o-l)):(h=s,d=o),e.push({key:"C",data:[h,d,...f]}
272),a=f[0],l=f[1],s=f[2],o=f[3];break}case"T":{const[h,d]=f;let u=0,g=0;t==="Q"||t==="T"?(u=s+(s-a),g=o+(o-l)):(u=s,g=o);const p=s+2*(u-s)/3,m=o+2*(g-o)/3,y=h+2*(u-h)/3,v=d+2*(g-d)/3;e.push({key:"C",data:[p,m,y,v,h,d]}),a=u,l=g,s=h,o=d;break}case"Q":{const[h,d,u,g]=f,p=s+2*(h-s)/3,m=o+2*(d-o)/3,y=u+2*(h-u)/3,v=g+2*(d-g)/3;e.push({key:"C",data:[p,m,y,v,u,g]}),a=h,l=d,s=u,o=g;break}case"A":{const h=Math.abs(f[0]),d=Math.abs(f[1]),u=f[2],g=f[3],p=f[4],m=f[5],y=f[6];h===0||d===0?(e.push({key:"C",data:[s,o,m,y,m,y]}),s=m,o=y):(s!==m||o!==y)&&(uo(s,o,m,y,h,d,u,g,p).forEach(function(w){e.push({key:"C",data:w})}),s=m,o=y);break}case"Z":e.push({key:"Z",data:[]}),s=r,o=i;break}t=c}return e}function Ga(n){return Math.PI*n/180}function Ye(n,e,t){const s=n*Math.cos(t)-e*Math.sin(t),o=n*Math.sin(t)+e*Math.cos(t);return[s,o]}function uo(n,e,t,s,o,r,i,a,l,c){const f=Ga(i);let h=[],d=0,u=0,g=0,p=0;if(c)[d,u,g,p]=c;else{[n,e]=Ye(n,e,-f),[t,s]=Ye(t,s,-f);const M=(n-t)/2,C=(e-s)/2;let W=M*M/(o*o)+C*C/(r*r);W>1&&(W=Math.sqrt(W),o=W*o,r=W*r);const R=a===l?-1:1,E=o*o,ie=r*r,ce=E*ie-E*C*C-ie*M*M,Ke=E*C*C+ie*M*M,G=R*Math.sqrt(Math.abs(ce/Ke));g=G*o*C/r+(n+t)/2,p=G*-r*M/o+(e+s)/2,d=Math.asin(parseFloat(((e-p)/r).toFixed(9))),u=Math.asin(parseFloat(((s-p)/r).toFixed(9))),n<g&&(d=Math.PI-d),t<g&&(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 m=u-d;if(Math.abs(m)>Math.PI*120/180){const M=u,C=t,W=s;l&&u>d?u=d+Math.PI*120/180*1:u=d+Math.PI*120/180*-1,t=g+o*Math.cos(u),s=p+r*Math.sin(u),h=uo(t,s,C,W,o,r,i,0,l,[u,M,g,p])}m=u-d;const y=Math.cos(d),v=Math.sin(d),w=Math.cos(u),b=Math.sin(u),S=Math.tan(m/4),O=4/3*o*S,L=4/3*r*S,V=[n,e],U=[n+O*v,e-L*y],le=[t+O*b,
272s-L*w],Z=[t,s];if(U[0]=2*V[0]-U[0],U[1]=2*V[1]-U[1],c)return[U,le,Z].concat(h);{h=[U,le,Z].concat(h);const M=[];for(let C=0;C<h.length;C+=3){const W=Ye(h[C][0],h[C][1],f),R=Ye(h[C+1][0],h[C+1][1],f),E=Ye(h[C+2][0],h[C+2][1],f);M.push([W[0],W[1],R[0],R[1],E[0],E[1]])}return M}}const Qa={randOffset:Xa,randOffsetWithRange:el,ellipse:pn,doubleLineOps:tl};function X(n,e,t,s,o){return{type:"path",ops:fe(n,e,t,s,o)}}function nt(n,e,t){const s=(n||[]).length;if(s>2){const o=[];for(let r=0;r<s-1;r++)o.push(...fe(n[r][0],n[r][1],n[r+1][0],n[r+1][1],t));return e&&o.push(...fe(n[s-1][0],n[s-1][1],n[0][0],n[0][1],t)),{type:"path",ops:o}}else if(s===2)return X(n[0][0],n[0][1],n[1][0],n[1][1],t);return{type:"path",ops:[]}}function Ya(n,e){return nt(n,!0,e)}function fo(n,e,t,s,o){const r=[[n,e],[n+t,e],[n+t,e+s],[n,e+s]];return Ya(r,o)}function gs(n,e){if(n.length){const s=typeof n[0][0]=="number"?[n]:n,o=pt(s[0],1*(1+e.roughness*.2),e),r=e.disableMultiStroke?[]:pt(s[0],1.5*(1+e.roughness*.22),vs(e));for(let i=1;i<s.length;i++){const a=s[i];if(a.length){const l=pt(a,1*(1+e.roughness*.2),e),c=e.disableMultiStroke?[]:pt(a,1.5*(1+e.roughness*.22),vs(e));for(const f of l)f.op!=="move"&&o.push(f);for(const f of c)f.op!=="move"&&r.push(f)}}return{type:"path",ops:o.concat(r)}}return{type:"path",ops:[]}}function pn(n,e,t,s,o){const r=ho(t,s,o);return gn(n,e,o,r).opset}function ho(n,e,t){const s=Math.sqrt(Math.PI*2*Math.sqrt((Math.pow(n/2,2)+Math.pow(e/2,2))/2)),o=Math.ceil(Math.max(t.curveStepCount,t.curveStepCount/Math.sqrt(200)*s)),r=Math.PI*2/o;let i=Math.abs(n/2),a=Math.abs(e/2);const l=1-t.curveFitting;return i+=_(i*l,t),a+=_(a*l,t),{increment:r,rx:i,ry:a}}function gn(n,e,t,s){const[o,r]=ws(s.increment,n,e,s.rx,s.ry,1,s.increment*Ct(.1,Ct(.4,1,t),t),t);let i=Lt(o,null,t);if(!t.disableMultiStroke&&t.roughness!==0){const[a]=ws(s.increment,n,e,s.rx,s.ry,1.5,0,t),l=Lt(a,null,t);i=i.concat(l)}return{estimatedPoints:r,opset:{type:"path",ops:i}}}function ms(n,e,t,s,o,r,i,a,l){const c=n,f=e;let h=Math.abs(t/2),d=Math.abs(s/2);h+=_(h*.01,l),d+=_(d*.01,l);let u=o,g=r;for(;u<0;)u+=Math.PI*2,g+=Math.PI*2;g-u>Math.PI*2&&(u=0,g=Math.PI*2);const p=Math.PI*2/l.curveStepCount,m=Math.min(p/2,(g-u)/2),y=bs(m,c,f,h,d,u,g,1,l);if(!l.disableMultiStroke){const v=bs(m,c,f,h,d,u,g,1.5,l);y.push(...v)}return i&&(a?y.push(...fe(c,f,c+h*Math.cos(u),f+d*Math.sin(u),l),...fe(c,f,c+h*Math.cos(g),f+d*Math.sin(g),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 ys(n,e){const t=co(lo($n(n))),s=[];let o=[0,0],r=[0,0];for(const{key:i,data:a}of t)switch(i){case"M":{r=[a[0],a[1]],o=[a[0],a[1]];break}case"L":s.push(...fe(r[0],r[1],a[0],a[1],e)),r=[a[0],a[1]];break;case"C":{const[l,c,f,h,d,u]=a;s.push(...nl(l,c,f,h,d,u,r,e)),r=[d,u];break}case"Z":s.push(...fe(r[0],r[1],o[0],o[1],e)),r=[o[0],o[1]];break}return{type:"path",ops:s}}function Zt(n,e){const t=[];for(const s of n)if(s.length){const o=e.maxRandomnessOffset||0,r=s.length;if(r>2){t.push({op:"move",data:[s[0][0]+_(o,e),s[0][1]+_(o,e)]});for(let i=1;i<r;i++)t.push({op:"lineTo",data:[s[i][0]+_(o,e),s[i][1]+_(o,e)]})}}return{type:"fillPath",ops:t}}function He(n,e){return Ua(e,Qa).fillPolygons(n,e)}function Za(n,e,t,s,o,r,i){const a=n,l=e;let c=Math.abs(t/2),f=Math.abs(s/2);c+=_(c*.01,i),f+=_(f*.01,i);let h=o,d=r;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)/i.curveStepCount,g=[];for(let p=h;p<=d;p=p+u)g.push([a+c*Math.cos(p),l+f*Math.sin(p)]);
272return g.push([a+c*Math.cos(d),l+f*Math.sin(d)]),g.push([a,l]),He([g],i)}function Xa(n,e){return _(n,e)}function el(n,e,t){return Ct(n,e,t)}function tl(n,e,t,s,o){return fe(n,e,t,s,o,!0)}function vs(n){const e=Object.assign({},n);return e.randomizer=void 0,n.seed&&(e.seed=n.seed+1),e}function po(n){return n.randomizer||(n.randomizer=new ja(n.seed||0)),n.randomizer.next()}function Ct(n,e,t,s=1){return t.roughness*s*(po(t)*(e-n)+n)}function _(n,e,t=1){return Ct(-n,n,e,t)}function fe(n,e,t,s,o,r=!1){const i=r?o.disableMultiStrokeFill:o.disableMultiStroke,a=mn(n,e,t,s,o,!0,!1);if(i)return a;const l=mn(n,e,t,s,o,!0,!0);return a.concat(l)}function mn(n,e,t,s,o,r,i){const a=Math.pow(n-t,2)+Math.pow(e-s,2),l=Math.sqrt(a);let c=1;l<200?c=1:l>500?c=.4:c=-.0016668*l+1.233334;let f=o.maxRandomnessOffset||0;f*f*100>a&&(f=l/10);const h=f/2,d=.2+po(o)*.2;let u=o.bowing*o.maxRandomnessOffset*(s-e)/200,g=o.bowing*o.maxRandomnessOffset*(n-t)/200;u=_(u,o,c),g=_(g,o,c);const p=[],m=()=>_(h,o,c),y=()=>_(f,o,c),v=o.preserveVertices;return i?p.push({op:"move",data:[n+(v?0:m()),e+(v?0:m())]}):p.push({op:"move",data:[n+(v?0:_(f,o,c)),e+(v?0:_(f,o,c))]}),i?p.push({op:"bcurveTo",data:[u+n+(t-n)*d+m(),g+e+(s-e)*d+m(),u+n+2*(t-n)*d+m(),g+e+2*(s-e)*d+m(),t+(v?0:m()),s+(v?0:m())]}):p.push({op:"bcurveTo",data:[u+n+(t-n)*d+y(),g+e+(s-e)*d+y(),u+n+2*(t-n)*d+y(),g+e+2*(s-e)*d+y(),t+(v?0:y()),s+(v?0:y())]}),p}function pt(n,e,t){if(!n.length)return[];const s=[];
272s.push([n[0][0]+_(e,t),n[0][1]+_(e,t)]),s.push([n[0][0]+_(e,t),n[0][1]+_(e,t)]);for(let o=1;o<n.length;o++)s.push([n[o][0]+_(e,t),n[o][1]+_(e,t)]),o===n.length-1&&s.push([n[o][0]+_(e,t),n[o][1]+_(e,t)]);return Lt(s,null,t)}function Lt(n,e,t){const s=n.length,o=[];if(s>3){const r=[],i=1-t.curveTightness;o.push({op:"move",data:[n[1][0],n[1][1]]});for(let a=1;a+2<s;a++){const l=n[a];r[0]=[l[0],l[1]],r[1]=[l[0]+(i*n[a+1][0]-i*n[a-1][0])/6,l[1]+(i*n[a+1][1]-i*n[a-1][1])/6],r[2]=[n[a+1][0]+(i*n[a][0]-i*n[a+2][0])/6,n[a+1][1]+(i*n[a][1]-i*n[a+2][1])/6],r[3]=[n[a+1][0],n[a+1][1]],o.push({op:"bcurveTo",data:[r[1][0],r[1][1],r[2][0],r[2][1],r[3][0],r[3][1]]})}}else s===3?(o.push({op:"move",data:[n[1][0],n[1][1]]}),o.push({op:"bcurveTo",data:[n[1][0],n[1][1],n[2][0],n[2][1],n[2][0],n[2][1]]})):s===2&&o.push(...mn(n[0][0],n[0][1],n[1][0],n[1][1],t,!0,!0));return o}function ws(n,e,t,s,o,r,i,a){const l=a.roughness===0,c=[],f=[];if(l){n=n/4,f.push([e+s*Math.cos(-n),t+o*Math.sin(-n)]);for(let h=0;h<=Math.PI*2;h=h+n){const d=[e+s*Math.cos(h),t+o*Math.sin(h)];c.push(d),f.push(d)}f.push([e+s*Math.cos(0),t+o*Math.sin(0)]),f.push([e+s*Math.cos(n),t+o*Math.sin(n)])}else{const h=_(.5,a)-Math.PI/2;f.push([_(r,a)+e+.9*s*Math.cos(h-n),_(r,a)+t+.9*o*Math.sin(h-n)]);const d=Math.PI*2+h-.01;for(let u=h;u<d;u=u+n){const g=[_(r,a)+e+s*Math.cos(u),_(r,a)+t+o*Math.sin(u)];c.push(g),f.push(g)}f.push([_(r,a)+e+s*Math.cos(h+Math.PI*2+i*.5),_(r,a)+t+o*Math.sin(h+Math.PI*2+i*.5)]),f.push([_(r,a)+e+.98*s*Math.cos(h+i),_(r,a)+t+.98*o*Math.sin(h+i)]),f.push([_(r,a)+e+.9*s*Math.cos(h+i*.5),_(r,a)+t+.9*o*Math.sin(h+i*.5)])}return[f,c]}function bs(n,e,t,s,o,r,i,a,l){const c=r+_(.1,l),f=[];f.push([_(a,l)+e+.9*s*Math.cos(c-n),_(a,l)+t+.9*o*Math.sin(c-n)]);for(let h=c;h<=i;h=h+n)f.push([_(a,l)+e+s*Math.cos(h),_(a,l)+t+o*Math.sin(h)]);return f.push([e+s*Math.cos(i),t+o*Math.sin(i)]),f.push([e+s*Math.cos(i),t+o*Math.sin(i)]),Lt(f,null,l)}function nl(n,e,t,s,o,r,i,a){const l=[],c=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let f=[0,0];const h=a.disableMultiStroke?1:2,d=a.preserveVertices;for(let u=0;u<h;u++)u===0?l.push({op:"move",data:[i[0],i[1]]}):l.push({op:"move",data:[i[0]+(d?0:_(c[0],a)),i[1]+(d?0:_(c[0],a))]}),f=d?[o,r]:[o+_(c[u],a),r+_(c[u],a)],l.push({op:"bcurveTo",data:[n+_(c[u],a),e+_(c[u],a),t+_(c[u],a),s+_(c[u],a),f[0],f[1]]});return l}function Ze(n){return[...n]}function ks(n,e=0){const t=n.length;if(t<3)throw new Error("A curve must have at least three points.");const s=[];if(t===3)s.push(Ze(n[0]),Ze(n[1]),Ze(n[2]),Ze(n[2]));else{const o=[];o.push(n[0],n[0]);for(let a=1;a<n.length;a++)o.push(n[a]),a===n.length-1&&o.push(n[a]);const r=[],i=1-e;s.push(Ze(o[0]));for(let a=1;a+2<o.length;a++){const l=o[a];r[0]=[l[0],l[1]],r[1]=[l[0]+(i*o[a+1][0]-i*o[a-1][0])/6,l[1]+(i*o[a+1][1]-i*o[a-1][1])/6],r[2]=[o[a+1][0]+(i*o[a][0]-i*o[a+2][0])/6,o[a+1][1]+(i*o[a][1]-i*o[a+2][1])/6],r[3]=[o[a+1][0],o[a+1][1]],s.push(r[1],r[2],r[3])}}return s}function sl(n,e){return Math.sqrt(kt(n,e))}function kt(n,e){return Math.pow(n[0]-e[0],2)+Math.pow(n[1]-e[1],2)}function ol(n,e,t){const s=kt(e,t);if(s===0)return kt(n,e);let o=((n[0]-e[0])*(t[0]-e[0])+(n[1]-e[1])*(t[1]-e[1]))/s;return o=Math.max(0,Math.min(1,o)),kt(n,$e(e,t,o))}function $e(n,e,t){return[n[0]+(e[0]-n[0])*t,n[1]+(e[1]-n[1])*t]}function rl(n,e){const t=n[e+0],s=n[e+1],o=n[e+2],r=n[e+3];let i=3*s[0]-2*t[0]-r[0];i*=i;let a=3*s[1]-2*t[1]-r[1];a*=a;let l=3*o[0]-2*r[0]-t[0];l*=l;let c=3*o[1]-2*r[1]-t[1];return c*=c,i<l&&(i=l),a<c&&(a=c),i+a}function yn(n,e,t,s){const o=s||[];if(rl(n,e)<t){const r=n[e+0];o.length?sl(o[o.length-1],r)>1&&o.push(r):o.push(r),o.push(n[e+3])}else{const i=n[e+0],a=n[e+1],l=n[e+2],c=n[e+3],f=$e(i,a,.5),h=$e(a,l,.5),d=$e(l,c,.5),u=$e(f,h,.5),g=$e(h,d,.5),p=$e(u,g,.5);yn([i,f,u,p],0,t,o),yn([p,g,d,c],0,t,o)}return o}function il(n,e){return Et(n,0,n.length,e)}function Et(n,e,t,s,o){const r=o||[],i=n[e],a=n[t-1];let l=0,c=1;for(let f=e+1;f<t-1;++f){const h=ol(n[f],i,a);h>l&&(l=h,c=f)}return Math.sqrt(l)>s?(Et(n,e,c+1,s,r),Et(n,c,t,s,r)):(r.length||r.push(i),r.push(a)),r}function vn(n,e=.15,t){const s=[],o=(n.length-1)/3;for(let r=0;r<o;r++){const i=r*3;yn(n,i,e,s)}return t&&t>
2720?Et(s,0,s.length,t):s}function al(n,e,t){const s=$n(n),o=co(lo(s)),r=[];let i=[],a=[0,0],l=[];const c=()=>{l.length>=4&&i.push(...vn(l,e)),l=[]},f=()=>{c(),i.length&&(r.push(i),i=[])};for(const{key:d,data:u}of o)switch(d){case"M":f(),a=[u[0],u[1]],i.push(a);break;case"L":c(),i.push([u[0],u[1]]);break;case"C":if(!l.length){const g=i.length?i[i.length-1]:a;l.push([g[0],g[1]])}l.push([u[0],u[1]]),l.push([u[2],u[3]]),l.push([u[4],u[5]]);break;case"Z":c(),i.push([a[0],a[1]]);break}if(f(),!t)return r;const h=[];for(const d of r){const u=il(d,t);u.length&&h.push(u)}return h}const Q="none";class ll{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return io()}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,s){return{shape:e,sets:t||[],options:s||this.defaultOptions}}line(e,t,s,o,r){const i=this._o(r);return this._d("line",[X(e,t,s,o,i)],i)}rectangle(e,t,s,o,r){const i=this._o(r),a=[],l=fo(e,t,s,o,i);if(i.fill){const c=[[e,t],[e+s,t],[e+s,t+o],[e,t+o]];i.fillStyle==="solid"?a.push(Zt([c],i)):a.push(He([c],i))}return i.stroke!==Q&&a.push(l),this._d("rectangle",a,i)}ellipse(e,t,s,o,r){const i=this._o(r),a=[],l=ho(s,o,i),c=gn(e,t,i,l);if(i.fill)if(i.fillStyle==="solid"){const f=gn(e,t,i,l).opset;f.type="fillPath",a.push(f)}else a.push(He([c.estimatedPoints],i));return i.stroke!==Q&&a.push(c.opset),this._d("ellipse",a,i)}circle(e,t,s,o){const r=this.ellipse(e,t,s,s,o);return r.shape="circle",r}linearPath(e,t){const s=this._o(t);return this._d("linearPath",[nt(e,!1,s)],s)}arc(e,t,s,o,r,i,a=!1,l){const c=this._o(l),f=[],h=ms(e,t,s,o,r,i,a,!0,c);if(a&&c.fill)if(c.fillStyle==="solid"){const d=Object.assign({},c);d.disableMultiStroke=!0;const u=ms(e,t,s,o,r,i,!0,!1,d);u.type="fillPath",f.push(u)}else f.push(Za(e,t,s,o,r,i,c));return c.stroke!==Q&&f.push(h),this._d("arc",f,c)}curve(e,t){const s=this._o(t),o=[],r=gs(e,s);if(s.fill&&s.fill!==Q)if(s.fillStyle==="solid"){const i=gs(e,Object.assign(Object.assign({},s),{disableMultiStroke:!0,roughness:s.roughness?s.roughness+s.fillShapeRoughnessGain:0}));o.push({type:"fillPath",ops:this._mergedShape(i.ops)})}else{const i=[],a=e;if(a.length){const c=typeof a[0][0]=="number"?[a]:a;for(const f of c)f.length<3?i.push(...f):f.length===3?i.push(...vn(ks([f[0],f[0],f[1],f[2]]),10,(1+s.roughness)/2)):i.push(...vn(ks(f),10,(1+s.roughness)/2))}i.length&&o.push(He([i],s))}return s.stroke!==Q&&o.push(r),this._d("curve",o,s)}polygon(e,t){const s=this._o(t),o=[],r=nt(e,!0,s);return s.fill&&(s.fillStyle==="solid"?o.push(Zt([e],s)):o.push(He([e],s))),s.stroke!==Q&&o.push(r),this._d("polygon",o,s)}path(e,t){const s=this._o(t),o=[];if(!e)return this._d("path",o,s);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const r=s.fill&&s.fill!=="transparent"&&s.fill!==Q,i=s.stroke!==Q,a=!!(s.simplification&&s.simplification<1),l=a?4-4*(s.simplification||1):(1+s.roughness)/2,c=al(e,1,l),f=ys(e,s);if(r)if(s.fillStyle==="solid")if(c.length===1){const h=ys(e,Object.assign(Object.assign({},s),{disableMultiStroke:!0,roughness:s.roughness?s.roughness+s.fillShapeRoughnessGain:0}));o.push({type:"fillPath",ops:this._mergedShape(h.ops)})}else o.push(Zt(c,s));else o.push(He(c,s));return i&&(a?c.forEach(h=>{o.push(nt(h,!1,s))}):o.push(f)),this._d("path",o,s)}opsToPath(e,t){let s="";for(const o of e.ops){const r=typeof t=="number"&&t>=0?o.data.map(i=>+i.toFixed(t)):o.data;switch(o.op){case"move":s+=`M${r[0]} ${r[1]} `;break;case"bcurveTo":s+=`C${r[0]} ${r[1]}, ${r[2]} ${r[3]}, ${r[4]} ${r[5]} `;break;case"lineTo":s+=`L${r[0]} ${r[1]} `;break}}return s.trim()}toPaths(e){const t=e.sets||[],s=e.options||this.defaultOptions,o=[];for(const r of t){let i=null;switch(r.type){case"path":i={d:this.opsToPath(r),stroke:s.stroke,strokeWidth:s.strokeWidth,fill:Q};break;case"fillPath":i={d:this.opsToPath(r),stroke:Q,strokeWidth:0,fill:s.fill||Q};break;case"fillSketch":i=this.fillSketch(r,s);break}i&&o.push(i)}return o}fillSketch(e,t){let s=t.fillWeight;return s<0&&(s=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||Q,strokeWidth:s,fill:Q}}_mergedShape(e){return e.filter((t,s)=>s===0?!0:t.op!=="move")}}const go="http://www.w3.org/2000/svg",cl=800;let Xt=null;function ul(){return Xt||(Xt=new ll().defaultOptions),Xt}function en(n,e,t){return{...ul(),maxRandomnessOffset:2,roughness:n==="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:n!=="double",disableMultiStrokeFill:!1,seed:e,...t}}function fl(n){const e=n.padding;if(e||e===0){if(typeof e=="number")return[e,e,e,e];
272if(Array.isArray(e)){const t=e;if(t.length)switch(t.length){case 4:return[...t];case 1:return[t[0],t[0],t[0],t[0]];case 2:return[...t,...t];case 3:return[...t,t[1]];default:return[t[0],t[1],t[2],t[3]]}}}return[5,5,5,5]}function dl(n,e,t,s,o,r){const i=[];let a=t.strokeWidth||2;const l=fl(t),c=t.animate===void 0?!0:!!t.animate,f=t.iterations||2,h=t.rtl?1:0,d=en("single",r,t);switch(t.type){case"underline":{const u=e.y+e.h+l[2];for(let g=h;g<f+h;g++)g%2?i.push(X(e.x+e.w,u,e.x,u,d)):i.push(X(e.x,u,e.x+e.w,u,d));break}case"strike-through":{const u=e.y+e.h/2;for(let g=h;g<f+h;g++)g%2?i.push(X(e.x+e.w,u,e.x,u,d)):i.push(X(e.x,u,e.x+e.w,u,d));break}case"box":{const u=e.x-l[3],g=e.y-l[0],p=e.w+(l[1]+l[3]),m=e.h+(l[0]+l[2]);for(let y=0;y<f;y++)i.push(fo(u,g,p,m,d));break}case"bracket":{const u=Array.isArray(t.brackets)?t.brackets:t.brackets?[t.brackets]:["right"],g=e.x-l[3]*2,p=e.x+e.w+l[1]*2,m=e.y-l[0]*2,y=e.y+e.h+l[2]*2;for(const v of u){let w;switch(v){case"bottom":w=[[g,e.y+e.h],[g,y],[p,y],[p,e.y+e.h]];break;case"top":w=[[g,e.y],[g,m],[p,m],[p,e.y]];break;case"left":w=[[e.x,m],[g,m],[g,y],[e.x,y]];break;case"right":w=[[e.x+e.w,m],[p,m],[p,y],[e.x+e.w,y]];break}w&&i.push(nt(w,!1,d))}break}case"crossed-off":{const u=e.x,g=e.y,p=u+e.w,m=g+e.h;for(let y=h;y<f+h;y++)y%2?i.push(X(p,m,u,g,d)):i.push(X(u,g,p,m,d));for(let y=h;y<f+h;y++)y%2?i.push(X(u,m,p,g,d)):i.push(X(p,g,u,m,d));break}case"circle":{const u=en("double",r,t),g=e.w+(l[1]+l[3]),p=e.h+(l[0]+l[2]),m=e.x-l[3]+g/2,y=e.y-l[0]+p/2,v=Math.floor(f/2),w=f-v*2;for(let b=0;b<v;b++)i.push(pn(m,y,g,p,u));for(let b=0;b<w;b++)i.push(pn(m,y,g,p,d));break}case"highlight":{const u=en("highlight",r,t);a=e.h*.95;const g=e.y+e.h/2;for(let p=h;p<f+h;p++)p%2?i.push(X(e.x+e.w,g,e.x,g,u)):i.push(X(e.x,g,e.x+e.w,g,u));break}}if(i.length){const u=hl(i),g=[],p=[];let m=0;const y=(v,w,b)=>v.setAttribute(w,b);for(const v of u){const w=document.createElementNS(go,"path");if(y(w,"d",v),y(w,"fill","none"),y(w,"stroke",t.color||"currentColor"),y(w,"stroke-width",`${a}`),t.opacity!==void 0&&y(w,"style",`opacity:${t.opacity}`),c){const b=w.getTotalLength();g.push(b),m+=b}n.appendChild(w),p.push(w)}if(c){let v=0;for(let w=0;w<p.length;w++){const b=p[w],S=g[w],O=m?o*(S/m):0,L=s+v,V=b.style;V.strokeDashoffset=`${S}`,V.strokeDasharray=`${S}`,V.animation=`rough-notation-dash ${O}ms ease-out ${L}ms forwards`,v+=O}return Ss(o+s)}}return Ss(0)}function Ss(n){return new Promise(e=>setTimeout(e,n))}function hl(n){const e=[];for(const t of n){let s="";for(const o of t.ops){const r=o.data;switch(o.op){case"move":s.trim()&&e.push(s.trim()),s=`M${r[0]} ${r[1]} `;break;case"bcurveTo":s+=`C${r[0]} ${r[1]}, ${r[2]} ${r[3]}, ${r[4]} ${r[5]} `;break;case"lineTo":s+=`L${r[0]} ${r[1]} `;break}}s.trim()&&e.push(s.trim())}return e}function pl(){if(!window.__rno_kf_s){const n=window.__rno_kf_s=document.createElement("style");n.textContent="@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }",document.head.appendChild(n)}}var gl=Object.defineProperty,ml=(n,e,t)=>e in n?gl(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,ne=(n,e,t)=>(ml(n,typeof e!="symbol"?e+"":e,t),t);class yl{constructor(e,t){ne(this,"_state","unattached"),ne(this,"_config"),ne(this,"_resizing",!1),ne(this,"_ro"),ne(this,"_seed",io()),ne(this,"_e"),ne(this,"_svg"),ne(this,"_lastSizes",[]),ne(this,"_animationDelay",0),ne(this,"_resizeListener",()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,this._state==="showing"&&this.haveRectsChanged()&&this.show()},400))}),ne(this,"pendingRefresh"),this._e=e,this._config=JSON.parse(JSON.stringify(t)),this.attach()}getConfig(e){return this._config[e]}setConfig(e,t){this._config[e]!==t&&(this._config[e]=t,this.refresh())}get animate(){return this._config.animate}set animate(e){this._config.animate=e}get animationDuration(){return this._config.animationDuration}set animationDuration(e){this._config.animationDuration=e}get iterations(){return this._config.iterations}set iterations(e){this._config.iterations=e}get color(){return this._config.color}set color(e){this._config.color!==e&&(this._config.color=e,this.refresh())}get class(){return this._config.class}set class(e){this._config.class!==e&&(this._config.class=e,this._svg&&this._svg.setAttribute("class",["rough-annotation",this._config.class||""].filter(
272Boolean).join(" ")))}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(e){this._config.strokeWidth!==e&&(this._config.strokeWidth=e,this.refresh())}get padding(){return this._config.padding}set padding(e){this._config.padding!==e&&(this._config.padding=e,this.refresh())}attach(){if(this._state==="unattached"&&this._e.parentElement){pl();const e=this._svg=document.createElementNS(go,"svg");e.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" "));const t=e.style;t.position="absolute",t.top="0",t.left="0",t.overflow="visible",t.pointerEvents="none",t.width="100px",t.height="100px";const s=this._config.type==="highlight";if(this._e.insertAdjacentElement(s?"beforebegin":"afterend",e),this._state="not-showing",s){const o=window.getComputedStyle(this._e).position;(!o||o==="static")&&(this._e.style.position="relative")}this.attachListeners()}}detachListeners(){window.removeEventListener("resize",this._resizeListener),this._ro&&this._ro.unobserve(this._e)}attachListeners(){this.detachListeners(),window.addEventListener("resize",this._resizeListener,{passive:!0}),!this._ro&&"ResizeObserver"in window&&(this._ro=new window.ResizeObserver(e=>{for(const t of e)t.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){const e=this.rects();if(e.length===this._lastSizes.length){for(let t=0;t<e.length;t++)if(!this.isSameRect(e[t],this._lastSizes[t]))return!0}else return!0}return!1}isSameRect(e,t){const s=(o,r)=>Math.round(o)===Math.round(r);return s(e.x,t.x)&&s(e.y,t.y)&&s(e.w,t.w)&&s(e.h,t.h)}isShowing(){return this._state!=="not-showing"}refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then(()=>{this.isShowing()&&this.show(),delete this.pendingRefresh}))}async show(){switch(this._state){case"unattached":break;case"showing":this.hide(),this._svg&&await this.render(this._svg,!0);break;case"not-showing":this.attach(),this._svg&&await this.render(this._svg,!1);break}}hide(){if(this._svg)for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state="not-showing"}remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state="unattached",this.detachListeners()}async render(e,t){let s=this._config;t&&(s=JSON.parse(JSON.stringify(this._config)),s.animate=!1);const o=this.rects();let r=0;o.forEach(c=>r+=c.w);const i=s.animationDuration||cl;let a=0;const l=[];for(let c=0;c<o.length;c++){const f=o[c],h=i*(f.w/r);l.push(dl(e,o[c],s,a+this._animationDelay+(this._config.delay||0),h,this._seed)),a+=h}return this._lastSizes=o,this._state="showing",await Promise.all(l)}rects(){const e=[];if(this._svg)if(this._config.multiline){const t=this._e.getClientRects();for(let s=0;s<t.length;s++)e.push(this.svgRect(this._svg,t[s]))}else e.push(this.svgRect(this._svg,this._e.getBoundingClientRect()));return e}svgRect(e,t){const s=e.getBoundingClientRect(),o=t;return{x:(o.x||o.left)-(s.x||s.left),y:(o.y||o.top)-(s.y||s.top),w:o.width,h:o.height}}}function vl(n,e){return new yl(n,e)}function J(n,e){return n.class=[n.class,e].filter(Boolean).join(" "),n}const _s={box:n=>Object.assign(n,{type:"box"}),circle:n=>Object.assign(n,{type:"circle"}),underline:n=>Object.assign(n,{type:"underline"}),highlight:n=>Object.assign(n,{type:"highlight"}),"strike-through":n=>Object.assign(n,{type:"strike-through"}),"crossed-off":n=>Object.assign(n,{type:"crossed-off"}),bracket:n=>Object.assign(n,{type:"bracket"}),strike:n=>Object.assign(n,{type:"strike-through"}),cross:n=>Object.assign(n,{type:"crossed-off"}),crossed:n=>Object.assign(n,{type:"crossed-off"}),linethrough:n=>Object.assign(n,{type:"strike-through"}),"line-through":n=>Object.assign(n,{type:"strike-through"}),black:n=>J(n,"text-black"),blue:n=>J(n,"text-blue"),cyan:n=>J(n,"text-cyan"),gray:n=>J(n,"text-gray"),green:n=>J(n,"text-green"),indigo:n=>J(n,"text-indigo"),lime:n=>J(n,"text-lime"),orange:n=>J(n,"text-orange"),pink:n=>J(n,"text-pink"),purple:n=>J(n,"text-purple"),red:n=>J(n,"text-red"),teal:n=>J(n,"text-teal"),white:n=>J(n,"text-white"),yellow:n=>J(n,"text-yellow")},wl=[[/^delay-?(\d+)?$/,(n,e,t)=>{const s=(n[1]?Number.parseInt(n[1]):t)||300;return e.delay=s,e}],[/^(?:op|opacity)-?(\d+)?$/,(n,e,t)=>{const s=(n[1]?Number.parseInt(n[1]):t)||100;return e.opacity=s/100,e}]];function bl(){return{install(n){n.directive("mark",{name:"v-mark",mounted:(e,t)=>{const{isPrintMode:s}=Ue(),o=k(()=>{const a=typeof t.value=="object"&&!Array.isArray(t.value)?{...t.value}:{at:t.value};let l={at:a.at};const c=Object.entries(t.modifiers).filter(([h,d])=>{if(_s[h])return l=_s[h](l,d),!1;for(const[u,g]of wl){const p=h.match(u);if(p)return l=g(p,l,d),!1}return!0});c.length&&console.warn("[Slidev] Invalid modifiers for v-mark:",c);const f={...l,...a};return f.type||="underline",s.value&&(f.animationDuration=1),f}),r=vl(e,o.value),i=bt(e,t,o.value.at);if(!i){r.show();return}e.watchStopHandle=ze(()=>{let a;o.value.class&&(r.class=o.value.class),o.value.color&&(r.color=o.value.color);const l=o.value.at;l===!0?a=!0:l===!1?a=!1:a=i.isActive.value,a!=null&&(a?r.show():r.hide())})},unmounted:e=>
272{e.watchStopHandle?.()}})}}}function kl(){return{install(n){const e=zo();n.directive("motion",{name:"v-motion",mounted(t,s,o,r){const i=qe(s,Dt),a=qe(s,bn),l=qe(s,kn),{currentPage:c,clicks:f,isPrintMode:h}=Ue(),d=o.props={...o.props},u={...d.initial,...d.variants?.["slidev-initial"]},g={...d.enter,...d.variants?.["slidev-enter"]},p={...d.leave,...d.variants?.["slidev-leave"]};delete d.initial,delete d.enter,delete d.leave;const m=`${Ln()}-`,y=[];for(const w of Object.keys(d))if(w.startsWith("click-")){const b=w.slice(6),S=b.includes("-")?b.split("-").map(Number):+b,O=m+b;y.push({id:O,at:S,variant:{...d[w]},info:i?.value.calculate(S)}),delete d[w]}y.sort((w,b)=>(Array.isArray(w.at)?w.at[0]:w.at)-(Array.isArray(b.at)?b.at[0]:b.at)),e.created(t,s,o,r),e.mounted(t,s,o,r);const v=t.motionInstance;v.clickIds=y.map(w=>w.id),v.set(u),v.watchStopHandle=ee([a,c,f].filter(Boolean),()=>{const w=ro.get(t)?.visibilityState.value??"shown";if(!i?.value||!["slide","presenter"].includes(l?.value??"")){const b={...u,...g};for(const{variant:S}of y)Object.assign(b,S);v.set(b)}else if(h.value||a?.value===c.value)if(w==="shown"){const b={...u,...g};for(const{variant:S,info:O}of y)(!O||O.isActive.value)&&Object.assign(b,S);h.value?v.set(b):v.apply(b)}else v.apply(w==="before"?u:p);else v.apply((a?.value??-1)>c.value?u:p)},{immediate:!0})},unmounted(t){t.motionInstance.watchStopHandle()}})}}}const Sl=[];function _l(){const n=[];function e(t){if(!I.remote||I.remote===t.query.password)return!0;if(I.remote&&t.query.password===void 0){const s=prompt("Enter password");if(I.remote===s)return!0}return t.params.no?{path:`/${t.params.no}`}:{path:""}}return n.push({name:"entry",path:"/entry",component:()=>T(()=>import("./slidev/entry-9ziHTrdE.js"),__vite__mapDeps([33,1,4,5,34])),beforeEnter:e},{name:"overview",path:"/overview",component:()=>T(()=>import("./slidev/overview-DgxK6WAb.js"),__vite__mapDeps([35,36,1,37,38,39,40,41,4,5])),beforeEnter:e},{name:"notes",path:"/notes",component:()=>T(()=>import("./slidev/notes-EPuF2nT7.js"),__vite__mapDeps([42,1,37,38,41,4,5])),beforeEnter:e},{name:"presenter",path:"/presenter/:no",component:()=>T(()=>import("./slidev/presenter-CRpM3Ebq.js"),__vite__mapDeps([43,1,39,40,44,3,36,41,4,5,45,37,38,46,47,48])),beforeEnter:e},{path:"/presenter",redirect:{path:"/presenter/1"}}),n.push({name:"play",path:"/:no",component:()=>T(()=>import("./slidev/play-DosqXXeU.js"),__vite__mapDeps([49,1,39,40,44,3,36,41,4,5,45,50]))},{path:"",redirect:{path:"/1"}},{path:"/:pathMatch(.*)*",name:"NotFound",component:()=>T(()=>import("./slidev/404-mtTefC72.js"),__vite__mapDeps([51,1,4,5,52]))}),Sl.reduce((t,s)=>s(t),n)}async function Ml(n){function e(){document.documentElement.style.setProperty("--vh",`${window.innerHeight*.01}px`)}e(),window.addEventListener("resize",e);const t=qo({history:Uo("/"),routes:_l()});n.use(t),n.use(La()),n.use(Ea()),n.use(bl()),n.use(Na()),n.use(kl()),n.use(Jo,{container:"#twoslash-container"});const s={app:n,router:t};for(const o of Ta)await o(s)}async function Al(){const n=Ko(Oa);await Ml(n),n.mount("#app")}Al();export{at as $,Wi as A,ln as B,mt as C,Hi as D,zl as E,Yl as F,Cl as G,Mt as H,Nl as I,Fs as J,Ri as K,ct as L,xl as M,rc as N,Jl as O,Kl as P,se as Q,ji as R,Nt as S,Oi as T,$a as U,$s as V,tr as W,Hl as X,Sn as Y,jl as Z,Nr as _,Ue as a,Rl as a0,Bl as a1,Wl as a2,nc as a3,tc as a4,ec as a5,te as a6,no as a7,so as a8,Es as a9,Hs as aa,El as ab,Pi as ac,bn as ad,kn as ae,Dt as af,Ci as ag,oc as ah,Ln as ai,Pl as aj,Xl as ak,Ti as al,$l as am,Ei as an,zs as b,$r as c,sc as d,Rs as e,Vl as f,Fe as g,lt as h,fs as i,xi as j,At as k,Gl as l,Ql as m,Ul as n,sn as o,Ll as p,ql as q,Rn as r,Wt as s,Zl as t,Cr as u,I as v,T as w,Il as x,Dl as y,Fl 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.