1import{s as vt}from"./B1Z8jW1P.js";import{H as ee,S as Le,R as Te}from"./-UyI9lYi.js";import{H as x,N as V,r as te,o as Ue,n as C,i as je,b as T,s as H,c as Ae,f as Qe,g as ke,d as oe,e as be,S as me,P as Oe,p as P,h as bt,m as Et,j as At,u as et,k as kt,l as He,q as X,t as St,v as tt,w as It,x as Rt,y as rt}from"./B9pf7GWL.js";import{p as Pt,e as Lt}from"./mpPM_jtR.js";import"./B0XwC4Ot.js";import{v as ie,j as Tt,q as Ut}from"./BadT0im8.js";import{w as jt}from"./Dn4-rNMD.js";function Ot({nodes:e,server_loads:t,dictionary:r,matchers:n}){const a=new Set(t);return Object.entries(r).map(([s,[c,u,l]])=>{const{pattern:h,params:g}=Pt(s),f={id:s,exec:m=>{const d=h.exec(m);if(d)return Lt(d,g,n)},errors:[1,...l||[]].map(m=>e[m]),layouts:[0,...u||[]].map(i),leaf:o(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[a.has(s),e[s]]}}function at(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function qe(e,t,r=JSON.stringify){const n=r(t);try{sessionStorage[e]=n}catch{}}const Nt=-1,Dt=-2,xt=-3,Ct=-4,Bt=-5,Mt=-6,Ft=-7,nt=2**32-1,Se=nt-1;function Vt(e){return!(!Number.isInteger(e)||e<0||e>Se)}function Ht(e){return!(!Number.isInteger(e)||e<0||e>nt)}function qt(e){return Uint8Array.fromBase64(e).buffer}function Yt(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function $t(e){const t=atob(e),r=t.length,n=new Uint8Array(r);for(let a=0;a<r;a++)n[a]=t.charCodeAt(a);return n.buffer}const Kt=typeof Uint8Array.fromBase64=="function";var Ze;const Gt=typeof process=="object"&&((Ze=process.versions)==null?void 0:Ze.node)!==void 0,Xt=Kt?qt:Gt?Yt:$t;function zt(e,t){return e}const Wt=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,Ye=typeof SharedArrayBuffer>"u"?void 0:Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get,Jt={fromPrimitive:e=>e,fromISOString:e=>new Date(e),fromStringValue:(e,t)=>e==="URL"?new URL(t):e==="URLSearchParams"?new URLSearchParams(t):Temporal[e.slice(9)].from(t),fromArrayBuffer:e=>e,fromRegExpInfo:(e,t)=>new RegExp(e,t),fromViewInfo:(e,t,r,n)=>{try{Wt.call(t)}catch(o){if(!Ye)throw o;Ye.call(t)}const a=globalThis[e];return r!==void 0?new a(t,r,n):new a(t)},box:e=>Object(e),createArray:e=>new Array(e),createSparseArray:e=>{const t=[];return t[Se]=void 0,delete t[Se],t.length=e,t},createObject:()=>({}),createNullPrototypeObject:()=>Object.create(null),createSet:()=>new Set,createMap:()=>new Map,set:(e,t,r)=>{e[t]=r},addValue:(e,t)=>{e.add(t)},addEntry:(e,t,r)=>{e.set(t,r)}},Zt=Object.freeze(Jt);function Qt(e,t,r){const n=zt(Zt);if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const a=e,o=Array(a.length);let i=null;function s(c,u=!1){if(c===Nt)return n.fromPrimitive(void 0);if(c===xt)return n.fromPrimitive(NaN);if(c===Ct)return n.fromPrimitive(1/0);if(c===Bt)return n.fromPrimitive(-1/0);if(c===Mt)return n.fromPrimitive(-0);if(u||typeof c!="number")throw new Error("Invalid input");if(c in o)return o[c];if(c>=a.length)throw new Error("Invalid input");const l=a[c];if(!l||typeof l!="object")o[c]=n.fromPrimitive(l);else if(Array.isArray(l))if(typeof l[0]=="string"){const h=l[0],g=t&&Object.hasOwn(t,h)?t[h]:void 0;if(g){let f=l[1];if(typeof f!="number"&&(f=a.push(l[1])-1),Object.hasOwn(o,f))return o[c]=g(o[f]);if(i??(i=new Set),i.has(f))throw new Error("Invalid circular reference");return i.add(f),o[c]=g(s(f)),i.delete(f),o[c]}switch(h){case"Date":o[c]=n.fromISOString(l[1]);break;case"Set":const f=n.createSet();o[c]=f;for(let p=1;p<l.length;p+=1)n.addValue(f,s(l[p]));break;case"Map":const m=n.createMap();o[c]=m;for(let p=1;p<l.length;p+=2)n.addEntry(m,s(l[p]),s(l[p+1]));break;case"RegExp":o[c]=n.fromRegExpInfo(l[1],l[2]);break;case"Object":{const p=l[1];if(typeof a[p]=="object"&&a[p][0]!=="BigInt")throw new Error("Invalid input");o[c]=n.box(s(p));break}case"BigInt":o[c]=n.fromPrimitive(BigInt(l[1]));break;case"null":const d=n.createNullPrototypeObject();o[c]=d;for(let p=1;p<l.length;p+=2){const y=l[p];
1if(typeof y!="string")throw new Error("Cannot parse an object with a non-string key");if(y==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");n.set(d,y,s(l[p+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(a[l[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const p=s(l[1]);o[c]=n.fromViewInfo(h,p,l[2],l[3]);break}case"ArrayBuffer":{const p=l[1];if(typeof p!="string")throw new Error("Invalid ArrayBuffer encoding");o[c]=n.fromArrayBuffer(Xt(p));break}case"URL":case"URLSearchParams":case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{o[c]=n.fromStringValue(h,l[1]);break}default:throw new Error(`Unknown type ${h}`)}}else if(l[0]===Ft){const h=l[1];if(!Ht(h))throw new Error("Invalid input");const g=n.createSparseArray(h);o[c]=g;for(let f=2;f<l.length;f+=2){const m=l[f];if(!Vt(m)||m>=h)throw new Error("Invalid input");n.set(g,m,s(l[f+1]))}}else{const h=n.createArray(l.length);o[c]=h;for(let g=0;g<l.length;g+=1){const f=l[g];f!==Dt&&n.set(h,g,s(f))}}else{const h=n.createObject();o[c]=h;
1for(const g of Object.keys(l)){if(g==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");n.set(h,g,s(l[g]))}}return o[c]}return s(0)}function er(e){return e.filter(t=>t!=null)}const tr="x-sveltekit-invalidated",rr="x-sveltekit-trailing-slash";function ae(e,t){return e+"/"+t}function se(e){return e instanceof ee||e instanceof Le?e.status:500}function ar(e){return e instanceof Le?e.text:"Internal Error"}const nr="/__data.json",or=".html__data.json";function ir(e){return e.endsWith(".html")?e.replace(/\.html$/,or):e.replace(/\/$/,"")+nr}const $e={spanContext(){return sr},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}},sr={traceId:"",spanId:"",traceFlags:0};async function*cr(e,t){let r=!1,n="";const a=new TextDecoder;for(;;){let o=n.indexOf(t);for(;o!==-1;)yield n.slice(0,o),n=n.slice(o+t.length),o=n.indexOf(t);if(r){n&&(yield n);return}const i=await e.read();r=i.done,i.value&&(n+=a.decode(i.value,{stream:!0})),r&&(n+=a.decode())}}async function*lr(e){for await(const t of cr(e,` 2`)){const r=t.trim();r&&(yield JSON.parse(r))}}const{onMount:fr}=vt,ot=Tt??(e=>e()),ur=new Set(["icon","shortcut icon","apple-touch-icon"]);let z=null;const M=at(rt)??{},Z=at(tt)??{},B={url:He({}),page:He({}),navigating:jt(null),updated:kt()};function ge(e){M[e]=H()}function it(e,t){let r=e+1;for(;M[r];)delete M[r],r+=1;for(r=t+1;Z[r];)delete Z[r],r+=1}function G(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(C)}async function st(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(T||"/");e&&await e.update()}}let Ne,Ie,ce,O,Re,I;const le=[],fe=[];let E=null;function ue(){var e;(e=E==null?void 0:E.fork)==null||e.then(t=>t==null?void 0:t.discard()),E=null,Y={element:void 0,href:void 0}}const ne=new Map,De=new Set,dr=new Set,$=new Set;let w={branch:[],error:null,url:null},xe=!1,de=!1,Ke=!0,Q=!1,W=!1,Ce=!1,Be=!1,ye,S,L,D;const J=new Set,Ge=new Map,Xe=new Map;async function Or(e,t,r){var o,i,s,c;if(globalThis.__sveltekit_1rn18os.data){const{q:u={},p:l={},l:h={},f:g={}}=globalThis.__sveltekit_1rn18os.data;for(const f in u)u[f];for(const f in h)h[f];for(const f in g)g[f];for(const f in l)l[f]}document.URL!==location.href&&(location.href=location.href),I=e,await((i=(o=e.hooks).init)==null?void 0:i.call(o)),Ne=Ot(e),O=document.documentElement,Re=t,Ie=e.nodes[0],ce=e.nodes[1],Ie(),ce(),S=(s=history.state)==null?void 0:s[x],L=(c=history.state)==null?void 0:c[V],S||(S=L=Date.now(),history.replaceState({...history.state,[x]:S,[V]:L},""));const n=M[S];function a(){n&&(history.scrollRestoration="manual",scrollTo(n.x,n.y))}r?(a(),await Er(Re,r)):(await K({type:"enter",url:te(I.hash?Sr(new URL(location.href)):location.href),replace_state:!0}),a()),br()}function hr(){le.length=0,Be=!1}function ct(e){fe.some(t=>t==null?void 0:t.snapshot)&&(Z[e]=fe.map(t=>{var r;return(r=t==null?void 0:t.snapshot)==null?void 0:r.capture()}))}function lt(e){var t;(t=Z[e])==null||t.forEach((r,n)=>{var a,o;(o=(a=fe[n])==null?void 0:a.snapshot)==null||o.restore(r)})}function ze(){ge(S),qe(rt,M),ct(L),qe(tt,Z)}async function ft(e,t,r,n){let a,o;t.invalidateAll&&ue(),await K({type:"goto",url:te(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:r,nav_token:n,accept:()=>{var i;if(t.invalidateAll){Be=!0,a=new Set;for(const[s,c]of Ge)for(const[u,l]of c)(i=l.resource)==null||i.reset(),a.add(ae(s,u));o=new Set;for(const[s,c]of Xe)for(const u of c.keys())o.add(ae(s,u))}t.invalidate&&t.invalidate.forEach(vr)}}),t.invalidateAll&&ie().then(ie).then(()=>{for(const[i,s]of Ge)for(const[c,{resource:u}]of s)a!=null&&a.has(ae(i,c))&&u.start();for(const[i,s]of Xe)for(const[c,{resource:u}]of s)o!=null&&o.has(ae(i,c))&&u.reconnect()})}async function pr(e){if(e.id!==(E==null?void 0:E.id)){ue();const t={};J.add(t),E={id:e.id,token:t,promise:ht({...e,preload:t}).then(r=>(J.delete(t),r.type==="loaded"&&r.state.error&&ue(),r)),fork:null}}return E.promise}async function Ee(e){var r;const t=(r=await we(e,!1))==null?void 0:r.route;
2t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function ut(e,t,r){var a;const n={params:w.params,route:{id:((a=w.route)==null?void 0:a.id)??null},url:new URL(location.href)};if(w={...e.state,nav:n},et(e.props.page),ye=new I.root({target:t,props:{...e.props,stores:B,components:fe},hydrate:r,sync:!1,transformError:void 0}),await Promise.resolve(),r){const o={from:null,to:{...n,scroll:M[S]??H()},willUnload:!1,type:"enter",complete:Promise.resolve()};$.forEach(i=>i(o))}lt(L),de=!0}async function he({url:e,params:t,branch:r,errors:n,status:a,error:o,route:i,form:s}){let c="never";if(T&&(e.pathname===T||e.pathname===T+"/"))c="always";else for(const m of r)(m==null?void 0:m.slash)!==void 0&&(c=m.slash);e.pathname=At(e.pathname,c),e.search=e.search;const u={type:"loaded",state:{url:e,params:t,branch:r,error:o,route:i},props:{constructors:er(r).map(m=>m.node.component),page:re(P)}};s!==void 0&&(u.props.form=s);let l={},h=!P,g=0;for(let m=0;m<Math.max(r.length,w.branch.length);m+=1){const d=r[m],p=w.branch[m];(d==null?void 0:d.data)!==(p==null?void 0:p.data)&&(h=!0),d&&(l={...l,...d.data},h&&(u.props[`data_${g}`]=l),g+=1)}return(!w.url||e.href!==w.url.href||w.error!==o||s!==void 0&&s!==P.form||h)&&(u.props.page={error:o,params:t,route:{id:(i==null?void 0:i.id)??null},state:{},status:a,url:new URL(e),form:s??null,data:h?l:P.data}),u}async function Me({loader:e,parent:t,url:r,params:n,route:a,server_data_node:o}){var l,h,g;let i=null,s=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},u=await e();if((l=u.universal)!=null&&l.load){let f=function(...d){for(const p of d){const{href:y}=new URL(p,r);c.dependencies.add(y)}};const m={tracing:{enabled:!1,root:$e,current:$e},route:new Proxy(a,{get:(d,p)=>(s&&(c.route=!0),d[p])}),params:new Proxy(n,{get:(d,p)=>(s&&c.params.add(p),d[p])}),data:(o==null?void 0:o.data)??null,url:Et(r,()=>{s&&(c.url=!0)},d=>{s&&c.search_params.add(d)},I.hash),async fetch(d,p){d instanceof Request&&(p={body:d.method==="GET"||d.method==="HEAD"?void 0:await d.blob(),cache:d.cache,credentials:d.credentials,headers:[...d.headers].length>0?d==null?void 0:d.headers:void 0,integrity:d.integrity,keepalive:d.keepalive,method:d.method,mode:d.mode,redirect:d.redirect,referrer:d.referrer,referrerPolicy:d.referrerPolicy,signal:d.signal,...p});const{resolved:y,promise:R}=dt(d,p,r);return s&&f(y.href),R},setHeaders:C,depends:f,parent(){return s&&(c.parent=!0),t()},untrack(d){s=!1;try{return d()}finally{s=!0}}};i=await u.universal.load.call(null,m)??null}return{node:u,loader:e,server:o,universal:(h=u.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((g=u.universal)==null?void 0:g.trailingSlash)??(o==null?void 0:o.slash)}}function dt(e,t,r){let n=e instanceof Request?e.url:e;const a=new URL(n,r);a.origin===r.origin&&(n=a.href.slice(r.origin.length));const o=de?It(n,a.href,t):Rt(n,t);return{resolved:a,promise:o}}function We(e,t,r,n,a,o){if(Be)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&r)return!0;for(const i of a.search_params)if(n.has(i))return!0;for(const i of a.params)if(o[i]!==w.params[i])return!0;for(const i of a.dependencies)if(le.some(s=>s(new URL(i))))return!0;return!1}function Fe(e,t){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?t??null:null}function mr(e,t){if(!e)return new Set(t.searchParams.keys());const r=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const n of r){const a=e.searchParams.getAll(n),o=t.searchParams.getAll(n);a.every(i=>o.includes(i))&&o.every(i=>a.includes(i))&&r.delete(n)}return r}function Je({error:e,url:t,route:r,params:n}){return{type:"loaded",state:{error:e,url:t,route:r,params:n,branch:[]},props:{page:re(P),constructors:[]}}}async function ht({id:e,invalidating:t,url:r,params:n,route:a,preload:o}){if((E==null?void 0:E.id)===e)return J.delete(E.token),E.promise;const{errors:i,layouts:s,leaf:c}=a,u=[...s,c];i.forEach(_=>_==null?void 0:_().catch(C)),u.forEach(_=>_==null?void 0:_[1]().catch(C));let l=null;const h=w.url?e!==pe(w.url):!1,g=w.route?a.id!==w.route.id:!1,f=mr(w.url,r);let m=!1;{const _=u.map((v,b)=>{var k;const A=w.branch[b],U=!!(v!=null&&v[0])&&((A==null?void 0:A.loader)!==v[1]||We(m,g,h,f,(k=A.server)==null?void 0:k.uses,n));return U&&(m=!0),U});if(_.some(Boolean)){try{l=await yt(r,_)}catch(v){const b=await F(v,{url:r,params:n,route:{id:e}});return o&&J.has(o)?Je({error:b,url:r,params:n,route:a}):_e({status:se(v),error:b,url:r,route:a})}if(l.type==="redirect")return l}}const d=l==null?void 0:l.nodes;let p=!1;const y=u.map(async(_,v)=>{var k;if(!_)return;const b=w.branch[v],A=d==null?void 0:d[v];if((!A||A.type==="skip")&&_[1]===(b==null?void 0:b.loader)&&!We(p,g,h,f,(k=b.universal)==null?void 0:k.uses,n))return b;if(p=!0,(A==null?void 0:A.type)==="error")throw A;return Me({loader:_[1],url:r,params:n,route:a,parent:async()=>{var q;const N={};for(let j=0;j<v;
2j+=1)Object.assign(N,(q=await y[j])==null?void 0:q.data);return N},server_data_node:Fe(A===void 0&&_[0]?{type:"skip"}:A??null,_[0]?b==null?void 0:b.server:void 0)})});for(const _ of y)_.catch(C);const R=[];for(let _=0;_<u.length;_+=1)if(u[_])try{R.push(await y[_])}catch(v){if(v instanceof Te)return{type:"redirect",location:v.location};if(o&&J.has(o))return Je({error:await F(v,{params:n,url:r,route:{id:a.id}}),url:r,params:n,route:a});let b=se(v),A;if(d!=null&&d.includes(v))b=v.status??b,A=v.error;else if(v instanceof ee)A=v.body;else{if(await B.updated.check())return await st(),await G(r);A=await F(v,{params:n,url:r,route:{id:a.id}})}const U=await gr(_,R,i);return U?he({url:r,params:n,branch:R.slice(0,U.idx).concat(U.node),errors:i,status:b,error:A,route:a}):await mt(r,{id:a.id},A,b)}else R.push(void 0);return he({url:r,params:n,branch:R,errors:i,status:200,error:null,route:a,form:t?void 0:null})}async function gr(e,t,r){for(;e--;)if(r[e]){let n=e;for(;!t[n];)n-=1;try{return{idx:n+1,node:{node:await r[e](),loader:r[e],data:{},server:null,universal:null}}}catch{continue}}}async function _e({status:e,error:t,url:r,route:n}){const a={};let o=null;if(I.server_loads[0]===0)try{const s=await yt(r,[!0]);if(s.type!=="data"||s.nodes[0]&&s.nodes[0].type!=="data")throw 0;o=s.nodes[0]??null}catch(s){if(!(s instanceof ee&&s.status===404)&&(r.origin!==Ue||r.pathname!==location.pathname||xe))return await G(r)}try{const i=await Me({loader:Ie,url:r,params:a,route:n,parent:()=>Promise.resolve({}),server_data_node:Fe(o)}),s={node:await ce(),loader:ce,universal:null,server:null,data:null};return he({url:r,params:a,branch:[i,s],status:e,error:t,errors:[],route:null})}catch(i){if(i instanceof Te){await ft(new URL(i.location,location.href),{},0);return}const s=await I.get_error_template(),c=await F(i,{url:r,params:a,route:n}),u=String((c==null?void 0:c.message)??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),l=s({status:e,message:u}),h=new DOMParser().parseFromString(l,"text/html");throw document.documentElement.replaceChild(document.adoptNode(h.head),document.head),document.documentElement.replaceChild(document.adoptNode(h.body),document.body),i}}async function yr(e){const t=e.href;if(ne.has(t))return ne.get(t);let r;try{const n=(async()=>{let a=await I.hooks.reroute({url:new URL(e),fetch:async(o,i)=>dt(o,i,e).promise})??e;if(typeof a=="string"){const o=new URL(e);I.hash?o.hash=a:o.pathname=a,a=o}return a})();ne.set(t,n),r=await n}catch{ne.delete(t);return}return r}async function we(e,t){if(e&&!je(e,T,I.hash)){const r=await yr(e);if(!r)return;const n=_r(r);for(const a of Ne){const o=a.exec(n);if(o)return{id:pe(e),invalidating:t,route:a,params:bt(o),url:e}}}}function _r(e){return St(I.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(T.length))||"/"}function pe(e){return(I.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function pt({url:e,type:t,intent:r,delta:n,event:a,scroll:o}){let i=!1;const s=Ve(w,r,e,t,o??null);n!==void 0&&(s.navigation.delta=n),a!==void 0&&(s.navigation.event=a);const c={...s.navigation,cancel:()=>{i=!0,s.reject(new Error("navigation cancelled"))}};return Q||De.forEach(u=>u(c)),i?null:s}async function K({type:e,url:t,popped:r,keepfocus:n,noscroll:a,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:u=C,block:l=C,event:h}){var U;const g=D;D=c;const f=await we(t,!1),m=e==="enter"?Ve(w,f,t,e):pt({url:t,type:e,delta:r==null?void 0:r.delta,intent:f,scroll:r==null?void 0:r.scroll,event:h});if(!m){l(),D===c&&(D=g);return}const d=S,p=L;u(),Q=!0,de&&m.navigation.type!=="enter"&&B.navigating.set(Ae.current=m.navigation);let y=f&&await ht(f);if(!y){if(je(t,T,I.hash))return await G(t,o);y=await mt(t,{id:null},await F(new Le(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,o)}if(t=(f==null?void 0:f.url)||t,D!==c){m.reject(new Error("navigation aborted"));return}if(!y)return;if(y.type==="redirect"){if(s<20){await K({type:e,url:new URL(y.location,t),popped:r,keepfocus:n,noscroll:a,replace_state:o,state:i,redirect_count:s+1,nav_token:c}),m.fulfil(void 0);return}if(y=await _e({status:500,error:await F(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}}),!y)return}else if(y.props.page.status>=400&&await B.updated.check())return await st(),await G(t,o);if(hr(),ge(d),ct(p),y.props.page.url.pathname!==t.pathname&&(t.pathname=y.props.page.url.pathname),i=r?r.state:i,!r){const k=o?0:1,N={[x]:S+=k,[V]:L+=k,[me]:i};(o?history.replaceState:history.pushState).call(history,N,"",t),o||it(S,L)}const R=f&&(E==null?void 0:E.id)===f.id?E.fork:null;E!=null&&E.fork&&!R?ue():(E=null,Y={element:void 0,href:void 0}),y.props.page.state=i;let _;if(de){const k=(await Promise.all(Array.from(dr,j=>j(m.navigation)))).filter(j=>typeof j=="function");if(k.length>
20){let j=function(){k.forEach(ve=>{$.delete(ve)})};k.push(j),k.forEach(ve=>{$.add(ve)})}const N=m.navigation.to;w={...y.state,nav:{params:N.params,route:N.route,url:N.url}},y.props.page&&(y.props.page.url=t),!n&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();const q=R&&await R;q?_=q.commit():(z=null,ye.$set(y.props),z&&Object.assign(y.props.page,z),et(y.props.page),_=(U=Ut)==null?void 0:U()),Ce=!0}else await ut(y,Re,!1);const{activeElement:v}=document;if(await _,await ie(),await ie(),D!==c){m.reject(new Error("navigation aborted"));return}y.props.page&&z&&Object.assign(y.props.page,z);let b=null;if(Ke){const k=r?r.scroll:a?H():null;k?scrollTo(k.x,k.y):(b=t.hash&&document.getElementById(wt(t)))?b.scrollIntoView():scrollTo(0,0)}const A=document.activeElement!==v&&document.activeElement!==document.body;!n&&!A&&kr(t,!b),Ke=!0,Q=!1,m.fulfil(void 0),m.navigation.to&&(m.navigation.to.scroll=H()),$.forEach(k=>k(m.navigation)),e==="popstate"&<(L),B.navigating.set(Ae.current=null)}async function mt(e,t,r,n,a){return e.origin===Ue&&e.pathname===location.pathname&&!xe?await _e({status:n,error:r,url:e,route:t}):await G(e,a)}let Y={element:void 0,href:void 0};function wr(){let e,t;O.addEventListener("mousemove",i=>{const s=i.target;clearTimeout(e),e=setTimeout(()=>{a(s,X.hover)},20)});function r(i){i.defaultPrevented||a(i.composedPath()[0],X.tap)}O.addEventListener("mousedown",r),O.addEventListener("touchstart",r,{passive:!0});const n=new IntersectionObserver(i=>{for(const s of i)s.isIntersecting&&(Ee(new URL(s.target.href)),n.unobserve(s.target))},{threshold:0});async function a(i,s){const c=Qe(i,O),u=c===Y.element&&(c==null?void 0:c.href)===Y.href&&s>=t;if(!c||u)return;const{url:l,external:h,download:g}=ke(c,T,I.hash);if(h||g)return;const f=oe(c),m=l&&pe(w.url)===pe(l);if(!(f.reload||m))if(s<=f.preload_data){Y={element:c,href:c.href},t=X.tap;const d=await we(l,!1);if(!d)return;pr(d)}else s<=f.preload_code&&(Y={element:c,href:c.href},t=s,Ee(l))}function o(){n.disconnect();for(const i of O.querySelectorAll("a")){const{url:s,external:c,download:u}=ke(i,T,I.hash);if(c||u)continue;const l=oe(i);l.reload||(l.preload_code===X.viewport&&n.observe(i),l.preload_code===X.eager&&Ee(s))}}$.add(o),o()}function F(e,t){if(e instanceof ee)return e.body;const r=se(e),n=ar(e);return I.hooks.handleError({error:e,event:t,status:r,message:n})??{message:n}}function gt(e,t){fr(()=>(e.add(t),()=>{e.delete(t)}))}function Nr(e){gt($,e)}function Dr(e){gt(De,e)}function xr(e,t={}){return e=new URL(te(e)),e.origin!==Ue?Promise.reject(new Error("goto: invalid URL")):ft(e,t,0)}function vr(e){if(typeof e=="function")le.push(e);else{const{href:t}=new URL(e,location.href);le.push(r=>r.href===t)}}function Cr(e,t){ge(S);const r={[x]:S+=1,[V]:L,[Oe]:P.url.href,[me]:t};history.pushState(r,"",te(e)),Ce=!0,P.state=t,ye.$set({page:ot(()=>re(P))}),it(S,L)}function Br(e,t){const r={[x]:S,[V]:L,[Oe]:P.url.href,[me]:t};history.replaceState(r,"",te(e)),P.state=t,ye.$set({page:ot(()=>re(P))})}function br(){var t;history.scrollRestoration="manual",addEventListener("beforeunload",r=>{let n=!1;if(ze(),!Q){const a=Ve(w,void 0,null,"leave"),o={...a.navigation,cancel:()=>{n=!0,a.reject(new Error("navigation cancelled"))}};De.forEach(i=>i(o))}n?(r.preventDefault(),r.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ze()}),(t=navigator.connection)!=null&&t.saveData||wr(),O.addEventListener("click",async r=>{if(r.button||r.which!==1||r.metaKey||r.ctrlKey||r.shiftKey||r.altKey||r.defaultPrevented)return;const n=Qe(r.composedPath()[0],O);if(!n)return;const{url:a,external:o,target:i,download:s}=ke(n,T,I.hash);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=oe(n);if(!(n instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||s)return;const[l,h]=(I.hash?a.hash.replace(/^#/,""):a.href).split("#"),g=l===be(location);if(o||c.reload&&(!g||!h)){pt({url:a,type:"link",event:r})?Q=!0:r.preventDefault();return}if(h!==void 0&&g){const[,f]=w.url.href.split("#");if(f===h){if(r.preventDefault(),h===""||h==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const m=n.ownerDocument.getElementById(decodeURIComponent(h));m&&(m.scrollIntoView(),m.focus())}return}if(W=!0,ge(S),e(a),!c.replace_state)return;W=!1}r.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await K({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href,event:r})}),O.addEventListener("submit",r=>{if(r.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(r.target),a=r.submitter;if(((a==null?void 0:a.formTarget)||n.target)==="_blank"||((a==null?void 0:a.formMethod)||n.method)!=="get")return;const s=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||n.action);if(je(s,T,!1))return;const c=r.target,u=oe(c);if(u.reload)return;r.preventDefault(),r.stopPropagation();const l=new FormData(c,a);s.search=new URLSearchParams(l).toString(),K({type:"form",url:s,keepfocus:u.keepfocus,noscroll:u.noscroll,replace_state:u.replace_state??s.href===location.href,event:r})}),addEventListener("popstate",async r=>{var n;
2if(!Pe){if((n=r.state)!=null&&n[x]){const a=r.state[x];if(D={},a===S)return;const o=M[a],i=r.state[me]??{},s=new URL(r.state[Oe]??location.href),c=r.state[V],u=w.url?be(location)===be(w.url):!1;if(c===L&&(Ce||u)){i!==P.state&&(P.state=i),e(s),M[S]=H(),o&&scrollTo(o.x,o.y),S=a;return}const h=a-S;await K({type:"popstate",url:s,popped:{state:i,scroll:o,delta:h},accept:()=>{S=a,L=c},block:()=>{history.go(-h)},nav_token:D,event:r})}else if(!W){const a=new URL(location.href);e(a),I.hash&&location.reload()}}}),addEventListener("hashchange",()=>{W&&(W=!1,history.replaceState({...history.state,[x]:++S,[V]:L},"",location.href))});for(const r of document.querySelectorAll("link"))ur.has(r.rel)&&(r.href=r.href);addEventListener("pageshow",r=>{r.persisted&&B.navigating.set(Ae.current=null)});function e(r){w.url=P.url=r,B.page.set(re(P)),B.page.notify()}}async function Er(e,{status:t=200,error:r,node_ids:n,params:a,route:o,server_route:i,data:s,form:c}){xe=!0;const u=new URL(location.href);let l;({params:a={},route:o={id:null}}=await we(u,!1)||{}),l=Ne.find(({id:f})=>f===o.id);let h,g=!0;try{const f=n.map(async(d,p)=>{const y=s[p];return y!=null&&y.uses&&(y.uses=_t(y.uses)),Me({loader:I.nodes[d],url:u,params:a,route:o,parent:async()=>{const R={};for(let _=0;_<p;_+=1)Object.assign(R,(await f[_]).data);return R},server_data_node:Fe(y)})}),m=await Promise.all(f);if(l){const d=l.layouts;for(let p=0;p<d.length;p++)d[p]||m.splice(p,0,void 0)}h=await he({url:u,params:a,branch:m,status:t,error:r,errors:l==null?void 0:l.errors,form:c,route:l??null})}catch(f){if(f instanceof Te)return await G(new URL(f.location,location.href));h=await _e({status:se(f),error:await F(f,{url:u,params:a,route:o}),url:u,route:o}),e.textContent="",g=!1}h&&(h.props.page&&(h.props.page.state={}),await ut(h,e,g))}async function yt(e,t){var o;const r=new URL(e);r.pathname=ir(e.pathname),e.pathname.endsWith("/")&&r.searchParams.append(rr,"1"),r.searchParams.append(tr,t.map(i=>i?"1":"0").join(""));const n=window.fetch,a=await n(r.href,{});if(!a.ok){let i;throw(o=a.headers.get("content-type"))!=null&&o.includes("application/json")?i=await a.json():a.status===404?i="Not Found":a.status===500&&(i="Internal Error"),new ee(a.status,i)}return new Promise((i,s)=>{Ar(i,a).catch(s)})}async function Ar(e,t){var o;const r=t.body.getReader(),n=new Map;function a(i){return Qt(i,{...I.decoders,Promise:s=>new Promise((c,u)=>{n.set(s,{fulfil:c,reject:u})})})}for await(const i of lr(r)){if(i.type==="redirect")return e(i);if(i.type==="data")(o=i.nodes)==null||o.forEach(s=>{(s==null?void 0:s.type)==="data"&&(s.uses=_t(s.uses),s.data=a(s.data))}),e(i);else if(i.type==="chunk"){const{id:s,data:c,error:u}=i,l=n.get(s);n.delete(s),u?l.reject(a(u)):l.fulfil(a(c))}}}function _t(e){return{dependencies:new Set((e==null?void 0:e.dependencies)??[]),params:new Set((e==null?void 0:e.params)??[]),parent:!!(e!=null&&e.parent),route:!!(e!=null&&e.route),url:!!(e!=null&&e.url),search_params:new Set((e==null?void 0:e.search_params)??[])}}let Pe=!1;function kr(e,t=!0){const r=document.querySelector("[autofocus]");if(r)r.focus();else{const n=wt(e);if(n&&document.getElementById(n)){const{x:o,y:i}=H();setTimeout(()=>{const s=history.state;Pe=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(s,"",e),t&&scrollTo(o,i),Pe=!1})}else{const o=document.body,i=o.getAttribute("tabindex");o.tabIndex=-1,o.focus({preventScroll:!0,focusVisible:!1}),i!==null?o.setAttribute("tabindex",i):o.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const o=[];for(let i=0;i<a.rangeCount;i+=1)o.push(a.getRangeAt(i));setTimeout(()=>{if(a.rangeCount===o.length){for(let i=0;i<a.rangeCount;i+=1){const s=o[i],c=a.getRangeAt(i);if(s.commonAncestorContainer!==c.commonAncestorContainer||s.startContainer!==c.startContainer||s.endContainer!==c.endContainer||s.startOffset!==c.startOffset||s.endOffset!==c.endOffset)return}a.removeAllRanges()}})}}}function Ve(e,t,r,n,a=null){var u,l;let o,i;const s=new Promise((h,g)=>{o=h,i=g});return s.catch(C),{navigation:{from:{params:e.params,route:{id:((u=e.route)==null?void 0:u.id)??null},url:e.url,scroll:H()},to:r&&{params:(t==null?void 0:t.params)??null,route:{id:((l=t==null?void 0:t.route)==null?void 0:l.id)??null},url:r,scroll:a},willUnload:!t,type:n,complete:s},fulfil:o,reject:i}}function re(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 Sr(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function wt(e){let t;if(I.hash){const[,,r]=e.hash.split("#",3);t=r??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Nr as a,Dr as b,Or as c,xr as g,Cr as p,Br as r,B as s};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.