1import{s as rt}from"./rDe-gDDQ.js";import{c as ot,H as D,N as Y,r as ye,i as we,b as U,s as re,p as L,n as de,f as Fe,g as he,a as z,d as le,S as Me,P as st,e as it,h as ct,o as ve,j as M,k as lt,t as ft,l as qe,m as ut,q as dt,v as Ve,w as Ce,x as ht}from"./Cgj50CMl.js";import{aC as X,aM as pt}from"./FpG7l3Wf.js";import{w as _t}from"./DNfYUInM.js";class oe{constructor(t,a){this.status=t,typeof a=="string"?this.body={message:a}:a?this.body=a:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class be{constructor(t,a){this.status=t,this.location=a}}class Ee extends Error{constructor(t,a,n){super(n),this.status=t,this.text=a}}const mt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function gt(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${wt(e).map(n=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(n);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(n);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!n)return;const o=n.split(/\[(.+?)\](?!\])/);return"/"+o.map((s,l)=>{if(l%2){if(s.startsWith("x+"))return fe(String.fromCharCode(parseInt(s.slice(2),16)));if(s.startsWith("u+"))return fe(String.fromCharCode(...s.slice(2).split("-").map(y=>parseInt(y,16))));const d=mt.exec(s),[,h,p,u,f]=d;return t.push({name:u,matcher:f,optional:!!h,rest:!!p,chained:p?l===1&&o[0]==="":!1}),p?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return fe(s)}).join("")}).join("")}/?$`),params:t}}function yt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function wt(e){return e.slice(1).split("/").filter(yt)}function vt(e,t,a){const n={},r=e.slice(1),i=r.filter(c=>c!==void 0);let o=0;for(let c=0;c<t.length;c+=1){const s=t[c];let l=r[c-o];if(s.chained&&s.rest&&o&&(l=r.slice(c-o,c+1).filter(d=>d).join("/"),o=0),l===void 0)if(s.rest)l="";else continue;if(!s.matcher||a[s.matcher](l)){n[s.name]=l;const d=t[c+1],h=r[c+1];d&&!d.rest&&d.optional&&h&&s.chained&&(o=0),!d&&!h&&Object.keys(n).length===i.length&&(o=0);continue}if(s.optional&&s.chained){o++;continue}return}if(!o)return n}function fe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function bt({nodes:e,server_loads:t,dictionary:a,matchers:n}){const r=new Set(t);return Object.entries(a).map(([c,[s,l,d]])=>{const{pattern:h,params:p}=gt(c),u={id:c,exec:f=>{const y=h.exec(f);if(y)return vt(y,p,n)},errors:[1,...d||[]].map(f=>e[f]),layouts:[0,...l||[]].map(o),leaf:i(s)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function i(c){const s=c<0;return s&&(c=~c),[s,e[c]]}function o(c){return c===void 0?c:[r.has(c),e[c]]}}function Ke(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Oe(e,t,a=JSON.stringify){const n=a(t);try{sessionStorage[e]=n}catch{}}function Et(e){const t=St(e),a=new ArrayBuffer(t.length),n=new DataView(a);for(let r=0;r<a.byteLength;r++)n.setUint8(r,t.charCodeAt(r));return a}const kt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function St(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",a=0,n=0;for(let r=0;r<e.length;r++)a<<=6,a|=kt.indexOf(e[r]),n+=6,n===24&&(t+=String.fromCharCode((a&16711680)>>16),t+=String.fromCharCode((a&65280)>>8),t+=String.fromCharCode(a&255),a=n=0);return n===12?(a>>=4,t+=String.fromCharCode(a)):n===18&&(a>>=2,t+=String.fromCharCode((a&65280)>>8),t+=String.fromCharCode(a&255)),t}const At=-1,It=-2,Rt=-3,Tt=-4,Lt=-5,Ut=-6;function Pt(e,t){if(typeof e=="number")return i(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const a=e,n=Array(a.length);let r=null;function i(o,c=!1){if(o===At)return;if(o===Rt)return NaN;if(o===Tt)return 1/0;if(o===Lt)return-1/0;if(o===Ut)return-0;if(c||typeof o!="number")throw new Error("Invalid input");if(o in n)return n[o];const s=a[o];if(!s||typeof s!="object")n[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const l=s[0],d=t&&Object.hasOwn(t,l)?t[l]:void 0;if(d){let h=s[1];if(typeof h!="number"&&(h=a.push(s[1])-1),r??=new Set,r.has(h))throw new Error("Invalid circular reference");return r.add(h),n[o]=d(i(h)),r.delete(h),n[o]}switch(l){case"Date":n[o]=new Date(s[1]);break;case"Set":const h=new Set;n[o]=h;for(let f=1;f<s.length;f+=1)h.add(i(s[f]));break;case"Map":const p=new Map;n[o]=p;for(let f=1;f<s.length;f+=2)p.set(i(s[f]),i(s[f+1]));break;case"RegExp":n[o]=new RegExp(s[1],s[2]);break;case"Object":n[o]=Object(s[1]);break;case"BigInt":n[o]=BigInt(s[1]);break;case"null":const u=Object.create(null);n[o]=u;for(let f=1;f<s.length;f+=2)u[s[f]]=i(s[f+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{if(a[s[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const f=globalThis[l],y=i(s[1]),b=new f(y);n[o]=s[2]!==void 0?b.subarray(s[2],s[3]):b;break}case"ArrayBuffer":{const f=s[1];if(typeof f!="string")throw new Error("Invalid ArrayBuffer encoding");const y=Et(f);n[o]=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 f=l.slice(9);n[o]=Temporal[f].from(s[1]);break}case"URL":{const f=new URL(s[1]);n[o]=f;break}case"URLSearchParams":{const f=new URLSearchParams(s[1]);n[o]=f;break}default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(s.length);n[o]=l;for(let d=0;d<s.length;d+=1){const h=s[d];h!==It&&(l[d]=i(h))}}else{const l={};n[o]=l;for(const d in s){if(d==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const h=s[d];l[d]=i(h)}}return n[o]}return i(0)}function Ct(e){return e.filter(t=>t!=null)}const Ot="x-sveltekit-invalidated",Nt="x-sveltekit-trailing-slash";function J(e){return e instanceof oe||e instanceof Ee?e.status:500}function jt(e){return e instanceof Ee?e.text:"Internal Error"}const xt="/__data.json",Dt=".html__data.json";function $t(e){return e.endsWith(".html")?e.replace(/\.html$/,Dt):e.replace(/\/$/,"")+xt}const{onMount:Bt}=rt,Ft=new Set(["icon","shortcut icon","apple-touch-icon"]),x=Ke(Ve)??{},H=Ke(qe)??{},N={url:Ce({}),page:Ce({}),navigating:_t(null),updated:ot()};function ke(e){x[e]=re()}function Mt(e,t){let a=e+1;for(;x[a];)delete x[a],a+=1;for(a=t+1;H[a];)delete H[a],a+=1}function F(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}
1async function Ye(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(U||"/");e&&await e.update()}}function Ne(){}let Se,pe,Z,O,_e,k;const Q=[],ee=[];let P=null;function me(){P?.fork?.then(e=>e?.discard()),P=null}const W=new Map,Ae=new Set,qt=new Set,V=new Set;let g={branch:[],error:null,url:null},Ie=!1,te=!1,je=!0,G=!1,q=!1,He=!1,Re=!1,Ge,A,R,j;const K=new Set,xe=new Map;async function ia(e,t,a){globalThis.__sveltekit_b0f9p0?.data&&globalThis.__sveltekit_b0f9p0.data,document.URL!==location.href&&(location.href=location.href),k=e,await e.hooks.init?.(),Se=bt(e),O=document.documentElement,_e=t,pe=e.nodes[0],Z=e.nodes[1],pe(),Z(),A=history.state?.[D],R=history.state?.[Y],A||(A=R=Date.now(),history.replaceState({...history.state,[D]:A,[Y]:R},""));const n=x[A];function r(){n&&(history.scrollRestoration="manual",scrollTo(n.x,n.y))}a?(r(),await ea(_e,a)):(await $({type:"enter",url:ye(k.hash?aa(new URL(location.href)):location.href),replace_state:!0}),r()),Qt()}function Vt(){Q.length=0,Re=!1}function We(e){ee.some(t=>t?.snapshot)&&(H[e]=ee.map(t=>t?.snapshot?.capture()))}function ze(e){H[e]?.forEach((t,a)=>{ee[a]?.snapshot?.restore(t)})}function De(){ke(A),Oe(Ve,x),We(R),Oe(qe,H)}async function Xe(e,t,a,n){let r;t.invalidateAll&&me(),await $({type:"goto",url:ye(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:a,nav_token:n,accept:()=>{t.invalidateAll&&(Re=!0,r=[...xe.keys()]),t.invalidate&&t.invalidate.forEach(Zt)}}),t.invalidateAll&&X().then(X).then(()=>{xe.forEach(({resource:i},o)=>{r?.includes(o)&&i.refresh?.()})})}async function Kt(e){if(e.id!==P?.id){me();const t={};K.add(t),P={id:e.id,token:t,promise:Ze({...e,preload:t}).then(a=>(K.delete(t),a.type==="loaded"&&a.state.error&&me(),a)),fork:null}}return P.promise}async function ue(e){const t=(await ie(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(a=>a?.[1]()))}async function Je(e,t,a){g=e.state;const n=document.querySelector("style[data-sveltekit]");if(n&&n.remove(),Object.assign(L,e.props.page),Ge=new k.root({target:t,props:{...e.props,stores:N,components:ee},hydrate:a,sync:!1}),await Promise.resolve(),ze(R),a){const r={from:null,to:{params:g.params,route:{id:g.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};V.forEach(i=>i(r))}te=!0}function ae({url:e,params:t,branch:a,status:n,error:r,route:i,form:o}){let c="never";if(U&&(e.pathname===U||e.pathname===U+"/"))c="always";else for(const u of a)u?.slash!==void 0&&(c=u.slash);e.pathname=ct(e.pathname,c),e.search=e.search;const s={type:"loaded",state:{url:e,params:t,branch:a,error:r,route:i},props:{constructors:Ct(a).map(u=>u.node.component),page:Pe(L)}};o!==void 0&&(s.props.form=o);let l={},d=!L,h=0;for(let u=0;u<Math.max(a.length,g.branch.length);u+=1){const f=a[u],y=g.branch[u];f?.data!==y?.data&&(d=!0),f&&(l={...l,...f.data},d&&(s.props[`data_${h}`]=l),h+=1)}return(!g.url||e.href!==g.url.href||g.error!==r||o!==void 0&&o!==L.form||d)&&(s.props.page={error:r,params:t,route:{id:i?.id??null},state:{},status:n,url:new URL(e),form:o??null,data:d?l:L.data}),s}async function Te({loader:e,parent:t,url:a,params:n,route:r,server_data_node:i}){let o=null;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},s=await e();return{node:s,loader:e,server:i,universal:s.universal?.load?{type:"data",data:o,uses:c}:null,data:o??i?.data??null,slash:s.universal?.trailingSlash??i?.slash}}function Yt(e,t,a){let n=e instanceof Request?e.url:e;const r=new URL(n,a);r.origin===a.origin&&(n=r.href.slice(a.origin.length));const i=te?ut(n,r.href,t):dt(n,t);return{resolved:r,promise:i}}function $e(e,t,a,n,r,i){if(Re)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&a)return!0;for(const o of r.search_params)if(n.has(o))return!0;for(const o of r.params)if(i[o]!==g.params[o])return!0;for(const o of r.dependencies)if(Q.some(c=>c(new URL(o))))return!0;return!1}function Le(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Ht(e,t){if(!e)return new Set(t.searchParams.keys());const a=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const n of a){const r=e.searchParams.getAll(n),i=t.searchParams.getAll(n);r.every(o=>i.includes(o))&&i.every(o=>r.includes(o))&&a.delete(n)}return a}function Be({error:e,url:t,route:a,params:n}){return{type:"loaded",state:{error:e,url:t,route:a,params:n,branch:[]},props:{page:Pe(L),constructors:[]}}}async function Ze({id:e,invalidating:t,url:a,params:n,route:r,preload:i}){if(P?.id===e)return K.delete(P.token),P.promise;const{errors:o,layouts:c,leaf:s}=r,l=[...c,s];o.forEach(m=>m?.().catch(()=>{})),l.forEach(m=>m?.[1]().catch(()=>{}));let d=null;const h=g.url?e!==ne(g.url):!1,p=g.route?r.id!==g.route.id:!1,u=Ht(g.url,a);let f=!1;{const m=l.map((w,E)=>{const S=g.branch[E],v=!!w?.[0]&&(S?.loader!==w[1]||$e(f,p,h,u,S.server?.uses,n));return v&&(f=!0),v});if(m.some(Boolean)){try{d=await tt(a,m)}catch(w){const E=await B(w,{url:a,params:n,route:{id:e}});return K.has(i)?Be({error:E,url:a,params:n,route:r}):se({status:J(w),error:E,url:a,route:r})}if(d.type==="redirect")return d}}const y=d?.nodes;let b=!1;const _=l.map(async(m,w)=>{if(!m)return;const E=g.branch[w],S=y?.[w];if((!S||S.type==="skip")&&m[1]===E?.loader&&!$e(b,p,h,u,E.universal?.uses,n))return E;if(b=!0,S?.type==="error")throw S;return Te({loader:m[1],url:a,params:n,route:r,parent:async()=>{const C={};for(let I=0;I<w;I+=1)Object.assign(C,(await _[I])?.data);return C},server_data_node:Le(S===void 0&&m[0]?{type:"skip"}:S??null,m[0]?E?.server:void 0)})});for(const m of _)m.catch(()=>{});const T=[];for(let m=0;m<l.length;m+=1)if(l[m])try{T.push(await _[m])}catch(w){if(w instanceof be)return{type:"redirect",location:w.location};if(K.has(i))return Be({error:await B(w,{params:n,url:a,route:{id:r.id}}),url:a,params:n,route:r});let E=J(w),S;if(y?.includes(w))E=w.status??E,S=w.error;else if(w instanceof oe)S=w.body;else{if(await N.updated.check())return await Ye(),await F(a);S=await B(w,{params:n,url:a,route:{id:r.id}})}const v=await Gt(m,T,o);return v?ae({url:a,params:n,branch:T.slice(0,v.idx).concat(v.node),status:E,error:S,route:r}):await et(a,{id:r.id},S,E)}else T.push(void 0);return ae({url:a,params:n,branch:T,status:200,error:null,route:r,form:t?void 0:null})}async function Gt(e,t,a){for(;e--;)if(a[e]){let n=e;for(;!t[n];)n-=1;try{return{idx:n+1,node:{node:await a[e](),loader:a[e],data:{},server:null,universal:null}}}catch{continue}}}async function se({status:e,error:t,url:a,route:n}){const r={};let i=null;if(k.server_loads[0]===0)try{const c=await tt(a,[!0]);if(c.type!=="data"||c.nodes[0]&&c.nodes[0].type!=="data")throw 0;i=c.nodes[0]??null}catch{(a.origin!==ve||a.pathname!==location.pathname||Ie)&&await F(a)}try{const o=await Te({loader:pe,url:a,params:r,route:n,parent:()=>Promise.resolve({}),server_data_node:Le(i)}),c={node:await Z(),loader:Z,universal:null,server:null,data:null};return ae({url:a,params:r,branch:[o,c],status:e,error:t,route:null})}catch(o){if(o instanceof be)return Xe(new URL(o.location,location.href),{},0);throw o}}async function Wt(e){const t=e.href;if(W.has(t))return W.get(t);let a;try{const n=(async()=>
1{let r=await k.hooks.reroute({url:new URL(e),fetch:async(i,o)=>Yt(i,o,e).promise})??e;if(typeof r=="string"){const i=new URL(e);k.hash?i.hash=r:i.pathname=r,r=i}return r})();W.set(t,n),a=await n}catch{W.delete(t);return}return a}async function ie(e,t){if(e&&!we(e,U,k.hash)){const a=await Wt(e);if(!a)return;const n=zt(a);for(const r of Se){const i=r.exec(n);if(i)return{id:ne(e),invalidating:t,route:r,params:it(i),url:e}}}}function zt(e){return lt(k.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(U.length))||"/"}function ne(e){return(k.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function Qe({url:e,type:t,intent:a,delta:n,event:r}){let i=!1;const o=Ue(g,a,e,t);n!==void 0&&(o.navigation.delta=n),r!==void 0&&(o.navigation.event=r);const c={...o.navigation,cancel:()=>{i=!0,o.reject(new Error("navigation cancelled"))}};return G||Ae.forEach(s=>s(c)),i?null:o}async function $({type:e,url:t,popped:a,keepfocus:n,noscroll:r,replace_state:i,state:o={},redirect_count:c=0,nav_token:s={},accept:l=Ne,block:d=Ne,event:h}){const p=j;j=s;const u=await ie(t,!1),f=e==="enter"?Ue(g,u,t,e):Qe({url:t,type:e,delta:a?.delta,intent:u,event:h});if(!f){d(),j===s&&(j=p);return}const y=A,b=R;l(),G=!0,te&&f.navigation.type!=="enter"&&N.navigating.set(de.current=f.navigation);let _=u&&await Ze(u);if(!_){if(we(t,U,k.hash))return await F(t,i);_=await et(t,{id:null},await B(new Ee(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=u?.url||t,j!==s)return f.reject(new Error("navigation aborted")),!1;if(_.type==="redirect"){if(c<20){await $({type:e,url:new URL(_.location,t),popped:a,keepfocus:n,noscroll:r,replace_state:i,state:o,redirect_count:c+1,nav_token:s}),f.fulfil(void 0);return}_=await se({status:500,error:await B(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else _.props.page.status>=400&&await N.updated.check()&&(await Ye(),await F(t,i));if(Vt(),ke(y),We(b),_.props.page.url.pathname!==t.pathname&&(t.pathname=_.props.page.url.pathname),o=a?a.state:o,!a){const v=i?0:1,C={[D]:A+=v,[Y]:R+=v,[Me]:o};(i?history.replaceState:history.pushState).call(history,C,"",t),i||Mt(A,R)}const T=u&&P?.id===u.id?P.fork:null;P=null,_.props.page.state=o;let m;if(te){const v=(await Promise.all(Array.from(qt,I=>I(f.navigation)))).filter(I=>typeof I=="function");if(v.length>0){let I=function(){v.forEach(ce=>{V.delete(ce)})};v.push(I),v.forEach(ce=>{V.add(ce)})}g=_.state,_.props.page&&(_.props.page.url=t);const C=T&&await T;C?m=C.commit():(Ge.$set(_.props),ht(_.props.page),m=pt?.()),He=!0}else await Je(_,_e,!1);const{activeElement:w}=document;await m,await X(),await X();let E=a?a.scroll:r?re():null;if(je){const v=t.hash&&document.getElementById(nt(t));if(E)scrollTo(E.x,E.y);else if(v){v.scrollIntoView();const{top:C,left:I}=v.getBoundingClientRect();E={x:pageXOffset+I,y:pageYOffset+C}}else scrollTo(0,0)}const S=document.activeElement!==w&&document.activeElement!==document.body;!n&&!S&&ta(t,E),je=!0,_.props.page&&Object.assign(L,_.props.page),G=!1,e==="popstate"&&ze(R),f.fulfil(void 0),V.forEach(v=>v(f.navigation)),N.navigating.set(de.current=null)}async function et(e,t,a,n,r){return e.origin===ve&&e.pathname===location.pathname&&!Ie?await se({status:n,error:a,url:e,route:t}):await F(e,r)}function Xt(){let e,t={element:void 0,href:void 0},a;O.addEventListener("mousemove",c=>{const s=c.target;clearTimeout(e),e=setTimeout(()=>{i(s,M.hover)},20)});function n(c){c.defaultPrevented||i(c.composedPath()[0],M.tap)}O.addEventListener("mousedown",n),O.addEventListener("touchstart",n,{passive:!0});const r=new IntersectionObserver(c=>{for(const s of c)s.isIntersecting&&(ue(new URL(s.target.href)),r.unobserve(s.target))},{threshold:0});async function i(c,s){const l=Fe(c,O),d=l===t.element&&l?.href===t.href&&s>=a;if(!l||d)return;const{url:h,external:p,download:u}=he(l,U,k.hash);if(p||u)return;const f=z(l),y=h&&ne(g.url)===ne(h);if(!(f.reload||y))if(s<=f.preload_data){t={element:l,href:l.href},a=M.tap;const b=await ie(h,!1);if(!b)return;Kt(b)}else s<=f.preload_code&&(t={element:l,href:l.href},a=s,ue(h))}function o(){r.disconnect();for(const c of O.querySelectorAll("a")){const{url:s,external:l,download:d}=he(c,U,k.hash);if(l||d)continue;const h=z(c);h.reload||(h.preload_code===M.viewport&&r.observe(c),h.preload_code===M.eager&&ue(s))}}V.add(o),o()}function B(e,t){if(e instanceof oe)return e.body;const a=J(e),n=jt(e);return k.hooks.handleError({error:e,event:t,status:a,message:n})??{message:n}}function Jt(e,t){Bt(()=>(e.add(t),()=>{e.delete(t)}))}function ca(e){Jt(Ae,e)}function la(e,t={}){return e=new URL(ye(e)),e.origin!==ve?Promise.reject(new Error("goto: invali
1d URL")):Xe(e,t,0)}function Zt(e){if(typeof e=="function")Q.push(e);else{const{href:t}=new URL(e,location.href);Q.push(a=>a.href===t)}}function Qt(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let a=!1;if(De(),!G){const n=Ue(g,void 0,null,"leave"),r={...n.navigation,cancel:()=>{a=!0,n.reject(new Error("navigation cancelled"))}};Ae.forEach(i=>i(r))}a?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&De()}),navigator.connection?.saveData||Xt(),O.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const a=Fe(t.composedPath()[0],O);if(!a)return;const{url:n,external:r,target:i,download:o}=he(a,U,k.hash);if(!n)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=z(a);if(!(a instanceof SVGAElement)&&n.protocol!==location.protocol&&!(n.protocol==="https:"||n.protocol==="http:")||o)return;const[l,d]=(k.hash?n.hash.replace(/^#/,""):n.href).split("#"),h=l===le(location);if(r||c.reload&&(!h||!d)){Qe({url:n,type:"link",event:t})?G=!0:t.preventDefault();return}if(d!==void 0&&h){const[,p]=g.url.href.split("#");if(p===d){if(t.preventDefault(),d===""||d==="top"&&a.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=a.ownerDocument.getElementById(decodeURIComponent(d));u&&(u.scrollIntoView(),u.focus())}return}if(q=!0,ke(A),e(n),!c.replace_state)return;q=!1}t.preventDefault(),await new Promise(p=>{requestAnimationFrame(()=>{setTimeout(p,0)}),setTimeout(p,100)}),await $({type:"link",url:n,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??n.href===location.href,event:t})}),O.addEventListener("submit",t=>{if(t.defaultPrevented)return;const a=HTMLFormElement.prototype.cloneNode.call(t.target),n=t.submitter;if((n?.formTarget||a.target)==="_blank"||(n?.formMethod||a.method)!=="get")return;const o=new URL(n?.hasAttribute("formaction")&&n?.formAction||a.action);if(we(o,U,!1))return;const c=t.target,s=z(c);if(s.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(c,n);o.search=new URLSearchParams(l).toString(),$({type:"form",url:o,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!ge){if(t.state?.[D]){const a=t.state[D];if(j={},a===A)return;const n=x[a],r=t.state[Me]??{},i=new URL(t.state[st]??location.href),o=t.state[Y],c=g.url?le(location)===le(g.url):!1;if(o===R&&(He||c)){r!==L.state&&(L.state=r),e(i),x[A]=re(),n&&scrollTo(n.x,n.y),A=a;return}const l=a-A;await $({type:"popstate",url:i,popped:{state:r,scroll:n,delta:l},accept:()=>{A=a,R=o},block:()=>{history.go(-l)},nav_token:j,event:t})}else if(!q){const a=new URL(location.href);e(a),k.hash&&location.reload()}}}),addEventListener("hashchange",()=>{q&&(q=!1,history.replaceState({...history.state,[D]:++A,[Y]:R},"",location.href))});for(const t of document.querySelectorAll("link"))Ft.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&N.navigating.set(de.current=null)});function e(t){g.url=L.url=t,N.page.set(Pe(L)),N.page.notify()}}async function ea(e,{status:t=200,error:a,node_ids:n,params:r,route:i,server_route:o,data:c,form:s}){Ie=!0;const l=new URL(location.href);let d;({params:r={},route:i={id:null}}=await ie(l,!1)||{}),d=Se.find(({id:u})=>u===i.id);let h,p=!0;try{const u=n.map(async(y,b)=>{const _=c[b];return _?.uses&&(_.uses=at(_.uses)),Te({loader:k.nodes[y],url:l,params:r,route:i,parent:async()=>{const T={};for(let m=0;m<b;m+=1)Object.assign(T,(await u[m]).data);return T},server_data_node:Le(_)})}),f=await Promise.all(u);if(d){const y=d.layouts;for(let b=0;b<y.length;b++)y[b]||f.splice(b,0,void 0)}
1h=ae({url:l,params:r,branch:f,status:t,error:a,form:s,route:d??null})}catch(u){if(u instanceof be){await F(new URL(u.location,location.href));return}h=await se({status:J(u),error:await B(u,{url:l,params:r,route:i}),url:l,route:i}),e.textContent="",p=!1}h.props.page&&(h.props.page.state={}),await Je(h,e,p)}async function tt(e,t){const a=new URL(e);a.pathname=$t(e.pathname),e.pathname.endsWith("/")&&a.searchParams.append(Nt,"1"),a.searchParams.append(Ot,t.map(i=>i?"1":"0").join(""));const n=window.fetch,r=await n(a.href,{});if(!r.ok){let i;throw r.headers.get("content-type")?.includes("application/json")?i=await r.json():r.status===404?i="Not Found":r.status===500&&(i="Internal Error"),new oe(r.status,i)}return new Promise(async i=>{const o=new Map,c=r.body.getReader();function s(d){return Pt(d,{...k.decoders,Promise:h=>new Promise((p,u)=>{o.set(h,{fulfil:p,reject:u})})})}let l="";for(;;){const{done:d,value:h}=await c.read();if(d&&!l)break;for(l+=!h&&l?` 2`:ft.decode(h,{stream:!0});;){const p=l.indexOf(` 3`);if(p===-1)break;const u=JSON.parse(l.slice(0,p));if(l=l.slice(p+1),u.type==="redirect")return i(u);if(u.type==="data")u.nodes?.forEach(f=>{f?.type==="data"&&(f.uses=at(f.uses),f.data=s(f.data))}),i(u);else if(u.type==="chunk"){const{id:f,data:y,error:b}=u,_=o.get(f);o.delete(f),b?_.reject(s(b)):_.fulfil(s(y))}}}})}function at(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 ge=!1;function ta(e,t=null){const a=document.querySelector("[autofocus]");if(a)a.focus();else{const n=nt(e);if(n&&document.getElementById(n)){const{x:i,y:o}=t??re();setTimeout(()=>{const c=history.state;ge=!0,location.replace(`#${n}`),k.hash&&location.replace(e.hash),history.replaceState(c,"",e.hash),scrollTo(i,o),ge=!1})}else{const i=document.body,o=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),o!==null?i.setAttribute("tabindex",o):i.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const i=[];for(let o=0;o<r.rangeCount;o+=1)i.push(r.getRangeAt(o));setTimeout(()=>{if(r.rangeCount===i.length){for(let o=0;o<r.rangeCount;o+=1){const c=i[o],s=r.getRangeAt(o);if(c.commonAncestorContainer!==s.commonAncestorContainer||c.startContainer!==s.startContainer||c.endContainer!==s.endContainer||c.startOffset!==s.startOffset||c.endOffset!==s.endOffset)return}r.removeAllRanges()}})}}}function Ue(e,t,a,n){let r,i;const o=new Promise((s,l)=>{r=s,i=l});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:a&&{params:t?.params??null,route:{id:t?.route?.id??null},url:a},willUnload:!t,type:n,complete:o},fulfil:r,reject:i}}function Pe(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 aa(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function nt(e){let t;if(k.hash){const[,,a]=e.hash.split("#",3);t=a??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{ia as a,ca as b,la as g,N 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.