diff --git a/dependabot/docker/node-23.5-alpine/assets/index-CIiymzk0.js b/dependabot/docker/node-23.5-alpine/assets/index-BEj5JUiV.js similarity index 99% rename from dependabot/docker/node-23.5-alpine/assets/index-CIiymzk0.js rename to dependabot/docker/node-23.5-alpine/assets/index-BEj5JUiV.js index 1ed73442..f84b2703 100644 --- a/dependabot/docker/node-23.5-alpine/assets/index-CIiymzk0.js +++ b/dependabot/docker/node-23.5-alpine/assets/index-BEj5JUiV.js @@ -50,7 +50,7 @@ The error may be correlated with this previous error: ${de.current.stack} `),ie}jg(()=>{de.current=void 0,X.current=void 0,z.current=D});const Y=Ft.useMemo(()=>Ft.createElement(w,{...D,ref:V}),[V,w,D]);return Ft.useMemo(()=>x?Ft.createElement(W.Provider,{value:G},Y):Y,[W,Y,G])}const j=Ft.memo(T);if(j.WrappedComponent=w,j.displayName=T.displayName=S,c){const F=Ft.forwardRef(function(B,W){return Ft.createElement(j,{...B,reactReduxForwardedRef:W})});return F.displayName=S,F.WrappedComponent=w,QO(F,w)}return QO(j,w)}}var k8=yH;function bH({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=Ft.useMemo(()=>{const u=T8(e);return{store:e,subscription:u,getServerState:n?()=>n:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,n,i,o]),s=Ft.useMemo(()=>e.getState(),[e]);jg(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,s]);const c=t||P8;return Ft.createElement(c.Provider,{value:a},r)}var R8=bH;dH($.useSyncExternalStore);var ih={},b3;function _H(){if(b3)return ih;b3=1,Object.defineProperty(ih,"__esModule",{value:!0}),ih.parse=a,ih.serialize=u;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,n=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,o=(()=>{const v=function(){};return v.prototype=Object.create(null),v})();function a(v,b){const x=new o,_=v.length;if(_<2)return x;const w=(b==null?void 0:b.decode)||h;let O=0;do{const S=v.indexOf("=",O);if(S===-1)break;const E=v.indexOf(";",O),T=E===-1?_:E;if(S>T){O=v.lastIndexOf(";",S-1)+1;continue}const A=s(v,O,S),j=c(v,S,A),N=v.slice(A,j);if(x[N]===void 0){let F=s(v,S+1,T),V=c(v,T,F);const B=w(v.slice(F,V));x[N]=B}O=T+1}while(O<_);return x}function s(v,b,x){do{const _=v.charCodeAt(b);if(_!==32&&_!==9)return b}while(++bx;){const _=v.charCodeAt(--b);if(_!==32&&_!==9)return b+1}return x}function u(v,b,x){const _=(x==null?void 0:x.encode)||encodeURIComponent;if(!e.test(v))throw new TypeError(`argument name is invalid: ${v}`);const w=_(b);if(!t.test(w))throw new TypeError(`argument val is invalid: ${b}`);let O=v+"="+w;if(!x)return O;if(x.maxAge!==void 0){if(!Number.isInteger(x.maxAge))throw new TypeError(`option maxAge is invalid: ${x.maxAge}`);O+="; Max-Age="+x.maxAge}if(x.domain){if(!r.test(x.domain))throw new TypeError(`option domain is invalid: ${x.domain}`);O+="; Domain="+x.domain}if(x.path){if(!n.test(x.path))throw new TypeError(`option path is invalid: ${x.path}`);O+="; Path="+x.path}if(x.expires){if(!p(x.expires)||!Number.isFinite(x.expires.valueOf()))throw new TypeError(`option expires is invalid: ${x.expires}`);O+="; Expires="+x.expires.toUTCString()}if(x.httpOnly&&(O+="; HttpOnly"),x.secure&&(O+="; Secure"),x.partitioned&&(O+="; Partitioned"),x.priority)switch(typeof x.priority=="string"?x.priority.toLowerCase():void 0){case"low":O+="; Priority=Low";break;case"medium":O+="; Priority=Medium";break;case"high":O+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${x.priority}`)}if(x.sameSite)switch(typeof x.sameSite=="string"?x.sameSite.toLowerCase():x.sameSite){case!0:case"strict":O+="; SameSite=Strict";break;case"lax":O+="; SameSite=Lax";break;case"none":O+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${x.sameSite}`)}return O}function h(v){if(v.indexOf("%")===-1)return v;try{return decodeURIComponent(v)}catch{return v}}function p(v){return i.call(v)==="[object Date]"}return ih}_H();/** - * react-router v7.0.2 + * react-router v7.1.1 * * Copyright (c) Remix Software Inc. * @@ -60,7 +60,7 @@ ${de.current.stack} * @license MIT */var _3="popstate";function xH(e={}){function t(n,i){let{pathname:o,search:a,hash:s}=n.location;return JO("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:Zh(i)}return OH(t,r,null,e)}function ur(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Oo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function wH(){return Math.random().toString(36).substring(2,10)}function x3(e,t){return{usr:e.state,key:e.key,idx:t}}function JO(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Hf(t):t,state:r,key:t&&t.key||n||wH()}}function Zh({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Hf(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function OH(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s="POP",c=null,u=h();u==null&&(u=0,a.replaceState({...a.state,idx:u},""));function h(){return(a.state||{idx:null}).idx}function p(){s="POP";let w=h(),O=w==null?null:w-u;u=w,c&&c({action:s,location:_.location,delta:O})}function v(w,O){s="PUSH";let S=JO(_.location,w,O);u=h()+1;let E=x3(S,u),T=_.createHref(S);try{a.pushState(E,"",T)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign(T)}o&&c&&c({action:s,location:_.location,delta:1})}function b(w,O){s="REPLACE";let S=JO(_.location,w,O);u=h();let E=x3(S,u),T=_.createHref(S);a.replaceState(E,"",T),o&&c&&c({action:s,location:_.location,delta:0})}function x(w){let O=i.location.origin!=="null"?i.location.origin:i.location.href,S=typeof w=="string"?w:Zh(w);return S=S.replace(/ $/,"%20"),ur(O,`No window.location.(origin|href) available to create URL for href: ${S}`),new URL(S,O)}let _={get action(){return s},get location(){return e(i,a)},listen(w){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(_3,p),c=w,()=>{i.removeEventListener(_3,p),c=null}},createHref(w){return t(i,w)},createURL:x,encodeLocation(w){let O=x(w);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:v,replace:b,go(w){return a.go(w)}};return _}function N8(e,t,r="/"){return SH(e,t,r,!1)}function SH(e,t,r,n){let i=typeof t=="string"?Hf(t):t,o=nl(i.pathname||"/",r);if(o==null)return null;let a=M8(e);PH(a);let s=null;for(let c=0;s==null&&c{let c={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};c.relativePath.startsWith("/")&&(ur(c.relativePath.startsWith(n),`Absolute route path "${c.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(n.length));let u=$a([n,c.relativePath]),h=r.concat(c);o.children&&o.children.length>0&&(ur(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),M8(o.children,t,h,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:RH(u,o.index),routesMeta:h})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let c of L8(o.path))i(o,a,c)}),t}function L8(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return i?[o,""]:[o];let a=L8(n.join("/")),s=[];return s.push(...a.map(c=>c===""?o:[o,c].join("/"))),i&&s.push(...a),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function PH(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:NH(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var CH=/^:[\w-]+$/,EH=3,TH=2,jH=1,AH=10,kH=-2,w3=e=>e==="*";function RH(e,t){let r=e.split("/"),n=r.length;return r.some(w3)&&(n+=kH),t&&(n+=TH),r.filter(i=>!w3(i)).reduce((i,o)=>i+(CH.test(o)?EH:o===""?jH:AH),n)}function NH(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function MH(e,t,r=!1){let{routesMeta:n}=e,i={},o="/",a=[];for(let s=0;s{if(h==="*"){let x=s[v]||"";a=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const b=s[v];return p&&!b?u[h]=void 0:u[h]=(b||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function LH(e,t=!1,r=!0){Oo(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 n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,c)=>(n.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function IH(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Oo(!1,`The URL path "${e}" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function nl(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function DH(e,t="/"){let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Hf(e):e;return{pathname:r?r.startsWith("/")?r:$H(r,t):t,search:UH(n),hash:zH(i)}}function $H(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function m1(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function FH(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function RE(e){let t=FH(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function NE(e,t,r,n=!1){let i;typeof e=="string"?i=Hf(e):(i={...e},ur(!i.pathname||!i.pathname.includes("?"),m1("?","pathname","search",i)),ur(!i.pathname||!i.pathname.includes("#"),m1("#","pathname","hash",i)),ur(!i.search||!i.search.includes("#"),m1("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=r;else{let p=t.length-1;if(!n&&a.startsWith("..")){let v=a.split("/");for(;v[0]==="..";)v.shift(),p-=1;i.pathname=v.join("/")}s=p>=0?t[p]:"/"}let c=DH(i,s),u=a&&a!=="/"&&a.endsWith("/"),h=(o||a===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(u||h)&&(c.pathname+="/"),c}var $a=e=>e.join("/").replace(/\/\/+/g,"/"),BH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),UH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,zH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function VH(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var I8=["POST","PUT","PATCH","DELETE"];new Set(I8);var WH=["GET",...I8];new Set(WH);var Gf=$.createContext(null);Gf.displayName="DataRouter";var C0=$.createContext(null);C0.displayName="DataRouterState";var D8=$.createContext({isTransitioning:!1});D8.displayName="ViewTransition";var qH=$.createContext(new Map);qH.displayName="Fetchers";var HH=$.createContext(null);HH.displayName="Await";var Po=$.createContext(null);Po.displayName="Navigation";var Kp=$.createContext(null);Kp.displayName="Location";var Co=$.createContext({outlet:null,matches:[],isDataRoute:!1});Co.displayName="Route";var ME=$.createContext(null);ME.displayName="RouteError";function GH(e,{relative:t}={}){ur(Mu(),"useHref() may be used only in the context of a component.");let{basename:r,navigator:n}=$.useContext(Po),{hash:i,pathname:o,search:a}=Yp(e,{relative:t}),s=o;return r!=="/"&&(s=o==="/"?r:$a([r,o])),n.createHref({pathname:s,search:a,hash:i})}function Mu(){return $.useContext(Kp)!=null}function yn(){return ur(Mu(),"useLocation() may be used only in the context of a component."),$.useContext(Kp).location}var $8="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function F8(e){$.useContext(Po).static||$.useLayoutEffect(e)}function la(){let{isDataRoute:e}=$.useContext(Co);return e?aG():KH()}function KH(){ur(Mu(),"useNavigate() may be used only in the context of a component.");let e=$.useContext(Gf),{basename:t,navigator:r}=$.useContext(Po),{matches:n}=$.useContext(Co),{pathname:i}=yn(),o=JSON.stringify(RE(n)),a=$.useRef(!1);return F8(()=>{a.current=!0}),$.useCallback((c,u={})=>{if(Oo(a.current,$8),!a.current)return;if(typeof c=="number"){r.go(c);return}let h=NE(c,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:$a([t,h.pathname])),(u.replace?r.replace:r.push)(h,u.state,u)},[t,r,o,i,e])}$.createContext(null);function Kf(){let{matches:e}=$.useContext(Co),t=e[e.length-1];return t?t.params:{}}function Yp(e,{relative:t}={}){let{matches:r}=$.useContext(Co),{pathname:n}=yn(),i=JSON.stringify(RE(r));return $.useMemo(()=>NE(e,JSON.parse(i),n,t==="path"),[e,i,n,t])}function YH(e,t){return B8(e,t)}function B8(e,t,r,n){var O;ur(Mu(),"useRoutes() may be used only in the context of a component.");let{navigator:i}=$.useContext(Po),{matches:o}=$.useContext(Co),a=o[o.length-1],s=a?a.params:{},c=a?a.pathname:"/",u=a?a.pathnameBase:"/",h=a&&a.route;{let S=h&&h.path||"";U8(c,!h||S.endsWith("*")||S.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${c}" (under ) 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. -Please change the parent to .`)}let p=yn(),v;if(t){let S=typeof t=="string"?Hf(t):t;ur(u==="/"||((O=S.pathname)==null?void 0:O.startsWith(u)),`When overriding the location using \`\` 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 "${S.pathname}" was given in the \`location\` prop.`),v=S}else v=p;let b=v.pathname||"/",x=b;if(u!=="/"){let S=u.replace(/^\//,"").split("/");x="/"+b.replace(/^\//,"").split("/").slice(S.length).join("/")}let _=N8(e,{pathname:x});Oo(h||_!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Oo(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let w=eG(_&&_.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:$a([u,i.encodeLocation?i.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:$a([u,i.encodeLocation?i.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),o,r,n);return t&&w?$.createElement(Kp.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},w):w}function ZH(){let e=oG(),t=VH(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=$.createElement($.Fragment,null,$.createElement("p",null,"💿 Hey developer 👋"),$.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",$.createElement("code",{style:o},"ErrorBoundary")," or"," ",$.createElement("code",{style:o},"errorElement")," prop on your route.")),$.createElement($.Fragment,null,$.createElement("h2",null,"Unexpected Application Error!"),$.createElement("h3",{style:{fontStyle:"italic"}},t),r?$.createElement("pre",{style:i},r):null,a)}var XH=$.createElement(ZH,null),QH=class extends $.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?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?$.createElement(Co.Provider,{value:this.props.routeContext},$.createElement(ME.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function JH({routeContext:e,match:t,children:r}){let n=$.useContext(Gf);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),$.createElement(Co.Provider,{value:e},r)}function eG(e,t=[],r=null,n=null){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,o=r==null?void 0:r.errors;if(o!=null){let c=i.findIndex(u=>u.route.id&&(o==null?void 0:o[u.route.id])!==void 0);ur(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,c+1))}let a=!1,s=-1;if(r)for(let c=0;c=0?i=i.slice(0,s+1):i=[i[0]];break}}}return i.reduceRight((c,u,h)=>{let p,v=!1,b=null,x=null;r&&(p=o&&u.route.id?o[u.route.id]:void 0,b=u.route.errorElement||XH,a&&(s<0&&h===0?(U8("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,x=null):s===h&&(v=!0,x=u.route.hydrateFallbackElement||null)));let _=t.concat(i.slice(0,h+1)),w=()=>{let O;return p?O=b:v?O=x:u.route.Component?O=$.createElement(u.route.Component,null):u.route.element?O=u.route.element:O=c,$.createElement(JH,{match:u,routeContext:{outlet:c,matches:_,isDataRoute:r!=null},children:O})};return r&&(u.route.ErrorBoundary||u.route.errorElement||h===0)?$.createElement(QH,{location:r.location,revalidation:r.revalidation,component:b,error:p,children:w(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):w()},null)}function LE(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function tG(e){let t=$.useContext(Gf);return ur(t,LE(e)),t}function rG(e){let t=$.useContext(C0);return ur(t,LE(e)),t}function nG(e){let t=$.useContext(Co);return ur(t,LE(e)),t}function IE(e){let t=nG(e),r=t.matches[t.matches.length-1];return ur(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function iG(){return IE("useRouteId")}function oG(){var n;let e=$.useContext(ME),t=rG("useRouteError"),r=IE("useRouteError");return e!==void 0?e:(n=t.errors)==null?void 0:n[r]}function aG(){let{router:e}=tG("useNavigate"),t=IE("useNavigate"),r=$.useRef(!1);return F8(()=>{r.current=!0}),$.useCallback(async(i,o={})=>{Oo(r.current,$8),r.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...o}))},[e,t])}var O3={};function U8(e,t,r){!t&&!O3[e]&&(O3[e]=!0,Oo(!1,r))}$.memo(sG);function sG({routes:e,future:t,state:r}){return B8(e,void 0,r,t)}function DE({to:e,replace:t,state:r,relative:n}){ur(Mu()," may be used only in the context of a component.");let{static:i}=$.useContext(Po);Oo(!i," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:o}=$.useContext(Co),{pathname:a}=yn(),s=la(),c=NE(e,RE(o),a,n==="path"),u=JSON.stringify(c);return $.useEffect(()=>{s(JSON.parse(u),{replace:t,state:r,relative:n})},[s,u,n,t,r]),null}function Pt(e){ur(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function lG({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:o=!1}){ur(!Mu(),"You cannot render a inside another . You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),s=$.useMemo(()=>({basename:a,navigator:i,static:o,future:{}}),[a,i,o]);typeof r=="string"&&(r=Hf(r));let{pathname:c="/",search:u="",hash:h="",state:p=null,key:v="default"}=r,b=$.useMemo(()=>{let x=nl(c,a);return x==null?null:{location:{pathname:x,search:u,hash:h,state:p,key:v},navigationType:n}},[a,c,u,h,p,v,n]);return Oo(b!=null,` is not able to match the URL "${c}${u}${h}" because it does not start with the basename, so the won't render anything.`),b==null?null:$.createElement(Po.Provider,{value:s},$.createElement(Kp.Provider,{children:t,value:b}))}function E0({children:e,location:t}){return YH(eS(e),t)}function eS(e,t=[]){let r=[];return $.Children.forEach(e,(n,i)=>{if(!$.isValidElement(n))return;let o=[...t,i];if(n.type===$.Fragment){r.push.apply(r,eS(n.props.children,o));return}ur(n.type===Pt,`[${typeof n.type=="string"?n.type:n.type.name}] is not a component. All component children of must be a or `),ur(!n.props.index||!n.props.children,"An index route cannot have child routes.");let a={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=eS(n.props.children,o)),r.push(a)}),r}var gg="get",yg="application/x-www-form-urlencoded";function T0(e){return e!=null&&typeof e.tagName=="string"}function uG(e){return T0(e)&&e.tagName.toLowerCase()==="button"}function cG(e){return T0(e)&&e.tagName.toLowerCase()==="form"}function fG(e){return T0(e)&&e.tagName.toLowerCase()==="input"}function dG(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hG(e,t){return e.button===0&&(!t||t==="_self")&&!dG(e)}var Uv=null;function pG(){if(Uv===null)try{new FormData(document.createElement("form"),0),Uv=!1}catch{Uv=!0}return Uv}var mG=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function v1(e){return e!=null&&!mG.has(e)?(Oo(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${yg}"`),null):e}function vG(e,t){let r,n,i,o,a;if(cG(e)){let s=e.getAttribute("action");n=s?nl(s,t):null,r=e.getAttribute("method")||gg,i=v1(e.getAttribute("enctype"))||yg,o=new FormData(e)}else if(uG(e)||fG(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a