"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["react-core"],{45588:(e,t,r)=>{var n,a;/** * @remix-run/router v1.21.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;th,B6:()=>S,G3:()=>H,Gh:()=>P,HS:()=>j,Oi:()=>l,RO:()=>R,Rr:()=>p,VV:()=>ErrorResponseImpl,aE:()=>G,o1:()=>x,pX:()=>_,pb:()=>E,rc:()=>n,tH:()=>AbortedDeferredError,tW:()=>w,ue:()=>g,v6:()=>D,yD:()=>k,zR:()=>s}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(n||(n={}));let i="popstate";function s(e){return void 0===e&&(e={}),function(e,t,r,a){void 0===a&&(a={});let{window:s=document.defaultView,v5Compat:c=!1}=a,p=s.history,f=n.Pop,m=null,g=v();function v(){return(p.state||{idx:null}).idx}function y(){f=n.Pop;let e=v(),t=null==e?null:e-g;g=e,m&&m({action:f,location:w.location,delta:t})}function b(e){let t="null"!==s.location.origin?s.location.origin:s.location.href,r="string"==typeof e?e:h(e);return l(t,"No window.location.(origin|href) available to create URL for href: "+(r=r.replace(/ $/,"%20"))),new URL(r,t)}null==g&&(g=0,p.replaceState(o({},p.state,{idx:g}),""));let w={get action(){return f},get location(){return e(s,p)},listen(e){if(m)throw Error("A history only accepts one active listener");return s.addEventListener(i,y),m=e,()=>{s.removeEventListener(i,y),m=null}},createHref:e=>t(s,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){f=n.Push;let r=d(w.location,e,t),a=u(r,g=v()+1),o=w.createHref(r);try{p.pushState(a,"",o)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;s.location.assign(o)}c&&m&&m({action:f,location:w.location,delta:1})},replace:function(e,t){f=n.Replace;let a=d(w.location,e,t);r&&r(a,e);let o=u(a,g=v()),i=w.createHref(a);p.replaceState(o,"",i),c&&m&&m({action:f,location:w.location,delta:0})},go:e=>p.go(e)};return w}(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return d("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:h(t)},null,e)}function l(e,t){if(!1===e||null==e)throw Error(t)}function c(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function u(e,t){return{usr:e.state,key:e.key,idx:t}}function d(e,t,r,n){return void 0===r&&(r=null),o({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?p(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function h(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 p(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(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(a||(a={}));let f=new Set(["lazy","caseSensitive","path","id","index","children"]);function m(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let i=[...r,String(a)],s="string"==typeof e.id?e.id:i.join("-");if(l(!0!==e.index||!e.children,"Cannot specify children on an index route"),l(!n[s],'Found a route id collision on id "'+s+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let r=o({},e,t(e),{id:s});return n[s]=r,r}{let r=o({},e,t(e),{id:s,children:void 0});return n[s]=r,e.children&&(r.children=m(e.children,t,i,n)),r}})}function g(e,t,r){return void 0===r&&(r="/"),v(e,t,r,!1)}function v(e,t,r,n){let a=E(("string"==typeof t?p(t):t).pathname||"/",r);if(null==a)return null;let o=function e(t,r,n,a){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===a&&(a="");let o=(t,o,i)=>{let s={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};s.relativePath.startsWith("/")&&(l(s.relativePath.startsWith(a),'Absolute route path "'+s.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(a.length));let c=j([a,s.relativePath]),u=n.concat(s);if(t.children&&t.children.length>0&&(l(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+c+'".'),e(t.children,r,u,c)),null!=t.path||t.index){var d;let e,n;r.push({path:c,score:(d=t.index,n=(e=c.split("/")).length,e.some(b)&&(n+=-2),d&&(n+=2),e.filter(e=>!b(e)).reduce((e,t)=>e+(y.test(t)?3:""===t?1:10),n)),routesMeta:u})}};return t.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of function e(t){let r=t.split("/");if(0===r.length)return[];let[n,...a]=r,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let s=e(a.join("/")),l=[];return l.push(...s.map(e=>""===e?i:[i,e].join("/"))),o&&l.push(...s),l.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,r);else o(e,t)}),r}(e);!function(e){e.sort((e,t)=>{var r,n;return e.score!==t.score?t.score-e.score:(r=e.routesMeta.map(e=>e.childrenIndex),n=t.routesMeta.map(e=>e.childrenIndex),r.length===n.length&&r.slice(0,-1).every((e,t)=>e===n[t])?r[r.length-1]-n[n.length-1]:0)})}(o);let i=null;for(let e=0;null==i&&e"*"===e;function w(e,t){void 0===t&&(t={});let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(c(!1,'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),r=r.replace(/\*$/,"/*"));let n=r.startsWith("/")?"/":"",a=e=>null==e?"":"string"==typeof e?e:String(e);return n+r.split(/\/+/).map((e,r,n)=>{if(r===n.length-1&&"*"===e)return a(t["*"]);let o=e.match(/^:([\w-]+)(\??)$/);if(o){let[,e,r]=o,n=t[e];return l("?"===r||null!=n,'Missing ":'+e+'" param'),a(n)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function S(e,t){var r,n,a;let o,i;"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[s,l]=(r=e.path,n=e.caseSensitive,a=e.end,void 0===n&&(n=!1),void 0===a&&(a=!0),c("*"===r||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),o=[],i="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(o.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")),r.endsWith("*")?(o.push({paramName:"*"}),i+="*"===r||"/*"===r?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?i+="\\/*$":""!==r&&"/"!==r&&(i+="(?:(?=\\/|$))"),[new RegExp(i,n?void 0:"i"),o]),u=t.match(s);if(!u)return null;let d=u[0],h=d.replace(/(.)\/+$/,"$1"),p=u.slice(1);return{params:l.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=p[r]||"";h=d.slice(0,d.length-e.length).replace(/(.)\/+$/,"$1")}let o=p[r];return a&&!o?e[n]=void 0:e[n]=(o||"").replace(/%2F/g,"/"),e},{}),pathname:d,pathnameBase:h,pattern:e}}function R(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return c(!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 E(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 x(e,t){let r;void 0===t&&(t="/");let{pathname:n,search:a="",hash:o=""}="string"==typeof e?p(e):e;return{pathname:n?n.startsWith("/")?n:(r=t.replace(/\/+$/,"").split("/"),n.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"):t,search:L(a),hash:N(o)}}function C(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 A(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function k(e,t){let r=A(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}function P(e,t,r,n){let a,i;void 0===n&&(n=!1),"string"==typeof e?a=p(e):(l(!(a=o({},e)).pathname||!a.pathname.includes("?"),C("?","pathname","search",a)),l(!a.pathname||!a.pathname.includes("#"),C("#","pathname","hash",a)),l(!a.search||!a.search.includes("#"),C("#","search","hash",a)));let s=""===e||""===a.pathname,c=s?"/":a.pathname;if(null==c)i=r;else{let e=t.length-1;if(!n&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}i=e>=0?t[e]:"/"}let u=x(a,i),d=c&&"/"!==c&&c.endsWith("/"),h=(s||"."===c)&&r.endsWith("/");return!u.pathname.endsWith("/")&&(d||h)&&(u.pathname+="/"),u}let j=e=>e.join("/").replace(/\/\/+/g,"/"),T=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),L=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",N=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";let AbortedDeferredError=class AbortedDeferredError extends Error{};let DeferredData=class DeferredData{constructor(e,t){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],l(e&&"object"==typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise((e,t)=>r=t),this.controller=new AbortController;let n=()=>r(new AbortedDeferredError("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:this.trackPromise(r,n)})},{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let r=Promise.race([t,this.abortPromise]).then(t=>this.onSettle(r,e,void 0,t),t=>this.onSettle(r,e,t));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(e,t,r,n){if(this.controller.signal.aborted&&r instanceof AbortedDeferredError)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===r&&void 0===n){let r=Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)}return void 0===n?(Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)):(Object.defineProperty(e,"_data",{get:()=>n}),this.emit(!1,t),n)}emit(e,t){this.subscribers.forEach(r=>r(e,t))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,t)=>this.pendingKeysSet.delete(t)),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let r=()=>this.cancel();e.addEventListener("abort",r),t=await new Promise(t=>{this.subscribe(n=>{e.removeEventListener("abort",r),(n||this.done)&&t(n)})})}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return l(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:function(e){if(!(e instanceof Promise&&!0===e._tracked))return e;if(e._error)throw e._error;return e._data}(n)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}};let D=function(e,t){return void 0===t&&(t={}),new DeferredData(e,"number"==typeof t?{status:t}:t)};let ErrorResponseImpl=class ErrorResponseImpl{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function _(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let O=["post","put","patch","delete"],I=new Set(O),M=new Set(["get",...O]),B=new Set([301,302,303,307,308]),z=new Set([307,308]),W={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},U={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},H={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},F=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),q="remix-router-transitions";function G(e){let t,r,i,s,u,h;let p=e.window?e.window:"undefined"!=typeof window?window:void 0,f=void 0!==p&&void 0!==p.document&&void 0!==p.document.createElement,y=!f;if(l(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let r=e.detectErrorBoundary;t=e=>({hasErrorBoundary:r(e)})}else t=$;let b={},w=m(e.routes,t,void 0,b),S=e.basename||"/",R=e.dataStrategy||er,x=e.patchRoutesOnNavigation,C=o({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),A=null,k=new Set,P=null,j=null,T=null,L=null!=e.hydrationData,N=g(w,e.history.location,S),D=null;if(null==N&&!x){let t=em(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=ef(w);N=r,D={[n.id]:t}}if(N&&!e.hydrationData&&tn(N,w,e.history.location.pathname).active&&(N=null),N){if(N.some(e=>e.route.lazy))i=!1;else if(N.some(e=>e.route.loader)){if(C.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=N.findIndex(e=>void 0!==r[e.route.id]);i=N.slice(0,e+1).every(e=>!K(e.route,t,r))}else i=N.every(e=>!K(e.route,t,r))}else i=null!=e.hydrationData}else i=!0}else if(i=!1,N=[],C.v7_partialHydration){let t=tn(null,w,e.history.location.pathname);t.active&&t.matches&&(N=t.matches)}let O={historyAction:e.history.action,location:e.history.location,matches:N,initialized:i,navigation:W,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||D,fetchers:new Map,blockers:new Map},I=n.Pop,M=!1,G=!1,Y=new Map,Z=null,Q=!1,et=!1,ea=[],el=new Set,ec=new Map,ev=0,eS=-1,ek=new Map,eD=new Set,e_=new Map,eO=new Map,eI=new Set,eM=new Map,eB=new Map;function ez(e,t){void 0===t&&(t={}),O=o({},O,e);let r=[],n=[];C.v7_fetcherPersist&&O.fetchers.forEach((e,t)=>{"idle"===e.state&&(eI.has(t)?n.push(t):r.push(t))}),[...k].forEach(e=>e(O,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),C.v7_fetcherPersist&&(r.forEach(e=>O.fetchers.delete(e)),n.forEach(e=>e1(e)))}function eW(t,a,i){var s,l;let c,u;let{flushSync:d}=void 0===i?{}:i,h=null!=O.actionData&&null!=O.navigation.formMethod&&eE(O.navigation.formMethod)&&"loading"===O.navigation.state&&(null==(s=t.state)?void 0:s._isRedirect)!==!0;c=a.actionData?Object.keys(a.actionData).length>0?a.actionData:null:h?O.actionData:null;let p=a.loaderData?ed(O.loaderData,a.loaderData,a.matches||[],a.errors):O.loaderData,f=O.blockers;f.size>0&&(f=new Map(f)).forEach((e,t)=>f.set(t,H));let m=!0===M||null!=O.navigation.formMethod&&eE(O.navigation.formMethod)&&(null==(l=t.state)?void 0:l._isRedirect)!==!0;if(r&&(w=r,r=void 0),Q||I===n.Pop||(I===n.Push?e.history.push(t,t.state):I===n.Replace&&e.history.replace(t,t.state)),I===n.Pop){let e=Y.get(O.location.pathname);e&&e.has(t.pathname)?u={currentLocation:O.location,nextLocation:t}:Y.has(t.pathname)&&(u={currentLocation:t,nextLocation:O.location})}else if(G){let e=Y.get(O.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),Y.set(O.location.pathname,e)),u={currentLocation:O.location,nextLocation:t}}ez(o({},a,{actionData:c,loaderData:p,historyAction:I,location:t,initialized:!0,navigation:W,revalidation:"idle",restoreScrollPosition:tr(t,a.matches||O.matches),preventScrollReset:m,blockers:f}),{viewTransitionOpts:u,flushSync:!0===d}),I=n.Pop,M=!1,G=!1,Q=!1,et=!1,ea=[]}async function eU(t,r){if("number"==typeof t){e.history.go(t);return}let a=V(O.location,O.matches,S,C.v7_prependBasename,t,C.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:i,submission:s,error:l}=X(C.v7_normalizeFormMethod,!1,a,r),c=O.location,u=d(O.location,i,r&&r.state);u=o({},u,e.history.encodeLocation(u));let h=r&&null!=r.replace?r.replace:void 0,p=n.Push;!0===h?p=n.Replace:!1===h||null!=s&&eE(s.formMethod)&&s.formAction===O.location.pathname+O.location.search&&(p=n.Replace);let f=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,m=!0===(r&&r.flushSync),g=e8({currentLocation:c,nextLocation:u,historyAction:p});if(g){e3(g,{state:"blocked",location:u,proceed(){e3(g,{state:"proceeding",proceed:void 0,reset:void 0,location:u}),eU(t,r)},reset(){let e=new Map(O.blockers);e.set(g,H),ez({blockers:e})}});return}return await eH(p,u,{submission:s,pendingError:l,preventScrollReset:f,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:m})}async function eH(t,n,i){var s,l,c;let d;u&&u.abort(),u=null,I=t,Q=!0===(i&&i.startUninterruptedRevalidation),s=O.location,l=O.matches,P&&T&&(P[tt(s,l)]=T()),M=!0===(i&&i.preventScrollReset),G=!0===(i&&i.enableViewTransition);let h=r||w,p=i&&i.overrideNavigation,f=g(h,n,S),m=!0===(i&&i.flushSync),v=tn(f,h,n.pathname);if(v.active&&v.matches&&(f=v.matches),!f){let{error:e,notFoundMatches:t,route:r}=e9(n.pathname);eW(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:m});return}if(O.initialized&&!et&&(c=O.location).pathname===n.pathname&&c.search===n.search&&(""===c.hash?""!==n.hash:c.hash===n.hash||""!==n.hash)&&!(i&&i.submission&&eE(i.submission.formMethod))){eW(n,{matches:f},{flushSync:m});return}u=new AbortController;let y=es(e.history,n,u.signal,i&&i.submission);if(i&&i.pendingError)d=[ep(f).route.id,{type:a.error,error:i.pendingError}];else if(i&&i.submission&&eE(i.submission.formMethod)){let t=await eF(y,n,i.submission,f,v.active,{replace:i.replace,flushSync:m});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(eb(r)&&_(r.error)&&404===r.error.status){u=null,eW(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}f=t.matches||f,d=t.pendingActionResult,p=eT(n,i.submission),m=!1,v.active=!1,y=es(e.history,y.url,y.signal)}let{shortCircuited:b,matches:R,loaderData:E,errors:x}=await e$(y,n,f,v.active,p,i&&i.submission,i&&i.fetcherSubmission,i&&i.replace,i&&!0===i.initialHydration,m,d);b||(u=null,eW(n,o({matches:R||f},eh(d),{loaderData:E,errors:x})))}async function eF(e,t,r,o,i,s){let l;if(void 0===s&&(s={}),eK(),ez({navigation:{state:"submitting",location:t,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}},{flushSync:!0===s.flushSync}),i){let r=await ta(o,t.pathname,e.signal);if("aborted"===r.type)return{shortCircuited:!0};if("error"===r.type){let e=ep(r.partialMatches).route.id;return{matches:r.partialMatches,pendingActionResult:[e,{type:a.error,error:r.error}]}}if(r.matches)o=r.matches;else{let{notFoundMatches:e,error:r,route:n}=e9(t.pathname);return{matches:e,pendingActionResult:[n.id,{type:a.error,error:r}]}}}let c=eP(o,t);if(c.route.action||c.route.lazy){if(l=(await eY("action",O,e,[c],o,null))[c.route.id],e.signal.aborted)return{shortCircuited:!0}}else l={type:a.error,error:em(405,{method:e.method,pathname:t.pathname,routeId:c.route.id})};if(ew(l)){let t;return t=s&&null!=s.replace?s.replace:ei(l.response.headers.get("Location"),new URL(e.url),S)===O.location.pathname+O.location.search,await eX(e,l,!0,{submission:r,replace:t}),{shortCircuited:!0}}if(ey(l))throw em(400,{type:"defer-action"});if(eb(l)){let e=ep(o,c.route.id);return!0!==(s&&s.replace)&&(I=n.Push),{matches:o,pendingActionResult:[e.route.id,l]}}return{matches:o,pendingActionResult:[c.route.id,l]}}async function e$(t,n,a,i,s,l,c,d,h,p,f){let m=s||eT(n,l),g=l||c||ej(m),v=!Q&&(!C.v7_partialHydration||!h);if(i){if(v){let e=eq(f);ez(o({navigation:m},void 0!==e?{actionData:e}:{}),{flushSync:p})}let e=await ta(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=ep(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)a=e.matches;else{let{error:e,notFoundMatches:t,route:r}=e9(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let y=r||w,[b,R]=J(e.history,O,a,g,n,C.v7_partialHydration&&!0===h,C.v7_skipActionErrorRevalidation,et,ea,el,eI,e_,eD,y,S,f);if(te(e=>!(a&&a.some(t=>t.route.id===e))||b&&b.some(t=>t.route.id===e)),eS=++ev,0===b.length&&0===R.length){let e=e5();return eW(n,o({matches:a,loaderData:{},errors:f&&eb(f[1])?{[f[0]]:f[1].error}:null},eh(f),e?{fetchers:new Map(O.fetchers)}:{}),{flushSync:p}),{shortCircuited:!0}}if(v){let e={};if(!i){e.navigation=m;let t=eq(f);void 0!==t&&(e.actionData=t)}R.length>0&&(e.fetchers=(R.forEach(e=>{let t=O.fetchers.get(e.key),r=eL(void 0,t?t.data:void 0);O.fetchers.set(e.key,r)}),new Map(O.fetchers))),ez(e,{flushSync:p})}R.forEach(e=>{e4(e.key),e.controller&&ec.set(e.key,e.controller)});let E=()=>R.forEach(e=>e4(e.key));u&&u.signal.addEventListener("abort",E);let{loaderResults:x,fetcherResults:A}=await eJ(O,a,b,R,t);if(t.signal.aborted)return{shortCircuited:!0};u&&u.signal.removeEventListener("abort",E),R.forEach(e=>ec.delete(e.key));let k=eg(x);if(k)return await eX(t,k.result,!0,{replace:d}),{shortCircuited:!0};if(k=eg(A))return eD.add(k.key),await eX(t,k.result,!0,{replace:d}),{shortCircuited:!0};let{loaderData:P,errors:j}=eu(O,a,x,f,R,A,eM);eM.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&eM.delete(t)})}),C.v7_partialHydration&&h&&O.errors&&(j=o({},O.errors,j));let T=e5(),L=e2(eS),N=T||L||R.length>0;return o({matches:a,loaderData:P,errors:j},N?{fetchers:new Map(O.fetchers)}:{})}function eq(e){return e&&!eb(e[1])?{[e[0]]:e[1].data}:O.actionData?0===Object.keys(O.actionData).length?null:O.actionData:void 0}async function eG(t,n,a,o,i,s,c,d,h){function p(e){if(!e.route.action&&!e.route.lazy){let e=em(405,{method:h.formMethod,pathname:a,routeId:n});return eQ(t,n,e,{flushSync:c}),!0}return!1}if(eK(),e_.delete(t),!s&&p(o))return;let f=O.fetchers.get(t);eZ(t,{state:"submitting",formMethod:h.formMethod,formAction:h.formAction,formEncType:h.formEncType,formData:h.formData,json:h.json,text:h.text,data:f?f.data:void 0},{flushSync:c});let m=new AbortController,v=es(e.history,a,m.signal,h);if(s){let e=await ta(i,a,v.signal);if("aborted"===e.type)return;if("error"===e.type){eQ(t,n,e.error,{flushSync:c});return}if(e.matches){if(p(o=eP(i=e.matches,a)))return}else{eQ(t,n,em(404,{pathname:a}),{flushSync:c});return}}ec.set(t,m);let y=ev,b=(await eY("action",O,v,[o],i,t))[o.route.id];if(v.signal.aborted){ec.get(t)===m&&ec.delete(t);return}if(C.v7_fetcherPersist&&eI.has(t)){if(ew(b)||eb(b)){eZ(t,eN(void 0));return}}else{if(ew(b))return(ec.delete(t),eS>y)?void eZ(t,eN(void 0)):(eD.add(t),eZ(t,eL(h)),eX(v,b,!1,{fetcherSubmission:h,preventScrollReset:d}));if(eb(b)){eQ(t,n,b.error);return}}if(ey(b))throw em(400,{type:"defer-action"});let R=O.navigation.location||O.location,E=es(e.history,R,m.signal),x=r||w,A="idle"!==O.navigation.state?g(x,O.navigation.location,S):O.matches;l(A,"Didn't find any matches after fetcher action");let k=++ev;ek.set(t,k);let P=eL(h,b.data);O.fetchers.set(t,P);let[j,T]=J(e.history,O,A,h,R,!1,C.v7_skipActionErrorRevalidation,et,ea,el,eI,e_,eD,x,S,[o.route.id,b]);T.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=O.fetchers.get(t),n=eL(void 0,r?r.data:void 0);O.fetchers.set(t,n),e4(t),e.controller&&ec.set(t,e.controller)}),ez({fetchers:new Map(O.fetchers)});let L=()=>T.forEach(e=>e4(e.key));m.signal.addEventListener("abort",L);let{loaderResults:N,fetcherResults:D}=await eJ(O,A,j,T,E);if(m.signal.aborted)return;m.signal.removeEventListener("abort",L),ek.delete(t),ec.delete(t),T.forEach(e=>ec.delete(e.key));let _=eg(N);if(_)return eX(E,_.result,!1,{preventScrollReset:d});if(_=eg(D))return eD.add(_.key),eX(E,_.result,!1,{preventScrollReset:d});let{loaderData:M,errors:B}=eu(O,A,N,void 0,T,D,eM);if(O.fetchers.has(t)){let e=eN(b.data);O.fetchers.set(t,e)}e2(k),"loading"===O.navigation.state&&k>eS?(l(I,"Expected pending action"),u&&u.abort(),eW(O.navigation.location,{matches:A,loaderData:M,errors:B,fetchers:new Map(O.fetchers)})):(ez({errors:B,loaderData:ed(O.loaderData,M,A,B),fetchers:new Map(O.fetchers)}),et=!1)}async function eV(t,r,n,a,o,i,s,c,u){let d=O.fetchers.get(t);eZ(t,eL(u,d?d.data:void 0),{flushSync:s});let h=new AbortController,p=es(e.history,n,h.signal);if(i){let e=await ta(o,n,p.signal);if("aborted"===e.type)return;if("error"===e.type){eQ(t,r,e.error,{flushSync:s});return}if(e.matches)a=eP(o=e.matches,n);else{eQ(t,r,em(404,{pathname:n}),{flushSync:s});return}}ec.set(t,h);let f=ev,m=(await eY("loader",O,p,[a],o,t))[a.route.id];if(ey(m)&&(m=await eA(m,p.signal,!0)||m),ec.get(t)===h&&ec.delete(t),!p.signal.aborted){if(eI.has(t)){eZ(t,eN(void 0));return}if(ew(m)){if(eS>f){eZ(t,eN(void 0));return}eD.add(t),await eX(p,m,!1,{preventScrollReset:c});return}if(eb(m)){eQ(t,r,m.error);return}l(!ey(m),"Unhandled fetcher deferred data"),eZ(t,eN(m.data))}}async function eX(t,r,a,i){let{submission:s,fetcherSubmission:c,preventScrollReset:h,replace:m}=void 0===i?{}:i;r.response.headers.has("X-Remix-Revalidate")&&(et=!0);let g=r.response.headers.get("Location");l(g,"Expected a Location header on the redirect Response"),g=ei(g,new URL(t.url),S);let v=d(O.location,g,{_isRedirect:!0});if(f){let t=!1;if(r.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(F.test(g)){let r=e.history.createURL(g);t=r.origin!==p.location.origin||null==E(r.pathname,S)}if(t){m?p.location.replace(g):p.location.assign(g);return}}u=null;let y=!0===m||r.response.headers.has("X-Remix-Replace")?n.Replace:n.Push,{formMethod:b,formAction:w,formEncType:R}=O.navigation;!s&&!c&&b&&w&&R&&(s=ej(O.navigation));let x=s||c;if(z.has(r.response.status)&&x&&eE(x.formMethod))await eH(y,v,{submission:o({},x,{formAction:g}),preventScrollReset:h||M,enableViewTransition:a?G:void 0});else{let e=eT(v,s);await eH(y,v,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:h||M,enableViewTransition:a?G:void 0})}}async function eY(e,r,n,o,i,s){let c;let u={};try{c=await en(R,e,r,n,o,i,s,b,t)}catch(e){return o.forEach(t=>{u[t.route.id]={type:a.error,error:e}}),u}for(let[e,t]of Object.entries(c)){var d;if(eR((d=t).result)&&B.has(d.result.status)){let r=t.result;u[e]={type:a.redirect,response:function(e,t,r,n,a,o){let i=e.headers.get("Location");if(l(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!F.test(i)){let s=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=V(new URL(t.url),s,a,!0,i,o),e.headers.set("Location",i)}return e}(r,n,e,i,S,C.v7_relativeSplatPath)}}else u[e]=await eo(t)}return u}async function eJ(t,r,n,o,i){let s=t.matches,l=eY("loader",t,i,n,r,null),c=Promise.all(o.map(async r=>{if(!r.matches||!r.match||!r.controller)return Promise.resolve({[r.key]:{type:a.error,error:em(404,{pathname:r.path})}});{let n=(await eY("loader",t,es(e.history,r.path,r.controller.signal),[r.match],r.matches,r.key))[r.match.route.id];return{[r.key]:n}}})),u=await l,d=(await c).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([ex(r,u,i.signal,s,t.loaderData),eC(r,d,o)]),{loaderResults:u,fetcherResults:d}}function eK(){et=!0,ea.push(...te()),e_.forEach((e,t)=>{ec.has(t)&&el.add(t),e4(t)})}function eZ(e,t,r){void 0===r&&(r={}),O.fetchers.set(e,t),ez({fetchers:new Map(O.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function eQ(e,t,r,n){void 0===n&&(n={});let a=ep(O.matches,t);e1(e),ez({errors:{[a.route.id]:r},fetchers:new Map(O.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function e0(e){return C.v7_fetcherPersist&&(eO.set(e,(eO.get(e)||0)+1),eI.has(e)&&eI.delete(e)),O.fetchers.get(e)||U}function e1(e){let t=O.fetchers.get(e);ec.has(e)&&!(t&&"loading"===t.state&&ek.has(e))&&e4(e),e_.delete(e),ek.delete(e),eD.delete(e),eI.delete(e),el.delete(e),O.fetchers.delete(e)}function e4(e){let t=ec.get(e);t&&(t.abort(),ec.delete(e))}function e7(e){for(let t of e){let e=eN(e0(t).data);O.fetchers.set(t,e)}}function e5(){let e=[],t=!1;for(let r of eD){let n=O.fetchers.get(r);l(n,"Expected fetcher: "+r),"loading"===n.state&&(eD.delete(r),e.push(r),t=!0)}return e7(e),t}function e2(e){let t=[];for(let[r,n]of ek)if(n0}function e6(e){O.blockers.delete(e),eB.delete(e)}function e3(e,t){let r=O.blockers.get(e)||H;l("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(O.blockers);n.set(e,t),ez({blockers:n})}function e8(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===eB.size)return;eB.size>1&&c(!1,"A router only supports one blocker at a time");let a=Array.from(eB.entries()),[o,i]=a[a.length-1],s=O.blockers.get(o);if((!s||"proceeding"!==s.state)&&i({currentLocation:t,nextLocation:r,historyAction:n}))return o}function e9(e){let t=em(404,{pathname:e}),{matches:n,route:a}=ef(r||w);return te(),{notFoundMatches:n,route:a,error:t}}function te(e){let t=[];return eM.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),eM.delete(n))}),t}function tt(e,t){return j&&j(e,t.map(e=>(function(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}})(e,O.loaderData)))||e.key}function tr(e,t){if(P){let r=P[tt(e,t)];if("number"==typeof r)return r}return null}function tn(e,t,r){if(x){if(!e)return{active:!0,matches:v(t,r,S,!0)||[]};if(Object.keys(e[0].params).length>0)return{active:!0,matches:v(t,r,S,!0)}}return{active:!1,matches:null}}async function ta(e,n,a){if(!x)return{type:"success",matches:e};let o=e;for(;;){let e=null==r,i=r||w,s=b;try{await x({path:n,matches:o,patch:(e,r)=>{a.aborted||ee(e,r,i,s,t)}})}catch(e){return{type:"error",error:e,partialMatches:o}}finally{e&&!a.aborted&&(w=[...w])}if(a.aborted)return{type:"aborted"};let l=g(i,n,S);if(l)return{type:"success",matches:l};let c=v(i,n,S,!0);if(!c||o.length===c.length&&o.every((e,t)=>e.route.id===c[t].route.id))return{type:"success",matches:null};o=c}}return s={get basename(){return S},get future(){return C},get state(){return O},get routes(){return w},get window(){return p},initialize:function(){if(A=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(h){h(),h=void 0;return}c(0===eB.size||null!=a,"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 o=e8({currentLocation:O.location,nextLocation:n,historyAction:r});if(o&&null!=a){let t=new Promise(e=>{h=e});e.history.go(-1*a),e3(o,{state:"blocked",location:n,proceed(){e3(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(a))},reset(){let e=new Map(O.blockers);e.set(o,H),ez({blockers:e})}});return}return eH(r,n)}),f){!function(e,t){try{let r=e.sessionStorage.getItem(q);if(r){let e=JSON.parse(r);for(let[r,n]of Object.entries(e||{}))n&&Array.isArray(n)&&t.set(r,new Set(n||[]))}}catch(e){}}(p,Y);let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(q,JSON.stringify(r))}catch(e){c(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(p,Y);p.addEventListener("pagehide",e),Z=()=>p.removeEventListener("pagehide",e)}return O.initialized||eH(n.Pop,O.location,{initialHydration:!0}),s},subscribe:function(e){return k.add(e),()=>k.delete(e)},enableScrollRestoration:function(e,t,r){if(P=e,T=t,j=r||null,!L&&O.navigation===W){L=!0;let e=tr(O.location,O.matches);null!=e&&ez({restoreScrollPosition:e})}return()=>{P=null,T=null,j=null}},navigate:eU,fetch:function(e,t,n,a){if(y)throw Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");e4(e);let o=!0===(a&&a.flushSync),i=r||w,s=V(O.location,O.matches,S,C.v7_prependBasename,n,C.v7_relativeSplatPath,t,null==a?void 0:a.relative),l=g(i,s,S),c=tn(l,i,s);if(c.active&&c.matches&&(l=c.matches),!l){eQ(e,t,em(404,{pathname:s}),{flushSync:o});return}let{path:u,submission:d,error:h}=X(C.v7_normalizeFormMethod,!0,s,a);if(h){eQ(e,t,h,{flushSync:o});return}let p=eP(l,u),f=!0===(a&&a.preventScrollReset);if(d&&eE(d.formMethod)){eG(e,t,u,p,l,c.active,o,f,d);return}e_.set(e,{routeId:t,path:u}),eV(e,t,u,p,l,c.active,o,f,d)},revalidate:function(){if(eK(),ez({revalidation:"loading"}),"submitting"!==O.navigation.state){if("idle"===O.navigation.state){eH(O.historyAction,O.location,{startUninterruptedRevalidation:!0});return}eH(I||O.historyAction,O.navigation.location,{overrideNavigation:O.navigation,enableViewTransition:!0===G})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:e0,deleteFetcher:function(e){if(C.v7_fetcherPersist){let t=(eO.get(e)||0)-1;t<=0?(eO.delete(e),eI.add(e)):eO.set(e,t)}else e1(e);ez({fetchers:new Map(O.fetchers)})},dispose:function(){A&&A(),Z&&Z(),k.clear(),u&&u.abort(),O.fetchers.forEach((e,t)=>e1(t)),O.blockers.forEach((e,t)=>e6(t))},getBlocker:function(e,t){let r=O.blockers.get(e)||H;return eB.get(e)!==t&&eB.set(e,t),r},deleteBlocker:e6,patchRoutes:function(e,n){let a=null==r;ee(e,n,r||w,b,t),a&&(w=[...w],ez({}))},_internalFetchControllers:ec,_internalActiveDeferreds:eM,_internalSetRoutes:function(e){r=m(e,t,void 0,b={})}}}function V(e,t,r,n,a,o,i,s){let l,c;if(i){for(let e of(l=[],t))if(l.push(e),e.route.id===i){c=e;break}}else l=t,c=t[t.length-1];let u=P(a||".",k(l,o),E(e.pathname,r)||e.pathname,"path"===s);if(null==a&&(u.search=e.search,u.hash=e.hash),(null==a||""===a||"."===a)&&c){let e=ek(u.search);if(c.route.index&&!e)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&e){let e=new URLSearchParams(u.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();u.search=r?"?"+r:""}}return n&&"/"!==r&&(u.pathname="/"===u.pathname?r:j([r,u.pathname])),h(u)}function X(e,t,r,n){var a;let o,i;if(!n||!(null!=n&&("formData"in n&&null!=n.formData||"body"in n&&void 0!==n.body)))return{path:r};if(n.formMethod&&(a=n.formMethod,!M.has(a.toLowerCase())))return{path:r,error:em(405,{method:n.formMethod})};let s=()=>({path:r,error:em(400,{type:"invalid-body"})}),c=n.formMethod||"get",u=e?c.toUpperCase():c.toLowerCase(),d=ev(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!eE(u))return s();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:u,formAction:d,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!eE(u))return s();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:d,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return s()}}}if(l("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=el(n.formData),i=n.formData;else if(n.body instanceof FormData)o=el(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=ec(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=ec(o)}catch(e){return s()}let f={formMethod:u,formAction:d,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(eE(f.formMethod))return{path:r,submission:f};let m=p(r);return t&&m.search&&ek(m.search)&&o.append("index",""),m.search="?"+o,{path:h(m),submission:f}}function Y(e,t,r){void 0===r&&(r=!1);let n=e.findIndex(e=>e.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function J(e,t,r,n,a,i,s,l,c,u,d,h,p,f,m,v){let y=v?eb(v[1])?v[1].error:v[1].data:void 0,b=e.createURL(t.location),w=e.createURL(a),S=r;i&&t.errors?S=Y(r,Object.keys(t.errors)[0],!0):v&&eb(v[1])&&(S=Y(r,v[0]));let R=v?v[1].statusCode:void 0,E=s&&R&&R>=400,x=S.filter((e,r)=>{var a,s;let u,d,{route:h}=e;if(h.lazy)return!0;if(null==h.loader)return!1;if(i)return K(h,t.loaderData,t.errors);if(a=t.loaderData,u=!(s=t.matches[r])||e.route.id!==s.route.id,d=void 0===a[e.route.id],u||d||c.some(t=>t===e.route.id))return!0;let p=t.matches[r];return Q(e,o({currentUrl:b,currentParams:p.params,nextUrl:w,nextParams:e.params},n,{actionResult:y,actionStatus:R,defaultShouldRevalidate:!E&&(l||b.pathname+b.search===w.pathname+w.search||b.search!==w.search||Z(p,e))}))}),C=[];return h.forEach((e,a)=>{if(i||!r.some(t=>t.route.id===e.routeId)||d.has(a))return;let s=g(f,e.path,m);if(!s){C.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});return}let c=t.fetchers.get(a),h=eP(s,e.path),v=!1;p.has(a)?v=!1:u.has(a)?(u.delete(a),v=!0):v=c&&"idle"!==c.state&&void 0===c.data?l:Q(h,o({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:y,actionStatus:R,defaultShouldRevalidate:!E&&l})),v&&C.push({key:a,routeId:e.routeId,path:e.path,matches:s,match:h,controller:new AbortController})}),[x,C]}function K(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=null!=t&&void 0!==t[e.id],a=null!=r&&void 0!==r[e.id];return(!!n||!a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function Z(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Q(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function ee(e,t,r,n,a){var o;let i;if(e){let t=n[e];l(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let s=m(t.filter(e=>!i.some(t=>(function e(t,r){return"id"in t&&"id"in r&&t.id===r.id||t.index===r.index&&t.path===r.path&&t.caseSensitive===r.caseSensitive&&((!t.children||0===t.children.length)&&(!r.children||0===r.children.length)||t.children.every((t,n)=>{var a;return null==(a=r.children)?void 0:a.some(r=>e(t,r))}))})(e,t))),a,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],n);i.push(...s)}async function et(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];l(a,"No route found in manifest");let i={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;c(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||f.has(e)||(i[e]=n[e])}Object.assign(a,i),Object.assign(a,o({},t(a),{lazy:void 0}))}async function er(e){let{matches:t}=e,r=t.filter(e=>e.shouldLoad);return(await Promise.all(r.map(e=>e.resolve()))).reduce((e,t,n)=>Object.assign(e,{[r[n].route.id]:t}),{})}async function en(e,t,r,n,i,s,l,c,u,d){let h=s.map(e=>e.route.lazy?et(e.route,u,c):void 0),p=s.map((e,r)=>{let s=h[r],l=i.some(t=>t.route.id===e.route.id),c=async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(l=!0),l?ea(t,n,e,s,r,d):Promise.resolve({type:a.data,result:void 0}));return o({},e,{shouldLoad:l,resolve:c})}),f=await e({matches:p,request:n,params:s[0].params,fetcherKey:l,context:d});try{await Promise.all(h)}catch(e){}return f}async function ea(e,t,r,n,o,i){let s,c;let u=n=>{let a;let s=new Promise((e,t)=>a=t);c=()=>a(),t.signal.addEventListener("abort",c);let l=a=>"function"!=typeof n?Promise.reject(Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+r.route.id+"]")):n({request:t,params:r.params,context:i},...void 0!==a?[a]:[]);return Promise.race([(async()=>{try{let e=await (o?o(e=>l(e)):l());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),s])};try{let o=r.route[e];if(n){if(o){let e;let[t]=await Promise.all([u(o).catch(t=>{e=t}),n]);if(void 0!==e)throw e;s=t}else if(await n,o=r.route[e])s=await u(o);else{if("action"!==e)return{type:a.data,result:void 0};let n=new URL(t.url),o=n.pathname+n.search;throw em(405,{method:t.method,pathname:o,routeId:r.route.id})}}else if(o)s=await u(o);else{let e=new URL(t.url),r=e.pathname+e.search;throw em(404,{pathname:r})}l(void 0!==s.result,"You defined "+("action"===e?"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(e){return{type:a.error,result:e}}finally{c&&t.signal.removeEventListener("abort",c)}return s}async function eo(e){var t,r,n,o,i,s,l;let{result:c,type:u}=e;if(eR(c)){let e;try{let t=c.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==c.body?null:await c.json():await c.text()}catch(e){return{type:a.error,error:e}}return u===a.error?{type:a.error,error:new ErrorResponseImpl(c.status,c.statusText,e),statusCode:c.status,headers:c.headers}:{type:a.data,data:e,statusCode:c.status,headers:c.headers}}if(u===a.error){if(eS(c)){if(c.data instanceof Error)return{type:a.error,error:c.data,statusCode:null==(r=c.init)?void 0:r.status};c=new ErrorResponseImpl((null==(t=c.init)?void 0:t.status)||500,void 0,c.data)}return{type:a.error,error:c,statusCode:_(c)?c.status:void 0}}return(l=c)&&"object"==typeof l&&"object"==typeof l.data&&"function"==typeof l.subscribe&&"function"==typeof l.cancel&&"function"==typeof l.resolveData?{type:a.deferred,deferredData:c,statusCode:null==(n=c.init)?void 0:n.status,headers:(null==(o=c.init)?void 0:o.headers)&&new Headers(c.init.headers)}:eS(c)?{type:a.data,data:c.data,statusCode:null==(i=c.init)?void 0:i.status,headers:null!=(s=c.init)&&s.headers?new Headers(c.init.headers):void 0}:{type:a.data,data:c}}function ei(e,t,r){if(F.test(e)){let n=new URL(e.startsWith("//")?t.protocol+e:e),a=null!=E(n.pathname,r);if(n.origin===t.origin&&a)return n.pathname+n.search+n.hash}return e}function es(e,t,r,n){let a=e.createURL(ev(t)).toString(),o={signal:r};if(n&&eE(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=el(n.formData):o.body=n.formData}return new Request(a,o)}function el(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function ec(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function eu(e,t,r,n,a,i,s){let c,u,d,h,p,f;let{loaderData:m,errors:g}=(u={},d=null,h=!1,p={},f=n&&eb(n[1])?n[1].error:void 0,t.forEach(e=>{if(!(e.route.id in r))return;let n=e.route.id,a=r[n];if(l(!ew(a),"Cannot handle redirect results in processLoaderData"),eb(a)){let e=a.error;void 0!==f&&(e=f,f=void 0),d=d||{};{let r=ep(t,n);null==d[r.route.id]&&(d[r.route.id]=e)}u[n]=void 0,h||(h=!0,c=_(a.error)?a.error.status:500),a.headers&&(p[n]=a.headers)}else ey(a)?(s.set(n,a.deferredData),u[n]=a.deferredData.data,null==a.statusCode||200===a.statusCode||h||(c=a.statusCode)):(u[n]=a.data,a.statusCode&&200!==a.statusCode&&!h&&(c=a.statusCode)),a.headers&&(p[n]=a.headers)}),void 0!==f&&n&&(d={[n[0]]:f},u[n[0]]=void 0),{loaderData:u,errors:d,statusCode:c||200,loaderHeaders:p});return a.forEach(t=>{let{key:r,match:n,controller:a}=t,s=i[r];if(l(s,"Did not find corresponding fetcher result"),!a||!a.signal.aborted){if(eb(s)){let t=ep(e.matches,null==n?void 0:n.route.id);g&&g[t.route.id]||(g=o({},g,{[t.route.id]:s.error})),e.fetchers.delete(r)}else if(ew(s))l(!1,"Unhandled fetcher revalidation redirect");else if(ey(s))l(!1,"Unhandled fetcher deferred data");else{let t=eN(s.data);e.fetchers.set(r,t)}}}),{loaderData:m,errors:g}}function ed(e,t,r,n){let a=o({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function eh(e){return e?eb(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ep(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function ef(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function em(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=void 0===t?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(s="Bad Request",a&&r&&n?l="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?l="defer() is not supported in actions":"invalid-body"===o&&(l="Unable to encode submission body")):403===e?(s="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):404===e?(s="Not Found",l='No route matches URL "'+r+'"'):405===e&&(s="Method Not Allowed",a&&r&&n?l="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new ErrorResponseImpl(e||500,s,Error(l),!0)}function eg(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(ew(n))return{key:r,result:n}}}function ev(e){let t="string"==typeof e?p(e):e;return h(o({},t,{hash:""}))}function ey(e){return e.type===a.deferred}function eb(e){return e.type===a.error}function ew(e){return(e&&e.type)===a.redirect}function eS(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function eR(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function eE(e){return I.has(e.toLowerCase())}async function ex(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i(null==e?void 0:e.route.id)===s);if(!c)continue;let u=n.find(e=>e.route.id===c.route.id),d=null!=u&&!Z(u,c)&&(a&&a[c.route.id])!==void 0;ey(l)&&d&&await eA(l,r,!1).then(e=>{e&&(t[s]=e)})}}async function eC(e,t,r){for(let n=0;n(null==e?void 0:e.route.id)===o)&&ey(s)&&(l(i,"Expected an AbortController for revalidating fetcher deferred result"),await eA(s,i.signal,!0).then(e=>{e&&(t[a]=e)}))}}async function eA(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:a.data,data:e.deferredData.unwrappedData}}catch(e){return{type:a.error,error:e}}return{type:a.data,data:e.deferredData.data}}}function ek(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eP(e,t){let r="string"==typeof t?p(t).search:t.search;if(e[e.length-1].route.index&&ek(r||""))return e[e.length-1];let n=A(e);return n[n.length-1]}function ej(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n){if(null!=a)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(void 0!==i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function eT(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function eL(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 eN(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}Symbol("deferred")},43581:(e,t,r)=>{r.d(t,{A:()=>i,T:()=>o});var n=r(49236),a={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};a.bgImage=a.backgroundImage,a.bgSize=a.backgroundSize,a.bgPosition=a.backgroundPosition,a.bgRepeat=a.backgroundRepeat;var o=(0,n.qU)(a);let i=o},84995:(e,t,r)=>{r.d(t,{A:()=>i,P:()=>o});var n=r(49236),a={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"}};a.borderTopWidth={property:"borderTopWidth",scale:"borderWidths"},a.borderTopColor={property:"borderTopColor",scale:"colors"},a.borderTopStyle={property:"borderTopStyle",scale:"borderStyles"},a.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"},a.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"},a.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"},a.borderBottomColor={property:"borderBottomColor",scale:"colors"},a.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"},a.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"},a.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"},a.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"},a.borderLeftColor={property:"borderLeftColor",scale:"colors"},a.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"},a.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"},a.borderRightColor={property:"borderRightColor",scale:"colors"},a.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var o=(0,n.qU)(a);let i=o},77638:(e,t,r)=>{r.d(t,{A:()=>i,y:()=>o});var n=r(49236),a={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};a.bg=a.backgroundColor;var o=(0,n.qU)(a);let i=o},49236:(e,t,r)=>{r.d(t,{Cp:()=>d,Jt:()=>u,Zz:()=>g,oK:()=>f,qU:()=>m});var n=r(45228),a=r.n(n),o=function(e,t){var r,n=a()({},e,t);for(var o in e)e[o]&&"object"==typeof t[o]&&a()(n,((r={})[o]=a()(e[o],t[o]),r));return n},i=function(e){var t={};return Object.keys(e).sort(function(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})}).forEach(function(r){t[r]=e[r]}),t},s={breakpoints:[40,52,64].map(function(e){return e+"em"})},l=function(e){return"@media screen and (min-width: "+e+")"},c=function(e,t){return u(t,e,e)},u=function(e,t,r,n,a){for(n=0,t=t&&t.split?t.split("."):[t];n1&&c.forEach(function(r){var a;n[r]=e(((a={})[r]=t[r],a))}),n},h=function(e,t,r,n,o){var i={};return n.slice(0,e.length).forEach(function(n,s){var l,c=e[s],u=t(n,r,o);c?a()(i,((l={})[c]=a()({},i[c],u),l)):a()(i,u)}),i},p=function(e,t,r,n,o){var i={};for(var s in n){var c=e[s],u=t(n[s],r,o);if(c){var d,h=l(c);a()(i,((d={})[h]=a()({},i[h],u),d))}else a()(i,u)}return i},f=function(e){var t=e.properties,r=e.property,n=e.scale,a=e.transform,o=void 0===a?c:a,i=e.defaultScale;t=t||[r];var s=function(e,r,n){var a={},i=o(e,r,n);if(null!==i)return t.forEach(function(e){a[e]=i}),a};return s.scale=n,s.defaults=i,s},m=function(e){void 0===e&&(e={});var t={};return Object.keys(e).forEach(function(r){var n=e[r];if(!0===n){t[r]=f({property:r,scale:r});return}if("function"==typeof n){t[r]=n;return}t[r]=f(n)}),d(t)},g=function(){for(var e={},t=arguments.length,r=Array(t),n=0;n{function n(){return(n=Object.assign||function(e){for(var t=1;th});var a=function(e,t,r,n,a){for(n=0,t=t&&t.split?t.split("."):[t];n=0)return a(e,t,t);var r=Math.abs(t),n=a(e,r,r);return"string"==typeof n?"-"+n:-1*n},d=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce(function(e,t){var r;return n({},e,((r={})[t]=u,r))},{});let h=function e(t){return function(r){void 0===r&&(r={});var u,h=n({},i,{},r.theme||r),p={},f=(u="function"==typeof t?t(h):t,function(e){var t={},r=[null].concat(a(e,"breakpoints",o).map(function(e){return"@media screen and (min-width: "+e+")"}));for(var n in u){var i="function"==typeof u[n]?u[n](e):u[n];if(null!=i){if(!Array.isArray(i)){t[n]=i;continue}for(var s=0;s{r.d(t,{A:()=>a,p:()=>n});var n=(0,r(49236).qU)({alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0});let a=n},96069:(e,t,r)=>{r.d(t,{A:()=>s,V:()=>i});var n=r(49236),a={space:[0,4,8,16,32,64,128,256,512]},o={gridGap:{property:"gridGap",scale:"space",defaultScale:a.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:a.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:a.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},i=(0,n.qU)(o);let s=i},75447:(e,t,r)=>{r.d(t,{A:()=>o,Z:()=>a});var n=r(49236),a=(0,n.qU)({width:{property:"width",scale:"sizes",transform:function(e,t){return(0,n.Jt)(t,e,!("number"==typeof e&&!isNaN(e))||e>1?e:100*e+"%")}},height:{property:"height",scale:"sizes"},minWidth:{property:"minWidth",scale:"sizes"},minHeight:{property:"minHeight",scale:"sizes"},maxWidth:{property:"maxWidth",scale:"sizes"},maxHeight:{property:"maxHeight",scale:"sizes"},size:{properties:["width","height"],scale:"sizes"},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0});let o=a},59756:(e,t,r)=>{r.d(t,{A:()=>s,G:()=>i});var n=r(49236),a={space:[0,4,8,16,32,64,128,256,512]},o={position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:a.space},right:{property:"right",scale:"space",defaultScale:a.space},bottom:{property:"bottom",scale:"space",defaultScale:a.space},left:{property:"left",scale:"space",defaultScale:a.space}},i=(0,n.qU)(o);let s=i},83317:(e,t,r)=>{r.d(t,{c:()=>o});var n=r(57304),a=RegExp("^("+(0,n.Zz)(n.xe,n.Il,n.yW,n.Zp,n.pn,n.PQ,n.Tp,n.G1,n.Vg,n.r7,n.i9,n.XC,n.NW).propNames.join("|")+")$"),o=function(e){var t={};for(var r in e)a.test(r)||(t[r]=e[r]);return t}},42049:(e,t,r)=>{r.d(t,{r:()=>n});var n=(0,r(49236).qU)({boxShadow:{property:"boxShadow",scale:"shadows"},textShadow:{property:"textShadow",scale:"shadows"}})},89165:(e,t,r)=>{r.d(t,{xe:()=>u});var n=r(49236),a={space:[0,4,8,16,32,64,128,256,512]},o=function(e){return"number"==typeof e&&!isNaN(e)},i=function(e,t){if(!o(e))return(0,n.Jt)(t,e,e);var r=e<0,a=Math.abs(e),i=(0,n.Jt)(t,a,a);return o(i)?i*(r?-1:1):r?"-"+i:i},s={};s.margin={margin:{property:"margin",scale:"space",transform:i,defaultScale:a.space},marginTop:{property:"marginTop",scale:"space",transform:i,defaultScale:a.space},marginRight:{property:"marginRight",scale:"space",transform:i,defaultScale:a.space},marginBottom:{property:"marginBottom",scale:"space",transform:i,defaultScale:a.space},marginLeft:{property:"marginLeft",scale:"space",transform:i,defaultScale:a.space},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:i,defaultScale:a.space},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:i,defaultScale:a.space}},s.margin.m=s.margin.margin,s.margin.mt=s.margin.marginTop,s.margin.mr=s.margin.marginRight,s.margin.mb=s.margin.marginBottom,s.margin.ml=s.margin.marginLeft,s.margin.mx=s.margin.marginX,s.margin.my=s.margin.marginY,s.padding={padding:{property:"padding",scale:"space",defaultScale:a.space},paddingTop:{property:"paddingTop",scale:"space",defaultScale:a.space},paddingRight:{property:"paddingRight",scale:"space",defaultScale:a.space},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:a.space},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:a.space},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:a.space},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:a.space}},s.padding.p=s.padding.padding,s.padding.pt=s.padding.paddingTop,s.padding.pr=s.padding.paddingRight,s.padding.pb=s.padding.paddingBottom,s.padding.pl=s.padding.paddingLeft,s.padding.px=s.padding.paddingX,s.padding.py=s.padding.paddingY;var l=(0,n.qU)(s.margin),c=(0,n.qU)(s.padding),u=(0,n.Zz)(l,c)},57227:(e,t,r)=>{r.d(t,{y:()=>a});var n=r(49236),a=function(e,t){return void 0===t&&(t=null),function(r){return(0,n.Jt)(r.theme,e,t)}}},3962:(e,t,r)=>{r.d(t,{A:()=>a,I:()=>n});var n=(0,r(49236).qU)({fontFamily:{property:"fontFamily",scale:"fonts"},fontSize:{property:"fontSize",scale:"fontSizes",defaultScale:[12,14,16,20,24,32,48,64,72]},fontWeight:{property:"fontWeight",scale:"fontWeights"},lineHeight:{property:"lineHeight",scale:"lineHeights"},letterSpacing:{property:"letterSpacing",scale:"letterSpacings"},textAlign:!0,fontStyle:!0});let a=n},38144:(e,t,r)=>{r.d(t,{NW:()=>l,Ox:()=>o,XC:()=>s,i9:()=>i});var n=r(49236),a=r(50402),o=function(e){var t,r,o=e.scale,i=e.prop,s=e.variants,l=void 0===s?{}:s,c=e.key;(r=Object.keys(l).length?function(e,t,r){return(0,a.Ay)((0,n.Jt)(t,e,null))(r.theme)}:function(e,t){return(0,n.Jt)(t,e,null)}).scale=o||c,r.defaults=l;var u=((t={})[void 0===i?"variant":i]=r,t);return(0,n.Cp)(u)},i=o({key:"buttons"}),s=o({key:"textStyles",prop:"textStyle"}),l=o({key:"colorStyles",prop:"colors"})},84976:(e,t,r)=>{r.d(t,{Gy:()=>P,K:()=>T,N_:()=>A,PI:()=>p,Ys:()=>g,k2:()=>k,ok:()=>j,pg:()=>R});var n,a,o,i,s=r(96540),l=r(40961),c=r(47767),u=r(45588);/** * React Router DOM v6.28.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[r]=e[r]);return a}function p(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||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(e=>[r,e]):[[r,n]])},[]))}let f=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],m=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"];try{window.__reactRouterVersion="6"}catch(e){}function g(e,t){var r;let n;return(0,u.aE)({basename:null==t?void 0:t.basename,future:d({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,u.zR)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||((n=null==(r=window)?void 0:r.__staticRouterHydrationData)&&n.errors&&(n=d({},n,{errors:function(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new u.VV(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}(n.errors)})),n),routes:e,mapRouteProperties:c.wE,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}let v=s.createContext({isTransitioning:!1}),y=s.createContext(new Map),b=(n||(n=r.t(s,2))).startTransition,w=(a||(a=r.t(l,2))).flushSync;function S(e){w?w(e):e()}(n||(n=r.t(s,2))).useId;let Deferred=class Deferred{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}};function R(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=s.useState(r.state),[i,l]=s.useState(),[u,d]=s.useState({isTransitioning:!1}),[h,p]=s.useState(),[f,m]=s.useState(),[g,w]=s.useState(),R=s.useRef(new Map),{v7_startTransition:x}=n||{},C=s.useCallback(e=>{x&&b?b(e):e()},[x]),A=s.useCallback((e,t)=>{let{deletedFetchers:n,flushSync:a,viewTransitionOpts:i}=t;n.forEach(e=>R.current.delete(e)),e.fetchers.forEach((e,t)=>{void 0!==e.data&&R.current.set(t,e.data)});let s=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(!i||s){a?S(()=>o(e)):C(()=>o(e));return}if(a){S(()=>{f&&(h&&h.resolve(),f.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=r.window.document.startViewTransition(()=>{S(()=>o(e))});t.finished.finally(()=>{S(()=>{p(void 0),m(void 0),l(void 0),d({isTransitioning:!1})})}),S(()=>m(t));return}f?(h&&h.resolve(),f.skipTransition(),w({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(l(e),d({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))},[r.window,f,h,R,C]);s.useLayoutEffect(()=>r.subscribe(A),[r,A]),s.useEffect(()=>{u.isTransitioning&&!u.flushSync&&p(new Deferred)},[u]),s.useEffect(()=>{if(h&&i&&r.window){let e=h.promise,t=r.window.document.startViewTransition(async()=>{C(()=>o(i)),await e});t.finished.finally(()=>{p(void 0),m(void 0),l(void 0),d({isTransitioning:!1})}),m(t)}},[C,i,h,r.window]),s.useEffect(()=>{h&&i&&a.location.key===i.location.key&&h.resolve()},[h,f,a.location,i]),s.useEffect(()=>{!u.isTransitioning&&g&&(l(g.state),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),w(void 0))},[u.isTransitioning,g]),s.useEffect(()=>{},[]);let k=s.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),P=r.basename||"/",j=s.useMemo(()=>({router:r,navigator:k,static:!1,basename:P}),[r,k,P]),T=s.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return s.useEffect(()=>(0,c.V8)(n,r.future),[n,r.future]),s.createElement(s.Fragment,null,s.createElement(c.sp.Provider,{value:j},s.createElement(c.Rq.Provider,{value:a},s.createElement(y.Provider,{value:R.current},s.createElement(v.Provider,{value:u},s.createElement(c.Ix,{basename:P,location:a.location,navigationType:a.historyAction,navigator:k,future:T},a.initialized||r.future.v7_partialHydration?s.createElement(E,{routes:r.routes,future:r.future,state:a}):t))))),null)}let E=s.memo(function(e){let{routes:t,future:r,state:n}=e;return(0,c.ph)(t,void 0,n,r)}),x="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,C=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,A=s.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:p,to:m,preventScrollReset:g,viewTransition:v}=e,y=h(e,f),{basename:b}=s.useContext(c.jb),w=!1;if("string"==typeof m&&C.test(m)&&(r=m,x))try{let e=new URL(window.location.href),t=new URL(m.startsWith("//")?e.protocol+m:m),r=(0,u.pb)(t.pathname,b);t.origin===e.origin&&null!=r?m=r+t.search+t.hash:w=!0}catch(e){}let S=(0,c.$P)(m,{relative:a}),R=P(m,{replace:i,state:l,target:p,preventScrollReset:g,relative:a,viewTransition:v});return s.createElement("a",d({},y,{href:r||S,onClick:w||o?n:function(e){n&&n(e),e.defaultPrevented||R(e)},ref:t,target:p}))}),k=s.forwardRef(function(e,t){let r,{"aria-current":n="page",caseSensitive:a=!1,className:i="",end:l=!1,style:p,to:f,viewTransition:g,children:y}=e,b=h(e,m),w=(0,c.x$)(f,{relative:b.relative}),S=(0,c.zy)(),R=s.useContext(c.Rq),{navigator:E,basename:x}=s.useContext(c.jb),C=null!=R&&function(e,t){var r;let n;void 0===t&&(t={});let a=s.useContext(v);null!=a||(0,u.Oi)(!1);let{basename:i}=(r=o.useViewTransitionState,(n=s.useContext(c.sp))||(0,u.Oi)(!1),n),l=(0,c.x$)(e,{relative:t.relative});if(!a.isTransitioning)return!1;let d=(0,u.pb)(a.currentLocation.pathname,i)||a.currentLocation.pathname,h=(0,u.pb)(a.nextLocation.pathname,i)||a.nextLocation.pathname;return null!=(0,u.B6)(l.pathname,h)||null!=(0,u.B6)(l.pathname,d)}(w)&&!0===g,k=E.encodeLocation?E.encodeLocation(w).pathname:w.pathname,P=S.pathname,j=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;a||(P=P.toLowerCase(),j=j?j.toLowerCase():null,k=k.toLowerCase()),j&&x&&(j=(0,u.pb)(j,x)||j);let T="/"!==k&&k.endsWith("/")?k.length-1:k.length,L=P===k||!l&&P.startsWith(k)&&"/"===P.charAt(T),N=null!=j&&(j===k||!l&&j.startsWith(k)&&"/"===j.charAt(k.length)),D={isActive:L,isPending:N,isTransitioning:C},_=L?n:void 0;r="function"==typeof i?i(D):[i,L?"active":null,N?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let O="function"==typeof p?p(D):p;return s.createElement(A,d({},b,{"aria-current":_,className:r,ref:t,style:O,to:f,viewTransition:g}),"function"==typeof y?y(D):y)});function P(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:l}=void 0===t?{}:t,d=(0,c.Zp)(),h=(0,c.zy)(),p=(0,c.x$)(e,{relative:i});return s.useCallback(t=>{0!==t.button||r&&"_self"!==r||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),d(e,{replace:void 0!==n?n:(0,u.AO)(h)===(0,u.AO)(p),state:a,preventScrollReset:o,relative:i,viewTransition:l}))},[h,d,p,n,a,r,e,o,i,l])}function j(e){let t=s.useRef(p(e)),r=s.useRef(!1),n=(0,c.zy)(),a=s.useMemo(()=>{var e,a;let o;return e=n.search,a=r.current?null:t.current,o=p(e),a&&a.forEach((e,t)=>{o.has(t)||a.getAll(t).forEach(e=>{o.append(t,e)})}),o},[n.search]),o=(0,c.Zp)(),i=s.useCallback((e,t)=>{let n=p("function"==typeof e?e(a):e);r.current=!0,o("?"+n,t)},[o,a]);return[a,i]}!function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"}(o||(o={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(i||(i={}));function T(e,t){let{capture:r}=t||{};s.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,r])}},47767:(e,t,r)=>{r.d(t,{$P:()=>p,BV:()=>$,C5:()=>W,Ix:()=>F,KP:()=>O,LG:()=>N,RQ:()=>g,Rq:()=>l,V8:()=>z,Ye:()=>R,Zp:()=>y,cq:()=>L,g:()=>w,jb:()=>c,ph:()=>E,qh:()=>H,r5:()=>D,sp:()=>s,sv:()=>U,wE:()=>G,x$:()=>S,zy:()=>m});var n,a=r(96540),o=r(45588);/** * React Router v6.28.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t(0,o.B6)(e,(0,o.RO)(t)),[t,e])}function v(e){a.useContext(c).static||a.useLayoutEffect(e)}function y(){let{isDataRoute:e}=a.useContext(d);return e?function(){let{router:e}=P(A.UseNavigateStable),t=T(k.UseNavigateStable),r=a.useRef(!1);return v(()=>{r.current=!0}),a.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,i({fromRouteId:t},a)))},[e,t])}():function(){f()||(0,o.Oi)(!1);let e=a.useContext(s),{basename:t,future:r,navigator:n}=a.useContext(c),{matches:i}=a.useContext(d),{pathname:l}=m(),u=JSON.stringify((0,o.yD)(i,r.v7_relativeSplatPath)),h=a.useRef(!1);return v(()=>{h.current=!0}),a.useCallback(function(r,a){if(void 0===a&&(a={}),!h.current)return;if("number"==typeof r){n.go(r);return}let i=(0,o.Gh)(r,JSON.parse(u),l,"path"===a.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:(0,o.HS)([t,i.pathname])),(a.replace?n.replace:n.push)(i,a.state,a)},[t,n,u,l,e])}()}let b=a.createContext(null);function w(){let{matches:e}=a.useContext(d),t=e[e.length-1];return t?t.params:{}}function S(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=a.useContext(c),{matches:i}=a.useContext(d),{pathname:s}=m(),l=JSON.stringify((0,o.yD)(i,n.v7_relativeSplatPath));return a.useMemo(()=>(0,o.Gh)(e,JSON.parse(l),s,"path"===r),[e,l,s,r])}function R(e,t){return E(e,t)}function E(e,t,r,n){let s;f()||(0,o.Oi)(!1);let{navigator:l}=a.useContext(c),{matches:h}=a.useContext(d),p=h[h.length-1],g=p?p.params:{};p&&p.pathname;let v=p?p.pathnameBase:"/";p&&p.route;let y=m();if(t){var b;let e="string"==typeof t?(0,o.Rr)(t):t;"/"===v||(null==(b=e.pathname)?void 0:b.startsWith(v))||(0,o.Oi)(!1),s=e}else s=y;let w=s.pathname||"/",S=w;if("/"!==v){let e=v.replace(/^\//,"").split("/");S="/"+w.replace(/^\//,"").split("/").slice(e.length).join("/")}let R=(0,o.ue)(e,{pathname:S}),E=function(e,t,r,n){var i,s;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(null==(s=n)||!s.v7_partialHydration||0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let l=e,c=null==(i=r)?void 0:i.errors;if(null!=c){let e=l.findIndex(e=>e.route.id&&(null==c?void 0:c[e.route.id])!==void 0);e>=0||(0,o.Oi)(!1),l=l.slice(0,Math.min(l.length,e+1))}let u=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e=0?l.slice(0,d+1):[l[0]];break}}}return l.reduceRight((e,n,o)=>{var i;let s;let h=!1,p=null,f=null;r&&(s=c&&n.route.id?c[n.route.id]:void 0,p=n.route.errorElement||x,u&&(d<0&&0===o?(I[i="route-fallback"]||(I[i]=!0),h=!0,f=null):d===o&&(h=!0,f=n.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,o+1)),g=()=>{let t;return t=s?p:h?f:n.route.Component?a.createElement(n.route.Component,null):n.route.element?n.route.element:e,a.createElement(C,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===o)?a.createElement(RenderErrorBoundary,{location:r.location,revalidation:r.revalidation,component:p,error:s,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}(R&&R.map(e=>Object.assign({},e,{params:Object.assign({},g,e.params),pathname:(0,o.HS)([v,l.encodeLocation?l.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?v:(0,o.HS)([v,l.encodeLocation?l.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),h,r,n);return t&&E?a.createElement(u.Provider,{value:{location:i({pathname:"/",search:"",hash:"",state:null,key:"default"},s),navigationType:o.rc.Pop}},E):E}let x=a.createElement(function(){let e=D(),t=(0,o.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),r?a.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)},null);let RenderErrorBoundary=class RenderErrorBoundary extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?a.createElement(d.Provider,{value:this.props.routeContext},a.createElement(h.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function C(e){let{routeContext:t,match:r,children:n}=e,o=a.useContext(s);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),a.createElement(d.Provider,{value:t},n)}var A=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(A||{}),k=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}(k||{});function P(e){let t=a.useContext(s);return t||(0,o.Oi)(!1),t}function j(e){let t=a.useContext(l);return t||(0,o.Oi)(!1),t}function T(e){let t;let r=((t=a.useContext(d))||(0,o.Oi)(!1),t),n=r.matches[r.matches.length-1];return n.route.id||(0,o.Oi)(!1),n.route.id}function L(){return j(k.UseNavigation).navigation}function N(){let e=j(k.UseLoaderData),t=T(k.UseLoaderData);if(e.errors&&null!=e.errors[t]){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function D(){var e;let t=a.useContext(h),r=j(k.UseRouteError),n=T(k.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}let _=0;function O(e){let{router:t,basename:r}=P(A.UseBlocker),n=j(k.UseBlocker),[s,l]=a.useState(""),c=a.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:s}=t;return e({currentLocation:i({},n,{pathname:(0,o.pb)(n.pathname,r)||n.pathname}),nextLocation:i({},a,{pathname:(0,o.pb)(a.pathname,r)||a.pathname}),historyAction:s})},[r,e]);return a.useEffect(()=>{let e=String(++_);return l(e),()=>t.deleteBlocker(e)},[t]),a.useEffect(()=>{""!==s&&t.getBlocker(s,c)},[t,s,c]),s&&n.blockers.has(s)?n.blockers.get(s):o.G3}let I={},M={},B=(e,t,r)=>(function(e,t){M[t]||(M[t]=!0,console.warn(t))})(0,"\u26A0\uFE0F React Router Future Flag Warning: "+t+". You can use the `"+e+"` future flag to opt-in early. For more information, see "+r+".");function z(e,t){null!=e&&e.v7_startTransition||B("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),null!=e&&e.v7_relativeSplatPath||t&&t.v7_relativeSplatPath||B("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist||B("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||B("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||B("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||B("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function W(e){let{to:t,replace:r,state:n,relative:i}=e;f()||(0,o.Oi)(!1);let{future:s,static:l}=a.useContext(c),{matches:u}=a.useContext(d),{pathname:h}=m(),p=y(),g=JSON.stringify((0,o.Gh)(t,(0,o.yD)(u,s.v7_relativeSplatPath),h,"path"===i));return a.useEffect(()=>p(JSON.parse(g),{replace:r,state:n,relative:i}),[p,g,i,r,n]),null}function U(e){var t;let r;return t=e.context,(r=a.useContext(d).outlet)?a.createElement(b.Provider,{value:t},r):r}function H(e){(0,o.Oi)(!1)}function F(e){let{basename:t="/",children:r=null,location:n,navigationType:s=o.rc.Pop,navigator:l,static:d=!1,future:h}=e;f()&&(0,o.Oi)(!1);let p=t.replace(/^\/*/,"/"),m=a.useMemo(()=>({basename:p,navigator:l,static:d,future:i({v7_relativeSplatPath:!1},h)}),[p,h,l,d]);"string"==typeof n&&(n=(0,o.Rr)(n));let{pathname:g="/",search:v="",hash:y="",state:b=null,key:w="default"}=n,S=a.useMemo(()=>{let e=(0,o.pb)(g,p);return null==e?null:{location:{pathname:e,search:v,hash:y,state:b,key:w},navigationType:s}},[p,g,v,y,b,w,s]);return null==S?null:a.createElement(c.Provider,{value:m},a.createElement(u.Provider,{children:r,value:S}))}function $(e){let{children:t,location:r}=e;return E(function e(t,r){void 0===r&&(r=[]);let n=[];return a.Children.forEach(t,(t,i)=>{if(!a.isValidElement(t))return;let s=[...r,i];if(t.type===a.Fragment){n.push.apply(n,e(t.props.children,s));return}t.type!==H&&(0,o.Oi)(!1),t.props.index&&t.props.children&&(0,o.Oi)(!1);let l={id:t.props.id||s.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(l.children=e(t.props.children,s)),n.push(l)}),n}(t),r)}(n||(n=r.t(a,2))).startTransition;var q=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(q||{});function G(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:a.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:a.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:a.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}new Promise(()=>{}),a.Component},38267:(e,t,r)=>{r.d(t,{AH:()=>em,Ay:()=>eT,DU:()=>eP,Dx:()=>eE,NP:()=>ex,i7:()=>ej});var n=r(44363),a=r(96540),o=r(2833),i=r.n(o),s=r(8887),l=r(17103),c=r(15455),u=r(4146),d=r.n(u);function h(){return(h=Object.assign||function(e){for(var t=1;t1?t-1:0),n=1;n0?" Args: "+r.join(", "):""))}var x=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,a=n;e>=a;)(a<<=1)<0&&E(16,""+e);this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var o=n;o=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),a=n+r,o=n;o=k&&(k=t+1),C.set(e,t),A.set(t,e)},T="style["+w+'][data-styled-version="5.3.11"]',L=RegExp("^"+w+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),N=function(e,t,r){for(var n,a=r.split(","),o=0,i=a.length;o=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(w))return n}}(r),o=void 0!==a?a.nextSibling:null;n.setAttribute(w,"active"),n.setAttribute("data-styled-version","5.3.11");var i=_();return i&&n.setAttribute("nonce",i),r.insertBefore(n,o),n},I=function(){function e(e){var t=this.element=O(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(u+=e+",")}),n+=""+l+c+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),H=/(a)(d)/gi,F=function(e){return String.fromCharCode(e+(e>25?39:97))};function $(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=F(t%52)+r;return(F(t%52)+r).replace(H,"$1-$2")}var q=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},G=function(e){return q(5381,e)};function V(e){for(var t=0;t>>0);if(!t.hasNameForId(n,i)){var s=r(o,"."+i,void 0,n);t.insertRules(n,i,s)}a.push(i),this.staticRulesId=i}}else{for(var l=this.rules.length,c=q(this.baseHash,r.hash),u="",d=0;d>>0);if(!t.hasNameForId(n,m)){var g=r(u,"."+m,void 0,n);t.insertRules(n,m,g)}a.push(m)}}return a.join(" ")},e}(),J=/^\s*\/\/.*$/gm,K=[":","[",".","#"];function Z(e){var t,r,n,a,o=void 0===e?g:e,i=o.options,l=void 0===i?g:i,c=o.plugins,u=void 0===c?m:c,d=new s.A(l),h=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,a,o,i,s,l,c,u,d){switch(r){case 1:if(0===u&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(a[0]+n),"";default:return n+(0===d?"/*|*/":"")}case -2:n.split("/*|*/}").forEach(t)}}}(function(e){h.push(e)}),f=function(e,n,o){return 0===n&&-1!==K.indexOf(o[r.length])||o.match(a)?e:"."+t};function v(e,o,i,s){void 0===s&&(s="&");var l=e.replace(J,""),c=o&&i?i+" "+o+" { "+l+" }":l;return t=s,n=RegExp("\\"+(r=o)+"\\b","g"),a=RegExp("(\\"+r+"\\b){2,}"),d(i||!o?"":o,c)}return d.use([].concat(u,[function(e,t,a){2===e&&a.length&&a[0].lastIndexOf(r)>0&&(a[0]=a[0].replace(n,f))},p,function(e){if(-2===e){var t=h;return h=[],t}}])),v.hash=u.length?u.reduce(function(e,t){return t.name||E(15),q(e,t.name)},5381).toString():"",v}var Q=a.createContext(),ee=(Q.Consumer,a.createContext()),et=(ee.Consumer,new U),er=Z();function en(){return(0,a.useContext)(Q)||et}function ea(){return(0,a.useContext)(ee)||er}function eo(e){var t=(0,a.useState)(e.stylisPlugins),r=t[0],n=t[1],o=en(),s=(0,a.useMemo)(function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target]),l=(0,a.useMemo)(function(){return Z({options:{prefix:!e.disableVendorPrefixes},plugins:r})},[e.disableVendorPrefixes,r]);return(0,a.useEffect)(function(){i()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]),a.createElement(Q.Provider,{value:s},a.createElement(ee.Provider,{value:l},e.children))}var ei=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=er);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return E(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=er),this.name+e.hash},e}(),es=/([A-Z])/,el=/([A-Z])/g,ec=/^ms-/,eu=function(e){return"-"+e.toLowerCase()};function ed(e){return es.test(e)?e.replace(el,eu).replace(ec,"-ms-"):e}var eh=function(e){return null==e||!1===e||""===e};function ep(e,t,r,n){if(Array.isArray(e)){for(var a,o=[],i=0,s=e.length;i1?t-1:0),n=1;n?@[\\\]^`{|}~-]+/g,ey=/(^-|-$)/g;function eb(e){return e.replace(ev,"-").replace(ey,"")}var ew=function(e){return $(G(e)>>>0)};function eS(e){return"string"==typeof e}var eR=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},eE=a.createContext();function ex(e){var t=(0,a.useContext)(eE),r=(0,a.useMemo)(function(){var r;return(r=e.theme)?v(r)?r(t):Array.isArray(r)||"object"!=typeof r?E(8):t?h({},t,{},r):r:E(14)},[e.theme,t]);return e.children?a.createElement(eE.Provider,{value:r},e.children):null}eE.Consumer;var eC={},eA=function(e){return function e(t,r,a){if(void 0===a&&(a=g),!(0,n.isValidElementType)(r))return E(1,String(r));var o=function(){return t(r,a,em.apply(void 0,arguments))};return o.withConfig=function(n){return e(t,r,h({},a,{},n))},o.attrs=function(n){return e(t,r,h({},a,{attrs:Array.prototype.concat(a.attrs,n).filter(Boolean)}))},o}(function e(t,r,n){var o=b(t),i=!eS(t),s=r.attrs,l=void 0===s?m:s,u=r.componentId,p=void 0===u?(x=r.displayName,C=r.parentComponentId,eC[A="string"!=typeof x?"sc":eb(x)]=(eC[A]||0)+1,k=A+"-"+ew("5.3.11"+A+eC[A]),C?C+"-"+k:k):u,f=r.displayName,w=void 0===f?eS(t)?"styled."+t:"Styled("+y(t)+")":f,S=r.displayName&&r.componentId?eb(r.displayName)+"-"+r.componentId:r.componentId||p,R=o&&t.attrs?Array.prototype.concat(t.attrs,l).filter(Boolean):l,E=r.shouldForwardProp;o&&t.shouldForwardProp&&(E=r.shouldForwardProp?function(e,n,a){return t.shouldForwardProp(e,n,a)&&r.shouldForwardProp(e,n,a)}:t.shouldForwardProp);var x,C,A,k,P,j=new Y(n,S,o?t.componentStyle:void 0),T=j.isStatic&&0===l.length,L=function(e,t){return function(e,t,r,n){var o,i,s,l,u,d=e.attrs,p=e.componentStyle,f=e.defaultProps,m=e.foldedComponentIds,y=e.shouldForwardProp,b=e.styledComponentId,w=e.target,S=(void 0===(o=eg(t,(0,a.useContext)(eE),f)||g)&&(o=g),i=h({},t,{theme:o}),s={},d.forEach(function(e){var t,r,n,a=e;for(t in v(a)&&(a=a(i)),a)i[t]=s[t]="className"===t?(r=s[t],n=a[t],r&&n?r+" "+n:r||n):a[t]}),[i,s]),R=S[0],E=S[1],x=(l=en(),u=ea(),n?p.generateAndInjectStyles(g,l,u):p.generateAndInjectStyles(R,l,u)),C=E.$as||t.$as||E.as||t.as||w,A=eS(C),k=E!==t?h({},t,{},E):t,P={};for(var j in k)"$"!==j[0]&&"as"!==j&&("forwardedAs"===j?P.as=k[j]:(y?y(j,c.A,C):!A||(0,c.A)(j))&&(P[j]=k[j]));return t.style&&E.style!==t.style&&(P.style=h({},t.style,{},E.style)),P.className=Array.prototype.concat(m,b,x!==b?x:null,t.className,E.className).filter(Boolean).join(" "),P.ref=r,(0,a.createElement)(C,P)}(P,e,t,T)};return L.displayName=w,(P=a.forwardRef(L)).attrs=R,P.componentStyle=j,P.displayName=w,P.shouldForwardProp=E,P.foldedComponentIds=o?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):m,P.styledComponentId=S,P.target=o?t.target:t,P.withComponent=function(t){var a=r.componentId,o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n=0||(a[r]=e[r]);return a}(r,["componentId"]),i=a&&a+"-"+(eS(t)?t:eb(y(t)));return e(t,h({},o,{attrs:R,componentId:i}),n)},Object.defineProperty(P,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a2&&U.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function eP(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n1?t-1:0),n=1;n"+t+""},this.getStyleTags=function(){return e.sealed?E(2):e._emitSheetCSS()},this.getStyleElement=function(){if(e.sealed)return E(2);var t,r=((t={})[w]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=_();return n&&(r.nonce=n),[a.createElement("style",h({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new U({isServer:!0}),this.sealed=!1}).prototype;e.collectStyles=function(e){return this.sealed?E(2):a.createElement(eo,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return E(3)}}();let eT=eA},92812:(e,t,r)=>{r.d(t,{B:()=>n});let n=(0,r(96540).createContext)(null)},26009:(e,t,r)=>{r.d(t,{E:()=>n});var n=function(e){return e.FETCH_THEN_TRANSITION="fetch-then-transition",e.TRANSITION_WHILE_FETCHING="transition-while-fetch",e.TRANSITION_WITHOUT_FETCH="transition-without-fetch",e}({})},51261:(e,t,r)=>{r.d(t,{z:()=>a});var n=r(45588);function a(e={}){let t;let r=(0,n.zR)({...e,v5Compat:!0}),o=[],i=!1;function s(e){if(o.length>0)for(let t of o)t({retry(){e()}});else e()}return r.listen(e=>{if(i){i=!1;return}if(e.action===n.rc.Pop&&o.length&&null!==e.delta&&o.length>0){let t=e.delta;for(let e of(i=!0,r.go(-1*t),o))e({retry(){r.go(t)}})}else t?.(e)}),{get action(){return r.action},get location(){return r.location},createHref:e=>r.createHref(e),createURL:e=>r.createURL(e),encodeLocation:e=>r.encodeLocation(e),push(e,t){s(()=>r.push(e,t))},replace(e,t){s(()=>r.replace(e,t))},go(e){s(()=>r.go(e))},listen(e){if(t)throw Error("A history only accepts one active listener");return t=e,()=>{t=void 0}},block:e=>(o.push(e),()=>{o=o.filter(t=>t!==e)})}}},92536:(e,t,r)=>{r.d(t,{R:()=>DeferredRegistry});var n=r(24620);function a(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function o(e,t){var r=a(e,t,"get");return r.get?r.get.call(e):r.value}var i=new WeakMap;let DeferredRegistry=class DeferredRegistry{register(e,t){let r=o(this,i).get(e);if(r)r.resolve(t);else{let r=(0,n.Y)();r.resolve(t),o(this,i).set(e,r)}}getRegistration(e){let t=o(this,i).get(e);if(t)return t;let r=(0,n.Y)();return o(this,i).set(e,r),r}constructor(){!function(e,t,r){(function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}(this,i,{writable:!0,value:void 0}),function(e,t,r){var n=a(e,t,"set");!function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=r}}(e,n,r)}(this,i,new Map)}}},79461:(e,t,r)=>{r.d(t,{z:()=>n});let n={"Workers not ready":"Alloy is warming its workers. This is expected during deploys and should resolve shortly."}},96646:(e,t,r)=>{r.d(t,{$:()=>DataRouterApplicationBuilder});var n=r(56725),a=r(97156),o=r(31993),i=r(45588),s=r(32389),l=r(15363);let c=new WeakSet;function u(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var d=new WeakMap;let DataRouterApplication=class DataRouterApplication{registration(){var e;return{routes:(e=u(this,d,"get")).get?e.get.call(this):e.value}}constructor(e,t){!function(e,t,r){(function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}(this,d,{writable:!0,value:void 0}),this.name=e,function(e,t,r){var n=u(e,t,"set");!function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=r}}(e,n,r)}(this,d,t),this.registration=this.registration.bind(this)}};let DataRouterApplicationBuilder=class DataRouterApplicationBuilder{createQueryRoute(e){return e.index,function(e,t){let{queries:r,Component:u,...d}=t;return{...d,Component:u,loader:async({request:u,params:h})=>{c.has(u)||((0,n.SC)("react"),c.add(u));let p=[],{searchParams:f}=new URL(u.url,a.fV.origin),m=(0,i.tW)(d.path,h),g=Object.entries(r).map(([t,{queryFn:r,queryDeps:n,type:a,...i}])=>{let c=n({path:m,params:h,searchParams:f}),u=(0,o.j)({queryKey:function({appName:e,route:{path:t,index:r=!1},queryName:n,queryDeps:a}){return[e,{path:t,index:r},n,a]}({appName:e,route:{path:d.path,index:d.index},queryName:t.toString(),queryDeps:c}),queryFn:({signal:e,meta:t})=>r(c,{signal:e,meta:t}),...i});switch(a){case l.E.Blocking:{let e=(0,s.S)().fetchQuery(u);p.push(e);break}case l.E.DeferredWithPrefetch:(0,s.S)().prefetchQuery(u)}return[t,{queryConfig:u,type:a}]});return await Promise.all(p),{route:t,queries:Object.fromEntries(g)}},isSameRoute:e=>Object.is(t,e)}}(this.name,e)}createDataRouterAppFromRoutes(e){return new DataRouterApplication(this.name,e)}static create(e){return new DataRouterApplicationBuilder(e)}constructor(e){this.name=e}}},15363:(e,t,r)=>{r.d(t,{E:()=>n});let n={Blocking:"Blocking",DeferredWithPrefetch:"DeferredWithPrefetch",DeferredWithoutPrefetch:"DeferredWithoutPrefetch"}},92425:(e,t,r)=>{r.d(t,{L:()=>o});var n=r(47767),a=r(73231);function o(e){return(0,a.B1)(e),(0,n.g)()}},73231:(e,t,r)=>{r.d(t,{B1:()=>o,xX:()=>i});var n=r(97286),a=r(47767);function o(e){let{route:t,queries:r}=(0,a.LG)();if(!e.isSameRoute(t))throw Error("invalid route check");return r}function i(e,t,r){if("string"!=typeof t)throw Error("queryName must be a string");let{queryConfig:a}=o(e)[t];return{...(0,n.I)({...a,...r}),queryKey:a.queryKey}}},86864:(e,t,r)=>{r.d(t,{Y:()=>a});var n=r(96540);function a(e){return Object.assign((0,n.lazy)(e),{preload:async()=>{await e()}})}},99523:(e,t,r)=>{r.d(t,{V:()=>n});let n="__gh__react-core-preventAutofocus"},32389:(e,t,r)=>{let n;r.d(t,{S:()=>s});var a=r(97156),o=r(65490);function i(){return new o.E({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1,networkMode:"always"},mutations:{networkMode:"always"}}})}function s(){return a.X3?i():n??(n=i())}},75014:(e,t,r)=>{r.d(t,{Mm:()=>o,QJ:()=>i,b3:()=>a});var n=r(96540);function a(e){let t=e?.anchor;if(!t)return{};let r=t.getAttribute("data-inital-disabled")?.toLowerCase()==="true";return"disabled"in t&&(t.disabled=r),t.classList.remove("cursor-wait"),{reactPartialAnchor:{__wrapperElement:e}}}function o(e){let t=(0,n.useRef)(e.__wrapperElement.anchor||null),[r,a]=(0,n.useState)(!1),o=(0,n.useCallback)(()=>{a(!r)},[r,a]);return(0,n.useEffect)(()=>{t.current&&(t.current.setAttribute("aria-expanded",r.toString()),t.current.setAttribute("aria-haspopup","true"))},[t,r]),i(e,o),{ref:t,open:r,setOpen:a}}function i(e,t){let r=(0,n.useRef)(e.__wrapperElement.anchor);(0,n.useEffect)(()=>{let e=r.current;if(e)return e.addEventListener("click",t),()=>e.removeEventListener("click",t)},[r,t])}},50588:(e,t,r)=>{r.d(t,{w:()=>K,o:()=>J});let n=new(r(92536)).R;async function a(e){return n.getRegistration(e).promise}var o=r(74848),i=r(39595),s=r(84976),l=r(51261),c=r(51012),u=r(47767),d=r(79446),h=r(86451),p=r(39534),f=r(44196),m=r(96540),g=r(99523),v=r(56725),y=r(97156),b=r(45588),w=r(26009),S=r(60188);let R=(e,t)=>null!==e&&null!==t&&e.pathname===t.pathname&&e.search===t.search&&!!t.hash,E=e=>x(404===e.httpStatus?"404 Page not found":500===e.httpStatus?"500 Internal server error":e.httpStatus?`Error ${e.httpStatus}`:"Error");function x(e){return document.body.classList.contains("logged-out")?`${e} \xb7 GitHub`:e}let C=class Navigator{setAppNavigationStateCallback(e){this.appNavigationStateCallback=e}update(e){Object.assign(this.state,e);let t=this.getAppNavigationState();this.appNavigationStateCallback?.(t)}getAppNavigationState(){let{location:e,error:t,navigateOnError:r,routeStateMap:n,appPayload:a,pendingNavigation:o}=this.state;return{location:e,error:t,navigateOnError:r,routeStateMap:n,appPayload:a,isLoading:!!o}}async handleHistoryUpdate(e){if("POP"!==e.action||history.state?.turboCount===this.state.turboCount){if(this.isHashNavigation(e)){this.navigateWithCurrentPayload(e);return}if("POP"!==e.action&&(0,v.SC)("react"),void 0!==this.state.routeStateMap[e.location.key])this.navigateFromHistory(e);else{let t=this.matchLocation(e.location);if(!t)throw Error("handleHistoryUpdate should only be called for matching routes");if(t.route.transitionType===w.E.TRANSITION_WHILE_FETCHING&&this.navigateWithoutPayload(e),t.route.transitionType===w.E.TRANSITION_WITHOUT_FETCH){this.navigateWithoutPayload(e);return}let r=history.state?.usr?.__prefetched_data;if(r){this.leaveLoadingStateWithRouteData(e,r,r.title);return}this.enterLoadingState(e);let n=await t.route.coreLoader({location:e.location,pathParams:t.params});if(e.location!==this.state.pendingNavigation?.update.location)return;if(history.state&&"POP"!==e.action){let{turbo:e,...t}=history.state;history.replaceState({...t,skipTurbo:!0},"",location.href)}switch(n.type){case"loaded":this.leaveLoadingStateWithRouteData(e,n.data,n.title);break;case"error":this.leaveLoadingStateWithError(e,n.error,!1);break;case"redirect":window.location.replace(n.url+location.hash);break;case"route-handled-error":this.leaveLoadingStateWithError(e,n.error,!0);break;default:throw Error(`Unexpected loader result type: ${n.type}`)}}}}matchLocation(e){var t;return t=this.routes,b.ue(t,e.pathname)?.[0]}isHashNavigation(e){return R(this.state.location,e.location)}navigateFromHistory(e){this.update({location:e.location,pendingNavigation:null,error:null})}enterLoadingState(e){this.update({pendingNavigation:{update:e}})}leaveLoadingStateWithError(e,t,r){this.update({location:e.location,error:t,pendingNavigation:null,navigateOnError:r})}navigateWithoutPayload(e){this.update({location:e.location,error:null})}navigateWithCurrentPayload(e){let t=this.state.location.key,r=t+e.location.hash,n={...e.location,key:r},a={...this.state.routeStateMap,[r]:this.state.routeStateMap[t]};this.update({...e,location:n,routeStateMap:a,error:null})}leaveLoadingStateWithRouteData(e,t,r){this.update({location:e.location,pendingNavigation:null,routeStateMap:t?{...this.state.routeStateMap,[e.location.key]:{type:"loaded",data:t,title:r}}:this.state.routeStateMap,error:null})}getRoutesText(){return this.routes.map(e=>e.path).join(", ")}constructor(e,t,r,n){this.routes=n;let a=this.matchLocation(e);if(!a)throw Error(`No route found for initial location: ${e.pathname} in [${this.getRoutesText()}]`);let{data:o,title:i}=a.route.loadFromEmbeddedData({embeddedData:t,location:e,pathParams:a.params});this.state={location:e,routeStateMap:{[e.key]:{type:"loaded",data:o,title:i}},appPayload:r,pendingNavigation:null,error:null,navigateOnError:!1,turboCount:y.Kn?.state?.turboCount}}};var A=r(67726);let k=new Map,P=!1,j=y.fV.href;async function T(){let{session:e}=await r.e("vendors-node_modules_github_turbo_dist_turbo_es2017-esm_js").then(r.bind(r,7332));window.addEventListener("turbo:click",e=>{j=e.detail.url}),window.addEventListener("popstate",()=>{let{scrollPosition:t}=e.history.getRestorationDataForIdentifier(e.history.restorationIdentifier)||{};t&&k.set(window.location.href,t)})}let L=y.cg?function(){(0,c.N)(()=>{let e=window.location.href;if(e===j&&e.includes("#"))return;j=e;let t=k.get(e);if(!t)return;let r=setTimeout(()=>{window.scrollTo(t.x,t.y)},0);return()=>{clearTimeout(r)}})}:A.l;"function"==typeof afterEach&&afterEach(()=>{k.clear(),P=!1});var N=r(51528),D=r(54861);let _=(e,t,r)=>{let n=(0,m.useRef)(void 0);(0,m.useEffect)(()=>{t||void 0!==n.current&&n.current===e.key||((0,D.LM)()?(O(r),function(e){let t=y.XC?.querySelector("meta[name=visitor-payload]");if(!t)return;let r=JSON.parse(atob(t.content));r.referrer=new URL(e,y.fV.origin).href,t.content=btoa(JSON.stringify(r))}(e.pathname)):I(r),n.current=e.key)},[e.key,e.pathname,t,r])},O=e=>{e?(0,v.o4)():((0,v.rZ)(),(0,v.iS)())},I=e=>{if(e)return;let t=function(){window.performance.measure(M);let e=window.performance.getEntriesByName(M).pop();return e?e.duration:null}();t&&(0,N.i)({requestUrl:window.location.href,distributionKey:"REACT_NAV_DURATION",distributionValue:Math.round(t),distributionTags:["REACT_NAV_HARD"]})},M="react_nav_duration";function B({appName:e,initialLocation:t,history:r,embeddedData:n,routes:a,App:i,wasServerRendered:s,ssrError:l,onError:v}){let[{location:y,error:b,routeStateMap:w,appPayload:A,navigateOnError:k,isLoading:P},{handleHistoryUpdate:j}]=function({initialLocation:e,embeddedData:t,routes:r}){let[n]=(0,m.useState)(()=>{let{appPayload:n,...a}=t;return new C(e,{...a,enabled_features:n?.enabled_features?n.enabled_features:{}},n,r)}),[a,o]=(0,m.useState)(()=>n.getAppNavigationState()),i=(0,m.useRef)(!1);return i.current||(n.setAppNavigationStateCallback(o),i.current=!0),[a,{handleHistoryUpdate:(0,m.useCallback)(e=>{(0,m.startTransition)(()=>{n.handleHistoryUpdate(e)})},[n])}]}({initialLocation:t,appName:e,embeddedData:n,routes:a});return!function(e,t,r){let n=(0,m.useRef)(null);(0,m.useEffect)(()=>{if(n.current||(n.current=r),!R(n.current,r)&&(t||e)){if(t){let e=E(t);(0,S.D)(e)}else e?.type==="loaded"&&e.title&&(0,S.D)(x(e.title))}n.current?.key!==r.key&&(n.current=r)},[t,e,r])}(w[y.key],b,y),!function(e,t){let r=(0,m.useRef)(void 0),n=(0,m.useRef)(t.state);(0,m.useEffect)(()=>{n.current=t.state}),(0,m.useEffect)(()=>{let a=t.pathname+t.search;if(void 0===r.current)r.current=a;else if(r.current!==a&&!e){var o;if(!("object"==typeof(o=n.current)&&null!==o&&g.V in o&&!0===o[g.V])){let e=document.querySelector("[data-react-autofocus]");!e&&(e=document.querySelector("react-app h1"))&&!e.hasAttribute("tabindex")&&e.setAttribute("tabindex","-1"),e?.focus()}r.current=a}},[e,t.pathname,t.search])}(P,y),_(y,P,b),L(),(0,c.N)(()=>r.listen(j),[r,j]),(0,o.jsx)(h.U,{appName:e,wasServerRendered:s,children:(0,o.jsx)(f.t,{onError:v,critical:!0,children:(0,o.jsx)(d.l,{App:i,appPayload:A,error:b,history:r,location:y,navigateOnError:k,Router:u.Ix,routes:a,routeStateMap:w,children:(0,o.jsx)(p.h,{ssrError:l})})})})}y.cg&&(P||(T(),P=!0));try{B.displayName||(B.displayName="NavigatorClientEntry")}catch{}var z=r(24508);let W=()=>{let e=(0,u.r5)();if((0,b.pX)(e)&&404===e.status)return null;throw e};try{W.displayName||(W.displayName="RouterErrorBoundary")}catch{}let U=(0,m.memo)(function(){return _((0,u.zy)(),!!(0,u.cq)().location,null),null});try{U.displayName||(U.displayName="SoftNavLifecycleListener")}catch{}let H={v7_fetcherPersist:!0,v7_normalizeFormMethod:!0,v7_partialHydration:!0,v7_relativeSplatPath:!0,v7_skipActionErrorRevalidation:!0},F={v7_startTransition:!0};function $(e,t,r){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return r}function q(e,t){!function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}var G=new WeakSet,V=new WeakSet;let ReactAppElement=class ReactAppElement extends z.H{async getReactNode(e,t){let r=await a(this.name);if("NavigatorApp"===r.type)return $(this,V,Y).call(this,e,t,r.registration);if("DataRouterApp"===r.type)return $(this,G,X).call(this,e,t,r.registration);throw Error(`invalid app registration type ${r.type}`)}get isLazy(){return"true"===this.getAttribute("data-lazy")}constructor(...e){super(...e),q(this,G),q(this,V),this.nameAttribute="app-name"}};async function X(e,t,r){let{routes:n}=r(),a=(0,s.Ys)(function(e,{ssrError:t,appName:r,wasServerRendered:n,children:a,HydrateFallback:i}){return[{errorElement:(0,o.jsx)(W,{}),HydrateFallback:i,element:(0,o.jsxs)(h.U,{appName:r,wasServerRendered:n,children:[(0,o.jsx)(u.sv,{}),a,(0,o.jsx)(p.h,{ssrError:t}),(0,o.jsx)(U,{})]}),children:e}]}(n,{ssrError:this.ssrError,appName:this.name,wasServerRendered:this.hasSSRContent}),{future:H});return(0,o.jsx)(s.pg,{router:a,future:F})}async function Y(e,t,r){let{App:n,routes:a}=r(),i=this.getAttribute("initial-path");if(this.isLazy){let t=await fetch(i,{mode:"no-cors",cache:"no-cache",credentials:"include"}),{payload:r}=await t.json();e.payload=r}let s=globalThis.window,{pathname:c,search:u,hash:d}=new URL(`${i}${s?.location.hash??""}`,s?.location.href??"https://github.com"),h=(0,l.z)({window:s}),{key:p,state:f}=h.location;return(0,o.jsx)(B,{appName:this.name,initialLocation:{pathname:c,search:u,hash:d,key:p,state:f},history:h,embeddedData:e,routes:a,App:n,wasServerRendered:this.hasSSRContent,ssrError:this.ssrError,onError:t})}function J(e,t){n.register(e,{type:"NavigatorApp",registration:t})}function K(e){n.register(e.name,{type:"DataRouterApp",registration:e.registration})}ReactAppElement=function(e,t,r,n){var a,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}([i.p_],ReactAppElement)},72245:(e,t,r)=>{r.d(t,{k:()=>d});let n=new(r(92536)).R;var a=r(74848),o=r(39595),i=r(24508),s=r(23235),l=r(51261),c=r(75014);let u=class ReactPartialElement extends i.H{async getReactNode(e,t){var r;let{Component:o}=await (r=this.name,n.getRegistration(r).promise),i=this.closest("react-partial-anchor"),u=(0,l.z)({window}),d=(0,c.b3)(i),h={...e,props:{...e.props,...d}};return(0,a.jsx)(s.c,{partialName:this.name,embeddedData:h,Component:o,wasServerRendered:this.hasSSRContent,ssrError:this.ssrError,anchorElement:i,onError:t,history:u})}constructor(...e){super(...e),this.nameAttribute="partial-name"}};function d(e,t){return n.register(e,t)}u=function(e,t,r,n){var a,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}([o.p_],u)},89145:(e,t,r)=>{r.d(t,{Y:()=>n});let n=(0,r(96540).createContext)({})},73627:(e,t,r)=>{r.d(t,{X:()=>o,z:()=>a});var n=r(96540);let a=(0,n.createContext)(void 0);function o(){return(0,n.useContext)(a)}},76457:(e,t,r)=>{let n;r.d(t,{A:()=>s});var a=r(96540),o=r(97156);function i(e){return{colorMode:function(e){switch(e){case"light":return"day";case"dark":return"night";default:return"auto"}}(e.colorMode),dayScheme:e.lightTheme,nightScheme:e.darkTheme}}let s=o.XC?function(){let{documentElement:e}=o.XC,[t,r]=(0,a.useState)(()=>i(e.dataset));return(0,a.useEffect)(()=>{let t=new MutationObserver(()=>r(i(e.dataset)));return t.observe(e,{attributes:!0,attributeFilter:["data-color-mode","data-light-theme","data-dark-theme"]}),()=>t.disconnect()},[e]),t}:function(){return i(n||{})}},10702:(e,t,r)=>{r.d(t,{N:()=>i});var n=r(96540),a=r(47767),o=r(89145);function i(){return(0,n.useContext)(o.Y)[(0,a.zy)().key]}},15820:(e,t,r)=>{r.d(t,{h:()=>a,u:()=>o});var n=r(73627);let a=()=>n.X()?.enabled_features??{},o=e=>!!a()[e]},23702:(e,t,r)=>{r.d(t,{q:()=>o});var n=r(96540),a=r(79446);function o(){return(0,n.useContext)(a.C)}},82897:(e,t,r)=>{r.d(t,{B:()=>a});var n=r(10702);function a(){let e=(0,n.N)(),t=e&&"loaded"===e.type?e.data:void 0;return t?.payload}},49107:(e,t,r)=>{r.d(t,{Q:()=>i});var n=r(74848),a=r(96540),o=r(92812);function i({routes:e,children:t}){let r=(0,a.useMemo)(()=>({routes:e}),[e]);return(0,n.jsx)(o.B.Provider,{value:r,children:t})}try{i.displayName||(i.displayName="AppContextProvider")}catch{}},86451:(e,t,r)=>{r.d(t,{U:()=>p});var n=r(74848),a=r(37190),o=r(47831),i=r(54156),s=r(30391),l=r(97665),c=r(55412),u=r(32389),d=r(76457);let h={};function p({appName:e,children:t,wasServerRendered:r}){let{colorMode:p,dayScheme:f,nightScheme:m}=(0,d.A)(),g=(0,u.S)();return(0,n.jsx)(l.Ht,{client:g,children:(0,n.jsx)(o.D3,{wasServerRendered:r,children:(0,n.jsx)(a.y,{appName:e,category:"",metadata:h,children:(0,n.jsx)(c.n,{children:(0,n.jsx)(s.NP,{colorMode:p,dayScheme:f,nightScheme:m,preventSSRMismatch:!0,children:(0,n.jsx)(i.k6,{children:t})})})})})})}try{p.displayName||(p.displayName="BaseProviders")}catch{}},39534:(e,t,r)=>{r.d(t,{h:()=>c});var n=r(74848),a=r(67870),o=r(54156),i=r(96540),s=r(79461);function l({ssrError:e}){let{addToast:t}=(0,o.Y6)(),r=s.z[e.textContent||""];return(0,i.useEffect)(()=>{r||t({type:"error",message:"SSR failed, see console for error details (Staff Only)"})},[]),null}try{l.displayName||(l.displayName="SSRErrorToast")}catch{}function c({ssrError:e}){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.V,{}),e&&(0,n.jsx)(l,{ssrError:e})]})}try{c.displayName||(c.displayName="CommonElements")}catch{}},44196:(e,t,r)=>{r.d(t,{t:()=>c});var n=r(74848),a=r(1819),o=r(96540),i=r(23780),s=r(31481);let l=class BasicErrorBoundary extends o.Component{static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e){let t={critical:this.props.critical||!1,reactAppName:this.props.appName};"function"==typeof this.props.onError?this.props.onError(e,t):function(e,t={}){setTimeout(()=>{(0,i.N7)(e,t)})}(e,t)}render(){return this.state.error?void 0===this.props.fallback?(0,n.jsx)(a.M,{type:"httpError"}):this.props.fallback:this.props.children}constructor(e){super(e),this.state={error:null}}};function c(e){let t=o.useContext(s.I),r=e.appName||t?.appName;return(0,n.jsx)(l,{...e,appName:r})}try{c.displayName||(c.displayName="ErrorBoundary")}catch{}},1819:(e,t,r)=>{r.d(t,{M:()=>s});var n=r(74848),a=r(84217),o=r(75177);let i={404:"Didn\u2019t find anything here!",500:"Looks like something went wrong!"};function s({httpStatus:e,type:t}){let r="fetchError"===t?"Looks like network is down!":i[e||500];return(0,n.jsxs)(a.A,{as:"h1",tabIndex:-1,sx:{display:"flex",flexDirection:"column",minWidth:"100%",minHeight:"100%",alignItems:"center",justifyContent:"center"},children:["Error",e?(0,n.jsx)(o.A,{sx:{fontSize:"144px",fontWeight:"bold",lineHeight:1},children:e}):null,(0,n.jsx)(o.A,{sx:{fontSize:4,pt:2},children:r})]})}try{s.displayName||(s.displayName="ErrorPage")}catch{}},45211:(e,t,r)=>{r.d(t,{s:()=>i});var n=r(74848),a=r(96540),o=r(73627);let i=({children:e,features:t})=>{let r=(0,a.useMemo)(()=>({enabled_features:t}),[t]);return(0,n.jsx)(o.z.Provider,{value:r,children:e})};try{i.displayName||(i.displayName="FeatureFlagProvider")}catch{}},86233:(e,t,r)=>{r.d(t,{a:()=>n});function n({path:e,Component:t,shouldNavigateOnError:r,transitionType:n,children:a}){return{path:e,Component:t,coreLoader:async function({location:e}){let t;try{let r=`${e.pathname}${e.search}`;t=await window.fetch(r,{headers:{Accept:"application/json","X-Requested-With":"XMLHttpRequest","X-GitHub-Target":"dotcom","X-React-Router":"json"}})}catch{return{type:r?"route-handled-error":"error",error:{type:"fetchError"}}}if(t.redirected)return{type:"redirect",url:t.url};if(!t.ok)return{type:r?"route-handled-error":"error",error:{type:"httpError",httpStatus:t.status}};try{let e=await t.json();return{type:"loaded",data:e,title:e.title}}catch{return{type:r?"route-handled-error":"error",error:{type:"badResponseError"}}}},loadFromEmbeddedData:function({embeddedData:e}){return{data:e,title:e.title}},transitionType:n,children:a}}},56226:(e,t,r)=>{r.d(t,{N:()=>u});var n=r(74848),a=r(96540),o=r(45588),i=r(84976),s=r(92812),l=r(97156),c=r(99523);let u=(0,a.forwardRef)(({to:e,reloadDocument:t,preventAutofocus:r,...u},d)=>{let{routes:h}=(0,a.useContext)(s.B),p=(0,o.o1)(e,l.fV.pathname).pathname;return t=t??!(0,o.ue)(h,p),(0,n.jsx)(i.N_,{to:e,...u,state:r?{[c.V]:!0,...u.state}:u.state,reloadDocument:t,ref:d})});u.displayName="Link";let d=(0,a.forwardRef)(function({to:e,reloadDocument:t,preventAutofocus:r,...u},d){let{routes:h}=(0,a.useContext)(s.B),p=(0,o.o1)(e,l.fV.pathname).pathname;return t=t??!(0,o.ue)(h,p),(0,n.jsx)(i.k2,{to:e,...u,state:r?{[c.V]:!0,...u.state}:u.state,reloadDocument:t,ref:d})});try{d.displayName||(d.displayName="NavLink")}catch{}},79446:(e,t,r)=>{r.d(t,{C:()=>g,l:()=>v});var n=r(74848),a=r(49107),o=r(47767),i=r(96540),s=r(27260),l=r(73627),c=r(82897);function u({App:e}){return!function(){let e=(0,c.B)(),t=(0,l.X)();(0,i.useEffect)(()=>{function r(){document.dispatchEvent(new CustomEvent("soft-nav:payload",{detail:{payload:e,appPayload:t}}))}return document.addEventListener(s.z.INITIAL,r),()=>{document.removeEventListener(s.z.INITIAL,r)}},[]),(0,i.useEffect)(()=>{document.dispatchEvent(new CustomEvent("soft-nav:payload",{detail:{payload:e,appPayload:t}}))},[t,e])}(),e?(0,n.jsx)(e,{children:(0,n.jsx)(o.sv,{})}):(0,n.jsx)(o.sv,{})}try{u.displayName||(u.displayName="AppWrapper")}catch{}var d=r(1819),h=r(89145),p=r(45588),f=r(97156);let m=e=>{let t=(0,o.Zp)();(0,i.useEffect)(()=>{let r=new AbortController;return f.XC?.addEventListener("react:soft-nav",r=>{if(!(r instanceof CustomEvent))return;let{data:n,url:a}=r.detail,o=(0,p.ue)(e,a),s=`${a.pathname}${a.search}${a.hash}`;if(!o){window.location.href=s||window.location.href;return}(0,i.startTransition)(()=>{t(s,{state:{__prefetched_data:n}});let{turbo:e,...r}=window.history.state??{};r?.usr?.__prefetched_data&&delete r.usr.__prefetched_data,window.history.replaceState({...r,skipTurbo:!0},"",location.href)})},{signal:r.signal}),()=>{r.abort()}},[t,e])},g=(0,i.createContext)(null);function v({App:e,appPayload:t,children:r,error:o,history:i,location:s,navigateOnError:c,Router:u,routes:p,routeStateMap:f}){return(0,n.jsx)(a.Q,{routes:p,children:o&&!c?(0,n.jsx)(d.M,{...o}):(0,n.jsx)(l.z.Provider,{value:t,children:(0,n.jsx)(g.Provider,{value:o,children:(0,n.jsx)(h.Y.Provider,{value:f,children:(0,n.jsxs)(u,{location:s,navigator:i,future:{v7_relativeSplatPath:!0},children:[(0,n.jsx)(y,{routes:p,App:e}),r]})})})})})}function y({App:e,routes:t}){return m(t),(0,o.Ye)([{element:(0,n.jsx)(u,{App:e}),children:t}])}try{g.displayName||(g.displayName="NavigationErrorContext")}catch{}try{v.displayName||(v.displayName="NavigatorRouter")}catch{}try{y.displayName||(y.displayName="AppRoutes")}catch{}},23235:(e,t,r)=>{r.d(t,{c:()=>h});var n=r(74848),a=r(49107),o=r(86451),i=r(39534),s=r(44196),l=r(96540),c=r(47767),u=r(59840);function d({children:e,history:t}){let[r,a]=(0,l.useState)({location:t.location});return(0,u.m)(()=>t.listen(a),[t]),(0,n.jsx)(c.Ix,{location:r.location,navigator:t,future:{v7_relativeSplatPath:!0},children:e})}try{d.displayName||(d.displayName="PartialRouter")}catch{}function h({partialName:e,embeddedData:t,Component:r,wasServerRendered:l,ssrError:c,onError:u,history:h}){return(0,n.jsx)(o.U,{appName:e,wasServerRendered:l,children:(0,n.jsx)(s.t,{onError:u,children:(0,n.jsx)(a.Q,{routes:[],children:(0,n.jsxs)(d,{history:h,children:[(0,n.jsx)(r,{...t.props}),(0,n.jsx)(i.h,{ssrError:c})]})})})})}try{h.displayName||(h.displayName="PartialEntry")}catch{}},55412:(e,t,r)=>{r.d(t,{n:()=>s});var n=r(74848),a=r(96540),o=r(15033),i=r(97564);function s({children:e}){let t=a.useMemo(()=>{let e=(0,i.fQ)(),t={};for(let r of e)r.startsWith("primer_react_")&&(t[r]=!0);return t},[]);return(0,n.jsx)(o.g,{flags:t,children:e})}try{s.displayName||(s.displayName="PrimerFeatureFlags")}catch{}},24508:(e,t,r)=>{r.d(t,{H:()=>ReactBaseElement});var n=r(74848),a=r(39595),o=r(5338),i=r(96540),s=r(23581),l=r(79461),c=r(51528),u=r(23780);function d(e,t,r,n){var a,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}let h=RegExp("Minified React error #(?\\d+)"),p=["419","421"];let ReactBaseElement=class ReactBaseElement extends HTMLElement{get name(){return this.getAttribute(this.nameAttribute)}get embeddedDataText(){let e=this.embeddedData?.textContent;if(!e)throw Error(`No embedded data provided for react element ${this.name}`);return e}get hasSSRContent(){return"true"===this.getAttribute("data-ssr")}get attemptedSSR(){return"true"===this.getAttribute("data-attempted-ssr")}connectedCallback(){this.renderReact()}disconnectedCallback(){this.root?.unmount(),this.root=void 0}async renderReact(){if(!this.reactRoot)throw Error("No react root provided");let e={createRoot:o.H,hydrateRoot:o.c};s.A.isEnabled()&&(e=await this.getReactDomWithProfiling());let t=!1,r=JSON.parse(this.embeddedDataText),a=this.ssrError?.textContent,l=await this.getReactNode(r,(e,r={})=>{t=!0;let n={critical:!0,reactAppName:this.name,...r};setTimeout(()=>{(0,u.N7)(e,n)})}),d=(0,n.jsx)(i.StrictMode,{children:l});if(a&&this.logSSRError(a),this.hasSSRContent){let r=this.querySelector('style[data-styled="true"]');r&&document.head.appendChild(r),this.root=e.hydrateRoot(this.reactRoot,d,{onRecoverableError:e=>{if(!(e instanceof Error))return;let r=h.exec(e.message),n=String(r?.groups?.invariant);t=!p.includes(n),(0,c.i)({incrementKey:"REACT_HYDRATION_ERROR",incrementTags:{appName:this.name,invariant:n}})}}),r&&requestIdleCallback(()=>{r.parentElement?.removeChild(r)}),(0,c.i)({incrementKey:"REACT_RENDER",incrementTags:{appName:this.name,csr:!1,error:t,ssr:!0,ssrError:!1}})}else this.root=e.createRoot(this.reactRoot),this.root.render(d),(0,c.i)({incrementKey:"REACT_RENDER",incrementTags:{appName:this.name,csr:!0,error:t,ssr:this.attemptedSSR,ssrError:!!this.ssrError}});this.classList.add("loaded")}getReactDomWithProfiling(){return r.e("react-profiling").then(r.t.bind(r,87335,19))}logSSRError(e){if(l.z[e])return console.error("SSR failed with an expected error:",l.z[e]);try{let t=JSON.parse(e),r=function(e){if(!e.stacktrace)return"";let t="\n ";return e.stacktrace.map(e=>{let{function:r,filename:n,lineno:a,colno:o}=e,i=`${t} at ${r} (${n}:${a}:${o})`;return t=" ",i}).join("\n")}(t);console.error("Error During Alloy SSR:",`${t.type}: ${t.value} `,t,r)}catch{console.error("Error During Alloy SSR:",e,"unable to parse as json")}}};d([a.aC],ReactBaseElement.prototype,"embeddedData",void 0),d([a.aC],ReactBaseElement.prototype,"ssrError",void 0),d([a.aC],ReactBaseElement.prototype,"reactRoot",void 0);try{h.displayName||(h.displayName="REACT_INVARIANT_ERROR_REGEX")}catch{}}}]); //# sourceMappingURL=react-core-c893c2e6aaba.js.map