iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://fr.statista.com/accounts/build/_shared/chunk-2OSNKVOL.js
import{b as Nl,c as ur,d as Rt}from"/accounts/build/_shared/chunk-GOPQ4PBN.js";var dd=ur(W=>{"use strict";var oo=Symbol.for("react.element"),Uv=Symbol.for("react.portal"),jv=Symbol.for("react.fragment"),zv=Symbol.for("react.strict_mode"),Hv=Symbol.for("react.profiler"),$v=Symbol.for("react.provider"),Vv=Symbol.for("react.context"),Bv=Symbol.for("react.forward_ref"),bv=Symbol.for("react.suspense"),Wv=Symbol.for("react.memo"),Kv=Symbol.for("react.lazy"),ed=Symbol.iterator;function Yv(e){return e===null||typeof e!="object"?null:(e=ed&&e[ed]||e["@@iterator"],typeof e=="function"?e:null)}var nd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},od=Object.assign,id={};function mn(e,t,r){this.props=e,this.context=t,this.refs=id,this.updater=r||nd}mn.prototype.isReactComponent={};mn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};mn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ad(){}ad.prototype=mn.prototype;function Pl(e,t,r){this.props=e,this.context=t,this.refs=id,this.updater=r||nd}var Ll=Pl.prototype=new ad;Ll.constructor=Pl;od(Ll,mn.prototype);Ll.isPureReactComponent=!0;var td=Array.isArray,ld=Object.prototype.hasOwnProperty,Dl={current:null},ud={key:!0,ref:!0,__self:!0,__source:!0};function sd(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)ld.call(t,n)&&!ud.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1{"use strict";fd.exports=dd()});function oe(){return oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function gn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Zv(){return Math.random().toString(36).substr(2,8)}function hd(e,t){return{usr:e.state,key:e.key,idx:t}}function lo(e,t,r,n){return r===void 0&&(r=null),oe({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?He(t):t,{state:r,key:t&&t.key||n||Zv()})}function dt(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function He(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function qv(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,l=ne.Pop,u=null,s=f();s==null&&(s=0,a.replaceState(oe({},a.state,{idx:s}),""));function f(){return(a.state||{idx:null}).idx}function c(){l=ne.Pop;let x=f(),h=x==null?null:x-s;s=x,u&&u({action:l,location:S.location,delta:h})}function p(x,h){l=ne.Push;let d=lo(S.location,x,h);r&&r(d,x),s=f()+1;let v=hd(d,s),E=S.createHref(d);try{a.pushState(v,"",E)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(E)}i&&u&&u({action:l,location:S.location,delta:1})}function g(x,h){l=ne.Replace;let d=lo(S.location,x,h);r&&r(d,x),s=f();let v=hd(d,s),E=S.createHref(d);a.replaceState(v,"",E),i&&u&&u({action:l,location:S.location,delta:0})}function m(x){let h=o.location.origin!=="null"?o.location.origin:o.location.href,d=typeof x=="string"?x:dt(x);return d=d.replace(/ $/,"%20"),V(h,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,h)}let S={get action(){return l},get location(){return e(o,a)},listen(x){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(pd,c),u=x,()=>{o.removeEventListener(pd,c),u=null}},createHref(x){return t(o,x)},createURL:m,encodeLocation(x){let h=m(x);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:p,replace:g,go(x){return a.go(x)}};return S}function ty(e){return e.index===!0}function Ni(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((o,i)=>{let a=[...r,String(i)],l=typeof o.id=="string"?o.id:a.join("-");if(V(o.index!==!0||!o.children,"Cannot specify children on an index route"),V(!n[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),ty(o)){let u=oe({},o,t(o),{id:l});return n[l]=u,u}else{let u=oe({},o,t(o),{id:l,children:void 0});return n[l]=u,o.children&&(u.children=Ni(o.children,t,a,n)),u}})}function Ne(e,t,r){return r===void 0&&(r="/"),ki(e,t,r,!1)}function ki(e,t,r,n){let o=typeof t=="string"?He(t):t,i=Ye(o.pathname||"/",r);if(i==null)return null;let a=Ld(e);ry(a);let l=null;for(let u=0;l==null&&u{let u={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};u.relativePath.startsWith("/")&&(V(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let s=ct([n,u.relativePath]),f=r.concat(u);i.children&&i.children.length>0&&(V(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),Ld(i.children,t,f,s)),!(i.path==null&&!i.index)&&t.push({path:s,score:sy(s,i.index),routesMeta:f})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let u of Dd(i.path))o(i,a,u)}),t}function Dd(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let a=Dd(n.join("/")),l=[];return l.push(...a.map(u=>u===""?i:[i,u].join("/"))),o&&l.push(...a),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function ry(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:cy(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}function sy(e,t){let r=e.split("/"),n=r.length;return r.some(md)&&(n+=uy),t&&(n+=iy),r.filter(o=>!md(o)).reduce((o,i)=>o+(ny.test(i)?oy:i===""?ay:ly),n)}function cy(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function dy(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,o={},i="/",a=[];for(let l=0;l{let{paramName:p,isOptional:g}=f;if(p==="*"){let S=l[c]||"";a=i.slice(0,i.length-S.length).replace(/(.)\/+$/,"$1")}let m=l[c];return g&&!m?s[p]=void 0:s[p]=(m||"").replace(/%2F/g,"/"),s},{}),pathname:i,pathnameBase:a,pattern:e}}function fy(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),gn(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,u)=>(n.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function Od(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return gn(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ye(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 Pi(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?He(e):e;return{pathname:r?r.startsWith("/")?r:py(r,t):t,search:my(n),hash:vy(o)}}function py(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Tl(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 Td(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Li(e,t){let r=Td(e);return t?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Di(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=He(e):(o=oe({},e),V(!o.pathname||!o.pathname.includes("?"),Tl("?","pathname","search",o)),V(!o.pathname||!o.pathname.includes("#"),Tl("#","pathname","hash",o)),V(!o.search||!o.search.includes("#"),Tl("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=r;else{let c=t.length-1;if(!n&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),c-=1;o.pathname=p.join("/")}l=c>=0?t[c]:"/"}let u=Pi(o,l),s=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(s||f)&&(u.pathname+="/"),u}function Fd(e,t){return new Al(e,typeof t=="number"?{status:t}:t)}function yy(e){return e instanceof Promise&&e._tracked===!0}function gy(e){if(!yy(e))return e;if(e._error)throw e._error;return e._data}function ft(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Oi(e){let t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;V(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let w=e.detectErrorBoundary;o=R=>({hasErrorBoundary:w(R)})}else o=xy;let i={},a=Ni(e.routes,o,void 0,i),l,u=e.basename||"/",s=e.dataStrategy||Py,f=e.patchRoutesOnNavigation,c=oe({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,g=new Set,m=null,S=null,x=null,h=e.hydrationData!=null,d=Ne(a,e.history.location,u),v=null;if(d==null&&!f){let w=We(404,{pathname:e.history.location.pathname}),{matches:R,route:_}=Nd(a);d=R,v={[_.id]:w}}d&&!e.hydrationData&&yi(d,a,e.history.location.pathname).active&&(d=null);let E;if(d)if(d.some(w=>w.route.lazy))E=!1;else if(!d.some(w=>w.route.loader))E=!0;else if(c.v7_partialHydration){let w=e.hydrationData?e.hydrationData.loaderData:null,R=e.hydrationData?e.hydrationData.errors:null;if(R){let _=d.findIndex(P=>R[P.route.id]!==void 0);E=d.slice(0,_+1).every(P=>!Ul(P.route,w,R))}else E=d.every(_=>!Ul(_.route,w,R))}else E=e.hydrationData!=null;else if(E=!1,d=[],c.v7_partialHydration){let w=yi(null,a,e.history.location.pathname);w.active&&w.matches&&(d=w.matches)}let k,y={historyAction:e.history.action,location:e.history.location,matches:d,initialized:E,navigation:Fl,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},C=ne.Pop,N=!1,F,M=!1,b=new Map,Z=null,De=!1,ge=!1,Ue=[],ir=new Set,xe=new Map,pi=0,Zn=-1,sn=new Map,Vt=new Set,cn=new Map,qn=new Map,Bt=new Set,Ur=new Map,jr=new Map,hi;function Ev(){if(p=e.history.listen(w=>{let{action:R,location:_,delta:P}=w;if(hi){hi(),hi=void 0;return}gn(jr.size===0||P!=null,"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 I=Xc({currentLocation:y.location,nextLocation:_,historyAction:R});if(I&&P!=null){let H=new Promise(B=>{hi=B});e.history.go(P*-1),vi(I,{state:"blocked",location:_,proceed(){vi(I,{state:"proceeding",proceed:void 0,reset:void 0,location:_}),H.then(()=>e.history.go(P))},reset(){let B=new Map(y.blockers);B.set(I,yn),je({blockers:B})}});return}return zr(R,_)}),r){Vy(t,b);let w=()=>By(t,b);t.addEventListener("pagehide",w),Z=()=>t.removeEventListener("pagehide",w)}return y.initialized||zr(ne.Pop,y.location,{initialHydration:!0}),k}function Rv(){p&&p(),Z&&Z(),g.clear(),F&&F.abort(),y.fetchers.forEach((w,R)=>mi(R)),y.blockers.forEach((w,R)=>Jc(R))}function Sv(w){return g.add(w),()=>g.delete(w)}function je(w,R){R===void 0&&(R={}),y=oe({},y,w);let _=[],P=[];c.v7_fetcherPersist&&y.fetchers.forEach((I,H)=>{I.state==="idle"&&(Bt.has(H)?P.push(H):_.push(H))}),[...g].forEach(I=>I(y,{deletedFetchers:P,viewTransitionOpts:R.viewTransitionOpts,flushSync:R.flushSync===!0})),c.v7_fetcherPersist&&(_.forEach(I=>y.fetchers.delete(I)),P.forEach(I=>mi(I)))}function dn(w,R,_){var P,I;let{flushSync:H}=_===void 0?{}:_,B=y.actionData!=null&&y.navigation.formMethod!=null&&St(y.navigation.formMethod)&&y.navigation.state==="loading"&&((P=w.state)==null?void 0:P._isRedirect)!==!0,j;R.actionData?Object.keys(R.actionData).length>0?j=R.actionData:j=null:B?j=y.actionData:j=null;let z=R.loaderData?xd(y.loaderData,R.loaderData,R.matches||[],R.errors):y.loaderData,U=y.blockers;U.size>0&&(U=new Map(U),U.forEach((Y,ke)=>U.set(ke,yn)));let $=N===!0||y.navigation.formMethod!=null&&St(y.navigation.formMethod)&&((I=w.state)==null?void 0:I._isRedirect)!==!0;l&&(a=l,l=void 0),De||C===ne.Pop||(C===ne.Push?e.history.push(w,w.state):C===ne.Replace&&e.history.replace(w,w.state));let K;if(C===ne.Pop){let Y=b.get(y.location.pathname);Y&&Y.has(w.pathname)?K={currentLocation:y.location,nextLocation:w}:b.has(w.pathname)&&(K={currentLocation:w,nextLocation:y.location})}else if(M){let Y=b.get(y.location.pathname);Y?Y.add(w.pathname):(Y=new Set([w.pathname]),b.set(y.location.pathname,Y)),K={currentLocation:y.location,nextLocation:w}}je(oe({},R,{actionData:j,loaderData:z,historyAction:C,location:w,initialized:!0,navigation:Fl,revalidation:"idle",restoreScrollPosition:Zc(w,R.matches||y.matches),preventScrollReset:$,blockers:U}),{viewTransitionOpts:K,flushSync:H===!0}),C=ne.Pop,N=!1,M=!1,De=!1,ge=!1,Ue=[]}async function Vc(w,R){if(typeof w=="number"){e.history.go(w);return}let _=Il(y.location,y.matches,u,c.v7_prependBasename,w,c.v7_relativeSplatPath,R?.fromRouteId,R?.relative),{path:P,submission:I,error:H}=vd(c.v7_normalizeFormMethod,!1,_,R),B=y.location,j=lo(y.location,P,R&&R.state);j=oe({},j,e.history.encodeLocation(j));let z=R&&R.replace!=null?R.replace:void 0,U=ne.Push;z===!0?U=ne.Replace:z===!1||I!=null&&St(I.formMethod)&&I.formAction===y.location.pathname+y.location.search&&(U=ne.Replace);let $=R&&"preventScrollReset"in R?R.preventScrollReset===!0:void 0,K=(R&&R.flushSync)===!0,Y=Xc({currentLocation:B,nextLocation:j,historyAction:U});if(Y){vi(Y,{state:"blocked",location:j,proceed(){vi(Y,{state:"proceeding",proceed:void 0,reset:void 0,location:j}),Vc(w,R)},reset(){let ke=new Map(y.blockers);ke.set(Y,yn),je({blockers:ke})}});return}return await zr(U,j,{submission:I,pendingError:H,preventScrollReset:$,replace:R&&R.replace,enableViewTransition:R&&R.viewTransition,flushSync:K})}function _v(){if(Sl(),je({revalidation:"loading"}),y.navigation.state!=="submitting"){if(y.navigation.state==="idle"){zr(y.historyAction,y.location,{startUninterruptedRevalidation:!0});return}zr(C||y.historyAction,y.navigation.location,{overrideNavigation:y.navigation,enableViewTransition:M===!0})}}async function zr(w,R,_){F&&F.abort(),F=null,C=w,De=(_&&_.startUninterruptedRevalidation)===!0,Fv(y.location,y.matches),N=(_&&_.preventScrollReset)===!0,M=(_&&_.enableViewTransition)===!0;let P=l||a,I=_&&_.overrideNavigation,H=Ne(P,R,u),B=(_&&_.flushSync)===!0,j=yi(H,P,R.pathname);if(j.active&&j.matches&&(H=j.matches),!H){let{error:ee,notFoundMatches:X,route:de}=_l(R.pathname);dn(R,{matches:X,loaderData:{},errors:{[de.id]:ee}},{flushSync:B});return}if(y.initialized&&!ge&&My(y.location,R)&&!(_&&_.submission&&St(_.submission.formMethod))){dn(R,{matches:H},{flushSync:B});return}F=new AbortController;let z=vn(e.history,R,F.signal,_&&_.submission),U;if(_&&_.pendingError)U=[Vr(H).route.id,{type:q.error,error:_.pendingError}];else if(_&&_.submission&&St(_.submission.formMethod)){let ee=await xv(z,R,_.submission,H,j.active,{replace:_.replace,flushSync:B});if(ee.shortCircuited)return;if(ee.pendingActionResult){let[X,de]=ee.pendingActionResult;if(tt(de)&&ft(de.error)&&de.error.status===404){F=null,dn(R,{matches:ee.matches,loaderData:{},errors:{[X]:de.error}});return}}H=ee.matches||H,U=ee.pendingActionResult,I=Ml(R,_.submission),B=!1,j.active=!1,z=vn(e.history,z.url,z.signal)}let{shortCircuited:$,matches:K,loaderData:Y,errors:ke}=await kv(z,R,H,j.active,I,_&&_.submission,_&&_.fetcherSubmission,_&&_.replace,_&&_.initialHydration===!0,B,U);$||(F=null,dn(R,oe({matches:K||H},kd(U),{loaderData:Y,errors:ke})))}async function xv(w,R,_,P,I,H){H===void 0&&(H={}),Sl();let B=Hy(R,_);if(je({navigation:B},{flushSync:H.flushSync===!0}),I){let U=await gi(P,R.pathname,w.signal);if(U.type==="aborted")return{shortCircuited:!0};if(U.type==="error"){let $=Vr(U.partialMatches).route.id;return{matches:U.partialMatches,pendingActionResult:[$,{type:q.error,error:U.error}]}}else if(U.matches)P=U.matches;else{let{notFoundMatches:$,error:K,route:Y}=_l(R.pathname);return{matches:$,pendingActionResult:[Y.id,{type:q.error,error:K}]}}}let j,z=ao(P,R);if(!z.route.action&&!z.route.lazy)j={type:q.error,error:We(405,{method:w.method,pathname:R.pathname,routeId:z.route.id})};else if(j=(await eo("action",y,w,[z],P,null))[z.route.id],w.signal.aborted)return{shortCircuited:!0};if(Br(j)){let U;return H&&H.replace!=null?U=H.replace:U=Rd(j.response.headers.get("Location"),new URL(w.url),u)===y.location.pathname+y.location.search,await Hr(w,j,!0,{submission:_,replace:U}),{shortCircuited:!0}}if(cr(j))throw We(400,{type:"defer-action"});if(tt(j)){let U=Vr(P,z.route.id);return(H&&H.replace)!==!0&&(C=ne.Push),{matches:P,pendingActionResult:[U.route.id,j]}}return{matches:P,pendingActionResult:[z.route.id,j]}}async function kv(w,R,_,P,I,H,B,j,z,U,$){let K=I||Ml(R,H),Y=H||B||Pd(K),ke=!De&&(!c.v7_partialHydration||!z);if(P){if(ke){let fe=Bc($);je(oe({navigation:K},fe!==void 0?{actionData:fe}:{}),{flushSync:U})}let J=await gi(_,R.pathname,w.signal);if(J.type==="aborted")return{shortCircuited:!0};if(J.type==="error"){let fe=Vr(J.partialMatches).route.id;return{matches:J.partialMatches,loaderData:{},errors:{[fe]:J.error}}}else if(J.matches)_=J.matches;else{let{error:fe,notFoundMatches:pn,route:no}=_l(R.pathname);return{matches:pn,loaderData:{},errors:{[no.id]:fe}}}}let ee=l||a,[X,de]=gd(e.history,y,_,Y,R,c.v7_partialHydration&&z===!0,c.v7_skipActionErrorRevalidation,ge,Ue,ir,Bt,cn,Vt,ee,u,$);if(xl(J=>!(_&&_.some(fe=>fe.route.id===J))||X&&X.some(fe=>fe.route.id===J)),Zn=++pi,X.length===0&&de.length===0){let J=Yc();return dn(R,oe({matches:_,loaderData:{},errors:$&&tt($[1])?{[$[0]]:$[1].error}:null},kd($),J?{fetchers:new Map(y.fetchers)}:{}),{flushSync:U}),{shortCircuited:!0}}if(ke){let J={};if(!P){J.navigation=K;let fe=Bc($);fe!==void 0&&(J.actionData=fe)}de.length>0&&(J.fetchers=Nv(de)),je(J,{flushSync:U})}de.forEach(J=>{lr(J.key),J.controller&&xe.set(J.key,J.controller)});let fn=()=>de.forEach(J=>lr(J.key));F&&F.signal.addEventListener("abort",fn);let{loaderResults:to,fetcherResults:Wt}=await bc(y,_,X,de,w);if(w.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener("abort",fn),de.forEach(J=>xe.delete(J.key));let Tt=xi(to);if(Tt)return await Hr(w,Tt.result,!0,{replace:j}),{shortCircuited:!0};if(Tt=xi(Wt),Tt)return Vt.add(Tt.key),await Hr(w,Tt.result,!0,{replace:j}),{shortCircuited:!0};let{loaderData:kl,errors:ro}=_d(y,_,to,$,de,Wt,Ur);Ur.forEach((J,fe)=>{J.subscribe(pn=>{(pn||J.done)&&Ur.delete(fe)})}),c.v7_partialHydration&&z&&y.errors&&(ro=oe({},y.errors,ro));let $r=Yc(),wi=Qc(Zn),Ei=$r||wi||de.length>0;return oe({matches:_,loaderData:kl,errors:ro},Ei?{fetchers:new Map(y.fetchers)}:{})}function Bc(w){if(w&&!tt(w[1]))return{[w[0]]:w[1].data};if(y.actionData)return Object.keys(y.actionData).length===0?null:y.actionData}function Nv(w){return w.forEach(R=>{let _=y.fetchers.get(R.key),P=io(void 0,_?_.data:void 0);y.fetchers.set(R.key,P)}),new Map(y.fetchers)}function Cv(w,R,_,P){if(n)throw new 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.");lr(w);let I=(P&&P.flushSync)===!0,H=l||a,B=Il(y.location,y.matches,u,c.v7_prependBasename,_,c.v7_relativeSplatPath,R,P?.relative),j=Ne(H,B,u),z=yi(j,H,B);if(z.active&&z.matches&&(j=z.matches),!j){bt(w,R,We(404,{pathname:B}),{flushSync:I});return}let{path:U,submission:$,error:K}=vd(c.v7_normalizeFormMethod,!0,B,P);if(K){bt(w,R,K,{flushSync:I});return}let Y=ao(j,U),ke=(P&&P.preventScrollReset)===!0;if($&&St($.formMethod)){Pv(w,R,U,Y,j,z.active,I,ke,$);return}cn.set(w,{routeId:R,path:U}),Lv(w,R,U,Y,j,z.active,I,ke,$)}async function Pv(w,R,_,P,I,H,B,j,z){Sl(),cn.delete(w);function U(ve){if(!ve.route.action&&!ve.route.lazy){let hn=We(405,{method:z.formMethod,pathname:_,routeId:R});return bt(w,R,hn,{flushSync:B}),!0}return!1}if(!H&&U(P))return;let $=y.fetchers.get(w);ar(w,$y(z,$),{flushSync:B});let K=new AbortController,Y=vn(e.history,_,K.signal,z);if(H){let ve=await gi(I,_,Y.signal);if(ve.type==="aborted")return;if(ve.type==="error"){bt(w,R,ve.error,{flushSync:B});return}else if(ve.matches){if(I=ve.matches,P=ao(I,_),U(P))return}else{bt(w,R,We(404,{pathname:_}),{flushSync:B});return}}xe.set(w,K);let ke=pi,X=(await eo("action",y,Y,[P],I,w))[P.route.id];if(Y.signal.aborted){xe.get(w)===K&&xe.delete(w);return}if(c.v7_fetcherPersist&&Bt.has(w)){if(Br(X)||tt(X)){ar(w,sr(void 0));return}}else{if(Br(X))if(xe.delete(w),Zn>ke){ar(w,sr(void 0));return}else return Vt.add(w),ar(w,io(z)),Hr(Y,X,!1,{fetcherSubmission:z,preventScrollReset:j});if(tt(X)){bt(w,R,X.error);return}}if(cr(X))throw We(400,{type:"defer-action"});let de=y.navigation.location||y.location,fn=vn(e.history,de,K.signal),to=l||a,Wt=y.navigation.state!=="idle"?Ne(to,y.navigation.location,u):y.matches;V(Wt,"Didn't find any matches after fetcher action");let Tt=++pi;sn.set(w,Tt);let kl=io(z,X.data);y.fetchers.set(w,kl);let[ro,$r]=gd(e.history,y,Wt,z,de,!1,c.v7_skipActionErrorRevalidation,ge,Ue,ir,Bt,cn,Vt,to,u,[P.route.id,X]);$r.filter(ve=>ve.key!==w).forEach(ve=>{let hn=ve.key,qc=y.fetchers.get(hn),Iv=io(void 0,qc?qc.data:void 0);y.fetchers.set(hn,Iv),lr(hn),ve.controller&&xe.set(hn,ve.controller)}),je({fetchers:new Map(y.fetchers)});let wi=()=>$r.forEach(ve=>lr(ve.key));K.signal.addEventListener("abort",wi);let{loaderResults:Ei,fetcherResults:J}=await bc(y,Wt,ro,$r,fn);if(K.signal.aborted)return;K.signal.removeEventListener("abort",wi),sn.delete(w),xe.delete(w),$r.forEach(ve=>xe.delete(ve.key));let fe=xi(Ei);if(fe)return Hr(fn,fe.result,!1,{preventScrollReset:j});if(fe=xi(J),fe)return Vt.add(fe.key),Hr(fn,fe.result,!1,{preventScrollReset:j});let{loaderData:pn,errors:no}=_d(y,Wt,Ei,void 0,$r,J,Ur);if(y.fetchers.has(w)){let ve=sr(X.data);y.fetchers.set(w,ve)}Qc(Tt),y.navigation.state==="loading"&&Tt>Zn?(V(C,"Expected pending action"),F&&F.abort(),dn(y.navigation.location,{matches:Wt,loaderData:pn,errors:no,fetchers:new Map(y.fetchers)})):(je({errors:no,loaderData:xd(y.loaderData,pn,Wt,no),fetchers:new Map(y.fetchers)}),ge=!1)}async function Lv(w,R,_,P,I,H,B,j,z){let U=y.fetchers.get(w);ar(w,io(z,U?U.data:void 0),{flushSync:B});let $=new AbortController,K=vn(e.history,_,$.signal);if(H){let X=await gi(I,_,K.signal);if(X.type==="aborted")return;if(X.type==="error"){bt(w,R,X.error,{flushSync:B});return}else if(X.matches)I=X.matches,P=ao(I,_);else{bt(w,R,We(404,{pathname:_}),{flushSync:B});return}}xe.set(w,$);let Y=pi,ee=(await eo("loader",y,K,[P],I,w))[P.route.id];if(cr(ee)&&(ee=await Vl(ee,K.signal,!0)||ee),xe.get(w)===$&&xe.delete(w),!K.signal.aborted){if(Bt.has(w)){ar(w,sr(void 0));return}if(Br(ee))if(Zn>Y){ar(w,sr(void 0));return}else{Vt.add(w),await Hr(K,ee,!1,{preventScrollReset:j});return}if(tt(ee)){bt(w,R,ee.error);return}V(!cr(ee),"Unhandled fetcher deferred data"),ar(w,sr(ee.data))}}async function Hr(w,R,_,P){let{submission:I,fetcherSubmission:H,preventScrollReset:B,replace:j}=P===void 0?{}:P;R.response.headers.has("X-Remix-Revalidate")&&(ge=!0);let z=R.response.headers.get("Location");V(z,"Expected a Location header on the redirect Response"),z=Rd(z,new URL(w.url),u);let U=lo(y.location,z,{_isRedirect:!0});if(r){let X=!1;if(R.response.headers.has("X-Remix-Reload-Document"))X=!0;else if($l.test(z)){let de=e.history.createURL(z);X=de.origin!==t.location.origin||Ye(de.pathname,u)==null}if(X){j?t.location.replace(z):t.location.assign(z);return}}F=null;let $=j===!0||R.response.headers.has("X-Remix-Replace")?ne.Replace:ne.Push,{formMethod:K,formAction:Y,formEncType:ke}=y.navigation;!I&&!H&&K&&Y&&ke&&(I=Pd(y.navigation));let ee=I||H;if(_y.has(R.response.status)&&ee&&St(ee.formMethod))await zr($,U,{submission:oe({},ee,{formAction:z}),preventScrollReset:B||N,enableViewTransition:_?M:void 0});else{let X=Ml(U,I);await zr($,U,{overrideNavigation:X,fetcherSubmission:H,preventScrollReset:B||N,enableViewTransition:_?M:void 0})}}async function eo(w,R,_,P,I,H){let B,j={};try{B=await Ly(s,w,R,_,P,I,H,i,o)}catch(z){return P.forEach(U=>{j[U.route.id]={type:q.error,error:z}}),j}for(let[z,U]of Object.entries(B))if(Ay(U)){let $=U.result;j[z]={type:q.redirect,response:Ty($,_,z,I,u,c.v7_relativeSplatPath)}}else j[z]=await Oy(U);return j}async function bc(w,R,_,P,I){let H=w.matches,B=eo("loader",w,I,_,R,null),j=Promise.all(P.map(async $=>{if($.matches&&$.match&&$.controller){let Y=(await eo("loader",w,vn(e.history,$.path,$.controller.signal),[$.match],$.matches,$.key))[$.match.route.id];return{[$.key]:Y}}else return Promise.resolve({[$.key]:{type:q.error,error:We(404,{pathname:$.path})}})})),z=await B,U=(await j).reduce(($,K)=>Object.assign($,K),{});return await Promise.all([jy(R,z,I.signal,H,w.loaderData),zy(R,U,P)]),{loaderResults:z,fetcherResults:U}}function Sl(){ge=!0,Ue.push(...xl()),cn.forEach((w,R)=>{xe.has(R)&&ir.add(R),lr(R)})}function ar(w,R,_){_===void 0&&(_={}),y.fetchers.set(w,R),je({fetchers:new Map(y.fetchers)},{flushSync:(_&&_.flushSync)===!0})}function bt(w,R,_,P){P===void 0&&(P={});let I=Vr(y.matches,R);mi(w),je({errors:{[I.route.id]:_},fetchers:new Map(y.fetchers)},{flushSync:(P&&P.flushSync)===!0})}function Wc(w){return c.v7_fetcherPersist&&(qn.set(w,(qn.get(w)||0)+1),Bt.has(w)&&Bt.delete(w)),y.fetchers.get(w)||Ad}function mi(w){let R=y.fetchers.get(w);xe.has(w)&&!(R&&R.state==="loading"&&sn.has(w))&&lr(w),cn.delete(w),sn.delete(w),Vt.delete(w),Bt.delete(w),ir.delete(w),y.fetchers.delete(w)}function Dv(w){if(c.v7_fetcherPersist){let R=(qn.get(w)||0)-1;R<=0?(qn.delete(w),Bt.add(w)):qn.set(w,R)}else mi(w);je({fetchers:new Map(y.fetchers)})}function lr(w){let R=xe.get(w);R&&(R.abort(),xe.delete(w))}function Kc(w){for(let R of w){let _=Wc(R),P=sr(_.data);y.fetchers.set(R,P)}}function Yc(){let w=[],R=!1;for(let _ of Vt){let P=y.fetchers.get(_);V(P,"Expected fetcher: "+_),P.state==="loading"&&(Vt.delete(_),w.push(_),R=!0)}return Kc(w),R}function Qc(w){let R=[];for(let[_,P]of sn)if(P0}function Ov(w,R){let _=y.blockers.get(w)||yn;return jr.get(w)!==R&&jr.set(w,R),_}function Jc(w){y.blockers.delete(w),jr.delete(w)}function vi(w,R){let _=y.blockers.get(w)||yn;V(_.state==="unblocked"&&R.state==="blocked"||_.state==="blocked"&&R.state==="blocked"||_.state==="blocked"&&R.state==="proceeding"||_.state==="blocked"&&R.state==="unblocked"||_.state==="proceeding"&&R.state==="unblocked","Invalid blocker state transition: "+_.state+" -> "+R.state);let P=new Map(y.blockers);P.set(w,R),je({blockers:P})}function Xc(w){let{currentLocation:R,nextLocation:_,historyAction:P}=w;if(jr.size===0)return;jr.size>1&&gn(!1,"A router only supports one blocker at a time");let I=Array.from(jr.entries()),[H,B]=I[I.length-1],j=y.blockers.get(H);if(!(j&&j.state==="proceeding")&&B({currentLocation:R,nextLocation:_,historyAction:P}))return H}function _l(w){let R=We(404,{pathname:w}),_=l||a,{matches:P,route:I}=Nd(_);return xl(),{notFoundMatches:P,route:I,error:R}}function xl(w){let R=[];return Ur.forEach((_,P)=>{(!w||w(P))&&(_.cancel(),R.push(P),Ur.delete(P))}),R}function Tv(w,R,_){if(m=w,x=R,S=_||null,!h&&y.navigation===Fl){h=!0;let P=Zc(y.location,y.matches);P!=null&&je({restoreScrollPosition:P})}return()=>{m=null,x=null,S=null}}function Gc(w,R){return S&&S(w,R.map(P=>Hl(P,y.loaderData)))||w.key}function Fv(w,R){if(m&&x){let _=Gc(w,R);m[_]=x()}}function Zc(w,R){if(m){let _=Gc(w,R),P=m[_];if(typeof P=="number")return P}return null}function yi(w,R,_){if(f)if(w){if(Object.keys(w[0].params).length>0)return{active:!0,matches:ki(R,_,u,!0)}}else return{active:!0,matches:ki(R,_,u,!0)||[]};return{active:!1,matches:null}}async function gi(w,R,_){if(!f)return{type:"success",matches:w};let P=w;for(;;){let I=l==null,H=l||a,B=i;try{await f({path:R,matches:P,patch:(U,$)=>{_.aborted||Ed(U,$,H,B,o)}})}catch(U){return{type:"error",error:U,partialMatches:P}}finally{I&&!_.aborted&&(a=[...a])}if(_.aborted)return{type:"aborted"};let j=Ne(H,R,u);if(j)return{type:"success",matches:j};let z=ki(H,R,u,!0);if(!z||P.length===z.length&&P.every((U,$)=>U.route.id===z[$].route.id))return{type:"success",matches:null};P=z}}function Mv(w){i={},l=Ni(w,o,void 0,i)}function Av(w,R){let _=l==null;Ed(w,R,l||a,i,o),_&&(a=[...a],je({}))}return k={get basename(){return u},get future(){return c},get state(){return y},get routes(){return a},get window(){return t},initialize:Ev,subscribe:Sv,enableScrollRestoration:Tv,navigate:Vc,fetch:Cv,revalidate:_v,createHref:w=>e.history.createHref(w),encodeLocation:w=>e.history.encodeLocation(w),getFetcher:Wc,deleteFetcher:Dv,dispose:Rv,getBlocker:Ov,deleteBlocker:Jc,patchRoutes:Av,_internalFetchControllers:xe,_internalActiveDeferreds:Ur,_internalSetRoutes:Mv},k}function ky(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Il(e,t,r,n,o,i,a,l){let u,s;if(a){u=[];for(let c of t)if(u.push(c),c.route.id===a){s=c;break}}else u=t,s=t[t.length-1];let f=Di(o||".",Li(u,i),Ye(e.pathname,r)||e.pathname,l==="path");if(o==null&&(f.search=e.search,f.hash=e.hash),(o==null||o===""||o===".")&&s){let c=Bl(f.search);if(s.route.index&&!c)f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&c){let p=new URLSearchParams(f.search),g=p.getAll("index");p.delete("index"),g.filter(S=>S).forEach(S=>p.append("index",S));let m=p.toString();f.search=m?"?"+m:""}}return n&&r!=="/"&&(f.pathname=f.pathname==="/"?r:ct([r,f.pathname])),dt(f)}function vd(e,t,r,n){if(!n||!ky(n))return{path:r};if(n.formMethod&&!Uy(n.formMethod))return{path:r,error:We(405,{method:n.formMethod})};let o=()=>({path:r,error:We(400,{type:"invalid-body"})}),i=n.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),l=zd(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!St(a))return o();let p=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((g,m)=>{let[S,x]=m;return""+g+S+"="+x+` `},""):String(n.body);return{path:r,submission:{formMethod:a,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:p}}}else if(n.formEncType==="application/json"){if(!St(a))return o();try{let p=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:a,formAction:l,formEncType:n.formEncType,formData:void 0,json:p,text:void 0}}}catch{return o()}}}V(typeof FormData=="function","FormData is not available in this environment");let u,s;if(n.formData)u=jl(n.formData),s=n.formData;else if(n.body instanceof FormData)u=jl(n.body),s=n.body;else if(n.body instanceof URLSearchParams)u=n.body,s=Sd(u);else if(n.body==null)u=new URLSearchParams,s=new FormData;else try{u=new URLSearchParams(n.body),s=Sd(u)}catch{return o()}let f={formMethod:a,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(St(f.formMethod))return{path:r,submission:f};let c=He(r);return t&&c.search&&Bl(c.search)&&u.append("index",""),c.search="?"+u,{path:dt(c),submission:f}}function yd(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(o=>o.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function gd(e,t,r,n,o,i,a,l,u,s,f,c,p,g,m,S){let x=S?tt(S[1])?S[1].error:S[1].data:void 0,h=e.createURL(t.location),d=e.createURL(o),v=r;i&&t.errors?v=yd(r,Object.keys(t.errors)[0],!0):S&&tt(S[1])&&(v=yd(r,S[0]));let E=S?S[1].statusCode:void 0,k=a&&E&&E>=400,y=v.filter((N,F)=>{let{route:M}=N;if(M.lazy)return!0;if(M.loader==null)return!1;if(i)return Ul(M,t.loaderData,t.errors);if(Ny(t.loaderData,t.matches[F],N)||u.some(De=>De===N.route.id))return!0;let b=t.matches[F],Z=N;return wd(N,oe({currentUrl:h,currentParams:b.params,nextUrl:d,nextParams:Z.params},n,{actionResult:x,actionStatus:E,defaultShouldRevalidate:k?!1:l||h.pathname+h.search===d.pathname+d.search||h.search!==d.search||Ud(b,Z)}))}),C=[];return c.forEach((N,F)=>{if(i||!r.some(ge=>ge.route.id===N.routeId)||f.has(F))return;let M=Ne(g,N.path,m);if(!M){C.push({key:F,routeId:N.routeId,path:N.path,matches:null,match:null,controller:null});return}let b=t.fetchers.get(F),Z=ao(M,N.path),De=!1;p.has(F)?De=!1:s.has(F)?(s.delete(F),De=!0):b&&b.state!=="idle"&&b.data===void 0?De=l:De=wd(Z,oe({currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:d,nextParams:r[r.length-1].params},n,{actionResult:x,actionStatus:E,defaultShouldRevalidate:k?!1:l})),De&&C.push({key:F,routeId:N.routeId,path:N.path,matches:M,match:Z,controller:new AbortController})}),[y,C]}function Ul(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,o=r!=null&&r[e.id]!==void 0;return!n&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!o}function Ny(e,t,r){let n=!t||r.route.id!==t.route.id,o=e[r.route.id]===void 0;return n||o}function Ud(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function wd(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function Ed(e,t,r,n,o){var i;let a;if(e){let s=n[e];V(s,"No route found to patch children into: routeId = "+e),s.children||(s.children=[]),a=s.children}else a=r;let l=t.filter(s=>!a.some(f=>jd(s,f))),u=Ni(l,o,[e||"_","patch",String(((i=a)==null?void 0:i.length)||"0")],n);a.push(...u)}function jd(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var o;return(o=t.children)==null?void 0:o.some(i=>jd(r,i))}):!1}async function Cy(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let o=r[e.id];V(o,"No route found in manifest");let i={};for(let a in n){let u=o[a]!==void 0&&a!=="hasErrorBoundary";gn(!u,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!u&&!ey.has(a)&&(i[a]=n[a])}Object.assign(o,i),Object.assign(o,oe({},t(o),{lazy:void 0}))}async function Py(e){let{matches:t}=e,r=t.filter(o=>o.shouldLoad);return(await Promise.all(r.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[r[a].route.id]:i}),{})}async function Ly(e,t,r,n,o,i,a,l,u,s){let f=i.map(g=>g.route.lazy?Cy(g.route,u,l):void 0),c=i.map((g,m)=>{let S=f[m],x=o.some(d=>d.route.id===g.route.id);return oe({},g,{shouldLoad:x,resolve:async d=>(d&&n.method==="GET"&&(g.route.lazy||g.route.loader)&&(x=!0),x?Dy(t,n,g,S,d,s):Promise.resolve({type:q.data,result:void 0}))})}),p=await e({matches:c,request:n,params:i[0].params,fetcherKey:a,context:s});try{await Promise.all(f)}catch{}return p}async function Dy(e,t,r,n,o,i){let a,l,u=s=>{let f,c=new Promise((m,S)=>f=S);l=()=>f(),t.signal.addEventListener("abort",l);let p=m=>typeof s!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):s({request:t,params:r.params,context:i},...m!==void 0?[m]:[]),g=(async()=>{try{return{type:"data",result:await(o?o(S=>p(S)):p())}}catch(m){return{type:"error",result:m}}})();return Promise.race([g,c])};try{let s=r.route[e];if(n)if(s){let f,[c]=await Promise.all([u(s).catch(p=>{f=p}),n]);if(f!==void 0)throw f;a=c}else if(await n,s=r.route[e],s)a=await u(s);else if(e==="action"){let f=new URL(t.url),c=f.pathname+f.search;throw We(405,{method:t.method,pathname:c,routeId:r.route.id})}else return{type:q.data,result:void 0};else if(s)a=await u(s);else{let f=new URL(t.url),c=f.pathname+f.search;throw We(404,{pathname:c})}V(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(s){return{type:q.error,result:s}}finally{l&&t.signal.removeEventListener("abort",l)}return a}async function Oy(e){let{result:t,type:r}=e;if(Hd(t)){let s;try{let f=t.headers.get("Content-Type");f&&/\bapplication\/json\b/.test(f)?t.body==null?s=null:s=await t.json():s=await t.text()}catch(f){return{type:q.error,error:f}}return r===q.error?{type:q.error,error:new Ke(t.status,t.statusText,s),statusCode:t.status,headers:t.headers}:{type:q.data,data:s,statusCode:t.status,headers:t.headers}}if(r===q.error){if(Cd(t)){var n;if(t.data instanceof Error){var o;return{type:q.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new Ke(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:q.error,error:t,statusCode:ft(t)?t.status:void 0}}if(Iy(t)){var i,a;return{type:q.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(Cd(t)){var l,u;return{type:q.data,data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(u=t.init)!=null&&u.headers?new Headers(t.init.headers):void 0}}return{type:q.data,data:t}}function Ty(e,t,r,n,o,i){let a=e.headers.get("Location");if(V(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!$l.test(a)){let l=n.slice(0,n.findIndex(u=>u.route.id===r)+1);a=Il(new URL(t.url),l,o,!0,a,i),e.headers.set("Location",a)}return e}function Rd(e,t,r){if($l.test(e)){let n=e,o=n.startsWith("//")?new URL(t.protocol+n):new URL(n),i=Ye(o.pathname,r)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function vn(e,t,r,n){let o=e.createURL(zd(t)).toString(),i={signal:r};if(n&&St(n.formMethod)){let{formMethod:a,formEncType:l}=n;i.method=a.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(n.json)):l==="text/plain"?i.body=n.text:l==="application/x-www-form-urlencoded"&&n.formData?i.body=jl(n.formData):i.body=n.formData}return new Request(o,i)}function jl(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function Sd(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Fy(e,t,r,n,o){let i={},a=null,l,u=!1,s={},f=r&&tt(r[1])?r[1].error:void 0;return e.forEach(c=>{if(!(c.route.id in t))return;let p=c.route.id,g=t[p];if(V(!Br(g),"Cannot handle redirect results in processLoaderData"),tt(g)){let m=g.error;if(f!==void 0&&(m=f,f=void 0),a=a||{},o)a[p]=m;else{let S=Vr(e,p);a[S.route.id]==null&&(a[S.route.id]=m)}i[p]=void 0,u||(u=!0,l=ft(g.error)?g.error.status:500),g.headers&&(s[p]=g.headers)}else cr(g)?(n.set(p,g.deferredData),i[p]=g.deferredData.data,g.statusCode!=null&&g.statusCode!==200&&!u&&(l=g.statusCode),g.headers&&(s[p]=g.headers)):(i[p]=g.data,g.statusCode&&g.statusCode!==200&&!u&&(l=g.statusCode),g.headers&&(s[p]=g.headers))}),f!==void 0&&r&&(a={[r[0]]:f},i[r[0]]=void 0),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:s}}function _d(e,t,r,n,o,i,a){let{loaderData:l,errors:u}=Fy(t,r,n,a,!1);return o.forEach(s=>{let{key:f,match:c,controller:p}=s,g=i[f];if(V(g,"Did not find corresponding fetcher result"),!(p&&p.signal.aborted))if(tt(g)){let m=Vr(e.matches,c?.route.id);u&&u[m.route.id]||(u=oe({},u,{[m.route.id]:g.error})),e.fetchers.delete(f)}else if(Br(g))V(!1,"Unhandled fetcher revalidation redirect");else if(cr(g))V(!1,"Unhandled fetcher deferred data");else{let m=sr(g.data);e.fetchers.set(f,m)}}),{loaderData:l,errors:u}}function xd(e,t,r,n){let o=oe({},t);for(let i of r){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),n&&n.hasOwnProperty(a))break}return o}function kd(e){return e?tt(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Vr(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function Nd(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function We(e,t){let{pathname:r,routeId:n,method:o,type:i,message:a}=t===void 0?{}:t,l="Unknown Server Error",u="Unknown @remix-run/router error";return e===400?(l="Bad Request",o&&r&&n?u="You made a "+o+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":i==="defer-action"?u="defer() is not supported in actions":i==="invalid-body"&&(u="Unable to encode submission body")):e===403?(l="Forbidden",u='Route "'+n+'" does not match URL "'+r+'"'):e===404?(l="Not Found",u='No route matches URL "'+r+'"'):e===405&&(l="Method Not Allowed",o&&r&&n?u="You made a "+o.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":o&&(u='Invalid request method "'+o.toUpperCase()+'"')),new Ke(e||500,l,new Error(u),!0)}function xi(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,o]=t[r];if(Br(o))return{key:n,result:o}}}function zd(e){let t=typeof e=="string"?He(e):e;return dt(oe({},t,{hash:""}))}function My(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Ay(e){return Hd(e.result)&&Sy.has(e.result.status)}function cr(e){return e.type===q.deferred}function tt(e){return e.type===q.error}function Br(e){return(e&&e.type)===q.redirect}function Cd(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Iy(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Hd(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Uy(e){return Ry.has(e.toLowerCase())}function St(e){return wy.has(e.toLowerCase())}async function jy(e,t,r,n,o){let i=Object.entries(t);for(let a=0;ap?.route.id===l);if(!s)continue;let f=n.find(p=>p.route.id===s.route.id),c=f!=null&&!Ud(f,s)&&(o&&o[s.route.id])!==void 0;cr(u)&&c&&await Vl(u,r,!1).then(p=>{p&&(t[l]=p)})}}async function zy(e,t,r){for(let n=0;ns?.route.id===i)&&cr(l)&&(V(a,"Expected an AbortController for revalidating fetcher deferred result"),await Vl(l,a.signal,!0).then(s=>{s&&(t[o]=s)}))}}async function Vl(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:q.data,data:e.deferredData.unwrappedData}}catch(o){return{type:q.error,error:o}}return{type:q.data,data:e.deferredData.data}}}function Bl(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ao(e,t){let r=typeof t=="string"?He(t).search:t.search;if(e[e.length-1].route.index&&Bl(r||""))return e[e.length-1];let n=Td(e);return n[n.length-1]}function Pd(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:i,json:a}=e;if(!(!t||!r||!n)){if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}}}function Ml(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 Hy(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function io(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 $y(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function sr(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Vy(e,t){try{let r=e.sessionStorage.getItem(Id);if(r){let n=JSON.parse(r);for(let[o,i]of Object.entries(n||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function By(e,t){if(t.size>0){let r={};for(let[n,o]of t)r[n]=[...o];try{e.sessionStorage.setItem(Id,JSON.stringify(r))}catch(n){gn(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}var ne,pd,q,ey,ny,oy,iy,ay,ly,uy,md,ct,hy,my,vy,Al,Ft,Ci,wn,Ke,Md,wy,Ey,Ry,Sy,_y,Fl,Ad,yn,$l,xy,Id,aR,Mt=Nl(()=>{(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ne||(ne={}));pd="popstate";(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(q||(q={}));ey=new Set(["lazy","caseSensitive","path","id","index","children"]);ny=/^:[\w-]+$/,oy=3,iy=2,ay=1,ly=10,uy=-2,md=e=>e==="*";ct=e=>e.join("/").replace(/\/\/+/g,"/"),hy=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),my=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,vy=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Al=class{constructor(t,r){this.type="DataWithResponseInit",this.data=t,this.init=r||null}};Ft=class extends Error{},Ci=class{constructor(t,r){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],V(t&&typeof t=="object"&&!Array.isArray(t),"defer() only accepts plain objects");let n;this.abortPromise=new Promise((i,a)=>n=a),this.controller=new AbortController;let o=()=>n(new Ft("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",o),this.controller.signal.addEventListener("abort",o),this.data=Object.entries(t).reduce((i,a)=>{let[l,u]=a;return Object.assign(i,{[l]:this.trackPromise(l,u)})},{}),this.done&&this.unlistenAbortSignal(),this.init=r}trackPromise(t,r){if(!(r instanceof Promise))return r;this.deferredKeys.push(t),this.pendingKeysSet.add(t);let n=Promise.race([r,this.abortPromise]).then(o=>this.onSettle(n,t,void 0,o),o=>this.onSettle(n,t,o));return n.catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(t,r,n,o){if(this.controller.signal.aborted&&n instanceof Ft)return this.unlistenAbortSignal(),Object.defineProperty(t,"_error",{get:()=>n}),Promise.reject(n);if(this.pendingKeysSet.delete(r),this.done&&this.unlistenAbortSignal(),n===void 0&&o===void 0){let i=new Error('Deferred data for key "'+r+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(t,"_error",{get:()=>i}),this.emit(!1,r),Promise.reject(i)}return o===void 0?(Object.defineProperty(t,"_error",{get:()=>n}),this.emit(!1,r),Promise.reject(n)):(Object.defineProperty(t,"_data",{get:()=>o}),this.emit(!1,r),o)}emit(t,r){this.subscribers.forEach(n=>n(t,r))}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((t,r)=>this.pendingKeysSet.delete(r)),this.emit(!0)}async resolveData(t){let r=!1;if(!this.done){let n=()=>this.cancel();t.addEventListener("abort",n),r=await new Promise(o=>{this.subscribe(i=>{t.removeEventListener("abort",n),(i||this.done)&&o(i)})})}return r}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return V(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((t,r)=>{let[n,o]=r;return Object.assign(t,{[n]:gy(o)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}};wn=function(t,r){r===void 0&&(r=302);let n=r;typeof n=="number"?n={status:n}:typeof n.status>"u"&&(n.status=302);let o=new Headers(n.headers);return o.set("Location",t),new Response(null,oe({},n,{headers:o}))},Ke=class{constructor(t,r,n,o){o===void 0&&(o=!1),this.status=t,this.statusText=r||"",this.internal=o,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};Md=["post","put","patch","delete"],wy=new Set(Md),Ey=["get",...Md],Ry=new Set(Ey),Sy=new Set([301,302,303,307,308]),_y=new Set([307,308]),Fl={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ad={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},yn={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},$l=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xy=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),Id="remix-router-transitions";aR=Symbol("deferred")});function uo(){return uo=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),O.useCallback(function(s,f){if(f===void 0&&(f={}),!l.current)return;if(typeof s=="number"){n.go(s);return}let c=Di(s,JSON.parse(a),i,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:ct([t,c.pathname])),(f.replace?n.replace:n.push)(c,f.state,f)},[t,n,a,i,e])}function Kl(e){let t=O.useContext(_t).outlet;return t&&O.createElement(Jy.Provider,{value:e},t)}function fr(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=O.useContext(rt),{matches:o}=O.useContext(_t),{pathname:i}=Oe(),a=JSON.stringify(Li(o,n.v7_relativeSplatPath));return O.useMemo(()=>Di(e,JSON.parse(a),i,r==="path"),[e,a,i,r])}function Kd(e,t,r,n){Wr()||V(!1);let{navigator:o}=O.useContext(rt),{matches:i}=O.useContext(_t),a=i[i.length-1],l=a?a.params:{},u=a?a.pathname:"/",s=a?a.pathnameBase:"/",f=a&&a.route,c=Oe(),p;if(t){var g;let d=typeof t=="string"?He(t):t;s==="/"||(g=d.pathname)!=null&&g.startsWith(s)||V(!1),p=d}else p=c;let m=p.pathname||"/",S=m;if(s!=="/"){let d=s.replace(/^\//,"").split("/");S="/"+m.replace(/^\//,"").split("/").slice(d.length).join("/")}let x=Ne(e,{pathname:S}),h=qy(x&&x.map(d=>Object.assign({},d,{params:Object.assign({},l,d.params),pathname:ct([s,o.encodeLocation?o.encodeLocation(d.pathname).pathname:d.pathname]),pathnameBase:d.pathnameBase==="/"?s:ct([s,o.encodeLocation?o.encodeLocation(d.pathnameBase).pathname:d.pathnameBase])})),i,r,n);return t&&h?O.createElement(so.Provider,{value:{location:uo({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:ne.Pop}},h):h}function Xy(){let e=po(),t=ft(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)",o={padding:"0.5rem",backgroundColor:n},i={padding:"2px 4px",backgroundColor:n};return O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),r?O.createElement("pre",{style:o},r):null,null)}function Zy(e){let{routeContext:t,match:r,children:n}=e,o=O.useContext(Yt);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),O.createElement(_t.Provider,{value:t},n)}function qy(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,l=(o=r)==null?void 0:o.errors;if(l!=null){let f=a.findIndex(c=>c.route.id&&l?.[c.route.id]!==void 0);f>=0||V(!1),a=a.slice(0,Math.min(a.length,f+1))}let u=!1,s=-1;if(r&&n&&n.v7_partialHydration)for(let f=0;f=0?a=a.slice(0,s+1):a=[a[0]];break}}}return a.reduceRight((f,c,p)=>{let g,m=!1,S=null,x=null;r&&(g=l&&c.route.id?l[c.route.id]:void 0,S=c.route.errorElement||Gy,u&&(s<0&&p===0?(ng("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,x=null):s===p&&(m=!0,x=c.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,p+1)),d=()=>{let v;return g?v=S:m?v=x:c.route.Component?v=O.createElement(c.route.Component,null):c.route.element?v=c.route.element:v=f,O.createElement(Zy,{match:c,routeContext:{outlet:f,matches:h,isDataRoute:r!=null},children:v})};return r&&(c.route.ErrorBoundary||c.route.errorElement||p===0)?O.createElement(bl,{location:r.location,revalidation:r.revalidation,component:S,error:g,children:d(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):d()},null)}function eg(e){let t=O.useContext(Yt);return t||V(!1),t}function fo(e){let t=O.useContext(dr);return t||V(!1),t}function tg(e){let t=O.useContext(_t);return t||V(!1),t}function Fi(e){let t=tg(e),r=t.matches[t.matches.length-1];return r.route.id||V(!1),r.route.id}function Yl(){return Fi(At.UseRouteId)}function Mi(){return fo(At.UseNavigation).navigation}function Rn(){let{matches:e,loaderData:t}=fo(At.UseMatches);return O.useMemo(()=>e.map(r=>Hl(r,t)),[e,t])}function Ql(){let e=fo(At.UseLoaderData),t=Fi(At.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function Jl(e){return fo(At.UseRouteLoaderData).loaderData[e]}function po(){var e;let t=O.useContext(bd),r=fo(At.UseRouteError),n=Fi(At.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function Xl(){let e=O.useContext(Ti);return e?._data}function Ai(){let e=O.useContext(Ti);return e?._error}function rg(){let{router:e}=eg(Yd.UseNavigateStable),t=Fi(At.UseNavigateStable),r=O.useRef(!1);return Wd(()=>{r.current=!0}),O.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,uo({fromRouteId:t},i)))},[e,t])}function ng(e,t,r){!t&&!$d[e]&&($d[e]=!0)}function og(e,t){Vd[t]||(Vd[t]=!0,console.warn(t))}function Qd(e,t){e!=null&&e.v7_startTransition||En("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&(!t||!t.v7_relativeSplatPath)&&En("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist||En("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||En("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||En("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||En("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function Jd(e){return Kl(e.context)}function Gl(e){let{basename:t="/",children:r=null,location:n,navigationType:o=ne.Pop,navigator:i,static:a=!1,future:l}=e;Wr()&&V(!1);let u=t.replace(/^\/*/,"/"),s=O.useMemo(()=>({basename:u,navigator:i,static:a,future:uo({v7_relativeSplatPath:!1},l)}),[u,l,i,a]);typeof n=="string"&&(n=He(n));let{pathname:f="/",search:c="",hash:p="",state:g=null,key:m="default"}=n,S=O.useMemo(()=>{let x=Ye(f,u);return x==null?null:{location:{pathname:x,search:c,hash:p,state:g,key:m},navigationType:o}},[u,f,c,p,g,m,o]);return S==null?null:O.createElement(rt.Provider,{value:s},O.createElement(so.Provider,{children:r,value:S}))}function Zl(e){let{children:t,errorElement:r,resolve:n}=e;return O.createElement(Wl,{resolve:n,errorElement:r},O.createElement(lg,null,t))}function lg(e){let{children:t}=e,r=Xl(),n=typeof t=="function"?t(r):t;return O.createElement(O.Fragment,null,n)}function ql(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:O.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:O.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:O.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}var O,Yt,dr,Ti,rt,so,_t,bd,Jy,Gy,bl,Yd,At,$d,Vd,En,ig,dR,pt,ag,Wl,Ii=Nl(()=>{O=Rt(et());Mt();Mt();Yt=O.createContext(null),dr=O.createContext(null),Ti=O.createContext(null),rt=O.createContext(null),so=O.createContext(null),_t=O.createContext({outlet:null,matches:[],isDataRoute:!1}),bd=O.createContext(null);Jy=O.createContext(null);Gy=O.createElement(Xy,null),bl=class extends O.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?O.createElement(_t.Provider,{value:this.props.routeContext},O.createElement(bd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};Yd=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Yd||{}),At=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(At||{});$d={};Vd={};En=(e,t,r)=>og(e,"\u26A0\uFE0F React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+r+"."));ig="startTransition",dR=O[ig];pt=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(pt||{}),ag=new Promise(()=>{}),Wl=class extends O.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,r){console.error(" caught the following error during render",t,r)}render(){let{children:t,errorElement:r,resolve:n}=this.props,o=null,i=pt.pending;if(!(n instanceof Promise))i=pt.success,o=Promise.resolve(),Object.defineProperty(o,"_tracked",{get:()=>!0}),Object.defineProperty(o,"_data",{get:()=>n});else if(this.state.error){i=pt.error;let a=this.state.error;o=Promise.reject().catch(()=>{}),Object.defineProperty(o,"_tracked",{get:()=>!0}),Object.defineProperty(o,"_error",{get:()=>a})}else n._tracked?(o=n,i="_error"in o?pt.error:"_data"in o?pt.success:pt.pending):(i=pt.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),o=n.then(a=>Object.defineProperty(n,"_data",{get:()=>a}),a=>Object.defineProperty(n,"_error",{get:()=>a})));if(i===pt.error&&o._error instanceof Ft)throw ag;if(i===pt.error&&!r)throw o._error;if(i===pt.error)return O.createElement(Ti.Provider,{value:o,children:r});if(i===pt.success)return O.createElement(Ti.Provider,{value:o,children:t});throw o}}});var af=ur(te=>{"use strict";function nu(e,t){var r=e.length;e.push(t);e:for(;0>>1,o=e[n];if(0>>1;nUi(l,r))uUi(s,l)?(e[n]=s,e[u]=r,n=u):(e[n]=l,e[a]=r,n=a);else if(uUi(s,r))e[n]=s,e[u]=r,n=u;else break e}}return t}function Ui(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Xd=performance,te.unstable_now=function(){return Xd.now()}):(eu=Date,Gd=eu.now(),te.unstable_now=function(){return eu.now()-Gd});var Xd,eu,Gd,It=[],pr=[],ug=1,ht=null,Te=3,Hi=!1,Kr=!1,mo=!1,ef=typeof setTimeout=="function"?setTimeout:null,tf=typeof clearTimeout=="function"?clearTimeout:null,Zd=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ou(e){for(var t=xt(pr);t!==null;){if(t.callback===null)zi(pr);else if(t.startTime<=e)zi(pr),t.sortIndex=t.expirationTime,nu(It,t);else break;t=xt(pr)}}function iu(e){if(mo=!1,ou(e),!Kr)if(xt(It)!==null)Kr=!0,lu(au);else{var t=xt(pr);t!==null&&uu(iu,t.startTime-e)}}function au(e,t){Kr=!1,mo&&(mo=!1,tf(vo),vo=-1),Hi=!0;var r=Te;try{for(ou(t),ht=xt(It);ht!==null&&(!(ht.expirationTime>t)||e&&!of());){var n=ht.callback;if(typeof n=="function"){ht.callback=null,Te=ht.priorityLevel;var o=n(ht.expirationTime<=t);t=te.unstable_now(),typeof o=="function"?ht.callback=o:ht===xt(It)&&zi(It),ou(t)}else zi(It);ht=xt(It)}if(ht!==null)var i=!0;else{var a=xt(pr);a!==null&&uu(iu,a.startTime-t),i=!1}return i}finally{ht=null,Te=r,Hi=!1}}var $i=!1,ji=null,vo=-1,rf=5,nf=-1;function of(){return!(te.unstable_now()-nfe||125n?(e.sortIndex=r,nu(pr,e),xt(It)===null&&e===xt(pr)&&(mo?(tf(vo),vo=-1):mo=!0,uu(iu,r-n))):(e.sortIndex=o,nu(It,e),Kr||Hi||(Kr=!0,lu(au))),e};te.unstable_shouldYield=of;te.unstable_wrapCallback=function(e){var t=Te;return function(){var r=Te;Te=t;try{return e.apply(this,arguments)}finally{Te=r}}}});var uf=ur((mR,lf)=>{"use strict";lf.exports=af()});var fm=ur(ut=>{"use strict";var sg=et(),at=uf();function L(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ou=Object.prototype.hasOwnProperty,cg=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,sf={},cf={};function dg(e){return Ou.call(cf,e)?!0:Ou.call(sf,e)?!1:cg.test(e)?cf[e]=!0:(sf[e]=!0,!1)}function fg(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function pg(e,t,r,n){if(t===null||typeof t>"u"||fg(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Be(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new Be(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new Be(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new Be(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new Be(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Le[e]=new Be(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new Be(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new Be(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new Be(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new Be(e,5,!1,e.toLowerCase(),null,!1,!1)});var _s=/[\-:]([a-z])/g;function xs(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(_s,xs);Le[t]=new Be(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_s,xs);Le[t]=new Be(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_s,xs);Le[t]=new Be(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new Be(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new Be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new Be(e,1,!1,e.toLowerCase(),null,!0,!0)});function ks(e,t,r,n){var o=Le.hasOwnProperty(t)?Le[t]:null;(o!==null?o.type!==0:n||!(2l||o[a]!==i[l]){var u=` `+o[a].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=l);break}}}finally{cu=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ko(e):""}function hg(e){switch(e.tag){case 5:return ko(e.type);case 16:return ko("Lazy");case 13:return ko("Suspense");case 19:return ko("SuspenseList");case 0:case 2:case 15:return e=du(e.type,!1),e;case 11:return e=du(e.type.render,!1),e;case 1:return e=du(e.type,!0),e;default:return""}}function Au(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case kn:return"Fragment";case xn:return"Portal";case Tu:return"Profiler";case Ns:return"StrictMode";case Fu:return"Suspense";case Mu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case yp:return(e.displayName||"Context")+".Consumer";case vp:return(e._context.displayName||"Context")+".Provider";case Cs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ps:return t=e.displayName||null,t!==null?t:Au(e.type)||"Memo";case mr:t=e._payload,e=e._init;try{return Au(e(t))}catch{}}return null}function mg(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Au(t);case 8:return t===Ns?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Lr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vg(e){var t=wp(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bi(e){e._valueTracker||(e._valueTracker=vg(e))}function Ep(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=wp(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ya(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Iu(e,t){var r=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function ff(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Lr(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Rp(e,t){t=t.checked,t!=null&&ks(e,"checked",t,!1)}function Uu(e,t){Rp(e,t);var r=Lr(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ju(e,t.type,r):t.hasOwnProperty("defaultValue")&&ju(e,t.type,Lr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function pf(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function ju(e,t,r){(t!=="number"||ya(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var No=Array.isArray;function In(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=bi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zo(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Lo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yg=["Webkit","ms","Moz","O"];Object.keys(Lo).forEach(function(e){yg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lo[t]=Lo[e]})});function kp(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Lo.hasOwnProperty(e)&&Lo[e]?(""+t).trim():t+"px"}function Np(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=kp(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var gg=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $u(e,t){if(t){if(gg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function Vu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Bu=null;function Ls(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bu=null,Un=null,jn=null;function vf(e){if(e=ni(e)){if(typeof bu!="function")throw Error(L(280));var t=e.stateNode;t&&(t=Wa(t),bu(e.stateNode,e.type,t))}}function Cp(e){Un?jn?jn.push(e):jn=[e]:Un=e}function Pp(){if(Un){var e=Un,t=jn;if(jn=Un=null,vf(e),t)for(e=0;e>>=0,e===0?32:31-(Lg(e)/Dg|0)|0}var Wi=64,Ki=4194304;function Co(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ra(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~o;l!==0?n=Co(l):(i&=a,i!==0&&(n=Co(i)))}else a=r&~o,a!==0?n=Co(a):i!==0&&(n=Co(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function ti(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Lt(t),e[t]=r}function Mg(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Oo),kf=String.fromCharCode(32),Nf=!1;function Qp(e,t){switch(e){case"keyup":return u0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nn=!1;function c0(e,t){switch(e){case"compositionend":return Jp(t);case"keypress":return t.which!==32?null:(Nf=!0,kf);case"textInput":return e=t.data,e===kf&&Nf?null:e;default:return null}}function d0(e,t){if(Nn)return e==="compositionend"||!Us&&Qp(e,t)?(e=Kp(),ua=Ms=wr=null,Nn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Lf(r)}}function qp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function eh(){for(var e=window,t=ya();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ya(e.document)}return t}function js(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function E0(e){var t=eh(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&qp(r.ownerDocument.documentElement,r)){if(n!==null&&js(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=Df(r,i);var a=Df(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Cn=null,Xu=null,Fo=null,Gu=!1;function Of(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Gu||Cn==null||Cn!==ya(n)||(n=Cn,"selectionStart"in n&&js(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Fo&&Wo(Fo,n)||(Fo=n,n=xa(Xu,"onSelect"),0Dn||(e.current=ns[Dn],ns[Dn]=null,Dn--)}function re(e,t){Dn++,ns[Dn]=e.current,e.current=t}var Dr={},Ie=Tr(Dr),Xe=Tr(!1),en=Dr;function Bn(e,t){var r=e.type.contextTypes;if(!r)return Dr;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ge(e){return e=e.childContextTypes,e!=null}function Na(){ae(Xe),ae(Ie)}function Hf(e,t,r){if(Ie.current!==Dr)throw Error(L(168));re(Ie,t),re(Xe,r)}function sh(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(L(108,mg(e)||"Unknown",o));return ce({},r,n)}function Ca(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dr,en=Ie.current,re(Ie,e),re(Xe,Xe.current),!0}function $f(e,t,r){var n=e.stateNode;if(!n)throw Error(L(169));r?(e=sh(e,t,en),n.__reactInternalMemoizedMergedChildContext=e,ae(Xe),ae(Ie),re(Ie,e)):ae(Xe),re(Xe,r)}var Jt=null,Ka=!1,Su=!1;function ch(e){Jt===null?Jt=[e]:Jt.push(e)}function D0(e){Ka=!0,ch(e)}function Fr(){if(!Su&&Jt!==null){Su=!0;var e=0,t=G;try{var r=Jt;for(G=1;e>=a,o-=a,Xt=1<<32-Lt(t)+o|r<N?(F=C,C=null):F=C.sibling;var M=p(h,C,v[N],E);if(M===null){C===null&&(C=F);break}e&&C&&M.alternate===null&&t(h,C),d=i(M,d,N),y===null?k=M:y.sibling=M,y=M,C=F}if(N===v.length)return r(h,C),le&&Yr(h,N),k;if(C===null){for(;NN?(F=C,C=null):F=C.sibling;var b=p(h,C,M.value,E);if(b===null){C===null&&(C=F);break}e&&C&&b.alternate===null&&t(h,C),d=i(b,d,N),y===null?k=b:y.sibling=b,y=b,C=F}if(M.done)return r(h,C),le&&Yr(h,N),k;if(C===null){for(;!M.done;N++,M=v.next())M=c(h,M.value,E),M!==null&&(d=i(M,d,N),y===null?k=M:y.sibling=M,y=M);return le&&Yr(h,N),k}for(C=n(h,C);!M.done;N++,M=v.next())M=g(C,h,N,M.value,E),M!==null&&(e&&M.alternate!==null&&C.delete(M.key===null?N:M.key),d=i(M,d,N),y===null?k=M:y.sibling=M,y=M);return e&&C.forEach(function(Z){return t(h,Z)}),le&&Yr(h,N),k}function x(h,d,v,E){if(typeof v=="object"&&v!==null&&v.type===kn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Vi:e:{for(var k=v.key,y=d;y!==null;){if(y.key===k){if(k=v.type,k===kn){if(y.tag===7){r(h,y.sibling),d=o(y,v.props.children),d.return=h,h=d;break e}}else if(y.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===mr&&bf(k)===y.type){r(h,y.sibling),d=o(y,v.props),d.ref=Ro(h,y,v),d.return=h,h=d;break e}r(h,y);break}else t(h,y);y=y.sibling}v.type===kn?(d=qr(v.props.children,h.mode,E,v.key),d.return=h,h=d):(E=va(v.type,v.key,v.props,null,h.mode,E),E.ref=Ro(h,d,v),E.return=h,h=E)}return a(h);case xn:e:{for(y=v.key;d!==null;){if(d.key===y)if(d.tag===4&&d.stateNode.containerInfo===v.containerInfo&&d.stateNode.implementation===v.implementation){r(h,d.sibling),d=o(d,v.children||[]),d.return=h,h=d;break e}else{r(h,d);break}else t(h,d);d=d.sibling}d=Du(v,h.mode,E),d.return=h,h=d}return a(h);case mr:return y=v._init,x(h,d,y(v._payload),E)}if(No(v))return m(h,d,v,E);if(yo(v))return S(h,d,v,E);na(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,d!==null&&d.tag===6?(r(h,d.sibling),d=o(d,v),d.return=h,h=d):(r(h,d),d=Lu(v,h.mode,E),d.return=h,h=d),a(h)):r(h,d)}return x}var Wn=hh(!0),mh=hh(!1),Da=Tr(null),Oa=null,Fn=null,Vs=null;function Bs(){Vs=Fn=Oa=null}function bs(e){var t=Da.current;ae(Da),e._currentValue=t}function as(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Hn(e,t){Oa=e,Vs=Fn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Je=!0),e.firstContext=null)}function wt(e){var t=e._currentValue;if(Vs!==e)if(e={context:e,memoizedValue:t,next:null},Fn===null){if(Oa===null)throw Error(L(308));Fn=e,Oa.dependencies={lanes:0,firstContext:e}}else Fn=Fn.next=e;return t}var Xr=null;function Ws(e){Xr===null?Xr=[e]:Xr.push(e)}function vh(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,Ws(t)):(r.next=o.next,o.next=r),t.interleaved=r,tr(e,n)}function tr(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var vr=!1;function Ks(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function yh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Zt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kr(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Q&2){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,tr(e,r)}return o=n.interleaved,o===null?(t.next=t,Ws(n)):(t.next=o.next,o.next=t),n.interleaved=t,tr(e,r)}function ca(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Os(e,r)}}function Wf(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ta(e,t,r,n){var o=e.updateQueue;vr=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var u=l,s=u.next;u.next=null,a===null?i=s:a.next=s,a=u;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==a&&(l===null?f.firstBaseUpdate=s:l.next=s,f.lastBaseUpdate=u))}if(i!==null){var c=o.baseState;a=0,f=s=u=null,l=i;do{var p=l.lane,g=l.eventTime;if((n&p)===p){f!==null&&(f=f.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,S=l;switch(p=t,g=r,S.tag){case 1:if(m=S.payload,typeof m=="function"){c=m.call(g,c,p);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=S.payload,p=typeof m=="function"?m.call(g,c,p):m,p==null)break e;c=ce({},c,p);break e;case 2:vr=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[l]:p.push(l))}else g={eventTime:g,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(s=f=g,u=c):f=f.next=g,a|=p;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;p=l,l=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(1);if(f===null&&(u=c),o.baseState=u,o.firstBaseUpdate=s,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);nn|=a,e.lanes=a,e.memoizedState=c}}function Kf(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=xu.transition;xu.transition={};try{e(!1),t()}finally{G=r,xu.transition=n}}function Mh(){return Et().memoizedState}function M0(e,t,r){var n=Cr(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Ah(e))Ih(t,r);else if(r=vh(e,t,r,n),r!==null){var o=Ve();Dt(r,e,n,o),Uh(r,t,n)}}function A0(e,t,r){var n=Cr(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ah(e))Ih(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(o.hasEagerState=!0,o.eagerState=l,Ot(l,a)){var u=t.interleaved;u===null?(o.next=o,Ws(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}r=vh(e,t,o,n),r!==null&&(o=Ve(),Dt(r,e,n,o),Uh(r,t,n))}}function Ah(e){var t=e.alternate;return e===se||t!==null&&t===se}function Ih(e,t){Mo=Ma=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Uh(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Os(e,r)}}var Aa={readContext:wt,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useInsertionEffect:Fe,useLayoutEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useMutableSource:Fe,useSyncExternalStore:Fe,useId:Fe,unstable_isNewReconciler:!1},I0={readContext:wt,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:Qf,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,fa(4194308,4,Lh.bind(null,t,e),r)},useLayoutEffect:function(e,t){return fa(4194308,4,e,t)},useInsertionEffect:function(e,t){return fa(4,2,e,t)},useMemo:function(e,t){var r=jt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=jt();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=M0.bind(null,se,e),[n.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:Yf,useDebugValue:ec,useDeferredValue:function(e){return jt().memoizedState=e},useTransition:function(){var e=Yf(!1),t=e[0];return e=F0.bind(null,e[1]),jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=se,o=jt();if(le){if(r===void 0)throw Error(L(407));r=r()}else{if(r=t(),Se===null)throw Error(L(349));rn&30||Rh(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,Qf(_h.bind(null,n,i,e),[e]),n.flags|=2048,qo(9,Sh.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=jt(),t=Se.identifierPrefix;if(le){var r=Gt,n=Xt;r=(n&~(1<<32-Lt(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Go++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[zt]=t,e[Qo]=n,Yh(e,t,!1,!1),t.stateNode=e;e:{switch(a=Vu(r,n),r){case"dialog":ie("cancel",e),ie("close",e),o=n;break;case"iframe":case"object":case"embed":ie("load",e),o=n;break;case"video":case"audio":for(o=0;oQn&&(t.flags|=128,n=!0,So(i,!1),t.lanes=4194304)}else{if(!n)if(e=Fa(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),So(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!le)return Me(t),null}else 2*me()-i.renderingStartTime>Qn&&r!==1073741824&&(t.flags|=128,n=!0,So(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=me(),t.sibling=null,r=ue.current,re(ue,n?r&1|2:r&1),t):(Me(t),null);case 22:case 23:return ac(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?nt&1073741824&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function b0(e,t){switch(Hs(t),t.tag){case 1:return Ge(t.type)&&Na(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kn(),ae(Xe),ae(Ie),Js(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Qs(t),null;case 13:if(ae(ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));bn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(ue),null;case 4:return Kn(),null;case 10:return bs(t.type._context),null;case 22:case 23:return ac(),null;case 24:return null;default:return null}}var ia=!1,Ae=!1,W0=typeof WeakSet=="function"?WeakSet:Set,A=null;function Mn(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){pe(e,t,n)}else r.current=null}function ms(e,t,r){try{r()}catch(n){pe(e,t,n)}}var ip=!1;function K0(e,t){if(Zu=Sa,e=eh(),js(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,u=-1,s=0,f=0,c=e,p=null;t:for(;;){for(var g;c!==r||o!==0&&c.nodeType!==3||(l=a+o),c!==i||n!==0&&c.nodeType!==3||(u=a+n),c.nodeType===3&&(a+=c.nodeValue.length),(g=c.firstChild)!==null;)p=c,c=g;for(;;){if(c===e)break t;if(p===r&&++s===o&&(l=a),p===i&&++f===n&&(u=a),(g=c.nextSibling)!==null)break;c=p,p=c.parentNode}c=g}r=l===-1||u===-1?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(qu={focusedElem:e,selectionRange:r},Sa=!1,A=t;A!==null;)if(t=A,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,A=e;else for(;A!==null;){t=A;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var S=m.memoizedProps,x=m.memoizedState,h=t.stateNode,d=h.getSnapshotBeforeUpdate(t.elementType===t.type?S:Nt(t.type,S),x);h.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(E){pe(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,A=e;break}A=t.return}return m=ip,ip=!1,m}function Ao(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&ms(t,r,i)}o=o.next}while(o!==n)}}function Ja(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function vs(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Xh(e){var t=e.alternate;t!==null&&(e.alternate=null,Xh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[zt],delete t[Qo],delete t[rs],delete t[P0],delete t[L0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Gh(e){return e.tag===5||e.tag===3||e.tag===4}function ap(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ys(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ka));else if(n!==4&&(e=e.child,e!==null))for(ys(e,t,r),e=e.sibling;e!==null;)ys(e,t,r),e=e.sibling}function gs(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(gs(e,t,r),e=e.sibling;e!==null;)gs(e,t,r),e=e.sibling}var Ce=null,Ct=!1;function hr(e,t,r){for(r=r.child;r!==null;)Zh(e,t,r),r=r.sibling}function Zh(e,t,r){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount($a,r)}catch{}switch(r.tag){case 5:Ae||Mn(r,t);case 6:var n=Ce,o=Ct;Ce=null,hr(e,t,r),Ce=n,Ct=o,Ce!==null&&(Ct?(e=Ce,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ce.removeChild(r.stateNode));break;case 18:Ce!==null&&(Ct?(e=Ce,r=r.stateNode,e.nodeType===8?Ru(e.parentNode,r):e.nodeType===1&&Ru(e,r),Bo(e)):Ru(Ce,r.stateNode));break;case 4:n=Ce,o=Ct,Ce=r.stateNode.containerInfo,Ct=!0,hr(e,t,r),Ce=n,Ct=o;break;case 0:case 11:case 14:case 15:if(!Ae&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&ms(r,t,a),o=o.next}while(o!==n)}hr(e,t,r);break;case 1:if(!Ae&&(Mn(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){pe(r,t,l)}hr(e,t,r);break;case 21:hr(e,t,r);break;case 22:r.mode&1?(Ae=(n=Ae)||r.memoizedState!==null,hr(e,t,r),Ae=n):hr(e,t,r);break;default:hr(e,t,r)}}function lp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new W0),t.forEach(function(n){var o=tw.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function kt(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=me()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Q0(n/1960))-n,10e?16:e,Er===null)var n=!1;else{if(e=Er,Er=null,ja=0,Q&6)throw Error(L(331));var o=Q;for(Q|=4,A=e.current;A!==null;){var i=A,a=i.child;if(A.flags&16){var l=i.deletions;if(l!==null){for(var u=0;ume()-oc?Zr(e,0):nc|=r),Ze(e,t)}function am(e,t){t===0&&(e.mode&1?(t=Ki,Ki<<=1,!(Ki&130023424)&&(Ki=4194304)):t=1);var r=Ve();e=tr(e,t),e!==null&&(ti(e,t,r),Ze(e,r))}function ew(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),am(e,r)}function tw(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(L(314))}n!==null&&n.delete(t),am(e,r)}var lm;lm=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xe.current)Je=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Je=!1,V0(e,t,r);Je=!!(e.flags&131072)}else Je=!1,le&&t.flags&1048576&&dh(t,La,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;pa(e,t),e=t.pendingProps;var o=Bn(t,Ie.current);Hn(t,r),o=Gs(null,t,n,e,o,r);var i=Zs();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ge(n)?(i=!0,Ca(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ks(t),o.updater=Qa,t.stateNode=o,o._reactInternals=t,us(t,n,e,r),t=ds(null,t,n,!0,i,r)):(t.tag=0,le&&i&&zs(t),$e(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(pa(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=nw(n),e=Nt(n,e),o){case 0:t=cs(null,t,n,e,r);break e;case 1:t=rp(null,t,n,e,r);break e;case 11:t=ep(null,t,n,e,r);break e;case 14:t=tp(null,t,n,Nt(n.type,e),r);break e}throw Error(L(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Nt(n,o),cs(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Nt(n,o),rp(e,t,n,o,r);case 3:e:{if(bh(t),e===null)throw Error(L(387));n=t.pendingProps,i=t.memoizedState,o=i.element,yh(e,t),Ta(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Yn(Error(L(423)),t),t=np(e,t,n,r,o);break e}else if(n!==o){o=Yn(Error(L(424)),t),t=np(e,t,n,r,o);break e}else for(ot=xr(t.stateNode.containerInfo.firstChild),it=t,le=!0,Pt=null,r=mh(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(bn(),n===o){t=rr(e,t,r);break e}$e(e,t,n,r)}t=t.child}return t;case 5:return gh(t),e===null&&is(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,es(n,o)?a=null:i!==null&&es(n,i)&&(t.flags|=32),Bh(e,t),$e(e,t,a,r),t.child;case 6:return e===null&&is(t),null;case 13:return Wh(e,t,r);case 4:return Ys(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Wn(t,null,n,r):$e(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Nt(n,o),ep(e,t,n,o,r);case 7:return $e(e,t,t.pendingProps,r),t.child;case 8:return $e(e,t,t.pendingProps.children,r),t.child;case 12:return $e(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,re(Da,n._currentValue),n._currentValue=a,i!==null)if(Ot(i.value,a)){if(i.children===o.children&&!Xe.current){t=rr(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var u=l.firstContext;u!==null;){if(u.context===n){if(i.tag===1){u=Zt(-1,r&-r),u.tag=2;var s=i.updateQueue;if(s!==null){s=s.shared;var f=s.pending;f===null?u.next=u:(u.next=f.next,f.next=u),s.pending=u}}i.lanes|=r,u=i.alternate,u!==null&&(u.lanes|=r),as(i.return,r,t),l.lanes|=r;break}u=u.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(L(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),as(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}$e(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Hn(t,r),o=wt(o),n=n(o),t.flags|=1,$e(e,t,n,r),t.child;case 14:return n=t.type,o=Nt(n,t.pendingProps),o=Nt(n.type,o),tp(e,t,n,o,r);case 15:return $h(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Nt(n,o),pa(e,t),t.tag=1,Ge(n)?(e=!0,Ca(t)):e=!1,Hn(t,r),jh(t,n,o),us(t,n,o,r),ds(null,t,n,!0,e,r);case 19:return Kh(e,t,r);case 22:return Vh(e,t,r)}throw Error(L(156,t.tag))};function um(e,t){return Ap(e,t)}function rw(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yt(e,t,r,n){return new rw(e,t,r,n)}function uc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nw(e){if(typeof e=="function")return uc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Cs)return 11;if(e===Ps)return 14}return 2}function Pr(e,t){var r=e.alternate;return r===null?(r=yt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function va(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")uc(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case kn:return qr(r.children,o,i,t);case Ns:a=8,o|=8;break;case Tu:return e=yt(12,r,t,o|2),e.elementType=Tu,e.lanes=i,e;case Fu:return e=yt(13,r,t,o),e.elementType=Fu,e.lanes=i,e;case Mu:return e=yt(19,r,t,o),e.elementType=Mu,e.lanes=i,e;case gp:return Ga(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case vp:a=10;break e;case yp:a=9;break e;case Cs:a=11;break e;case Ps:a=14;break e;case mr:a=16,n=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=yt(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function qr(e,t,r,n){return e=yt(7,e,n,t),e.lanes=r,e}function Ga(e,t,r,n){return e=yt(22,e,n,t),e.elementType=gp,e.lanes=r,e.stateNode={isHidden:!1},e}function Lu(e,t,r){return e=yt(6,e,null,t),e.lanes=r,e}function Du(e,t,r){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ow(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pu(0),this.expirationTimes=pu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pu(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function sc(e,t,r,n,o,i,a,l,u){return e=new ow(e,t,r,l,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=yt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ks(i),e}function iw(e,t,r){var n=3{"use strict";function pm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pm)}catch(e){console.error(e)}}pm(),hm.exports=fm()});function un(){return un=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function al(e){return e!=null&&typeof e.tagName=="string"}function Sw(e){return al(e)&&e.tagName.toLowerCase()==="button"}function _w(e){return al(e)&&e.tagName.toLowerCase()==="form"}function xw(e){return al(e)&&e.tagName.toLowerCase()==="input"}function kw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Nw(e,t){return e.button===0&&(!t||t==="_self")&&!kw(e)}function il(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(o=>[r,o]):[[r,n]])},[]))}function Cw(e,t){let r=il(e);return t&&t.forEach((n,o)=>{r.has(o)||t.getAll(o).forEach(i=>{r.append(o,i)})}),r}function Pw(){if(rl===null)try{new FormData(document.createElement("form"),0),rl=!1}catch{rl=!0}return rl}function hc(e){return e!=null&&!Lw.has(e)?null:e}function Dw(e,t){let r,n,o,i,a;if(_w(e)){let l=e.getAttribute("action");n=l?Ye(l,t):null,r=e.getAttribute("method")||ol,o=hc(e.getAttribute("enctype"))||pc,i=new FormData(e)}else if(Sw(e)||xw(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a