1/*! LICENSE: lib-router.8f2652fae9.js.LICENSE.txt */ 2"use strict";(self.rspackChunk_pathwright_mainclient=self.rspackChunk_pathwright_mainclient||[]).push([["ik"],{gc(e,t,n){var r,o,a,i;function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}(a=r||(r={})).Pop="POP",a.Push="PUSH",a.Replace="REPLACE";let s="popstate";function u(e){let t;void 0===e&&(e={});let{initialEntries:n=["/"],initialIndex:o,v5Compat:a=!1}=e;t=n.map((e,t)=>c(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let i=u(null==o?t.length-1:o),l=r.Pop,s=null;function u(e){return Math.min(Math.max(e,0),t.length-1)}function c(e,n,r){void 0===n&&(n=null);let o=p(t?t[i].pathname:"/",e,n,r);return h("/"===o.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),o}function d(e){return"string"==typeof e?e:v(e)}return{get index(){return i},get action(){return l},get location(){return t[i]},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?m(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){l=r.Push;let o=c(e,n);i+=1,t.splice(i,t.length,o),a&&s&&s({action:l,location:o,delta:1})},replace(e,n){l=r.Replace;let o=c(e,n);t[i]=o,a&&s&&s({action:l,location:o,delta:0})},go(e){l=r.Pop;let n=u(i+e),o=t[n];i=n,s&&s({action:l,location:o,delta:e})},listen:e=>(s=e,()=>{s=null})}}function c(e){return void 0===e&&(e={}),function(e,t,n){void 0===n&&(n={});let{window:o=document.defaultView,v5Compat:a=!1}=n,i=o.history,u=r.Pop,c=null,h=m();function m(){return(i.state||{idx:null}).idx}function y(){u=r.Pop;let e=m(),t=null==e?null:e-h;h=e,c&&c({action:u,location:w.location,delta:t})}function g(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"==typeof e?e:v(e);return d(t,"No window.location.(origin|href) available to create URL for href: "+(n=n.replace(/ $/,"%20"))),new URL(n,t)}null==h&&(h=0,i.replaceState(l({},i.state,{idx:h}),""));let w={get action(){return u},get location(){return e(o,i)},listen(e){if(c)throw Error("A history only accepts one active listener");return o.addEventListener(s,y),c=e,()=>{o.removeEventListener(s,y),c=null}},createHref:e=>t(o,e),createURL:g,encodeLocation(e){let t=g(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){u=r.Push;let n=p(w.location,e,t);let l=f(n,h=m()+1),s=w.createHref(n);try{i.pushState(l,"",s)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(s)}a&&c&&c({action:u,location:w.location,delta:1})},replace:function(e,t){u=r.Replace;let n=p(w.location,e,t);let o=f(n,h=m()),l=w.createHref(n);i.replaceState(o,"",l),a&&c&&c({action:u,location:w.location,delta:0})},go:e=>i.go(e)};return w}(function(e,t){let{pathname:n,search:r,hash:o}=e.location;return p("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:v(t)},e)}function d(e,t){if(!1===e||null==e)throw Error(t)}function h(e,t){if(!e){"u">typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function f(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,n,r){return void 0===n&&(n=null),l({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?m(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function v(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function m(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}(i=o||(o={})).data="data",i.deferred="deferred",i.redirect="redirect",i.error="error";let y=new Set(["lazy","caseSensitive","path","id","index","children"]);function g(e,t,n,r){return void 0===n&&(n=[]),void 0===r&&(r={}),e.map((e,o)=>{let a=[...n,String(o)],i="string"==typeof e.id?e.id:a.join("-");if(d(!0!==e.index||!e.children,"Cannot specify children on an index route"),d(!r[i],'Found a route id collision on i
2d "'+i+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let n=l({},e,t(e),{id:i});return r[i]=n,n}{let n=l({},e,t(e),{id:i,children:void 0});return r[i]=n,e.children&&(n.children=g(e.children,t,a,r)),n}})}function w(e,t,n){return void 0===n&&(n="/"),b(e,t,n,!1)}function b(e,t,n,r){let o=C(("string"==typeof t?m(t):t).pathname||"/",n);if(null==o)return null;let a=function e(t,n,r,o){void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===o&&(o="");let a=(t,a,i)=>{var l,s;let u,c,h={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:a,route:t};h.relativePath.startsWith("/")&&(d(h.relativePath.startsWith(o),'Absolute route path "'+h.relativePath+'" nested under path "'+o+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),h.relativePath=h.relativePath.slice(o.length));let f=O([o,h.relativePath]),p=r.concat(h);t.children&&t.children.length>0&&(d(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+f+'".'),e(t.children,n,p,f)),(null!=t.path||t.index)&&n.push({path:f,score:(l=f,s=t.index,c=(u=l.split("/")).length,u.some(R)&&(c+=-2),s&&(c+=2),u.filter(e=>!R(e)).reduce((e,t)=>
2e+(E.test(t)?3:""===t?1:10),c)),routesMeta:p})};return t.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of function e(t){let n=t.split("/");if(0===n.length)return[];let[r,...o]=n,a=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===o.length)return a?[i,""]:[i];let l=e(o.join("/")),s=[];return s.push(...l.map(e=>""===e?i:[i,e].join("/"))),a&&s.push(...l),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))a(e,t,n);else a(e,t)}),n}(e);a.sort((e,t)=>{var n,r;return e.score!==t.score?t.score-e.score:(n=e.routesMeta.map(e=>e.childrenIndex),r=t.routesMeta.map(e=>e.childrenIndex),n.length===r.length&&n.slice(0,-1).every((e,t)=>e===r[t])?n[n.length-1]-r[r.length-1]:0)});let i=null;for(let e=0;null==i&&e<a.length;++e){let t=function(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return h(!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}}(o);i=function(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,o={},a="/",i=[];for(let e=0;e<r.length;++e){let l=r[e],s=e===r.length-1,u="/"===a?t:t.slice(a.length)||"/",c=S({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u),d=l.route;if(!c&&s&&n&&!r[r.length-1].route.index&&(c=S({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!c)return null;
2Object.assign(o,c.params),i.push({params:o,pathname:O([a,c.pathname]),pathnameBase:A(O([a,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(a=O([a,c.pathnameBase]))}return i}(a[e],t,r)}return i}function x(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}let E=/^:[\w-]+$/,R=e=>"*"===e;function S(e,t){var n,r,o;let a,i;"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[l,s]=(n=e.path,r=e.caseSensitive,o=e.end,void 0===r&&(r=!1),void 0===o&&(o=!0),h("*"===n||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were "'+n.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+n.replace(/\*$/,"/*")+'".'),a=[],i="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(a.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")),n.endsWith("*")?(a.push({paramName:"*"}),i+="*"===n||"/*"===n?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?i+="\\/*$":""!==n&&"/"!==n&&(i+="(?:(?=\\/|$))"),[new RegExp(i,r?void 0:"i"),a]),u=t.match(l);if(!u)return null;let c=u[0],d=c.replace(/(.)\/+$/,"$1"),f=u.slice(1);return{params:s.reduce((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=f[n]||"";d=c.slice(0,c.length-e.length).replace(/(.)\/+$/,"$1")}let a=f[n];return o&&!a?e[r]=void 0:e[r]=(a||"").replace(/%2F/g,"/"),e},{}),pathname:c,pathnameBase:d,pattern:e}}function C(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 P(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 k(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function L(e,t){let n=k(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function D(e,t,n,r){let o,a;void 0===r&&(r=!1),"string"==typeof e?o=m(e):(d(!(o=l({},e)).pathname||!o.pathname.includes("?"),P("?","pathname","search",o)),d(!o.pathname||!o.pathname.includes("#"),P("#","pathname","hash",o)),d(!o.search||!o.search.includes("#"),P("#","search","hash",o)));let i=""===e||""===o.pathname,s=i?"/":o.pathname;if(null==s)a=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let u=function(e,t){var n;let r;void 0===t&&(t="/");let{pathname:o,search:a="",hash:i=""}="string"==typeof e?m(e):e;return{pathname:o?o.startsWith("/")?o:(n=o,r=t.replace(/\/+$/,"").split("/"),n.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"):t,search:T(a),hash:U(i)}}(o,a),c=s&&"/"!==s&&s.endsWith("/"),h=(i||"."===s)&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||h)&&(u.pathname+="/"),u}let O=e=>e.join("/").replace(/\/\/+/g,"/"),A=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),T=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",U=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class _ extends Error{}class M{constructor(e,t,n,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function j(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let B=["post","put","patch","delete"],I=new Set(B),F=new Set(["get",...B]),N=new Set([301,302,303,307,308]),z=new Set([307,308]),H={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},W={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},$={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},V=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,q=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),J="remix-router-transitions";function Y(e){let t,n,a,i,s,u,c=e.window?e.window:"u">typeof window?window:void 0,f=void 0!==c&&void 0!==c.document&&void 0!==c.document.createElement,v=!f;if(d(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let n=e.detectErrorBoundary;t=e=>({hasErrorBoundary:n(e)})}else t=q;let m={},y=g(e.routes,t,void 0,m),E=e.basename||"/",R=e.dataStrategy||eo,S=e.patchRoutesOnNavigation,P=l({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prepe
2ndBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),k=null,L=new Set,D=null,O=null,A=null,T=null!=e.hydrationData,U=w(y,e.history.location,E),_=null;if(null==U&&!S){let t=ey(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=em(y);U=n,_={[r.id]:t}}if(U&&!e.hydrationData&&to(U,y,e.history.location.pathname).active&&(U=null),U)if(U.some(e=>e.route.lazy))a=!1;else if(U.some(e=>e.route.loader))if(P.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=U.findIndex(e=>void 0!==n[e.route.id]);a=U.slice(0,e+1).every(e=>!Q(e.route,t,n))}else a=U.every(e=>!Q(e.route,t,n))}else a=null!=e.hydrationData;else a=!0;else if(a=!1,U=[],P.v7_partialHydration){let t=to(null,y,e.history.location.pathname);t.active&&t.matches&&(U=t.matches)}let M={historyAction:e.history.action,location:e.history.location,matches:U,initialized:a,navigation:H,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||_,fetchers:new Map,blockers:new Map},B=r.Pop,I=!1,F=!1,Y=new Map,X=null,ee=!1,et=!1,er=[],ei=new Set,ec=new Map,ed=0,ew=-1,eR=new Map,eD=new Set,eM=new Map,ej=new Map,eB=new Set,eI=new Map,eF=new Map;function eN(e,t){void 0===t&&(t={}),M=l({},M,e);let n=[],r=[];P.v7_fetcherPersist&&M.fetchers.forEach((e,t)=>{"idle"===e.state&&(eB.has(t)?r.push(t):n.push(t))}),[...L].forEach(e=>e(M,{deletedFetchers:r,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),P.v7_fetcherPersist&&(n.forEach(e=>M.fetchers.delete(e)),r.forEach(e=>e7(e)))}function ez(t,o,a){var i,s;let u,c,{flushSync:d}=void 0===a?{}:a,h=null!=M.actionData&&null!=M.navigation.formMethod&&eC(M.navigation.formMethod)&&"loading"===M.navigation.state&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;u=o.actionData?Object.keys(o.actionData).length>0?o.actionData:null:h?M.actionData:null;let f=o.loaderData?ef(M.loaderData,o.loaderData,o.matches||[],o.errors):M.loaderData,p=M.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,$));let v=!0===I||null!=M.navigation.formMethod&&eC(M.navigation.formMethod)&&(null==(s=t.state)?void 0:s._isRedirect)!==!0;if(n&&(y=n,n=void 0),ee||B===r.Pop||(B===r.Push?e.history.push(t,t.state):B===r.Replace&&e.history.replace(t,t.state)),B===r.Pop){let e=Y.get(M.location.pathname);e&&e.has(t.pathname)?c={currentLocation:M.location,nextLocation:t}:Y.has(t.pathname)&&(c={currentLocation:t,nextLocation:M.location})}else if(F){let e=Y.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),Y.set(M.location.pathname,e)),c={currentLocation:M.location,nextLocation:t}}eN(l({},o,{actionData:u,loaderData:f,historyAction:B,location:t,initialized:!0,navigation:H,revalidation:"idle",restoreScrollPosition:tr(t,o.matches||M.matches),preventScrollReset:v,blockers:p}),{viewTransitionOpts:c,flushSync:!0===d}),B=r.Pop,I=!1,F=!1,ee=!1,et=!1,er=[]}async function eH(t,n){if("number"==typeof t)return void e.history.go(t);let o=G(M.location,M.matches,E,P.v7_prependBasename,t,P.v7_relativeSplatPath,null==n?void 0:n.fromRouteId,null==n?void 0:n.relative),{path:a,submission:i,error:s}=K(P.v7_normalizeFormMethod,!1,o,n),u=M.location,c=p(M.location,a,n&&n.state);c=l({},c,e.history.encodeLocation(c));let d=n&&null!=n.replace?n.replace:void 0,h=r.Push;!0===d?h=r.Replace:!1===d||null!=i&&eC(i.formMethod)&&i.formAction===M.location.pathname+M.location.search&&(h=r.Replace);let f=n&&"preventScrollReset"in n?!0===n.preventScrollReset:void 0,v=!0===(n&&n.flushSync),m=e9({currentLocation:u,nextLocation:c,historyAction:h});return m?void e8(m,{state:"blocked",location:c,proceed(){e8(m,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),eH(t,n)},reset(){let e=new Map(M.blockers);e.set(m,$),eN({blockers:e})}}):await eW(h,c,{submission:i,pendingError:s,preventScrollReset:f,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:v})}async function eW(t,r,a){var i,u,c,d;let h;s&&s.abort(),s=null,B=t,ee=!0===(a&&a.startUninterruptedRevalidation),i=M.location,u=M.matches,D&&A&&(D[tn(i,u)]=A()),I=!0===(a&&a.preventScrollReset),F=!0===(a&&a.enableViewTransition);let f=n||y,p=a&&a.overrideNavigation,v=w(f,r,E),m=!0===(a&&a.flushSync),g=to(v,f,r.pathname);if(g.active&&g.matches&&(v=g.matches),!v){let{error:e,notFoundMatches:t,route:n}=te(r.pathname);ez(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:m});return}if(M.initialized&&!et&&(c=M.location,d=r,c.pathname===d.pathname&&c.search===d.search&&(""===c.hash?""!==d.hash:c.hash===d.hash||""!==d.hash||!1))&&!(a&&a.submission&&eC(a.submission.formMethod)))return void ez(r,{matches:v},{flushSync:m});s=new AbortController;let b=eu(e.history,r,s.signal,a&&a.submission);if(a&&a.pendingError)h=[ev(v).route.id,{type:o.error,error:a.pendingError}];else if(a&&a.submission&&eC(a.submission.formMethod)){let t=await e$(b,r,a.submission,v,g.active,{replace:a.replace,flushSync:m});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,n]=t.pendingActionResult;if(ex(n)&&j(n.error)&&404===n.error.status){s=null,ez(r,{matches:t.matches,loaderData:{},errors:{[e]:n.error}});return}}v=t.matches||v,h=t.pendingActionResult,p=eT(r,a.submission),m=!1,g.active=!1,b=eu(e.history,b.url,b.signal)}let{shortCircuited:x,matches:R,loaderData:S,errors:C}=await eV(b,r,v,g.active,p,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,m,h);x||(s=null,ez(r,l({matches:R||v},ep(h),{loaderData:S,errors:C})))}async function e$(e,t,n,a,i,l){var s;let u;if(void 0===l&&(l={}),eZ(),eN({navigation:{state:"submitting",location:t,formMethod:(s=n).formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text}},{flushSync:!0===l.flushSync}),i){let n=await ta(a,t.pathname,e.signal);if("aborted"===n.type)return{shortCircuited:!0};if("error"===n.type){let e=ev(n.partialMatches).route.id;return{matches:n.partialMatches,pendingActionResult:[e,{type:o.error,error:n.error}]}}if(n.matches)a=n.matches;else{let{notFoundMatches:e,error:n,route:r}=te(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:o.error,error:n}]}}}let c=eO(a,t);
2if(c.route.action||c.route.lazy){if(u=(await eK("action",M,e,[c],a,null))[c.route.id],e.signal.aborted)return{shortCircuited:!0}}else u={type:o.error,error:ey(405,{method:e.method,pathname:t.pathname,routeId:c.route.id})};if(eE(u)){let t;return t=l&&null!=l.replace?l.replace:es(u.response.headers.get("Location"),new URL(e.url),E)===M.location.pathname+M.location.search,await eG(e,u,!0,{submission:n,replace:t}),{shortCircuited:!0}}if(eb(u))throw ey(400,{type:"defer-action"});if(ex(u)){let e=ev(a,c.route.id);return!0!==(l&&l.replace)&&(B=r.Push),{matches:a,pendingActionResult:[e.route.id,u]}}return{matches:a,pendingActionResult:[c.route.id,u]}}async function eV(t,r,o,a,i,u,c,d,h,f,p){let v=i||eT(r,u),m=u||c||eA(v),g=!ee&&(!P.v7_partialHydration||!h);if(a){if(g){let e=eq(p);eN(l({navigation:v},void 0!==e?{actionData:e}:{}),{flushSync:f})}let e=await ta(o,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=ev(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)o=e.matches;else{let{error:e,notFoundMatches:t,route:n}=te(r.pathname);return{matches:t,loaderData:{},errors:{[n.id]:e}}}}let w=n||y,[b,x]=Z(e.history,M,o,m,r,P.v7_partialHydration&&!0===h,P.v7_skipActionErrorRevalidation,et,er,ei,eB,eM,eD,w,E,p);if(tt(e=>!(o&&o.some(t=>t.route.id===e))||b&&b.some(t=>t.route.id===e)),ew=++ed,0===b.length&&0===x.length){let e=e2();return ez(r,l({matches:o,loaderData:{},errors:p&&ex(p[1])?{[p[0]]:p[1].error}:null},ep(p),e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(g){let e={};if(!a){e.navigation=v;let t=eq(p);void 0!==t&&(e.actionData=t)}x.length>0&&(x.forEach(e=>{let t=M.fetchers.get(e.key),n=eU(void 0,t?t.data:void 0);M.fetchers.set(e.key,n)}),e.fetchers=new Map(M.fetchers)),eN(e,{flushSync:f})}x.forEach(e=>{e4(e.key),e.controller&&ec.set(e.key,e.controller)});let R=()=>x.forEach(e=>e4(e.key));s&&s.signal.addEventListener("abort",R);let{loaderResults:S,fetcherResults:C}=await eX(M,o,b,x,t);if(t.signal.aborted)return{shortCircuited:!0};s&&s.signal.removeEventListener("abort",R),x.forEach(e=>ec.delete(e.key));let k=eg(S);if(k)return await eG(t,k.result,!0,{replace:d}),{shortCircuited:!0};if(k=eg(C))return eD.add(k.key),await eG(t,k.result,!0,{replace:d}),{shortCircuited:!0};let{loaderData:L,errors:D}=eh(M,o,S,p,x,C,eI);eI.forEach((e,t)=>{e.subscribe(n=>{(n||e.done)&&eI.delete(t)})}),P.v7_partialHydration&&h&&M.errors&&(D=l({},M.errors,D));let O=e2(),A=e5(ew),T=O||A||x.length>0;return l({matches:o,loaderData:L,errors:D},T?{fetchers:new Map(M.fetchers)}:{})}function eq(e){if(e&&!ex(e[1]))return{[e[0]]:e[1].data};if(M.actionData)if(0===Object.keys(M.actionData).length)return null;else return M.actionData}async function eJ(t,r,o,a,i,l,u,c,h){var f,p;function v(e){if(!e.route.action&&!e.route.lazy){let e=ey(405,{method:h.formMethod,pathname:o,routeId:r});return e0(t,r,e,{flushSync:u}),!0}return!1}if(eZ(),eM.delete(t),!l&&v(a))return;let m=M.fetchers.get(t);eQ(t,(f=h,p=m,{state:"submitting",formMethod:f.formMethod,formAction:f.formAction,formEncType:f.formEncType,formData:f.formData,json:f.json,text:f.text,data:p?p.data:void 0}),{flushSync:u});let g=new AbortController,b=eu(e.history,o,g.signal,h);if(l){let e=await ta(i,o,b.signal);if("aborted"===e.type)return;if("error"===e.type)return void e0(t,r,e.error,{flushSync:u});if(!e.matches)return void e0(t,r,ey(404,{pathname:o}),{flushSync:u});if(v(a=eO(i=e.matches,o)))return}ec.set(t,g);let x=ed,R=(await eK("action",M,b,[a],i,t))[a.route.id];if(b.signal.aborted){ec.get(t)===g&&ec.delete(t);return}if(P.v7_fetcherPersist&&eB.has(t)){if(eE(R)||ex(R))return void eQ(t,e_(void 0))}else{if(eE(R))return(ec.delete(t),ew>x)?void eQ(t,e_(void 0)):(eD.add(t),eQ(t,eU(h)),eG(b,R,!1,{fetcherSubmission:h,preventScrollReset:c}));if(ex(R))return void e0(t,r,R.error)}if(eb(R))throw ey(400,{type:"defer-action"});let S=M.navigation.location||M.location,C=eu(e.history,S,g.signal),k=n||y,L="idle"!==M.navigation.state?w(k,M.navigation.location,E):M.matches;d(L,"Didn't find any matches after fetcher action");let D=++ed;eR.set(t,D);let O=eU(h,R.data);M.fetchers.set(t,O);let[A,T]=Z(e.history,M,L,h,S,!1,P.v7_skipActionErrorRevalidation,et,er,ei,eB,eM,eD,k,E,[a.route.id,R]);T.filter(e=>
2e.key!==t).forEach(e=>{let t=e.key,n=M.fetchers.get(t),r=eU(void 0,n?n.data:void 0);M.fetchers.set(t,r),e4(t),e.controller&&ec.set(t,e.controller)}),eN({fetchers:new Map(M.fetchers)});let U=()=>T.forEach(e=>e4(e.key));g.signal.addEventListener("abort",U);let{loaderResults:_,fetcherResults:j}=await eX(M,L,A,T,C);if(g.signal.aborted)return;g.signal.removeEventListener("abort",U),eR.delete(t),ec.delete(t),T.forEach(e=>ec.delete(e.key));let I=eg(_);if(I)return eG(C,I.result,!1,{preventScrollReset:c});if(I=eg(j))return eD.add(I.key),eG(C,I.result,!1,{preventScrollReset:c});let{loaderData:F,errors:N}=eh(M,L,_,void 0,T,j,eI);if(M.fetchers.has(t)){let e=e_(R.data);M.fetchers.set(t,e)}e5(D),"loading"===M.navigation.state&&D>ew?(d(B,"Expected pending action"),s&&s.abort(),ez(M.navigation.location,{matches:L,loaderData:F,errors:N,fetchers:new Map(M.fetchers)})):(eN({errors:N,loaderData:ef(M.loaderData,F,L,N),fetchers:new Map(M.fetchers)}),et=!1)}async function eY(t,n,r,o,a,i,l,s,u){let c=M.fetchers.get(t);eQ(t,eU(u,c?c.data:void 0),{flushSync:l});let h=new AbortController,f=eu(e.history,r,h.signal);if(i){let e=await ta(a,r,f.signal);if("aborted"===e.type)return;if("error"===e.type)return void e0(t,n,e.error,{flushSync:l});if(!e.matches)return void e0(t,n,ey(404,{pathname:r}),{flushSync:l});o=eO(a=e.matches,r)}ec.set(t,h);let p=ed,v=(await eK("loader",M,f,[o],a,t))[o.route.id];if(eb(v)&&(v=await eL(v,f.signal,!0)||v),ec.get(t)===h&&ec.delete(t),!f.signal.aborted){if(eB.has(t))return void eQ(t,e_(void 0));if(eE(v))if(ew>p)return void eQ(t,e_(void 0));else{eD.add(t),await eG(f,v,!1,{preventScrollReset:s});return}if(ex(v))return void e0(t,n,v.error);d(!eb(v),"Unhandled fetcher deferred data"),eQ(t,e_(v.data))}}async function eG(t,n,o,a){let{submission:i,fetcherSubmission:u,preventScrollReset:h,replace:v}=void 0===a?{}:a;n.response.headers.has("X-Remix-Revalidate")&&(et=!0);let m=n.response.headers.get("Location");d(m,"Expected a Location header on the redirect Response"),m=es(m,new URL(t.url),E);let y=p(M.location,m,{_isRedirect:!0});if(f){let t=!1;if(n.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(V.test(m)){let n=e.history.createURL(m);t=n.origin!==c.location.origin||null==C(n.pathname,E)}if(t)return void(v?c.location.replace(m):c.location.assign(m))}s=null;let g=!0===v||n.response.headers.has("X-Remix-Replace")?r.Replace:r.Push,{formMethod:w,formAction:b,formEncType:x}=M.navigation;!i&&!u&&w&&b&&x&&(i=eA(M.navigation));let R=i||u;if(z.has(n.response.status)&&R&&eC(R.formMethod))await eW(g,y,{submission:l({},R,{formAction:m}),preventScrollReset:h||I,enableViewTransition:o?F:void 0});else{let e=eT(y,i);await eW(g,y,{overrideNavigation:e,fetcherSubmission:u,preventScrollReset:h||I,enableViewTransition:o?F:void 0})}}async function eK(e,n,r,a,i,l){let s,u={};try{s=await ea(R,e,n,r,a,i,l,m,t)}catch(e){return a.forEach(t=>{u[t.route.id]={type:o.error,error:e}}),u}for(let[e,t]of Object.entries(s)){var c;if(eS((c=t).result)&&N.has(c.result.status)){let n=t.result;u[e]={type:o.redirect,response:function(e,t,n,r,o,a){let i=e.headers.get("Location");if(d(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!V.test(i)){let l=r.slice(0,r.findIndex(e=>e.route.id===n)+1);i=G(new URL(t.url),l,o,!0,i,a),e.headers.set("Location",i)}return e}(n,r,e,i,E,P.v7_relativeSplatPath)}}else u[e]=await el(t)}return u}async function eX(t,n,r,a,i){let l=t.matches,s=eK("loader",t,i,r,n,null),u=Promise.all(a.map(async n=>{if(!n.matches||!n.match||!n.controller)return Promise.resolve({[n.key]:{type:o.error,error:ey(404,{pathname:n.path})}});{let r=(await eK("loader",t,eu(e.history,n.path,n.controller.signal),[n.match],n.matches,n.key))[n.match.route.id];return{[n.key]:r}}})),c=await s,d=(await u).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([eP(n,c,i.signal,l,t.loaderData),ek(n,d,a)]),{loaderResults:c,fetcherResults:d}}function eZ(){et=!0,er.push(...tt()),eM.forEach((e,t)=>{ec.has(t)&&ei.add(t),e4(t)})}function eQ(e,t,n){void 0===n&&(n={}),M.fetchers.set(e,t),eN({fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function e0(e,t,n,r){void 0===r&&(r={});let o=ev(M.matches,t);e7(e),eN({errors:{[o.route.id]:n},fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function e1(e){return P.v7_fetcherPersist&&(ej.set(e,(ej.get(e)||0)+1),eB.has(e)&&eB.delete(e)),M.fetchers.get(e)||W}function e7(e){let t=M.fetchers.get(e);ec.has(e)&&!(t&&"loading"===t.state&&eR.has(e))&&e4(e),eM.delete(e),eR.delete(e),eD.delete(e),eB.delete(e),ei.delete(e),M.fetchers.delete(e)}function e4(e){let t=ec.get(e);t&&(t.abort(),ec.delete(e))}function e3(e){for(let t of e){let e=e_(e1(t).data);M.fetchers.set(t,e)}}function e2(){let e=[],t=!1;for(let n of eD){let r=M.fetchers.get(n);d(r,"Expected fetcher: "+n),"loading"===r.state&&(eD.delete(n),e.push(n),t=!0)}return e3(e),t}function e5(e){let t=[];for(let[n,r]of eR)if(r<e){let e=M.fetchers.get(n);d(e,"Expected fetcher: "+n),"loading"===e.state&&(e4(n),eR.delete(n),t.push(n))}return e3(t),t.length>0}function e6(e){M.blockers.delete(e),eF.delete(e)}function e8(e,t){let n=M.blockers.get(e)||$;d("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state);let r=new Map(M.blockers);r.set(e,t),eN({blockers:r})}function e9(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(0===eF.size)return;eF.size>1&&h(!1,"A router only supports one blocker at a time");let o=Array.from(eF.entries()),[a,i]=o[o.length-1],l=M.blockers.get(a);if((!l||"proceeding"!==l.state)&&i({currentLocation:t,nextLocation:n,historyAction:r}))return a}function te(e){let t=ey(404,{pathname:e}),{matches:r,route:o}=em(n||y);return tt(),{notFoundMatches:r,route:o,error:t}}function tt(e){let t=[];return eI.forEach((n,r)=>{(!e||e(r))&&(n.cancel(),t.push(r),eI.delete(r))}),t}function tn(e,t){return O&&O(e,t.map(e=>x(e,M.loaderData)))||e.key}function tr(e,t){if(D){let n=D[tn(e,t)];if("number"==typeof n)return n}return null}function to(e,t,n){if(S){if(!e)return{active:!0,matches:b(t,n,E,!0)||[]};else if(Object.keys(e[0].params).length>0)return{active:!0,matches:b(t,n,E,!0)}}return{active:!1,matches:null}}async function ta(e,r,o){if(!S)return{type:"success",matches:e};let a=e;for(;;){let e=null==n,i=n||y,l=m;try{await S({path:r,matches:a,patch:(e,n)=>{o.aborted||en(e,n,i,l,t)}})}catch(e){return{type:"error",error:e,partialMatches:a}}finally{e&&!o.aborted&&(y=[...y])}if(o.aborted)return{type:"aborted"};let s=w(i,r,E);if(s)return{type:"success",matches:s};let u=b(i,r,E,!0);if(!u||a.length===u.length&&a.every((e,t)=>e.route.id===u[t].route.id))return{type:"success",matches:null};a=u}}return i={get basename(){return E},get future(){return P},get state(){return M},get routes(){return y},get window(){return c},initialize:function(){if(k=e.history.listen(t=>{let{action:n,location:r,delta:o}=t;if(u){u(),u=void 0;return}h(0===eF.size||null!=o,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let a=e9({currentLocation:M.location,nextLocation:r,historyAction:n});if(a&&null!=o){let t=new Promise(e=>{u=e});e.history.go(-1*o),e8(a,{state:"blocked",location:r,proceed(){e8(a,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.then(()=>e.history.go(o))},reset(){let e=new Map(M.blockers);e.set(a,$),eN({blockers:e})}});return}return eW(n,r)}),f){var t=c,n=Y;try{let e=t.sessionStorage.getItem(J);if(e){let t=JSON.parse(e);for(let[e,r]of Object.entries(t||{}))r&&Array.isArray(r)&&n.set(e,new Set(r||[]))}}catch(e){}let e=()=>(function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(J,JSON.stringify(n))}catch(e){h(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(c,Y);c.addEventListener("pagehide",e),X=()=>c.removeEventListener("pagehide",e)}return M.initialized||eW(r.Pop,M.location,{initialHydration:!0}),i},subscribe:function(e){return L.add(e),()=>L.delete(e)},enableScrollRestoration:function(e,t,n){if(D=e,A=t,O=n||null,!T&&M.navigation===H){T=!0;let e=tr(M.location,M.matches);null!=e&&eN({restoreScrollPosition:e})}return()=>{D=null,A=null,O=null}},navigate:eH,fetch:function(e,t,r,o){if(v)throw Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");e4(e);let a=!0===(o&&o.flushSync),i=n||y,l=G(M.location,M.matches,E,P.v7_prepe
2ndBasename,r,P.v7_relativeSplatPath,t,null==o?void 0:o.relative),s=w(i,l,E),u=to(s,i,l);if(u.active&&u.matches&&(s=u.matches),!s)return void e0(e,t,ey(404,{pathname:l}),{flushSync:a});let{path:c,submission:d,error:h}=K(P.v7_normalizeFormMethod,!0,l,o);if(h)return void e0(e,t,h,{flushSync:a});let f=eO(s,c),p=!0===(o&&o.preventScrollReset);d&&eC(d.formMethod)?eJ(e,t,c,f,s,u.active,a,p,d):(eM.set(e,{routeId:t,path:c}),eY(e,t,c,f,s,u.active,a,p,d))},revalidate:function(){if(eZ(),eN({revalidation:"loading"}),"submitting"!==M.navigation.state){if("idle"===M.navigation.state)return void eW(M.historyAction,M.location,{startUninterruptedRevalidation:!0});eW(B||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:!0===F})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:e1,deleteFetcher:function(e){if(P.v7_fetcherPersist){let t=(ej.get(e)||0)-1;t<=0?(ej.delete(e),eB.add(e)):ej.set(e,t)}else e7(e);eN({fetchers:new Map(M.fetchers)})},dispose:function(){k&&k(),X&&X(),L.clear(),s&&s.abort(),M.fetchers.forEach((e,t)=>e7(t)),M.blockers.forEach((e,t)=>e6(t))},getBlocker:function(e,t){let n=M.blockers.get(e)||$;return eF.get(e)!==t&&eF.set(e,t),n},deleteBlocker:e6,patchRoutes:function(e,r){let o=null==n;en(e,r,n||y,m,t),o&&(y=[...y],eN({}))},_internalFetchControllers:ec,_internalActiveDeferreds:eI,_internalSetRoutes:function(e){n=g(e,t,void 0,m={})}}}function G(e,t,n,r,o,a,i,l){let s,u;if(i){for(let e of(s=[],t))if(s.push(e),e.route.id===i){u=e;break}}else s=t,u=t[t.length-1];let c=D(o||".",L(s,a),C(e.pathname,n)||e.pathname,"path"===l);if(null==o&&(c.search=e.search,c.hash=e.hash),(null==o||""===o||"."===o)&&u){let e=eD(c.search);if(u.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();c.search=n?"?"+n:""}}return r&&"/"!==n&&(c.pathname="/"===c.pathname?n:O([n,c.pathname])),v(c)}function K(e,t,n,r){var o;let a,i;if(!r||!(null!=r&&("formData"in r&&null!=r.formData||"body"in r&&void 0!==r.body)))return{path:n};if(r.formMethod&&(o=r.formMethod,!F.has(o.toLowerCase())))return{path:n,error:ey(405,{method:r.formMethod})};let l=()=>({path:n,error:ey(400,{type:"invalid-body"})}),s=r.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=ew(n);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!eC(u))return l();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((e,t)=>{let[n,r]=t;return""+e+n+"="+r+"\n"},""):String(r.body);return{path:n,submission:{formMethod:u,formAction:c,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}else if("application/json"===r.formEncType){if(!eC(u))return l();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:u,formAction:c,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(d("function"==typeof FormData,"FormData is not available in this environment"),r.formData)a=ec(r.formData),i=r.formData;else if(r.body instanceof FormData)a=ec(r.body),i=r.body;else if(r.body instanceof URLSearchParams)i=ed(a=r.body);else if(null==r.body)a=new URLSearchParams,i=new FormData;else try{a=new URLSearchParams(r.body),i=ed(a)}catch(e){return l()}let h={formMethod:u,formAction:c,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(eC(h.formMethod))return{path:n,submission:h};let f=m(n);return t&&f.search&&eD(f.search)&&a.append("index",""),f.search="?"+a,{path:v(f),submission:h}}function X(e,t,n){void 0===n&&(n=!1);let r=e.findIndex(e=>e.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function Z(e,t,n,r,o,a,i,s,u,c,d,h,f,p,v,m){let y=m?ex(m[1])?m[1].error:m[1].data:void 0,g=e.createURL(t.location),b=e.createURL(o),x=n;a&&t.errors?x=X(n,Object.keys(t.errors)[0],!0):m&&ex(m[1])&&(x=X(n,m[0]));let E=m?m[1].statusCode:void 0,R=i&&E&&E>
2=400,S=x.filter((e,n)=>{var o,i,c;let d,h,{route:f}=e;if(f.lazy)return!0;if(null==f.loader)return!1;if(a)return Q(f,t.loaderData,t.errors);if(o=t.loaderData,i=t.matches[n],c=e,d=!i||c.route.id!==i.route.id,h=void 0===o[c.route.id],d||h||u.some(t=>t===e.route.id))return!0;let p=t.matches[n];return et(e,l({currentUrl:g,currentParams:p.params,nextUrl:b,nextParams:e.params},r,{actionResult:y,actionStatus:E,defaultShouldRevalidate:!R&&(s||g.pathname+g.search===b.pathname+b.search||g.search!==b.search||ee(p,e))}))}),C=[];return h.forEach((e,o)=>{if(a||!n.some(t=>t.route.id===e.routeId)||d.has(o))return;let i=w(p,e.path,v);if(!i)return void C.push({key:o,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=t.fetchers.get(o),h=eO(i,e.path),m=!1;f.has(o)?m=!1:c.has(o)?(c.delete(o),m=!0):m=u&&"idle"!==u.state&&void 0===u.data?s:et(h,l({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:n[n.length-1].params},r,{actionResult:y,actionStatus:E,defaultShouldRevalidate:!R&&s})),m&&C.push({key:o,routeId:e.routeId,path:e.path,matches:i,match:h,controller:new AbortController})}),[S,C]}function Q(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=null!=t&&void 0!==t[e.id],o=null!=n&&void 0!==n[e.id];return(!!r||!o)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!o)}function ee(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function et(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function en(e,t,n,r,o){var a;let i;if(e){let t=r[e];d(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=n;let l=g(t.filter(e=>!i.some(t=>(function e(t,n){return"id"in t&&"id"in n&&t.id===n.id||t.index===n.index&&t.path===n.path&&t.caseSensitive===n.caseSensitive&&((!t.children||0===t.children.length)&&(!n.children||0===n.children.length)||t.children.every((t,r)=>{var o;return null==(o=n.children)?void 0:o.some(n=>e(t,n))}))})(e,t))),o,[e||"_","patch",String((null==(a=i)?void 0:a.length)||"0")],r);i.push(...l)}async function er(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];d(o,"No route found in manifest");let a={};for(let e in r){let t=void 0!==o[e]&&"hasErrorBoundary"!==e;h(!t,'Route "'+o.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||y.has(e)||(a[e]=r[e])}Object.assign(o,a),Object.assign(o,l({},t(o),{lazy:void 0}))}async function eo(e){let{matches:t}=e,n=t.filter(e=>e.shouldLoad);return(await Promise.all(n.map(e=>e.resolve()))).reduce((e,t,r)=>Object.assign(e,{[n[r].route.id]:t}),{})}async function ea(e,t,n,r,a,i,s,u,c,d){let h=i.map(e=>e.route.lazy?er(e.route,c,u):void 0),f=i.map((e,n)=>{let i=h[n],s=a.some(t=>t.route.id===e.route.id),u=async n=>(n&&"GET"===r.method&&(e.route.lazy||e.route.loader)&&(s=!0),s?ei(t,r,e,i,n,d):Promise.resolve({type:o.data,result:void 0}));return l({},e,{shouldLoad:s,resolve:u})}),p=await e({matches:f,request:r,params:i[0].params,fetcherKey:s,context:d});try{await Promise.all(h)}catch(e){}return p}async function ei(e,t,n,r,a,i){let l,s,u=r=>{let o,l=new Promise((e,t)=>o=t);s=()=>o(),t.signal.addEventListener("abort",s);let u=o=>"function"!=typeof r?Promise.reject(Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: ')+n.route.id+"]")):r({request:t,params:n.params,context:i},...void 0!==o?[o]:[]);return Promise.race([(async()=>{try{let e=await (a?a(e=>u(e)):u());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),l])};try{let a=n.route[e];if(r)if(a){let e,[t]=await Promise.all([u(a).catch(t=>{e=t}),r]);if(void 0!==e)throw e;l=t}else if(await r,a=n.route[e])l=await u(a);else{if("action"!==e)return{type:o.data,result:void 0};let r=new URL(t.url),a=r.pathname+r.search;throw ey(405,{method:t.method,pathname:a,routeId:n.route.id})}else if(a)l=await u(a);else{let e=new URL(t.url),n=e.pathname+e.search;
2throw ey(404,{pathname:n})}d(void 0!==l.result,"You defined "+("action"===e?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `")+e+"` function. Please return a value or `null`.")}catch(e){return{type:o.error,result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return l}async function el(e){var t,n,r,a,i,l,s;let{result:u,type:c}=e;if(eS(u)){let e;try{let t=u.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==u.body?null:await u.json():await u.text()}catch(e){return{type:o.error,error:e}}return c===o.error?{type:o.error,error:new M(u.status,u.statusText,e),statusCode:u.status,headers:u.headers}:{type:o.data,data:e,statusCode:u.status,headers:u.headers}}if(c===o.error){if(eR(u)){if(u.data instanceof Error)return{type:o.error,error:u.data,statusCode:null==(n=u.init)?void 0:n.status};u=new M((null==(t=u.init)?void 0:t.status)||500,void 0,u.data)}return{type:o.error,error:u,statusCode:j(u)?u.status:void 0}}return(s=u)&&"object"==typeof s&&"object"==typeof s.data&&"function"==typeof s.subscribe&&"function"==typeof s.cancel&&"function"==typeof s.resolveData?{type:o.deferred,deferredData:u,statusCode:null==(r=u.init)?void 0:r.status,headers:(null==(a=u.init)?void 0:a.headers)&&new Headers(u.init.headers)}:eR(u)?{type:o.data,data:u.data,statusCode:null==(i=u.init)?void 0:i.status,headers:null!=(l=u.init)&&l.headers?new Headers(u.init.headers):void 0}:{type:o.data,data:u}}
2function es(e,t,n){if(V.test(e)){let r=new URL(e.startsWith("//")?t.protocol+e:e),o=null!=C(r.pathname,n);if(r.origin===t.origin&&o)return r.pathname+r.search+r.hash}return e}function eu(e,t,n,r){let o=e.createURL(ew(t)).toString(),a={signal:n};if(r&&eC(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),"application/json"===t?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):"text/plain"===t?a.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?a.body=ec(r.formData):a.body=r.formData}return new Request(o,a)}function ec(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function ed(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function eh(e,t,n,r,o,a,i){let s,u,c,h,f,p,{loaderData:v,errors:m}=(u={},c=null,h=!1,f={},p=r&&ex(r[1])?r[1].error:void 0,t.forEach(e=>{if(!(e.route.id in n))return;let r=e.route.id,o=n[r];if(d(!eE(o),"Cannot handle redirect results in processLoaderData"),ex(o)){let e=o.error;void 0!==p&&(e=p,p=void 0),c=c||{},1;{let n=ev(t,r);null==c[n.route.id]&&(c[n.route.id]=e)}u[r]=void 0,h||(h=!0,s=j(o.error)?o.error.status:500),o.headers&&(f[r]=o.headers)}else eb(o)?(i.set(r,o.deferredData),u[r]=o.deferredData.data,null==o.statusCode||200===o.statusCode||h||(s=o.statusCode)):(u[r]=o.data,o.statusCode&&200!==o.statusCode&&!h&&(s=o.statusCode)),o.headers&&(f[r]=o.headers)}),void 0!==p&&r&&(c={[r[0]]:p},u[r[0]]=void 0),{loaderData:u,errors:c,statusCode:s||200,loaderHeaders:f});return o.forEach(t=>{let{key:n,match:r,controller:o}=t,i=a[n];if(d(i,"Did not find corresponding fetcher result"),!o||!o.signal.aborted)if(ex(i)){let t=ev(e.matches,null==r?void 0:r.route.id);m&&m[t.route.id]||(m=l({},m,{[t.route.id]:i.error})),e.fetchers.delete(n)}else if(eE(i))d(!1,"Unhandled fetcher revalidation redirect");else if(eb(i))d(!1,"Unhandled fetcher deferred data");else{let t=e_(i.data);e.fetchers.set(n,t)}}),{loaderData:v,errors:m}}function ef(e,t,n,r){let o=l({},t);for(let a of n){let n=a.route.id;if(t.hasOwnProperty(n)?void 0!==t[n]&&(o[n]=t[n]):void 0!==e[n]&&a.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function ep(e){return e?ex(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ev(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function em(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ey(e,t){let{pathname:n,routeId:r,method:o,type:a,message:i}=void 0===t?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(l="Bad Request",o&&n&&r?s="You made a "+o+' request to "'+n+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===a?s="defer() is not supported in actions":"invalid-body"===a&&(s="Unable to encode submission body")):403===e?(l="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):404===e?(l="Not Found",s='No route matches URL "'+n+'"'):405===e&&(l="Method Not Allowed",o&&n&&r?s="You made a "+o.toUpperCase()+' request to "'+n+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new M(e||500,l,Error(s),!0)}function eg(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(eE(r))return{key:n,result:r}}}function ew(e){let t="string"==typeof e?m(e):e;return v(l({},t,{hash:""}))}function eb(e){return e.type===o.deferred}function ex(e){return e.type===o.error}function eE(e){return(e&&e.type)===o.redirect}function eR(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function eS(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function eC(e){return I.has(e.toLowerCase())}async function eP(e,t,n,r,o){let a=Object.entries(t);for(let i=0;i<a.length;i++){let[l,s]=a[i],u=e.find(e=>(null==e?void 0:e.route.id)===l);if(!u)continue;let c=r.find(e=>e.route.id===u.route.id),d=null!=c&&!ee(c,u)&&(o&&o[u.route.id])!==void 0;eb(s)&&d&&await eL(s,n,!1).then(e=>{e&&(t[l]=e)})}}async function ek(e,t,n){for(let r=0;r<n.length;r++){let{key:o,routeId:a,controller:i}=n[r],l=t[o];e.find(e=>(null==e?void 0:e.route.id)===a)&&eb(l)&&(d(i,"Expected an AbortController for revalidating fetcher deferred result"),await eL(l,i.signal,!0).then(e=>{e&&(t[o]=e)}))}}
2async function eL(e,t,n){if(void 0===n&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:o.data,data:e.deferredData.unwrappedData}}catch(e){return{type:o.error,error:e}}return{type:o.data,data:e.deferredData.data}}}function eD(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eO(e,t){let n="string"==typeof t?m(t).search:t.search;if(e[e.length-1].route.index&&eD(n||""))return e[e.length-1];let r=k(e);return r[r.length-1]}function eA(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(t&&n&&r){if(null!=o)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};else if(null!=a)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};else if(void 0!==i)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function eT(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function eU(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function e_(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}Symbol("deferred"),n.d(t,{AO:()=>v,Gh:()=>D,Oi:()=>d,Rr:()=>m,VV:()=>M,aE:()=>Y,pX:()=>j,pb:()=>C,rc:()=>r,ro:()=>x,sC:()=>u,tH:()=>_,ue:()=>w,yD:()=>L,zR:()=>c},{G3:$,HS:O,V2:function(e,t){void 0===t&&(t=302);let n=t;"number"==typeof n?n={status:n}:void 0===n.status&&(n.status=302);let r=new Headers(n.headers);return r.set("Location",e),new Response(null,l({},n,{headers:r}))}})},Ui(e,t,n){var r=n("Wi"),o=n("Zy"),a=n("QS"),i=n("y3");function l(e){return"/"===e.charAt(0)?e:"/"+e}function s(e){return"/"===e.charAt(0)?e.substr(1):e}function u(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))?e.substr(t.length):e}function c(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function d(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function h(e,t,n,a){var i,l,s,u,c,d;"string"==typeof e?(s="",u="",-1!==(c=(l=e||"/").indexOf("#"))&&(u=l.substr(c),l=l.substr(0,c)),-1!==(d=l.indexOf("?"))&&(s=l.substr(d),l=l.substr(0,d)),(i={pathname:l,search:"?"===s?"":s,hash:"#"===u?"":u}).state=t):(void 0===(i=(0,r.A)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){if(e instanceof URIError)throw URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.');throw e}return n&&(i.key=n),a?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=(0,o.A)(i.pathname,a.pathname)):i.pathname=a.pathname:i.pathname||(i.pathname="/"),i}function f(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&(0,a.A)(e.state,t.state)}function p(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach(function(e){return e.apply(void 0,n)})}}}var v=!!("u">typeof window&&window.document&&window.document.createElement);function m(e,t){t(window.confirm(e))}var y="popstate",g="hashchange";function w(){try{return window.history.state||{}}catch(e){return{}}}function b(e){void 0===e&&(e={}),v||(0,i.A)(!1);var t,n=window.history,o=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,a=-1!==window.navigator.userAgent.indexOf("Trident"),s=e,f=s.forceRefresh,b=void 0!==f&&f,x=s.getUserConfirmation,E=void 0===x?m:x,R=s.keyLength,S=void 0===R?6:R,C=e.basename?c(l(e.basename)):"";function P(e){var t=e||{},n=t.key,r=t.state,o=window.location,a=o.pathname+o.search+o.hash;
2return C&&(a=u(a,C)),h(a,r,n)}function k(){return Math.random().toString(36).substr(2,S)}var L=p();function D(e){(0,r.A)(z,e),z.length=n.length,L.notifyListeners(z.location,z.action)}function O(e){(void 0!==e.state||-1!==navigator.userAgent.indexOf("CriOS"))&&U(P(e.state))}function A(){U(P(w()))}var T=!1;function U(e){T?(T=!1,D()):L.confirmTransitionTo(e,"POP",E,function(t){var n,r,o,a,i;t?D({action:"POP",location:e}):(n=e,r=z.location,-1===(o=M.indexOf(r.key))&&(o=0),-1===(a=M.indexOf(n.key))&&(a=0),(i=o-a)&&(T=!0,B(i)))})}var _=P(w()),M=[_.key];function j(e){return C+d(e)}function B(e){n.go(e)}var I=0;function F(e){1===(I+=e)&&1===e?(window.addEventListener(y,O),a&&window.addEventListener(g,A)):0===I&&(window.removeEventListener(y,O),a&&window.removeEventListener(g,A))}var N=!1,z={length:n.length,action:"POP",location:_,createHref:j,push:function(e,t){var r="PUSH",a=h(e,t,k(),z.location);L.confirmTransitionTo(a,r,E,function(e){if(e){var t=j(a),i=a.key,l=a.state;if(o)if(n.pushState({key:i,state:l},null,t),b)window.location.href=t;else{var s=M.indexOf(z.location.key),u=M.slice(0,s+1);u.push(a.key),M=u,D({action:r,location:a})}else window.location.href=t}})},replace:function(e,t){var r="REPLACE",a=h(e,t,k(),z.location);L.confirmTransitionTo(a,r,E,function(e){if(e){var t=j(a),i=a.key,l=a.state;if(o)if(n.replaceState({key:i,state:l},null,t),b)window.location.replace(t);else{var s=M.indexOf(z.location.key);-1!==s&&(M[s]=a.key),D({action:r,location:a})}else window.location.replace(t)}})},go:B,goBack:function(){B(-1)},goForward:function(){B(1)},block:function(e){void 0===e&&(e=!1);var t=L.setPrompt(e);return N||(F(1),N=!0),function(){return N&&(N=!1,F(-1)),t()}},listen:function(e){var t=L.appendListener(e);return F(1),function(){F(-1),t()}}};return z}var x="hashchange",E={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+s(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:s,decodePath:l},slash:{encodePath:l,decodePath:l}};function R(e){var t=e.indexOf("#");return -1===t?e:e.slice(0,t)}function S(){var e=window.location.href,t=e.indexOf("#");return -1===t?"":e.substring(t+1)}function C(e){window.location.replace(R(window.location.href)+"#"+e)}function P(e){void 0===e&&(e={}),v||(0,i.A)(!1);var t=window.history;window.navigator.userAgent.indexOf("Firefox");var n=e,o=n.getUserConfirmation,a=void 0===o?m:o,s=n.hashType,f=e.basename?c(l(e.basename)):"",y=E[void 0===s?"slash":s],g=y.encodePath,w=y.decodePath;function b(){var e=w(S());return f&&(e=u(e,f)),h(e)}var P=p();function k(e){(0,r.A)(F,e),F.length=t.length,P.notifyListeners(F.location,F.action)}var L=!1,D=null;function O(){var e=S(),t=g(e);
2if(e!==t)C(t);else{var n,r=b(),o=F.location;if(!L&&o.pathname===r.pathname&&o.search===r.search&&o.hash===r.hash||D===d(r))return;D=null,n=r,L?(L=!1,k()):P.confirmTransitionTo(n,"POP",a,function(e){var t,r,o,a,i;e?k({action:"POP",location:n}):(t=n,r=F.location,-1===(o=_.lastIndexOf(d(r)))&&(o=0),-1===(a=_.lastIndexOf(d(t)))&&(a=0),(i=o-a)&&(L=!0,M(i)))})}}var A=S(),T=g(A);A!==T&&C(T);var U=b(),_=[d(U)];function M(e){t.go(e)}var j=0;function B(e){1===(j+=e)&&1===e?window.addEventListener(x,O):0===j&&window.removeEventListener(x,O)}var I=!1,F={length:t.length,action:"POP",location:U,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=R(window.location.href)),n+"#"+g(f+d(e))},push:function(e,t){var n="PUSH",r=h(e,void 0,void 0,F.location);P.confirmTransitionTo(r,n,a,function(e){if(e){var t=d(r),o=g(f+t);if(S()!==o){D=t,window.location.hash=o;var a=_.lastIndexOf(d(F.location)),i=_.slice(0,a+1);i.push(t),_=i,k({action:n,location:r})}else k()}})},replace:function(e,t){var n="REPLACE",r=h(e,void 0,void 0,F.location);P.confirmTransitionTo(r,n,a,function(e){if(e){var t=d(r),o=g(f+t);S()!==o&&(D=t,C(o));var a=_.indexOf(d(F.location));-1!==a&&(_[a]=t),k({action:n,location:r})}})},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=P.setPrompt(e);return I||(B(1),I=!0),function(){return I&&(I=!1,B(-1)),t()}},listen:function(e){var t=P.appendListener(e);return B(1),function(){B(-1),t()}}};return F}function k(e,t,n){return Math.min(Math.max(e,t),n)}function L(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,a=void 0===o?["/"]:o,i=t.initialIndex,l=t.keyLength,s=void 0===l?6:l,u=p();function c(e){(0,r.A)(g,e),g.length=g.entries.length,u.notifyListeners(g.location,g.action)}function f(){return Math.random().toString(36).substr(2,s)}var v=k(void 0===i?0:i,0,a.length-1),m=a.map(function(e){return"string"==typeof e?h(e,void 0,f()):h(e,void 0,e.key||f())});function y(e){var t=k(g.index+e,0,g.entries.length-1),r=g.entries[t];u.confirmTransitionTo(r,"POP",n,function(e){e?c({action:"POP",location:r,index:t}):c()})}var g={length:m.length,action:"POP",location:m[v],index:v,entries:m,createHref:d,push:function(e,t){var r="PUSH",o=h(e,t,f(),g.location);u.confirmTransitionTo(o,r,n,function(e){if(e){var t=g.index+1,n=g.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),c({action:r,location:o,index:t,entries:n})}})},replace:function(e,t){var r="REPLACE",o=h(e,t,f(),g.location);u.confirmTransitionTo(o,r,n,function(e){e&&(g.entries[g.index]=o,c({action:r,location:o}))})},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=g.index+e;return t>=0&&t<g.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return g}n.d(t,{AO:()=>d,Fu:()=>f,TM:()=>P,sC:()=>L,yJ:()=>h,zR:()=>b})},vB(e,t,n){n.d(t,{Kd:()=>c,N_:()=>m});var r=n("uG");function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var a=n("dx"),i=n("Ui");function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function s(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var u=n("y3"),c=function(e){function t(){for(var t,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,i.zR)(t.props),t}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,o(t,e),t.prototype.render=function(){return a.createElement(r.Ix,{history:this.history,children:this.props.children})},t}(a.Component);a.Component;var d=function(e,t){return"function"==typeof e?e(t):e},h=function(e,t){return"string"==typeof e?(0,i.yJ)(e,null,null,t):e},f=function(e){return e},p=a.forwardRef;void 0===p&&(p=f);var v=p(function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,i=s(e,["innerRef","navigate","onClick"]),u=i.target,c=l({},i,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||u&&"_self"!==u||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||(e.preventDefault(),r())}});return f!==p?c.ref=t||n:c.ref=n,a.createElement("a",c)}),m=p(function(e,t){var n=e.component,o=void 0===n?v:n,c=e.replace,m=e.to,y=e.innerRef,g=s(e,["component","replace","to","innerRef"]);return a.createElement(r.XZ.Consumer,null,function(e){e||(0,u.A)(!1);var n=e.history,r=h(d(m,e.location),e.location),s=r?n.createHref(r):"",v=l({},g,{href:s,navigate:function(){var t=d(m,e.location),r=(0,i.AO)(e.location)===(0,i.AO)(h(t));(c||r?n.replace:n.push)(t)}});return f!==p?v.ref=t||y:v.innerRef=y,a.createElement(o,v)})}),y=function(e){return e},g=a.forwardRef;void 0===g&&(g=y),g(function(e,t){var n=e["aria-current"],o=void 0===n?"page":n,i=e.activeClassName,c=void 0===i?"active":i,f=e.activeStyle,p=e.className,v=e.exact,w=e.isActive,b=e.location,x=e.sensitive,E=e.strict,R=e.style,S=e.to,C=e.innerRef,P
2=s(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a.createElement(r.XZ.Consumer,null,function(e){e||(0,u.A)(!1);var n=b||e.location,i=h(d(S,n),n),s=i.pathname,k=s&&s.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),L=k?(0,r.B6)(n.pathname,{path:k,exact:v,sensitive:x,strict:E}):null,D=!!(w?w(L,n):L),O="function"==typeof p?p(D):p,A="function"==typeof R?R(D):R;D&&(O=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e){return e}).join(" ")}(O,c),A=l({},A,f));var T=l({"aria-current":D&&o||null,className:O,style:A,to:i},P);return y!==g?T.ref=t||C:T.innerRef=C,a.createElement(m,T)})})},uG(e,t,n){function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{XG:()=>b,rd:()=>S,qh:()=>L,Ix:()=>g,dO:()=>D,XZ:()=>y,tW:()=>R,B6:()=>k,W6:()=>A,zy:()=>T,g:()=>U,W5:()=>_});var a=n("dx"),i=n("C"),l=n.n(i),s=n("Ui"),u=n("y3");function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var d=n("Jw"),h=n.n(d);n("rZ"),n("zy");var f="u">typeof globalThis?globalThis:"u">typeof window?window:void 0!==n.g?n.g:{},p=a.createContext||function(e,t){var n,r,i="__create-react-context-"+(f.__global_unique_id__=(f.__global_unique_id__||0)+1)+"__",s=function(e){function n(){for(var t,n,r,o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=(t=e.call.apply(e,[this].concat(a))||this).props.value,r=[],t.emitter={on:function(e){r.push(e)},off:function(e){r=r.filter(function(t){return t!==e})},get:function(){return n},set:function(e,t){n=e,r.forEach(function(e){return e(n,t)})}},t}o(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[i]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;(r===o?0!==r||1/r==1/o:r!=r&&o!=o)?n=0:0!=(n=("function"==typeof t?t(r,o):0x3fffffff)|0)&&this.emitter.set(e.value,n)}},r.render=function(){return this.props.children},n}(a.Component);(n={})[i]=l().object.isRequired,s.childContextTypes=n;var u=function(t){function n(){for(var e,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){(e.observedBits&n)!=0&&e.setState({value:e.getValue()})},e}o(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?0x3fffffff:t},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?0x3fffffff:e},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():e},r.render=function(){var e;return(Array.isArray(e=this.props.children)?e[0]:e)(this.state.value)},n}(a.Component);return(r={})[i]=l().object,u.contextTypes=r,{Provider:s,Consumer:u}},v=function(e){var t=p();return t.displayName=e,t},m=v("Router-History"),y=v("Router"),g=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen(function(e){n._pendingLocation=e})),n}o(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(t){e._isMounted&&e.setState({location:t})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return a.createElement(y.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a.createElement(m.Provider,{children:this.props.children||null,value:this.props.history}))},t}(a.Component);a.Component;var w=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(a.Component);function b(e){var t=e.message,n=e.when,r=void 0===n||n;return a.createElement(y.Consumer,null,function(e){if(e||(0,u.A)(!1),!r||e.staticContext)return null;var n=e.history.block;return a.createElement(w,{onMount:function(e){e.release=n(t)},onUpdate:function(e,r){r.message!==t&&(e.release(),e.release=n(t))},onUnmount:function(e){e.release()},message:t})})}var x={},E=0;function R(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:(function(e){if(x[e])return x[e];var t=h().compile(e);return E<1e4&&(x[e]=t,E++),t})(e)(t,{pretty:!0})}function S(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return a.createElement(y.Consumer,null,function(e){e||(0,u.A)(!1);var r=e.history,i=e.staticContext,l=o?r.push:r.replace,d=(0,s.yJ)(t?"string"==typeof n?R(n,t.params):c({},n,{pathname:R(n.pathname,t.params)}):n);return i?(l(d),null):a.createElement(w,{onMount:function(){l(d)},onUpdate:function(e,t){var n=(0,s.yJ)(t.to);(0,s.Fu)(n,c({},d,{key:n.key}))||l(d)},to:n})})}var C={},P=0;function k(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,a=void 0!==o&&o,i=n.strict,l=void 0!==i&&i,s=n.sensitive,u=void 0!==s&&s;return[].concat(r).reduce(function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=C[n]||(C[n]={});if(r[e])return r[e];var o=[],a={regexp:h()(e,o,t),keys:o};return P<1e4&&(r[e]=a,P++),a}
2(n,{end:a,strict:l,sensitive:u}),o=r.regexp,i=r.keys,s=o.exec(e);if(!s)return null;var c=s[0],d=s.slice(1),f=e===c;return a&&!f?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:f,params:i.reduce(function(e,t,n){return e[t.name]=d[n],e},{})}},null)}var L=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return a.createElement(y.Consumer,null,function(t){t||(0,u.A)(!1);var n,r=e.props.location||t.location,o=e.props.computedMatch?e.props.computedMatch:e.props.path?k(r.pathname,e.props):t.match,i=c({},t,{location:r,match:o}),l=e.props,s=l.children,d=l.component,h=l.render;return Array.isArray(s)&&(n=s,0===a.Children.count(n))&&(s=null),a.createElement(y.Provider,{value:i},i.match?s?"function"==typeof s?s(i):s:d?a.createElement(d,i):h?h(i):null:"function"==typeof s?s(i):null)})},t}(a.Component);a.Component;var D=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return a.createElement(y.Consumer,null,function(t){t||(0,u.A)(!1);var n,r,o=e.props.location||t.location;return a.Children.forEach(e.props.children,function(e){if(null==r&&a.isValidElement(e)){n=e;var i=e.props.path||e.props.from;r=i?k(o.pathname,c({},e.props,{path:i})):t.match}}),r?a.cloneElement(n,{location:o,computedMatch:r}):null})},t}(a.Component),O=a.useContext;function A(){return O(m)}function T(){return O(y).location}function U(){var e=O(y).match;return e?e.params:{}}function _(e){var t=T(),n=O(y).match;return e?k(t.pathname,e):n}},fIr(e,t,n){var r,o,a,i,l,s,u=n("dx"),c=n("fD"),d=n("qxa"),h=n("gc");function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let p="application/x-www-form-urlencoded";function v(e){return null!=e&&"string"==typeof e.tagName}let m=null,y=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function g(e){return null==e||y.has(e)?e:null}let w=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function b(e,t){var n;let r;return(0,h.aE)({basename:null==t?void 0:t.basename,future:f({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,h.zR)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||((r=null==(n=window)?void 0:n.__staticRouterHydrationData)&&r.errors&&(r=f({},r,{errors:function(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new h.VV(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let o=new t(r.message);o.stack="",n[e]=o}catch(e){}}if(null==n[e]){let t=Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}(r.errors)})),r),routes:e,mapRouteProperties:d.wE,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}let x=u.createContext({isTransitioning:!1}),E=u.createContext(new Map),R=(a||(a=n.t(u,2))).startTransition,S=(i||(i=n.t(c,2))).flushSync;function C(e){S?S(e):e()}(a||(a=n.t(u,2))).useId;class P{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function k(e){let{fallbackElement:t,router:n,future:r}=e,[o,a]=u.useState(n.state),[i,l]=u.useState(),[s,c]=u.useState({isTransitioning:!1}),[h,f]=u.useState(),[p,v]=u.useState(),[m,y]=u.useState(),g=u.useRef(new Map),{v7_startTransition:w}=r||{},b=u.useCallback(e=>{if(w)R?R(e):e();else e()},[w]),S=u.useCallback((e,t)=>{let{deletedFetchers:r,flushSync:o,viewTransitionOpts:i}=t;r.forEach(e=>g.current.delete(e)),e.fetchers.forEach((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)});let s=null==n.window||null==n.window.document||"function"!=typeof n.window.document.startViewTransition;if(!i||s)return void(o?C(()=>a(e)):b(()=>a(e)));if(o){C(()=>{p&&(h&&h.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=n.window.document.startViewTransition(()=>{C(()=>a(e))});t.finished.finally(()=>{C(()=>{f(void 0),v(void 0),l(void 0),c({isTransitioning:!1})})}),C(()=>v(t));return}p?(h&&h.resolve(),p.skipTransition(),y({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(l(e),c({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))},[n.window,p,h,g,b]);u.useLayoutEffect(()=>n.subscribe(S),[n,S]),u.useEffect(()=>
2{s.isTransitioning&&!s.flushSync&&f(new P)},[s]),u.useEffect(()=>{if(h&&i&&n.window){let e=h.promise,t=n.window.document.startViewTransition(async()=>{b(()=>a(i)),await e});t.finished.finally(()=>{f(void 0),v(void 0),l(void 0),c({isTransitioning:!1})}),v(t)}},[b,i,h,n.window]),u.useEffect(()=>{h&&i&&o.location.key===i.location.key&&h.resolve()},[h,p,o.location,i]),u.useEffect(()=>{!s.isTransitioning&&m&&(l(m.state),c({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),y(void 0))},[s.isTransitioning,m]),u.useEffect(()=>{},[]);let k=u.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})}),[n]),D=n.basename||"/",O=u.useMemo(()=>({router:n,navigator:k,static:!1,basename:D}),[n,k,D]),A=u.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return u.createElement(u.Fragment,null,u.createElement(d.sp.Provider,{value:O},u.createElement(d.Rq.Provider,{value:o},u.createElement(E.Provider,{value:g.current},u.createElement(x.Provider,{value:s},u.createElement(d.Ix,{basename:D,location:o.location,navigationType:o.historyAction,navigator:k,future:A},o.initialized||n.future.v7_partialHydration?u.createElement(L,{routes:n.routes,future:n.future,state:o}):t))))),null)}let L=u.memo(function(e){let{routes:t,future:n,state:r}=e;return(0,d.ph)(t,void 0,r,n)}),D="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,O=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,A=u.forwardRef(function(e,t){let n,{onClick:r,relative:o,reloadDocument:a,replace:i,state:l,target:s,to:c,preventScrollReset:p,viewTransition:v}=e,m=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,w),{basename:y}=u.useContext(d.jb),g=!1;if("string"==typeof c&&O.test(c)&&(n=c,D))try{let e=new URL(window.location.href),t=new URL(c.startsWith("//")?e.protocol+c:c),n=(0,h.pb)(t.pathname,y);t.origin===e.origin&&null!=n?c=n+t.search+t.hash:g=!0}catch(e){}let b=(0,d.$P)(c,{relative:o}),x=function(e,t){let{target:n,replace:r,state:o,preventScrollReset:a,relative:i,viewTransition:l}=void 0===t?{}:t,s=(0,d.Zp)(),c=(0,d.zy)(),f=(0,d.x$)(e,{relative:i});return u.useCallback(t=>{0!==t.button||n&&"_self"!==n||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),s(e,{replace:void 0!==r?r:(0,h.AO)(c)===(0,h.AO)(f),state:o,preventScrollReset:a,relative:i,viewTransition:l}))},[c,s,f,r,o,n,e,a,i,l])}(c,{replace:i,state:l,target:s,preventScrollReset:p,relative:o,viewTransition:v});return u.createElement("a",f({},m,{href:n||b,onClick:g||a?r:function(e){r&&r(e),e.defaultPrevented||x(e)},ref:t,target:s}))});function T(e){let{getKey:t,storageKey:n}=e;return function(e){let t,{getKey:n,storageKey:r}=void 0===e?{}:e,{router:o}=U(l.UseScrollRestoration),{restoreScrollPosition:a,preventScrollReset:i}=(s.UseScrollRestoration,(t=u.useContext(d.Rq))||(0,h.Oi)(!1),t),{basename:c}=u.useContext(d.jb),p=(0,d.zy)(),v=(0,d.FE)(),m=(0,d.cq)();u.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e){let{capture:t}={};u.useEffect(()=>{let n=null!=t?{capture:t}:void 0;return window.addEventListener("pagehide",e,n),()=>{window.removeEventListener("pagehide",e,n)}},[e,t])}(u.useCallback(()=>{"idle"===m.state&&(B[(n?n(p,v):null)||p.key]=window.scrollY);
2try{sessionStorage.setItem(r||j,JSON.stringify(B))}catch(e){}window.history.scrollRestoration="auto"},[r,n,m.state,p,v])),"u">typeof document&&(u.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(r||j);e&&(B=JSON.parse(e))}catch(e){}},[r]),u.useLayoutEffect(()=>{let e=n&&"/"!==c?(e,t)=>n(f({},e,{pathname:(0,h.pb)(e.pathname,c)||e.pathname}),t):n,t=null==o?void 0:o.enableScrollRestoration(B,()=>window.scrollY,e);return()=>t&&t()},[o,c,n]),u.useLayoutEffect(()=>{if(!1!==a){if("number"==typeof a)return void window.scrollTo(0,a);if(p.hash){let e=document.getElementById(decodeURIComponent(p.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==i&&window.scrollTo(0,0)}},[p,a,i]))}({getKey:t,storageKey:n}),null}function U(e){let t=u.useContext(d.sp);return t||(0,h.Oi)(!1),t}(r=l||(l={})).UseScrollRestoration="useScrollRestoration",r.UseSubmit="useSubmit",r.UseSubmitFetcher="useSubmitFetcher",r.UseFetcher="useFetcher",r.useViewTransitionState="useViewTransitionState",(o=s||(s={})).UseFetcher="useFetcher",o.UseFetchers="useFetchers",o.UseScrollRestoration="useScrollRestoration";let _=0;function M(){let{router:e}
2=U(l.UseSubmit),{basename:t}=u.useContext(d.jb),n=(0,d.$3)();return u.useCallback(function(r,o){if(void 0===o&&(o={}),"u"<typeof document)throw Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");let{action:a,method:i,encType:l,formData:s,body:u}=function(e,t){let n,r,o,a,i;if(v(e)&&"form"===e.tagName.toLowerCase()){let i=e.getAttribute("action");r=i?(0,h.pb)(i,t):null,n=e.getAttribute("method")||"get",o=g(e.getAttribute("enctype"))||p,a=new FormData(e)}else if(v(e)&&"button"===e.tagName.toLowerCase()||v(e)&&"input"===e.tagName.toLowerCase()&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(r=l?(0,h.pb)(l,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||"get",o=g(e.getAttribute("formenctype"))||g(i.getAttribute("enctype"))||p,a=new FormData(i,e),!function(){if(null===m)try{new FormData(document.createElement("form"),0),m=!1}catch(e){m=!0}return m}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?t+".":"";a.append(e+"x","0"),a.append(e+"y","0")}else t&&a.append(t,r)}}else if(v(e))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else n="get",r=null,o=p,i=e;return a&&"text/plain"===o&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}(r,t);if(!1===o.navigate){let t=o.fetcherKey||"__"+String(++_)+"__";e.fetch(t,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||i,formEncType:o.encType||l,flushSync:o.flushSync})}else e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||i,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}let j="react-router-scroll-positions",B={};n.d(t,{OA:()=>T,Ys:()=>b,of:()=>M,pg:()=>k},{N_:A})}
2,qxa(e,t,n){var r,o,a,i,l=n("dx"),s=n("gc");function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let c=l.createContext(null),d=l.createContext(null),h=l.createContext(null),f=l.createContext(null),p=l.createContext({outlet:null,matches:[],isDataRoute:!1}),v=l.createContext(null);function m(e,t){let{relative:n}=void 0===t?{}:t;y()||(0,s.Oi)(!1);let{basename:r,navigator:o}=l.useContext(h),{hash:a,pathname:i,search:u}=E(e,{relative:n}),c=i;return"/"!==r&&(c="/"===i?r:(0,s.HS)([r,i])),o.createHref({pathname:c,search:u,hash:a})}function y(){return null!=l.useContext(f)}function g(){return y()||(0,s.Oi)(!1),l.useContext(f).location}function w(e){l.useContext(h).static||l.useLayoutEffect(e)}function b(){let{isDataRoute:e}=l.useContext(p);return e?function(){let{router:e}=D(k.UseNavigateStable),t=A(L.UseNavigateStable),n=l.useRef(!1);return w(()=>{n.current=!0}),l.useCallback(function(r,o){void 0===o&&(o={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,u({fromRouteId:t},o)))},[e,t])}():function(){y()||(0,s.Oi)(!1);let e=l.useContext(c),{basename:t,future:n,navigator:r}=l.useContext(h),{matches:o}=l.useContext(p),{pathname:a}=g(),i=JSON.stringify((0,s.yD)(o,n.v7_relativeSplatPath)),u=l.useRef(!1);return w(()=>{u.current=!0}),l.useCallback(function(n,o){if(void 0===o&&(o={}),!u.current)return;if("number"==typeof n)return void r.go(n);let l=(0,s.Gh)(n,JSON.parse(i),a,"path"===o.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:(0,s.HS)([t,l.pathname])),(o.replace?r.replace:r.push)(l,o.state,o)},[t,r,i,a,e])}()}let x=l.createContext(null);function E(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=l.useContext(h),{matches:o}=l.useContext(p),{pathname:a}=g(),i=JSON.stringify((0,s.yD)(o,r.v7_relativeSplatPath));return l.useMemo(()=>(0,s.Gh)(e,JSON.parse(i),a,"path"===n),[e,i,a,n])}function R(e,t,n,r){let o;y()||(0,s.Oi)(!1);let{navigator:a}=l.useContext(h),{matches:i}=l.useContext(p),c=i[i.length-1],d=c?c.params:{};c&&c.pathname;let v=c?c.pathnameBase:"/";c&&c.route;let m=g();if(t){var w;let e="string"==typeof t?(0,s.Rr)(t):t;"/"===v||(null==(w=e.pathname)?void 0:w.startsWith(v))||(0,s.Oi)(!1),o=e}else o=m;let b=o.pathname||"/",x=b;if("/"!==v){let e=v.replace(/^\//,"").split("/");x="/"+b.replace(/^\//,"").split("/").slice(e.length).join("/")}let E=(0,s.ue)(e,{pathname:x}),R=function(e,t,n,r){var o,a;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(null==(a=r)||!a.v7_partialHydration||0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let i=e,u=null==(o=n)?void 0:o.errors;if(null!=u){let e=i.findIndex(e=>e.route.id&&(null==u?void 0:u[e.route.id])!==void 0);e>=0||(0,s.Oi)(!1),i=i.slice(0,Math.min(i.length,e+1))}let c=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){c=!0,i=d>=0?i.slice(0,d+1):[i[0]];break}}}return i.reduceRight((e,r,o)=>{var a;let s,h=!1,f=null,p=null;n&&(s=u&&r.route.id?u[r.route.id]:void 0,f=r.route.errorElement||S,c&&(d<0&&0===o?(a="route-fallback",F[a]||(F[a]=!0),h=!0,p=null):d===o&&(h=!0,p=r.route.hydrateFallbackElement||null)));let v=t.concat(i.slice(0,o+1)),m=()=>{let t;return t=s?f:h?p:r.route.Component?l.createElement(r.route.Component,null):r.route.element?r.route.element:e,l.createElement(P,{match:r,routeContext:{outlet:e,matches:v,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?l.createElement(C,{location:n.location,revalidation:n.revalidation,component:f,error:s,children:m(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):m()},null)}(E&&E.map(e=>Object.assign({},e,{params:Object.assign({},d,e.params),pathname:(0,s.HS)([v,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?v:(0,s.HS)([v,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),i,n,r);return t&&R?l.createElement(f.Provider,{value:{location:u({pathname:"/",search:"",hash:"",state:null,key:"default"},o),navigationType:s.rc.Pop}},R):R}let S=l.createElement(function(){var e;let t,n,r,o=(t=l.useContext(v),n=O(L.UseRouteError),r=A(L.UseRouteError),void 0!==t?t:null==(e=n.errors)?void 0:e[r]),a=(0,s.pX)(o)?o.status+" "+o.statusText:o instanceof Error?o.message:JSON.stringify(o),i=o instanceof Error?o.stack:null;return l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application
2Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},a),i?l.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},i):null,null)},null);class C extends l.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||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?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 void 0!==this.state.error?l.createElement(p.Provider,{value:this.props.routeContext},l.createElement(v.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function P(e){let{routeContext:t,match:n,children:r}=e,o=l.useContext(c);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),l.createElement(p.Provider,{value:t},r)}var k=((r=k||{}).UseBlocker="useBlocker",r.UseRevalidator="useRevalidator",r.UseNavigateStable="useNavigate",r),L=((o=L||{}).UseBlocker="useBlocker",o.UseLoaderData="useLoaderData",o.UseActionData="useActionData",o.UseRouteError="useRouteError",o.UseNavigation="useNavigation",o.UseRouteLoaderData="useRouteLoaderData",o.UseMatches="useMatches",o.UseRevalidator="useRevalidator",o.UseNavigateStable="useNavigate",o.UseRouteId="useRouteId",o);function D(e){let t=l.useContext(c);return t||(0,s.Oi)(!1),t}function O(e){let t=l.useContext(d);return t||(0,s.Oi)(!1),t}function A(e){let t,n=((t=l.useContext(p))||(0,s.Oi)(!1),t),r=n.matches[n.matches.length-1];return r.route.id||(0,s.Oi)(!1),r.route.id}function T(){return A(L.UseRouteId)}function U(){return O(L.UseNavigation).navigation}function _(){let{matches:e,loaderData:t}=O(L.UseMatches);return l.useMemo(()=>e.map(e=>(0,s.ro)(e,t)),[e,t])}function M(){let e=O(L.UseLoaderData),t=A(L.UseLoaderData);return e.errors&&null!=e.errors[t]?void console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")"):e.loaderData[t]}function j(){let e=O(L.UseActionData),t=A(L.UseLoaderData);return e.actionData?e.actionData[t]:void 0}let B=0;function I(e){let{router:t,basename:n}=D(k.UseBlocker),r=O(L.UseBlocker),[o,a]=l.useState(""),i=l.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===n)return e(t);let{currentLocation:r,nextLocation:o,historyAction:a}=t;return e({currentLocation:u({},r,{pathname:(0,s.pb)(r.pathname,n)||r.pathname}),nextLocation:u({},o,{pathname:(0,s.pb)(o.pathname,n)||o.pathname}),historyAction:a})},[n,e]);return l.useEffect(()=>{let e=String(++B);return a(e),()=>t.deleteBlocker(e)},[t]),l.useEffect(()=>{""!==o&&t.getBlocker(o,i)},[t,o,i]),o&&r.blockers.has(o)?r.blockers.get(o):s.G3}let F={};function N(e){var t;let n;return t=e.context,(n=l.useContext(p).outlet)?l.createElement(x.Provider,{value:t},n):n}function z(e){let{basename:t="/",children:n=null,location:r,navigationType:o=s.rc.Pop,navigator:a,static:i=!1,future:c}=e;y()&&(0,s.Oi)(!1);let d=t.replace(/^\/*/,"/"),p=l.useMemo(()=>({basename:d,navigator:a,static:i,future:u({v7_relativeSplatPath:!1},c)}),[d,c,a,i]);"string"==typeof r&&(r=(0,s.Rr)(r));let{pathname:v="/",search:m="",hash:g="",state:w=null,key:b="default"}=r,x=l.useMemo(()=>{let e=(0,s.pb)(v,d);return null==e?null:{location:{pathname:e,search:m,hash:g,state:w,key:b},navigationType:o}},[d,v,m,g,w,b,o]);return null==x?null:l.createElement(h.Provider,{value:p},l.createElement(f.Provider,{children:n,value:x}))}(i||(i=n.t(l,2))).startTransition;var H=((a=H||{})[a.pending=0]="pending",a[a.success=1]="success",a[a.error=2]="error",a);function W(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:l.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:l.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:l.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function $(e,t){return(0,s.aE)({basename:null==t?void 0:t.basename,future:u({}
2,null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,s.sC)({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:W,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()}new Promise(()=>{}),l.Component,n.d(t,{$3:()=>T,$P:()=>m,FE:()=>_,Ix:()=>z,KP:()=>I,LG:()=>M,Ri:()=>y,Zp:()=>b,bg:()=>$,cq:()=>U,mP:()=>j,ph:()=>R,sv:()=>N,wE:()=>W,x$:()=>E,zy:()=>g},{Rq:d,jb:h,sp:c})}}]); 3//# sourceMappingURL=lib-router.8f2652fae9.js.map
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.