import{Sasat,iasrt,sasot,aasit,easj,casst,basF,gasZ,tasT,dasQ,fasD,hasC,jaslt,oasOe,kasct,lasft,masut,nasEe,pasz,qasdt,raspt,uasht,vasG,wasH,xasoe,yasK,zasM,Aasde}from"./chunks/index-d58fe3f7.js";import{Sastt,IasJ,gasze,fasJe,aaske,baspe,sasX,iasWe,cashe,PasYe,dasmt,eas_t,hasgt}from"./chunks/singletons-79e4343e.js";import{RasXe,HasIe}from"./chunks/control-f5b05b5f.js";functionyt(r,e){returnr==="/"||e==="ignore"?r:e==="never"?r.endsWith("/")?r.slice(0,-1):r:e==="always"&&!r.endsWith("/")?r+"/":r}functionwt(r){returnr.split("%25").map(decodeURI).join("%25")}functionbt(r){for(consteinr)r[e]=decodeURIComponent(r[e]);returnr}constvt=["href","pathname","search","searchParams","toString","toJSON"];functionEt(r,e){constn=newURL(r);for(constoofvt){leta=n[o];Object.defineProperty(n,o,{get(){returne(),a},enumerable:!0,configurable:!0})}returnkt(n),n}functionkt(r){Object.defineProperty(r,"hash",{get(){thrownewError("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const$t="/__data.json";functionRt(r){returnr.replace(/\/$/,"")+$t}functionSt(r){lete=5381;if(typeofr=="string"){letn=r.length;for(;n;)e=e*33^r.charCodeAt(--n)}elseif(ArrayBuffer.isView(r)){constn=newUint8Array(r.buffer,r.byteOffset,r.byteLength);leto=n.length;for(;o;)e=e*33^n[--o]}elsethrownewTypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}constme=window.fetch;window.fetch=(r,e)=>((rinstanceofRequest?r.method:(e==null?void0:e.method)||"GET")!=="GET"&&ae.delete(Ne(r)),me(r,e));constae=newMap;functionLt(r,e){constn=Ne(r,e),o=document.querySelector(n);if(o!=null&&o.textContent){const{body:a,...d}=JSON.parse(o.textContent),t=o.getAttribute("data-ttl");returnt&&ae.set(n,{body:a,init:d,ttl:1e3*Number(t)}),Promise.resolve(newResponse(a,d))}returnme(r,e)}functionOt(r,e,n){if(ae.size>0){consto=Ne(r,n),a=ae.get(o);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void0].includes(n==null?void0:n.cache))returnnewResponse(a.body,a.init);ae.delete(o)}}returnme(e,n)}functionNe(r,e){leto=`script[data-sveltekit-fetched][data-url=${JSON.stringify(rinstanceofRequest?r.url:r)}]`;returne!=null&&e.body&&(typeofe.body=="string"||ArrayBuffer.isView(e.body))&&(o+=`[data-hash="${St(e.body)}"]`),o}constIt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;functionAt(r){conste=[];return{pattern:r==="/"?/^\/$/:newRegExp(`^${Nt(r).map(o=>{consta=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(o);if(a)returne.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const d=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(o);if(d)return e.push({name:d[1],matcher:d[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!o)return;const t=o.split(/\[(.+?)\](?!\])/);return"/"+t.map((u,p)=>{if(p%2){if(u.startsWith("x+"))return $e(String.fromCharCode(parseInt(u.slice(2),16)));if(u.startsWith("u+"))return $e(String.fromCharCode(...u.slice(2).split("-").map(A=>parseInt(A,16))));const g=It.exec(u);if(!g)throw new Error(`Invalidparam:${u}.Paramsandmatchernamescanonlyhaveunderscoresandalphanumericcharacters.`);const[,w,P,$,q]=g;return e.push({name:$,matcher:q,optional:!!w,rest:!!P,chained:P?p===1&&t[0]==="":!1}),P?"(.*?)":w?"([^/]*)?":"([^/]+?)"}return $e(u)}).join("")}).join("")}/?$`),params:e}}functionPt(r){return!/^\([^)]+\)$/.test(r)}functionNt(r){returnr.slice(1).split("/").filter(Pt)}functionUt(r,e,n){consto={},a=r.slice(1);letd="";for(lett=0;t<e.length;t+=1){constc=e[t];letu=a[t];if(c.chained&&c.rest&&d&&(u=u?d+"/"+u:d),d="",u===void0)c.rest&&(o[c.name]="");else{if(c.matcher&&!n[c.matcher](u)){if(c.optional&&c.chained){letp=a.indexOf(void0,t);if(p===-1){constg=e[t+1];if(g!=null&&g.rest&&g.chained)d=u;elsereturn}for(;p>=t;)a[p]=a[p-1],p-=1;continue}return}o[c.name]=u}}if(!d)returno}function$e(r){returnr.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/