1import{c as e,n as t,t as n}from"./jsx-runtime-bgSgC5OP.js";import{b as r,c as i,f as a,g as o,h as s,v as c}from"./useNavigate-BLwt6tBh.js";import{n as l}from"./ClientOnly-B7uK09-W.js";import{o as u,t as d}from"./useSelector-BvOWht1t.js";function f(e){let t=new Map,n,r;return{get(e){let n=t.get(e);if(n)return n.visited=!0,n.value},set(i,a){let o=t.get(i);if(o){o.value=a;return}if(t.size>=e){let e=n?.next().value;for(;!e||e.visited;)e?e.visited=!1:n=t.values(),e=n.next().value;e===r&&(n=void 0),t.delete(e.key)}let s={key:i,value:a,visited:!1};r=s,t.set(i,s)},clear(){t.clear(),n=void 0,r=void 0}}}var p=4,m=5;function h(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=a.indexOf(`{`),s;if(o!==-1&&o+1<a.length&&(s=a.indexOf(`}`,o))!==-1){let r=a.charCodeAt(o+1);if(r===45){if(o+2<a.length&&a.charCodeAt(o+2)===36){let e=o+3,r=s;if(e<r)return n[0]=3,n[1]=t+o,n[2]=t+e,n[3]=t+r,n[4]=t+s+1,n[5]=i,n}}else if(r===36){let r=o+1,a=o+2;return a===s?(n[0]=2,n[1]=t+o,n[2]=t+r,n[3]=t+a,n[4]=t+s+1,n[5]=e.length,n):(n[0]=1,n[1]=t+o,n[2]=t+a,n[3]=t+s,n[4]=t+s+1,n[5]=i,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n}function g(e,t,n,r,i,a,o,s){s?.(n);let c=r;{let r=n.fullPath??n.from,s=n.options,l=r.length,u=s?.caseSensitive??e,d=s?.params?.parse??s?.parseParams;for(;c<l;){let e=h(r,c,t),n,s=c,l=e[5];c=l+1,a++;let f=e[0];switch(f){case 0:{let t=r.substring(e[2],e[3]),o=t,s;u?s=i.static??=new Map:(o=t.toLowerCase(),s=i.staticInsensitive??=new Map);let c=s.get(o);if(c)n=c;else{let e=v(r);e.parent=i,e.depth=a,n=e,s.set(o,e)}break}case 1:case 3:case 2:{let t=r.substring(s,e[1]),c=r.substring(e[4],l),p=u&&!!(t||c);u||(t=t.toLowerCase(),c=c.toLowerCase());let m=f===1?i.dynamic:f===3?i.optional:i.wildcard,h=f!==2&&!d&&m?.find(e=>!e.parse&&e.caseSensitive===p&&e.prefix===t&&e.suffix===c);if(h)n=h;else{let e=y(f,r,p,t,c);n=e,e.parent=i,e.depth=a;let s;s=f===1?i.dynamic??=[]:f===3?i.optional??=[]:i.wildcard??=[],s.push(e),s.length===2&&o?.push(s)}break}}i=n}if(d&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=v(r);e.kind=m,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let f=(n.path||!n.children)&&!n.isRoot;if(f&&r.endsWith(`/`)){let e=v(r);e.kind=p,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=d??null,i.priority=s?.params?.priority??0,f&&!i.route&&(i.route=n,i.fullPath=r)}if(n.children)for(let r of n.children)g(e,t,r,c,i,a,o,s)}function _(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function v(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function y(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function b(e,t){let n=v(`/`),r=new Uint16Array(6),i=[];for(let t of e)g(!1,r,t,1,n,0,i);for(let e of i)e.sort(_);t.masksTree=n,t.flatCache=f(1e3)}function x(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=E(e,t.masksTree);return t.flatCache.set(e,r),r}function S(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=v(`/`),g(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),E(r,o,n)}function C(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=E(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=O(a.route)),t.matchCache.set(r,a),a}function w(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function T(e,t=!1,n){let r=v(e.fullPath),a=new Uint16Array(6),o=[],s={},c={},l=0;g(t,a,e,1,r,0,o,e=>{if(n?.(e,l),e.id in s&&i(),s[e.id]=e,l!==0&&e.path){let t=w(e.fullPath);(!c[t]||e.fullPath.endsWith(`/`))&&(c[t]=e)}l++});for(let e of o)e.sort(_);return{processedTree:{segmentTree:r,singleCache:f(1e3),matchCache:f(1e3),flatCache:null,masksTree:null},routesById:s,routesByPath:c}}function E(e,t,n=!1){let r=e.split(`/`),i=A(e,r,t,n);if(!i)return null;let[a]=D(e,r,i);return{route:i.node.route,rawParams:a}}function D(e,t,n){let r=k(n.node),i=null,a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.segment??0;for(;s<r.length;o++,s++,c++,l++){let u=r[s];if(u.kind===p)break;if(u.kind===m){l--,o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1){i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix.length;if(e.charCodeAt(t)===123){let n=u.suffix.length,r=e.substring(t+2,e.length-n-1),i=d.substring(t,d.length-n);a[r]=decodeURIComponent(i)}else{let t=e.substring(1);a[t]=decodeURIComponent(d)}}else if(u.kind===3){if(n.skipped&1<<s){o--,c=f-1;continue}i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix.length,r=u.suffix.length,p=e.substring(t+3,e.length-r-1),m=u.suffix||u.prefix?d.substring(t,d.length-r):d;m&&(a[p]=decodeURIComponent(m))}else if(u.kind===2){let t=u,n=e.substring(f+t.prefix.length,e.length-t.suffix.length),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,segment:l}]}function O(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function k(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function A(e,t,n,i){if(e===`/`&&n.index)return{node:n.index,skipped:0};let a=!r(t),o=a&&e!==`/`,s=t.length-+!!a,c=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],l=null,u=null;for(;c.length;){let n=c.pop(),{node:r,index:a,skipped:d,statics:f,dynamics:m,optionals:h}=n,{extract:g,rawParams:_}=n;if(r.kind===2&&r.route&&!M(u,n))continue;if(r.parse){if(!te(e,t,n))continue;_=n.rawParams,g=n.extract}i&&r.route&&r.kind!==p&&M(l,n)&&(l=n);let v=a===s;if(v&&(r.route&&(!o||r.kind===p||r.kind===2)&&M(u,n)&&(u=n),!r.optional&&!r.wildcard&&!r.index&&!r.pathless))continue;let y=v?void 0:t[a],b;if(v&&r.index){let n={node:r.index,index:a,skipped:d,statics:f,dynamics:m,optionals:h,extract:g,rawParams:_},i=!0;
1if(r.index.parse&&(te(e,t,n)||(i=!1)),i){if(!m&&!h&&!d&&ee(f,s))return n;M(u,n)&&(u=n)}}if(r.wildcard)for(let e=r.wildcard.length-1;e>=0;e--){let n=r.wildcard[e],{prefix:i,suffix:o}=n;if(!i||!v&&(n.caseSensitive?y:b??=y.toLowerCase()).startsWith(i)){if(o){if(v)continue;let e=t.slice(a).join(`/`),r=e.slice(-o.length);if((n.caseSensitive?r:r.toLowerCase())!==o||e.length-o.length<i.length)continue}c.push({node:n,index:s,skipped:d,statics:f,dynamics:m,optionals:h,extract:g,rawParams:_})}}if(r.optional){let e=d|1<<r.depth+1;for(let t=r.optional.length-1;t>=0;t--){let n=r.optional[t];c.push({node:n,index:a,skipped:e,statics:f,dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v)for(let e=r.optional.length-1;e>=0;e--){let t=r.optional[e],{prefix:n,suffix:i}=t;if(n||i){let e=t.caseSensitive?y:b??=y.toLowerCase();if(n&&!e.startsWith(n)||i&&e.indexOf(i,e.length-i.length)<n.length)continue}c.push({node:t,index:a+1,skipped:d,statics:f,dynamics:m,optionals:h+j(s,a),extract:g,rawParams:_})}}if(!v&&r.dynamic&&y)for(let e=r.dynamic.length-1;e>=0;e--){let t=r.dynamic[e],{prefix:n,suffix:i}=t;if(n||i){let e=t.caseSensitive?y:b??=y.toLowerCase();if(n&&!e.startsWith(n)||i&&e.indexOf(i,e.length-i.length)<n.length)continue}c.push({node:t,index:a+1,skipped:d,statics:f,dynamics:m+j(s,a),optionals:h,extract:g,rawParams:_})}if(!v&&r.staticInsensitive){let e=r.staticInsensitive.get(b??=y.toLowerCase());e&&c.push({node:e,index:a+1,skipped:d,statics:f+j(s,a),dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v&&r.static){let e=r.static.get(y);e&&c.push({node:e,index:a+1,skipped:d,statics:f+j(s,a),dynamics:m,optionals:h,extract:g,rawParams:_})}if(r.pathless)for(let e=r.pathless.length-1;e>=0;e--){let t=r.pathless[e];c.push({node:t,index:a,skipped:d,statics:f,dynamics:m,optionals:h,extract:g,rawParams:_})}}if(u)return u;if(i&&l){let n=l.index;for(let e=0;e<l.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return l.rawParams??=Object.create(null),l.rawParams[`**`]=decodeURIComponent(r),l}return null}function j(e,t){return 2**(e-t-1)}function ee(e,t){return e===2**(t-1)-1}function te(e,t,n){let r,i;try{[r,i]=D(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function M(e,t){return!e||t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===p)>(e.node.kind===p)||t.node.kind===p==(e.node.kind===p)&&t.node.depth>e.node.depth)))}function ne(e){return N(e.filter(e=>e!==void 0).join(`/`))}function N(e){return e.replace(/\/{2,}/g,`/`)}function re(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function ie(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function ae(e){return ie(re(e))}function oe(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function se({base:e,to:t,trailingSlash:n=`never`,cache:i}){if(t.includes(`//`)&&(t=N(t)),t.startsWith(`/`))return t.length===1||n===`preserve`?t:n===`always`?t.endsWith(`/`)?t:`${t}/`:t.endsWith(`/`)?t.slice(0,-1):t;let a=t===`.`,o;if(i){o=a?e:e+`\0`+t;let n=i.get(o);if(n)return n}let s;if(a)s=e.split(`/`);else{for(e.includes(`//`)&&(e=N(e)),s=e.split(`/`);s.length>1&&r(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&s.push(r):s=[r]:r===`..`?s.length>1?s.pop():s=[``]:r===`.`||s.push(r)}}s.length>1&&(r(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=s.join(`/`),l=(a?N(c):c)||`/`;return o&&i&&i.set(o,l),l}function P(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function F(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>L(e,n)).join(`/`):L(r,n):r}function I({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,l=``;for(;s<o;){let r=s;c=h(e,r,c);let o=c[5];if(s=o+1,r===o)continue;let u=c[0];if(u===0){l+=`/`+e.substring(r,o);continue}if(u===2){let s=t._splat;a._splat=s,a[`*`]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o);if(!s){i=!0,(u||d)&&(l+=`/`+u+d);continue}let f=F(`_splat`,t,n);l+=`/`+u+f+d;continue}if(u===1){let s=e.substring(c[2],c[3]);!i&&!(s in t)&&(i=!0),a[s]=t[s];let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=F(s,t,n)??`undefined`;l+=`/`+u+f+d;continue}if(u===3){let i=e.substring(c[2],c[3]),s=t[i];if(s==null)continue;a[i]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=F(i,t,n)??``;l+=`/`+u+f+d;continue}}return e.endsWith(`/`)&&(l+=`/`),{usedParams:a,interpolatedPath:l||`/`,isMissingParams:i}}function L(e,t){let n=encodeURIComponent(e);return t?.(n)??n}var ce=`Error preloading route! âï¸`,R=e(t(),1),le=R.use,z=R.useLayoutEffect;function ue(e,t,n){R.useEffect(()=>{if(!e.current||n||typeof IntersectionObserver!=`function`)return()=>t();let r=new IntersectionObserver(e=>{t(e.pop())},{rootMargin:`100px`});return r.observe(e.current),()=>{r.disconnect(),t()}},[t,n,e])}function de(e){let t=R.useRef(null);return R.useImperativeHandle(e,()=>t.current,[]),t}n();function B(e){let t=R.useRef(e);return a(t.current,e,{ignoreUndefined:!1})||(t.current=e),t.current}function fe(e,t){return e[0]===t[0]&&e[1]===t[1]}function pe(e,t){let n=typeof e==`string`&&o(e);if(n)return t.has(n)?e:null}function me(e,t,n,r,i){let o=oe(e.pathname,r),s=oe(t.pathname,r);return(n?.exact?o!==s:!o.startsWith(s)||o.length!==s.length&&o[s.length]!==`/`)||(n?.includeSearch??!0)&&!a(e.search,t.search,{partial:!n?.exact,ignoreUndefined:!n?.explicitUndef
1ined})?!1:!n?.includeHash||i&&e.hash===t.hash}function V(e,t){let n=u(),r=de(t),{activeProps:i,inactiveProps:a,activeOptions:c,to:f,preload:p,preloadDelay:m,preloadIntentProximity:h,hashScrollIntoView:g,replace:_,startTransition:v,resetScroll:y,viewTransition:b,children:x,target:S,disabled:C,style:w,className:T,onClick:E,onBlur:D,onFocus:O,onMouseEnter:k,onMouseLeave:A,onTouchStart:j,ignoreBlocker:ee,params:te,search:M,hash:ne,state:N,mask:re,reloadDocument:ie,unsafeRelative:ae,from:oe,_fromLocation:se,...P}=e,F=f,I=l(),L=B(e.search),le=B(e.params),z=B(c),V=R.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,L,le,e.state,e.mask,e.unsafeRelative]),be=R.useCallback(e=>{let t=pe(F,n.protocolAllowlist);if(t!==void 0)return[t??void 0];let r=n.buildLocation({_fromLocation:e,...V}),i=ye(r,n,C);return[i,!C&&(!i||o(i))?void 0:me(e,r,z,n.basepath,I)]},[z,C,I,V,n,F]),[G,K]=d(n.stores.location,be,{compare:fe}),q=K===void 0?G:void 0,J=C||G===void 0,xe=R.useRef(!1),Y=e.reloadDocument||q||J?!1:p??n.options.defaultPreload,X=m??n.options.defaultPreloadDelay??0,Z=R.useCallback(()=>{n.preloadRoute(V).catch(e=>{console.warn(e),console.warn(ce)})},[n,V]),Q=R.useCallback(e=>{if(!e){U(r);return}if(!(e.isIntersecting??Y===`intent`)){e.isIntersecting===!1&&U(r);return}if(!X){Z();return}H.has(r)||H.set(r,setTimeout(()=>{H.delete(r),Z()},X))},[Z,r,Y,X]);if(ue(r,Q,Y!==`viewport`),R.useEffect(()=>{xe.current||Y===`render`&&(Z(),xe.current=!0)},[Z,Y]),q)return{...P,ref:r,href:q,...x&&{children:x},...S&&{target:S},...C&&{disabled:C},...w&&{style:w},...T&&{className:T},...E&&{onClick:E},...D&&{onBlur:D},...O&&{onFocus:O},...k&&{onMouseEnter:k},...A&&{onMouseLeave:A},...j&&{onTouchStart:j}};let $=s(K?i:a,{})??(K?ge:he),Se=$.className,Ce=T?Se?`${T} ${Se}`:T:Se,we=$.style,Te=w&&we?{...w,...we}:w||we,Ee=e=>{let t=e.currentTarget.getAttribute(`target`),r=S===void 0?t:S;!J&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0&&(e.preventDefault(),n.navigate({...V,replace:_,resetScroll:y,hashScrollIntoView:g,startTransition:v,viewTransition:b,ignoreBlocker:ee}))},De=()=>{Y===`intent`&&Z()},Oe=()=>{Y===`intent`&&U(r)};return{...P,...$,href:G,ref:r,onClick:W(E,Ee),onBlur:W(D,Oe),onFocus:W(O,Q),onMouseEnter:W(k,Q),onMouseLeave:W(A,Oe),onTouchStart:W(j,De),disabled:!!J,target:S,...Te&&{style:Te},...Ce&&{className:Ce},...J&&_e,...K&&ve}}var he={},ge={className:`active`},_e={role:`link`,"aria-disabled":!0},ve={"data-status":`active`,"aria-current":`page`},H=new WeakMap,U=e=>{clearTimeout(H.get(e)),H.delete(e)},W=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function ye(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if(!r.external&&i===r.publicHref||!c(i,t.protocolAllowlist))return i}var be=R.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=V(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;a=t}return R.createElement(n||`a`,a,o)});export{f as _,I as a,ae as c,O as d,x as f,T as g,b as h,P as i,re as l,S as m,le as n,ne as o,C as p,z as r,se as s,be as t,ie as u};
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.