diff --git a/playground/src/lib/assets/favicon.svg b/playground/src/lib/assets/favicon.svg index cc5dc66..0d59cff 100644 --- a/playground/src/lib/assets/favicon.svg +++ b/playground/src/lib/assets/favicon.svg @@ -1 +1,3 @@ -svelte-logo \ No newline at end of file + + + diff --git a/playground/src/lib/wasm.ts b/playground/src/lib/wasm.ts index fe80d1f..fb1d931 100644 --- a/playground/src/lib/wasm.ts +++ b/playground/src/lib/wasm.ts @@ -1,7 +1,5 @@ import { readable } from "svelte/store"; - - export const wasmReady = readable(false, (set) => { if (typeof window === "undefined") { return; @@ -11,7 +9,7 @@ export const wasmReady = readable(false, (set) => { const go = new globalThis.Go(); try { const result = await WebAssembly.instantiateStreaming( - fetch("/main.wasm"), + fetch("/_playground/main.wasm"), go.importObject, ); go.run(result.instance); @@ -111,4 +109,3 @@ export function detectType(markdown: string): string | ParseResultError { } return result; } - diff --git a/playground/src/routes/+layout.svelte b/playground/src/routes/+layout.svelte index d68cf87..d791b22 100644 --- a/playground/src/routes/+layout.svelte +++ b/playground/src/routes/+layout.svelte @@ -8,7 +8,7 @@ Marka Playground - + {@render children?.()} diff --git a/playground/static/logo-2.svg b/playground/static/logo-2.svg deleted file mode 100644 index 0d59cff..0000000 --- a/playground/static/logo-2.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/playground/svelte.config.js b/playground/svelte.config.js index 60574c2..62e8076 100644 --- a/playground/svelte.config.js +++ b/playground/svelte.config.js @@ -15,7 +15,6 @@ const config = { paths: { base: "/_playground", - relative: true, }, }, }; diff --git a/server/playground/_app/immutable/chunks/B342IurK.js b/server/playground/_app/immutable/chunks/B342IurK.js deleted file mode 100644 index 869bea7..0000000 --- a/server/playground/_app/immutable/chunks/B342IurK.js +++ /dev/null @@ -1,2 +0,0 @@ -import{R as X,z as q,ap as P,J as z,P as D,A as N,aP as m,b0 as x,b1 as r0,V as e0,b2 as t0,g as f0,b3 as i0,G as U,b4 as s0,b5 as a0,b6 as u0,b7 as l0,U as o0,b8 as c0,b9 as n0,ba as v0,bb as d0,bc as b0,bd as g0}from"./bc36GTfJ.js";function _0(r,f){if(f){const e=document.body;r.autofocus=!0,X(()=>{document.activeElement===e&&r.focus()})}}let V=!1;function h0(){V||(V=!0,document.addEventListener("reset",r=>{Promise.resolve().then(()=>{if(!r.defaultPrevented)for(const f of r.target.elements)f.__on_r?.()})},{capture:!0}))}function A0(r,f){var e=void 0,t;q(()=>{e!==(e=f())&&(t&&(P(t),t=null),e&&(t=z(()=>{D(()=>e(r))})))})}function G(r){var f,e,t="";if(typeof r=="string"||typeof r=="number")t+=r;else if(typeof r=="object")if(Array.isArray(r)){var i=r.length;for(f=0;f=0;){var n=l+s;(l===0||R.includes(t[l-1]))&&(n===t.length||R.includes(t[n]))?t=(l===0?"":t.substring(0,l))+t.substring(n+1):l=n}}return t===""?null:t}function B(r,f=!1){var e=f?" !important;":";",t="";for(var i in r){var s=r[i];s!=null&&s!==""&&(t+=" "+i+": "+s+e)}return t}function O(r){return r[0]!=="-"||r[1]!=="-"?r.toLowerCase():r}function S0(r,f){if(f){var e="",t,i;if(Array.isArray(f)?(t=f[0],i=f[1]):t=f,r){r=String(r).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,l=0,n=!1,c=[];t&&c.push(...Object.keys(t).map(O)),i&&c.push(...Object.keys(i).map(O));var v=0,p=-1;const L=r.length;for(var d=0;d{C(r,r.__value)});f.observe(r,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),e0(()=>{f.disconnect()})}function H(r){return"__value"in r?r.__value:r.value}const y=Symbol("class"),E=Symbol("style"),K=Symbol("is custom element"),F=Symbol("is html");function T0(r){if(N){var f=!1,e=()=>{if(!f){if(f=!0,r.hasAttribute("value")){var t=r.value;T(r,"value",null),r.value=t}if(r.hasAttribute("checked")){var i=r.checked;T(r,"checked",null),r.checked=i}}};r.__on_r=e,c0(e),h0()}}function I0(r,f){f?r.hasAttribute("selected")||r.setAttribute("selected",""):r.removeAttribute("selected")}function T(r,f,e,t){var i=J(r);N&&(i[f]=r.getAttribute(f),f==="src"||f==="srcset"||f==="href"&&r.nodeName==="LINK")||i[f]!==(i[f]=e)&&(f==="loading"&&(r[d0]=e),e==null?r.removeAttribute(f):typeof e!="string"&&Z(r).includes(f)?r[f]=e:r.setAttribute(f,e))}function O0(r,f,e,t,i=!1,s=!1){if(N&&i&&r.tagName==="INPUT"){var l=r,n=l.type==="checkbox"?"defaultChecked":"defaultValue";n in e||T0(l)}var c=J(r),v=c[K],p=!c[F];let d=N&&v;d&&U(!1);var a=f||{},A=r.tagName==="OPTION";for(var S in f)S in e||(e[S]=null);e.class?e.class=L0(e.class):e[y]&&(e.class=null),e[E]&&(e.style??=null);var L=Z(r);for(const u in e){let o=e[u];if(A&&u==="value"&&o==null){r.value=r.__value="",a[u]=o;continue}if(u==="class"){var h=r.namespaceURI==="http://www.w3.org/1999/xhtml";w0(r,h,o,t,f?.[y],e[y]),a[u]=o,a[y]=e[y];continue}if(u==="style"){y0(r,o,f?.[E],e[E]),a[u]=o,a[E]=e[E];continue}var k=a[u];if(!(o===k&&!(o===void 0&&r.hasAttribute(u)))){a[u]=o;var $=u[0]+u[1];if($!=="$$")if($==="on"){const _={},w="$$"+u;let b=u.slice(2);var I=b0(b);if(s0(b)&&(b=b.slice(0,-7),_.capture=!0),!I&&k){if(o!=null)continue;r.removeEventListener(b,a[w],_),a[w]=null}if(o!=null)if(I)r[`__${b}`]=o,u0([b]);else{let Q=function(W){a[u].call(this,W)};a[w]=a0(b,r,Q,_)}else I&&(r[`__${b}`]=void 0)}else if(u==="style")T(r,u,o);else if(u==="autofocus")_0(r,!!o);else if(!v&&(u==="__value"||u==="value"&&o!=null))r.value=r.__value=o;else if(u==="selected"&&A)I0(r,o);else{var g=u;p||(g=l0(g));var j=g==="defaultValue"||g==="defaultChecked";if(o==null&&!v&&!j)if(c[u]=null,g==="value"||g==="checked"){let _=r;const w=f===void 0;if(g==="value"){let b=_.defaultValue;_.removeAttribute(g),_.defaultValue=b,_.value=_.__value=w?b:null}else{let b=_.defaultChecked;_.removeAttribute(g),_.defaultChecked=b,_.checked=w?b:!1}}else r.removeAttribute(u);else j||L.includes(g)&&(v||typeof o!="string")?(r[g]=o,g in c&&(c[g]=o0)):typeof o!="function"&&T(r,g,o)}}}return d&&U(!0),a}function P0(r,f,e=[],t=[],i,s=!1,l=!1){t0(e,t,n=>{var c=void 0,v={},p=r.nodeName==="SELECT",d=!1;if(q(()=>{var A=f(...n.map(f0)),S=O0(r,c,A,i,s,l);d&&p&&"value"in A&&C(r,A.value);for(let h of Object.getOwnPropertySymbols(v))A[h]||P(v[h]);for(let h of Object.getOwnPropertySymbols(A)){var L=A[h];h.description===i0&&(!c||L!==c[h])&&(v[h]&&P(v[h]),v[h]=z(()=>A0(r,()=>L))),S[h]=L}c=S}),p){var a=r;D(()=>{C(a,c.value,!0),E0(a)})}d=!0})}function J(r){return r.__attributes??={[K]:r.nodeName.includes("-"),[F]:r.namespaceURI===n0}}var Y=new Map;function Z(r){var f=r.getAttribute("is")||r.nodeName,e=Y.get(f);if(e)return e;Y.set(f,e=[]);for(var t,i=r,s=Element.prototype;s!==i;){t=g0(i);for(var l in t)t[l].set&&e.push(l);i=v0(i)}return e}const C0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='107'%20height='128'%20viewBox='0%200%20107%20128'%3e%3ctitle%3esvelte-logo%3c/title%3e%3cpath%20d='M94.157%2022.819c-10.4-14.885-30.94-19.297-45.792-9.835L22.282%2029.608A29.92%2029.92%200%200%200%208.764%2049.65a31.5%2031.5%200%200%200%203.108%2020.231%2030%2030%200%200%200-4.477%2011.183%2031.9%2031.9%200%200%200%205.448%2024.116c10.402%2014.887%2030.942%2019.297%2045.791%209.835l26.083-16.624A29.92%2029.92%200%200%200%2098.235%2078.35a31.53%2031.53%200%200%200-3.105-20.232%2030%2030%200%200%200%204.474-11.182%2031.88%2031.88%200%200%200-5.447-24.116'%20style='fill:%23ff3e00'/%3e%3cpath%20d='M45.817%20106.582a20.72%2020.72%200%200%201-22.237-8.243%2019.17%2019.17%200%200%201-3.277-14.503%2018%2018%200%200%201%20.624-2.435l.49-1.498%201.337.981a33.6%2033.6%200%200%200%2010.203%205.098l.97.294-.09.968a5.85%205.85%200%200%200%201.052%203.878%206.24%206.24%200%200%200%206.695%202.485%205.8%205.8%200%200%200%201.603-.704L69.27%2076.28a5.43%205.43%200%200%200%202.45-3.631%205.8%205.8%200%200%200-.987-4.371%206.24%206.24%200%200%200-6.698-2.487%205.7%205.7%200%200%200-1.6.704l-9.953%206.345a19%2019%200%200%201-5.296%202.326%2020.72%2020.72%200%200%201-22.237-8.243%2019.17%2019.17%200%200%201-3.277-14.502%2017.99%2017.99%200%200%201%208.13-12.052l26.081-16.623a19%2019%200%200%201%205.3-2.329%2020.72%2020.72%200%200%201%2022.237%208.243%2019.17%2019.17%200%200%201%203.277%2014.503%2018%2018%200%200%201-.624%202.435l-.49%201.498-1.337-.98a33.6%2033.6%200%200%200-10.203-5.1l-.97-.294.09-.968a5.86%205.86%200%200%200-1.052-3.878%206.24%206.24%200%200%200-6.696-2.485%205.8%205.8%200%200%200-1.602.704L37.73%2051.72a5.42%205.42%200%200%200-2.449%203.63%205.79%205.79%200%200%200%20.986%204.372%206.24%206.24%200%200%200%206.698%202.486%205.8%205.8%200%200%200%201.602-.704l9.952-6.342a19%2019%200%200%201%205.295-2.328%2020.72%2020.72%200%200%201%2022.237%208.242%2019.17%2019.17%200%200%201%203.277%2014.503%2018%2018%200%200%201-8.13%2012.053l-26.081%2016.622a19%2019%200%200%201-5.3%202.328'%20style='fill:%23fff'/%3e%3c/svg%3e";export{P0 as a,w0 as b,L0 as c,C0 as f,T as s}; diff --git a/server/playground/_app/immutable/chunks/BXzq9L9X.js b/server/playground/_app/immutable/chunks/BsPC8ki2.js similarity index 89% rename from server/playground/_app/immutable/chunks/BXzq9L9X.js rename to server/playground/_app/immutable/chunks/BsPC8ki2.js index fd835ef..a06781b 100644 --- a/server/playground/_app/immutable/chunks/BXzq9L9X.js +++ b/server/playground/_app/immutable/chunks/BsPC8ki2.js @@ -1,3 +1,3 @@ -import{w as Ae,o as je,c as mt}from"./B1lAeocp.js";import{aZ as U,g as L,W as P,aY as $e}from"./bc36GTfJ.js";class ce{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Se{constructor(t,n){this.status=t,this.location=n}}class Re extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function yt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function wt(e){return e.split("%25").map(decodeURI).join("%25")}function vt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function _e({href:e}){return e.split("#")[0]}function bt(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return f=>(n(f),i[o](f));t();const c=Reflect.get(i,o);return typeof c=="function"?c.bind(i):c}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const i of s)Object.defineProperty(a,i,{get(){return t(),e[i]},enumerable:!0,configurable:!0});return a}function kt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;const Et=new TextDecoder;function At(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&Y.delete(Te(e)),St(e,t));const Y=new Map;function Rt(e,t){const n=Te(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&Y.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=At(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,t)}function Tt(e,t,n){if(Y.size>0){const r=Te(e,n),a=Y.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return me(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return me(String.fromCharCode(...c.slice(2).split("-").map(w=>parseInt(w,16))));const d=It.exec(c),[,p,u,l,h]=d;return t.push({name:l,matcher:h,optional:!!p,rest:!!u,chained:u?f===1&&i[0]==="":!1}),u?"([^]*?)":p?"([^/]*)?":"([^/]+?)"}return me(c)}).join("")}).join("")}/?$`),params:t}}function Lt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Pt(e){return e.slice(1).split("/").filter(Lt)}function xt(e,t,n){const r={},a=e.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;od).join("/"),i=0),f===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](f)){r[c.name]=f;const d=t[o+1],p=a[o+1];d&&!d.rest&&d.optional&&p&&c.chained&&(i=0),!d&&!p&&Object.keys(r).length===s.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function me(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ct({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[c,f,d]])=>{const{pattern:p,params:u}=Ut(o),l={id:o,exec:h=>{const w=p.exec(h);if(w)return xt(w,u,r)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...f||[]].map(i),leaf:s(c)};return l.errors.length=l.layouts.length=Math.max(l.errors.length,l.layouts.length),l});function s(o){const c=o<0;return c&&(o=~o),[c,e[o]]}function i(o){return o===void 0?o:[a.has(o),e[o]]}}function We(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function De(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const I=globalThis.__sveltekit_anvown?.base??"/_playground",Nt=globalThis.__sveltekit_anvown?.assets??I??"",Ot="1759702180756",Je="sveltekit:snapshot",ze="sveltekit:scroll",Xe="sveltekit:states",jt="sveltekit:pageurl",B="sveltekit:history",W="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},le=location.origin;function Ze(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function fe(){return{x:pageXOffset,y:pageYOffset}}function F(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Fe={...j,"":j.hover};function Qe(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function et(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Qe(e)}}function ve(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!a||ue(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),i=r?.origin===le&&e.hasAttribute("download");return{url:r,external:s,target:a,download:i}}function ee(e){let t=null,n=null,r=null,a=null,s=null,i=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=F(o,"preload-code")),a===null&&(a=F(o,"preload-data")),t===null&&(t=F(o,"keepfocus")),n===null&&(n=F(o,"noscroll")),s===null&&(s=F(o,"reload")),i===null&&(i=F(o,"replacestate")),o=Qe(o);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Fe[r??"off"],preload_data:Fe[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(i)}}function Be(e){const t=Ae(e);let n=!0;function r(){n=!0,t.update(i=>i)}function a(i){n=!1,t.set(i)}function s(i){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&i(o=c)})}return{notify:r,set:a,subscribe:s}}const tt={v:()=>{}};function $t(){const{set:e,subscribe:t}=Ae(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Nt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==Ot;return i&&(e(!0),tt.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function ue(e,t,n){return e.origin!==le||!e.pathname.startsWith(t)?!0:n?!(e.pathname===t+"/"||e.pathname===t+"/index.html"||e.protocol==="file:"&&e.pathname.replace(/\/[^/]+\.html?$/,"")===t):!1}function Sn(e){}function Dt(e){const t=Bt(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let a=0;a>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const Vt=-1,Mt=-2,qt=-3,Gt=-4,Yt=-5,Ht=-6;function Kt(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(s,i=!1){if(s===Vt)return;if(s===qt)return NaN;if(s===Gt)return 1/0;if(s===Yt)return-1/0;if(s===Ht)return-0;if(i||typeof s!="number")throw new Error("Invalid input");if(s in r)return r[s];const o=n[s];if(!o||typeof o!="object")r[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const c=o[0],f=t?.[c];if(f)return r[s]=f(a(o[1]));switch(c){case"Date":r[s]=new Date(o[1]);break;case"Set":const d=new Set;r[s]=d;for(let l=1;lt!=null)}const zt="x-sveltekit-invalidated",Xt="x-sveltekit-trailing-slash";function te(e){return e instanceof ce||e instanceof Re?e.status:500}function Zt(e){return e instanceof Re?e.text:"Internal Error"}let S,J,ye;const Qt=je.toString().includes("$$")||/function \w+\(\) \{\}/.test(je.toString());Qt?(S={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},J={current:null},ye={current:!1}):(S=new class{#e=U({});get data(){return L(this.#e)}set data(t){P(this.#e,t)}#t=U(null);get form(){return L(this.#t)}set form(t){P(this.#t,t)}#n=U(null);get error(){return L(this.#n)}set error(t){P(this.#n,t)}#r=U({});get params(){return L(this.#r)}set params(t){P(this.#r,t)}#a=U({id:null});get route(){return L(this.#a)}set route(t){P(this.#a,t)}#o=U({});get state(){return L(this.#o)}set state(t){P(this.#o,t)}#s=U(-1);get status(){return L(this.#s)}set status(t){P(this.#s,t)}#i=U(new URL("https://example.com"));get url(){return L(this.#i)}set url(t){P(this.#i,t)}},J=new class{#e=U(null);get current(){return L(this.#e)}set current(t){P(this.#e,t)}},ye=new class{#e=U(!1);get current(){return L(this.#e)}set current(t){P(this.#e,t)}},tt.v=()=>ye.current=!0);function en(e){Object.assign(S,e)}const tn="/__data.json",nn=".html__data.json";function rn(e){return e.endsWith(".html")?e.replace(/\.html$/,nn):e.replace(/\/$/,"")+tn}const Ve={spanContext(){return an},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},an={traceId:"",spanId:"",traceFlags:0},{tick:on}=mt,sn=new Set(["icon","shortcut icon","apple-touch-icon"]),D=We(ze)??{},z=We(Je)??{},O={url:Be({}),page:Be({}),navigating:Ae(null),updated:$t()};function Ie(e){D[e]=fe()}function cn(e,t){let n=e+1;for(;D[n];)delete D[n],n+=1;for(n=t+1;z[n];)delete z[n],n+=1}function q(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function rt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(I||"/");e&&await e.update()}}function Me(){}let Ue,be,ne,x,ke,v;const re=[],ae=[];let C=null;const Q=new Map,at=new Set,ln=new Set,H=new Set;let y={branch:[],error:null,url:null},Le=!1,oe=!1,qe=!0,X=!1,G=!1,ot=!1,Pe=!1,st,A,T,$;const K=new Set,Ge=new Map;async function Un(e,t,n){globalThis.__sveltekit_anvown?.data&&globalThis.__sveltekit_anvown.data,document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Ue=Ct(e),x=document.documentElement,ke=t,be=e.nodes[0],ne=e.nodes[1],be(),ne(),A=history.state?.[B],T=history.state?.[W],A||(A=T=Date.now(),history.replaceState({...history.state,[B]:A,[W]:T},""));const r=D[A];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await vn(ke,n)):(await V({type:"enter",url:Ze(v.hash?kn(new URL(location.href)):location.href),replace_state:!0}),a()),wn()}function fn(){re.length=0,Pe=!1}function it(e){ae.some(t=>t?.snapshot)&&(z[e]=ae.map(t=>t?.snapshot?.capture()))}function ct(e){z[e]?.forEach((t,n)=>{ae[n]?.snapshot?.restore(t)})}function Ye(){Ie(A),De(ze,D),it(T),De(Je,z)}async function un(e,t,n,r){let a;t.invalidateAll&&(C=null),await V({type:"goto",url:Ze(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Pe=!0,a=[...Ge.keys()]),t.invalidate&&t.invalidate.forEach(yn)}}),t.invalidateAll&&$e().then($e).then(()=>{Ge.forEach(({resource:s},i)=>{a?.includes(i)&&s.refresh?.()})})}async function dn(e){if(e.id!==C?.id){const t={};K.add(t),C={id:e.id,token:t,promise:ut({...e,preload:t}).then(n=>(K.delete(t),n.type==="loaded"&&n.state.error&&(C=null),n))}}return C.promise}async function we(e){const t=(await he(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function lt(e,t,n){y=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(S,e.props.page),st=new v.root({target:t,props:{...e.props,stores:O,components:ae},hydrate:n,sync:!1}),ct(T),n){const a={from:null,to:{params:y.params,route:{id:y.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};H.forEach(s=>s(a))}oe=!0}function se({url:e,params:t,branch:n,status:r,error:a,route:s,form:i}){let o="never";if(I&&(e.pathname===I||e.pathname===I+"/"))o="always";else for(const l of n)l?.slash!==void 0&&(o=l.slash);e.pathname=yt(e.pathname,o),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:s},props:{constructors:Jt(n).map(l=>l.node.component),page:Oe(S)}};i!==void 0&&(c.props.form=i);let f={},d=!S,p=0;for(let l=0;l(o&&(c.route=!0),u[l])}),params:new Proxy(r,{get:(u,l)=>(o&&c.params.add(l),u[l])}),data:s?.data??null,url:bt(n,()=>{o&&(c.url=!0)},u=>{o&&c.search_params.add(u)},v.hash),async fetch(u,l){u instanceof Request&&(l={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:[...u.headers].length>0?u?.headers:void 0,integrity:u.integrity,keepalive:u.keepalive,method:u.method,mode:u.mode,redirect:u.redirect,referrer:u.referrer,referrerPolicy:u.referrerPolicy,signal:u.signal,...l});const{resolved:h,promise:w}=ft(u,l,n);return o&&d(h.href),w},setHeaders:()=>{},depends:d,parent(){return o&&(c.parent=!0),t()},untrack(u){o=!1;try{return u()}finally{o=!0}}};i=await f.universal.load.call(null,p)??null}return{node:f,loader:e,server:s,universal:f.universal?.load?{type:"data",data:i,uses:c}:null,data:i??s?.data??null,slash:f.universal?.trailingSlash??s?.slash}}function ft(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=oe?Tt(r,a.href,t):Rt(r,t);return{resolved:a,promise:s}}function He(e,t,n,r,a,s){if(Pe)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==y.params[i])return!0;for(const i of a.dependencies)if(re.some(o=>o(new URL(i))))return!0;return!1}function Ce(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function hn(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),s=t.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}function Ke({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Oe(S),constructors:[]}}}async function ut({id:e,invalidating:t,url:n,params:r,route:a,preload:s}){if(C?.id===e)return K.delete(C.token),C.promise;const{errors:i,layouts:o,leaf:c}=a,f=[...o,c];i.forEach(m=>m?.().catch(()=>{})),f.forEach(m=>m?.[1]().catch(()=>{}));let d=null;const p=y.url?e!==ie(y.url):!1,u=y.route?a.id!==y.route.id:!1,l=hn(y.url,n);let h=!1;const w=f.map((m,g)=>{const b=y.branch[g],k=!!m?.[0]&&(b?.loader!==m[1]||He(h,u,p,l,b.server?.uses,r));return k&&(h=!0),k});if(w.some(Boolean)){try{d=await pt(n,w)}catch(m){const g=await M(m,{url:n,params:r,route:{id:e}});return K.has(s)?Ke({error:g,url:n,params:r,route:a}):de({status:te(m),error:g,url:n,route:a})}if(d.type==="redirect")return d}const E=d?.nodes;let _=!1;const N=f.map(async(m,g)=>{if(!m)return;const b=y.branch[g],k=E?.[g];if((!k||k.type==="skip")&&m[1]===b?.loader&&!He(_,u,p,l,b.universal?.uses,r))return b;if(_=!0,k?.type==="error")throw k;return xe({loader:m[1],url:n,params:r,route:a,parent:async()=>{const pe={};for(let ge=0;ge{});const R=[];for(let m=0;mPromise.resolve({}),server_data_node:Ce(s)}),c={node:await ne(),loader:ne,universal:null,server:null,data:null};return se({url:n,params:a,branch:[o,c],status:e,error:t,route:null})}catch(o){if(o instanceof Se)return un(new URL(o.location,location.href),{},0);throw o}}async function gn(e){const t=e.href;if(Q.has(t))return Q.get(t);let n;try{const r=(async()=>{let a=await v.hooks.reroute({url:new URL(e),fetch:async(s,i)=>ft(s,i,e).promise})??e;if(typeof a=="string"){const s=new URL(e);v.hash?s.hash=a:s.pathname=a,a=s}return a})();Q.set(t,r),n=await r}catch{Q.delete(t);return}return n}async function he(e,t){if(e&&!ue(e,I,v.hash)){const n=await gn(e);if(!n)return;const r=_n(n);for(const a of Ue){const s=a.exec(r);if(s)return{id:ie(e),invalidating:t,route:a,params:vt(s),url:e}}}}function _n(e){return wt(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(I.length))||"/"}function ie(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function dt({url:e,type:t,intent:n,delta:r,event:a}){let s=!1;const i=Ne(y,n,e,t);r!==void 0&&(i.navigation.delta=r),a!==void 0&&(i.navigation.event=a);const o={...i.navigation,cancel:()=>{s=!0,i.reject(new Error("navigation cancelled"))}};return X||at.forEach(c=>c(o)),s?null:i}async function V({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:c={},accept:f=Me,block:d=Me,event:p}){const u=$;$=c;const l=await he(t,!1),h=e==="enter"?Ne(y,l,t,e):dt({url:t,type:e,delta:n?.delta,intent:l,event:p});if(!h){d(),$===c&&($=u);return}const w=A,E=T;f(),X=!0,oe&&h.navigation.type!=="enter"&&O.navigating.set(J.current=h.navigation);let _=l&&await ut(l);if(!_){if(ue(t,I,v.hash))return await q(t,s);_=await ht(t,{id:null},await M(new Re(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=l?.url||t,$!==c)return h.reject(new Error("navigation aborted")),!1;if(_.type==="redirect"){if(o<20){await V({type:e,url:new URL(_.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i,redirect_count:o+1,nav_token:c}),h.fulfil(void 0);return}_=await de({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else _.props.page.status>=400&&await O.updated.check()&&(await rt(),await q(t,s));if(fn(),Ie(w),it(E),_.props.page.url.pathname!==t.pathname&&(t.pathname=_.props.page.url.pathname),i=n?n.state:i,!n){const g=s?0:1,b={[B]:A+=g,[W]:T+=g,[Xe]:i};(s?history.replaceState:history.pushState).call(history,b,"",t),s||cn(A,T)}if(C=null,_.props.page.state=i,oe){const g=(await Promise.all(Array.from(ln,b=>b(h.navigation)))).filter(b=>typeof b=="function");if(g.length>0){let b=function(){g.forEach(k=>{H.delete(k)})};g.push(b),g.forEach(k=>{H.add(k)})}y=_.state,_.props.page&&(_.props.page.url=t),st.$set(_.props),en(_.props.page),ot=!0}else lt(_,ke,!1);const{activeElement:N}=document;await on();const R=n?n.scroll:a?fe():null;if(qe){const g=t.hash&&document.getElementById(_t(t));R?scrollTo(R.x,R.y):g?g.scrollIntoView():scrollTo(0,0)}const m=document.activeElement!==N&&document.activeElement!==document.body;!r&&!m&&bn(t),qe=!0,_.props.page&&Object.assign(S,_.props.page),X=!1,e==="popstate"&&ct(T),h.fulfil(void 0),H.forEach(g=>g(h.navigation)),O.navigating.set(J.current=null)}async function ht(e,t,n,r,a){return e.origin===le&&e.pathname===location.pathname&&!Le?await de({status:r,error:n,url:e,route:t}):await q(e,a)}function mn(){let e,t,n;x.addEventListener("mousemove",o=>{const c=o.target;clearTimeout(e),e=setTimeout(()=>{s(c,j.hover)},20)});function r(o){o.defaultPrevented||s(o.composedPath()[0],j.tap)}x.addEventListener("mousedown",r),x.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const c of o)c.isIntersecting&&(we(new URL(c.target.href)),a.unobserve(c.target))},{threshold:0});async function s(o,c){const f=et(o,x),d=f===t&&c>=n;if(!f||d)return;const{url:p,external:u,download:l}=ve(f,I,v.hash);if(u||l)return;const h=ee(f),w=p&&ie(y.url)===ie(p);if(!(h.reload||w))if(c<=h.preload_data){t=f,n=j.tap;const E=await he(p,!1);if(!E)return;dn(E)}else c<=h.preload_code&&(t=f,n=c,we(p))}function i(){a.disconnect();for(const o of x.querySelectorAll("a")){const{url:c,external:f,download:d}=ve(o,I,v.hash);if(f||d)continue;const p=ee(o);p.reload||(p.preload_code===j.viewport&&a.observe(o),p.preload_code===j.eager&&we(c))}}H.add(i),i()}function M(e,t){if(e instanceof ce)return e.body;const n=te(e),r=Zt(e);return v.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function yn(e){if(typeof e=="function")re.push(e);else{const{href:t}=new URL(e,location.href);re.push(n=>n.href===t)}}function wn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Ye(),!X){const r=Ne(y,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};at.forEach(s=>s(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ye()}),navigator.connection?.saveData||mn(),x.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=et(t.composedPath()[0],x);if(!n)return;const{url:r,external:a,target:s,download:i}=ve(n,I,v.hash);if(!r)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const o=ee(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||i)return;const[f,d]=(v.hash?r.hash.replace(/^#/,""):r.href).split("#"),p=f===_e(location);if(a||o.reload&&(!p||!d)){dt({url:r,type:"link",event:t})?X=!0:t.preventDefault();return}if(d!==void 0&&p){const[,u]=y.url.href.split("#");if(u===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)window.scrollTo({top:0});else{const l=n.ownerDocument.getElementById(decodeURIComponent(d));l&&(l.scrollIntoView(),l.focus())}return}if(G=!0,Ie(A),e(r),!o.replace_state)return;G=!1}t.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),await V({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href,event:t})}),x.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const i=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(ue(i,I,!1))return;const o=t.target,c=ee(o);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(o,r);i.search=new URLSearchParams(f).toString(),V({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Ee){if(t.state?.[B]){const n=t.state[B];if($={},n===A)return;const r=D[n],a=t.state[Xe]??{},s=new URL(t.state[jt]??location.href),i=t.state[W],o=y.url?_e(location)===_e(y.url):!1;if(i===T&&(ot||o)){a!==S.state&&(S.state=a),e(s),D[A]=fe(),r&&scrollTo(r.x,r.y),A=n;return}const f=n-A;await V({type:"popstate",url:s,popped:{state:a,scroll:r,delta:f},accept:()=>{A=n,T=i},block:()=>{history.go(-f)},nav_token:$,event:t})}else if(!G){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{G&&(G=!1,history.replaceState({...history.state,[B]:++A,[W]:T},"",location.href))});for(const t of document.querySelectorAll("link"))sn.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&O.navigating.set(J.current=null)});function e(t){y.url=S.url=t,O.page.set(Oe(S)),O.page.notify()}}async function vn(e,{status:t=200,error:n,node_ids:r,params:a,route:s,server_route:i,data:o,form:c}){Le=!0;const f=new URL(location.href);let d;({params:a={},route:s={id:null}}=await he(f,!1)||{}),d=Ue.find(({id:l})=>l===s.id);let p,u=!0;try{const l=r.map(async(w,E)=>{const _=o[E];return _?.uses&&(_.uses=gt(_.uses)),xe({loader:v.nodes[w],url:f,params:a,route:s,parent:async()=>{const N={};for(let R=0;Rs?"1":"0").join(""));const r=window.fetch,a=await r(n.href,{});if(!a.ok){let s;throw a.headers.get("content-type")?.includes("application/json")?s=await a.json():a.status===404?s="Not Found":a.status===500&&(s="Internal Error"),new ce(a.status,s)}return new Promise(async s=>{const i=new Map,o=a.body.getReader();function c(d){return Kt(d,{...v.decoders,Promise:p=>new Promise((u,l)=>{i.set(p,{fulfil:u,reject:l})})})}let f="";for(;;){const{done:d,value:p}=await o.read();if(d&&!f)break;for(f+=!p&&f?` +import{w as Ae,o as je,c as _t}from"./B1lAeocp.js";import{aZ as U,g as L,W as P,aY as $e}from"./bc36GTfJ.js";class ce{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Se{constructor(t,n){this.status=t,this.location=n}}class Re extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function yt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function wt(e){return e.split("%25").map(decodeURI).join("%25")}function vt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function me({href:e}){return e.split("#")[0]}function bt(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return f=>(n(f),i[o](f));t();const c=Reflect.get(i,o);return typeof c=="function"?c.bind(i):c}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const i of s)Object.defineProperty(a,i,{get(){return t(),e[i]},enumerable:!0,configurable:!0});return a}function kt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;const Et=new TextDecoder;function At(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&Y.delete(Te(e)),St(e,t));const Y=new Map;function Rt(e,t){const n=Te(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&Y.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=At(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,t)}function Tt(e,t,n){if(Y.size>0){const r=Te(e,n),a=Y.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return _e(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return _e(String.fromCharCode(...c.slice(2).split("-").map(w=>parseInt(w,16))));const d=It.exec(c),[,p,u,l,h]=d;return t.push({name:l,matcher:h,optional:!!p,rest:!!u,chained:u?f===1&&i[0]==="":!1}),u?"([^]*?)":p?"([^/]*)?":"([^/]+?)"}return _e(c)}).join("")}).join("")}/?$`),params:t}}function Lt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Pt(e){return e.slice(1).split("/").filter(Lt)}function xt(e,t,n){const r={},a=e.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;od).join("/"),i=0),f===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](f)){r[c.name]=f;const d=t[o+1],p=a[o+1];d&&!d.rest&&d.optional&&p&&c.chained&&(i=0),!d&&!p&&Object.keys(r).length===s.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function _e(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ct({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[c,f,d]])=>{const{pattern:p,params:u}=Ut(o),l={id:o,exec:h=>{const w=p.exec(h);if(w)return xt(w,u,r)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...f||[]].map(i),leaf:s(c)};return l.errors.length=l.layouts.length=Math.max(l.errors.length,l.layouts.length),l});function s(o){const c=o<0;return c&&(o=~o),[c,e[o]]}function i(o){return o===void 0?o:[a.has(o),e[o]]}}function We(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function De(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const I=globalThis.__sveltekit_ahim6y?.base??"/_playground",Nt=globalThis.__sveltekit_ahim6y?.assets??I??"",Ot="1759702763367",Je="sveltekit:snapshot",ze="sveltekit:scroll",Xe="sveltekit:states",jt="sveltekit:pageurl",B="sveltekit:history",W="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},le=location.origin;function Ze(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function fe(){return{x:pageXOffset,y:pageYOffset}}function F(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Fe={...j,"":j.hover};function Qe(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function et(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Qe(e)}}function ve(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!a||ue(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),i=r?.origin===le&&e.hasAttribute("download");return{url:r,external:s,target:a,download:i}}function ee(e){let t=null,n=null,r=null,a=null,s=null,i=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=F(o,"preload-code")),a===null&&(a=F(o,"preload-data")),t===null&&(t=F(o,"keepfocus")),n===null&&(n=F(o,"noscroll")),s===null&&(s=F(o,"reload")),i===null&&(i=F(o,"replacestate")),o=Qe(o);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Fe[r??"off"],preload_data:Fe[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(i)}}function Be(e){const t=Ae(e);let n=!0;function r(){n=!0,t.update(i=>i)}function a(i){n=!1,t.set(i)}function s(i){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&i(o=c)})}return{notify:r,set:a,subscribe:s}}const tt={v:()=>{}};function $t(){const{set:e,subscribe:t}=Ae(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Nt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==Ot;return i&&(e(!0),tt.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function ue(e,t,n){return e.origin!==le||!e.pathname.startsWith(t)?!0:n?!(e.pathname===t+"/"||e.pathname===t+"/index.html"||e.protocol==="file:"&&e.pathname.replace(/\/[^/]+\.html?$/,"")===t):!1}function Sn(e){}function Dt(e){const t=Bt(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let a=0;a>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const Vt=-1,Mt=-2,qt=-3,Gt=-4,Yt=-5,Ht=-6;function Kt(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(s,i=!1){if(s===Vt)return;if(s===qt)return NaN;if(s===Gt)return 1/0;if(s===Yt)return-1/0;if(s===Ht)return-0;if(i||typeof s!="number")throw new Error("Invalid input");if(s in r)return r[s];const o=n[s];if(!o||typeof o!="object")r[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const c=o[0],f=t?.[c];if(f)return r[s]=f(a(o[1]));switch(c){case"Date":r[s]=new Date(o[1]);break;case"Set":const d=new Set;r[s]=d;for(let l=1;lt!=null)}const zt="x-sveltekit-invalidated",Xt="x-sveltekit-trailing-slash";function te(e){return e instanceof ce||e instanceof Re?e.status:500}function Zt(e){return e instanceof Re?e.text:"Internal Error"}let S,J,ye;const Qt=je.toString().includes("$$")||/function \w+\(\) \{\}/.test(je.toString());Qt?(S={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},J={current:null},ye={current:!1}):(S=new class{#e=U({});get data(){return L(this.#e)}set data(t){P(this.#e,t)}#t=U(null);get form(){return L(this.#t)}set form(t){P(this.#t,t)}#n=U(null);get error(){return L(this.#n)}set error(t){P(this.#n,t)}#r=U({});get params(){return L(this.#r)}set params(t){P(this.#r,t)}#a=U({id:null});get route(){return L(this.#a)}set route(t){P(this.#a,t)}#o=U({});get state(){return L(this.#o)}set state(t){P(this.#o,t)}#s=U(-1);get status(){return L(this.#s)}set status(t){P(this.#s,t)}#i=U(new URL("https://example.com"));get url(){return L(this.#i)}set url(t){P(this.#i,t)}},J=new class{#e=U(null);get current(){return L(this.#e)}set current(t){P(this.#e,t)}},ye=new class{#e=U(!1);get current(){return L(this.#e)}set current(t){P(this.#e,t)}},tt.v=()=>ye.current=!0);function en(e){Object.assign(S,e)}const tn="/__data.json",nn=".html__data.json";function rn(e){return e.endsWith(".html")?e.replace(/\.html$/,nn):e.replace(/\/$/,"")+tn}const Ve={spanContext(){return an},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},an={traceId:"",spanId:"",traceFlags:0},{tick:on}=_t,sn=new Set(["icon","shortcut icon","apple-touch-icon"]),D=We(ze)??{},z=We(Je)??{},O={url:Be({}),page:Be({}),navigating:Ae(null),updated:$t()};function Ie(e){D[e]=fe()}function cn(e,t){let n=e+1;for(;D[n];)delete D[n],n+=1;for(n=t+1;z[n];)delete z[n],n+=1}function q(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function rt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(I||"/");e&&await e.update()}}function Me(){}let Ue,be,ne,x,ke,v;const re=[],ae=[];let C=null;const Q=new Map,at=new Set,ln=new Set,H=new Set;let y={branch:[],error:null,url:null},Le=!1,oe=!1,qe=!0,X=!1,G=!1,ot=!1,Pe=!1,st,A,T,$;const K=new Set,Ge=new Map;async function Un(e,t,n){globalThis.__sveltekit_ahim6y?.data&&globalThis.__sveltekit_ahim6y.data,document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Ue=Ct(e),x=document.documentElement,ke=t,be=e.nodes[0],ne=e.nodes[1],be(),ne(),A=history.state?.[B],T=history.state?.[W],A||(A=T=Date.now(),history.replaceState({...history.state,[B]:A,[W]:T},""));const r=D[A];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await vn(ke,n)):(await V({type:"enter",url:Ze(v.hash?kn(new URL(location.href)):location.href),replace_state:!0}),a()),wn()}function fn(){re.length=0,Pe=!1}function it(e){ae.some(t=>t?.snapshot)&&(z[e]=ae.map(t=>t?.snapshot?.capture()))}function ct(e){z[e]?.forEach((t,n)=>{ae[n]?.snapshot?.restore(t)})}function Ye(){Ie(A),De(ze,D),it(T),De(Je,z)}async function un(e,t,n,r){let a;t.invalidateAll&&(C=null),await V({type:"goto",url:Ze(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Pe=!0,a=[...Ge.keys()]),t.invalidate&&t.invalidate.forEach(yn)}}),t.invalidateAll&&$e().then($e).then(()=>{Ge.forEach(({resource:s},i)=>{a?.includes(i)&&s.refresh?.()})})}async function dn(e){if(e.id!==C?.id){const t={};K.add(t),C={id:e.id,token:t,promise:ut({...e,preload:t}).then(n=>(K.delete(t),n.type==="loaded"&&n.state.error&&(C=null),n))}}return C.promise}async function we(e){const t=(await he(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function lt(e,t,n){y=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(S,e.props.page),st=new v.root({target:t,props:{...e.props,stores:O,components:ae},hydrate:n,sync:!1}),ct(T),n){const a={from:null,to:{params:y.params,route:{id:y.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};H.forEach(s=>s(a))}oe=!0}function se({url:e,params:t,branch:n,status:r,error:a,route:s,form:i}){let o="never";if(I&&(e.pathname===I||e.pathname===I+"/"))o="always";else for(const l of n)l?.slash!==void 0&&(o=l.slash);e.pathname=yt(e.pathname,o),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:s},props:{constructors:Jt(n).map(l=>l.node.component),page:Oe(S)}};i!==void 0&&(c.props.form=i);let f={},d=!S,p=0;for(let l=0;l(o&&(c.route=!0),u[l])}),params:new Proxy(r,{get:(u,l)=>(o&&c.params.add(l),u[l])}),data:s?.data??null,url:bt(n,()=>{o&&(c.url=!0)},u=>{o&&c.search_params.add(u)},v.hash),async fetch(u,l){u instanceof Request&&(l={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:[...u.headers].length>0?u?.headers:void 0,integrity:u.integrity,keepalive:u.keepalive,method:u.method,mode:u.mode,redirect:u.redirect,referrer:u.referrer,referrerPolicy:u.referrerPolicy,signal:u.signal,...l});const{resolved:h,promise:w}=ft(u,l,n);return o&&d(h.href),w},setHeaders:()=>{},depends:d,parent(){return o&&(c.parent=!0),t()},untrack(u){o=!1;try{return u()}finally{o=!0}}};i=await f.universal.load.call(null,p)??null}return{node:f,loader:e,server:s,universal:f.universal?.load?{type:"data",data:i,uses:c}:null,data:i??s?.data??null,slash:f.universal?.trailingSlash??s?.slash}}function ft(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=oe?Tt(r,a.href,t):Rt(r,t);return{resolved:a,promise:s}}function He(e,t,n,r,a,s){if(Pe)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==y.params[i])return!0;for(const i of a.dependencies)if(re.some(o=>o(new URL(i))))return!0;return!1}function Ce(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function hn(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),s=t.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}function Ke({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Oe(S),constructors:[]}}}async function ut({id:e,invalidating:t,url:n,params:r,route:a,preload:s}){if(C?.id===e)return K.delete(C.token),C.promise;const{errors:i,layouts:o,leaf:c}=a,f=[...o,c];i.forEach(_=>_?.().catch(()=>{})),f.forEach(_=>_?.[1]().catch(()=>{}));let d=null;const p=y.url?e!==ie(y.url):!1,u=y.route?a.id!==y.route.id:!1,l=hn(y.url,n);let h=!1;const w=f.map((_,g)=>{const b=y.branch[g],k=!!_?.[0]&&(b?.loader!==_[1]||He(h,u,p,l,b.server?.uses,r));return k&&(h=!0),k});if(w.some(Boolean)){try{d=await pt(n,w)}catch(_){const g=await M(_,{url:n,params:r,route:{id:e}});return K.has(s)?Ke({error:g,url:n,params:r,route:a}):de({status:te(_),error:g,url:n,route:a})}if(d.type==="redirect")return d}const E=d?.nodes;let m=!1;const N=f.map(async(_,g)=>{if(!_)return;const b=y.branch[g],k=E?.[g];if((!k||k.type==="skip")&&_[1]===b?.loader&&!He(m,u,p,l,b.universal?.uses,r))return b;if(m=!0,k?.type==="error")throw k;return xe({loader:_[1],url:n,params:r,route:a,parent:async()=>{const pe={};for(let ge=0;ge{});const R=[];for(let _=0;_Promise.resolve({}),server_data_node:Ce(s)}),c={node:await ne(),loader:ne,universal:null,server:null,data:null};return se({url:n,params:a,branch:[o,c],status:e,error:t,route:null})}catch(o){if(o instanceof Se)return un(new URL(o.location,location.href),{},0);throw o}}async function gn(e){const t=e.href;if(Q.has(t))return Q.get(t);let n;try{const r=(async()=>{let a=await v.hooks.reroute({url:new URL(e),fetch:async(s,i)=>ft(s,i,e).promise})??e;if(typeof a=="string"){const s=new URL(e);v.hash?s.hash=a:s.pathname=a,a=s}return a})();Q.set(t,r),n=await r}catch{Q.delete(t);return}return n}async function he(e,t){if(e&&!ue(e,I,v.hash)){const n=await gn(e);if(!n)return;const r=mn(n);for(const a of Ue){const s=a.exec(r);if(s)return{id:ie(e),invalidating:t,route:a,params:vt(s),url:e}}}}function mn(e){return wt(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(I.length))||"/"}function ie(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function dt({url:e,type:t,intent:n,delta:r,event:a}){let s=!1;const i=Ne(y,n,e,t);r!==void 0&&(i.navigation.delta=r),a!==void 0&&(i.navigation.event=a);const o={...i.navigation,cancel:()=>{s=!0,i.reject(new Error("navigation cancelled"))}};return X||at.forEach(c=>c(o)),s?null:i}async function V({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:c={},accept:f=Me,block:d=Me,event:p}){const u=$;$=c;const l=await he(t,!1),h=e==="enter"?Ne(y,l,t,e):dt({url:t,type:e,delta:n?.delta,intent:l,event:p});if(!h){d(),$===c&&($=u);return}const w=A,E=T;f(),X=!0,oe&&h.navigation.type!=="enter"&&O.navigating.set(J.current=h.navigation);let m=l&&await ut(l);if(!m){if(ue(t,I,v.hash))return await q(t,s);m=await ht(t,{id:null},await M(new Re(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=l?.url||t,$!==c)return h.reject(new Error("navigation aborted")),!1;if(m.type==="redirect"){if(o<20){await V({type:e,url:new URL(m.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i,redirect_count:o+1,nav_token:c}),h.fulfil(void 0);return}m=await de({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else m.props.page.status>=400&&await O.updated.check()&&(await rt(),await q(t,s));if(fn(),Ie(w),it(E),m.props.page.url.pathname!==t.pathname&&(t.pathname=m.props.page.url.pathname),i=n?n.state:i,!n){const g=s?0:1,b={[B]:A+=g,[W]:T+=g,[Xe]:i};(s?history.replaceState:history.pushState).call(history,b,"",t),s||cn(A,T)}if(C=null,m.props.page.state=i,oe){const g=(await Promise.all(Array.from(ln,b=>b(h.navigation)))).filter(b=>typeof b=="function");if(g.length>0){let b=function(){g.forEach(k=>{H.delete(k)})};g.push(b),g.forEach(k=>{H.add(k)})}y=m.state,m.props.page&&(m.props.page.url=t),st.$set(m.props),en(m.props.page),ot=!0}else lt(m,ke,!1);const{activeElement:N}=document;await on();const R=n?n.scroll:a?fe():null;if(qe){const g=t.hash&&document.getElementById(mt(t));R?scrollTo(R.x,R.y):g?g.scrollIntoView():scrollTo(0,0)}const _=document.activeElement!==N&&document.activeElement!==document.body;!r&&!_&&bn(t),qe=!0,m.props.page&&Object.assign(S,m.props.page),X=!1,e==="popstate"&&ct(T),h.fulfil(void 0),H.forEach(g=>g(h.navigation)),O.navigating.set(J.current=null)}async function ht(e,t,n,r,a){return e.origin===le&&e.pathname===location.pathname&&!Le?await de({status:r,error:n,url:e,route:t}):await q(e,a)}function _n(){let e,t,n;x.addEventListener("mousemove",o=>{const c=o.target;clearTimeout(e),e=setTimeout(()=>{s(c,j.hover)},20)});function r(o){o.defaultPrevented||s(o.composedPath()[0],j.tap)}x.addEventListener("mousedown",r),x.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const c of o)c.isIntersecting&&(we(new URL(c.target.href)),a.unobserve(c.target))},{threshold:0});async function s(o,c){const f=et(o,x),d=f===t&&c>=n;if(!f||d)return;const{url:p,external:u,download:l}=ve(f,I,v.hash);if(u||l)return;const h=ee(f),w=p&&ie(y.url)===ie(p);if(!(h.reload||w))if(c<=h.preload_data){t=f,n=j.tap;const E=await he(p,!1);if(!E)return;dn(E)}else c<=h.preload_code&&(t=f,n=c,we(p))}function i(){a.disconnect();for(const o of x.querySelectorAll("a")){const{url:c,external:f,download:d}=ve(o,I,v.hash);if(f||d)continue;const p=ee(o);p.reload||(p.preload_code===j.viewport&&a.observe(o),p.preload_code===j.eager&&we(c))}}H.add(i),i()}function M(e,t){if(e instanceof ce)return e.body;const n=te(e),r=Zt(e);return v.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function yn(e){if(typeof e=="function")re.push(e);else{const{href:t}=new URL(e,location.href);re.push(n=>n.href===t)}}function wn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Ye(),!X){const r=Ne(y,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};at.forEach(s=>s(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ye()}),navigator.connection?.saveData||_n(),x.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=et(t.composedPath()[0],x);if(!n)return;const{url:r,external:a,target:s,download:i}=ve(n,I,v.hash);if(!r)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const o=ee(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||i)return;const[f,d]=(v.hash?r.hash.replace(/^#/,""):r.href).split("#"),p=f===me(location);if(a||o.reload&&(!p||!d)){dt({url:r,type:"link",event:t})?X=!0:t.preventDefault();return}if(d!==void 0&&p){const[,u]=y.url.href.split("#");if(u===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)window.scrollTo({top:0});else{const l=n.ownerDocument.getElementById(decodeURIComponent(d));l&&(l.scrollIntoView(),l.focus())}return}if(G=!0,Ie(A),e(r),!o.replace_state)return;G=!1}t.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),await V({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href,event:t})}),x.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const i=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(ue(i,I,!1))return;const o=t.target,c=ee(o);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(o,r);i.search=new URLSearchParams(f).toString(),V({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Ee){if(t.state?.[B]){const n=t.state[B];if($={},n===A)return;const r=D[n],a=t.state[Xe]??{},s=new URL(t.state[jt]??location.href),i=t.state[W],o=y.url?me(location)===me(y.url):!1;if(i===T&&(ot||o)){a!==S.state&&(S.state=a),e(s),D[A]=fe(),r&&scrollTo(r.x,r.y),A=n;return}const f=n-A;await V({type:"popstate",url:s,popped:{state:a,scroll:r,delta:f},accept:()=>{A=n,T=i},block:()=>{history.go(-f)},nav_token:$,event:t})}else if(!G){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{G&&(G=!1,history.replaceState({...history.state,[B]:++A,[W]:T},"",location.href))});for(const t of document.querySelectorAll("link"))sn.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&O.navigating.set(J.current=null)});function e(t){y.url=S.url=t,O.page.set(Oe(S)),O.page.notify()}}async function vn(e,{status:t=200,error:n,node_ids:r,params:a,route:s,server_route:i,data:o,form:c}){Le=!0;const f=new URL(location.href);let d;({params:a={},route:s={id:null}}=await he(f,!1)||{}),d=Ue.find(({id:l})=>l===s.id);let p,u=!0;try{const l=r.map(async(w,E)=>{const m=o[E];return m?.uses&&(m.uses=gt(m.uses)),xe({loader:v.nodes[w],url:f,params:a,route:s,parent:async()=>{const N={};for(let R=0;Rs?"1":"0").join(""));const r=window.fetch,a=await r(n.href,{});if(!a.ok){let s;throw a.headers.get("content-type")?.includes("application/json")?s=await a.json():a.status===404?s="Not Found":a.status===500&&(s="Internal Error"),new ce(a.status,s)}return new Promise(async s=>{const i=new Map,o=a.body.getReader();function c(d){return Kt(d,{...v.decoders,Promise:p=>new Promise((u,l)=>{i.set(p,{fulfil:u,reject:l})})})}let f="";for(;;){const{done:d,value:p}=await o.read();if(d&&!f)break;for(f+=!p&&f?` `:Et.decode(p,{stream:!0});;){const u=f.indexOf(` -`);if(u===-1)break;const l=JSON.parse(f.slice(0,u));if(f=f.slice(u+1),l.type==="redirect")return s(l);if(l.type==="data")l.nodes?.forEach(h=>{h?.type==="data"&&(h.uses=gt(h.uses),h.data=c(h.data))}),s(l);else if(l.type==="chunk"){const{id:h,data:w,error:E}=l,_=i.get(h);i.delete(h),E?_.reject(c(E)):_.fulfil(c(w))}}}})}function gt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Ee=!1;function bn(e){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const n=_t(e);if(n&&document.getElementById(n)){const{x:a,y:s}=fe();setTimeout(()=>{const i=history.state;Ee=!0,location.replace(`#${n}`),v.hash&&location.replace(e.hash),history.replaceState(i,"",e.hash),scrollTo(a,s),Ee=!1})}else{const a=document.body,s=a.getAttribute("tabindex");a.tabIndex=-1,a.focus({preventScroll:!0,focusVisible:!1}),s!==null?a.setAttribute("tabindex",s):a.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let s=0;s{if(r.rangeCount===a.length){for(let s=0;s{a=c,s=f});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:r,complete:i},fulfil:a,reject:s}}function Oe(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function kn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function _t(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Un as a,Sn as l,S as p,O as s}; +`);if(u===-1)break;const l=JSON.parse(f.slice(0,u));if(f=f.slice(u+1),l.type==="redirect")return s(l);if(l.type==="data")l.nodes?.forEach(h=>{h?.type==="data"&&(h.uses=gt(h.uses),h.data=c(h.data))}),s(l);else if(l.type==="chunk"){const{id:h,data:w,error:E}=l,m=i.get(h);i.delete(h),E?m.reject(c(E)):m.fulfil(c(w))}}}})}function gt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Ee=!1;function bn(e){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const n=mt(e);if(n&&document.getElementById(n)){const{x:a,y:s}=fe();setTimeout(()=>{const i=history.state;Ee=!0,location.replace(`#${n}`),v.hash&&location.replace(e.hash),history.replaceState(i,"",e.hash),scrollTo(a,s),Ee=!1})}else{const a=document.body,s=a.getAttribute("tabindex");a.tabIndex=-1,a.focus({preventScroll:!0,focusVisible:!1}),s!==null?a.setAttribute("tabindex",s):a.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let s=0;s{if(r.rangeCount===a.length){for(let s=0;s{a=c,s=f});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:r,complete:i},fulfil:a,reject:s}}function Oe(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function kn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function mt(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Un as a,Sn as l,S as p,O as s}; diff --git a/server/playground/_app/immutable/chunks/DyOAiIET.js b/server/playground/_app/immutable/chunks/DyOAiIET.js new file mode 100644 index 0000000..4c94986 --- /dev/null +++ b/server/playground/_app/immutable/chunks/DyOAiIET.js @@ -0,0 +1,2 @@ +import{R as X,z as Y,ap as M,J as q,P as z,A as L,aP as m,b0 as x,b1 as r0,V as e0,b2 as i0,g as f0,b3 as t0,G as j,b4 as s0,b5 as a0,b6 as u0,b7 as l0,U as o0,b8 as c0,b9 as n0,ba as v0,bb as d0,bc as b0,bd as g0}from"./bc36GTfJ.js";function _0(r,f){if(f){const e=document.body;r.autofocus=!0,X(()=>{document.activeElement===e&&r.focus()})}}let U=!1;function h0(){U||(U=!0,document.addEventListener("reset",r=>{Promise.resolve().then(()=>{if(!r.defaultPrevented)for(const f of r.target.elements)f.__on_r?.()})},{capture:!0}))}function C0(r,f){var e=void 0,i;Y(()=>{e!==(e=f())&&(i&&(M(i),i=null),e&&(i=q(()=>{z(()=>e(r))})))})}function D(r){var f,e,i="";if(typeof r=="string"||typeof r=="number")i+=r;else if(typeof r=="object")if(Array.isArray(r)){var t=r.length;for(f=0;f=0;){var n=l+s;(l===0||H.includes(i[l-1]))&&(n===i.length||H.includes(i[n]))?i=(l===0?"":i.substring(0,l))+i.substring(n+1):l=n}}return i===""?null:i}function R(r,f=!1){var e=f?" !important;":";",i="";for(var t in r){var s=r[t];s!=null&&s!==""&&(i+=" "+t+": "+s+e)}return i}function I(r){return r[0]!=="-"||r[1]!=="-"?r.toLowerCase():r}function N0(r,f){if(f){var e="",i,t;if(Array.isArray(f)?(i=f[0],t=f[1]):i=f,r){r=String(r).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,l=0,n=!1,c=[];i&&c.push(...Object.keys(i).map(I)),t&&c.push(...Object.keys(t).map(I));var v=0,A=-1;const p=r.length;for(var d=0;d{P(r,r.__value)});f.observe(r,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),e0(()=>{f.disconnect()})}function Z(r){return"__value"in r?r.__value:r.value}const w=Symbol("class"),E=Symbol("style"),G=Symbol("is custom element"),K=Symbol("is html");function T0(r){if(L){var f=!1,e=()=>{if(!f){if(f=!0,r.hasAttribute("value")){var i=r.value;T(r,"value",null),r.value=i}if(r.hasAttribute("checked")){var t=r.checked;T(r,"checked",null),r.checked=t}}};r.__on_r=e,c0(e),h0()}}function y0(r,f){f?r.hasAttribute("selected")||r.setAttribute("selected",""):r.removeAttribute("selected")}function T(r,f,e,i){var t=F(r);L&&(t[f]=r.getAttribute(f),f==="src"||f==="srcset"||f==="href"&&r.nodeName==="LINK")||t[f]!==(t[f]=e)&&(f==="loading"&&(r[d0]=e),e==null?r.removeAttribute(f):typeof e!="string"&&J(r).includes(f)?r[f]=e:r.setAttribute(f,e))}function I0(r,f,e,i,t=!1,s=!1){if(L&&t&&r.tagName==="INPUT"){var l=r,n=l.type==="checkbox"?"defaultChecked":"defaultValue";n in e||T0(l)}var c=F(r),v=c[G],A=!c[K];let d=L&&v;d&&j(!1);var a=f||{},C=r.tagName==="OPTION";for(var N in f)N in e||(e[N]=null);e.class?e.class=p0(e.class):e[w]&&(e.class=null),e[E]&&(e.style??=null);var p=J(r);for(const u in e){let o=e[u];if(C&&u==="value"&&o==null){r.value=r.__value="",a[u]=o;continue}if(u==="class"){var h=r.namespaceURI==="http://www.w3.org/1999/xhtml";S0(r,h,o,i,f?.[w],e[w]),a[u]=o,a[w]=e[w];continue}if(u==="style"){w0(r,o,f?.[E],e[E]),a[u]=o,a[E]=e[E];continue}var k=a[u];if(!(o===k&&!(o===void 0&&r.hasAttribute(u)))){a[u]=o;var V=u[0]+u[1];if(V!=="$$")if(V==="on"){const _={},S="$$"+u;let b=u.slice(2);var y=b0(b);if(s0(b)&&(b=b.slice(0,-7),_.capture=!0),!y&&k){if(o!=null)continue;r.removeEventListener(b,a[S],_),a[S]=null}if(o!=null)if(y)r[`__${b}`]=o,u0([b]);else{let Q=function(W){a[u].call(this,W)};a[S]=a0(b,r,Q,_)}else y&&(r[`__${b}`]=void 0)}else if(u==="style")T(r,u,o);else if(u==="autofocus")_0(r,!!o);else if(!v&&(u==="__value"||u==="value"&&o!=null))r.value=r.__value=o;else if(u==="selected"&&C)y0(r,o);else{var g=u;A||(g=l0(g));var $=g==="defaultValue"||g==="defaultChecked";if(o==null&&!v&&!$)if(c[u]=null,g==="value"||g==="checked"){let _=r;const S=f===void 0;if(g==="value"){let b=_.defaultValue;_.removeAttribute(g),_.defaultValue=b,_.value=_.__value=S?b:null}else{let b=_.defaultChecked;_.removeAttribute(g),_.defaultChecked=b,_.checked=S?b:!1}}else r.removeAttribute(u);else $||p.includes(g)&&(v||typeof o!="string")?(r[g]=o,g in c&&(c[g]=o0)):typeof o!="function"&&T(r,g,o)}}}return d&&j(!0),a}function M0(r,f,e=[],i=[],t,s=!1,l=!1){i0(e,i,n=>{var c=void 0,v={},A=r.nodeName==="SELECT",d=!1;if(Y(()=>{var C=f(...n.map(f0)),N=I0(r,c,C,t,s,l);d&&A&&"value"in C&&P(r,C.value);for(let h of Object.getOwnPropertySymbols(v))C[h]||M(v[h]);for(let h of Object.getOwnPropertySymbols(C)){var p=C[h];h.description===t0&&(!c||p!==c[h])&&(v[h]&&M(v[h]),v[h]=q(()=>C0(r,()=>p))),N[h]=p}c=N}),A){var a=r;z(()=>{P(a,c.value,!0),E0(a)})}d=!0})}function F(r){return r.__attributes??={[G]:r.nodeName.includes("-"),[K]:r.namespaceURI===n0}}var B=new Map;function J(r){var f=r.getAttribute("is")||r.nodeName,e=B.get(f);if(e)return e;B.set(f,e=[]);for(var i,t=r,s=Element.prototype;s!==t;){i=g0(t);for(var l in i)i[l].set&&e.push(l);t=v0(t)}return e}const P0="data:image/svg+xml,%3csvg%20width='202'%20height='202'%20viewBox='0%200%20202%20202'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M198%20101C198%2047.4284%20154.572%204%20101%204C63.6769%204%2031.2771%2025.0794%2015.0566%2055.9824C31.5802%2036.8304%2058.3585%2025%2087.5%2025C107.135%2025%20125.868%2030.5962%20141.081%2040.3643C163.17%2054.5475%20177.915%2077.5995%20176.999%20105.066C176.961%20122.231%20171.229%20138.064%20161.595%20150.771L159.861%20153.057L133.999%20112.606L100.778%20164.568L65.0068%20108.618L42.0176%20144.873C57.3037%20166.504%2084.4388%20181%20114.5%20181C149.395%20181%20180.331%20159.267%20193.398%20130.6C196.385%20121.268%20198%20111.323%20198%20101ZM29.0127%20106.222C29.2632%20118.862%2033.0866%20130.771%2039.5967%20141.223L64.9932%20101.171L100.778%20157.143L134%20105.182L160.106%20146.016C168.233%20134.357%20173%20120.186%20173%20104.895H173.002C173.825%2079.7876%20160.762%2058.4662%20140.614%2044.8486L101%20108.688L61.3604%2044.7793C41.8587%2057.6651%2029%2079.7788%2029%20104.895L29.0127%20106.222ZM202%20101C202%20156.781%20156.781%20202%20101%20202V198C134.1%20198%20163.327%20181.42%20180.831%20156.113C164.258%20173.559%20140.379%20185%20114.5%20185C82.6725%20185%2053.8784%20169.41%2037.9658%20146.05C30.0365%20134.409%2025.3017%20120.829%2025.0137%20106.303L25%20104.895C25%2077.6227%2039.3659%2053.7077%2060.9336%2040.3018L62.6338%2039.2441L101%20101.101L137.249%2042.6855C123.002%2033.9863%20105.671%2029%2087.5%2029C51.3264%2029%2019.6837%2047.7188%207.41992%2075.377C5.19019%2083.5392%204%2092.1306%204%20101C4%20154.572%2047.4284%20198%20101%20198V202C45.2192%20202%200%20156.781%200%20101C0%2045.2192%2045.2192%200%20101%200C156.781%200%20202%2045.2192%20202%20101Z'%20fill='%23555'/%3e%3c/svg%3e";export{M0 as a,S0 as b,p0 as c,P0 as f,T as s}; diff --git a/server/playground/_app/immutable/entry/app.CljZrWk8.js b/server/playground/_app/immutable/entry/app.TBE8HBpz.js similarity index 90% rename from server/playground/_app/immutable/entry/app.CljZrWk8.js rename to server/playground/_app/immutable/entry/app.TBE8HBpz.js index 85a2f6a..b8510cd 100644 --- a/server/playground/_app/immutable/entry/app.CljZrWk8.js +++ b/server/playground/_app/immutable/entry/app.TBE8HBpz.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.zsYIuDcs.js","../chunks/DsnmJJEf.js","../chunks/bc36GTfJ.js","../chunks/B342IurK.js","../assets/0.z6k2NkFs.css","../nodes/1.DeB82DVy.js","../chunks/kadZwC1X.js","../chunks/B1lAeocp.js","../chunks/BXzq9L9X.js","../nodes/2.D7UzWOC6.js","../chunks/DyoUZ9Ht.js","../assets/2.DQ5mJGGf.css"])))=>i.map(i=>d[i]); -import{A as D,B as W,z as Y,E as z,I as G,J,K as I,L as K,O as X,N as Z,W as w,ac as H,g as d,aS as Q,X as $,T as ee,p as te,u as re,a as se,aZ as x,aY as ae,o as F,k as R,y as ne,l as P,q as oe,i as S,v as ce,x as ie,a_ as O,a$ as le,t as ue}from"../chunks/bc36GTfJ.js";import{h as fe,m as de,u as me,o as he,s as _e}from"../chunks/B1lAeocp.js";import"../chunks/DsnmJJEf.js";import{p as A,i as C,b as L}from"../chunks/DyoUZ9Ht.js";function T(l,e,a){D&&W();var o=l,n,r,t=null,s=null;function m(){r&&(Z(r),r=null),t&&(t.lastChild.remove(),o.before(t),t=null),r=s,s=null}Y(()=>{if(n!==(n=e())){var h=K();if(n){var c=o;h&&(t=document.createDocumentFragment(),t.append(c=G()),r&&I.skipped_effects.add(r)),s=J(()=>a(c,n))}h?I.add_callback(m):m()}},z),D&&(o=X)}function ve(l){return class extends ge{constructor(e){super({component:l,...e})}}}class ge{#t;#e;constructor(e){var a=new Map,o=(r,t)=>{var s=ee(t,!1,!1);return a.set(r,s),s};const n=new Proxy({...e.props||{},$$events:{}},{get(r,t){return d(a.get(t)??o(t,Reflect.get(r,t)))},has(r,t){return t===H?!0:(d(a.get(t)??o(t,Reflect.get(r,t))),Reflect.has(r,t))},set(r,t,s){return w(a.get(t)??o(t,s),s),Reflect.set(r,t,s)}});this.#e=(e.hydrate?fe:de)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Q(),this.#t=n.$$events;for(const r of Object.keys(this.#e))r==="$set"||r==="$destroy"||r==="$on"||$(this,r,{get(){return this.#e[r]},set(t){this.#e[r]=t},enumerable:!0});this.#e.$set=r=>{Object.assign(n,r)},this.#e.$destroy=()=>{me(this.#e)}}$set(e){this.#e.$set(e)}$on(e,a){this.#t[e]=this.#t[e]||[];const o=(...n)=>a.call(this,...n);return this.#t[e].push(o),()=>{this.#t[e]=this.#t[e].filter(n=>n!==o)}}$destroy(){this.#e.$destroy()}}const ye="modulepreload",be=function(l,e){return new URL(l,e).href},q={},j=function(e,a,o){let n=Promise.resolve();if(a&&a.length>0){let h=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(_=>({status:"fulfilled",value:_}),_=>({status:"rejected",reason:_}))))};const t=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),m=s?.nonce||s?.getAttribute("nonce");n=h(a.map(c=>{if(c=be(c,o),c in q)return;q[c]=!0;const f=c.endsWith(".css"),_=f?'[rel="stylesheet"]':"";if(o)for(let v=t.length-1;v>=0;v--){const i=t[v];if(i.href===c&&(!f||i.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${_}`))return;const u=document.createElement("link");if(u.rel=f?"stylesheet":ye,f||(u.as="script"),u.crossOrigin="",u.href=c,m&&u.setAttribute("nonce",m),document.head.appendChild(u),f)return new Promise((v,i)=>{u.addEventListener("load",v),u.addEventListener("error",()=>i(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(t){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=t,window.dispatchEvent(s),!s.defaultPrevented)throw t}return n.then(t=>{for(const s of t||[])s.status==="rejected"&&r(s.reason);return e().catch(r)})},Ce={};var Ee=F('
'),Pe=F(" ",1);function pe(l,e){te(e,!0);let a=A(e,"components",23,()=>[]),o=A(e,"data_0",3,null),n=A(e,"data_1",3,null);re(()=>e.stores.page.set(e.page)),se(()=>{e.stores,e.page,e.constructors,a(),e.form,o(),n(),e.stores.page.notify()});let r=x(!1),t=x(!1),s=x(null);he(()=>{const i=e.stores.page.subscribe(()=>{d(r)&&(w(t,!0),ae().then(()=>{w(s,document.title||"untitled page",!0)}))});return w(r,!0),i});const m=O(()=>e.constructors[1]);var h=Pe(),c=R(h);{var f=i=>{const g=O(()=>e.constructors[0]);var y=S(),p=R(y);T(p,()=>d(g),(b,E)=>{L(E(b,{get data(){return o()},get form(){return e.form},get params(){return e.page.params},children:(k,we)=>{var N=S(),M=R(N);T(M,()=>d(m),(V,B)=>{L(B(V,{get data(){return n()},get form(){return e.form},get params(){return e.page.params}}),U=>a()[1]=U,()=>a()?.[1])}),P(k,N)},$$slots:{default:!0}}),k=>a()[0]=k,()=>a()?.[0])}),P(i,y)},_=i=>{const g=O(()=>e.constructors[0]);var y=S(),p=R(y);T(p,()=>d(g),(b,E)=>{L(E(b,{get data(){return o()},get form(){return e.form},get params(){return e.page.params}}),k=>a()[0]=k,()=>a()?.[0])}),P(i,y)};C(c,i=>{e.constructors[1]?i(f):i(_,!1)})}var u=ne(c,2);{var v=i=>{var g=Ee(),y=ce(g);{var p=b=>{var E=le();ue(()=>_e(E,d(s))),P(b,E)};C(y,b=>{d(t)&&b(p)})}ie(g),P(i,g)};C(u,i=>{d(r)&&i(v)})}P(l,h),oe()}const Le=ve(pe),Te=[()=>j(()=>import("../nodes/0.zsYIuDcs.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>j(()=>import("../nodes/1.DeB82DVy.js"),__vite__mapDeps([5,1,6,2,7,8]),import.meta.url),()=>j(()=>import("../nodes/2.D7UzWOC6.js"),__vite__mapDeps([9,1,6,2,3,10,7,11]),import.meta.url)],je=[],Ne={"/":[2]},ke={handleError:(({error:l})=>{console.error(l)}),reroute:(()=>{}),transport:{}},Re=Object.fromEntries(Object.entries(ke.transport).map(([l,e])=>[l,e.decode])),De=!1,Ie=(l,e)=>Re[l](e);export{Ie as decode,Re as decoders,Ne as dictionary,De as hash,ke as hooks,Ce as matchers,Te as nodes,Le as root,je as server_loads}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BxuPCyXV.js","../chunks/DsnmJJEf.js","../chunks/bc36GTfJ.js","../chunks/DyOAiIET.js","../assets/0.z6k2NkFs.css","../nodes/1.D9DCRrr8.js","../chunks/kadZwC1X.js","../chunks/B1lAeocp.js","../chunks/BsPC8ki2.js","../nodes/2.BEtOseUT.js","../chunks/DyoUZ9Ht.js","../assets/2.DQ5mJGGf.css"])))=>i.map(i=>d[i]); +import{A as D,B as W,z as Y,E as z,I as G,J,K as I,L as K,O as X,N as Z,W as w,ac as H,g as d,aS as Q,X as $,T as ee,p as te,u as re,a as se,aZ as x,aY as ae,o as F,k as R,y as ne,l as P,q as oe,i as S,v as ce,x as ie,a_ as O,a$ as le,t as ue}from"../chunks/bc36GTfJ.js";import{h as fe,m as de,u as me,o as he,s as _e}from"../chunks/B1lAeocp.js";import"../chunks/DsnmJJEf.js";import{p as A,i as C,b as L}from"../chunks/DyoUZ9Ht.js";function T(l,e,a){D&&W();var o=l,n,r,t=null,s=null;function m(){r&&(Z(r),r=null),t&&(t.lastChild.remove(),o.before(t),t=null),r=s,s=null}Y(()=>{if(n!==(n=e())){var h=K();if(n){var c=o;h&&(t=document.createDocumentFragment(),t.append(c=G()),r&&I.skipped_effects.add(r)),s=J(()=>a(c,n))}h?I.add_callback(m):m()}},z),D&&(o=X)}function ve(l){return class extends ge{constructor(e){super({component:l,...e})}}}class ge{#t;#e;constructor(e){var a=new Map,o=(r,t)=>{var s=ee(t,!1,!1);return a.set(r,s),s};const n=new Proxy({...e.props||{},$$events:{}},{get(r,t){return d(a.get(t)??o(t,Reflect.get(r,t)))},has(r,t){return t===H?!0:(d(a.get(t)??o(t,Reflect.get(r,t))),Reflect.has(r,t))},set(r,t,s){return w(a.get(t)??o(t,s),s),Reflect.set(r,t,s)}});this.#e=(e.hydrate?fe:de)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Q(),this.#t=n.$$events;for(const r of Object.keys(this.#e))r==="$set"||r==="$destroy"||r==="$on"||$(this,r,{get(){return this.#e[r]},set(t){this.#e[r]=t},enumerable:!0});this.#e.$set=r=>{Object.assign(n,r)},this.#e.$destroy=()=>{me(this.#e)}}$set(e){this.#e.$set(e)}$on(e,a){this.#t[e]=this.#t[e]||[];const o=(...n)=>a.call(this,...n);return this.#t[e].push(o),()=>{this.#t[e]=this.#t[e].filter(n=>n!==o)}}$destroy(){this.#e.$destroy()}}const ye="modulepreload",be=function(l,e){return new URL(l,e).href},q={},j=function(e,a,o){let n=Promise.resolve();if(a&&a.length>0){let h=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(_=>({status:"fulfilled",value:_}),_=>({status:"rejected",reason:_}))))};const t=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),m=s?.nonce||s?.getAttribute("nonce");n=h(a.map(c=>{if(c=be(c,o),c in q)return;q[c]=!0;const f=c.endsWith(".css"),_=f?'[rel="stylesheet"]':"";if(o)for(let v=t.length-1;v>=0;v--){const i=t[v];if(i.href===c&&(!f||i.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${_}`))return;const u=document.createElement("link");if(u.rel=f?"stylesheet":ye,f||(u.as="script"),u.crossOrigin="",u.href=c,m&&u.setAttribute("nonce",m),document.head.appendChild(u),f)return new Promise((v,i)=>{u.addEventListener("load",v),u.addEventListener("error",()=>i(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(t){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=t,window.dispatchEvent(s),!s.defaultPrevented)throw t}return n.then(t=>{for(const s of t||[])s.status==="rejected"&&r(s.reason);return e().catch(r)})},Ce={};var Ee=F('
'),Pe=F(" ",1);function pe(l,e){te(e,!0);let a=A(e,"components",23,()=>[]),o=A(e,"data_0",3,null),n=A(e,"data_1",3,null);re(()=>e.stores.page.set(e.page)),se(()=>{e.stores,e.page,e.constructors,a(),e.form,o(),n(),e.stores.page.notify()});let r=x(!1),t=x(!1),s=x(null);he(()=>{const i=e.stores.page.subscribe(()=>{d(r)&&(w(t,!0),ae().then(()=>{w(s,document.title||"untitled page",!0)}))});return w(r,!0),i});const m=O(()=>e.constructors[1]);var h=Pe(),c=R(h);{var f=i=>{const g=O(()=>e.constructors[0]);var y=S(),p=R(y);T(p,()=>d(g),(b,E)=>{L(E(b,{get data(){return o()},get form(){return e.form},get params(){return e.page.params},children:(k,we)=>{var N=S(),M=R(N);T(M,()=>d(m),(V,B)=>{L(B(V,{get data(){return n()},get form(){return e.form},get params(){return e.page.params}}),U=>a()[1]=U,()=>a()?.[1])}),P(k,N)},$$slots:{default:!0}}),k=>a()[0]=k,()=>a()?.[0])}),P(i,y)},_=i=>{const g=O(()=>e.constructors[0]);var y=S(),p=R(y);T(p,()=>d(g),(b,E)=>{L(E(b,{get data(){return o()},get form(){return e.form},get params(){return e.page.params}}),k=>a()[0]=k,()=>a()?.[0])}),P(i,y)};C(c,i=>{e.constructors[1]?i(f):i(_,!1)})}var u=ne(c,2);{var v=i=>{var g=Ee(),y=ce(g);{var p=b=>{var E=le();ue(()=>_e(E,d(s))),P(b,E)};C(y,b=>{d(t)&&b(p)})}ie(g),P(i,g)};C(u,i=>{d(r)&&i(v)})}P(l,h),oe()}const Le=ve(pe),Te=[()=>j(()=>import("../nodes/0.BxuPCyXV.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>j(()=>import("../nodes/1.D9DCRrr8.js"),__vite__mapDeps([5,1,6,2,7,8]),import.meta.url),()=>j(()=>import("../nodes/2.BEtOseUT.js"),__vite__mapDeps([9,1,6,2,3,10,7,11]),import.meta.url)],je=[],Ne={"/":[2]},ke={handleError:(({error:l})=>{console.error(l)}),reroute:(()=>{}),transport:{}},Re=Object.fromEntries(Object.entries(ke.transport).map(([l,e])=>[l,e.decode])),De=!1,Ie=(l,e)=>Re[l](e);export{Ie as decode,Re as decoders,Ne as dictionary,De as hash,ke as hooks,Ce as matchers,Te as nodes,Le as root,je as server_loads}; diff --git a/server/playground/_app/immutable/entry/start.DAIBqtaT.js b/server/playground/_app/immutable/entry/start.DAIBqtaT.js new file mode 100644 index 0000000..0b32865 --- /dev/null +++ b/server/playground/_app/immutable/entry/start.DAIBqtaT.js @@ -0,0 +1 @@ +import{l as o,a as r}from"../chunks/BsPC8ki2.js";export{o as load_css,r as start}; diff --git a/server/playground/_app/immutable/entry/start.EQIbokgB.js b/server/playground/_app/immutable/entry/start.EQIbokgB.js deleted file mode 100644 index 5f4a47b..0000000 --- a/server/playground/_app/immutable/entry/start.EQIbokgB.js +++ /dev/null @@ -1 +0,0 @@ -import{l as o,a as r}from"../chunks/BXzq9L9X.js";export{o as load_css,r as start}; diff --git a/server/playground/_app/immutable/nodes/0.BxuPCyXV.js b/server/playground/_app/immutable/nodes/0.BxuPCyXV.js new file mode 100644 index 0000000..0de6e94 --- /dev/null +++ b/server/playground/_app/immutable/nodes/0.BxuPCyXV.js @@ -0,0 +1 @@ +import"../chunks/DsnmJJEf.js";import{i as c,j as p,k as a,s as m,l as r,w as _,$ as f,n as u,t as d,m as v,o as g}from"../chunks/bc36GTfJ.js";import{s as h,f as y}from"../chunks/DyOAiIET.js";const b=!0,$=Object.freeze(Object.defineProperty({__proto__:null,prerender:b},Symbol.toStringTag,{value:"Module"}));var j=_(g(' Marka Playground + + + + Marka Playground -
logo

Marka

Bidirectional Markdown ↔ JSON Parser

Template

Define your mapping schema

Loading editor...

Markdown

Your source content

Loading editor...

---
+		
logo

Marka

Bidirectional Markdown ↔ JSON Parser

Template

Define your mapping schema

Loading editor...

Markdown

Your source content

Loading editor...

---
 _type: Recipe
 author.name: Max Richter
 ---
@@ -39,7 +39,7 @@ My favourite baguette recipe