"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:()=>R,G3:()=>H,Gh:()=>P,HS:()=>T,Oi:()=>l,RO:()=>E,Rr:()=>p,VV:()=>ErrorResponseImpl,aE:()=>Y,o1:()=>C,pX:()=>O,pb:()=>x,rc:()=>n,ro:()=>v,tH:()=>AbortedDeferredError,tW:()=>S,ue:()=>y,v6:()=>_,yD:()=>A,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,y=g();function g(){return(p.state||{idx:null}).idx}function v(){f=n.Pop;let e=g(),t=null==e?null:e-y;y=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==y&&(y=0,p.replaceState(o({},p.state,{idx:y}),""));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,v),m=e,()=>{s.removeEventListener(i,v),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,y=g()+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,y=g()),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 y(e,t,r){return void 0===r&&(r="/"),g(e,t,r,!1)}function g(e,t,r,n){let a=x(("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=T([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(w)&&(n+=-2),d&&(n+=2),e.filter(e=>!w(e)).reduce((e,t)=>e+(b.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 S(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 R(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 E(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 x(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 C(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:D(o)}}function k(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 j(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function A(e,t){let r=j(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("?"),k("?","pathname","search",a)),l(!a.pathname||!a.pathname.includes("#"),k("#","pathname","hash",a)),l(!a.search||!a.search.includes("#"),k("#","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=C(a,i),d=c&&"/"!==c&&c.endsWith("/"),h=(s||"."===c)&&r.endsWith("/");return!u.pathname.endsWith("/")&&(d||h)&&(u.pathname+="/"),u}let T=e=>e.join("/").replace(/\/\/+/g,"/"),N=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),L=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",D=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 _=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 O(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let I=["post","put","patch","delete"],M=new Set(I),z=new Set(["get",...I]),B=new Set([301,302,303,307,308]),W=new Set([307,308]),U={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},F={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},q=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),V="remix-router-transitions";function Y(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,b=!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 w={},S=m(e.routes,t,void 0,w),R=e.basename||"/",E=e.dataStrategy||en,C=e.patchRoutesOnNavigation,k=o({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),j=null,A=new Set,P=null,T=null,N=null,L=null!=e.hydrationData,D=y(S,e.history.location,R),_=null;if(null==D&&!C){let t=ey(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=em(S);D=r,_={[n.id]:t}}if(D&&!e.hydrationData&&ta(D,S,e.history.location.pathname).active&&(D=null),D){if(D.some(e=>e.route.lazy))i=!1;else if(D.some(e=>e.route.loader)){if(k.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=D.findIndex(e=>void 0!==r[e.route.id]);i=D.slice(0,e+1).every(e=>!Q(e.route,t,r))}else i=D.every(e=>!Q(e.route,t,r))}else i=null!=e.hydrationData}else i=!0}else if(i=!1,D=[],k.v7_partialHydration){let t=ta(null,S,e.history.location.pathname);t.active&&t.matches&&(D=t.matches)}let I={historyAction:e.history.action,location:e.history.location,matches:D,initialized:i,navigation:U,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||_,fetchers:new Map,blockers:new Map},M=n.Pop,z=!1,Y=!1,K=new Map,Z=null,ee=!1,er=!1,eo=[],ec=new Set,eu=new Map,ev=0,eR=-1,eA=new Map,e_=new Set,eO=new Map,eI=new Map,eM=new Set,ez=new Map,eB=new Map;function eW(e,t){void 0===t&&(t={}),I=o({},I,e);let r=[],n=[];k.v7_fetcherPersist&&I.fetchers.forEach((e,t)=>{"idle"===e.state&&(eM.has(t)?n.push(t):r.push(t))}),[...A].forEach(e=>e(I,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),k.v7_fetcherPersist&&(r.forEach(e=>I.fetchers.delete(e)),n.forEach(e=>e4(e)))}function eU(t,a,i){var s,l;let c,u;let{flushSync:d}=void 0===i?{}:i,h=null!=I.actionData&&null!=I.navigation.formMethod&&ex(I.navigation.formMethod)&&"loading"===I.navigation.state&&(null==(s=t.state)?void 0:s._isRedirect)!==!0;c=a.actionData?Object.keys(a.actionData).length>0?a.actionData:null:h?I.actionData:null;let p=a.loaderData?eh(I.loaderData,a.loaderData,a.matches||[],a.errors):I.loaderData,f=I.blockers;f.size>0&&(f=new Map(f)).forEach((e,t)=>f.set(t,H));let m=!0===z||null!=I.navigation.formMethod&&ex(I.navigation.formMethod)&&(null==(l=t.state)?void 0:l._isRedirect)!==!0;if(r&&(S=r,r=void 0),ee||M===n.Pop||(M===n.Push?e.history.push(t,t.state):M===n.Replace&&e.history.replace(t,t.state)),M===n.Pop){let e=K.get(I.location.pathname);e&&e.has(t.pathname)?u={currentLocation:I.location,nextLocation:t}:K.has(t.pathname)&&(u={currentLocation:t,nextLocation:I.location})}else if(Y){let e=K.get(I.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),K.set(I.location.pathname,e)),u={currentLocation:I.location,nextLocation:t}}eW(o({},a,{actionData:c,loaderData:p,historyAction:M,location:t,initialized:!0,navigation:U,revalidation:"idle",restoreScrollPosition:tn(t,a.matches||I.matches),preventScrollReset:m,blockers:f}),{viewTransitionOpts:u,flushSync:!0===d}),M=n.Pop,z=!1,Y=!1,ee=!1,er=!1,eo=[]}async function eF(t,r){if("number"==typeof t){e.history.go(t);return}let a=G(I.location,I.matches,R,k.v7_prependBasename,t,k.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:i,submission:s,error:l}=X(k.v7_normalizeFormMethod,!1,a,r),c=I.location,u=d(I.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&&ex(s.formMethod)&&s.formAction===I.location.pathname+I.location.search&&(p=n.Replace);let f=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,m=!0===(r&&r.flushSync),y=e9({currentLocation:c,nextLocation:u,historyAction:p});if(y){e8(y,{state:"blocked",location:u,proceed(){e8(y,{state:"proceeding",proceed:void 0,reset:void 0,location:u}),eF(t,r)},reset(){let e=new Map(I.blockers);e.set(y,H),eW({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,M=t,ee=!0===(i&&i.startUninterruptedRevalidation),s=I.location,l=I.matches,P&&N&&(P[tr(s,l)]=N()),z=!0===(i&&i.preventScrollReset),Y=!0===(i&&i.enableViewTransition);let h=r||S,p=i&&i.overrideNavigation,f=y(h,n,R),m=!0===(i&&i.flushSync),g=ta(f,h,n.pathname);if(g.active&&g.matches&&(f=g.matches),!f){let{error:e,notFoundMatches:t,route:r}=te(n.pathname);eU(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:m});return}if(I.initialized&&!er&&(c=I.location).pathname===n.pathname&&c.search===n.search&&(""===c.hash?""!==n.hash:c.hash===n.hash||""!==n.hash)&&!(i&&i.submission&&ex(i.submission.formMethod))){eU(n,{matches:f},{flushSync:m});return}u=new AbortController;let v=el(e.history,n,u.signal,i&&i.submission);if(i&&i.pendingError)d=[ef(f).route.id,{type:a.error,error:i.pendingError}];else if(i&&i.submission&&ex(i.submission.formMethod)){let t=await eq(v,n,i.submission,f,g.active,{replace:i.replace,flushSync:m});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(ew(r)&&O(r.error)&&404===r.error.status){u=null,eU(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}f=t.matches||f,d=t.pendingActionResult,p=eN(n,i.submission),m=!1,g.active=!1,v=el(e.history,v.url,v.signal)}let{shortCircuited:b,matches:w,loaderData:E,errors:x}=await e$(v,n,f,g.active,p,i&&i.submission,i&&i.fetcherSubmission,i&&i.replace,i&&!0===i.initialHydration,m,d);b||(u=null,eU(n,o({matches:w||f},ep(d),{loaderData:E,errors:x})))}async function eq(e,t,r,o,i,s){let l;if(void 0===s&&(s={}),eQ(),eW({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 to(o,t.pathname,e.signal);if("aborted"===r.type)return{shortCircuited:!0};if("error"===r.type){let e=ef(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}=te(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 eK("action",I,e,[c],o,null))[c.route.id],e.signal.aborted)return{shortCircuited:!0}}else l={type:a.error,error:ey(405,{method:e.method,pathname:t.pathname,routeId:c.route.id})};if(eS(l)){let t;return t=s&&null!=s.replace?s.replace:es(l.response.headers.get("Location"),new URL(e.url),R)===I.location.pathname+I.location.search,await eX(e,l,!0,{submission:r,replace:t}),{shortCircuited:!0}}if(eb(l))throw ey(400,{type:"defer-action"});if(ew(l)){let e=ef(o,c.route.id);return!0!==(s&&s.replace)&&(M=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||eN(n,l),y=l||c||eT(m),g=!ee&&(!k.v7_partialHydration||!h);if(i){if(g){let e=eV(f);eW(o({navigation:m},void 0!==e?{actionData:e}:{}),{flushSync:p})}let e=await to(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=ef(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}=te(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let v=r||S,[b,w]=J(e.history,I,a,y,n,k.v7_partialHydration&&!0===h,k.v7_skipActionErrorRevalidation,er,eo,ec,eM,eO,e_,v,R,f);if(tt(e=>!(a&&a.some(t=>t.route.id===e))||b&&b.some(t=>t.route.id===e)),eR=++ev,0===b.length&&0===w.length){let e=e5();return eU(n,o({matches:a,loaderData:{},errors:f&&ew(f[1])?{[f[0]]:f[1].error}:null},ep(f),e?{fetchers:new Map(I.fetchers)}:{}),{flushSync:p}),{shortCircuited:!0}}if(g){let e={};if(!i){e.navigation=m;let t=eV(f);void 0!==t&&(e.actionData=t)}w.length>0&&(e.fetchers=(w.forEach(e=>{let t=I.fetchers.get(e.key),r=eL(void 0,t?t.data:void 0);I.fetchers.set(e.key,r)}),new Map(I.fetchers))),eW(e,{flushSync:p})}w.forEach(e=>{e7(e.key),e.controller&&eu.set(e.key,e.controller)});let E=()=>w.forEach(e=>e7(e.key));u&&u.signal.addEventListener("abort",E);let{loaderResults:x,fetcherResults:C}=await eJ(I,a,b,w,t);if(t.signal.aborted)return{shortCircuited:!0};u&&u.signal.removeEventListener("abort",E),w.forEach(e=>eu.delete(e.key));let j=eg(x);if(j)return await eX(t,j.result,!0,{replace:d}),{shortCircuited:!0};if(j=eg(C))return e_.add(j.key),await eX(t,j.result,!0,{replace:d}),{shortCircuited:!0};let{loaderData:A,errors:P}=ed(I,a,x,f,w,C,ez);ez.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&ez.delete(t)})}),k.v7_partialHydration&&h&&I.errors&&(P=o({},I.errors,P));let T=e5(),N=e3(eR),L=T||N||w.length>0;return o({matches:a,loaderData:A,errors:P},L?{fetchers:new Map(I.fetchers)}:{})}function eV(e){return e&&!ew(e[1])?{[e[0]]:e[1].data}:I.actionData?0===Object.keys(I.actionData).length?null:I.actionData:void 0}async function eY(t,n,a,o,i,s,c,d,h){function p(e){if(!e.route.action&&!e.route.lazy){let e=ey(405,{method:h.formMethod,pathname:a,routeId:n});return e0(t,n,e,{flushSync:c}),!0}return!1}if(eQ(),eO.delete(t),!s&&p(o))return;let f=I.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,g=el(e.history,a,m.signal,h);if(s){let e=await to(i,a,g.signal);if("aborted"===e.type)return;if("error"===e.type){e0(t,n,e.error,{flushSync:c});return}if(e.matches){if(p(o=eP(i=e.matches,a)))return}else{e0(t,n,ey(404,{pathname:a}),{flushSync:c});return}}eu.set(t,m);let v=ev,b=(await eK("action",I,g,[o],i,t))[o.route.id];if(g.signal.aborted){eu.get(t)===m&&eu.delete(t);return}if(k.v7_fetcherPersist&&eM.has(t)){if(eS(b)||ew(b)){eZ(t,eD(void 0));return}}else{if(eS(b))return(eu.delete(t),eR>v)?void eZ(t,eD(void 0)):(e_.add(t),eZ(t,eL(h)),eX(g,b,!1,{fetcherSubmission:h,preventScrollReset:d}));if(ew(b)){e0(t,n,b.error);return}}if(eb(b))throw ey(400,{type:"defer-action"});let w=I.navigation.location||I.location,E=el(e.history,w,m.signal),x=r||S,C="idle"!==I.navigation.state?y(x,I.navigation.location,R):I.matches;l(C,"Didn't find any matches after fetcher action");let j=++ev;eA.set(t,j);let A=eL(h,b.data);I.fetchers.set(t,A);let[P,T]=J(e.history,I,C,h,w,!1,k.v7_skipActionErrorRevalidation,er,eo,ec,eM,eO,e_,x,R,[o.route.id,b]);T.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=I.fetchers.get(t),n=eL(void 0,r?r.data:void 0);I.fetchers.set(t,n),e7(t),e.controller&&eu.set(t,e.controller)}),eW({fetchers:new Map(I.fetchers)});let N=()=>T.forEach(e=>e7(e.key));m.signal.addEventListener("abort",N);let{loaderResults:L,fetcherResults:D}=await eJ(I,C,P,T,E);if(m.signal.aborted)return;m.signal.removeEventListener("abort",N),eA.delete(t),eu.delete(t),T.forEach(e=>eu.delete(e.key));let _=eg(L);if(_)return eX(E,_.result,!1,{preventScrollReset:d});if(_=eg(D))return e_.add(_.key),eX(E,_.result,!1,{preventScrollReset:d});let{loaderData:O,errors:z}=ed(I,C,L,void 0,T,D,ez);if(I.fetchers.has(t)){let e=eD(b.data);I.fetchers.set(t,e)}e3(j),"loading"===I.navigation.state&&j>eR?(l(M,"Expected pending action"),u&&u.abort(),eU(I.navigation.location,{matches:C,loaderData:O,errors:z,fetchers:new Map(I.fetchers)})):(eW({errors:z,loaderData:eh(I.loaderData,O,C,z),fetchers:new Map(I.fetchers)}),er=!1)}async function eG(t,r,n,a,o,i,s,c,u){let d=I.fetchers.get(t);eZ(t,eL(u,d?d.data:void 0),{flushSync:s});let h=new AbortController,p=el(e.history,n,h.signal);if(i){let e=await to(o,n,p.signal);if("aborted"===e.type)return;if("error"===e.type){e0(t,r,e.error,{flushSync:s});return}if(e.matches)a=eP(o=e.matches,n);else{e0(t,r,ey(404,{pathname:n}),{flushSync:s});return}}eu.set(t,h);let f=ev,m=(await eK("loader",I,p,[a],o,t))[a.route.id];if(eb(m)&&(m=await ej(m,p.signal,!0)||m),eu.get(t)===h&&eu.delete(t),!p.signal.aborted){if(eM.has(t)){eZ(t,eD(void 0));return}if(eS(m)){if(eR>f){eZ(t,eD(void 0));return}e_.add(t),await eX(p,m,!1,{preventScrollReset:c});return}if(ew(m)){e0(t,r,m.error);return}l(!eb(m),"Unhandled fetcher deferred data"),eZ(t,eD(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")&&(er=!0);let y=r.response.headers.get("Location");l(y,"Expected a Location header on the redirect Response"),y=es(y,new URL(t.url),R);let g=d(I.location,y,{_isRedirect:!0});if(f){let t=!1;if(r.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(q.test(y)){let r=e.history.createURL(y);t=r.origin!==p.location.origin||null==x(r.pathname,R)}if(t){m?p.location.replace(y):p.location.assign(y);return}}u=null;let v=!0===m||r.response.headers.has("X-Remix-Replace")?n.Replace:n.Push,{formMethod:b,formAction:w,formEncType:S}=I.navigation;!s&&!c&&b&&w&&S&&(s=eT(I.navigation));let E=s||c;if(W.has(r.response.status)&&E&&ex(E.formMethod))await eH(v,g,{submission:o({},E,{formAction:y}),preventScrollReset:h||z,enableViewTransition:a?Y:void 0});else{let e=eN(g,s);await eH(v,g,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:h||z,enableViewTransition:a?Y:void 0})}}async function eK(e,r,n,o,i,s){let c;let u={};try{c=await ea(E,e,r,n,o,i,s,w,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(eE((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"),!q.test(i)){let s=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=G(new URL(t.url),s,a,!0,i,o),e.headers.set("Location",i)}return e}(r,n,e,i,R,k.v7_relativeSplatPath)}}else u[e]=await ei(t)}return u}async function eJ(t,r,n,o,i){let s=t.matches,l=eK("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:ey(404,{pathname:r.path})}});{let n=(await eK("loader",t,el(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([eC(r,u,i.signal,s,t.loaderData),ek(r,d,o)]),{loaderResults:u,fetcherResults:d}}function eQ(){er=!0,eo.push(...tt()),eO.forEach((e,t)=>{eu.has(t)&&ec.add(t),e7(t)})}function eZ(e,t,r){void 0===r&&(r={}),I.fetchers.set(e,t),eW({fetchers:new Map(I.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function e0(e,t,r,n){void 0===n&&(n={});let a=ef(I.matches,t);e4(e),eW({errors:{[a.route.id]:r},fetchers:new Map(I.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function e1(e){return k.v7_fetcherPersist&&(eI.set(e,(eI.get(e)||0)+1),eM.has(e)&&eM.delete(e)),I.fetchers.get(e)||F}function e4(e){let t=I.fetchers.get(e);eu.has(e)&&!(t&&"loading"===t.state&&eA.has(e))&&e7(e),eO.delete(e),eA.delete(e),e_.delete(e),eM.delete(e),ec.delete(e),I.fetchers.delete(e)}function e7(e){let t=eu.get(e);t&&(t.abort(),eu.delete(e))}function e2(e){for(let t of e){let e=eD(e1(t).data);I.fetchers.set(t,e)}}function e5(){let e=[],t=!1;for(let r of e_){let n=I.fetchers.get(r);l(n,"Expected fetcher: "+r),"loading"===n.state&&(e_.delete(r),e.push(r),t=!0)}return e2(e),t}function e3(e){let t=[];for(let[r,n]of eA)if(n0}function e6(e){I.blockers.delete(e),eB.delete(e)}function e8(e,t){let r=I.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(I.blockers);n.set(e,t),eW({blockers:n})}function e9(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=I.blockers.get(o);if((!s||"proceeding"!==s.state)&&i({currentLocation:t,nextLocation:r,historyAction:n}))return o}function te(e){let t=ey(404,{pathname:e}),{matches:n,route:a}=em(r||S);return tt(),{notFoundMatches:n,route:a,error:t}}function tt(e){let t=[];return ez.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),ez.delete(n))}),t}function tr(e,t){return T&&T(e,t.map(e=>v(e,I.loaderData)))||e.key}function tn(e,t){if(P){let r=P[tr(e,t)];if("number"==typeof r)return r}return null}function ta(e,t,r){if(C){if(!e)return{active:!0,matches:g(t,r,R,!0)||[]};if(Object.keys(e[0].params).length>0)return{active:!0,matches:g(t,r,R,!0)}}return{active:!1,matches:null}}async function to(e,n,a){if(!C)return{type:"success",matches:e};let o=e;for(;;){let e=null==r,i=r||S,s=w;try{await C({path:n,matches:o,patch:(e,r)=>{a.aborted||et(e,r,i,s,t)}})}catch(e){return{type:"error",error:e,partialMatches:o}}finally{e&&!a.aborted&&(S=[...S])}if(a.aborted)return{type:"aborted"};let l=y(i,n,R);if(l)return{type:"success",matches:l};let c=g(i,n,R,!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 R},get future(){return k},get state(){return I},get routes(){return S},get window(){return p},initialize:function(){if(j=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=e9({currentLocation:I.location,nextLocation:n,historyAction:r});if(o&&null!=a){let t=new Promise(e=>{h=e});e.history.go(-1*a),e8(o,{state:"blocked",location:n,proceed(){e8(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(a))},reset(){let e=new Map(I.blockers);e.set(o,H),eW({blockers:e})}});return}return eH(r,n)}),f){!function(e,t){try{let r=e.sessionStorage.getItem(V);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,K);let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(V,JSON.stringify(r))}catch(e){c(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(p,K);p.addEventListener("pagehide",e),Z=()=>p.removeEventListener("pagehide",e)}return I.initialized||eH(n.Pop,I.location,{initialHydration:!0}),s},subscribe:function(e){return A.add(e),()=>A.delete(e)},enableScrollRestoration:function(e,t,r){if(P=e,N=t,T=r||null,!L&&I.navigation===U){L=!0;let e=tn(I.location,I.matches);null!=e&&eW({restoreScrollPosition:e})}return()=>{P=null,N=null,T=null}},navigate:eF,fetch:function(e,t,n,a){if(b)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.");e7(e);let o=!0===(a&&a.flushSync),i=r||S,s=G(I.location,I.matches,R,k.v7_prependBasename,n,k.v7_relativeSplatPath,t,null==a?void 0:a.relative),l=y(i,s,R),c=ta(l,i,s);if(c.active&&c.matches&&(l=c.matches),!l){e0(e,t,ey(404,{pathname:s}),{flushSync:o});return}let{path:u,submission:d,error:h}=X(k.v7_normalizeFormMethod,!0,s,a);if(h){e0(e,t,h,{flushSync:o});return}let p=eP(l,u),f=!0===(a&&a.preventScrollReset);if(d&&ex(d.formMethod)){eY(e,t,u,p,l,c.active,o,f,d);return}eO.set(e,{routeId:t,path:u}),eG(e,t,u,p,l,c.active,o,f,d)},revalidate:function(){if(eQ(),eW({revalidation:"loading"}),"submitting"!==I.navigation.state){if("idle"===I.navigation.state){eH(I.historyAction,I.location,{startUninterruptedRevalidation:!0});return}eH(M||I.historyAction,I.navigation.location,{overrideNavigation:I.navigation,enableViewTransition:!0===Y})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:e1,deleteFetcher:function(e){if(k.v7_fetcherPersist){let t=(eI.get(e)||0)-1;t<=0?(eI.delete(e),eM.add(e)):eI.set(e,t)}else e4(e);eW({fetchers:new Map(I.fetchers)})},dispose:function(){j&&j(),Z&&Z(),A.clear(),u&&u.abort(),I.fetchers.forEach((e,t)=>e4(t)),I.blockers.forEach((e,t)=>e6(t))},getBlocker:function(e,t){let r=I.blockers.get(e)||H;return eB.get(e)!==t&&eB.set(e,t),r},deleteBlocker:e6,patchRoutes:function(e,n){let a=null==r;et(e,n,r||S,w,t),a&&(S=[...S],eW({}))},_internalFetchControllers:eu,_internalActiveDeferreds:ez,_internalSetRoutes:function(e){r=m(e,t,void 0,w={})}}}function G(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||".",A(l,o),x(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=eA(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:T([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,!z.has(a.toLowerCase())))return{path:r,error:ey(405,{method:n.formMethod})};let s=()=>({path:r,error:ey(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(!ex(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(!ex(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=ec(n.formData),i=n.formData;else if(n.body instanceof FormData)o=ec(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=eu(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=eu(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(ex(f.formMethod))return{path:r,submission:f};let m=p(r);return t&&m.search&&eA(m.search)&&o.append("index",""),m.search="?"+o,{path:h(m),submission:f}}function K(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,g){let v=g?ew(g[1])?g[1].error:g[1].data:void 0,b=e.createURL(t.location),w=e.createURL(a),S=r;i&&t.errors?S=K(r,Object.keys(t.errors)[0],!0):g&&ew(g[1])&&(S=K(r,g[0]));let R=g?g[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 Q(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 ee(e,o({currentUrl:b,currentParams:p.params,nextUrl:w,nextParams:e.params},n,{actionResult:v,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=y(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),g=!1;p.has(a)?g=!1:u.has(a)?(u.delete(a),g=!0):g=c&&"idle"!==c.state&&void 0===c.data?l:ee(h,o({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:v,actionStatus:R,defaultShouldRevalidate:!E&&l})),g&&C.push({key:a,routeId:e.routeId,path:e.path,matches:s,match:h,controller:new AbortController})}),[x,C]}function Q(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 ee(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function et(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 er(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 en(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 ea(e,t,r,n,i,s,l,c,u,d){let h=s.map(e=>e.route.lazy?er(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?eo(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 eo(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 ey(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 ey(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 ei(e){var t,r,n,o,i,s,l;let{result:c,type:u}=e;if(eE(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(eR(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:O(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)}:eR(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 es(e,t,r){if(q.test(e)){let n=new URL(e.startsWith("//")?t.protocol+e:e),a=null!=x(n.pathname,r);if(n.origin===t.origin&&a)return n.pathname+n.search+n.hash}return e}function el(e,t,r,n){let a=e.createURL(ev(t)).toString(),o={signal:r};if(n&&ex(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=ec(n.formData):o.body=n.formData}return new Request(a,o)}function ec(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function eu(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function ed(e,t,r,n,a,i,s){let c,u,d,h,p,f;let{loaderData:m,errors:y}=(u={},d=null,h=!1,p={},f=n&&ew(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(!eS(a),"Cannot handle redirect results in processLoaderData"),ew(a)){let e=a.error;void 0!==f&&(e=f,f=void 0),d=d||{};{let r=ef(t,n);null==d[r.route.id]&&(d[r.route.id]=e)}u[n]=void 0,h||(h=!0,c=O(a.error)?a.error.status:500),a.headers&&(p[n]=a.headers)}else eb(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(ew(s)){let t=ef(e.matches,null==n?void 0:n.route.id);y&&y[t.route.id]||(y=o({},y,{[t.route.id]:s.error})),e.fetchers.delete(r)}else if(eS(s))l(!1,"Unhandled fetcher revalidation redirect");else if(eb(s))l(!1,"Unhandled fetcher deferred data");else{let t=eD(s.data);e.fetchers.set(r,t)}}}),{loaderData:m,errors:y}}function eh(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 ep(e){return e?ew(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ef(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function em(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ey(e,t){let{pathname: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(eS(n))return{key:r,result:n}}}function ev(e){let t="string"==typeof e?p(e):e;return h(o({},t,{hash:""}))}function eb(e){return e.type===a.deferred}function ew(e){return e.type===a.error}function eS(e){return(e&&e.type)===a.redirect}function eR(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function eE(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function ex(e){return M.has(e.toLowerCase())}async function eC(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;eb(l)&&d&&await ej(l,r,!1).then(e=>{e&&(t[s]=e)})}}async function ek(e,t,r){for(let n=0;n(null==e?void 0:e.route.id)===o)&&eb(s)&&(l(i,"Expected an AbortController for revalidating fetcher deferred result"),await ej(s,i.signal,!0).then(e=>{e&&(t[a]=e)}))}}async function ej(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 eA(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&&eA(r||""))return e[e.length-1];let n=j(e);return n[n.length-1]}function eT(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 eN(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 eD(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:()=>y,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)},y=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:()=>T,K:()=>_,N_:()=>k,OA:()=>A,PI:()=>p,Ys:()=>y,k2:()=>j,ok:()=>N,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 y(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 g=s.createContext({isTransitioning:!1}),v=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(),[y,w]=s.useState(),R=s.useRef(new Map),{v7_startTransition:x}=n||{},C=s.useCallback(e=>{x&&b?b(e):e()},[x]),k=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(k),[r,k]),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&&y&&(l(y.state),d({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),w(void 0))},[u.isTransitioning,y]),s.useEffect(()=>{},[]);let j=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]),A=r.basename||"/",P=s.useMemo(()=>({router:r,navigator:j,static:!1,basename:A}),[r,j,A]),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:P},s.createElement(c.Rq.Provider,{value:a},s.createElement(v.Provider,{value:R.current},s.createElement(g.Provider,{value:u},s.createElement(c.Ix,{basename:A,location:a.location,navigationType:a.historyAction,navigator:j,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,k=s.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:p,to:m,preventScrollReset:y,viewTransition:g}=e,v=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=T(m,{replace:i,state:l,target:p,preventScrollReset:y,relative:a,viewTransition:g});return s.createElement("a",d({},v,{href:r||S,onClick:w||o?n:function(e){n&&n(e),e.defaultPrevented||R(e)},ref:t,target:p}))}),j=s.forwardRef(function(e,t){let r,{"aria-current":n="page",caseSensitive:a=!1,className:i="",end:l=!1,style:p,to:f,viewTransition:y,children:v}=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){void 0===t&&(t={});let r=s.useContext(g);null!=r||(0,u.Oi)(!1);let{basename:n}=P(o.useViewTransitionState),a=(0,c.x$)(e,{relative:t.relative});if(!r.isTransitioning)return!1;let i=(0,u.pb)(r.currentLocation.pathname,n)||r.currentLocation.pathname,l=(0,u.pb)(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=(0,u.B6)(a.pathname,l)||null!=(0,u.B6)(a.pathname,i)}(w)&&!0===y,j=E.encodeLocation?E.encodeLocation(w).pathname:w.pathname,A=S.pathname,T=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;a||(A=A.toLowerCase(),T=T?T.toLowerCase():null,j=j.toLowerCase()),T&&x&&(T=(0,u.pb)(T,x)||T);let N="/"!==j&&j.endsWith("/")?j.length-1:j.length,L=A===j||!l&&A.startsWith(j)&&"/"===A.charAt(N),D=null!=T&&(T===j||!l&&T.startsWith(j)&&"/"===T.charAt(j.length)),_={isActive:L,isPending:D,isTransitioning:C},O=L?n:void 0;r="function"==typeof i?i(_):[i,L?"active":null,D?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let I="function"==typeof p?p(_):p;return s.createElement(k,d({},b,{"aria-current":O,className:r,ref:t,style:I,to:f,viewTransition:y}),"function"==typeof v?v(_):v)});function A(e){let{getKey:t,storageKey:r}=e;return function(e){var t;let r;let{getKey:n,storageKey:a}=void 0===e?{}:e,{router:l}=P(o.UseScrollRestoration),{restoreScrollPosition:h,preventScrollReset:p}=(t=i.UseScrollRestoration,(r=s.useContext(c.Rq))||(0,u.Oi)(!1),r),{basename:f}=s.useContext(c.jb),m=(0,c.zy)(),y=(0,c.FE)(),g=(0,c.cq)();s.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e,t){let{capture:r}={};s.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}},[e,r])}(s.useCallback(()=>{"idle"===g.state&&(D[(n?n(m,y):null)||m.key]=window.scrollY);try{sessionStorage.setItem(a||L,JSON.stringify(D))}catch(e){}window.history.scrollRestoration="auto"},[a,n,g.state,m,y])),"undefined"!=typeof document&&(s.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(a||L);e&&(D=JSON.parse(e))}catch(e){}},[a]),s.useLayoutEffect(()=>{let e=n&&"/"!==f?(e,t)=>n(d({},e,{pathname:(0,u.pb)(e.pathname,f)||e.pathname}),t):n,t=null==l?void 0:l.enableScrollRestoration(D,()=>window.scrollY,e);return()=>t&&t()},[l,f,n]),s.useLayoutEffect(()=>{if(!1!==h){if("number"==typeof h){window.scrollTo(0,h);return}if(m.hash){let e=document.getElementById(decodeURIComponent(m.hash.slice(1)));if(e){e.scrollIntoView();return}}!0!==p&&window.scrollTo(0,0)}},[m,h,p]))}({getKey:t,storageKey:r}),null}function P(e){let t=s.useContext(c.sp);return t||(0,u.Oi)(!1),t}function T(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 N(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={}));let L="react-router-scroll-positions",D={};function _(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:()=>Y,C5:()=>H,Ew:()=>O,FE:()=>D,Ix:()=>V,KP:()=>z,LG:()=>_,RQ:()=>g,Rq:()=>l,V8:()=>F,Ye:()=>E,Zp:()=>b,cq:()=>L,g:()=>S,jb:()=>c,ph:()=>x,qh:()=>$,r5:()=>I,sp:()=>s,sv:()=>q,wE:()=>X,wQ:()=>y,x$:()=>R,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 b(){let{isDataRoute:e}=a.useContext(d);return e?function(){let{router:e}=P(j.UseNavigateStable),t=N(A.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 w=a.createContext(null);function S(){let{matches:e}=a.useContext(d),t=e[e.length-1];return t?t.params:{}}function R(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 E(e,t){return x(e,t)}function x(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],y=p?p.params:{};p&&p.pathname;let g=p?p.pathnameBase:"/";p&&p.route;let v=m();if(t){var b;let e="string"==typeof t?(0,o.Rr)(t):t;"/"===g||(null==(b=e.pathname)?void 0:b.startsWith(g))||(0,o.Oi)(!1),s=e}else s=v;let w=s.pathname||"/",S=w;if("/"!==g){let e=g.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||C,u&&(d<0&&0===o?(B[i="route-fallback"]||(B[i]=!0),h=!0,f=null):d===o&&(h=!0,f=n.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,o+1)),y=()=>{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(k,{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:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):y()},null)}(R&&R.map(e=>Object.assign({},e,{params:Object.assign({},y,e.params),pathname:(0,o.HS)([g,l.encodeLocation?l.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?g:(0,o.HS)([g,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 C=a.createElement(function(){let e=I(),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 k(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 j=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(j||{}),A=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}(A||{});function P(e){let t=a.useContext(s);return t||(0,o.Oi)(!1),t}function T(e){let t=a.useContext(l);return t||(0,o.Oi)(!1),t}function N(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 T(A.UseNavigation).navigation}function D(){let{matches:e,loaderData:t}=T(A.UseMatches);return a.useMemo(()=>e.map(e=>(0,o.ro)(e,t)),[e,t])}function _(){let e=T(A.UseLoaderData),t=N(A.UseLoaderData);if(e.errors&&null!=e.errors[t]){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function O(e){return T(A.UseRouteLoaderData).loaderData[e]}function I(){var e;let t=a.useContext(h),r=T(A.UseRouteError),n=N(A.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}let M=0;function z(e){let{router:t,basename:r}=P(j.UseBlocker),n=T(A.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(++M);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 B={},W={},U=(e,t,r)=>(function(e,t){W[t]||(W[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 F(e,t){null!=e&&e.v7_startTransition||U("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||U("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist||U("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||U("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||U("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||U("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function H(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=b(),y=JSON.stringify((0,o.Gh)(t,(0,o.yD)(u,s.v7_relativeSplatPath),h,"path"===i));return a.useEffect(()=>p(JSON.parse(y),{replace:r,state:n,relative:i}),[p,y,i,r,n]),null}function q(e){var t;let r;return t=e.context,(r=a.useContext(d).outlet)?a.createElement(w.Provider,{value:t},r):r}function $(e){(0,o.Oi)(!1)}function V(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:y="/",search:g="",hash:v="",state:b=null,key:w="default"}=n,S=a.useMemo(()=>{let e=(0,o.pb)(y,p);return null==e?null:{location:{pathname:e,search:g,hash:v,state:b,key:w},navigationType:s}},[p,y,g,v,b,w,s]);return null==S?null:a.createElement(c.Provider,{value:m},a.createElement(u.Provider,{children:r,value:S}))}function Y(e){let{children:t,location:r}=e;return x(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!==$&&(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 G=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(G||{});function X(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:()=>eA,Dx:()=>eE,NP:()=>ex,i7:()=>eP});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=j&&(j=t+1),C.set(e,t),k.set(t,e)},T="style["+w+'][data-styled-version="5.3.11"]',N=RegExp("^"+w+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=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}(),F=/(a)(d)/gi,H=function(e){return String.fromCharCode(e+(e>25?39:97))};function q(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=H(t%52)+r;return(H(t%52)+r).replace(F,"$1-$2")}var $=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},V=function(e){return $(5381,e)};function Y(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=$(this.baseHash,r.hash),u="",d=0;d>>0);if(!t.hasNameForId(n,m)){var y=r(u,"."+m,void 0,n);t.insertRules(n,m,y)}a.push(m)}}return a.join(" ")},e}(),K=/^\s*\/\/.*$/gm,J=[":","[",".","#"];function Q(e){var t,r,n,a,o=void 0===e?y:e,i=o.options,l=void 0===i?y: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!==J.indexOf(o[r.length])||o.match(a)?e:"."+t};function g(e,o,i,s){void 0===s&&(s="&");var l=e.replace(K,""),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}}])),g.hash=u.length?u.reduce(function(e,t){return t.name||E(15),$(e,t.name)},5381).toString():"",g}var Z=a.createContext(),ee=(Z.Consumer,a.createContext()),et=(ee.Consumer,new U),er=Q();function en(){return(0,a.useContext)(Z)||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 Q({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(Z.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,ev=/(^-|-$)/g;function eb(e){return e.replace(eg,"-").replace(ev,"")}var ew=function(e){return q(V(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)?g(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={},ek=function(e){return function e(t,r,a){if(void 0===a&&(a=y),!(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[k="string"!=typeof x?"sc":eb(x)]=(eC[k]||0)+1,j=k+"-"+ew("5.3.11"+k+eC[k]),C?C+"-"+j:j):u,f=r.displayName,w=void 0===f?eS(t)?"styled."+t:"Styled("+v(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,k,j,A,P=new X(n,S,o?t.componentStyle:void 0),T=P.isStatic&&0===l.length,N=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,v=e.shouldForwardProp,b=e.styledComponentId,w=e.target,S=(void 0===(o=ey(t,(0,a.useContext)(eE),f)||y)&&(o=y),i=h({},t,{theme:o}),s={},d.forEach(function(e){var t,r,n,a=e;for(t in g(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(y,l,u):p.generateAndInjectStyles(R,l,u)),C=E.$as||t.$as||E.as||t.as||w,k=eS(C),j=E!==t?h({},t,{},E):t,A={};for(var P in j)"$"!==P[0]&&"as"!==P&&("forwardedAs"===P?A.as=j[P]:(v?v(P,c.A,C):!k||(0,c.A)(P))&&(A[P]=j[P]));return t.style&&E.style!==t.style&&(A.style=h({},t.style,{},E.style)),A.className=Array.prototype.concat(m,b,x!==b?x:null,t.className,E.className).filter(Boolean).join(" "),A.ref=r,(0,a.createElement)(C,A)}(A,e,t,T)};return N.displayName=w,(A=a.forwardRef(N)).attrs=R,A.componentStyle=P,A.displayName=w,A.shouldForwardProp=E,A.foldedComponentIds=o?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):m,A.styledComponentId=S,A.target=o?t.target:t,A.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(v(t)));return e(t,h({},o,{attrs:R,componentId:i}),n)},Object.defineProperty(A,"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 eA(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=ek},21253:(e,t,r)=>{r.d(t,{E:()=>n});let n={FETCH_THEN_TRANSITION:"fetch-then-transition",TRANSITION_WHILE_FETCHING:"transition-while-fetch",TRANSITION_WITHOUT_FETCH:"transition-without-fetch"}},40937:(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)})}}},52748:(e,t,r)=>{r.d(t,{R:()=>DeferredRegistry});var n=r(64128);function a(e,t){var r=function(e,t,r){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}(e,t,0);return r.get?r.get.call(e):r.value}var o=new WeakMap;let DeferredRegistry=class DeferredRegistry{register(e,t){let r=a(this,o).get(e);if(r)r.resolve(t);else{let r=(0,n.Y)();r.resolve(t),a(this,o).set(e,r)}}getRegistration(e){let t=a(this,o).get(e);if(t)return t;let r=(0,n.Y)();return a(this,o).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,o,{writable:!0,value:new Map})}}},4137:(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."}},82824:(e,t,r)=>{r.d(t,{$h:()=>DataRouterApplicationBuilder});var n=r(80506);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}function i(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)}function s(e,t,r){var n=a(e,t,"set");return!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),r}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c=new WeakMap;let DataRouterApplication=class DataRouterApplication{registration(e){return this.embeddedData=e?.embeddedData,{routes:this.getRoutes()}}getRoutes(){return"function"==typeof o(this,c)?o(this,c).call(this,{isEnabled:e=>{let t=this.embeddedData?.appPayload?.enabled_features;if(t&&e in t)return t[e]}}):o(this,c)}constructor(e,t){i(this,c,{writable:!0,value:void 0}),l(this,"embeddedData",void 0),this.name=e,s(this,c,t),this.registration=this.registration.bind(this)}};var u=new WeakMap;let DataRouterApplicationBuilder=class DataRouterApplicationBuilder{static create(e){return new DataRouterApplicationBuilder(e)}createDataRouterAppFromRoutes(e){return s(this,u,new DataRouterApplication(this.name,e)),o(this,u)}createQueryRouteConfig(e,{path:t,index:r,queries:a=[]}){return function(e){if(e.length>4)throw new h(e.length)}(a),function(e){if(!/^[a-z][a-zA-Z0-9]*$/.test(e))throw new InvalidIdentifierError(e)}(e),new n.Wy({appName:this.name,id:e,path:t,queries:function(e){let t=new Set;return Object.fromEntries(e.map(({queryName:e,...r})=>{if(t.has(e))throw new d(e);return t.add(e),[e,r]}))}(a),index:r??!1,getEmbeddedData:this.getEmbeddedData})}constructor(e){i(this,u,{writable:!0,value:void 0}),l(this,"getEmbeddedData",()=>{if(!o(this,u))throw Error("getEmbeddedData should only be called after createDataRouterAppFromRoutes");return o(this,u).embeddedData}),this.name=e}};let d=class DuplicateRouteQueryNameError extends Error{constructor(e){super(`query names cannot be duplicated: \`${e}\` has already been defined for this route.`),this.name="DuplicateRouteQueryNameError"}},h=class InvalidNumberOfQueryConfigsError extends Error{constructor(e){super(`Invalid number of query configs error. ${e} queries supplied of a max 4 queries allowed.`),this.name="InvalidNumberOfQueryConfigsError"}};let InvalidIdentifierError=class InvalidIdentifierError extends Error{constructor(e){super(`\`${e}\` must be camel cased`),this.name="InvalidIdentifierError"}}},67615:(e,t,r)=>{r.d(t,{g:()=>n});let n={Blocking:"Blocking",Deferred:"Deferred"}},90611:(e,t,r)=>{r.d(t,{Y:()=>o});var n=r(67615),a=r(2963);function o({...e}={}){return{queryName:"mainQuery",queryDeps:({pathname:e,searchParams:t})=>({pathname:e,searchParams:t}),queryFn:async({routeId:e,queryDeps:t})=>{let r=await (0,a.X)({queryDeps:t}),n=r.payload?.[e];if(!n)throw Error(`Unable to find payload for route Id: ${e}`);if(!("mainQuery"in n))throw Error(`Payload for route ID (${e}) does not have a 'mainQuery' property`);return n},type:n.g.Blocking,select:e=>e.mainQuery,...e}}},2963:(e,t,r)=>{r.d(t,{X:()=>i});var n=r(57572),a=r(74165),o=r(56366);async function i({queryDeps:{pathname:e,searchParams:t,init:r}}){let i=function(e,t){let r=[e],n=(function(e){if(e instanceof URLSearchParams)return e;if("string"==typeof e)return new URLSearchParams(e);let t=new URLSearchParams;if(null==e)return t;for(let[r,n]of Array.isArray(e)?e:Object.entries(e))null!=n&&t.append(r,n);return t})(t).toString();return n&&r.push(n.toString()),r.join("?")}(e,t),s=await (0,n.Sr)(i,r);if(!s.ok)throw new a.o(s.statusText,s);let l=await s.json();return(0,o.Av)(l),l}},80506:(e,t,r)=>{r.d(t,{Wy:()=>QueryRoute,yT:()=>y});var n=r(73081),a=r(47584),o=r(31993),i=r(47767),s=r(45588),l=r(42505),c=r(67615);function u(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function d(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function h(e,t){var r=d(e,t,"get");return r.get?r.get.call(e):r.value}function p(e,t,r){u(e,t),t.set(e,r)}function f(e,t,r){var n=d(e,t,"set");return!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),r}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(){return(0,i.FE)()}let g={refetchOnWindowFocus:!1,retry:!1,networkMode:"always",staleTime:864e5},v=200,b=new WeakSet;var w=new WeakMap,S=new WeakMap,R=new WeakSet,E=new WeakMap;let QueryRoute=class QueryRoute{isSameRoute(e){return!!("object"==typeof e&&e&&"id"in e&&"string"==typeof e.id&&e.id===this.id)}generatePath(e,t){return(0,s.AO)({pathname:(0,s.tW)(this.path,e),search:t?.search?new URLSearchParams(t.search).toString():void 0,hash:t?.hash})}constructor(e){!function(e,t){u(e,t),t.add(e)}(this,R),p(this,w,{writable:!0,value:void 0}),p(this,S,{writable:!0,value:void 0}),m(this,"id",void 0),m(this,"path",void 0),m(this,"queries",void 0),m(this,"index",void 0),p(this,E,{writable:!0,value:async({request:e,params:t})=>{var r,i;!function(e){a.KJ&&!b.has(e)&&((0,n.SC)("react"),b.add(e))}(e);let u=[],{searchParams:d}=new URL(e.url,a.fV.origin),p=(r=this.path,i=t,(0,s.tW)(r,Object.fromEntries(C(i).map(([e,t])=>[e,void 0===t?null:t])))),f=(0,l.S)(),m=C(this.queries).map(([e,{queryFn:r,queryDeps:n,type:i=c.g.Blocking,staleTimeForNavigation:s=v,...l}])=>{let m=n?.({pathname:p,params:t,searchParams:d})??{},y={appName:h(this,w),routeId:this.id,routePath:this.path,queryName:e.toString(),queryDeps:m},b=(0,o.j)({...g,queryKey:function({appName:e,routeId:t,routePath:r,queryName:n,queryDeps:a}){return[e,t,r,n,a]}(y),queryFn:({signal:e,meta:t})=>r(y,{signal:e,meta:t}),...l});if((function(e,t,r){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return r})(this,R,x).call(this,e,b.queryKey),a.KJ){let e={...b,staleTime:s};switch(i){case c.g.Deferred:f.prefetchQuery(e);break;case c.g.Blocking:{let t=f.ensureQueryData({...e,revalidateIfStale:!0});u.push(t);break}default:throw Error(`Invalid QueryRouteQueryType defined, \`${i}\`. Valid QueryRouteQueryTypes are ${JSON.stringify(Object.keys(c.g))}`)}}return[e,{queryConfig:b,type:i}]});return await Promise.all(u),{route:this,queries:Object.fromEntries(m)}}}),m(this,"toRoute",e=>this.index?{...e,id:this.id,children:void 0,path:this.path,index:this.index,loader:h(this,E)}:{...e,id:this.id,path:this.path,index:this.index,loader:h(this,E)}),f(this,w,e.appName),this.id=e.id,this.path=e.path,this.queries=e.queries,this.index=e.index,f(this,S,e.getEmbeddedData)}};function x(e,t){let r=(0,l.S)(),n=h(this,S).call(this)?.payload,a="mainQuery"===e?n?.[this.id]:n?.[this.id]?.[e];a&&("mainQuery"===e?delete n?.[this.id]:delete n?.[this.id]?.[e],r.setQueryData(t,a))}let C=e=>Object.entries(e)},74165:(e,t,r)=>{r.d(t,{c:()=>n,o:()=>ResponseError});let ResponseError=class ResponseError extends Error{constructor(e,t){super(e),this.response=t,this.name="ResponseError"}};function n(e){return e instanceof ResponseError}},55048:(e,t,r)=>{r.d(t,{E:()=>o});var n=r(96540),a=r(44036);function o(){return(0,n.useContext)(a.e)}},2741:(e,t,r)=>{r.d(t,{L:()=>o});var n=r(47767),a=r(49787);function o(e){return(0,a.B1)(e),(0,n.g)()}},49787:(e,t,r)=>{r.d(t,{B1:()=>s,xX:()=>l});var n=r(21728),a=r(97286),o=r(47767),i=r(80506);function s(e){let t=(0,i.yT)(),r=t.findIndex(t=>t.id===e.id);if(-1===r)throw Error("Cannot read data from unmounted routes");let{route:n}=(0,o.LG)(),{queries:a}=(0,o.Ew)(e.id);if(r>t.findIndex(e=>e.id===n.id))throw Error("Cannot read data from child routes");return a}function l(e,t,r){let o,i;let l=(0,n.c)(6),{queryConfig:c}=s(e)[t];l[0]!==c||l[1]!==r?(o={...c,...r},l[0]=c,l[1]=r,l[2]=o):o=l[2];let u=(0,a.I)(o);return l[3]!==c.queryKey||l[4]!==u?(i={...u,queryKey:c.queryKey},l[3]=c.queryKey,l[4]=u,l[5]=i):i=l[5],i}},18396:(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()}})}},58135:(e,t,r)=>{r.d(t,{V:()=>n});let n="__gh__react-core-preventAutofocus"},42505:(e,t,r)=>{let n;r.d(t,{S:()=>o});var a=r(65490);function o(){return n??(n=new a.E({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1,networkMode:"always"},mutations:{networkMode:"always"}}}))}},97074:(e,t,r)=>{r.d(t,{Mm:()=>i,QJ:()=>s,b3:()=>o});var n=r(21728),a=r(96540);function o(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 i(e){let t,r,o,i;let l=(0,n.c)(7),c=(0,a.useRef)(e.__wrapperElement.anchor||null),[u,d]=(0,a.useState)(!1);l[0]!==u?(t=()=>{d(!u)},l[0]=u,l[1]=t):t=l[1];let h=t;return l[2]!==u?(r=()=>{c.current&&(c.current.setAttribute("aria-expanded",u.toString()),c.current.setAttribute("aria-haspopup","true"))},o=[c,u],l[2]=u,l[3]=r,l[4]=o):(r=l[3],o=l[4]),(0,a.useEffect)(r,o),s(e,h),l[5]!==u?(i={ref:c,open:u,setOpen:d},l[5]=u,l[6]=i):i=l[6],i}function s(e,t){let r,o;let i=(0,n.c)(3),s=(0,a.useRef)(e.__wrapperElement.anchor);i[0]!==t?(r=()=>{let e=s.current;if(e)return e.addEventListener("click",t),()=>e.removeEventListener("click",t)},o=[s,t],i[0]=t,i[1]=r,i[2]=o):(r=i[1],o=i[2]),(0,a.useEffect)(r,o)}},88292:(e,t,r)=>{r.d(t,{w:()=>eT,o:()=>eP});var n=r(52748);let a=new n.R;async function o(e){return a.getRegistration(e).promise}let i=new n.R;async function s(e){return i.getRegistration(e).promise}var l=r(74848),c=r(39595),u=r(84976),d=r(40937);let h=new WeakMap;var p=r(47767),f=r(99487),m=r(7989),y=r(7e4),g=r(38359),v=r(21728),b=r(96540),w=r(58135);function S(e,t,r){let n,a,o;let i=(0,v.c)(8),s=(0,b.useRef)(void 0),l=(0,b.useRef)(t.state);i[0]!==t.state?(n=()=>{l.current=t.state},i[0]=t.state,i[1]=n):n=i[1],(0,b.useEffect)(n),i[2]!==r||i[3]!==e||i[4]!==t.pathname||i[5]!==t.search?(a=()=>{if("POP"===r)return;let n=t.pathname+t.search;if(void 0===s.current)s.current=n;else if(s.current!==n&&!e){var a;if(!("object"==typeof(a=l.current)&&null!==a&&w.V in a&&!0===a[w.V])){let e=document.querySelector("[data-react-autofocus]");!e&&(e=document.querySelector("react-app h1"))&&!e.hasAttribute("tabindex")&&e.setAttribute("tabindex","-1"),e?.focus()}s.current=n}},o=[e,t.pathname,t.search,r],i[2]=r,i[3]=e,i[4]=t.pathname,i[5]=t.search,i[6]=a,i[7]=o):(a=i[6],o=i[7]),(0,b.useEffect)(a,o)}function R(){return S(!1,(0,p.zy)(),(0,p.wQ)()),null}try{R.displayName||(R.displayName="NavigationFocusListener")}catch{}var E=r(97665),x=r(67307),C=r(18056),k=r(67615),j=r(80506);let A=C.z.INITIAL;function P(){let e,t,r,n;let a=(0,v.c)(10),o=(0,g.X)(),i=(0,j.yT)(),s=(0,E.jE)();return a[0]!==o||a[1]!==i||a[2]!==s?(e=()=>{let e=T(i,s);document.dispatchEvent(new x.gh({payload:e,appPayload:o}))},t=[i,o,s],a[0]=o,a[1]=i,a[2]=s,a[3]=e,a[4]=t):(e=a[3],t=a[4]),(0,b.useEffect)(e,t),a[5]!==o||a[6]!==i||a[7]!==s?(r=()=>{let e=function(){let e=T(i,s);document.dispatchEvent(new x.gh({payload:e,appPayload:o}))};return document.addEventListener(A,e),()=>{document.removeEventListener(A,e)}},n=[i,o,s],a[5]=o,a[6]=i,a[7]=s,a[8]=r,a[9]=n):(r=a[8],n=a[9]),(0,b.useEffect)(r,n),null}function T(e,t){let r={};for(let n of e){if(!n.data)continue;let e=n.data.route.id;for(let a of Object.values(n.data.queries))a.type===k.g.Blocking&&(r[e]=t.getQueryData(a.queryConfig.queryKey))}return r}try{P.displayName||(P.displayName="PublishPayload")}catch{}var N=r(45588),L=r(74165),D=r(2640),_=r(24664);let O=()=>{let e;let t=(0,v.c)(1),r=(0,p.r5)();return(0,N.pX)(r)&&404===r.status?null:(t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsxs)(_.A,{border:!1,spacious:!1,children:[(0,l.jsx)(_.A.Heading,{children:"Unable to load page."}),(0,l.jsx)(_.A.Description,{children:"Please reload page and try again"})]}),t[0]=e):e=t[0],e)},I=()=>{let e=(0,v.c)(6);!function(){let e,t,r;let n=(0,v.c)(5),a=(0,p.r5)();n[0]!==a?(e=(0,L.c)(a)?a.response.status:void 0,n[0]=a,n[1]=e):e=n[1];let o=e;n[2]!==o?(t=()=>{if(void 0!==o){let e=function(e){let t=404===e?"404 Page not found":500===e?"500 Internal server error":`Error ${e}`;return(0,D.Y)(t)}(o);(0,D.D)(e)}},r=[o],n[2]=o,n[3]=t,n[4]=r):(t=n[3],r=n[4]),(0,b.useEffect)(t,r)}();let t=(0,p.r5)();if((0,L.c)(t)){let r,n,a,o;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,l.jsx)(_.A.Heading,{children:"Unable to load page."}),e[0]=r):r=e[0];let i=`Status: ${t.response.status} Message: ${t.message}`;return e[1]!==i?(n=(0,l.jsx)(_.A.Description,{children:i}),e[1]=i,e[2]=n):n=e[2],e[3]===Symbol.for("react.memo_cache_sentinel")?(a=(0,l.jsx)(_.A.Description,{children:"Please reload page and try again"}),e[3]=a):a=e[3],e[4]!==n?(o=(0,l.jsxs)(_.A,{border:!1,spacious:!1,children:[r,n,a]}),e[4]=n,e[5]=o):o=e[5],o}return null};try{O.displayName||(O.displayName="RouterErrorBoundary")}catch{}try{I.displayName||(I.displayName="ResponseErrorElement")}catch{}var M=r(38568),z=r(47584),B=r(73218);let W=new Map,U=!1,F=z.fV.href;async function H(){let{session:e}=await r.e("vendors-node_modules_github_turbo_dist_turbo_es2017-esm_js").then(r.bind(r,7332));document.addEventListener("turbo:click",e=>{F=e.detail.url}),window.addEventListener("popstate",()=>{let{scrollPosition:t}=e.history.getRestorationDataForIdentifier(e.history.restorationIdentifier)||{};t&&W.set(window.location.href,t)})}function q(){z.cg&&!U&&(H(),U=!0)}function $(){let e=window.location.href;if(e===F&&e.includes("#"))return;F=e;let t=W.get(e);if(!t)return;let r=setTimeout(()=>{window.scrollTo(t.x,t.y)},0);return()=>{clearTimeout(r)}}let V=z.cg?function(){(0,M.N)($)}:B.l;function Y(){let e;let t=(0,v.c)(1);return(V(),"undefined"!=typeof jest)?null:(t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsx)(u.OA,{}),t[0]=e):e=t[0],e)}"function"==typeof afterEach&&afterEach(()=>{W.clear(),U=!1}),q();try{Y.displayName||(Y.displayName="CombinedScrollRestoration")}catch{}var G=r(57516),X=r(95505),K=r(73081);let J=(e,t,r)=>{let n,a;let o=(0,v.c)(6),i=(0,b.useRef)(void 0);o[0]!==r||o[1]!==t||o[2]!==e.key||o[3]!==e.pathname?(n=()=>{t||void 0!==i.current&&i.current===e.key||((0,X.LM)()?(Q(r),function(e){let t=z.XC?.querySelector("meta[name=visitor-payload]");if(!t)return;let r=JSON.parse(atob(t.content));r.referrer=new URL(e,z.fV.origin).href,t.content=btoa(JSON.stringify(r))}(e.pathname)):Z(r),i.current=e.key)},a=[e.key,e.pathname,t,r],o[0]=r,o[1]=t,o[2]=e.key,o[3]=e.pathname,o[4]=n,o[5]=a):(n=o[4],a=o[5]),(0,b.useEffect)(n,a)},Q=e=>{e?(0,K.o4)():((0,K.rZ)(),(0,K.iS)())},Z=e=>{if(e)return;let t=function(){window.performance.measure(ee);let e=window.performance.getEntriesByName(ee).pop();return e?e.duration:null}();t&&(0,G.i)({requestUrl:window.location.href,distributionKey:"REACT_NAV_DURATION",distributionValue:Math.round(t),distributionTags:["REACT_NAV_HARD"]})},ee="react_nav_duration",et=(0,b.memo)(function(){return J((0,p.zy)(),!!(0,p.cq)().location,null),null});try{et.displayName||(et.displayName="SoftNavLifecycleListener")}catch{}function er(){let e,t;let r=(0,v.c)(4),n=(0,j.yT)(),a=(0,E.jE)();return r[0]!==n||r[1]!==a?(e=()=>{for(let e of n.toReversed()){if(!e.data?.route)continue;let t=e.data?.queries.mainQuery;if(!t)continue;let r=a.getQueryData(t.queryConfig.queryKey);if(r.title){(0,D.D)((0,D.Y)(r.title));break}}},t=[n,a],r[0]=n,r[1]=a,r[2]=e,r[3]=t):(e=r[2],t=r[3]),(0,b.useEffect)(e,t),null}try{er.displayName||(er.displayName="TitleManager")}catch{}var en=r(95473),ea=r(12152),eo=r(21253);let ei=(e,t)=>null!==e&&null!==t&&e.pathname===t.pathname&&e.search===t.search&&!!t.hash,es=e=>{let t=404===e.httpStatus?"404 Page not found":500===e.httpStatus?"500 Internal server error":e.httpStatus?`Error ${e.httpStatus}`:"Error";return(0,D.Y)(t)};function el(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function ec(e,t){var r=function(e,t,r){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}(e,t,0);return r.get?r.get.call(e):r.value}function eu(e,t,r){el(e,t),t.set(e,r)}function ed(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var eh=new WeakMap,ep=new WeakSet,ef=new WeakMap;let em=class Navigator{update(e){var t;this.state=Object.assign({},this.state,e);let r=this.getAppNavigationState();null===(t=function(e,t,r){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return r}(this,ep,ey))||void 0===t||t.call(this,r)}subscribe(e){let t=ec(this,eh).push(e);return()=>{ec(this,eh)[t]=null}}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,K.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===eo.E.TRANSITION_WHILE_FETCHING&&this.navigateWithoutPayload(e),t.route.transitionType===eo.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,N.ue(t,e.pathname)?.[0]}isHashNavigation(e){return ei(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){!function(e,t){el(e,t),t.add(e)}(this,ep),ed(this,"state",void 0),eu(this,eh,{writable:!0,value:[]}),eu(this,ef,{writable:!0,value:new WeakMap}),ed(this,"getAppNavigationState",()=>{let e=ec(this,ef).get(this.state);if(e)return e;let{location:t,error:r,navigateOnError:n,routeStateMap:a,appPayload:o,pendingNavigation:i}=this.state,s={location:t,error:r,navigateOnError:n,routeStateMap:a,appPayload:o,isLoading:!!i};return ec(this,ef).set(this.state,s),s}),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:z.Kn?.state?.turboCount}}};function ey(e){for(let t of ec(this,eh))t?.(e)}function eg(e){let t,r,n,a,o,i,s;let c=(0,v.c)(28),{appName:u,initialLocation:d,history:h,embeddedData:y,routes:g,App:w,wasServerRendered:R,ssrError:E,onError:x}=e;c[0]!==u||c[1]!==y||c[2]!==d||c[3]!==g?(t={initialLocation:d,appName:u,embeddedData:y,routes:g},c[0]=u,c[1]=y,c[2]=d,c[3]=g,c[4]=t):t=c[4];let[C,k]=function(e){let t,r,n,a,o;let i=(0,v.c)(13),{initialLocation:s,embeddedData:l,routes:c}=e;i[0]!==l||i[1]!==s||i[2]!==c?(t=()=>{let{appPayload:e,...t}=l;return new em(s,{...t,enabled_features:e?.enabled_features?e.enabled_features:{}},e,c)},i[0]=l,i[1]=s,i[2]=c,i[3]=t):t=i[3];let[u]=(0,b.useState)(t);i[4]!==u?(r=e=>{let t=u.subscribe(e);return()=>{t()}},i[4]=u,i[5]=r):r=i[5];let d=(0,b.useSyncExternalStore)(r,u.getAppNavigationState,u.getAppNavigationState);i[6]!==u?(n=e=>{(0,b.startTransition)(()=>{u.handleHistoryUpdate(e)})},i[6]=u,i[7]=n):n=i[7];let h=n;return i[8]!==h?(a={handleHistoryUpdate:h},i[8]=h,i[9]=a):a=i[9],i[10]!==d||i[11]!==a?(o=[d,a],i[10]=d,i[11]=a,i[12]=o):o=i[12],o}(t),{location:j,error:A,routeStateMap:P,appPayload:T,navigateOnError:N,isLoading:L}=C,{handleHistoryUpdate:_}=k;return!function(e,t,r){let n,a;let o=(0,v.c)(5),i=(0,b.useRef)(null);o[0]!==e||o[1]!==t||o[2]!==r?(n=()=>{if(i.current||(i.current=r),!ei(i.current,r)&&(t||e)){if(t){let e=es(t);(0,D.D)(e)}else e?.type==="loaded"&&e.title&&(0,D.D)((0,D.Y)(e.title))}i.current?.key!==r.key&&(i.current=r)},a=[t,e,r],o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=a):(n=o[3],a=o[4]),(0,b.useEffect)(n,a)}(P[j.key],A,j),S(L,j),J(j,L,A),V(),c[5]!==_||c[6]!==h?(r=()=>h.listen(_),n=[h,_],c[5]=_,c[6]=h,c[7]=r,c[8]=n):(r=c[7],n=c[8]),(0,M.N)(r,n),c[9]!==E?(a=(0,l.jsx)(m.h,{ssrError:E}),c[9]=E,c[10]=a):a=c[10],c[11]!==w||c[12]!==T||c[13]!==A||c[14]!==h||c[15]!==j||c[16]!==N||c[17]!==P||c[18]!==g||c[19]!==a?(o=(0,l.jsx)(en.l,{App:w,appPayload:T,error:A,history:h,location:j,navigateOnError:N,Router:p.Ix,routes:g,routeStateMap:P,children:a}),c[11]=w,c[12]=T,c[13]=A,c[14]=h,c[15]=j,c[16]=N,c[17]=P,c[18]=g,c[19]=a,c[20]=o):o=c[20],c[21]!==x||c[22]!==o?(i=(0,l.jsx)(ea.t,{onError:x,critical:!0,children:o}),c[21]=x,c[22]=o,c[23]=i):i=c[23],c[24]!==u||c[25]!==i||c[26]!==R?(s=(0,l.jsx)(f.U,{appName:u,wasServerRendered:R,dataRouterEnabled:!1,children:i}),c[24]=u,c[25]=i,c[26]=R,c[27]=s):s=c[27],s}q();try{eg.displayName||(eg.displayName="NavigatorClientEntry")}catch{}var ev=r(42505);let eb={v7_fetcherPersist:!0,v7_normalizeFormMethod:!0,v7_partialHydration:!0,v7_relativeSplatPath:!0,v7_skipActionErrorRevalidation:!0},ew={v7_startTransition:!0};var eS=r(94856),eR=r(48416);function eE(e,t,r){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return r}function ex(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 eC=new WeakSet,ek=new WeakSet;let ReactAppElement=class ReactAppElement extends eS.H{connectedCallback(){super.connectedCallback(),this.uuid=(0,eR._)(),(0,eR.c)(this.uuid)}get isDataRouterEnabled(){return"true"===this.getAttribute("data-data-router-enabled")}async getReactNode(e,t){if(this.isDataRouterEnabled){let r=await s(this.name);return eE(this,eC,ej).call(this,e,t,r.registration)}let r=await o(this.name);return eE(this,ek,eA).call(this,e,t,r.registration)}get isLazy(){return"true"===this.getAttribute("data-lazy")}constructor(...e){super(...e),ex(this,eC),ex(this,ek),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(this,"nameAttribute","app-name")}};async function ej(e,t,r){e&&(0,ev.S)().removeQueries({queryKey:[this.name]});let{routes:n}=r({embeddedData:e}),a=(0,u.Ys)(function(e,{ssrError:t,appName:r,wasServerRendered:n,children:a,HydrateFallback:o,dataRouterEnabled:i,appPayload:s}){return[{errorElement:(0,l.jsx)(O,{}),HydrateFallback:o,element:(0,l.jsx)(f.U,{appName:r,wasServerRendered:n,dataRouterEnabled:i,children:(0,l.jsx)(g.z.Provider,{value:s,children:(0,l.jsxs)(y.d,{routes:e,children:[(0,l.jsx)(p.sv,{}),a,(0,l.jsx)(m.h,{ssrError:t}),(0,l.jsx)(et,{}),(0,l.jsx)(R,{}),(0,l.jsx)(Y,{}),(0,l.jsx)(P,{}),(0,l.jsx)(er,{})]})})}),children:[{errorElement:(0,l.jsx)(I,{}),children:e}]}]}(n,{appPayload:e.appPayload,ssrError:this.ssrError,appName:this.name,wasServerRendered:this.hasSSRContent,dataRouterEnabled:!0}),{future:eb});return!function(e){if(h.get(e))return;h.set(e,!0);let t=e.navigate.bind(e);e.navigate=function(e,r){if("number"==typeof e)return t(e);let n=!r?.replace,a=r?.state?.skipTurbo;return t(e,{...r,state:{...r?.state,skipTurbo:n?a??!0:a}})}}(a),(0,l.jsx)(u.pg,{router:a,future:ew})}async function eA(e,t,r){let{App:n,routes:a}=r(),o=this.getAttribute("initial-path");if(this.isLazy){let t=await fetch(o,{mode:"no-cors",cache:"no-cache",credentials:"include"}),{payload:r}=await t.json();e.payload=r}let i=globalThis.window,{pathname:s,search:c,hash:u}=new URL(`${o}${i?.location.hash??""}`,i?.location.href??"https://github.com"),h=(0,d.z)({window:i}),{key:p,state:f}=h.location;return(0,l.jsx)(eg,{appName:this.name,initialLocation:{pathname:s,search:c,hash:u,key:p,state:f},history:h,embeddedData:e,routes:a,App:n,wasServerRendered:this.hasSSRContent,ssrError:this.ssrError,onError:t})}function eP(e,t){a.register(e,{type:"NavigatorApp",registration:t})}function eT(e){i.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}([c.p_],ReactAppElement)},11110:(e,t,r)=>{r.d(t,{k:()=>d});let n=new(r(52748)).R;var a=r(74848),o=r(39595),i=r(94856),s=r(18314),l=r(40937),c=r(97074);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),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(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)},37917:(e,t,r)=>{r.d(t,{Y:()=>n});let n=(0,r(96540).createContext)({})},76801:(e,t,r)=>{r.d(t,{k:()=>n});let n=(0,r(96540).createContext)({routes:[]})},38359:(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)}},22965:(e,t,r)=>{let n;r.d(t,{A:()=>l});var a=r(21728),o=r(96540),i=r(47584);function s(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 l=i.XC?function(){let e,t,r;let n=(0,a.c)(3),{documentElement:l}=i.XC;n[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>s(l.dataset),n[0]=e):e=n[0];let[c,u]=(0,o.useState)(e);return n[1]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{let e=new MutationObserver(()=>u(s(l.dataset)));return e.observe(l,{attributes:!0,attributeFilter:["data-color-mode","data-light-theme","data-dark-theme"]}),()=>e.disconnect()},r=[l],n[1]=t,n[2]=r):(t=n[1],r=n[2]),(0,o.useEffect)(t,r),c}:function(){return s(n||{})}},20178:(e,t,r)=>{r.d(t,{N:()=>i});var n=r(96540),a=r(47767),o=r(37917);function i(){return(0,n.useContext)(o.Y)[(0,a.zy)().key]}},46584:(e,t,r)=>{r.d(t,{h:()=>a,u:()=>o});var n=r(38359);let a=()=>n.X()?.enabled_features??{},o=e=>!!a()[e]},52690:(e,t,r)=>{r.d(t,{q:()=>o});var n=r(96540),a=r(95473);function o(){return(0,n.useContext)(a.C)}},86365:(e,t,r)=>{r.d(t,{B:()=>a});var n=r(20178);function a(){let e=(0,n.N)(),t=e&&"loaded"===e.type?e.data:void 0;return t?.payload}},99487:(e,t,r)=>{r.d(t,{U:()=>m});var n=r(74848),a=r(21728),o=r(59418),i=r(18347),s=r(67136),l=r(30391),c=r(97665),u=r(77408),d=r(42505),h=r(22965),p=r(44036);let f={};function m(e){let t,r,m,y,g,v;let b=(0,a.c)(17),{appName:w,children:S,wasServerRendered:R,dataRouterEnabled:E}=e,{colorMode:x,dayScheme:C,nightScheme:k}=(0,h.A)();b[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,d.S)(),b[0]=t):t=b[0];let j=t;return b[1]!==S?(r=(0,n.jsx)(s.k6,{children:S}),b[1]=S,b[2]=r):r=b[2],b[3]!==E||b[4]!==r?(m=(0,n.jsx)(p.v,{enabled:E,children:r}),b[3]=E,b[4]=r,b[5]=m):m=b[5],b[6]!==x||b[7]!==C||b[8]!==k||b[9]!==m?(y=(0,n.jsx)(u.n,{children:(0,n.jsx)(l.NP,{colorMode:x,dayScheme:C,nightScheme:k,preventSSRMismatch:!0,children:m})}),b[6]=x,b[7]=C,b[8]=k,b[9]=m,b[10]=y):y=b[10],b[11]!==w||b[12]!==y?(g=(0,n.jsx)(o.y,{appName:w,category:"",metadata:f,children:y}),b[11]=w,b[12]=y,b[13]=g):g=b[13],b[14]!==g||b[15]!==R?(v=(0,n.jsx)(c.Ht,{client:j,children:(0,n.jsx)(i.D3,{wasServerRendered:R,children:g})}),b[14]=g,b[15]=R,b[16]=v):v=b[16],v}try{m.displayName||(m.displayName="BaseProviders")}catch{}},7989:(e,t,r)=>{r.d(t,{h:()=>u});var n=r(74848),a=r(21728),o=r(91958),i=r(67136),s=r(96540),l=r(4137);function c({ssrError:e}){let{addToast:t}=(0,i.Y6)(),r=l.z[e.textContent||""];return(0,s.useEffect)(()=>{r||t({type:"error",message:"SSR failed, see console for error details (Staff Only)"})},[]),null}try{c.displayName||(c.displayName="SSRErrorToast")}catch{}function u(e){let t,r,i;let s=(0,a.c)(5),{ssrError:l}=e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.jsx)(o.V,{}),s[0]=t):t=s[0],s[1]!==l?(r=l&&(0,n.jsx)(c,{ssrError:l}),s[1]=l,s[2]=r):r=s[2],s[3]!==r?(i=(0,n.jsxs)(n.Fragment,{children:[t,r]}),s[3]=r,s[4]=i):i=s[4],i}try{u.displayName||(u.displayName="CommonElements")}catch{}},12152:(e,t,r)=>{r.d(t,{t:()=>u});var n=r(74848),a=r(21728),o=r(74879),i=r(96540),s=r(42445),l=r(50045);let c=class BasicErrorBoundary extends i.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,s.N7)(e,t)})}(e,t)}render(){return this.state.error?void 0===this.props.fallback?(0,n.jsx)(o.M,{type:"httpError"}):this.props.fallback:this.props.children}constructor(e){super(e),this.state={error:null}}};function u(e){let t;let r=(0,a.c)(3),o=i.useContext(l.I),s=e.appName||o?.appName;return r[0]!==s||r[1]!==e?(t=(0,n.jsx)(c,{...e,appName:s}),r[0]=s,r[1]=e,r[2]=t):t=r[2],t}try{u.displayName||(u.displayName="ErrorBoundary")}catch{}},74879:(e,t,r)=>{r.d(t,{M:()=>l});var n=r(74848),a=r(21728),o=r(75177),i=r(84217);let s={404:"Didn\u2019t find anything here!",500:"Looks like something went wrong!"};function l(e){let t,r,l,c,u;let d=(0,a.c)(9),{httpStatus:h,type:p}=e,f="fetchError"===p?"Looks like network is down!":s[h||500];return d[0]===Symbol.for("react.memo_cache_sentinel")?(t={display:"flex",flexDirection:"column",minWidth:"100%",minHeight:"100%",alignItems:"center",justifyContent:"center"},d[0]=t):t=d[0],d[1]!==h?(r=h?(0,n.jsx)(o.A,{sx:{fontSize:"144px",fontWeight:"bold",lineHeight:1},children:h}):null,d[1]=h,d[2]=r):r=d[2],d[3]===Symbol.for("react.memo_cache_sentinel")?(l={fontSize:4,pt:2},d[3]=l):l=d[3],d[4]!==f?(c=(0,n.jsx)(o.A,{sx:l,children:f}),d[4]=f,d[5]=c):c=d[5],d[6]!==r||d[7]!==c?(u=(0,n.jsxs)(i.A,{as:"h1",tabIndex:-1,sx:t,children:["Error",r,c]}),d[6]=r,d[7]=c,d[8]=u):u=d[8],u}try{l.displayName||(l.displayName="ErrorPage")}catch{}},27535:(e,t,r)=>{r.d(t,{s:()=>i});var n=r(74848),a=r(21728),o=r(38359);let i=e=>{let t,r,i;let s=(0,a.c)(5),{children:l,features:c}=e;return s[0]!==c?(r={enabled_features:c},s[0]=c,s[1]=r):r=s[1],t=r,s[2]!==l||s[3]!==t?(i=(0,n.jsx)(o.z.Provider,{value:t,children:l}),s[2]=l,s[3]=t,s[4]=i):i=s[4],i};try{i.displayName||(i.displayName="FeatureFlagProvider")}catch{}},56413:(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}}},17774:(e,t,r)=>{r.d(t,{N:()=>d,k:()=>h});var n=r(74848),a=r(21728),o=r(96540),i=r(45588),s=r(84976),l=r(76801),c=r(47584),u=r(58135);let d=(0,o.forwardRef)((e,t)=>{let r,d,h,p,f,m;let y=(0,a.c)(14);y[0]!==e?({to:p,reloadDocument:h,preventAutofocus:r,...d}=e,y[0]=e,y[1]=r,y[2]=d,y[3]=h,y[4]=p):(r=y[1],d=y[2],h=y[3],p=y[4]);let{routes:g}=(0,o.useContext)(l.k),v=(0,i.o1)(p,c.fV.pathname).pathname;return h=h??!(0,i.ue)(g,v),y[5]!==r||y[6]!==d.state?(f=r?{[u.V]:!0,...d.state}:d.state,y[5]=r,y[6]=d.state,y[7]=f):f=y[7],y[8]!==d||y[9]!==t||y[10]!==h||y[11]!==f||y[12]!==p?(m=(0,n.jsx)(s.N_,{to:p,...d,state:f,reloadDocument:h,ref:t}),y[8]=d,y[9]=t,y[10]=h,y[11]=f,y[12]=p,y[13]=m):m=y[13],m});d.displayName="Link";let h=(0,o.forwardRef)(function(e,t){let r,d,h,p,f,m;let y=(0,a.c)(14);y[0]!==e?({to:p,reloadDocument:h,preventAutofocus:r,...d}=e,y[0]=e,y[1]=r,y[2]=d,y[3]=h,y[4]=p):(r=y[1],d=y[2],h=y[3],p=y[4]);let{routes:g}=(0,o.useContext)(l.k),v=(0,i.o1)(p,c.fV.pathname).pathname;return h=h??!(0,i.ue)(g,v),y[5]!==r||y[6]!==d.state?(f=r?{[u.V]:!0,...d.state}:d.state,y[5]=r,y[6]=d.state,y[7]=f):f=y[7],y[8]!==d||y[9]!==t||y[10]!==h||y[11]!==f||y[12]!==p?(m=(0,n.jsx)(s.k2,{to:p,...d,state:f,reloadDocument:h,ref:t}),y[8]=d,y[9]=t,y[10]=h,y[11]=f,y[12]=p,y[13]=m):m=y[13],m});try{h.displayName||(h.displayName="NavLink")}catch{}},95473:(e,t,r)=>{r.d(t,{C:()=>v,l:()=>b});var n=r(74848),a=r(21728),o=r(7e4),i=r(47767),s=r(96540),l=r(18056),c=r(67307),u=r(38359),d=r(86365);function h(e){let t;let r=(0,a.c)(2),{App:o}=e;return!function(){let e,t,r,n;let o=(0,a.c)(8),i=(0,d.B)(),h=(0,u.X)();o[0]!==h||o[1]!==i?(e=()=>{let e=new AbortController;return document.addEventListener(l.z.INITIAL,function(){document.dispatchEvent(new c.gh({payload:i,appPayload:h}))},{signal:e.signal}),()=>{e.abort()}},t=[h,i],o[0]=h,o[1]=i,o[2]=e,o[3]=t):(e=o[2],t=o[3]),(0,s.useEffect)(e,t),o[4]!==h||o[5]!==i?(r=()=>{document.dispatchEvent(new c.gh({payload:i,appPayload:h}))},n=[h,i],o[4]=h,o[5]=i,o[6]=r,o[7]=n):(r=o[6],n=o[7]),(0,s.useEffect)(r,n)}(),r[0]!==o?(t=o?(0,n.jsx)(o,{children:(0,n.jsx)(i.sv,{})}):(0,n.jsx)(i.sv,{}),r[0]=o,r[1]=t):t=r[1],t}try{h.displayName||(h.displayName="AppWrapper")}catch{}var p=r(74879),f=r(37917),m=r(45588),y=r(47584);let g=e=>{let t,r;let n=(0,a.c)(4),o=(0,i.Zp)();n[0]!==o||n[1]!==e?(t=()=>{let t=new AbortController;return y.XC?.addEventListener("react:soft-nav",t=>{if(!(t instanceof CustomEvent))return;let{data:r,url:n}=t.detail,a=(0,m.ue)(e,n),i=`${n.pathname}${n.search}${n.hash}`;if(!a){window.location.href=i||window.location.href;return}(0,s.startTransition)(()=>{o(i,{state:{__prefetched_data:r}});let{turbo:e,...t}=window.history.state??{};t?.usr?.__prefetched_data&&delete t.usr.__prefetched_data,window.history.replaceState({...t,skipTurbo:!0},"",location.href)})},{signal:t.signal}),()=>{t.abort()}},r=[o,e],n[0]=o,n[1]=e,n[2]=t,n[3]=r):(t=n[2],r=n[3]),(0,s.useEffect)(t,r)},v=(0,s.createContext)(null);function b(e){let t,r;let i=(0,a.c)(14),{App:s,appPayload:l,children:c,error:d,history:h,location:m,navigateOnError:y,Router:g,routes:b,routeStateMap:S}=e;return i[0]!==s||i[1]!==g||i[2]!==l||i[3]!==c||i[4]!==d||i[5]!==h||i[6]!==m||i[7]!==y||i[8]!==S||i[9]!==b?(t=d&&!y?(0,n.jsx)(p.M,{...d}):(0,n.jsx)(u.z.Provider,{value:l,children:(0,n.jsx)(v.Provider,{value:d,children:(0,n.jsx)(f.Y.Provider,{value:S,children:(0,n.jsxs)(g,{location:m,navigator:h,future:{v7_relativeSplatPath:!0},children:[(0,n.jsx)(w,{routes:b,App:s}),c]})})})}),i[0]=s,i[1]=g,i[2]=l,i[3]=c,i[4]=d,i[5]=h,i[6]=m,i[7]=y,i[8]=S,i[9]=b,i[10]=t):t=i[10],i[11]!==b||i[12]!==t?(r=(0,n.jsx)(o.d,{routes:b,children:t}),i[11]=b,i[12]=t,i[13]=r):r=i[13],r}function w(e){let t,r;let o=(0,a.c)(5),{App:s,routes:l}=e;return g(l),o[0]!==s?(t=(0,n.jsx)(h,{App:s}),o[0]=s,o[1]=t):t=o[1],o[2]!==l||o[3]!==t?(r=[{element:t,children:l}],o[2]=l,o[3]=t,o[4]=r):r=o[4],(0,i.Ye)(r)}try{v.displayName||(v.displayName="NavigationErrorContext")}catch{}try{b.displayName||(b.displayName="NavigatorRouter")}catch{}try{w.displayName||(w.displayName="AppRoutes")}catch{}},18314:(e,t,r)=>{r.d(t,{c:()=>p});var n=r(74848),a=r(21728),o=r(7e4),i=r(99487),s=r(7989),l=r(12152),c=r(96540),u=r(47767),d=r(38568);function h(e){let t,r,o,i,s;let l=(0,a.c)(10),{children:h,history:p}=e;l[0]!==p.location?(t={location:p.location},l[0]=p.location,l[1]=t):t=l[1];let[f,m]=(0,c.useState)(t);return l[2]!==p?(r=()=>p.listen(m),o=[p],l[2]=p,l[3]=r,l[4]=o):(r=l[3],o=l[4]),(0,d.N)(r,o),l[5]===Symbol.for("react.memo_cache_sentinel")?(i={v7_relativeSplatPath:!0},l[5]=i):i=l[5],l[6]!==h||l[7]!==p||l[8]!==f.location?(s=(0,n.jsx)(u.Ix,{location:f.location,navigator:p,future:i,children:h}),l[6]=h,l[7]=p,l[8]=f.location,l[9]=s):s=l[9],s}try{h.displayName||(h.displayName="PartialRouter")}catch{}function p(e){let t,r,c,u,d,p;let f=(0,a.c)(17),{partialName:m,embeddedData:y,Component:g,wasServerRendered:v,ssrError:b,onError:w,history:S}=e;return f[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],f[0]=t):t=f[0],f[1]!==g||f[2]!==y.props?(r=(0,n.jsx)(g,{...y.props}),f[1]=g,f[2]=y.props,f[3]=r):r=f[3],f[4]!==b?(c=(0,n.jsx)(s.h,{ssrError:b}),f[4]=b,f[5]=c):c=f[5],f[6]!==S||f[7]!==r||f[8]!==c?(u=(0,n.jsx)(o.d,{routes:t,children:(0,n.jsxs)(h,{history:S,children:[r,c]})}),f[6]=S,f[7]=r,f[8]=c,f[9]=u):u=f[9],f[10]!==w||f[11]!==u?(d=(0,n.jsx)(l.t,{onError:w,children:u}),f[10]=w,f[11]=u,f[12]=d):d=f[12],f[13]!==m||f[14]!==d||f[15]!==v?(p=(0,n.jsx)(i.U,{appName:m,wasServerRendered:v,dataRouterEnabled:!1,children:d}),f[13]=m,f[14]=d,f[15]=v,f[16]=p):p=f[16],p}try{p.displayName||(p.displayName="PartialEntry")}catch{}},77408:(e,t,r)=>{r.d(t,{n:()=>s});var n=r(74848),a=r(21728);r(96540);var o=r(15033),i=r(75632);function s(e){let t,r,s;let l=(0,a.c)(3),{children:c}=e;if(l[0]===Symbol.for("react.memo_cache_sentinel")){for(let e of(r={},(0,i.fQ)()))e.startsWith("primer_react_")&&(r[e]=!0);l[0]=r}else r=l[0];return t=r,l[1]!==c?(s=(0,n.jsx)(o.g,{flags:t,children:c}),l[1]=c,l[2]=s):s=l[2],s}try{s.displayName||(s.displayName="PrimerFeatureFlags")}catch{}},94856:(e,t,r)=>{r.d(t,{H:()=>ReactBaseElement});var n=r(74848),a=r(39595),o=r(5338),i=r(96540),s=r(74753),l=r(4137),c=r(57516),u=r(42445);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.querySelectorAll('style[data-styled="true"]'),...this.querySelectorAll('link[data-remove-after-hydration="true"]')];for(let e of r)document.head.appendChild(e);this.root=e.hydrateRoot(this.reactRoot,d,{onRecoverableError:(e,r)=>{if(!(e instanceof Error))return;let n=h.exec(e.message),a=String(n?.groups?.invariant);t=!p.includes(a),(0,c.i)({incrementKey:"REACT_HYDRATION_ERROR",incrementTags:{appName:this.name,invariant:a}}),t&&(0,c.X)()&&(console.groupCollapsed(`%c\u{26A0}\u{FE0F} Recoverable hydration error - ${e.message}`,"background: rgba(255, 193, 7, 0.2); font-weight: bold; padding: 4px; border: 1px solid rgba(255, 193, 7, 0.5); border-radius: 4px;","This is only visible to staff users and is safe to ignore. Reach out to #react for help understanding and fixing these hydration errors"),e.cause&&console.warn("cause",e.cause),r.componentStack&&console.warn("componentStack",r.componentStack),r.digest&&console.warn("digest",r.digest),console.groupEnd())}}),r.length>0&&requestIdleCallback(()=>{for(let e of r)e.parentElement?.removeChild(e)}),(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((0,c.X)()){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")}}}constructor(...e){super(...e),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(this,"root",void 0)}};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{}},7e4:(e,t,r)=>{r.d(t,{d:()=>i});var n=r(74848),a=r(21728),o=r(76801);function i(e){let t,r,i;let s=(0,a.c)(5),{routes:l,children:c}=e;return s[0]!==l?(r={routes:l},s[0]=l,s[1]=r):r=s[1],t=r,s[2]!==t||s[3]!==c?(i=(0,n.jsx)(o.k.Provider,{value:t,children:c}),s[2]=t,s[3]=c,s[4]=i):i=s[4],i}try{i.displayName||(i.displayName="RoutesContextProvider")}catch{}},44036:(e,t,r)=>{r.d(t,{e:()=>o,v:()=>i});var n=r(74848),a=r(21728);let o=(0,r(96540).createContext)(!1);function i(e){let t;let r=(0,a.c)(3),{enabled:i,children:s}=e;return r[0]!==s||r[1]!==i?(t=(0,n.jsx)(o.Provider,{value:i,children:s}),r[0]=s,r[1]=i,r[2]=t):t=r[2],t}try{o.displayName||(o.displayName="IsDataRouterEnabledContext")}catch{}try{i.displayName||(i.displayName="IsDataRouterEnabledContextProvider")}catch{}}}]); //# sourceMappingURL=react-core-39020ec71c36.js.map