1var Jt=t=>{throw TypeError(t)};var Pe=(t,e,n)=>e.has(t)||Jt("Cannot "+n);var y=(t,e,n)=>(Pe(t,e,"read from private field"),n?n.call(t):e.get(t)),L=(t,e,n)=>e.has(t)?Jt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n);import{R as $t,z as Xt,a1 as T,l as P,v as I,a2 as ht,bG as Ie}from"./Cg_LLIlQ.js";import{a as Oe,b as U}from"./D8ZST4OA.js";class Nt{constructor(e,n){this.status=e,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}}class jt{constructor(e,n){this.status=e,this.location=n}}class Dt extends Error{constructor(e,n,r){super(r),this.status=e,this.text=n}}new URL("sveltekit-internal://");function Ce(t,e){return t==="/"||e==="ignore"?t:e==="never"?t.endsWith("/")?t.slice(0,-1):t:e==="always"&&!t.endsWith("/")?t+"/":t}function $e(t){return t.split("%25").map(decodeURI).join("%25")}function Ne(t){for(const e in t)t[e]=decodeURIComponent(t[e]);return t}function xt({href:t}){return t.split("#")[0]}function je(t,e,n,r=!1){const a=new URL(t);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(o,i){if(i==="get"||i==="getAll"||i==="has")return(c,...p)=>(n(c),o[i](c,...p));e();const l=Reflect.get(o,i);return typeof l=="function"?l.bind(o):l}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const o of s)Object.defineProperty(a,o,{get(){return e(),t[o]},enumerable:!0,configurable:!0});return a}function De(...t){let e=5381;for(const n of t)if(typeof n=="string"){let r=n.length;for(;r;)e=e*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)e=e*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}new TextEncoder;new TextDecoder;function qe(t){const e=atob(t),n=new Uint8Array(e.length);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n}const Ve=window.fetch;window.fetch=(t,e)=>((t instanceof Request?t.method:(e==null?void 0:e.method)||"GET")!=="GET"&&W.delete(qt(t)),Ve(t,e));const W=new Map;function Be(t,e){const n=qt(t,e),r=document.querySelector(n);if(r!=null&&r.textContent){r.remove();let{body:a,...s}=JSON.parse(r.textContent);const o=r.getAttribute("data-ttl");return o&&W.set(n,{body:a,init:s,ttl:1e3*Number(o)}),r.getAttribute("data-b64")!==null&&(a=qe(a)),Promise.resolve(new Response(a,s))}return window.fetch(t,e)}function Ge(t,e,n){if(W.size>0){const r=qt(t,n),a=W.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n==null?void 0:n.cache))return new Response(a.body,a.init);W.delete(r)}}return window.fetch(e,n)}function qt(t,e){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(t instanceof Request?t.url:t)}]`;if(e!=null&&e.headers||e!=null&&e.body){const a=[];e.headers&&a.push([...new Headers(e.headers)].join(",")),e.body&&(typeof e.body=="string"||ArrayBuffer.isView(e.body))&&a.push(e.body),r+=`[data-hash="${De(...a)}"]`}return r}const Ke=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Fe(t){const e=[];return{pattern:t==="/"?/^\/$/:new RegExp(`^${He(t).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return e.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return e.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const o=r.split(/\[(.+?)\](?!\])/);return"/"+o.map((l,c)=>{if(c%2){if(l.startsWith("x+"))return At(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return At(String.fromCharCode(...l.slice(2).split("-").map(f=>parseInt(f,16))));const p=Ke.exec(l),[,h,w,u,m]=p;return e.push({name:u,matcher:m,optional:!!h,rest:!!w,chained:w?c===1&&o[0]==="":!1}),w?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return At(l)}).join("")}).join("")}/?$`),params:e}}function Me(t){return t!==""&&!/^\([^)]+\)$/.test(t)}function He(t){return t.slice(1).split("/").filter(Me)}function We(t,e,n){const r={},a=t.slice(1),s=a.filter(i=>i!==void 0);let o=0;for(let i=0;i<e.length;i+=1){const l=e[i];let c=a[i-o];if(l.chained&&l.rest&&o&&(c=a.slice(i-o,i+1).filter(p=>p).join("/"),o=0),c===void 0){l.rest&&(r[l.name]="");continue}if(!l.matcher||n[l.matcher](c)){r[l.name]=c;const p=e[i+1],h=a[i+1];p&&!p.rest&&p.optional&&h&&l.chained&&(o=0),!p&&!h&&Object.keys(r).length===s.length&&(o=0);continue}if(l.optional&&l.chained){o++;continue}return}if(!o)return r}function At(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ye({nodes:t,server_loads:e,dictionary:n,matchers:r}){const a=new Set(e);return Object.entries(n).map(([i,[l,c,p]])=>{const{pattern:h,params:w}=Fe(i),u={id:i,exec:m=>{const f=h.exec(m);if(f)return We(f,w,r)},errors:[1,...p||[]].map(m=>t[m]),layouts:[0,...c||[]].map(o),leaf:s(l)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function s(i){const l=i<0;return l&&(i=~i),[l,t[i]]}function o(i){return i===void 0?i:[a.has(i),t[i]]}}function ce(t,e=JSON.parse){try{return e(sessionStorage[t])}catch{}}function Qt(t,e,n=JSON.stringify){const r=n(e);try{sessionStorage[t]=r}catch{}}
1const ze="1790173350557",fe="sveltekit:snapshot",ue="sveltekit:scroll",de="sveltekit:states",Je="sveltekit:pageurl",F="sveltekit:history",z="sveltekit:navigation",D={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Vt=location.origin;function he(t){if(t instanceof URL)return t;let e=document.baseURI;if(!e){const n=document.getElementsByTagName("base");e=n.length?n[0].href:document.URL}return new URL(t,e)}function kt(){return{x:pageXOffset,y:pageYOffset}}function K(t,e){return t.getAttribute(`data-sveltekit-${e}`)}const Zt={...D,"":D.hover};function pe(t){let e=t.assignedSlot??t.parentNode;return(e==null?void 0:e.nodeType)===11&&(e=e.host),e}function ge(t,e){for(;t&&t!==e;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=pe(t)}}function Tt(t,e,n){let r;try{if(r=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const i=location.hash.split("#")[1]||"/";r.hash=`#${i}${r.hash}`}}catch{}const a=t instanceof SVGAElement?t.target.baseVal:t.target,s=!r||!!a||Et(r,e,n)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(r==null?void 0:r.origin)===Vt&&t.hasAttribute("download");return{url:r,external:s,target:a,download:o}}function pt(t){let e=null,n=null,r=null,a=null,s=null,o=null,i=t;for(;i&&i!==document.documentElement;)r===null&&(r=K(i,"preload-code")),a===null&&(a=K(i,"preload-data")),e===null&&(e=K(i,"keepfocus")),n===null&&(n=K(i,"noscroll")),s===null&&(s=K(i,"reload")),o===null&&(o=K(i,"replacestate")),i=pe(i);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Zt[r??"off"],preload_data:Zt[a??"off"],keepfocus:l(e),noscroll:l(n),reload:l(s),replace_state:l(o)}}function te(t){const e=$t(t);let n=!0;function r(){n=!0,e.update(o=>o)}function a(o){n=!1,e.set(o)}function s(o){let i;return e.subscribe(l=>{(i===void 0||n&&l!==i)&&o(i=l)})}return{notify:r,set:a,subscribe:s}}const me={v:()=>{}};function Xe(){const{set:t,subscribe:e}=$t(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Oe}/_web/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const o=(await a.json()).version!==ze;return o&&(t(!0),me.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:e,check:r}}function Et(t,e,n){return t.origin!==Vt||!t.pathname.startsWith(e)?!0:n?t.pathname!==location.pathname:!1}function An(t){}const _e=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[..._e];const Qe=new Set([..._e]);[...Qe];function Ze(t){return t.filter(e=>e!=null)}function Bt(t){return t instanceof Nt||t instanceof Dt?t.status:500}function tn(t){return t instanceof Dt?t.text:"Internal Error"}let R,J,Lt;const en=Xt.toString().includes("$$")||/function \w+\(\) \{\}/.test(Xt.toString());var et,nt,at,rt,ot,st,it,lt,se,ct,ie,ft,le;en?(R={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},J={current:null},Lt={current:!1}):(R=new(se=class{constructor(){L(this,et,T({}));L(this,nt,T(null));L(this,at,T(null));L(this,rt,T({}));L(this,ot,T({id:null}));L(this,st,T({}));L(this,it,T(-1));L(this,lt,T(new URL("https://example.com")))}get data(){return P(y(this,et))}set data(e){I(y(this,et),e)}get form(){return P(y(this,nt))}set form(e){I(y(this,nt),e)}get error(){return P(y(this,at))}set error(e){I(y(this,at),e)}get params(){return P(y(this,rt))}set params(e){I(y(this,rt),e)}get route(){return P(y(this,ot))}set route(e){I(y(this,ot),e)}get state(){return P(y(this,st))}set state(e){I(y(this,st),e)}get status(){return P(y(this,it))}set status(e){I(y(this,it),e)}get url(){return P(y(this,lt))}set url(e){I(y(this,lt),e)}},et=new WeakMap,nt=new WeakMap,at=new WeakMap,rt=new WeakMap,ot=new WeakMap,st=new WeakMap,it=new WeakMap,lt=new WeakMap,se),J=new(ie=class{constructor(){L(this,ct,T(null))}get current(){return P(y(this,ct))}set current(e){I(y(this,ct),e)}},ct=new WeakMap,ie),Lt=new(le=class{constructor(){L(this,ft,T(!1))}get current(){return P(y(this,ft))}set current(e){I(y(this,ft),e)}},ft=new WeakMap,le),me.v=()=>Lt.current=!0);function nn(t){Object.assign(R,t)}const ee={spanContext(){return an},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},an={traceId:"",spanId:"",traceFlags:0},rn=new Set(["icon","shortcut icon","apple-touch-icon"]),V=ce(ue)??{},X=ce(fe)??{},j={url:te({}),page:te({}),navigating:$t(null),updated:Xe()};function Gt(t){V[t]=kt()}function on(t,e){let n=t+1;for(;V[n];)delete V[n],n+=1;for(n=e+1;X[n];)delete X[n],n+=1}function Q(t,e=!1){return e?location.replace(t.href):location.href=t.href,new Promise(()=>{})}
1async function we(){if("serviceWorker"in navigator){const t=await navigator.serviceWorker.getRegistration(U||"/");t&&await t.update()}}function ne(){}let Kt,Pt,gt,C,It,k;const mt=[],_t=[];let b=null;function Ot(){var t;(t=b==null?void 0:b.fork)==null||t.then(e=>e==null?void 0:e.discard()),b=null}const dt=new Map,ye=new Set,sn=new Set,Y=new Set;let _={branch:[],error:null,url:null},ve=!1,wt=!1,ae=!0,Z=!1,H=!1,be=!1,Ft=!1,ke,E,A,q;const yt=new Set,re=new Map;async function Pn(t,e,n){var s,o,i,l,c;(s=globalThis.__sveltekit_1so8o9q)!=null&&s.data&&globalThis.__sveltekit_1so8o9q.data,document.URL!==location.href&&(location.href=location.href),k=t,await((i=(o=t.hooks).init)==null?void 0:i.call(o)),Kt=Ye(t),C=document.documentElement,It=e,Pt=t.nodes[0],gt=t.nodes[1],Pt(),gt(),E=(l=history.state)==null?void 0:l[F],A=(c=history.state)==null?void 0:c[z],E||(E=A=Date.now(),history.replaceState({...history.state,[F]:E,[z]:A},""));const r=V[E];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await vn(It,n)):(await M({type:"enter",url:he(k.hash?En(new URL(location.href)):location.href),replace_state:!0}),a()),yn()}function ln(){mt.length=0,Ft=!1}function Ee(t){_t.some(e=>e==null?void 0:e.snapshot)&&(X[t]=_t.map(e=>{var n;return(n=e==null?void 0:e.snapshot)==null?void 0:n.capture()}))}function Se(t){var e;(e=X[t])==null||e.forEach((n,r)=>{var a,s;(s=(a=_t[r])==null?void 0:a.snapshot)==null||s.restore(n)})}function oe(){Gt(E),Qt(ue,V),Ee(A),Qt(fe,X)}async function cn(t,e,n,r){let a;e.invalidateAll&&Ot(),await M({type:"goto",url:he(t),keepfocus:e.keepFocus,noscroll:e.noScroll,replace_state:e.replaceState,state:e.state,redirect_count:n,nav_token:r,accept:()=>{e.invalidateAll&&(Ft=!0,a=[...re.keys()]),e.invalidate&&e.invalidate.forEach(wn)}}),e.invalidateAll&&ht().then(ht).then(()=>{re.forEach(({resource:s},o)=>{var i;a!=null&&a.includes(o)&&((i=s.refresh)==null||i.call(s))})})}async function fn(t){if(t.id!==(b==null?void 0:b.id)){Ot();const e={};yt.add(e),b={id:t.id,token:e,promise:Ae({...t,preload:e}).then(n=>(yt.delete(e),n.type==="loaded"&&n.state.error&&Ot(),n)),fork:null}}return b.promise}async function Ut(t){var n;const e=(n=await St(t,!1))==null?void 0:n.route;e&&await Promise.all([...e.layouts,e.leaf].map(r=>r==null?void 0:r[1]()))}async function Re(t,e,n){var a;_=t.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(R,t.props.page),ke=new k.root({target:e,props:{...t.props,stores:j,components:_t},hydrate:n,sync:!1}),await Promise.resolve(),Se(A),n){const s={from:null,to:{params:_.params,route:{id:((a=_.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};Y.forEach(o=>o(s))}wt=!0}function vt({url:t,params:e,branch:n,status:r,error:a,route:s,form:o}){let i="never";if(U&&(t.pathname===U||t.pathname===U+"/"))i="always";else for(const u of n)(u==null?void 0:u.slash)!==void 0&&(i=u.slash);t.pathname=Ce(t.pathname,i),t.search=t.search;const l={type:"loaded",state:{url:t,params:e,branch:n,error:a,route:s},props:{constructors:Ze(n).map(u=>u.node.component),page:zt(R)}};o!==void 0&&(l.props.form=o);let c={},p=!R,h=0;for(let u=0;u<Math.max(n.length,_.branch.length);u+=1){const m=n[u],f=_.branch[u];(m==null?void 0:m.data)!==(f==null?void 0:f.data)&&(p=!0),m&&(c={...c,...m.data},p&&(l.props[`data_${h}`]=c),h+=1)}return(!_.url||t.href!==_.url.href||_.error!==a||o!==void 0&&o!==R.form||p)&&(l.props.page={error:a,params:e,route:{id:(s==null?void 0:s.id)??null},state:{},status:r,url:new URL(t),form:o??null,data:p?c:R.data}),l}async function Mt({loader:t,parent:e,url:n,params:r,route:a,server_data_node:s}){var p,h,w;let o=null,i=!0;const l={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await t();if((p=c.universal)!=null&&p.load){let u=function(...f){for(const d of f){const{href:g}=new URL(d,n);l.dependencies.add(g)}};const m={tracing:{enabled:!1,root:ee,current:ee},route:new Proxy(a,{get:(f,d)=>(i&&(l.route=!0),f[d])}),params:new Proxy(r,{get:(f,d)=>(i&&l.params.add(d),f[d])}),data:(s==null?void 0:s.data)??null,url:je(n,()=>{i&&(l.url=!0)},f=>{i&&l.search_params.add(f)},k.hash),async fetch(f,d){f instanceof Request&&(d={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:[...f.headers].length>0?f==null?void 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.
1signal,...d});const{resolved:g,promise:v}=xe(f,d,n);return i&&u(g.href),v},setHeaders:()=>{},depends:u,parent(){return i&&(l.parent=!0),e()},untrack(f){i=!1;try{return f()}finally{i=!0}}};o=await c.universal.load.call(null,m)??null}return{node:c,loader:t,server:s,universal:(h=c.universal)!=null&&h.load?{type:"data",data:o,uses:l}:null,data:o??(s==null?void 0:s.data)??null,slash:((w=c.universal)==null?void 0:w.trailingSlash)??(s==null?void 0:s.slash)}}function xe(t,e,n){let r=t instanceof Request?t.url:t;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=wt?Ge(r,a.href,e):Be(r,e);return{resolved:a,promise:s}}function un(t,e,n,r,a,s){if(Ft)return!0;if(!a)return!1;if(a.parent&&t||a.route&&e||a.url&&n)return!0;for(const o of a.search_params)if(r.has(o))return!0;for(const o of a.params)if(s[o]!==_.params[o])return!0;for(const o of a.dependencies)if(mt.some(i=>i(new URL(o))))return!0;return!1}function Ht(t,e){return(t==null?void 0:t.type)==="data"?t:(t==null?void 0:t.type)==="skip"?e??null:null}function dn(t,e){if(!t)return new Set(e.searchParams.keys());const n=new Set([...t.searchParams.keys(),...e.searchParams.keys()]);for(const r of n){const a=t.searchParams.getAll(r),s=e.searchParams.getAll(r);a.every(o=>s.includes(o))&&s.every(o=>a.includes(o))&&n.delete(r)}return n}function hn({error:t,url:e,route:n,params:r}){return{type:"loaded",state:{error:t,url:e,route:n,params:r,branch:[]},props:{page:zt(R),constructors:[]}}}async function Ae({id:t,invalidating:e,url:n,params:r,route:a,preload:s}){if((b==null?void 0:b.id)===t)return yt.delete(b.token),b.promise;const{errors:o,layouts:i,leaf:l}=a,c=[...i,l];o.forEach(d=>d==null?void 0:d().catch(()=>{})),c.forEach(d=>d==null?void 0:d[1]().catch(()=>{}));const p=_.url?t!==bt(_.url):!1,h=_.route?a.id!==_.route.id:!1,w=dn(_.url,n);let u=!1;const m=c.map(async(d,g)=>{var $;if(!d)return;const v=_.branch[g];return d[1]===(v==null?void 0:v.loader)&&!un(u,h,p,w,($=v.universal)==null?void 0:$.uses,r)?v:(u=!0,Mt({loader:d[1],url:n,params:r,route:a,parent:async()=>{var ut;const O={};for(let B=0;B<g;B+=1)Object.assign(O,(ut=await m[B])==null?void 0:ut.data);return O},server_data_node:Ht(d[0]?{type:"skip"}:null,d[0]?v==null?void 0:v.server:void 0)}))});for(const d of m)d.catch(()=>{});const f=[];for(let d=0;d<c.length;d+=1)if(c[d])try{f.push(await m[d])}catch(g){if(g instanceof jt)return{type:"redirect",location:g.location};if(yt.has(s))return hn({error:await tt(g,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let v=Bt(g),x;if(g instanceof Nt)x=g.body;else{if(await j.updated.check())return await we(),await Q(n);x=await tt(g,{params:r,url:n,route:{id:a.id}})}const $=await pn(d,f,o);return $?vt({url:n,params:r,branch:f.slice(0,$.idx).concat($.node),status:v,error:x,route:a}):await Ue(n,{id:a.id},x,v)}else f.push(void 0);
1return vt({url:n,params:r,branch:f,status:200,error:null,route:a,form:e?void 0:null})}async function pn(t,e,n){for(;t--;)if(n[t]){let r=t;for(;!e[r];)r-=1;try{return{idx:r+1,node:{node:await n[t](),loader:n[t],data:{},server:null,universal:null}}}catch{continue}}}async function Wt({status:t,error:e,url:n,route:r}){const a={};let s=null;try{const o=await Mt({loader:Pt,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:Ht(s)}),i={node:await gt(),loader:gt,universal:null,server:null,data:null};return vt({url:n,params:a,branch:[o,i],status:t,error:e,route:null})}catch(o){if(o instanceof jt)return cn(new URL(o.location,location.href),{},0);throw o}}async function gn(t){const e=t.href;if(dt.has(e))return dt.get(e);let n;try{const r=(async()=>{let a=await k.hooks.reroute({url:new URL(t),fetch:async(s,o)=>xe(s,o,t).promise})??t;if(typeof a=="string"){const s=new URL(t);k.hash?s.hash=a:s.pathname=a,a=s}return a})();dt.set(e,r),n=await r}catch{dt.delete(e);return}return n}async function St(t,e){if(t&&!Et(t,U,k.hash)){const n=await gn(t);if(!n)return;const r=mn(n);for(const a of Kt){const s=a.exec(r);if(s)return{id:bt(t),invalidating:e,route:a,params:Ne(s),url:t}}}}function mn(t){return $e(k.hash?t.hash.replace(/^#/,"").replace(/[?#].+/,""):t.pathname.slice(U.length))||"/"}function bt(t){return(k.hash?t.hash.replace(/^#/,""):t.pathname)+t.search}function Le({url:t,type:e,intent:n,delta:r,event:a}){let s=!1;const o=Yt(_,n,t,e);r!==void 0&&(o.navigation.delta=r),a!==void 0&&(o.navigation.event=a);const i={...o.navigation,cancel:()=>{s=!0,o.reject(new Error("navigation cancelled"))}};return Z||ye.forEach(l=>l(i)),s?null:o}async function M({type:t,url:e,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:o={},redirect_count:i=0,nav_token:l={},accept:c=ne,block:p=ne,event:h}){var B;const w=q;q=l;const u=await St(e,!1),m=t==="enter"?Yt(_,u,e,t):Le({url:e,type:t,delta:n==null?void 0:n.delta,intent:u,event:h});if(!m){p(),q===l&&(q=w);return}const f=E,d=A;c(),Z=!0,wt&&m.navigation.type!=="enter"&&j.navigating.set(J.current=m.navigation);let g=u&&await Ae(u);if(!g){if(Et(e,U,k.hash))return await Q(e,s);g=await Ue(e,{id:null},await tt(new Dt(404,"Not Found",`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404,s)}if(e=(u==null?void 0:u.url)||e,q!==l)return m.reject(new Error("navigation aborted")),!1;if(g.type==="redirect"){if(i<20){await M({type:t,url:new URL(g.location,e),popped:n,keepfocus:r,noscroll:a,replace_state:s,state:o,redirect_count:i+1,nav_token:l}),m.fulfil(void 0);return}g=await Wt({status:500,error:await tt(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}})}else g.props.page.status>=400&&await j.updated.check()&&(await we(),await Q(e,s));if(ln(),Gt(f),Ee(d),g.props.page.url.pathname!==e.pathname&&(e.pathname=g.props.page.url.pathname),o=n?n.state:o,!n){const S=s?0:1,G={[F]:E+=S,[z]:A+=S,[de]:o};(s?history.replaceState:history.pushState).call(history,G,"",e),s||on(E,A)}const v=u&&(b==null?void 0:b.id)===u.id?b.fork:null;b=null,g.props.page.state=o;let x;if(wt){const S=(await Promise.all(Array.from(sn,N=>N(m.navigation)))).filter(N=>typeof N=="function");if(S.length>0){let N=function(){S.forEach(Rt=>{Y.delete(Rt)})};S.push(N),S.forEach(Rt=>{Y.add(Rt)})}_=g.state,g.props.page&&(g.props.page.url=e);const G=v&&await v;G?x=G.commit():(ke.$set(g.props),nn(g.props.page),x=(B=Ie)==null?void 0:B()),be=!0}else await Re(g,It,!1);const{activeElement:$}=document;await x,await ht(),await ht();let O=n?n.scroll:a?kt():null;if(ae){const S=e.hash&&document.getElementById(Te(e));if(O)scrollTo(O.x,O.y);else if(S){S.scrollIntoView();const{top:G,left:N}=S.getBoundingClientRect();O={x:pageXOffset+N,y:pageYOffset+G}}else scrollTo(0,0)}const ut=document.activeElement!==$&&document.activeElement!==document.body;!r&&!ut&&kn(e,O),ae=!0,g.props.page&&Object.assign(R,g.props.page),Z=!1,t==="popstate"&&Se(A),m.fulfil(void 0),Y.forEach(S=>S(m.navigation)),j.navigating.set(J.current=null)}async function Ue(t,e,n,r,a){return t.origin===Vt&&t.pathname===location.pathname&&!ve?await Wt({status:r,error:n,url:t,route:e}):await Q(t,a)}function _n(){let t,e,n;C.addEventListener("mousemove",i=>{const l=i.target;clearTimeout(t),t=setTimeout(()=>{s(l,D.hover)},20)});function r(i){i.defaultPrevented||s(i.composedPath()[0],D.tap)}C.addEventListener("mousedown",r),C.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(i=>{for(const l of i)l.isIntersecting&&(Ut(new URL(l.target.href)),a.unobserve(l.target))},{threshold:0});async function s(i,l){const c=ge(i,C),p=c===e&&l>=n;if(!c||p)return;const{url:h,external:w,download:u}=Tt(c,U,k.hash);if(w||u)return;const m=pt(c),f=h&&bt(_.url)===bt(h);if(!(m.reload||f))if(l<=m.preload_data){e=c,n=D.tap;const d=await St(h,!1);if(!d)return;fn(d)}else l<=m.preload_code&&(e=c,n=l,Ut(h))}function o(){a.disconnect();for(const i of C.querySelectorAll("a")){const{url:l,external:c,download:p}=Tt(i,U,k.hash);if(c||p)continue;const h=pt(i);h.reload||(h.preload_code===D.viewport&&a.observe(i),h.preload_code===D.eager&&Ut(l))}}Y.add(o),o()}function tt(t,e){if(t instanceof Nt)return t.body;
1const n=Bt(t),r=tn(t);return k.hooks.handleError({error:t,event:e,status:n,message:r})??{message:r}}function wn(t){if(typeof t=="function")mt.push(t);else{const{href:e}=new URL(t,location.href);mt.push(n=>n.href===e)}}function yn(){var e;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let r=!1;if(oe(),!Z){const a=Yt(_,void 0,null,"leave"),s={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};ye.forEach(o=>o(s))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&oe()}),(e=navigator.connection)!=null&&e.saveData||_n(),C.addEventListener("click",async n=>{if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=ge(n.composedPath()[0],C);if(!r)return;const{url:a,external:s,target:o,download:i}=Tt(r,U,k.hash);if(!a)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const l=pt(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||i)return;const[p,h]=(k.hash?a.hash.replace(/^#/,""):a.href).split("#"),w=p===xt(location);if(s||l.reload&&(!w||!h)){Le({url:a,type:"link",event:n})?Z=!0:n.preventDefault();return}if(h!==void 0&&w){const[,u]=_.url.href.split("#");if(u===h){if(n.preventDefault(),h===""||h==="top"&&r.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const m=r.ownerDocument.getElementById(decodeURIComponent(h));m&&(m.scrollIntoView(),m.focus())}return}if(H=!0,Gt(E),t(a),!l.replace_state)return;H=!1}n.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),await M({type:"link",url:a,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??a.href===location.href,event:n})}),C.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formTarget)||r.target)==="_blank"||((a==null?void 0:a.formMethod)||r.method)!=="get")return;const i=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(Et(i,U,!1))return;const l=n.target,c=pt(l);if(c.reload)return;n.preventDefault(),n.stopPropagation();const p=new FormData(l,a);i.search=new URLSearchParams(p).toString(),M({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href,event:n})}),addEventListener("popstate",async n=>{var r;if(!Ct){if((r=n.state)!=null&&r[F]){const a=n.state[F];if(q={},a===E)return;const s=V[a],o=n.state[de]??{},i=new URL(n.state[Je]??location.href),l=n.state[z],c=_.url?xt(location)===xt(_.url):!1;if(l===A&&(be||c)){o!==R.state&&(R.state=o),t(i),V[E]=kt(),s&&scrollTo(s.x,s.y),E=a;return}const h=a-E;await M({type:"popstate",url:i,popped:{state:o,scroll:s,delta:h},accept:()=>{E=a,A=l},block:()=>{history.go(-h)},nav_token:q,event:n})}else if(!H){const a=new URL(location.href);t(a),k.hash&&location.reload()}}}),addEventListener("hashchange",()=>{H&&(H=!1,history.replaceState({...history.state,[F]:++E,[z]:A},"",location.href))});for(const n of document.querySelectorAll("link"))rn.has(n.rel)&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&j.navigating.set(J.current=null)});function t(n){_.url=R.url=n,j.page.set(zt(R)),j.page.notify()}}async function vn(t,{status:e=200,error:n,node_ids:r,params:a,route:s,server_route:o,data:i,form:l}){ve=!0;const c=new URL(location.href);let p;({params:a={},route:s={id:null}}=await St(c,!1)||{}),p=Kt.find(({id:u})=>u===s.id);let h,w=!0;try{const u=r.map(async(f,d)=>{const g=i[d];return g!=null&&g.uses&&(g.uses=bn(g.uses)),Mt({loader:k.nodes[f],url:c,params:a,route:s,parent:async()=>{const v={};for(let x=0;x<d;x+=1)Object.assign(v,(await u[x]).data);return v},server_data_node:Ht(g)})}),m=await Promise.all(u);if(p){const f=p.layouts;for(let d=0;d<f.length;d++)f[d]||m.splice(d,0,void 0)}h=vt({url:c,params:a,branch:m,status:e,error:n,form:l,route:p??null})}catch(u){if(u instanceof jt){await Q(new URL(u.location,location.href));return}h=await Wt({status:Bt(u),error:await tt(u,{url:c,params:a,route:s}),url:c,route:s}),t.textContent="",w=!1}h.props.page&&(h.props.page.state={}),await Re(h,t,w)}function bn(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url),search_params:new Set((t==null?void 0:t.search_params)??[])}}let Ct=!1;function kn(t,e=null){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=Te(t);if(r&&document.getElementById(r)){const{x:s,y:o}=e??kt();setTimeout(()=>{const i=history.state;Ct=!0,location.replace(`#${r}`),k.hash&&location.replace(t.hash),history.replaceState(i,"",t.hash),scrollTo(s,o),Ct=!1})}else{const s=document.body,o=s.getAttribute("tabindex");s.tabIndex=-1,s.focus({preventScroll:!0,focusVisible:!1}),o!==null?s.setAttribute("tabindex",o):s.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const s=[];for(let o=0;o<a.rangeCount;o+=1)s.push(a.getRangeAt(o));setTimeout(()=>{if(a.rangeCount===s.length){for(let o=0;o<a.rangeCount;o+=1){const i=s[o],l=a.getRangeAt(o);if(i.commonAncestorContainer!==l.commonAncestorContainer||i.startContainer!==l.startContainer||i.endContainer!==l.endContainer||i.startOffset!==l.startOffset||i.endOffset!==l.endOffset)return}a.removeAllRanges()}})}}}function Yt(t,e,n,r){var l,c;let a,s;const o=new Promise((p,h)=>{a=p,s=h});return o.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((l=t.route)==null?void 0:l.id)??null},url:t.url},to:n&&{params:(e==null?void 0:e.params)??null,route:{id:((c=e==null?void 0:e.route)==null?void 0:c.id)??null},url:n},willUnload:!e,type:r,complete:o},fulfil:a,reject:s}}function zt(t){return{data:t.data,error:t.error,form:t.form,params:t.params,route:t.route,state:t.state,status:t.status,url:t.url}}function En(t){const e=new URL(t);return e.hash=decodeURIComponent(t.hash),e}function Te(t){let e;if(k.hash){const[,,n]=t.hash.split("#",3);e=n??""}else e=t.hash.slice(1);return decodeURIComponent(e)}export{Pn as a,An as l,j 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.