1import{i as e}from"./chunk-aKtaBQYM.js";import{n as t,t as n}from"./jsx-runtime-ByNbsjhr.js";import{r}from"./redirect-DmtLUW0N.js";import{c as i,n as a,s as o,t as s}from"./link-BCOYc_VH.js";import{t as c}from"./invariant-DEEwAagU.js";import{t as l}from"./root-DLTE-HSj.js";import{t as u}from"./useNavigate-D4YvdClL.js";import{t as d}from"./useMatch-CVfi1zjD.js";import{t as f}from"./useParams-LZ_IvyZv.js";import{t as p}from"./useSearch-Br2TSF1i.js";import{t as m}from"./useRouteContext-CEf6VXys.js";var h=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=l:this.parentRoute||c();let r=n?l:t?.path;r&&r!==`/`&&(r=o(r));let s=t?.id||r,u=n?l:a((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(s??``));r===`__root__`&&(r=`/`);let d=u===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:a(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=u,this._fullPath=d,this._to=i(d)},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=>r({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.`)}},g=class extends h{constructor(e){super(e)}};function _(e){return d({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function v(e){let{select:t,...n}=e;return d({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}var y=e(t(),1),b=n(),x=class extends h{constructor(e){super(e),this.useMatch=e=>d({...e,from:this.id}),this.useRouteContext=e=>m({...e,from:this.id}),this.useSearch=e=>p({...e,from:this.id}),this.useParams=e=>f({...e,from:this.id}),this.useLoaderDeps=e=>v({...e,from:this.id}),this.useLoaderData=e=>_({...e,from:this.id}),this.useNavigate=()=>u({from:this.fullPath}),this.Link=y.forwardRef((e,t)=>(0,b.jsx)(s,{ref:t,from:this.fullPath,...e}))}};function S(e){return new x(e)}function C(){return e=>T(e)}var w=class extends g{constructor(e){super(e),this.useMatch=e=>d({...e,from:this.id}),this.useRouteContext=e=>m({...e,from:this.id}),this.useSearch=e=>p({...e,from:this.id}),this.useParams=e=>f({...e,from:this.id}),this.useLoaderDeps=e=>v({...e,from:this.id}),this.useLoaderData=e=>_({...e,from:this.id}),this.useNavigate=()=>u({from:this.fullPath}),this.Link=y.forwardRef((e,t)=>(0,b.jsx)(s,{ref:t,from:this.fullPath,...e}))}};function T(e){return new w(e)}export{S as n,C 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.