mongoku 2.9.0 → 2.9.1-compat
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/_app/immutable/chunks/{-jLNyJzC.js → BtrFC32o.js} +1 -1
- package/build/client/_app/immutable/chunks/BtrFC32o.js.br +0 -0
- package/build/client/_app/immutable/chunks/BtrFC32o.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{B-0CauNF.js → Bvp6z6Bu.js} +1 -1
- package/build/client/_app/immutable/chunks/Bvp6z6Bu.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bvp6z6Bu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CWVg1wU_.js → Cu-tLR1_.js} +1 -1
- package/build/client/_app/immutable/chunks/Cu-tLR1_.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cu-tLR1_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CzuLYUff.js → D3xW5W1R.js} +1 -1
- package/build/client/_app/immutable/chunks/D3xW5W1R.js.br +0 -0
- package/build/client/_app/immutable/chunks/D3xW5W1R.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DkIGOVHS.js → DrPQfDZ-.js} +3 -3
- package/build/client/_app/immutable/chunks/DrPQfDZ-.js.br +0 -0
- package/build/client/_app/immutable/chunks/DrPQfDZ-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BfsQcfVI.js → DrtXdCLj.js} +1 -1
- package/build/client/_app/immutable/chunks/DrtXdCLj.js.br +0 -0
- package/build/client/_app/immutable/chunks/DrtXdCLj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DaDQ7m8i.js → M7xXAz11.js} +1 -1
- package/build/client/_app/immutable/chunks/M7xXAz11.js.br +0 -0
- package/build/client/_app/immutable/chunks/M7xXAz11.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.DKM881FC.js → app.D53IyZWw.js} +2 -2
- package/build/client/_app/immutable/entry/app.D53IyZWw.js.br +0 -0
- package/build/client/_app/immutable/entry/app.D53IyZWw.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.qepIj9da.js +1 -0
- package/build/client/_app/immutable/entry/start.qepIj9da.js.br +0 -0
- package/build/client/_app/immutable/entry/start.qepIj9da.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.xAEfnyVv.js → 0.BL7TMPPi.js} +1 -1
- package/build/client/_app/immutable/nodes/0.BL7TMPPi.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.BL7TMPPi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.DJI4SFHI.js → 1.CTBYzGKt.js} +1 -1
- package/build/client/_app/immutable/nodes/1.CTBYzGKt.js.br +1 -0
- package/build/client/_app/immutable/nodes/1.CTBYzGKt.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{10.B9mmyl9C.js → 10.DOQ06EqG.js} +1 -1
- package/build/client/_app/immutable/nodes/10.DOQ06EqG.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.DOQ06EqG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{11.BJVYZRNF.js → 11.8UKinR20.js} +1 -1
- package/build/client/_app/immutable/nodes/11.8UKinR20.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.8UKinR20.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{12.BIVbh2K8.js → 12.Cp1TzJGD.js} +1 -1
- package/build/client/_app/immutable/nodes/12.Cp1TzJGD.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.Cp1TzJGD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{13.CuqM9sa_.js → 13.DJk7f5Wt.js} +1 -1
- package/build/client/_app/immutable/nodes/13.DJk7f5Wt.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.DJk7f5Wt.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{14.Cku4UiID.js → 14.L0J66m5h.js} +1 -1
- package/build/client/_app/immutable/nodes/14.L0J66m5h.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.L0J66m5h.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{15.CFozZIMA.js → 15.DoVYKrQu.js} +1 -1
- package/build/client/_app/immutable/nodes/15.DoVYKrQu.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.DoVYKrQu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.B2HL850y.js → 7.BC-w3dx8.js} +1 -1
- package/build/client/_app/immutable/nodes/7.BC-w3dx8.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.BC-w3dx8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{8.R4oSBMsW.js → 8.yw2G-HbQ.js} +1 -1
- package/build/client/_app/immutable/nodes/8.yw2G-HbQ.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.yw2G-HbQ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.gCKAeDLD.js → 9.D_HUN6pQ.js} +1 -1
- package/build/client/_app/immutable/nodes/9.D_HUN6pQ.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.D_HUN6pQ.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/server/chunks/{0-DHpbgO4k.js → 0-BXdGWxop.js} +2 -2
- package/build/server/chunks/{0-DHpbgO4k.js.map → 0-BXdGWxop.js.map} +1 -1
- package/build/server/chunks/{1-qCdcNckL.js → 1-Dnck8WkB.js} +2 -2
- package/build/server/chunks/{1-qCdcNckL.js.map → 1-Dnck8WkB.js.map} +1 -1
- package/build/server/chunks/{10-DADbl5RU.js → 10-Db7oDsJU.js} +3 -3
- package/build/server/chunks/{10-DADbl5RU.js.map → 10-Db7oDsJU.js.map} +1 -1
- package/build/server/chunks/{11-B5XzpQJ2.js → 11-BXMtwJvM.js} +3 -3
- package/build/server/chunks/{11-B5XzpQJ2.js.map → 11-BXMtwJvM.js.map} +1 -1
- package/build/server/chunks/{12-DvEgVREo.js → 12-yusA1c7P.js} +3 -3
- package/build/server/chunks/{12-DvEgVREo.js.map → 12-yusA1c7P.js.map} +1 -1
- package/build/server/chunks/{13-BhmqzR8h.js → 13-mZMPZGuP.js} +3 -3
- package/build/server/chunks/{13-BhmqzR8h.js.map → 13-mZMPZGuP.js.map} +1 -1
- package/build/server/chunks/{14-BfgW3WwW.js → 14-iFYQmaoD.js} +3 -3
- package/build/server/chunks/{14-BfgW3WwW.js.map → 14-iFYQmaoD.js.map} +1 -1
- package/build/server/chunks/{15-EvY9zrFS.js → 15-PVltpGyS.js} +3 -3
- package/build/server/chunks/{15-EvY9zrFS.js.map → 15-PVltpGyS.js.map} +1 -1
- package/build/server/chunks/{7-DVs6miRk.js → 7-6lvt7llz.js} +2 -2
- package/build/server/chunks/{7-DVs6miRk.js.map → 7-6lvt7llz.js.map} +1 -1
- package/build/server/chunks/{8-DsmWMnBl.js → 8-CnTcxnLC.js} +3 -3
- package/build/server/chunks/{8-DsmWMnBl.js.map → 8-CnTcxnLC.js.map} +1 -1
- package/build/server/chunks/{9-DOuKepr0.js → 9-B-t9ZIZj.js} +3 -3
- package/build/server/chunks/{9-DOuKepr0.js.map → 9-B-t9ZIZj.js.map} +1 -1
- package/build/server/chunks/{PrettyJson-0NvyC3vB.js → PrettyJson-Bo4UtQ1o.js} +2 -2
- package/build/server/chunks/{PrettyJson-0NvyC3vB.js.map → PrettyJson-Bo4UtQ1o.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-CM6QtCvm.js → _page.svelte-BUVlE8PS.js} +2 -2
- package/build/server/chunks/{_page.svelte-CM6QtCvm.js.map → _page.svelte-BUVlE8PS.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-BS4_Zesn.js → _page.svelte-BeiSosXN.js} +2 -2
- package/build/server/chunks/{_page.svelte-BS4_Zesn.js.map → _page.svelte-BeiSosXN.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-BPcsZPKb.js → _page.svelte-CPcgVZQj.js} +3 -3
- package/build/server/chunks/{_page.svelte-BPcsZPKb.js.map → _page.svelte-CPcgVZQj.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-Cai_1P5J.js → _page.svelte-C_GX0K8M.js} +3 -3
- package/build/server/chunks/{_page.svelte-Cai_1P5J.js.map → _page.svelte-C_GX0K8M.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-yY_cbSNt.js → _page.svelte-CkZUu9Wh.js} +2 -2
- package/build/server/chunks/{_page.svelte-yY_cbSNt.js.map → _page.svelte-CkZUu9Wh.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-Bx5MBXSd.js → _page.svelte-DCjMw3a0.js} +2 -2
- package/build/server/chunks/{_page.svelte-Bx5MBXSd.js.map → _page.svelte-DCjMw3a0.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-Cy0ShxWk.js → _page.svelte-e5wWk327.js} +3 -3
- package/build/server/chunks/{_page.svelte-Cy0ShxWk.js.map → _page.svelte-e5wWk327.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-DFg9NEZU.js → _page.svelte-zD7qndty.js} +2 -2
- package/build/server/chunks/{_page.svelte-DFg9NEZU.js.map → _page.svelte-zD7qndty.js.map} +1 -1
- package/build/server/chunks/{remote-xxtqbu-CmaCzxbq.js → remote-xxtqbu-CDChJkWc.js} +2 -2
- package/build/server/chunks/remote-xxtqbu-CDChJkWc.js.map +1 -0
- package/build/server/chunks/{servers.remote-W2x65uTK.js → servers.remote-CGenkEHX.js} +2 -2
- package/build/server/chunks/servers.remote-CGenkEHX.js.map +1 -0
- package/build/server/index.js +1 -1
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +13 -13
- package/build/server/manifest.js.map +1 -1
- package/package.json +1 -1
- package/src/api/servers.remote.ts +2 -2
- package/build/client/_app/immutable/chunks/-jLNyJzC.js.br +0 -0
- package/build/client/_app/immutable/chunks/-jLNyJzC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B-0CauNF.js.br +0 -0
- package/build/client/_app/immutable/chunks/B-0CauNF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BfsQcfVI.js.br +0 -0
- package/build/client/_app/immutable/chunks/BfsQcfVI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CWVg1wU_.js.br +0 -0
- package/build/client/_app/immutable/chunks/CWVg1wU_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CzuLYUff.js.br +0 -0
- package/build/client/_app/immutable/chunks/CzuLYUff.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DaDQ7m8i.js.br +0 -0
- package/build/client/_app/immutable/chunks/DaDQ7m8i.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DkIGOVHS.js.br +0 -0
- package/build/client/_app/immutable/chunks/DkIGOVHS.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.DKM881FC.js.br +0 -0
- package/build/client/_app/immutable/entry/app.DKM881FC.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BMV36X_I.js +0 -1
- package/build/client/_app/immutable/entry/start.BMV36X_I.js.br +0 -0
- package/build/client/_app/immutable/entry/start.BMV36X_I.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.xAEfnyVv.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.xAEfnyVv.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.DJI4SFHI.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.DJI4SFHI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.B9mmyl9C.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.B9mmyl9C.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.BJVYZRNF.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.BJVYZRNF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.BIVbh2K8.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.BIVbh2K8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.CuqM9sa_.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.CuqM9sa_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.Cku4UiID.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.Cku4UiID.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.CFozZIMA.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.CFozZIMA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.B2HL850y.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.B2HL850y.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.R4oSBMsW.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.R4oSBMsW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.gCKAeDLD.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.gCKAeDLD.js.gz +0 -0
- package/build/server/chunks/remote-xxtqbu-CmaCzxbq.js.map +0 -1
- package/build/server/chunks/servers.remote-W2x65uTK.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as A}from"./D1_vCvEb.js";import{e as w,aa as q,b as f,g as d,d as h}from"./ogOVEqzG.js";const p=[];function T(e,t=w){let r=null;const n=new Set;function s(a){if(q(e,a)&&(e=a,r)){const i=!p.length;for(const c of n)c[1](),p.push(c,e);if(i){for(let c=0;c<p.length;c+=2)p[c][0](p[c+1]);p.length=0}}}function
|
|
1
|
+
import{o as A}from"./D1_vCvEb.js";import{e as w,aa as q,b as f,g as d,d as h}from"./ogOVEqzG.js";const p=[];function T(e,t=w){let r=null;const n=new Set;function s(a){if(q(e,a)&&(e=a,r)){const i=!p.length;for(const c of n)c[1](),p.push(c,e);if(i){for(let c=0;c<p.length;c+=2)p[c][0](p[c+1]);p.length=0}}}function l(a){s(a(e))}function o(a,i=w){const c=[a,i];return n.add(c),n.size===1&&(r=t(s,l)||w),a(e),()=>{n.delete(c),n.size===0&&r&&(r(),r=null)}}return{set:s,update:l,subscribe:o}}new URL("sveltekit-internal://");function ee(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function te(e){return e.split("%25").map(decodeURI).join("%25")}function ne(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function re({href:e}){return e.split("#")[0]}function se(e,t,r,n=!1){const s=new URL(e);Object.defineProperty(s,"searchParams",{value:new Proxy(s.searchParams,{get(o,a){if(a==="get"||a==="getAll"||a==="has")return(c,...u)=>(r(c),o[a](c,...u));t();const i=Reflect.get(o,a);return typeof i=="function"?i.bind(o):i}}),enumerable:!0,configurable:!0});const l=["href","pathname","search","toString","toJSON"];n&&l.push("hash");for(const o of l)Object.defineProperty(s,o,{get(){return t(),e[o]},enumerable:!0,configurable:!0});return s}function z(){}function W(...e){let t=5381;for(const r of e)if(typeof r=="string"){let n=r.length;for(;n;)t=t*33^r.charCodeAt(--n)}else if(ArrayBuffer.isView(r)){const n=new Uint8Array(r.buffer,r.byteOffset,r.byteLength);let s=n.length;for(;s;)t=t*33^n[--s]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}const ae=new TextEncoder;function oe(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function G(e){const t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}const V=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&b.delete(R(e)),V(e,t));const b=new Map;function ie(e,t){const r=R(e,t),n=document.querySelector(r);if(n?.textContent){n.remove();let{body:s,...l}=JSON.parse(n.textContent);const o=n.getAttribute("data-ttl");return o&&b.set(r,{body:s,init:l,ttl:1e3*Number(o)}),n.getAttribute("data-b64")!==null&&(s=G(s)),Promise.resolve(new Response(s,l))}return window.fetch(e,t)}function ce(e,t,r){if(b.size>0){const n=R(e,r),s=b.get(n);if(s){if(performance.now()<s.ttl&&["default","force-cache","only-if-cached",void 0].includes(r?.cache))return new Response(s.body,s.init);b.delete(n)}}return window.fetch(t,r)}function R(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const s=[];t.headers&&s.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&s.push(t.body),n+=`[data-hash="${W(...s)}"]`}return n}const Y=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function le(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${U(e).map(n=>{const s=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(n);if(s)return t.push({name:s[1],matcher:s[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const l=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(n);if(l)return t.push({name:l[1],matcher:l[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!n)return;const o=n.split(/\[(.+?)\](?!\])/);return"/"+o.map((i,c)=>{if(c%2){if(i.startsWith("x+"))return v(String.fromCharCode(parseInt(i.slice(2),16)));if(i.startsWith("u+"))return v(String.fromCharCode(...i.slice(2).split("-").map(j=>parseInt(j,16))));const u=Y.exec(i),[,_,m,L,P]=u;return t.push({name:L,matcher:P,optional:!!_,rest:!!m,chained:m?c===1&&o[0]==="":!1}),m?"([^]*?)":_?"([^/]*)?":"([^/]+?)"}return v(i)}).join("")}).join("")}/?$`),params:t}}function B(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function U(e){return e.slice(1).split("/").filter(B)}function ue(e,t,r){const n={},s=e.slice(1),l=s.filter(a=>a!==void 0);let o=0;for(let a=0;a<t.length;a+=1){const i=t[a];let c=s[a-o];if(i.chained&&i.rest&&o&&(c=s.slice(a-o,a+1).filter(u=>u).join("/"),o=0),c===void 0)if(i.rest)c="";else continue;if(!i.matcher||r[i.matcher](c)){n[i.name]=c;const u=t[a+1],_=s[a+1];u&&!u.rest&&u.optional&&_&&i.chained&&(o=0),!u&&!_&&Object.keys(n).length===l.length&&(o=0);continue}if(i.optional&&i.chained){o++;continue}return}if(!o)return n}function v(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}const D=/\[(\[)?(\.\.\.)?(\w+?)(?:=(\w+))?\]\]?/g;function fe(e,t){const r=U(e),n=e!="/"&&e.endsWith("/");return"/"+r.map(s=>s.replace(D,(l,o,a,i)=>{const c=t[i];if(!c){if(o||a&&c!==void 0)return"";throw new Error(`Missing parameter '${i}' in route ${e}`)}if(c.startsWith("/")||c.endsWith("/"))throw new Error(`Parameter '${i}' in route ${e} cannot start or end with a slash -- this would cause an invalid route like foo//bar`);return c})).filter(Boolean).join("/")+(n?"/":"")}const H=globalThis.__sveltekit_1bmp53z?.base??"",K=globalThis.__sveltekit_1bmp53z?.assets??H??"",de="_app",F="1780007798063",he="sveltekit:snapshot",pe="sveltekit:scroll",ge="sveltekit:states",_e="sveltekit:pageurl",be="sveltekit:history",me="sveltekit:navigation",$={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},O=location.origin;function we(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const r=document.getElementsByTagName("base");t=r.length?r[0].href:document.URL}return new URL(e,t)}function ve(){return{x:pageXOffset,y:pageYOffset}}function g(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const E={...$,"":$.hover};function I(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function ye(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=I(e)}}function Se(e,t,r){let n;try{if(n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),r&&n.hash.match(/^#[^/]/)){const a=location.hash.split("#")[1]||"/";n.hash=`#${a}${n.hash}`}}catch{}const s=e instanceof SVGAElement?e.target.baseVal:e.target,l=!n||!!s||J(n,t,r)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=n?.origin===O&&e.hasAttribute("download");return{url:n,external:l,target:s,download:o}}function Re(e){let t=null,r=null,n=null,s=null,l=null,o=null,a=e;for(;a&&a!==document.documentElement;)n===null&&(n=g(a,"preload-code")),s===null&&(s=g(a,"preload-data")),t===null&&(t=g(a,"keepfocus")),r===null&&(r=g(a,"noscroll")),l===null&&(l=g(a,"reload")),o===null&&(o=g(a,"replacestate")),a=I(a);function i(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:E[n??"off"],preload_data:E[s??"off"],keepfocus:i(t),noscroll:i(r),reload:i(l),replace_state:i(o)}}function Ae(e){const t=T(e);let r=!0;function n(){r=!0,t.update(o=>o)}function s(o){r=!1,t.set(o)}function l(o){let a;return t.subscribe(i=>{(a===void 0||r&&i!==a)&&o(a=i)})}return{notify:n,set:s,subscribe:l}}const C={v:z};function $e(){const{set:e,subscribe:t}=T(!1);let r;async function n(){clearTimeout(r);try{const s=await fetch(`${K}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!s.ok)return!1;const o=(await s.json()).version!==F;return o&&(e(!0),C.v(),clearTimeout(r)),o}catch{return!1}}return{subscribe:t,check:n}}function J(e,t,r){return e.origin!==O||!e.pathname.startsWith(t)?!0:r?e.pathname!==location.pathname:!1}function Ee(e){}const N=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...N];const M=new Set([...N]);[...M];let S,k,y;const X=A.toString().includes("$$")||/function \w+\(\) \{\}/.test(A.toString()),x="a:";X?(S={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(x)},k={current:null},y={current:!1}):(S=new class{#e=f({});get data(){return d(this.#e)}set data(t){h(this.#e,t)}#t=f(null);get form(){return d(this.#t)}set form(t){h(this.#t,t)}#n=f(null);get error(){return d(this.#n)}set error(t){h(this.#n,t)}#r=f({});get params(){return d(this.#r)}set params(t){h(this.#r,t)}#s=f({id:null});get route(){return d(this.#s)}set route(t){h(this.#s,t)}#a=f({});get state(){return d(this.#a)}set state(t){h(this.#a,t)}#o=f(-1);get status(){return d(this.#o)}set status(t){h(this.#o,t)}#i=f(new URL(x));get url(){return d(this.#i)}set url(t){h(this.#i,t)}},k=new class{#e=f(null);get current(){return d(this.#e)}set current(t){h(this.#e,t)}},y=new class{#e=f(!1);get current(){return d(this.#e)}set current(t){h(this.#e,t)}},C.v=()=>y.current=!0);function Ue(e){Object.assign(S,e)}export{$ as A,te as B,he as C,ce as D,ie as E,pe as F,Ee as G,be as H,me as N,_e as P,ge as S,k as a,H as b,de as c,le as d,ue as e,oe as f,$e as g,we as h,J as i,ye as j,Se as k,Re as l,re as m,z as n,Ae as o,S as p,ne as q,fe as r,ve as s,ae as t,se as u,F as v,T as w,ee as x,O as y,Ue as z};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ab as d,ac as v,ad as h,ae as l,z as c,af as A,ag as f,ah as T,Z as p,ai as E}from"./ogOVEqzG.js";import{b as S,r as g}from"
|
|
1
|
+
import{ab as d,ac as v,ad as h,ae as l,z as c,af as A,ag as f,ah as T,Z as p,ai as E}from"./ogOVEqzG.js";import{b as S,r as g}from"./BtrFC32o.js";const m=Symbol("is custom element"),L=Symbol("is html"),R=f?"link":"LINK",I=f?"progress":"PROGRESS";function y(r){if(c){var e=!1,s=()=>{if(!e){if(e=!0,r.hasAttribute("value")){var o=r.value;n(r,"value",null),r.value=o}if(r.hasAttribute("checked")){var a=r.checked;n(r,"checked",null),r.checked=a}}};r[T]=s,p(s),E()}}function C(r,e){var s=_(r);s.value===(s.value=e??void 0)||r.value===e&&(e!==0||r.nodeName!==I)||(r.value=e??"")}function n(r,e,s,o){var a=_(r);c&&(a[e]=r.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&r.nodeName===R)||a[e]!==(a[e]=s)&&(e==="loading"&&(r[d]=s),s==null?r.removeAttribute(e):typeof s!="string"&&M(r).includes(e)?r[e]=s:r.setAttribute(e,s))}function _(r){return r[v]??={[m]:r.nodeName.includes("-"),[L]:r.namespaceURI===h}}var i=new Map;function M(r){var e=r.getAttribute("is")||r.nodeName,s=i.get(e);if(s)return s;i.set(e,s=[]);for(var o,a=r,u=Element.prototype;u!==a;){o=A(a);for(var t in o)o[t].set&&t!=="innerHTML"&&t!=="textContent"&&t!=="innerText"&&s.push(t);a=l(a)}return s}const N="";function H(...r){if(!r[0].startsWith("/"))throw new Error(`Cannot use \`resolve(...)\` with a non-absolute pathname or route ID (got "${r[0]}"). \`resolve\` is only for internal pathnames and route IDs; external URLs should be used directly.`);return S+N+g(r[0],r[1])}export{y as a,C as b,H as r,n as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as Xe,a as s,c as ce,f as v,t as xe}from"./DjUt71lH.js";import{t as m,p as Ye,b as ve,a8 as Ze,f as ee,a as Ve,g as t,u as S,s as w,c as o,r as i,d as X,n as _e}from"./ogOVEqzG.js";import{d as $e,s as y,e as Oe,a as Me}from"./wZ9dd4xr.js";import{p as me,i as q}from"./DIjqwnsi.js";import{s as Te,c as ea,e as Ce,i as Pe}from"./BaCQ7DA8.js";import{s as je,r as aa}from"./
|
|
1
|
+
import{b as Xe,a as s,c as ce,f as v,t as xe}from"./DjUt71lH.js";import{t as m,p as Ye,b as ve,a8 as Ze,f as ee,a as Ve,g as t,u as S,s as w,c as o,r as i,d as X,n as _e}from"./ogOVEqzG.js";import{d as $e,s as y,e as Oe,a as Me}from"./wZ9dd4xr.js";import{p as me,i as q}from"./DIjqwnsi.js";import{s as Te,c as ea,e as Ce,i as Pe}from"./BaCQ7DA8.js";import{s as je,r as aa}from"./Bvp6z6Bu.js";import{T as ta}from"./Cl89kjea.js";function na(l){const e=l.match(/^(\s*)/);return e?e[1]:""}function ra(l,e,n,a,c){return l.ctrlKey||l.altKey||l.metaKey||a!==c||!["}","]",")",'"',"'","`"].includes(l.key)||n[a]!==l.key?!1:(l.preventDefault(),requestAnimationFrame(()=>{e.setSelectionRange(a+1,a+1)}),!0)}function sa(l,e,n,a,c){if(l.ctrlKey||l.altKey||l.metaKey)return!1;const f={"{":"}","[":"]","(":")",'"':'"',"'":"'","`":"`"}[l.key];if(!f)return!1;if(l.preventDefault(),a!==c){const D=n.substring(a,c),h=n.substring(0,a)+l.key+D+f+n.substring(c);return e.value=h,e.dispatchEvent(new Event("input",{bubbles:!0})),requestAnimationFrame(()=>{e.setSelectionRange(a+1,c+1)}),!0}const k=n.substring(0,a)+l.key+f+n.substring(c);return e.value=k,e.dispatchEvent(new Event("input",{bubbles:!0})),requestAnimationFrame(()=>{e.setSelectionRange(a+1,a+1)}),!0}function la(l,e,n,a){if(n===a){const _=e.lastIndexOf(`
|
|
2
2
|
`,n-1)+1,H=e.substring(_,n).match(/^(\s*)/)?.[1]||"";if(H.length===0)return;let L=1;H.startsWith(" ")?L=1:H.startsWith(" ")?L=2:H.startsWith(" ")&&(L=1);const W=e.substring(0,_)+e.substring(_+L);l.value=W,l.dispatchEvent(new Event("input",{bubbles:!0})),requestAnimationFrame(()=>{l.setSelectionRange(n-L,n-L)});return}const c=e.substring(0,n),p=e.substring(a),f=c.lastIndexOf(`
|
|
3
3
|
`)+1,h=e.substring(f,a).split(`
|
|
4
4
|
`).map(_=>{const E=_.match(/^(\s*)/)?.[1]||"";return E.length===0?_:E.startsWith(" ")?_.substring(1):E.startsWith(" ")?_.substring(2):E.startsWith(" ")?_.substring(1):_}),x=e.substring(0,f)+h.join(`
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as r}from"
|
|
1
|
+
import{p as r}from"./BtrFC32o.js";import{s as t}from"./DrPQfDZ-.js";const e={get data(){return r.data},get error(){return r.error},get params(){return r.params},get status(){return r.status},get url(){return r.url}};t.updated.check;const p=e;export{p};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{v as Mt,z as qt,bp as Ft,x as Ht,w as ce,bq as
|
|
2
|
-
`:return"\\n";case"\r":return"\\r";case" ":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return e<" "?`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`:""}}function D(e){let t="",r=0;const a=e.length;for(let o=0;o<a;o+=1){const l=e[o],n=cr(l);n&&(t+=e.slice(r,o)+n,r=o+1)}return`"${r===0?e:t+e.slice(r)}"`}function lr(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)}const fr=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function tt(e){return fr.test(e)?"."+e:"["+JSON.stringify(e)+"]"}function mt(e){return!(!Number.isInteger(e)||e<0||e>Re)}function ur(e){return!(!Number.isInteger(e)||e<0||e>yt)}function dr(e){if(e.length===0||e.length>1&&e.charCodeAt(0)===48)return!1;for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);if(r<48||r>57)return!1}return mt(+e)}function pr(e){const t=Object.keys(e);for(var r=t.length-1;r>=0&&!dr(t[r]);r--);return t.length=r+1,t}function hr(e){return new Uint8Array(e).toBase64()}function _r(e){return Uint8Array.fromBase64(e).buffer}function yr(e){return Buffer.from(e).toString("base64")}function mr(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function gr(e){const t=new Uint8Array(e);let r="";const a=32768;for(let o=0;o<t.length;o+=a){const l=t.subarray(o,o+a);r+=String.fromCharCode.apply(null,l)}return btoa(r)}function wr(e){const t=atob(e),r=t.length,a=new Uint8Array(r);for(let o=0;o<r;o++)a[o]=t.charCodeAt(o);return a.buffer}const gt=typeof Uint8Array.fromBase64=="function",wt=typeof process=="object"&&process.versions?.node!==void 0,vr=gt?hr:wt?yr:gr,br=gt?_r:wt?mr:wr;function en(e,t){return vt(JSON.parse(e),t)}function vt(e,t){if(typeof e=="number")return l(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const r=e,a=Array(r.length);let o=null;function l(n,i=!1){if(n===qe)return;if(n===dt)return NaN;if(n===pt)return 1/0;if(n===ht)return-1/0;if(n===Fe)return-0;if(i||typeof n!="number")throw new Error("Invalid input");if(n in a)return a[n];const s=r[n];if(!s||typeof s!="object")a[n]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const u=s[0],c=t&&Object.hasOwn(t,u)?t[u]:void 0;if(c){let p=s[1];if(typeof p!="number"&&(p=r.push(s[1])-1),o??=new Set,o.has(p))throw new Error("Invalid circular reference");return o.add(p),a[n]=c(l(p)),o.delete(p),a[n]}switch(u){case"Date":a[n]=new Date(s[1]);break;case"Set":const p=new Set;a[n]=p;for(let d=1;d<s.length;d+=1)p.add(l(s[d]));break;case"Map":const f=new Map;a[n]=f;for(let d=1;d<s.length;d+=2)f.set(l(s[d]),l(s[d+1]));break;case"RegExp":a[n]=new RegExp(s[1],s[2]);break;case"Object":{const d=s[1];if(typeof r[d]=="object"&&r[d][0]!=="BigInt")throw new Error("Invalid input");a[n]=Object(l(d));break}case"BigInt":a[n]=BigInt(s[1]);break;case"null":const h=Object.create(null);a[n]=h;for(let d=1;d<s.length;d+=2){if(s[d]==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");h[s[d]]=l(s[d+1])}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(r[s[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const d=globalThis[u],y=l(s[1]);a[n]=s[2]!==void 0?new d(y,s[2],s[3]):new d(y);break}case"ArrayBuffer":{const d=s[1];if(typeof d!="string")throw new Error("Invalid ArrayBuffer encoding");const y=br(d);a[n]=y;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const d=u.slice(9);a[n]=Temporal[d].from(s[1]);break}case"URL":{const d=new URL(s[1]);a[n]=d;break}case"URLSearchParams":{const d=new URLSearchParams(s[1]);a[n]=d;break}default:throw new Error(`Unknown type ${u}`)}}else if(s[0]===_t){const u=s[1];if(!ur(u))throw new Error("Invalid input");const c=[];a[n]=c,c[Re]=void 0,delete c[Re];for(let p=2;p<s.length;p+=2){const f=s[p];if(!mt(f)||f>=u)throw new Error("Invalid input");c[f]=l(s[p+1])}c.length=u}else{const u=new Array(s.length);a[n]=u;for(let c=0;c<s.length;c+=1){const p=s[c];p!==Pe&&(u[c]=l(p))}}else{const u={};a[n]=u;for(const c of Object.keys(s)){if(c==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const p=s[c];u[c]=l(p)}}return a[n]}return l(0)}function bt(e,t){const r=kr(!1,e,t);return typeof r=="string"?r:`[${r.join(",")}]`}function kr(e,t,r){const a=[],o=new Map,l=[];if(r)for(const c of Object.getOwnPropertyNames(r))l.push({key:c,fn:r[c]});const n=[];let i=0;function s(c,p){if(c===void 0)return qe;if(Number.isNaN(c))return dt;if(c===1/0)return pt;if(c===-1/0)return ht;if(c===0&&1/c<0)return Fe;if(o.has(c))return o.get(c);p??=i++,o.set(c,p);for(const{key:h,fn:d}of l){const y=d(c);if(y)return a[p]=`["${h}",${s(y)}]`,p}if(typeof c=="function")throw new M("Cannot stringify a function",n,c,t);if(typeof c=="symbol")throw new M("Cannot stringify a Symbol primitive",n,c,t);let f="";if(et(c))f=rt(c);else{if(typeof c.then=="function")throw new M("Cannot stringify a Promise or thenable — use stringifyAsync instead",n,c,t);{const h=ir(c);switch(h){case"Number":case"String":case"Boolean":case"BigInt":f=`["Object",${s(c.valueOf())}]`;break;case"Date":f=`["Date","${!isNaN(c.getDate())?c.toISOString():""}"]`;break;case"URL":f=`["URL",${D(c.toString())}]`;break;case"URLSearchParams":f=`["URLSearchParams",${D(c.toString())}]`;break;case"RegExp":const{source:y,flags:k}=c;f=k?`["RegExp",${D(y)},"${k}"]`:`["RegExp",${D(y)}]`;break;case"Array":{let _=!1;f="[";for(let w=0;w<c.length;w+=1)if(w>0&&(f+=","),Object.hasOwn(c,w))n.push(`[${w}]`),f+=s(c[w]),n.pop();else if(_)f+=Pe;else{const m=pr(c),v=m.length,A=String(c.length).length,O=(c.length-v)*3,b=4+A+v*(A+1);if(O>b){f="["+_t+","+c.length;for(let P=0;P<m.length;P++){const T=m[P];n.push(`[${T}]`),f+=","+T+","+s(c[T]),n.pop()}break}else _=!0,f+=Pe}f+="]";break}case"Set":f='["Set"';for(const _ of c)f+=`,${s(_)}`;f+="]";break;case"Map":f='["Map"';for(const[_,w]of c)n.push(`.get(${et(_)?rt(_):"..."})`),f+=`,${s(_)},${s(w)}`,n.pop();f+="]";break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{const _=c;f='["'+h+'",'+s(_.buffer),_.byteLength!==_.buffer.byteLength&&(f+=`,${_.byteOffset},${_.length}`),f+="]";break}case"ArrayBuffer":{f=`["ArrayBuffer","${vr(c)}"]`;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":f=`["${h}",${D(c.toString())}]`;break;default:if(!sr(c))throw new M("Cannot stringify arbitrary non-POJOs",n,c,t);if(lr(c).length>0)throw new M("Cannot stringify POJOs with symbolic keys",n,c,t);if(Object.getPrototypeOf(c)===null){f='["null"';for(const _ of Object.keys(c)){if(_==="__proto__")throw new M("Cannot stringify objects with __proto__ keys",n,c,t);n.push(tt(_)),f+=`,${D(_)},${s(c[_])}`,n.pop()}f+="]"}else{f="{";let _=!1;for(const w of Object.keys(c)){if(w==="__proto__")throw new M("Cannot stringify objects with __proto__ keys",n,c,t);_&&(f+=","),_=!0,n.push(tt(w)),f+=`${D(w)}:${s(c[w])}`,n.pop()}f+="}"}}}}return a[p]=f,p}const u=s(t);return u<0?`${u}`:a}function rt(e){const t=typeof e;return t==="string"?D(e):e===void 0?qe.toString():e===0&&1/e<0?Fe.toString():t==="bigint"?`["BigInt","${e}"]`:String(e)}function Ar(e){return e.filter(t=>t!=null)}const Er="x-sveltekit-invalidated",Sr="x-sveltekit-trailing-slash",Or=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function jr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join("\0")===Or}function Ir(e,t){const r=Object.getPrototypeOf(e)===null?Object.create(null):{};t.set(e,r),Object.defineProperty(r,At,{value:!0});for(const a of Object.keys(e).sort()){const o=e[a];Object.defineProperty(r,a,{value:t.get(o)??o,enumerable:!0,configurable:!0,writable:!0})}return r}const kt="__skrao",Pr="__skram",Rr="__skras",Tr="__skrag",At=Symbol(kt);function Ur(e,t,r){const a={[Tr]:i=>{if(i instanceof RegExp)throw new Error("Regular expressions are not valid remote function arguments")}};t&&(a[Pr]=i=>{if(!(i instanceof Map))return;const s=[];for(const[u,c]of i)s.push([n(u),n(c)]);return s.sort(([u,c],[p,f])=>u<p?-1:u>p?1:c<f?-1:c>f?1:0)},a[Rr]=i=>{if(!(i instanceof Set))return;const s=[];for(const u of i)s.push(n(u));return s.sort(),s},a[kt]=i=>{if(jr(i)&&!Object.hasOwn(i,At))return r.has(i)?r.get(i):Ir(i,r)});const l={...Object.fromEntries(Object.entries(e).map(([i,s])=>[i,s.encode])),...a},n=i=>bt(i,l);return l}function tn(e,t,r=!0){if(e===void 0)return"";const a=bt(e,Ur(t,r,new Map)),o=zt.encode(a);return Kt(o).replaceAll("=","").replaceAll("+","-").replaceAll("/","_")}function H(e,t){return e+"/"+t}function rn(e){const t=e.lastIndexOf("/");if(t===-1)throw new Error(`Invalid remote key: ${e}`);return{id:e.slice(0,t),payload:e.slice(t+1)}}function nn(e,t){if(!We)throw new Error("Remote functions require Svelte 5.44.0 or later");return We(e,t)}function fe(e){return e instanceof ve||e instanceof Me?e.status:500}function Lr(e){return e instanceof Me?e.text:"Internal Error"}const Nr="/__data.json",$r=".html__data.json";function Dr(e){return e.endsWith(".html")?e.replace(/\.html$/,$r):e.replace(/\/$/,"")+Nr}const nt={spanContext(){return xr},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}},xr={traceId:"",spanId:"",traceFlags:0};async function*Cr(e){let t=!1,r="";const a=new TextDecoder;for(;;){let o=r.indexOf(`
|
|
1
|
+
import{v as Mt,z as qt,bp as Ft,x as Ht,w as ce,bq as zt}from"./ogOVEqzG.js";import{d as Vt,e as Yt,t as Jt,f as Kt,g as Gt,H as x,N as q,h as re,P as $e,p as j,n as N,i as De,b as U,s as F,w as Xt,a as je,j as ct,k as Ie,l as le,m as Ee,S as we,o as Ze,q as Zt,u as Wt,x as Qt,y as xe,z as Ce,A as K,B as er,C as lt,D as tr,E as rr,F as ft}from"./BtrFC32o.js";import{e as nr}from"./D1_vCvEb.js";function We(e,t){if(Mt||nr(),qt){const r=window.__svelte?.h;if(r?.has(e))return r.get(e);Ft()}return t()}class ve{constructor(t,r){this.status=t,typeof r=="string"?this.body={message:r}:r?this.body=r:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Be{constructor(t,r){try{new Headers({location:r})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(r)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=r}}class Me extends Error{constructor(t,r,a){super(a),this.status=t,this.text=r}}function ar({nodes:e,server_loads:t,dictionary:r,matchers:a}){const o=new Set(t);return Object.entries(r).map(([i,[s,u,c]])=>{const{pattern:p,params:f}=Vt(i),h={id:i,exec:d=>{const y=p.exec(d);if(y)return Yt(y,f,a)},errors:[1,...c||[]].map(d=>e[d]),layouts:[0,...u||[]].map(n),leaf:l(s)};return h.errors.length=h.layouts.length=Math.max(h.errors.length,h.layouts.length),h});function l(i){const s=i<0;return s&&(i=~i),[s,e[i]]}function n(i){return i===void 0?i:[o.has(i),e[i]]}}function ut(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Qe(e,t,r=JSON.stringify){const a=r(t);try{sessionStorage[e]=a}catch{}}const qe=-1,Pe=-2,dt=-3,pt=-4,ht=-5,Fe=-6,_t=-7,yt=2**32-1,Re=yt-1;class M extends Error{constructor(t,r,a,o){super(t),this.name="DevalueError",this.path=r.join(""),this.value=a,this.root=o}}function et(e){return e===null||typeof e!="object"&&typeof e!="function"}const or=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function sr(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join("\0")===or}function ir(e){return Object.prototype.toString.call(e).slice(8,-1)}function cr(e){switch(e){case'"':return'\\"';case"<":return"\\u003C";case"\\":return"\\\\";case`
|
|
2
|
+
`:return"\\n";case"\r":return"\\r";case" ":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return e<" "?`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`:""}}function D(e){let t="",r=0;const a=e.length;for(let o=0;o<a;o+=1){const l=e[o],n=cr(l);n&&(t+=e.slice(r,o)+n,r=o+1)}return`"${r===0?e:t+e.slice(r)}"`}function lr(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)}const fr=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function tt(e){return fr.test(e)?"."+e:"["+JSON.stringify(e)+"]"}function mt(e){return!(!Number.isInteger(e)||e<0||e>Re)}function ur(e){return!(!Number.isInteger(e)||e<0||e>yt)}function dr(e){if(e.length===0||e.length>1&&e.charCodeAt(0)===48)return!1;for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);if(r<48||r>57)return!1}return mt(+e)}function pr(e){const t=Object.keys(e);for(var r=t.length-1;r>=0&&!dr(t[r]);r--);return t.length=r+1,t}function hr(e){return new Uint8Array(e).toBase64()}function _r(e){return Uint8Array.fromBase64(e).buffer}function yr(e){return Buffer.from(e).toString("base64")}function mr(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function gr(e){const t=new Uint8Array(e);let r="";const a=32768;for(let o=0;o<t.length;o+=a){const l=t.subarray(o,o+a);r+=String.fromCharCode.apply(null,l)}return btoa(r)}function wr(e){const t=atob(e),r=t.length,a=new Uint8Array(r);for(let o=0;o<r;o++)a[o]=t.charCodeAt(o);return a.buffer}const gt=typeof Uint8Array.fromBase64=="function",wt=typeof process=="object"&&process.versions?.node!==void 0,vr=gt?hr:wt?yr:gr,br=gt?_r:wt?mr:wr;function en(e,t){return vt(JSON.parse(e),t)}function vt(e,t){if(typeof e=="number")return l(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const r=e,a=Array(r.length);let o=null;function l(n,i=!1){if(n===qe)return;if(n===dt)return NaN;if(n===pt)return 1/0;if(n===ht)return-1/0;if(n===Fe)return-0;if(i||typeof n!="number")throw new Error("Invalid input");if(n in a)return a[n];const s=r[n];if(!s||typeof s!="object")a[n]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const u=s[0],c=t&&Object.hasOwn(t,u)?t[u]:void 0;if(c){let p=s[1];if(typeof p!="number"&&(p=r.push(s[1])-1),o??=new Set,o.has(p))throw new Error("Invalid circular reference");return o.add(p),a[n]=c(l(p)),o.delete(p),a[n]}switch(u){case"Date":a[n]=new Date(s[1]);break;case"Set":const p=new Set;a[n]=p;for(let d=1;d<s.length;d+=1)p.add(l(s[d]));break;case"Map":const f=new Map;a[n]=f;for(let d=1;d<s.length;d+=2)f.set(l(s[d]),l(s[d+1]));break;case"RegExp":a[n]=new RegExp(s[1],s[2]);break;case"Object":{const d=s[1];if(typeof r[d]=="object"&&r[d][0]!=="BigInt")throw new Error("Invalid input");a[n]=Object(l(d));break}case"BigInt":a[n]=BigInt(s[1]);break;case"null":const h=Object.create(null);a[n]=h;for(let d=1;d<s.length;d+=2){if(s[d]==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");h[s[d]]=l(s[d+1])}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(r[s[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const d=globalThis[u],y=l(s[1]);a[n]=s[2]!==void 0?new d(y,s[2],s[3]):new d(y);break}case"ArrayBuffer":{const d=s[1];if(typeof d!="string")throw new Error("Invalid ArrayBuffer encoding");const y=br(d);a[n]=y;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const d=u.slice(9);a[n]=Temporal[d].from(s[1]);break}case"URL":{const d=new URL(s[1]);a[n]=d;break}case"URLSearchParams":{const d=new URLSearchParams(s[1]);a[n]=d;break}default:throw new Error(`Unknown type ${u}`)}}else if(s[0]===_t){const u=s[1];if(!ur(u))throw new Error("Invalid input");const c=[];a[n]=c,c[Re]=void 0,delete c[Re];for(let p=2;p<s.length;p+=2){const f=s[p];if(!mt(f)||f>=u)throw new Error("Invalid input");c[f]=l(s[p+1])}c.length=u}else{const u=new Array(s.length);a[n]=u;for(let c=0;c<s.length;c+=1){const p=s[c];p!==Pe&&(u[c]=l(p))}}else{const u={};a[n]=u;for(const c of Object.keys(s)){if(c==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const p=s[c];u[c]=l(p)}}return a[n]}return l(0)}function bt(e,t){const r=kr(!1,e,t);return typeof r=="string"?r:`[${r.join(",")}]`}function kr(e,t,r){const a=[],o=new Map,l=[];if(r)for(const c of Object.getOwnPropertyNames(r))l.push({key:c,fn:r[c]});const n=[];let i=0;function s(c,p){if(c===void 0)return qe;if(Number.isNaN(c))return dt;if(c===1/0)return pt;if(c===-1/0)return ht;if(c===0&&1/c<0)return Fe;if(o.has(c))return o.get(c);p??=i++,o.set(c,p);for(const{key:h,fn:d}of l){const y=d(c);if(y)return a[p]=`["${h}",${s(y)}]`,p}if(typeof c=="function")throw new M("Cannot stringify a function",n,c,t);if(typeof c=="symbol")throw new M("Cannot stringify a Symbol primitive",n,c,t);let f="";if(et(c))f=rt(c);else{if(typeof c.then=="function")throw new M("Cannot stringify a Promise or thenable — use stringifyAsync instead",n,c,t);{const h=ir(c);switch(h){case"Number":case"String":case"Boolean":case"BigInt":f=`["Object",${s(c.valueOf())}]`;break;case"Date":f=`["Date","${!isNaN(c.getDate())?c.toISOString():""}"]`;break;case"URL":f=`["URL",${D(c.toString())}]`;break;case"URLSearchParams":f=`["URLSearchParams",${D(c.toString())}]`;break;case"RegExp":const{source:y,flags:k}=c;f=k?`["RegExp",${D(y)},"${k}"]`:`["RegExp",${D(y)}]`;break;case"Array":{let _=!1;f="[";for(let w=0;w<c.length;w+=1)if(w>0&&(f+=","),Object.hasOwn(c,w))n.push(`[${w}]`),f+=s(c[w]),n.pop();else if(_)f+=Pe;else{const m=pr(c),v=m.length,A=String(c.length).length,O=(c.length-v)*3,b=4+A+v*(A+1);if(O>b){f="["+_t+","+c.length;for(let P=0;P<m.length;P++){const T=m[P];n.push(`[${T}]`),f+=","+T+","+s(c[T]),n.pop()}break}else _=!0,f+=Pe}f+="]";break}case"Set":f='["Set"';for(const _ of c)f+=`,${s(_)}`;f+="]";break;case"Map":f='["Map"';for(const[_,w]of c)n.push(`.get(${et(_)?rt(_):"..."})`),f+=`,${s(_)},${s(w)}`,n.pop();f+="]";break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{const _=c;f='["'+h+'",'+s(_.buffer),_.byteLength!==_.buffer.byteLength&&(f+=`,${_.byteOffset},${_.length}`),f+="]";break}case"ArrayBuffer":{f=`["ArrayBuffer","${vr(c)}"]`;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":f=`["${h}",${D(c.toString())}]`;break;default:if(!sr(c))throw new M("Cannot stringify arbitrary non-POJOs",n,c,t);if(lr(c).length>0)throw new M("Cannot stringify POJOs with symbolic keys",n,c,t);if(Object.getPrototypeOf(c)===null){f='["null"';for(const _ of Object.keys(c)){if(_==="__proto__")throw new M("Cannot stringify objects with __proto__ keys",n,c,t);n.push(tt(_)),f+=`,${D(_)},${s(c[_])}`,n.pop()}f+="]"}else{f="{";let _=!1;for(const w of Object.keys(c)){if(w==="__proto__")throw new M("Cannot stringify objects with __proto__ keys",n,c,t);_&&(f+=","),_=!0,n.push(tt(w)),f+=`${D(w)}:${s(c[w])}`,n.pop()}f+="}"}}}}return a[p]=f,p}const u=s(t);return u<0?`${u}`:a}function rt(e){const t=typeof e;return t==="string"?D(e):e===void 0?qe.toString():e===0&&1/e<0?Fe.toString():t==="bigint"?`["BigInt","${e}"]`:String(e)}function Ar(e){return e.filter(t=>t!=null)}const Er="x-sveltekit-invalidated",Sr="x-sveltekit-trailing-slash",Or=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function jr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join("\0")===Or}function Ir(e,t){const r=Object.getPrototypeOf(e)===null?Object.create(null):{};t.set(e,r),Object.defineProperty(r,At,{value:!0});for(const a of Object.keys(e).sort()){const o=e[a];Object.defineProperty(r,a,{value:t.get(o)??o,enumerable:!0,configurable:!0,writable:!0})}return r}const kt="__skrao",Pr="__skram",Rr="__skras",Tr="__skrag",At=Symbol(kt);function Ur(e,t,r){const a={[Tr]:i=>{if(i instanceof RegExp)throw new Error("Regular expressions are not valid remote function arguments")}};t&&(a[Pr]=i=>{if(!(i instanceof Map))return;const s=[];for(const[u,c]of i)s.push([n(u),n(c)]);return s.sort(([u,c],[p,f])=>u<p?-1:u>p?1:c<f?-1:c>f?1:0)},a[Rr]=i=>{if(!(i instanceof Set))return;const s=[];for(const u of i)s.push(n(u));return s.sort(),s},a[kt]=i=>{if(jr(i)&&!Object.hasOwn(i,At))return r.has(i)?r.get(i):Ir(i,r)});const l={...Object.fromEntries(Object.entries(e).map(([i,s])=>[i,s.encode])),...a},n=i=>bt(i,l);return l}function tn(e,t,r=!0){if(e===void 0)return"";const a=bt(e,Ur(t,r,new Map)),o=Jt.encode(a);return Kt(o).replaceAll("=","").replaceAll("+","-").replaceAll("/","_")}function H(e,t){return e+"/"+t}function rn(e){const t=e.lastIndexOf("/");if(t===-1)throw new Error(`Invalid remote key: ${e}`);return{id:e.slice(0,t),payload:e.slice(t+1)}}function nn(e,t){if(!We)throw new Error("Remote functions require Svelte 5.44.0 or later");return We(e,t)}function fe(e){return e instanceof ve||e instanceof Me?e.status:500}function Lr(e){return e instanceof Me?e.text:"Internal Error"}const Nr="/__data.json",$r=".html__data.json";function Dr(e){return e.endsWith(".html")?e.replace(/\.html$/,$r):e.replace(/\/$/,"")+Nr}const nt={spanContext(){return xr},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}},xr={traceId:"",spanId:"",traceFlags:0};async function*Cr(e){let t=!1,r="";const a=new TextDecoder;for(;;){let o=r.indexOf(`
|
|
3
3
|
`);for(;o!==-1;){const n=r.slice(0,o).trim();r=r.slice(o+1),n&&(yield JSON.parse(n)),o=r.indexOf(`
|
|
4
|
-
`)}if(t){const n=r.trim();n&&(yield JSON.parse(n));return}const l=await e.read();t=l.done,l.value&&(r+=a.decode(l.value,{stream:!0})),t&&(r+=a.decode())}}const Et=Ht??(e=>e()),Br=new Set(["icon","shortcut icon","apple-touch-icon"]);let G=null;const B=ut(ft)??{},Q=ut(lt)??{},C={url:Ze({}),page:Ze({}),navigating:Xt(null),updated:Gt()};function be(e){B[e]=F()}function St(e,t){let r=e+1;for(;B[r];)delete B[r],r+=1;for(r=t+1;Q[r];)delete Q[r],r+=1}function J(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(N)}async function Ot(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(U||"/");e&&await e.update()}}let He,Te,ue,$,Ue,S,jt={};const de=[],pe=[];let R=null;function ee(){R?.fork?.then(e=>e?.discard()),R=null}const ie=new Map,It=new Set,Mr=new Set,Z=new Set;let g={branch:[],error:null,url:null,nav:null},Ve=!1,he=!1,at=!0,te=!1,X=!1,Ye=!1,ne=!1,ae,E,I,L;const W=new Set;let Se;const _e=new Map,ye=new Map;async function an(e,t,r){globalThis.__sveltekit_1u3a0t9&&(jt=globalThis.__sveltekit_1u3a0t9.query??{},globalThis.__sveltekit_1u3a0t9.prerender),document.URL!==location.href&&(location.href=location.href),S=e,await e.hooks.init?.(),He=ar(e),$=document.documentElement,Ue=t,Te=e.nodes[0],ue=e.nodes[1],Te(),ue(),E=history.state?.[x],I=history.state?.[q],E||(E=I=Date.now(),history.replaceState({...history.state,[x]:E,[q]:I},""));const a=B[E];function o(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}r?(o(),await Kr(Ue,r)):(await V({type:"enter",url:re(S.hash?Xr(new URL(location.href)):location.href),replace_state:!0}),o()),zr()}async function Pt(e=!0,t=!0){if(await(Se||=Promise.resolve()),!Se)return;Se=null;const r=L={},a=await oe(g.url,!0);ee();const o=new Map;if(ne){for(const n of _e.values())for(const{resource:i}of n.values())i.refresh();for(const[n,i]of ye)for(const[s,{resource:u}]of i){const c=H(n,s),p=u.reconnect();p.catch(N),o.set(c,p)}}if(e){const n=j.state,i=a&&await Ge(a);if(!i||r!==L)return;if(i.type==="redirect")return Je(new URL(i.location,g.url).href,{replaceState:!0},1,r);t||(i.props.page.state=n),Ce(i.props.page),g={...i.state,nav:g.nav},Le(),ae.$set(i.props)}else Le();const l=[];for(const n of _e.values())for(const{resource:i}of n.values())l.push(i);for(const[n,i]of ye)for(const s of i.keys()){const u=H(n,s),c=o.get(u);c&&l.push(c)}await Promise.all(l).catch(N)}function Le(){de.length=0,ne=!1}function Rt(e){pe.some(t=>t?.snapshot)&&(Q[e]=pe.map(t=>t?.snapshot?.capture()))}function Tt(e){Q[e]?.forEach((t,r)=>{pe[r]?.snapshot?.restore(t)})}function ot(){be(E),Qe(ft,B),Rt(I),Qe(lt,Q)}async function Je(e,t,r,a){let o,l;t.invalidateAll&&ee(),await V({type:"goto",url:re(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:r,nav_token:a,accept:()=>{if(t.invalidateAll){ne=!0,o=new Set;for(const[n,i]of _e)for(const s of i.keys())o.add(H(n,s));l=new Set;for(const[n,i]of ye)for(const s of i.keys())l.add(H(n,s))}t.invalidate&&t.invalidate.forEach(Dt)}}),t.invalidateAll&&ce().then(ce).then(()=>{for(const[n,i]of _e)for(const[s,{resource:u}]of i)o?.has(H(n,s))&&u.refresh();for(const[n,i]of ye)for(const[s,{resource:u}]of i)l?.has(H(n,s))&&u.reconnect()})}async function qr(e){if(e.id!==R?.id){ee();const t={};W.add(t),R={id:e.id,token:t,promise:Ge({...e,preload:t}).then(r=>(W.delete(t),r.type==="loaded"&&r.state.error&&ee(),r)),fork:null}}return R.promise}async function Oe(e){const t=(await oe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(r=>r[1]()))}async function Ut(e,t,r){const a={params:g.params,route:{id:g.route?.id??null},url:new URL(location.href)};g={...e.state,nav:a};const o=document.querySelector("style[data-sveltekit]");if(o&&o.remove(),Ce(e.props.page),ae=new S.root({target:t,props:{...e.props,stores:C,components:pe},hydrate:r,sync:!1,transformError:void 0}),await Promise.resolve(),Tt(I),r){const l={from:null,to:{...a,scroll:B[E]??F()},willUnload:!1,type:"enter",complete:Promise.resolve()};Z.forEach(n=>n(l))}he=!0}async function me({url:e,params:t,branch:r,errors:a,status:o,error:l,route:n,form:i}){let s="never";if(U&&(e.pathname===U||e.pathname===U+"/"))s="always";else for(const d of r)d?.slash!==void 0&&(s=d.slash);e.pathname=Qt(e.pathname,s),e.search=e.search;const u={type:"loaded",state:{url:e,params:t,branch:r,error:l,route:n},props:{constructors:Ar(r).map(d=>d.node.component),page:se(j)}};i!==void 0&&(u.props.form=i);let c={},p=!j,f=0;for(let d=0;d<Math.max(r.length,g.branch.length);d+=1){const y=r[d],k=g.branch[d];y?.data!==k?.data&&(p=!0),y&&(c={...c,...y.data},p&&(u.props[`data_${f}`]=c),f+=1)}return(!g.url||e.href!==g.url.href||g.error!==l||i!==void 0&&i!==j.form||p)&&(u.props.page={error:l,params:t,route:{id:n?.id??null},state:{},status:o,url:new URL(e),form:i??null,data:p?c:j.data}),u}async function ze({loader:e,parent:t,url:r,params:a,route:o,server_data_node:l}){let n=null,i=!0;const s={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},u=await e();if(u.universal?.load){let c=function(...f){for(const h of f){const{href:d}=new URL(h,r);s.dependencies.add(d)}};const p={tracing:{enabled:!1,root:nt,current:nt},route:new Proxy(o,{get:(f,h)=>(i&&(s.route=!0),f[h])}),params:new Proxy(a,{get:(f,h)=>(i&&s.params.add(h),f[h])}),data:l?.data??null,url:Wt(r,()=>{i&&(s.url=!0)},f=>{i&&s.search_params.add(f)},S.hash),async fetch(f,h){f instanceof Request&&(h={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:[...f.headers].length>0?f?.headers:void 0,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,...h});const{resolved:d,promise:y}=Lt(f,h,r);return i&&c(d.href),y},setHeaders:N,depends:c,parent(){return i&&(s.parent=!0),t()},untrack(f){i=!1;try{return f()}finally{i=!0}}};n=await u.universal.load.call(null,p)??null}return{node:u,loader:e,server:l,universal:u.universal?.load?{type:"data",data:n,uses:s}:null,data:n??l?.data??null,slash:u.universal?.trailingSlash??l?.slash}}function Lt(e,t,r){let a=e instanceof Request?e.url:e;const o=new URL(a,r);o.origin===r.origin&&(a=o.href.slice(r.origin.length));const l=he?tr(a,o.href,t):rr(a,t);return{resolved:o,promise:l}}function st(e,t,r,a,o,l){if(ne)return!0;if(!o)return!1;if(o.parent&&e||o.route&&t||o.url&&r)return!0;for(const n of o.search_params)if(a.has(n))return!0;for(const n of o.params)if(l[n]!==g.params[n])return!0;for(const n of o.dependencies)if(de.some(i=>i(new URL(n))))return!0;return!1}function Ke(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Fr(e,t){if(!e)return new Set(t.searchParams.keys());const r=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of r){const o=e.searchParams.getAll(a),l=t.searchParams.getAll(a);o.every(n=>l.includes(n))&&l.every(n=>o.includes(n))&&r.delete(a)}return r}function it({error:e,url:t,route:r,params:a}){return{type:"loaded",state:{error:e,url:t,route:r,params:a,branch:[]},props:{page:se(j),constructors:[]}}}async function Ge({id:e,invalidating:t,url:r,params:a,route:o,preload:l}){if(R?.id===e)return W.delete(R.token),R.promise;const{errors:n,layouts:i,leaf:s}=o,u=[...i,s];n.forEach(m=>m?.().catch(N)),u.forEach(m=>m?.[1]().catch(N));let c=null;const p=g.url?e!==ge(g.url):!1,f=g.route?o.id!==g.route.id:!1,h=Fr(g.url,r);let d=!1;{const m=u.map((v,A)=>{const O=g.branch[A],b=!!v?.[0]&&(O?.loader!==v[1]||st(d,f,p,h,O.server?.uses,a));return b&&(d=!0),b});if(m.some(Boolean)){try{c=await xt(r,m)}catch(v){const A=await Y(v,{url:r,params:a,route:{id:e}});return W.has(l)?it({error:A,url:r,params:a,route:o}):ke({status:fe(v),error:A,url:r,route:o})}if(c.type==="redirect")return c}}const y=c?.nodes;let k=!1;const _=u.map(async(m,v)=>{if(!m)return;const A=g.branch[v],O=y?.[v];if((!O||O.type==="skip")&&m[1]===A?.loader&&!st(k,f,p,h,A.universal?.uses,a))return A;if(k=!0,O?.type==="error")throw O;return ze({loader:m[1],url:r,params:a,route:o,parent:async()=>{const P={};for(let T=0;T<v;T+=1)Object.assign(P,(await _[T])?.data);return P},server_data_node:Ke(O===void 0&&m[0]?{type:"skip"}:O??null,m[0]?A?.server:void 0)})});for(const m of _)m.catch(N);const w=[];for(let m=0;m<u.length;m+=1)if(u[m])try{w.push(await _[m])}catch(v){if(v instanceof Be)return{type:"redirect",location:v.location};if(W.has(l))return it({error:await Y(v,{params:a,url:r,route:{id:o.id}}),url:r,params:a,route:o});let A=fe(v),O;if(y?.includes(v))A=v.status??A,O=v.error;else if(v instanceof ve)O=v.body;else{if(await C.updated.check())return await Ot(),await J(r);O=await Y(v,{params:a,url:r,route:{id:o.id}})}const b=await Hr(m,w,n);return b?me({url:r,params:a,branch:w.slice(0,b.idx).concat(b.node),errors:n,status:A,error:O,route:o}):await $t(r,{id:o.id},O,A)}else w.push(void 0);return me({url:r,params:a,branch:w,errors:n,status:200,error:null,route:o,form:t?void 0:null})}async function Hr(e,t,r){for(;e--;)if(r[e]){let a=e;for(;!t[a];)a-=1;try{return{idx:a+1,node:{node:await r[e](),loader:r[e],data:{},server:null,universal:null}}}catch{continue}}}async function ke({status:e,error:t,url:r,route:a}){const o={};let l=null;if(S.server_loads[0]===0)try{const i=await xt(r,[!0]);if(i.type!=="data"||i.nodes[0]&&i.nodes[0].type!=="data")throw 0;l=i.nodes[0]??null}catch{(r.origin!==xe||r.pathname!==location.pathname||Ve)&&await J(r)}try{const n=await ze({loader:Te,url:r,params:o,route:a,parent:()=>Promise.resolve({}),server_data_node:Ke(l)}),i={node:await ue(),loader:ue,universal:null,server:null,data:null};return me({url:r,params:o,branch:[n,i],status:e,error:t,errors:[],route:null})}catch(n){if(n instanceof Be)return Je(new URL(n.location,location.href),{},0);throw n}}async function Vr(e){const t=e.href;if(ie.has(t))return ie.get(t);let r;try{const a=(async()=>{let o=await S.hooks.reroute({url:new URL(e),fetch:async(l,n)=>Lt(l,n,e).promise})??e;if(typeof o=="string"){const l=new URL(e);S.hash?l.hash=o:l.pathname=o,o=l}return o})();ie.set(t,a),r=await a}catch{ie.delete(t);return}return r}async function oe(e,t){if(e&&!De(e,U,S.hash)){const r=await Vr(e);if(!r)return;const a=Yr(r);for(const o of He){const l=o.exec(a);if(l)return{id:ge(e),invalidating:t,route:o,params:Zt(l),url:e}}}}function Yr(e){return er(S.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(U.length))||"/"}function ge(e){return(S.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function Nt({url:e,type:t,intent:r,delta:a,event:o,scroll:l}){let n=!1;const i=Xe(g,r,e,t,l??null);a!==void 0&&(i.navigation.delta=a),o!==void 0&&(i.navigation.event=o);const s={...i.navigation,cancel:()=>{n=!0,i.reject(new Error("navigation cancelled"))}};return te||It.forEach(u=>u(s)),n?null:i}async function V({type:e,url:t,popped:r,keepfocus:a,noscroll:o,replace_state:l,state:n={},redirect_count:i=0,nav_token:s={},accept:u=N,block:c=N,event:p}){const f=L;L=s;const h=await oe(t,!1),d=e==="enter"?Xe(g,h,t,e):Nt({url:t,type:e,delta:r?.delta,intent:h,scroll:r?.scroll,event:p});if(!d){c(),L===s&&(L=f);return}const y=E,k=I;u(),te=!0,he&&d.navigation.type!=="enter"&&C.navigating.set(je.current=d.navigation);let _=h&&await Ge(h);if(!_){if(De(t,U,S.hash))return await J(t,l);_=await $t(t,{id:null},await Y(new Me(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,l)}if(t=h?.url||t,L!==s)return d.reject(new Error("navigation aborted")),!1;if(_.type==="redirect"){if(i<20){await V({type:e,url:new URL(_.location,t),popped:r,keepfocus:a,noscroll:o,replace_state:l,state:n,redirect_count:i+1,nav_token:s}),d.fulfil(void 0);return}_=await ke({status:500,error:await Y(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else _.props.page.status>=400&&await C.updated.check()&&(await Ot(),await J(t,l));if(Le(),be(y),Rt(k),_.props.page.url.pathname!==t.pathname&&(t.pathname=_.props.page.url.pathname),n=r?r.state:n,!r){const b=l?0:1,P={[x]:E+=b,[q]:I+=b,[we]:n};(l?history.replaceState:history.pushState).call(history,P,"",t),l||St(E,I)}const w=h&&R?.id===h.id?R.fork:null;R?.fork&&!w&&ee(),R=null,_.props.page.state=n;let m;if(he){const b=(await Promise.all(Array.from(Mr,z=>z(d.navigation)))).filter(z=>typeof z=="function");if(b.length>0){let z=function(){b.forEach(Ae=>{Z.delete(Ae)})};b.push(z),b.forEach(Ae=>{Z.add(Ae)})}const P=d.navigation.to;g={..._.state,nav:{params:P.params,route:P.route,url:P.url}},_.props.page&&(_.props.page.url=t);const T=w&&await w;T?m=T.commit():(G=null,ae.$set(_.props),G&&Object.assign(_.props.page,G),Ce(_.props.page),m=Vt?.()),Ye=!0}else await Ut(_,Ue,!1);const{activeElement:v}=document;if(await m,await ce(),await ce(),L!==s)return d.reject(new Error("navigation aborted")),!1;_.props.page&&G&&Object.assign(_.props.page,G);let A=null;if(at){const b=r?r.scroll:o?F():null;b?scrollTo(b.x,b.y):(A=t.hash&&document.getElementById(Bt(t)))?A.scrollIntoView():scrollTo(0,0)}const O=document.activeElement!==v&&document.activeElement!==document.body;!a&&!O&&Gr(t,!A),at=!0,te=!1,e==="popstate"&&Tt(I),d.fulfil(void 0),d.navigation.to&&(d.navigation.to.scroll=F()),Z.forEach(b=>b(d.navigation)),C.navigating.set(je.current=null)}async function $t(e,t,r,a,o){return e.origin===xe&&e.pathname===location.pathname&&!Ve?await ke({status:a,error:r,url:e,route:t}):await J(e,o)}function Jr(){let e,t={element:void 0,href:void 0},r;$.addEventListener("mousemove",i=>{const s=i.target;clearTimeout(e),e=setTimeout(()=>{l(s,K.hover)},20)});function a(i){i.defaultPrevented||l(i.composedPath()[0],K.tap)}$.addEventListener("mousedown",a),$.addEventListener("touchstart",a,{passive:!0});const o=new IntersectionObserver(i=>{for(const s of i)s.isIntersecting&&(Oe(new URL(s.target.href)),o.unobserve(s.target))},{threshold:0});async function l(i,s){const u=ct(i,$),c=u===t.element&&u?.href===t.href&&s>=r;if(!u||c)return;const{url:p,external:f,download:h}=Ie(u,U,S.hash);if(f||h)return;const d=le(u),y=p&&ge(g.url)===ge(p);if(!(d.reload||y))if(s<=d.preload_data){t={element:u,href:u.href},r=K.tap;const k=await oe(p,!1);if(!k)return;qr(k)}else s<=d.preload_code&&(t={element:u,href:u.href},r=s,Oe(p))}function n(){o.disconnect();for(const i of $.querySelectorAll("a")){const{url:s,external:u,download:c}=Ie(i,U,S.hash);if(u||c)continue;const p=le(i);p.reload||(p.preload_code===K.viewport&&o.observe(i),p.preload_code===K.eager&&Oe(s))}}Z.add(n),n()}function Y(e,t){if(e instanceof ve)return e.body;const r=fe(e),a=Lr(e);return S.hooks.handleError({error:e,event:t,status:r,message:a})??{message:a}}function on(e,t={}){return e=new URL(re(e)),e.origin!==xe?Promise.reject(new Error("goto: invalid URL")):Je(e,t,0)}function sn(e){return Dt(e),Pt()}function Dt(e){if(typeof e=="function")de.push(e);else{const{href:t}=new URL(e,location.href);de.push(r=>r.href===t)}}function cn(){return ne=!0,Pt()}function ln(e,t){be(E);const r={[x]:E+=1,[q]:I,[$e]:j.url.href,[we]:t};history.pushState(r,"",re(e)),Ye=!0,j.state=t,ae.$set({page:Et(()=>se(j))}),St(E,I)}function fn(e,t){const r={[x]:E,[q]:I,[$e]:j.url.href,[we]:t};history.replaceState(r,"",re(e)),j.state=t,ae.$set({page:Et(()=>se(j))})}function zr(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(ot(),!te){const a=Xe(g,void 0,null,"leave"),o={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};It.forEach(l=>l(o))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ot()}),navigator.connection?.saveData||Jr(),$.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=ct(t.composedPath()[0],$);if(!r)return;const{url:a,external:o,target:l,download:n}=Ie(r,U,S.hash);if(!a)return;if(l==="_parent"||l==="_top"){if(window.parent!==window)return}else if(l&&l!=="_self")return;const i=le(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||n)return;const[u,c]=(S.hash?a.hash.replace(/^#/,""):a.href).split("#"),p=u===Ee(location);if(o||i.reload&&(!p||!c)){Nt({url:a,type:"link",event:t})?te=!0:t.preventDefault();return}if(c!==void 0&&p){const[,f]=g.url.href.split("#");if(f===c){if(t.preventDefault(),c===""||c==="top"&&r.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const h=r.ownerDocument.getElementById(decodeURIComponent(c));h&&(h.scrollIntoView(),h.focus())}return}if(X=!0,be(E),e(a),!i.replace_state)return;X=!1}t.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await V({type:"link",url:a,keepfocus:i.keepfocus,noscroll:i.noscroll,replace_state:i.replace_state??a.href===location.href,event:t})}),$.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formTarget||r.target)==="_blank"||(a?.formMethod||r.method)!=="get")return;const n=new URL(a?.hasAttribute("formaction")&&a?.formAction||r.action);if(De(n,U,!1))return;const i=t.target,s=le(i);if(s.reload)return;t.preventDefault(),t.stopPropagation();const u=new FormData(i,a);n.search=new URLSearchParams(u).toString(),V({type:"form",url:n,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??n.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Ne){if(t.state?.[x]){const r=t.state[x];if(L={},r===E)return;const a=B[r],o=t.state[we]??{},l=new URL(t.state[$e]??location.href),n=t.state[q],i=g.url?Ee(location)===Ee(g.url):!1;if(n===I&&(Ye||i)){o!==j.state&&(j.state=o),e(l),B[E]=F(),a&&scrollTo(a.x,a.y),E=r;return}const u=r-E;await V({type:"popstate",url:l,popped:{state:o,scroll:a,delta:u},accept:()=>{E=r,I=n},block:()=>{history.go(-u)},nav_token:L,event:t})}else if(!X){const r=new URL(location.href);e(r),S.hash&&location.reload()}}}),addEventListener("hashchange",()=>{X&&(X=!1,history.replaceState({...history.state,[x]:++E,[q]:I},"",location.href))});for(const t of document.querySelectorAll("link"))Br.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&C.navigating.set(je.current=null)});function e(t){g.url=j.url=t,C.page.set(se(j)),C.page.notify()}}async function Kr(e,{status:t=200,error:r,node_ids:a,params:o,route:l,server_route:n,data:i,form:s}){Ve=!0;const u=new URL(location.href);let c;({params:o={},route:l={id:null}}=await oe(u,!1)||{}),c=He.find(({id:h})=>h===l.id);let p,f=!0;try{const h=a.map(async(y,k)=>{const _=i[k];return _?.uses&&(_.uses=Ct(_.uses)),ze({loader:S.nodes[y],url:u,params:o,route:l,parent:async()=>{const w={};for(let m=0;m<k;m+=1)Object.assign(w,(await h[m]).data);return w},server_data_node:Ke(_)})}),d=await Promise.all(h);if(c){const y=c.layouts;for(let k=0;k<y.length;k++)y[k]||d.splice(k,0,void 0)}p=await me({url:u,params:o,branch:d,status:t,error:r,errors:c?.errors,form:s,route:c??null})}catch(h){if(h instanceof Be){await J(new URL(h.location,location.href));return}p=await ke({status:fe(h),error:await Y(h,{url:u,params:o,route:l}),url:u,route:l}),e.textContent="",f=!1}finally{jt={}}p.props.page&&(p.props.page.state={}),await Ut(p,e,f)}async function xt(e,t){const r=new URL(e);r.pathname=Dr(e.pathname),e.pathname.endsWith("/")&&r.searchParams.append(Sr,"1"),r.searchParams.append(Er,t.map(l=>l?"1":"0").join(""));const a=window.fetch,o=await a(r.href,{});if(!o.ok){let l;throw o.headers.get("content-type")?.includes("application/json")?l=await o.json():o.status===404?l="Not Found":o.status===500&&(l="Internal Error"),new ve(o.status,l)}return new Promise(async l=>{const n=new Map,i=o.body.getReader();function s(u){return vt(u,{...S.decoders,Promise:c=>new Promise((p,f)=>{n.set(c,{fulfil:p,reject:f})})})}for await(const u of Cr(i)){if(u.type==="redirect")return l(u);if(u.type==="data")u.nodes?.forEach(c=>{c?.type==="data"&&(c.uses=Ct(c.uses),c.data=s(c.data))}),l(u);else if(u.type==="chunk"){const{id:c,data:p,error:f}=u,h=n.get(c);n.delete(c),f?h.reject(s(f)):h.fulfil(s(p))}}})}function Ct(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 Ne=!1;function Gr(e,t=!0){const r=document.querySelector("[autofocus]");if(r)r.focus();else{const a=Bt(e);if(a&&document.getElementById(a)){const{x:l,y:n}=F();setTimeout(()=>{const i=history.state;Ne=!0,location.replace(new URL(`#${a}`,location.href)),history.replaceState(i,"",e),t&&scrollTo(l,n),Ne=!1})}else{const l=document.body,n=l.getAttribute("tabindex");l.tabIndex=-1,l.focus({preventScroll:!0,focusVisible:!1}),n!==null?l.setAttribute("tabindex",n):l.removeAttribute("tabindex")}const o=getSelection();if(o&&o.type!=="None"){const l=[];for(let n=0;n<o.rangeCount;n+=1)l.push(o.getRangeAt(n));setTimeout(()=>{if(o.rangeCount===l.length){for(let n=0;n<o.rangeCount;n+=1){const i=l[n],s=o.getRangeAt(n);if(i.commonAncestorContainer!==s.commonAncestorContainer||i.startContainer!==s.startContainer||i.endContainer!==s.endContainer||i.startOffset!==s.startOffset||i.endOffset!==s.endOffset)return}o.removeAllRanges()}})}}}function Xe(e,t,r,a,o=null){let l,n;const i=new Promise((u,c)=>{l=u,n=c});return i.catch(N),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:F()},to:r&&{params:t?.params??null,route:{id:t?.route?.id??null},url:r,scroll:o},willUnload:!t,type:a,complete:i},fulfil:l,reject:n}}function se(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 Xr(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function Bt(e){let t;if(S.hash){const[,,r]=e.hash.split("#",3);t=r??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{ve as H,Be as R,S as a,rn as b,H as c,tn as d,jt as e,ln as f,on as g,sn as h,cn as i,an as j,ye as l,en as p,_e as q,fn as r,C as s,nn as u};
|
|
4
|
+
`)}if(t){const n=r.trim();n&&(yield JSON.parse(n));return}const l=await e.read();t=l.done,l.value&&(r+=a.decode(l.value,{stream:!0})),t&&(r+=a.decode())}}const Et=Ht??(e=>e()),Br=new Set(["icon","shortcut icon","apple-touch-icon"]);let G=null;const B=ut(ft)??{},Q=ut(lt)??{},C={url:Ze({}),page:Ze({}),navigating:Xt(null),updated:Gt()};function be(e){B[e]=F()}function St(e,t){let r=e+1;for(;B[r];)delete B[r],r+=1;for(r=t+1;Q[r];)delete Q[r],r+=1}function Y(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(N)}async function Ot(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(U||"/");e&&await e.update()}}let He,Te,ue,$,Ue,S,jt={};const de=[],pe=[];let R=null;function ee(){R?.fork?.then(e=>e?.discard()),R=null}const ie=new Map,It=new Set,Mr=new Set,Z=new Set;let g={branch:[],error:null,url:null,nav:null},ze=!1,he=!1,at=!0,te=!1,X=!1,Ve=!1,ne=!1,ae,E,I,L;const W=new Set;let Se;const _e=new Map,ye=new Map;async function an(e,t,r){globalThis.__sveltekit_1bmp53z&&(jt=globalThis.__sveltekit_1bmp53z.query??{},globalThis.__sveltekit_1bmp53z.prerender),document.URL!==location.href&&(location.href=location.href),S=e,await e.hooks.init?.(),He=ar(e),$=document.documentElement,Ue=t,Te=e.nodes[0],ue=e.nodes[1],Te(),ue(),E=history.state?.[x],I=history.state?.[q],E||(E=I=Date.now(),history.replaceState({...history.state,[x]:E,[q]:I},""));const a=B[E];function o(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}r?(o(),await Kr(Ue,r)):(await z({type:"enter",url:re(S.hash?Xr(new URL(location.href)):location.href),replace_state:!0}),o()),Jr()}async function Pt(e=!0,t=!0){if(await(Se||=Promise.resolve()),!Se)return;Se=null;const r=L={},a=await oe(g.url,!0);ee();const o=new Map;if(ne){for(const n of _e.values())for(const{resource:i}of n.values())i.refresh();for(const[n,i]of ye)for(const[s,{resource:u}]of i){const c=H(n,s),p=u.reconnect();p.catch(N),o.set(c,p)}}if(e){const n=j.state,i=a&&await Ge(a);if(!i||r!==L)return;if(i.type==="redirect")return Ye(new URL(i.location,g.url).href,{replaceState:!0},1,r);t||(i.props.page.state=n),Ce(i.props.page),g={...i.state,nav:g.nav},Le(),ae.$set(i.props)}else Le();const l=[];for(const n of _e.values())for(const{resource:i}of n.values())l.push(i);for(const[n,i]of ye)for(const s of i.keys()){const u=H(n,s),c=o.get(u);c&&l.push(c)}await Promise.all(l).catch(N)}function Le(){de.length=0,ne=!1}function Rt(e){pe.some(t=>t?.snapshot)&&(Q[e]=pe.map(t=>t?.snapshot?.capture()))}function Tt(e){Q[e]?.forEach((t,r)=>{pe[r]?.snapshot?.restore(t)})}function ot(){be(E),Qe(ft,B),Rt(I),Qe(lt,Q)}async function Ye(e,t,r,a){let o,l;t.invalidateAll&&ee(),await z({type:"goto",url:re(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:r,nav_token:a,accept:()=>{if(t.invalidateAll){ne=!0,o=new Set;for(const[n,i]of _e)for(const s of i.keys())o.add(H(n,s));l=new Set;for(const[n,i]of ye)for(const s of i.keys())l.add(H(n,s))}t.invalidate&&t.invalidate.forEach(Dt)}}),t.invalidateAll&&ce().then(ce).then(()=>{for(const[n,i]of _e)for(const[s,{resource:u}]of i)o?.has(H(n,s))&&u.refresh();for(const[n,i]of ye)for(const[s,{resource:u}]of i)l?.has(H(n,s))&&u.reconnect()})}async function qr(e){if(e.id!==R?.id){ee();const t={};W.add(t),R={id:e.id,token:t,promise:Ge({...e,preload:t}).then(r=>(W.delete(t),r.type==="loaded"&&r.state.error&&ee(),r)),fork:null}}return R.promise}async function Oe(e){const t=(await oe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(r=>r[1]()))}async function Ut(e,t,r){const a={params:g.params,route:{id:g.route?.id??null},url:new URL(location.href)};g={...e.state,nav:a};const o=document.querySelector("style[data-sveltekit]");if(o&&o.remove(),Ce(e.props.page),ae=new S.root({target:t,props:{...e.props,stores:C,components:pe},hydrate:r,sync:!1,transformError:void 0}),await Promise.resolve(),Tt(I),r){const l={from:null,to:{...a,scroll:B[E]??F()},willUnload:!1,type:"enter",complete:Promise.resolve()};Z.forEach(n=>n(l))}he=!0}async function me({url:e,params:t,branch:r,errors:a,status:o,error:l,route:n,form:i}){let s="never";if(U&&(e.pathname===U||e.pathname===U+"/"))s="always";else for(const d of r)d?.slash!==void 0&&(s=d.slash);e.pathname=Qt(e.pathname,s),e.search=e.search;const u={type:"loaded",state:{url:e,params:t,branch:r,error:l,route:n},props:{constructors:Ar(r).map(d=>d.node.component),page:se(j)}};i!==void 0&&(u.props.form=i);let c={},p=!j,f=0;for(let d=0;d<Math.max(r.length,g.branch.length);d+=1){const y=r[d],k=g.branch[d];y?.data!==k?.data&&(p=!0),y&&(c={...c,...y.data},p&&(u.props[`data_${f}`]=c),f+=1)}return(!g.url||e.href!==g.url.href||g.error!==l||i!==void 0&&i!==j.form||p)&&(u.props.page={error:l,params:t,route:{id:n?.id??null},state:{},status:o,url:new URL(e),form:i??null,data:p?c:j.data}),u}async function Je({loader:e,parent:t,url:r,params:a,route:o,server_data_node:l}){let n=null,i=!0;const s={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},u=await e();if(u.universal?.load){let c=function(...f){for(const h of f){const{href:d}=new URL(h,r);s.dependencies.add(d)}};const p={tracing:{enabled:!1,root:nt,current:nt},route:new Proxy(o,{get:(f,h)=>(i&&(s.route=!0),f[h])}),params:new Proxy(a,{get:(f,h)=>(i&&s.params.add(h),f[h])}),data:l?.data??null,url:Wt(r,()=>{i&&(s.url=!0)},f=>{i&&s.search_params.add(f)},S.hash),async fetch(f,h){f instanceof Request&&(h={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:[...f.headers].length>0?f?.headers:void 0,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,...h});const{resolved:d,promise:y}=Lt(f,h,r);return i&&c(d.href),y},setHeaders:N,depends:c,parent(){return i&&(s.parent=!0),t()},untrack(f){i=!1;try{return f()}finally{i=!0}}};n=await u.universal.load.call(null,p)??null}return{node:u,loader:e,server:l,universal:u.universal?.load?{type:"data",data:n,uses:s}:null,data:n??l?.data??null,slash:u.universal?.trailingSlash??l?.slash}}function Lt(e,t,r){let a=e instanceof Request?e.url:e;const o=new URL(a,r);o.origin===r.origin&&(a=o.href.slice(r.origin.length));const l=he?tr(a,o.href,t):rr(a,t);return{resolved:o,promise:l}}function st(e,t,r,a,o,l){if(ne)return!0;if(!o)return!1;if(o.parent&&e||o.route&&t||o.url&&r)return!0;for(const n of o.search_params)if(a.has(n))return!0;for(const n of o.params)if(l[n]!==g.params[n])return!0;for(const n of o.dependencies)if(de.some(i=>i(new URL(n))))return!0;return!1}function Ke(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Fr(e,t){if(!e)return new Set(t.searchParams.keys());const r=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of r){const o=e.searchParams.getAll(a),l=t.searchParams.getAll(a);o.every(n=>l.includes(n))&&l.every(n=>o.includes(n))&&r.delete(a)}return r}function it({error:e,url:t,route:r,params:a}){return{type:"loaded",state:{error:e,url:t,route:r,params:a,branch:[]},props:{page:se(j),constructors:[]}}}async function Ge({id:e,invalidating:t,url:r,params:a,route:o,preload:l}){if(R?.id===e)return W.delete(R.token),R.promise;const{errors:n,layouts:i,leaf:s}=o,u=[...i,s];n.forEach(m=>m?.().catch(N)),u.forEach(m=>m?.[1]().catch(N));let c=null;const p=g.url?e!==ge(g.url):!1,f=g.route?o.id!==g.route.id:!1,h=Fr(g.url,r);let d=!1;{const m=u.map((v,A)=>{const O=g.branch[A],b=!!v?.[0]&&(O?.loader!==v[1]||st(d,f,p,h,O.server?.uses,a));return b&&(d=!0),b});if(m.some(Boolean)){try{c=await xt(r,m)}catch(v){const A=await V(v,{url:r,params:a,route:{id:e}});return W.has(l)?it({error:A,url:r,params:a,route:o}):ke({status:fe(v),error:A,url:r,route:o})}if(c.type==="redirect")return c}}const y=c?.nodes;let k=!1;const _=u.map(async(m,v)=>{if(!m)return;const A=g.branch[v],O=y?.[v];if((!O||O.type==="skip")&&m[1]===A?.loader&&!st(k,f,p,h,A.universal?.uses,a))return A;if(k=!0,O?.type==="error")throw O;return Je({loader:m[1],url:r,params:a,route:o,parent:async()=>{const P={};for(let T=0;T<v;T+=1)Object.assign(P,(await _[T])?.data);return P},server_data_node:Ke(O===void 0&&m[0]?{type:"skip"}:O??null,m[0]?A?.server:void 0)})});for(const m of _)m.catch(N);const w=[];for(let m=0;m<u.length;m+=1)if(u[m])try{w.push(await _[m])}catch(v){if(v instanceof Be)return{type:"redirect",location:v.location};if(W.has(l))return it({error:await V(v,{params:a,url:r,route:{id:o.id}}),url:r,params:a,route:o});let A=fe(v),O;if(y?.includes(v))A=v.status??A,O=v.error;else if(v instanceof ve)O=v.body;else{if(await C.updated.check())return await Ot(),await Y(r);O=await V(v,{params:a,url:r,route:{id:o.id}})}const b=await Hr(m,w,n);return b?me({url:r,params:a,branch:w.slice(0,b.idx).concat(b.node),errors:n,status:A,error:O,route:o}):await $t(r,{id:o.id},O,A)}else w.push(void 0);return me({url:r,params:a,branch:w,errors:n,status:200,error:null,route:o,form:t?void 0:null})}async function Hr(e,t,r){for(;e--;)if(r[e]){let a=e;for(;!t[a];)a-=1;try{return{idx:a+1,node:{node:await r[e](),loader:r[e],data:{},server:null,universal:null}}}catch{continue}}}async function ke({status:e,error:t,url:r,route:a}){const o={};let l=null;if(S.server_loads[0]===0)try{const i=await xt(r,[!0]);if(i.type!=="data"||i.nodes[0]&&i.nodes[0].type!=="data")throw 0;l=i.nodes[0]??null}catch{(r.origin!==xe||r.pathname!==location.pathname||ze)&&await Y(r)}try{const n=await Je({loader:Te,url:r,params:o,route:a,parent:()=>Promise.resolve({}),server_data_node:Ke(l)}),i={node:await ue(),loader:ue,universal:null,server:null,data:null};return me({url:r,params:o,branch:[n,i],status:e,error:t,errors:[],route:null})}catch(n){if(n instanceof Be)return Ye(new URL(n.location,location.href),{},0);throw n}}async function zr(e){const t=e.href;if(ie.has(t))return ie.get(t);let r;try{const a=(async()=>{let o=await S.hooks.reroute({url:new URL(e),fetch:async(l,n)=>Lt(l,n,e).promise})??e;if(typeof o=="string"){const l=new URL(e);S.hash?l.hash=o:l.pathname=o,o=l}return o})();ie.set(t,a),r=await a}catch{ie.delete(t);return}return r}async function oe(e,t){if(e&&!De(e,U,S.hash)){const r=await zr(e);if(!r)return;const a=Vr(r);for(const o of He){const l=o.exec(a);if(l)return{id:ge(e),invalidating:t,route:o,params:Zt(l),url:e}}}}function Vr(e){return er(S.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(U.length))||"/"}function ge(e){return(S.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function Nt({url:e,type:t,intent:r,delta:a,event:o,scroll:l}){let n=!1;const i=Xe(g,r,e,t,l??null);a!==void 0&&(i.navigation.delta=a),o!==void 0&&(i.navigation.event=o);const s={...i.navigation,cancel:()=>{n=!0,i.reject(new Error("navigation cancelled"))}};return te||It.forEach(u=>u(s)),n?null:i}async function z({type:e,url:t,popped:r,keepfocus:a,noscroll:o,replace_state:l,state:n={},redirect_count:i=0,nav_token:s={},accept:u=N,block:c=N,event:p}){const f=L;L=s;const h=await oe(t,!1),d=e==="enter"?Xe(g,h,t,e):Nt({url:t,type:e,delta:r?.delta,intent:h,scroll:r?.scroll,event:p});if(!d){c(),L===s&&(L=f);return}const y=E,k=I;u(),te=!0,he&&d.navigation.type!=="enter"&&C.navigating.set(je.current=d.navigation);let _=h&&await Ge(h);if(!_){if(De(t,U,S.hash))return await Y(t,l);_=await $t(t,{id:null},await V(new Me(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,l)}if(t=h?.url||t,L!==s)return d.reject(new Error("navigation aborted")),!1;if(_.type==="redirect"){if(i<20){await z({type:e,url:new URL(_.location,t),popped:r,keepfocus:a,noscroll:o,replace_state:l,state:n,redirect_count:i+1,nav_token:s}),d.fulfil(void 0);return}_=await ke({status:500,error:await V(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else _.props.page.status>=400&&await C.updated.check()&&(await Ot(),await Y(t,l));if(Le(),be(y),Rt(k),_.props.page.url.pathname!==t.pathname&&(t.pathname=_.props.page.url.pathname),n=r?r.state:n,!r){const b=l?0:1,P={[x]:E+=b,[q]:I+=b,[we]:n};(l?history.replaceState:history.pushState).call(history,P,"",t),l||St(E,I)}const w=h&&R?.id===h.id?R.fork:null;R?.fork&&!w&&ee(),R=null,_.props.page.state=n;let m;if(he){const b=(await Promise.all(Array.from(Mr,J=>J(d.navigation)))).filter(J=>typeof J=="function");if(b.length>0){let J=function(){b.forEach(Ae=>{Z.delete(Ae)})};b.push(J),b.forEach(Ae=>{Z.add(Ae)})}const P=d.navigation.to;g={..._.state,nav:{params:P.params,route:P.route,url:P.url}},_.props.page&&(_.props.page.url=t);const T=w&&await w;T?m=T.commit():(G=null,ae.$set(_.props),G&&Object.assign(_.props.page,G),Ce(_.props.page),m=zt?.()),Ve=!0}else await Ut(_,Ue,!1);const{activeElement:v}=document;if(await m,await ce(),await ce(),L!==s)return d.reject(new Error("navigation aborted")),!1;_.props.page&&G&&Object.assign(_.props.page,G);let A=null;if(at){const b=r?r.scroll:o?F():null;b?scrollTo(b.x,b.y):(A=t.hash&&document.getElementById(Bt(t)))?A.scrollIntoView():scrollTo(0,0)}const O=document.activeElement!==v&&document.activeElement!==document.body;!a&&!O&&Gr(t,!A),at=!0,te=!1,e==="popstate"&&Tt(I),d.fulfil(void 0),d.navigation.to&&(d.navigation.to.scroll=F()),Z.forEach(b=>b(d.navigation)),C.navigating.set(je.current=null)}async function $t(e,t,r,a,o){return e.origin===xe&&e.pathname===location.pathname&&!ze?await ke({status:a,error:r,url:e,route:t}):await Y(e,o)}function Yr(){let e,t={element:void 0,href:void 0},r;$.addEventListener("mousemove",i=>{const s=i.target;clearTimeout(e),e=setTimeout(()=>{l(s,K.hover)},20)});function a(i){i.defaultPrevented||l(i.composedPath()[0],K.tap)}$.addEventListener("mousedown",a),$.addEventListener("touchstart",a,{passive:!0});const o=new IntersectionObserver(i=>{for(const s of i)s.isIntersecting&&(Oe(new URL(s.target.href)),o.unobserve(s.target))},{threshold:0});async function l(i,s){const u=ct(i,$),c=u===t.element&&u?.href===t.href&&s>=r;if(!u||c)return;const{url:p,external:f,download:h}=Ie(u,U,S.hash);if(f||h)return;const d=le(u),y=p&&ge(g.url)===ge(p);if(!(d.reload||y))if(s<=d.preload_data){t={element:u,href:u.href},r=K.tap;const k=await oe(p,!1);if(!k)return;qr(k)}else s<=d.preload_code&&(t={element:u,href:u.href},r=s,Oe(p))}function n(){o.disconnect();for(const i of $.querySelectorAll("a")){const{url:s,external:u,download:c}=Ie(i,U,S.hash);if(u||c)continue;const p=le(i);p.reload||(p.preload_code===K.viewport&&o.observe(i),p.preload_code===K.eager&&Oe(s))}}Z.add(n),n()}function V(e,t){if(e instanceof ve)return e.body;const r=fe(e),a=Lr(e);return S.hooks.handleError({error:e,event:t,status:r,message:a})??{message:a}}function on(e,t={}){return e=new URL(re(e)),e.origin!==xe?Promise.reject(new Error("goto: invalid URL")):Ye(e,t,0)}function sn(e){return Dt(e),Pt()}function Dt(e){if(typeof e=="function")de.push(e);else{const{href:t}=new URL(e,location.href);de.push(r=>r.href===t)}}function cn(){return ne=!0,Pt()}function ln(e,t){be(E);const r={[x]:E+=1,[q]:I,[$e]:j.url.href,[we]:t};history.pushState(r,"",re(e)),Ve=!0,j.state=t,ae.$set({page:Et(()=>se(j))}),St(E,I)}function fn(e,t){const r={[x]:E,[q]:I,[$e]:j.url.href,[we]:t};history.replaceState(r,"",re(e)),j.state=t,ae.$set({page:Et(()=>se(j))})}function Jr(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(ot(),!te){const a=Xe(g,void 0,null,"leave"),o={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};It.forEach(l=>l(o))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ot()}),navigator.connection?.saveData||Yr(),$.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=ct(t.composedPath()[0],$);if(!r)return;const{url:a,external:o,target:l,download:n}=Ie(r,U,S.hash);if(!a)return;if(l==="_parent"||l==="_top"){if(window.parent!==window)return}else if(l&&l!=="_self")return;const i=le(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||n)return;const[u,c]=(S.hash?a.hash.replace(/^#/,""):a.href).split("#"),p=u===Ee(location);if(o||i.reload&&(!p||!c)){Nt({url:a,type:"link",event:t})?te=!0:t.preventDefault();return}if(c!==void 0&&p){const[,f]=g.url.href.split("#");if(f===c){if(t.preventDefault(),c===""||c==="top"&&r.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const h=r.ownerDocument.getElementById(decodeURIComponent(c));h&&(h.scrollIntoView(),h.focus())}return}if(X=!0,be(E),e(a),!i.replace_state)return;X=!1}t.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await z({type:"link",url:a,keepfocus:i.keepfocus,noscroll:i.noscroll,replace_state:i.replace_state??a.href===location.href,event:t})}),$.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formTarget||r.target)==="_blank"||(a?.formMethod||r.method)!=="get")return;const n=new URL(a?.hasAttribute("formaction")&&a?.formAction||r.action);if(De(n,U,!1))return;const i=t.target,s=le(i);if(s.reload)return;t.preventDefault(),t.stopPropagation();const u=new FormData(i,a);n.search=new URLSearchParams(u).toString(),z({type:"form",url:n,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??n.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Ne){if(t.state?.[x]){const r=t.state[x];if(L={},r===E)return;const a=B[r],o=t.state[we]??{},l=new URL(t.state[$e]??location.href),n=t.state[q],i=g.url?Ee(location)===Ee(g.url):!1;if(n===I&&(Ve||i)){o!==j.state&&(j.state=o),e(l),B[E]=F(),a&&scrollTo(a.x,a.y),E=r;return}const u=r-E;await z({type:"popstate",url:l,popped:{state:o,scroll:a,delta:u},accept:()=>{E=r,I=n},block:()=>{history.go(-u)},nav_token:L,event:t})}else if(!X){const r=new URL(location.href);e(r),S.hash&&location.reload()}}}),addEventListener("hashchange",()=>{X&&(X=!1,history.replaceState({...history.state,[x]:++E,[q]:I},"",location.href))});for(const t of document.querySelectorAll("link"))Br.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&C.navigating.set(je.current=null)});function e(t){g.url=j.url=t,C.page.set(se(j)),C.page.notify()}}async function Kr(e,{status:t=200,error:r,node_ids:a,params:o,route:l,server_route:n,data:i,form:s}){ze=!0;const u=new URL(location.href);let c;({params:o={},route:l={id:null}}=await oe(u,!1)||{}),c=He.find(({id:h})=>h===l.id);let p,f=!0;try{const h=a.map(async(y,k)=>{const _=i[k];return _?.uses&&(_.uses=Ct(_.uses)),Je({loader:S.nodes[y],url:u,params:o,route:l,parent:async()=>{const w={};for(let m=0;m<k;m+=1)Object.assign(w,(await h[m]).data);return w},server_data_node:Ke(_)})}),d=await Promise.all(h);if(c){const y=c.layouts;for(let k=0;k<y.length;k++)y[k]||d.splice(k,0,void 0)}p=await me({url:u,params:o,branch:d,status:t,error:r,errors:c?.errors,form:s,route:c??null})}catch(h){if(h instanceof Be){await Y(new URL(h.location,location.href));return}p=await ke({status:fe(h),error:await V(h,{url:u,params:o,route:l}),url:u,route:l}),e.textContent="",f=!1}finally{jt={}}p.props.page&&(p.props.page.state={}),await Ut(p,e,f)}async function xt(e,t){const r=new URL(e);r.pathname=Dr(e.pathname),e.pathname.endsWith("/")&&r.searchParams.append(Sr,"1"),r.searchParams.append(Er,t.map(l=>l?"1":"0").join(""));const a=window.fetch,o=await a(r.href,{});if(!o.ok){let l;throw o.headers.get("content-type")?.includes("application/json")?l=await o.json():o.status===404?l="Not Found":o.status===500&&(l="Internal Error"),new ve(o.status,l)}return new Promise(async l=>{const n=new Map,i=o.body.getReader();function s(u){return vt(u,{...S.decoders,Promise:c=>new Promise((p,f)=>{n.set(c,{fulfil:p,reject:f})})})}for await(const u of Cr(i)){if(u.type==="redirect")return l(u);if(u.type==="data")u.nodes?.forEach(c=>{c?.type==="data"&&(c.uses=Ct(c.uses),c.data=s(c.data))}),l(u);else if(u.type==="chunk"){const{id:c,data:p,error:f}=u,h=n.get(c);n.delete(c),f?h.reject(s(f)):h.fulfil(s(p))}}})}function Ct(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 Ne=!1;function Gr(e,t=!0){const r=document.querySelector("[autofocus]");if(r)r.focus();else{const a=Bt(e);if(a&&document.getElementById(a)){const{x:l,y:n}=F();setTimeout(()=>{const i=history.state;Ne=!0,location.replace(new URL(`#${a}`,location.href)),history.replaceState(i,"",e),t&&scrollTo(l,n),Ne=!1})}else{const l=document.body,n=l.getAttribute("tabindex");l.tabIndex=-1,l.focus({preventScroll:!0,focusVisible:!1}),n!==null?l.setAttribute("tabindex",n):l.removeAttribute("tabindex")}const o=getSelection();if(o&&o.type!=="None"){const l=[];for(let n=0;n<o.rangeCount;n+=1)l.push(o.getRangeAt(n));setTimeout(()=>{if(o.rangeCount===l.length){for(let n=0;n<o.rangeCount;n+=1){const i=l[n],s=o.getRangeAt(n);if(i.commonAncestorContainer!==s.commonAncestorContainer||i.startContainer!==s.startContainer||i.endContainer!==s.endContainer||i.startOffset!==s.startOffset||i.endOffset!==s.endOffset)return}o.removeAllRanges()}})}}}function Xe(e,t,r,a,o=null){let l,n;const i=new Promise((u,c)=>{l=u,n=c});return i.catch(N),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:F()},to:r&&{params:t?.params??null,route:{id:t?.route?.id??null},url:r,scroll:o},willUnload:!t,type:a,complete:i},fulfil:l,reject:n}}function se(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 Xr(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function Bt(e){let t;if(S.hash){const[,,r]=e.hash.split("#",3);t=r??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{ve as H,Be as R,S as a,rn as b,H as c,tn as d,jt as e,ln as f,on as g,sn as h,cn as i,an as j,ye as l,en as p,_e as q,fn as r,C as s,nn as u};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{L as K,x as S,b9 as F,b as
|
|
1
|
+
import{L as K,x as S,b9 as F,b as x,g as o,w as T,ba as se,a8 as ne,u as U,d as c,p as ie,t as j,a as oe,c as w,s as z,e as ae,r as q,f as ce}from"./ogOVEqzG.js";import{n as B,a as ue,p as de,b as W,c as J,v as he}from"./BtrFC32o.js";import{q as m,l as L,c as V,p as Q,a as k,b as le,H as E,g as fe,R as ye,d as G,u as pe,e as C}from"./DrPQfDZ-.js";import{f as P,a as _,c as me,t as ve}from"./DjUt71lH.js";import{s as xe}from"./wZ9dd4xr.js";import{s as D}from"./D899Ie42.js";import{p as ge,i as I}from"./DIjqwnsi.js";import{s as R}from"./BaCQ7DA8.js";import{b as _e}from"./tqAjkrD5.js";const N=Symbol("sveltekit.query_function_id"),O=Symbol("sveltekit.query_override_key"),M=Symbol("sveltekit.query_resource_key");function Y(){try{return K(B),!0}catch{return!1}}function X(){return S(()=>{const s=ue.current?.to?.url??de.url;return{"x-sveltekit-pathname":s.pathname,"x-sveltekit-search":s.search}})}async function be(s,e){const t=await fetch(s,{headers:{"Content-Type":"application/json",...e}});if(!t.ok)throw new E(500,"Failed to execute remote function");const n=await t.json();return(await we(n)).result}async function we(s){if(s.type==="redirect")throw await fe(s.location),new ye(307,s.location);if(s.type==="error")throw new E(s.status??500,s.error);return s}function qe(s){const e=new Set,t=[],n=new Set;for(const r of s){if(typeof r=="function"){if(Object.hasOwn(r,N)){const i=r[N],a=m.get(i)??L.get(i);if(a)for(const l of a.keys())n.add(V(i,l));continue}if(Object.hasOwn(r,O)){const i=r[O];if(n.add(i),e.has(i))throw new Error("Multiple overrides for the same query are not allowed in a single updates() invocation");e.add(i),t.push(r);continue}t.push(r);continue}if(typeof r=="object"&&r!==null&&Object.hasOwn(r,M)){n.add(r[M]);continue}throw new Error("updates() expects a query or live query function, query resource, or query override")}return{overrides:t,refreshes:n}}function Z(s,e,t){const n=Q(s,k.decoders);for(const[r,i]of Object.entries(n)){const a=le(r),l=e.get(a.id)?.get(a.payload);l?.resource&&t(l.resource,i)}}const ke=s=>{Z(s,m,(e,t)=>{t.type==="result"?e?.set(t.data):e?.fail(new E(t.status??500,t.error))})},Oe=s=>{Z(s,L,(e,t)=>{t.type==="result"?(e?.set(t.data),e?.reconnect()):e?.fail(new E(t.status??500,t.error))})};function u(s){let e=x(0);const t=n=>{let r=null,i=null,a;F(e);const l={"Content-Type":"application/json",...X()},y=(async()=>{try{if(await Promise.resolve(),a)throw a;const p=await fetch(`${W}/${J}/remote/${s}`,{method:"POST",body:JSON.stringify({payload:G(n,k.hooks.transport,!1),refreshes:Array.from(i??[])}),headers:l});if(!p.ok)throw new Error("Failed to execute remote function");const d=await p.json();if(d.type==="redirect")throw new Error("Redirects are not allowed in commands. Return a result instead and use goto on the client");if(d.type==="error")throw new E(d.status??500,d.error);return d.refreshes&&ke(d.refreshes),d.reconnects&&Oe(d.reconnects),Q(d.result,k.decoders)}finally{r?.forEach(p=>p()),F(e,-1)}})();let v=!1;return y.updates=(...p)=>{if(v)return console.warn("Updates can only be sent once per command invocation. Ignoring additional updates."),y;v=!0;try{({refreshes:i,overrides:r}=qe(p))}catch(d){a=d}return y},y};return Object.defineProperty(t,"pending",{get:()=>o(e)}),t}new TextDecoder;const A=`sveltekit:${he}`;let Ee;(async()=>{if(typeof caches<"u")try{Ee=await caches.open(A);const s=await caches.keys();for(const e of s)e.startsWith("sveltekit:")&&e!==A&&await caches.delete(e)}catch(s){console.warn("Failed to initialize SvelteKit cache:",s)}})();const H=new Map;typeof FinalizationRegistry>"u"||new FinalizationRegistry(s=>{const e=H.get(s);e&&e.deref()===void 0&&H.delete(s)});function Se(){let s,e;return{promise:new Promise((n,r)=>{s=n,e=r}),resolve:s,reject:e}}function g(s){const e=t=>new je(s,t,async(n,r)=>{const i=`${W}/${J}/remote/${s}${r?`?payload=${r}`:""}`,a=await pe(n,()=>be(i,X()));return Q(a,k.decoders)});return Object.defineProperty(e,N,{value:s}),e}class Pe{#t;#s;#e=x(!0);#r=[];#a=x(!1);#d=x();#n=x(null);#c=x(ne([]));#i=U(()=>{if(o(this.#a))return o(this.#c).reduce((e,t)=>t(e),o(this.#d))});#o=x(void 0);#h=U(()=>{const e=this.#l();return o(this.#c).length,(t,n)=>{const r=e.then(T).then(()=>o(this.#i));return t||n?r.then(t,n):r}});constructor(e,t){this.#t=e,this.#s=t}#l(){return S(()=>c(this.#n,o(this.#n)??this.#y())),o(this.#n)}#u(){T().then(()=>this.#l())}#f(){this.#r.forEach(e=>e(void 0)),this.#r.length=0}#y(){c(this.#e,!0);const{promise:e,resolve:t,reject:n}=Se();return this.#r.push(t),Promise.resolve(this.#s()).then(r=>{const i=this.#r.indexOf(t);i!==-1&&(S(()=>{this.#r.splice(0,i).forEach(a=>a(void 0)),c(this.#a,!0),c(this.#e,!1),c(this.#d,r),c(this.#o,void 0)}),t(void 0))}).catch(r=>{const i=this.#r.indexOf(t);i!==-1&&(S(()=>{this.#r.splice(0,i).forEach(a=>a(void 0)),c(this.#o,r),c(this.#e,!1)}),n(r))}),e}get then(){return this.#u(),o(this.#h)}get catch(){return this.#u(),o(this.#h),e=>o(this.#h)(void 0,e)}get finally(){return this.#u(),o(this.#h),e=>o(this.#h)(t=>(e(),t),t=>{throw e(),t})}get current(){return this.#u(),o(this.#i)}get error(){return this.#u(),o(this.#o)}get loading(){return this.#u(),o(this.#e)}get ready(){return this.#u(),o(this.#a)}refresh(){return delete C[this.#t],c(this.#n,this.#y())}set(e){this.#f(),c(this.#a,!0),c(this.#e,!1),c(this.#o,void 0),c(this.#d,e),c(this.#n,Promise.resolve())}fail(e){this.#f(),c(this.#e,!1),c(this.#o,e);const t=Promise.reject(e);t.catch(B),c(this.#n,t)}withOverride(e){o(this.#c).push(e);const t=()=>{const n=o(this.#c).indexOf(e);n!==-1&&o(this.#c).splice(n,1)};return Object.defineProperty(t,O,{value:this.#t}),t}get[Symbol.toStringTag](){return"Query"}}class je{#t;#s;#e;#r;#a=!0;#d=Y();constructor(e,t,n){if(this.#t=e,this.#e=G(t,k.hooks.transport),this.#s=V(e,this.#e),Object.defineProperty(this,M,{value:this.#s}),this.#r=n,!this.#d){this.#a=!1;return}const r=this.#n();K(()=>()=>{const i=this.#c(r);T().then(i)})}#n(){let e=m.get(this.#t);e||(e=new Map,m.set(this.#t,e));let t=e.get(this.#e);if(!t){const n=t={count:0,resource:null,cleanup:null};n.cleanup=se(()=>{n.resource=new Pe(this.#s,()=>this.#r(this.#s,this.#e))}),e.set(this.#e,t)}return t.count+=1,t}#c(e,t=!0){return this.#a&&=!t,e.count-=1,()=>{const n=m.get(this.#t),r=n?.get(this.#e);r?.count===0&&(r.cleanup(),n?.delete(this.#e)),n?.size===0&&m.delete(this.#t)}}#i(){return m.get(this.#t)?.get(this.#e)?.resource}get current(){return this.#i()?.current}get error(){return this.#i()?.error}get loading(){return this.#i()?.loading??!1}get ready(){return this.#i()?.ready??!1}run(){if(Y())throw new Error("On the client, .run() can only be called outside render, e.g. in universal `load` functions and event handlers. In render, await the query directly");return Object.hasOwn(C,this.#s)?Promise.resolve(C[this.#s]):this.#r(this.#s,this.#e)}refresh(){return this.#i()?.refresh()??Promise.resolve()}set(e){this.#i()?.set(e)}withOverride(e){const t=this.#n(),n=t.resource.withOverride(e),r=()=>{n(),this.#c(t,!1)()};return Object.defineProperty(r,O,{value:n[O]}),r}#o(){if(!this.#d)throw new Error("This query was not created in a reactive context and cannot be awaited. Use `.run()` to execute the query instead.");if(!this.#a)throw new Error("This query instance is no longer active and can no longer be awaited. This typically means you created the query in a tracking context and stashed it somewhere outside of a tracking context.");const e=m.get(this.#t)?.get(this.#e);if(!e)throw new Error("No cached query found. This should be impossible. Please file a bug report.");return e.resource}get then(){const e=this.#o();return e.then.bind(e)}get catch(){const e=this.#o();return e.catch.bind(e)}get finally(){const e=this.#o();return e.finally.bind(e)}get[Symbol.toStringTag](){return"QueryProxy"}}const He=u("xxtqbu/addServer"),Ke=u("xxtqbu/auditSchema"),Be=u("xxtqbu/countDocuments"),We=g("xxtqbu/countDocumentsByTimeRange"),Je=u("xxtqbu/createIndex"),Le=u("xxtqbu/deleteDocument"),Ve=u("xxtqbu/deleteMany"),Ge=g("xxtqbu/detectPrimaryNode"),Xe=u("xxtqbu/dropCollection"),Ze=u("xxtqbu/dropDatabase"),$e=u("xxtqbu/dropIndex"),et=g("xxtqbu/explainQuery"),tt=g("xxtqbu/fetchMappedDocument"),rt=g("xxtqbu/getIndexStatsFromNodes");g("xxtqbu/getIndexStatsWithReadPreference");const st=g("xxtqbu/getServerNodes"),nt=u("xxtqbu/hideIndex"),it=u("xxtqbu/insertDocument"),ot=u("xxtqbu/loadDocuments"),at=u("xxtqbu/removeServer"),ct=u("xxtqbu/retryConnection"),ut=u("xxtqbu/unhideIndex"),dt=u("xxtqbu/updateDocument"),ht=u("xxtqbu/updateMany");var De=P("<span> </span>"),Ie=P('<div class="flex gap-2 items-center"><!></div>'),Re=P('<div><div style="color: var(--text);"><!></div> <!></div>'),Te=P("<div><!> <!></div>");function lt(s,e){ie(e,!0);let t=ge(e,"ref",15);var n=Te(),r=w(n);{var i=l=>{var y=Re(),v=w(y),p=w(v);{var d=h=>{var f=De(),b=w(f,!0);q(f),j(()=>xe(b,e.title)),_(h,f)},$=h=>{var f=me(),b=ce(f);D(b,()=>e.title),_(h,f)},ee=h=>{var f=ve(" ");_(h,f)};I(p,h=>{typeof e.title=="string"?h(d):e.title?h($,1):h(ee,-1)})}q(v);var te=z(v,2);{var re=h=>{var f=Ie(),b=w(f);D(b,()=>e.actions),q(f),_(h,f)};I(te,h=>{e.actions&&h(re)})}q(y),j(()=>{R(y,1,`px-3 sm:px-4 py-2 flex justify-between items-center ${e.children?"border-b border-[var(--border-color)]":""}`),R(v,1,`text-sm font-medium ${e.titleClass??""}`)}),_(l,y)};I(r,l=>{(e.title||e.actions)&&l(i)})}var a=z(r,2);D(a,()=>e.children??ae),q(n),_e(n,l=>t(l),()=>t()),j(()=>R(n,1,`rounded-2xl border border-[var(--border-color)] bg-[var(--light-background)]/70 shadow-sm ${e.class??""}`)),_(s,n),oe()}export{lt as P,Xe as a,Le as b,Ke as c,Ze as d,He as e,at as f,tt as g,st as h,it as i,Ge as j,rt as k,$e as l,Je as m,ut as n,nt as o,We as p,ot as q,ct as r,Be as s,et as t,dt as u,ht as v,Ve as w};
|
|
Binary file
|
|
Binary file
|