diff --git a/dependabot/npm_and_yarn/vite-plugin-pwa-1.0.0/assets/index-D5Jmz22o.js b/dependabot/npm_and_yarn/vite-plugin-pwa-1.0.0/assets/index-BPvAOWRl.js similarity index 88% rename from dependabot/npm_and_yarn/vite-plugin-pwa-1.0.0/assets/index-D5Jmz22o.js rename to dependabot/npm_and_yarn/vite-plugin-pwa-1.0.0/assets/index-BPvAOWRl.js index a8a75f84..ea0f186a 100644 --- a/dependabot/npm_and_yarn/vite-plugin-pwa-1.0.0/assets/index-D5Jmz22o.js +++ b/dependabot/npm_and_yarn/vite-plugin-pwa-1.0.0/assets/index-BPvAOWRl.js @@ -50,7 +50,7 @@ The error may be correlated with this previous error: ${de.current.stack} `),ie}Kg(()=>{de.current=void 0,X.current=void 0,V.current=F});const K=I.useMemo(()=>I.createElement(w,{...F,ref:U}),[U,w,F]);return I.useMemo(()=>b?I.createElement(W.Provider,{value:G},K):K,[W,K,G])}const j=I.memo(T);if(j.WrappedComponent=w,j.displayName=T.displayName=P,c){const $=I.forwardRef(function(B,W){return I.createElement(j,{...B,reactReduxForwardedRef:W})});return $.displayName=P,$.WrappedComponent=w,xO($,w)}return xO(j,w)}}var t$=HH;function GH(e){const{children:t,context:r,serverState:n,store:i}=e,a=I.useMemo(()=>{const c=Q8(i);return{store:i,subscription:c,getServerState:n?()=>n:void 0}},[i,n]),o=I.useMemo(()=>i.getState(),[i]);Kg(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),o!==i.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,o]);const s=r||e$;return I.createElement(s.Provider,{value:a},t)}var r$=GH,gh={},B3;function KH(){if(B3)return gh;B3=1,Object.defineProperty(gh,"__esModule",{value:!0}),gh.parse=o,gh.serialize=l;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,a=(()=>{const v=function(){};return v.prototype=Object.create(null),v})();function o(v,x){const b=new a,_=v.length;if(_<2)return b;const w=(x==null?void 0:x.decode)||h;let S=0;do{const P=v.indexOf("=",S);if(P===-1)break;const C=v.indexOf(";",S),T=C===-1?_:C;if(P>T){S=v.lastIndexOf(";",P-1)+1;continue}const A=s(v,S,P),j=c(v,P,A),N=v.slice(A,j);if(b[N]===void 0){let $=s(v,P+1,T),U=c(v,T,$);const B=w(v.slice($,U));b[N]=B}S=T+1}while(S<_);return b}function s(v,x,b){do{const _=v.charCodeAt(x);if(_!==32&&_!==9)return x}while(++xb;){const _=v.charCodeAt(--x);if(_!==32&&_!==9)return x+1}return b}function l(v,x,b){const _=(b==null?void 0:b.encode)||encodeURIComponent;if(!e.test(v))throw new TypeError(`argument name is invalid: ${v}`);const w=_(x);if(!t.test(w))throw new TypeError(`argument val is invalid: ${x}`);let S=v+"="+w;if(!b)return S;if(b.maxAge!==void 0){if(!Number.isInteger(b.maxAge))throw new TypeError(`option maxAge is invalid: ${b.maxAge}`);S+="; Max-Age="+b.maxAge}if(b.domain){if(!r.test(b.domain))throw new TypeError(`option domain is invalid: ${b.domain}`);S+="; Domain="+b.domain}if(b.path){if(!n.test(b.path))throw new TypeError(`option path is invalid: ${b.path}`);S+="; Path="+b.path}if(b.expires){if(!p(b.expires)||!Number.isFinite(b.expires.valueOf()))throw new TypeError(`option expires is invalid: ${b.expires}`);S+="; Expires="+b.expires.toUTCString()}if(b.httpOnly&&(S+="; HttpOnly"),b.secure&&(S+="; Secure"),b.partitioned&&(S+="; Partitioned"),b.priority)switch(typeof b.priority=="string"?b.priority.toLowerCase():void 0){case"low":S+="; Priority=Low";break;case"medium":S+="; Priority=Medium";break;case"high":S+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${b.priority}`)}if(b.sameSite)switch(typeof b.sameSite=="string"?b.sameSite.toLowerCase():b.sameSite){case!0:case"strict":S+="; SameSite=Strict";break;case"lax":S+="; SameSite=Lax";break;case"none":S+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${b.sameSite}`)}return S}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 gh}KH();/** - * react-router v7.4.1 + * react-router v7.5.0 * * Copyright (c) Remix Software Inc. * @@ -60,7 +60,7 @@ ${de.current.stack} * @license MIT */var U3="popstate";function YH(e={}){function t(n,i){let{pathname:a,search:o,hash:s}=n.location;return wO("",{pathname:a,search:o,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:dp(i)}return XH(t,r,null,e)}function lr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function xa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ZH(){return Math.random().toString(36).substring(2,10)}function z3(e,t){return{usr:e.state,key:e.key,idx:t}}function wO(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ad(t):t,state:r,key:t&&t.key||n||ZH()}}function dp({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 ad(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 XH(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,s="POP",c=null,l=h();l==null&&(l=0,o.replaceState({...o.state,idx:l},""));function h(){return(o.state||{idx:null}).idx}function p(){s="POP";let w=h(),S=w==null?null:w-l;l=w,c&&c({action:s,location:_.location,delta:S})}function v(w,S){s="PUSH";let P=wO(_.location,w,S);l=h()+1;let C=z3(P,l),T=_.createHref(P);try{o.pushState(C,"",T)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign(T)}a&&c&&c({action:s,location:_.location,delta:1})}function x(w,S){s="REPLACE";let P=wO(_.location,w,S);l=h();let C=z3(P,l),T=_.createHref(P);o.replaceState(C,"",T),a&&c&&c({action:s,location:_.location,delta:0})}function b(w){let S=i.location.origin!=="null"?i.location.origin:i.location.href,P=typeof w=="string"?w:dp(w);return P=P.replace(/ $/,"%20"),lr(S,`No window.location.(origin|href) available to create URL for href: ${P}`),new URL(P,S)}let _={get action(){return s},get location(){return e(i,o)},listen(w){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(U3,p),c=w,()=>{i.removeEventListener(U3,p),c=null}},createHref(w){return t(i,w)},createURL:b,encodeLocation(w){let S=b(w);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:v,replace:x,go(w){return o.go(w)}};return _}function n$(e,t,r="/"){return QH(e,t,r,!1)}function QH(e,t,r,n){let i=typeof t=="string"?ad(t):t,a=Ho(i.pathname||"/",r);if(a==null)return null;let o=i$(e);JH(o);let s=null;for(let c=0;s==null&&c{let c={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};c.relativePath.startsWith("/")&&(lr(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 l=Uo([n,c.relativePath]),h=r.concat(c);a.children&&a.children.length>0&&(lr(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),i$(a.children,t,h,l)),!(a.path==null&&!a.index)&&t.push({path:l,score:oG(l,a.index),routesMeta:h})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let c of a$(a.path))i(a,o,c)}),t}function a$(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let o=a$(n.join("/")),s=[];return s.push(...o.map(c=>c===""?a:[a,c].join("/"))),i&&s.push(...o),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function JH(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:sG(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var eG=/^:[\w-]+$/,tG=3,rG=2,nG=1,iG=10,aG=-2,V3=e=>e==="*";function oG(e,t){let r=e.split("/"),n=r.length;return r.some(V3)&&(n+=aG),t&&(n+=rG),r.filter(i=>!V3(i)).reduce((i,a)=>i+(eG.test(a)?tG:a===""?nG:iG),n)}function sG(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 lG(e,t,r=!1){let{routesMeta:n}=e,i={},a="/",o=[];for(let s=0;s{if(h==="*"){let b=s[v]||"";o=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const x=s[v];return p&&!x?l[h]=void 0:l[h]=(x||"").replace(/%2F/g,"/"),l},{}),pathname:a,pathnameBase:o,pattern:e}}function uG(e,t=!1,r=!0){xa(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,(o,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 cG(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return xa(!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 Ho(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 fG(e,t="/"){let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?ad(e):e;return{pathname:r?r.startsWith("/")?r:dG(r,t):t,search:mG(n),hash:vG(i)}}function dG(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 L1(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 hG(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function eT(e){let t=hG(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function tT(e,t,r,n=!1){let i;typeof e=="string"?i=ad(e):(i={...e},lr(!i.pathname||!i.pathname.includes("?"),L1("?","pathname","search",i)),lr(!i.pathname||!i.pathname.includes("#"),L1("#","pathname","hash",i)),lr(!i.search||!i.search.includes("#"),L1("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=r;else{let p=t.length-1;if(!n&&o.startsWith("..")){let v=o.split("/");for(;v[0]==="..";)v.shift(),p-=1;i.pathname=v.join("/")}s=p>=0?t[p]:"/"}let c=fG(i,s),l=o&&o!=="/"&&o.endsWith("/"),h=(a||o===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(l||h)&&(c.pathname+="/"),c}var Uo=e=>e.join("/").replace(/\/\/+/g,"/"),pG=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),mG=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,vG=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function gG(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var o$=["POST","PUT","PATCH","DELETE"];new Set(o$);var yG=["GET",...o$];new Set(yG);var od=I.createContext(null);od.displayName="DataRouter";var W0=I.createContext(null);W0.displayName="DataRouterState";var s$=I.createContext({isTransitioning:!1});s$.displayName="ViewTransition";var bG=I.createContext(new Map);bG.displayName="Fetchers";var _G=I.createContext(null);_G.displayName="Await";var Oa=I.createContext(null);Oa.displayName="Navigation";var dm=I.createContext(null);dm.displayName="Location";var Pa=I.createContext({outlet:null,matches:[],isDataRoute:!1});Pa.displayName="Route";var rT=I.createContext(null);rT.displayName="RouteError";function xG(e,{relative:t}={}){lr(Vu(),"useHref() may be used only in the context of a component.");let{basename:r,navigator:n}=I.useContext(Oa),{hash:i,pathname:a,search:o}=hm(e,{relative:t}),s=a;return r!=="/"&&(s=a==="/"?r:Uo([r,a])),n.createHref({pathname:s,search:o,hash:i})}function Vu(){return I.useContext(dm)!=null}function bn(){return lr(Vu(),"useLocation() may be used only in the context of a component."),I.useContext(dm).location}var l$="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function u$(e){I.useContext(Oa).static||I.useLayoutEffect(e)}function uo(){let{isDataRoute:e}=I.useContext(Pa);return e?MG():wG()}function wG(){lr(Vu(),"useNavigate() may be used only in the context of a component.");let e=I.useContext(od),{basename:t,navigator:r}=I.useContext(Oa),{matches:n}=I.useContext(Pa),{pathname:i}=bn(),a=JSON.stringify(eT(n)),o=I.useRef(!1);return u$(()=>{o.current=!0}),I.useCallback((c,l={})=>{if(xa(o.current,l$),!o.current)return;if(typeof c=="number"){r.go(c);return}let h=tT(c,JSON.parse(a),i,l.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Uo([t,h.pathname])),(l.replace?r.replace:r.push)(h,l.state,l)},[t,r,a,i,e])}I.createContext(null);function sd(){let{matches:e}=I.useContext(Pa),t=e[e.length-1];return t?t.params:{}}function hm(e,{relative:t}={}){let{matches:r}=I.useContext(Pa),{pathname:n}=bn(),i=JSON.stringify(eT(r));return I.useMemo(()=>tT(e,JSON.parse(i),n,t==="path"),[e,i,n,t])}function SG(e,t){return c$(e,t)}function c$(e,t,r,n){var P;lr(Vu(),"useRoutes() may be used only in the context of a component.");let{navigator:i,static:a}=I.useContext(Oa),{matches:o}=I.useContext(Pa),s=o[o.length-1],c=s?s.params:{},l=s?s.pathname:"/",h=s?s.pathnameBase:"/",p=s&&s.route;{let C=p&&p.path||"";f$(l,!p||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${l}" (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 v=bn(),x;if(t){let C=typeof t=="string"?ad(t):t;lr(h==="/"||((P=C.pathname)==null?void 0:P.startsWith(h)),`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 "${h}" but pathname "${C.pathname}" was given in the \`location\` prop.`),x=C}else x=v;let b=x.pathname||"/",_=b;if(h!=="/"){let C=h.replace(/^\//,"").split("/");_="/"+b.replace(/^\//,"").split("/").slice(C.length).join("/")}let w=!a&&r&&r.matches&&r.matches.length>0?r.matches:n$(e,{pathname:_});xa(p||w!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),xa(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.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 S=TG(w&&w.map(C=>Object.assign({},C,{params:Object.assign({},c,C.params),pathname:Uo([h,i.encodeLocation?i.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?h:Uo([h,i.encodeLocation?i.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),o,r,n);return t&&S?I.createElement(dm.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},S):S}function OG(){let e=NG(),t=gG(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},a={padding:"2px 4px",backgroundColor:n},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),r?I.createElement("pre",{style:i},r):null,o)}var PG=I.createElement(OG,null),EG=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?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?I.createElement(Pa.Provider,{value:this.props.routeContext},I.createElement(rT.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function CG({routeContext:e,match:t,children:r}){let n=I.useContext(od);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),I.createElement(Pa.Provider,{value:e},r)}function TG(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,a=r==null?void 0:r.errors;if(a!=null){let c=i.findIndex(l=>l.route.id&&(a==null?void 0:a[l.route.id])!==void 0);lr(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,c+1))}let o=!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,l,h)=>{let p,v=!1,x=null,b=null;r&&(p=a&&l.route.id?a[l.route.id]:void 0,x=l.route.errorElement||PG,o&&(s<0&&h===0?(f$("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,b=null):s===h&&(v=!0,b=l.route.hydrateFallbackElement||null)));let _=t.concat(i.slice(0,h+1)),w=()=>{let S;return p?S=x:v?S=b:l.route.Component?S=I.createElement(l.route.Component,null):l.route.element?S=l.route.element:S=c,I.createElement(CG,{match:l,routeContext:{outlet:c,matches:_,isDataRoute:r!=null},children:S})};return r&&(l.route.ErrorBoundary||l.route.errorElement||h===0)?I.createElement(EG,{location:r.location,revalidation:r.revalidation,component:x,error:p,children:w(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):w()},null)}function nT(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function jG(e){let t=I.useContext(od);return lr(t,nT(e)),t}function AG(e){let t=I.useContext(W0);return lr(t,nT(e)),t}function kG(e){let t=I.useContext(Pa);return lr(t,nT(e)),t}function iT(e){let t=kG(e),r=t.matches[t.matches.length-1];return lr(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function RG(){return iT("useRouteId")}function NG(){var n;let e=I.useContext(rT),t=AG("useRouteError"),r=iT("useRouteError");return e!==void 0?e:(n=t.errors)==null?void 0:n[r]}function MG(){let{router:e}=jG("useNavigate"),t=iT("useNavigate"),r=I.useRef(!1);return u$(()=>{r.current=!0}),I.useCallback(async(i,a={})=>{xa(r.current,l$),r.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var W3={};function f$(e,t,r){!t&&!W3[e]&&(W3[e]=!0,xa(!1,r))}I.memo(LG);function LG({routes:e,future:t,state:r}){return c$(e,void 0,r,t)}function aT({to:e,replace:t,state:r,relative:n}){lr(Vu()," may be used only in the context of a component.");let{static:i}=I.useContext(Oa);xa(!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:a}=I.useContext(Pa),{pathname:o}=bn(),s=uo(),c=tT(e,eT(a),o,n==="path"),l=JSON.stringify(c);return I.useEffect(()=>{s(JSON.parse(l),{replace:t,state:r,relative:n})},[s,l,n,t,r]),null}function Pt(e){lr(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function IG({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:a=!1}){lr(!Vu(),"You cannot render a inside another . You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),s=I.useMemo(()=>({basename:o,navigator:i,static:a,future:{}}),[o,i,a]);typeof r=="string"&&(r=ad(r));let{pathname:c="/",search:l="",hash:h="",state:p=null,key:v="default"}=r,x=I.useMemo(()=>{let b=Ho(c,o);return b==null?null:{location:{pathname:b,search:l,hash:h,state:p,key:v},navigationType:n}},[o,c,l,h,p,v,n]);return xa(x!=null,` is not able to match the URL "${c}${l}${h}" because it does not start with the basename, so the won't render anything.`),x==null?null:I.createElement(Oa.Provider,{value:s},I.createElement(dm.Provider,{children:t,value:x}))}function q0({children:e,location:t}){return SG(SO(e),t)}function SO(e,t=[]){let r=[];return I.Children.forEach(e,(n,i)=>{if(!I.isValidElement(n))return;let a=[...t,i];if(n.type===I.Fragment){r.push.apply(r,SO(n.props.children,a));return}lr(n.type===Pt,`[${typeof n.type=="string"?n.type:n.type.name}] is not a component. All component children of must be a or `),lr(!n.props.index||!n.props.children,"An index route cannot have child routes.");let o={id:n.props.id||a.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&&(o.children=SO(n.props.children,a)),r.push(o)}),r}var Mg="get",Lg="application/x-www-form-urlencoded";function H0(e){return e!=null&&typeof e.tagName=="string"}function DG(e){return H0(e)&&e.tagName.toLowerCase()==="button"}function $G(e){return H0(e)&&e.tagName.toLowerCase()==="form"}function FG(e){return H0(e)&&e.tagName.toLowerCase()==="input"}function BG(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function UG(e,t){return e.button===0&&(!t||t==="_self")&&!BG(e)}var ag=null;function zG(){if(ag===null)try{new FormData(document.createElement("form"),0),ag=!1}catch{ag=!0}return ag}var VG=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function I1(e){return e!=null&&!VG.has(e)?(xa(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Lg}"`),null):e}function WG(e,t){let r,n,i,a,o;if($G(e)){let s=e.getAttribute("action");n=s?Ho(s,t):null,r=e.getAttribute("method")||Mg,i=I1(e.getAttribute("enctype"))||Lg,a=new FormData(e)}else if(DG(e)||FG(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a