1import{l as e,n as t,o as n,s as r,t as i}from"./useSelector-BnRwIYQX.js";import{i as a,t as o}from"./invariant-CgFvOqN2.js";import{E as s,S as c,c as l,l as u,n as d,r as f}from"./createLucideIcon-DLIEs_3h.js";import{n as p,r as m,t as h}from"./matchContext-D_rpjOYL.js";import{t as g}from"./useNavigate-BpYmuKwu.js";var _=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e,this._branch=void 0;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=m:this.parentRoute||o();let r=n?m:t?.path;r&&r!==`/`&&(r=l(r));let i=t?.id||r,a=n?m:f((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let s=a===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:f(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=a,this._fullPath=s,this._to=u(s)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>a({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},v=class extends _{constructor(e){super(e)}},y=e(r(),1),b=y.use,x=y.useLayoutEffect,S={};function C(e,t){let n=y.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=s(n.current,i):i}}function w(e){let n=t(),r=y.useContext(e.from?h:p),a=e.from??r,s=n.stores.getMatchStore(a),c=C(e,n),l=i(s,e=>e?c(e):S);if(l!==S)return l;(e.shouldThrow??!0)&&o()}function T(e){return w({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function E(e){let{select:t,...n}=e;return w({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function D(e){return w({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}})}function O(e){return w({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function k(e){return w({...e,select:t=>e.select?e.select(t.context):t.context})}var A=n(),j=class extends _{constructor(e){super(e),this.useMatch=e=>w({...e,from:this.id}),this.useRouteContext=e=>k({...e,from:this.id}),this.useSearch=e=>O({...e,from:this.id}),this.useParams=e=>D({...e,from:this.id}),this.useLoaderDeps=e=>E({...e,from:this.id}),this.useLoaderData=e=>T({...e,from:this.id}),this.useNavigate=()=>g({from:this.fullPath}),this.Link=y.forwardRef((e,t)=>(0,A.jsx)(d,{ref:t,from:this.fullPath,...e}))}};function M(e){return new j(e)}function N(){return e=>F(e)}var P=class extends v{constructor(e){super(e),this.useMatch=e=>w({...e,from:this.id}),this.useRouteContext=e=>k({...e,from:this.id}),this.useSearch=e=>O({...e,from:this.id}),this.useParams=e=>D({...e,from:this.id}),this.useLoaderDeps=e=>E({...e,from:this.id}),this.useLoaderData=e=>T({...e,from:this.id}),this.useNavigate=()=>g({from:this.fullPath}),this.Link=y.forwardRef((e,t)=>(0,A.jsx)(d,{ref:t,from:this.fullPath,...e}))}};function F(e){return new P(e)}function I(e){return e=>{let t=M(e);return t.isRoot=!1,t}}function L(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,o.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),o=function(e){if(i){if(c(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r)if(b)b(a());else throw a();return y.createElement(r,e)};return o.preload=a,o}export{b as a,C as i,I as n,x as o,N as r,L as t};
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.