1import{i as e,t}from"./jsx-runtime-DUAcabCT.js";import{t as n}from"./react-6OGjdfot.js";import{d as r,g as i,m as a,s as o,t as s,u as c}from"./useMatch-CVswE9yr.js";import{n as l}from"./ClientOnly-B8taauO9.js";import{t as u}from"./useRouter-BgNLAmZd.js";import{t as d}from"./useSelector-CPV73Q7J.js";import{n as f}from"./locales-DPOLBO38.js";function p(e){return e.replace(/\/{2,}/g,`/`)}function m(e){return e===`/`?e:e.replace(/^\/+/,``)}function h(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/+$/,``):e}function g(e){return h(m(e))}function _(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function v(e,t,n=`never`,r){if(t.includes(`//`)&&(t=p(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(r){o=a?e:e+`\0`+t;let n=r.get(o);if(n)return n}let s;if(a)s=e.split(`/`);else{for(e.includes(`//`)&&(e=p(e)),s=e.split(`/`);s.length>1&&i(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&&(i(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=s.join(`/`),l=(a?p(c):c)||`/`;return o&&r&&r.set(o,l),l}function y(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=new RegExp([...t.keys()].join(`|`).replace(/[.*()]/g,`\\$&`),`g`);return e=>e.replace(n,e=>t.get(e)??e)}function b(e){return e==null||e===``}function x(e,t,n){if(typeof t!=`string`)return``+(t??void 0);let r=e===`_splat`;if(r&&(!t||/^[a-zA-Z0-9\-._~!/]*$/.test(t)))return t;let i=encodeURIComponent(t);return r&&(i=i.replaceAll(`%2F`,`/`)),n?n(i):i}function S(e,t,n,r,i){let a=e.endsWith(`/`)?`/`:``,o=``;for(let e of t){if(typeof e==`string`){o+=e;continue}let[t,s,c,l]=e,u=t===2,d=u&&l!==void 0?l+a:l,f=n[s];if(!(t===3&&f==null)){if(i&&(i[s]=f,u&&(i[`*`]=f)),u&&b(f)){if(c===`/`&&!d)continue;f=``}o+=c+x(s,f,r)+(d||``)}}return o+a||`/`}var C=`Error preloading route! âï¸`;function w(e){return s({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}var T=e(n(),1);t();function ee(...e){let t=T.useRef(e),n=t.current;return e.forEach((e,t)=>{o(n[t],e,!1,!0)||(n[t]=e)}),t.current}function E(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(C)})}var D={compare:(e,t)=>e[0]===t[0]&&e[1]===t[1]};function O(e,t){let n=typeof e==`string`&&r(e);if(n)return t.has(n)?e:null}function k(e,t,n,r,i){let a=_(e.pathname,r),s=_(t.pathname,r);return(n?.exact?a!==s:!(a.startsWith(s)&&(a.length===s.length||a[s.length]===`/`)))||(n?.includeSearch??!0)&&!o(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:n?.includeHash?i&&e.hash===t.hash:!0}function A(e,t,n){let i=u(),a=T.useRef(null),o=T.useCallback(e=>{if(a.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:s,to:c,preload:f,preloadDelay:p,hashScrollIntoView:m,replace:h,startTransition:g,resetScroll:_,viewTransition:v,ignoreBlocker:y,disabled:b,target:x,onClick:S,onBlur:C,onFocus:w,onMouseEnter:A,onMouseLeave:j,onTouchStart:M}=e,N=l(!!s?.includeHash),[z,B,V]=ee(e.search,e.params,s),[H,U]=T.useMemo(()=>[e,{...e}],[i,e.from,e._fromLocation,e.hash,e.to,z,B,e.state,e.mask,e.unsafeRelative]),ne=T.useMemo(()=>{let e=O(c,i.protocolAllowlist);if(e!==void 0){let t=[e??void 0];return()=>t}let t,n;return e=>{H._fromLocation||(U._fromLocation=e);let a=i.buildLocation(U),o=te(a,i,b);return(!t||t[0]!==o)&&(t=[o,!(b||o&&!r(o))&&void 0],n=[o,!0]),t[1]!==void 0&&k(e,a,V,i.basepath,N)?n:t}},[V,b,N,H,U,i,c]),[W,G]=d(i.stores.location,ne,D),K=G===void 0&&W,q=b||W===void 0,J=T.useRef(!1),Y=e.reloadDocument||K||q?!1:f??i.options.defaultPreload,X=p??i.options.defaultPreloadDelay??0,Z=T.useCallback(e=>{let t=e?.isIntersecting;if(!(t??Y===`intent`)){t===!1&&L(a);return}if(!X){E(i,H);return}I.has(a)||I.set(a,setTimeout(()=>{I.delete(a),E(i,H)},X))},[i,H,a,Y,X]);T.useEffect(()=>{if(!Y)return;Y===`render`&&!J.current&&(J.current=!0,E(i,H));let e=!0,t;return Y===`viewport`&&a.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&Z(t.pop())},{rootMargin:`100px`}),t.observe(a.current)),()=>{e=!1,t?.disconnect(),L(a)}},[i,H,Y,Z,a]);let Q=P(e,n);if(Q.ref=t?o:a,K)return Q.href=K,Q;let re=e=>{let t=x??e.currentTarget.getAttribute(`target`);!q&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(!t||t===`_self`)&&e.button===0&&(e.preventDefault(),i.navigate({...H,replace:h,resetScroll:_,hashScrollIntoView:m,startTransition:g,viewTransition:v,ignoreBlocker:y}))},ie=()=>{Y===`intent`&&E(i,H)},$=()=>{Y===`intent`&&L(a)};return Q.onClick=R(S,re),Q.onBlur=R(C,$),Q.onFocus=R(w,Z),Q.onMouseEnter=R(A,Z),Q.onMouseLeave=R(j,$),Q.onTouchStart=R(M,ie),F(Q,e,G,W,q,n)}var j={},M={className:`active`},N=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`_fromLocation`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function P(e,t){let n={};for(let r in e)N.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function F(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:l,style:u,target:d}=t,f=c(n?o:s,{})??(n?M:j);Object.assign(e,f),e.href=r,a!==`a`&&(e.disabled=i),e.target=d;let p=f.style;(u||p)&&(e.style=u&&p?{...u,...p}:u||p);let m=f.className;return(l||m)&&(e.className=l?m?`${l} ${m}
1`:l:m),i&&(e.role=`link`,e[`aria-disabled`]=!0),n&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var I=new WeakMap,L=e=>{clearTimeout(I.get(e)),I.delete(e)},R=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function te(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)&&a(i,t.protocolAllowlist)))return i}var z=T.memo(T.forwardRef((e,t)=>{let n=e._asChild||`a`,r=A(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return T.createElement(n,r,i)}),B);function B(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!N.has(r)||!o(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}function V(e,t){let n=e.startsWith(`/`)?e:`/${e}`;return t===`en`?n:n===`/`?`/${t}`:`/${t}${n}`}function H(e,t){return t?e.replace(/\$(\w+)/g,(e,n)=>encodeURIComponent(t[n]??`$${n}`)):e}function U(e){let t=/^\/([a-z]{2})(?=\/|$)/.exec(e);return t&&f(t[1])&&t[1]!==`en`?e.slice(t[0].length)||`/`:e||`/`}export{w as a,S as c,m as d,h as f,z as i,v as l,U as n,p as o,H as r,y as s,V as t,g 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.