PageSourceSearch

https://autolinks.pro/assets/vendor-router-BT4pdlEG.js

js autolinks.pro collected 2026-10-02 02:06:01 UTC 41,840 bytes, 3 lines download raw bytes

1import{a as e,n as t}from"./rolldown-runtime-Cyuzqnbw.js";import{i as n}from"./vendor-react-U38zKVGV.js";import{n as r,t as i}from"./preload-helper-D2YP6sBZ.js";function a(e,t){return t+e.replace(/\\/g,`/`)}function o(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function s(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return f(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:p(t)}return h(t,n,null,e)}function c(e,t){if(e===!1||e==null)throw Error(t)}function l(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function u(){return Math.random().toString(36).substring(2,10)}function d(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function f(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?m(t):t,state:n,key:t&&t.key||r||u(),mask:i}}function p({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function m(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function h(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,c=`POP`,l=null,u=p();u??(u=0,s.replaceState({...s.state,idx:u},``));function p(){return(s.state||{idx:null}).idx}function m(){c=`POP`;let e=p(),t=e==null?null:e-u;u=e,l&&l({action:c,location:y.location,delta:t})}function h(e,t){c=`PUSH`;let r=o(e)?e:f(y.location,e,t);n&&n(r,e),u=p()+1;let m=d(r,u),h=y.createHref(r.mask||r);try{s.pushState(m,``,h)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(h)}a&&l&&l({action:c,location:y.location,delta:1})}function _(e,t){c=`REPLACE`;let r=o(e)?e:f(y.location,e,t);n&&n(r,e),u=p();let i=d(r,u),m=y.createHref(r.mask||r);s.replaceState(i,``,m),a&&l&&l({action:c,location:y.location,delta:0})}function v(e){return g(i,e)}let y={get action(){return c},get location(){return e(i,s)},listen(e){if(l)throw Error(`A history only accepts one active listener`);return i.addEventListener(Rt,m),l=e,()=>{i.removeEventListener(Rt,m),l=null}},createHref(e){return t(i,e)},createURL:v,encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:h,replace:_,go(e){return s.go(e)}};return y}function g(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),c(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:p(t);return i=i.replace(/ $/,`%20`),!n&&Lt.test(i)&&(i=r+i),new URL(i,r)}function _(e,t,n=`/`){return v(e,t,n,!1)}function v(e,t,n,r,i){let a=D((typeof t==`string`?m(t):t).pathname||`/`,n);if(a==null)return null;let o=i??b(e),s=null,c=re(a);for(let e=0;s==null&&e<o.length;++e)s=ne(o[e],c,r);return s}function y(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function b(e){let t=x(e);return ee(t),t}function x(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let l={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(l.relativePath.startsWith(`/`)){if(!l.relativePath.startsWith(r)&&o)return;c(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length)}let u=V([r,l.relativePath]),d=n.concat(l);e.children&&e.children.length>0&&(c(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),x(e.children,t,d,u,o)),!(e.path==null&&!e.index)&&t.push({path:u,score:C(u,e.index),routesMeta:d.map((e,t)=>
1{let[n,r]=E(e.relativePath,e.caseSensitive,t===d.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of S(e.path))a(e,t,!0,n)}),t}function S(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=S(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function ee(e){e.sort((e,t)=>e.score===t.score?te(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}function C(e,t){let n=e.split(`/`),r=n.length;return n.some(Gt)&&(r+=Wt),t&&(r+=Vt),n.filter(e=>!Gt(e)).reduce((e,t)=>e+(zt.test(t)?Bt:t===``?Ht:Ut),r)}function te(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function ne(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?T(u,l,s.matcher,s.compiledParams):w(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=w({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;
1Object.assign(i,d.params),o.push({params:i,pathname:V([a,d.pathname]),pathnameBase:qt(V([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=V([a,d.pathnameBase]))}return o}function w(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=E(e.path,e.caseSensitive,e.end);return T(e,t,n,r)}function T(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function E(e,t=!1,n=!0){l(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function re(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return l(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function D(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function ie(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?m(e):e,a;return n?(n=Kt(n),a=n.startsWith(`/`)?ae(n.substring(1),`/`):ae(n,t)):a=t,{pathname:a,search:Jt(r),hash:Yt(i)}}function ae(e,t){let n=H(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function oe(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function se(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function ce(e){let t=se(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function le(e,t,n,r=!1){let i;typeof e==`string`?i=m(e):(i={...e},c(!i.pathname||!i.pathname.includes(`?`),oe(`?`,`pathname`,`search`,i)),c(!i.pathname||!i.pathname.includes(`#`),oe(`#`,`pathname`,`hash`,i)),c(!i.search||!i.search.includes(`#`),oe(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let l=ie(i,s),u=o&&o!==`/`&&o.endsWith(`/`),d=(a||o===`.`)&&n.endsWith(`/`);return!l.pathname.endsWith(`/`)&&(u||d)&&(l.pathname+=`/`),l}function ue(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function de(e){return V(e.map(e=>e.route.path).filter(Boolean))||`/`}function fe(e,t){let n=e;if(typeof n!=`string`||!B.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Zt)try{let e=new URL(window.location.href),r=Lt.test(n)?new URL(a(n,e.protocol)):new URL(n),o=D(r.pathname,t);r.origin===e.origin&&o!=null?n=o+r.search+r.hash:i=!0}catch{l(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}function pe(e){try{return en.includes(new URL(e).protocol)}catch{return!1}}function me(){return F.useContext(tn)}function he(e){if(e.startsWith(`${on}:${sn}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function ge(e){if(e.startsWith(`${on}:${cn}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Xt(t.status,t.statusText,t.data)}catch{}}function _e(e,{relative:t}={}){c(O(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=I.useContext(G),{hash:i,pathname:a,search:o}=j(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:V([n,a])),r.createHref({pathname:s,search:o,hash:i})}function O(){return I.useContext(K)!=null}function k(){return c(O(),`useLocation() may be used only in the context of a <Router> component.`),I.useContext(K).location}function ve(e){I.useContext(G).static||I.useLayoutEffect(e)}function A(){let{isDataRoute:e}=I.useContext(q);return e?Le():ye()}function ye(){c(O(),`useNavigate() may be used only in the context of a <Router> component.`);let e=I.useContext(U),{basename:t,navigator:n}=I.useContext(G),{matches:r}=I.useContext(q),{pathname:i}=k(),a=JSON.stringify(ce(r)),o=I.useRef(!1);return ve(()=>{o.current=!0}),I.useCallback((r,s={})=>
1{if(l(o.current,ln),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=le(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:V([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}function be(e){let t=I.useContext(q).outlet;return I.useMemo(()=>t&&I.createElement(un.Provider,{value:e},t),[t,e])}function xe(){let{matches:e}=I.useContext(q);return e[e.length-1]?.params??{}}function j(e,{relative:t}={}){let{matches:n}=I.useContext(q),{pathname:r}=k(),i=JSON.stringify(ce(n));return I.useMemo(()=>le(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Se(e,t){return Ce(e,t)}function Ce(e,t,n){c(O(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=I.useContext(G),{matches:i}=I.useContext(q),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,u=a?a.pathnameBase:`/`,d=a&&a.route;{let e=d&&d.path||``;Re(s,!d||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
2
3Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let f=k(),p;if(t){let e=typeof t==`string`?m(t):t;c(u===`/`||e.pathname?.startsWith(u),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${e.pathname}" was given in the \`location\` prop.`),p=e}else p=f;let h=p.pathname||`/`,g=h;if(u!==`/`){let e=u.replace(/^\//,``).split(`/`);g=`/`+h.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let v=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):_(e,{pathname:g});l(d||v!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),l(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let y=De(v&&v.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:V([u,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?u:V([u,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&y?I.createElement(K.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...p},navigationType:`POP`}},y):y}function we(){let e=Ie(),t=ue(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=I.createElement(I.Fragment,null,I.createElement(`p`,null,`💿 Hey developer 👋`),I.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,I.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,I.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),I.createElement(I.Fragment,null,I.createElement(`h2`,null,`Unexpected Application Error!`),I.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?I.createElement(`pre`,{style:i},n):null,o)}function Te({children:e,error:t}){let{basename:n}=I.useContext(G);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=he(t.digest);if(e){let r=pn.get(t);if(r)throw r;let i=fe(e.location,n),a=i.absoluteURL||i.to;if(pe(a))throw Error(`Invalid redirect location`);if(Zt&&!pn.get(t))if(i.isExternal||e.reloadDocument)window.location.href=a;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw pn.set(t,n),n}return I.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a}`})}}return e}function Ee({routeContext:e,match:t,children:n}){let r=I.useContext(U);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),I.createElement(q.Provider,{value:e},n)}function De(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);c(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}
3=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let l=n?.onError,u=r&&l?(e,t)=>{l(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:de(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let l,d=!1,f=null,p=null;r&&(l=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||dn,o&&(s<0&&c===0?(Re(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=l?f:d?p:n.route.Component?I.createElement(n.route.Component,null):n.route.element?n.route.element:e,I.createElement(Ee,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?I.createElement(fn,{location:r.location,revalidation:r.revalidation,component:f,error:l,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:u}):h()},null)}function Oe(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function ke(e){let t=I.useContext(U);return c(t,Oe(e)),t}function Ae(e){let t=I.useContext(W);return c(t,Oe(e)),t}function je(e){let t=I.useContext(q);return c(t,Oe(e)),t}function Me(e){let t=je(e),n=t.matches[t.matches.length-1];return c(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Ne(){return Me(`useRouteId`)}function Pe(){let e=Ae(`useNavigation`);return I.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function Fe(){let{matches:e,loaderData:t}=Ae(`useMatches`);return I.useMemo(()=>e.map(e=>y(e,t)),[e,t])}function Ie(){let e=I.useContext(J),t=Ae(`useRouteError`),n=Me(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Le(){let{router:e}=ke(`useNavigate`),t=Me(`useNavigate`),n=I.useRef(!1);return ve(()=>{n.current=!0}),I.useCallback(async(r,i={})=>
3{l(n.current,ln),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}function Re(e,t,n){!t&&!mn[e]&&(mn[e]=!0,l(!1,n))}function ze({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Ce(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function Be({to:e,replace:t,state:n,relative:r}){c(O(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=L.useContext(G);l(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:a}=L.useContext(q),{pathname:o}=k(),s=A(),u=le(e,ce(a),o,r===`path`),d=JSON.stringify(u);return L.useEffect(()=>{s(JSON.parse(d),{replace:t,state:n,relative:r})},[s,d,r,t,n]),null}function Ve(e){return be(e.context)}function He(e){c(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function Ue({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){c(!O(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),u=L.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=m(n));let{pathname:d=`/`,search:f=``,hash:p=``,state:h=null,key:g=`default`,mask:_}=n,v=L.useMemo(()=>{let e=D(d,s);return e==null?null:{location:{pathname:e,search:f,hash:p,state:h,key:g,mask:_},navigationType:r}},[s,d,f,p,h,g,r,_]);return l(v!=null,`<Router basename="${s}"> is not able to match the URL "${d}${f}${p}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:L.createElement(G.Provider,{value:u},L.createElement(K.Provider,{children:t,value:v}))}function We({children:e,location:t}){return Se(Ge(e),t)}function Ge(e,t=[]){let n=[];return L.Children.forEach(e,(e,r)=>{if(!L.isValidElement(e))return;let i=[...t,r];if(e.type===L.Fragment){n.push.apply(n,Ge(e.props.children,i));return}c(e.type===He,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),c(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Ge(e.props.children,i)),n.push(a)}),n}function M(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Ke(e){return M(e)&&e.tagName.toLowerCase()===`button`}function qe(e){return M(e)&&e.tagName.toLowerCase()===`form`}function Je(e){return M(e)&&e.tagName.toLowerCase()===`input`}function Ye(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Xe(e,t){return e.button===0&&(!t||t===`_self`)&&!Ye(e)}function Ze(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function Qe(e,t){let n=Ze(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}function $e(){if(Z===null)try{new FormData(document.createElement(`form`),0),Z=!1}catch{Z=!0}return Z}function et(e){return e!=null&&!hn.has(e)?(l(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${X}"`),null):e}function tt(e,t){let n,r,i,a,o;if(qe(e)){let o=e.getAttribute(`action`);r=o?D(o,t):null,n=e.getAttribute(`method`)||Y,i=et(e.getAttribute(`enctype`))||X,a=new FormData(e)}else if(Ke(e)||Je(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?D(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Y,i=et(e.getAttribute(`formenctype`))||et(o.getAttribute(`enctype`))||X,a=new FormData(o,e),!$e()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(M(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Y,r=null,i=X,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function nt(e){return e.replace(_n,e=>gn[e])}function rt(e,t){if(e===!1||e==null)throw Error(t)}function it(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>
3`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&D(i.pathname,t)===`/`?i.pathname=`${H(t)}/_root.${r}`:i.pathname=`${H(i.pathname)}.${r}`,i}async function at(e,t){if(e.id in t)return t[e.id];try{let n=await i(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ot(e){return e!=null&&typeof e.page==`string`}function st(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function ct(e,t,n){return pt((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await at(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(st).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function lt(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function ut(e,t,{includeHydrateFallback:n}={}){return dt(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function dt(e){return[...new Set(e)]}function ft(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function pt(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!ot(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(ft(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function mt(){let e=R.useContext(U);return rt(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function ht(){let e=R.useContext(W);return rt(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}function N(){let e=R.useContext(Q);return rt(e,`You must render this element inside a <HydratedRouter> element`),e}function gt(e,t){let n=R.useContext(Q),[r,i]=R.useState(!1),[a,o]=R.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=R.useRef(null);R.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),R.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:P(s,p),onBlur:P(c,m),onMouseEnter:P(l,p),onMouseLeave:P(u,m),onTouchStart:P(d,p)}]:[a,f,{}]:[!1,f,{}]}function P(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function _t({page:e,...t}){let n=me(),{nonce:r}=N(),{router:i}=mt(),a=R.useMemo(()=>_(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?R.createElement(yt,{page:e,matches:a,...t}):R.createElement(bt,{page:e,matches:a,...t})):null}function vt(e){let{manifest:t,routeModules:n}=N(),[r,i]=R.useState([]);return R.useEffect(()=>{let r=!1;return ct(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function yt({page:e,matches:t,...n}){let r=k(),{future:i}=N(),{basename:a}=mt(),o=R.useMemo(()=>
3{if(e===r.pathname+r.search+r.hash)return[];let n=it(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return R.createElement(R.Fragment,null,o.map(e=>R.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function bt({page:e,matches:t,...n}){let r=k(),{future:i,manifest:a,routeModules:o}=N(),{basename:s}=mt(),{loaderData:c,matches:l}=ht(),u=R.useMemo(()=>lt(e,t,l,a,r,`data`),[e,t,l,a,r]),d=R.useMemo(()=>lt(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=R.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=it(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=R.useMemo(()=>ut(d,a),[d,a]),m=vt(d);return R.createElement(R.Fragment,null,f.map(e=>R.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>R.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>R.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function xt(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}function St({basename:e,children:t,useTransitions:n,window:r}){let i=z.useRef();i.current??=s({window:r,v5Compat:!0});let a=i.current,[o,c]=z.useState({action:a.action,location:a.location}),l=z.useCallback(e=>{n===!1?c(e):z.startTransition(()=>c(e))},[n]);return z.useLayoutEffect(()=>a.listen(l),[a,l]),z.createElement(Ue,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function Ct({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=z.useState({action:n.action,location:n.location}),o=z.useCallback(e=>{r===!1?a(e):z.startTransition(()=>a(e))},[r]);return z.useLayoutEffect(()=>n.listen(o),[n,o]),z.createElement(Ue,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}function wt({getKey:e,storageKey:t,...n}){let r=z.useContext(Q),{basename:i}=z.useContext(G),a=k(),o=Fe();Nt({getKey:e,storageKey:t});let s=z.useMemo(()=>{if(!r||!e)return null;let t=Mt(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];
3typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return n.nonce==null&&r?.nonce&&(n.nonce=r.nonce),z.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${nt(JSON.stringify(t||wn))}, ${nt(JSON.stringify(s))})`}})}function Tt(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Et(e){let t=z.useContext(U);return c(t,Tt(e)),t}function Dt(e){let t=z.useContext(W);return c(t,Tt(e)),t}function Ot(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=A(),d=k(),f=j(e,{relative:o});return z.useCallback(m=>{if(Xe(m,t)){m.preventDefault();let t=n===void 0?p(d)===p(f):n,h=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?z.startTransition(()=>h()):h()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function kt(e){l(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=z.useRef(Ze(e)),n=z.useRef(!1),r=k(),i=z.useMemo(()=>Qe(r.search,n.current?null:t.current),[r.search]),a=A();return[i,z.useCallback((e,t)=>{let r=Ze(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}function At(){let{router:e}=Et(`useSubmit`),{basename:t}=z.useContext(G),n=Ne(),r=e.fetch,i=e.navigate;return z.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=tt(e,t);a.navigate===!1?await r(a.fetcherKey||Cn(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function jt(e,{relative:t}={}){let{basename:n}=z.useContext(G),r=z.useContext(q);c(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...j(e||`.`,{relative:t})},o=k();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:V([n,a.pathname])),p(a)}function Mt(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:D(e.pathname,n)||e.pathname},t)),i??=e.key,i}function Nt({getKey:e,storageKey:t}={}){let{router:n}=Et(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=Dt(`useScrollRestoration`),{basename:a}=z.useContext(G),o=k(),s=Fe(),c=Pe();z.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),Pt(z.useCallback(()=>{if(c.state===`idle`){let t=Mt(o,s,a,e);$[t]=window.scrollY}try{sessionStorage.setItem(t||wn,JSON.stringify($))}catch(e){l(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(z.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||wn);e&&($=JSON.parse(e))}catch{}},[t]),z.useLayoutEffect(()=>{let t=n?.enableScrollRestoration($,()=>window.scrollY,e?(t,n)=>Mt(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),z.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{l(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function Pt(e,t){let{capture:n}=t||{};z.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function Ft(e,{relative:t}={}){let n=z.useContext(nn);c(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Et(`useViewTransitionState`),i=j(e,{relative:t});if(!n.isTransitioning)return!1;let a=D(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=D(n.nextLocation.pathname,r)||n.nextLocation.pathname;return w(i.pathname,o)!=null||w(i.pathname,a)!=null}var F,I,L,It,R,z,B,Lt,Rt,zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt,V,H,qt,Jt,Yt,Xt,Zt,Qt,$t,en,U,W,tn,nn,rn,an,G,K,q,J,on,sn,cn,ln,un,dn,fn,pn,mn,Y,X,Z,hn,gn,_n,Q,vn,yn,bn,xn,Sn,Cn,wn,$,Tn=t((()=>{F=e(n(),1),I=e(n(),1),L=e(n(),1),n(),It=e(n(),1),R=e(n(),1),n(),n(),n(),z=e(n(),1),n(),r(),B=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Lt=/^[\\/]{2}/,Rt=`popstate`,zt=/^:[\w-]+$/,Bt=3,Vt=2,Ht=1,Ut=10,Wt=-2,Gt=e=>e===`*`,Kt=e=>e.replace(/[\\/]{2,}/g,`/`),V=e=>Kt(e.join(`/`)),H=e=>e.replace(/\/+$/,``),qt=e=>H(e).replace(/^\/*/,`/`),Jt=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Yt=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Xt=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}},Zt=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`),Qt=[`POST`,`PUT`,`PATCH`,`DELETE`],new Set(Qt),$t=[`GET`,...Qt],new Set($t),en=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`],U=F.createContext(null),U.displayName=`DataRouter`,W=F.createContext(null),W.dis
3playName=`DataRouterState`,tn=F.createContext(!1),nn=F.createContext({isTransitioning:!1}),nn.displayName=`ViewTransition`,rn=F.createContext(new Map),rn.displayName=`Fetchers`,an=F.createContext(null),an.displayName=`Await`,G=F.createContext(null),G.displayName=`Navigation`,K=F.createContext(null),K.displayName=`Location`,q=F.createContext({outlet:null,matches:[],isDataRoute:!1}),q.displayName=`Route`,J=F.createContext(null),J.displayName=`RouteError`,on=`REACT_ROUTER_ERROR`,sn=`REDIRECT`,cn=`ROUTE_ERROR_RESPONSE`,ln=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`,un=I.createContext(null),dn=I.createElement(we,null),fn=class extends I.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=ge(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:I.createElement(q.Provider,{value:this.props.routeContext},I.createElement(J.Provider,{value:e,children:this.props.component}));return this.context?I.createElement(Te,{error:e},t):t}},fn.contextType=tn,pn=new WeakMap,mn={},L.memo(ze),L.Component,Y=`get`,X=`application/x-www-form-urlencoded`,Z=null,hn=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]),Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`),gn={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},_n=/[&><\u2028\u2029]/g,Q=R.createContext(void 0),Q.displayName=`FrameworkContext`,It.Component,vn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{vn&&(window.__reactRouterVersion=`7.18.2`)}catch{}Ct.displayName=`unstable_HistoryRouter`,yn=z.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=z.useContext(G),v=typeof l==`string`&&B.test(l),y=fe(l,h);l=y.to;let b=_e(l,{relative:r}),x=k(),S=null;if(o){let e=le(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:V([h,e.pathname])),S=g.createHref(e)}let[ee,C,te]=gt(n,p),ne=Ot(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function w(t){e&&e(t),t.defaultPrevented||ne(t)}let T=!(y.isExternal||i),E=z.createElement(`a`,{...p,...te,href:(T?S:void 0)||y.absoluteURL||b,onClick:T?w:e,ref:xt(m,C),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return ee&&!v?z.createElement(z.Fragment,null,E,z.createElement(_t,{page:b})):E}),yn.displayName=`Link`,bn=z.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=j(a,{relative:c.relative}),d=k(),f=z.useContext(W),{navigator:p,basename:m}=z.useContext(G),h=f!=null&&Ft(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=D(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},ee=b?e:void 0,C;C=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let te=typeof i==`function`?i(S):i;return z.createElement(yn,{...c,"aria-current":ee,className:C,ref:l,style:te,to:a,viewTransition:o},typeof s==`function`?s(S):s)}),bn.displayName=`NavLink`,xn=z.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Y,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=z.useContext(G),g=At(),_=jt(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&B.test(s);return z.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?z.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})}),xn.displayName=`Form`,wt.displayName=`ScrollRestoration`,Sn=0,Cn=()=>`__${String(++Sn)}__`,wn=`react-router-scroll-positions`,$={}})),En=t((()=>{Tn()})),Dn=t((()=>{En()}));export{Ve as a,Tn as c,xe as d,kt as f,Be as i,k as l,St as n,He as o,yn as r,We as s,Dn as t,A 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.