From d0cd07b4026e1d59de2ef987614a5ca594ffb8dc Mon Sep 17 00:00:00 2001 From: rishabhpoddar Date: Mon, 29 Jul 2024 12:08:37 +0530 Subject: [PATCH] Release prep --- README.md | 2 +- build/asset-manifest.json | 6 ++-- build/index.html | 2 +- build/static/js/main.0fa222c4.js | 3 -- build/static/js/main.0fa222c4.js.map | 1 - build/static/js/main.38fe3894.js | 3 ++ ...CENSE.txt => main.38fe3894.js.LICENSE.txt} | 33 ------------------- build/static/js/main.38fe3894.js.map | 1 + 8 files changed, 9 insertions(+), 42 deletions(-) delete mode 100644 build/static/js/main.0fa222c4.js delete mode 100644 build/static/js/main.0fa222c4.js.map create mode 100644 build/static/js/main.38fe3894.js rename build/static/js/{main.0fa222c4.js.LICENSE.txt => main.38fe3894.js.LICENSE.txt} (64%) create mode 100644 build/static/js/main.38fe3894.js.map diff --git a/README.md b/README.md index 4ad3f72..29e3d06 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ To integrate it with your project, you will need to add the following script tag }); + src="https://cdn.jsdelivr.net/gh/supertokens/prebuiltui@v0.44.0/build/static/js/main.38fe3894.js"> diff --git a/build/asset-manifest.json b/build/asset-manifest.json index 1e4d72e..d6a3a33 100644 --- a/build/asset-manifest.json +++ b/build/asset-manifest.json @@ -1,10 +1,10 @@ { "files": { - "main.js": "/static/js/main.0fa222c4.js", + "main.js": "/static/js/main.38fe3894.js", "index.html": "/index.html", - "main.0fa222c4.js.map": "/static/js/main.0fa222c4.js.map" + "main.38fe3894.js.map": "/static/js/main.38fe3894.js.map" }, "entrypoints": [ - "static/js/main.0fa222c4.js" + "static/js/main.38fe3894.js" ] } \ No newline at end of file diff --git a/build/index.html b/build/index.html index 9a43d40..9e50ec7 100644 --- a/build/index.html +++ b/build/index.html @@ -1 +1 @@ -React App
\ No newline at end of file +React App
\ No newline at end of file diff --git a/build/static/js/main.0fa222c4.js b/build/static/js/main.0fa222c4.js deleted file mode 100644 index 44efc1e..0000000 --- a/build/static/js/main.0fa222c4.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see main.0fa222c4.js.LICENSE.txt */ -(()=>{"use strict";var e={1387:(e,t,n)=>{function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;tf,B6:()=>L,G3:()=>ue,Gh:()=>B,HS:()=>H,HW:()=>de,Oi:()=>u,Pq:()=>z,RO:()=>D,Rr:()=>h,Sk:()=>Q,TM:()=>d,V2:()=>Z,VV:()=>X,aE:()=>fe,o1:()=>F,pX:()=>ee,pb:()=>N,rc:()=>o,ro:()=>w,sC:()=>a,tH:()=>K,tW:()=>A,ue:()=>x,v6:()=>Y,yD:()=>j,zR:()=>s}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(o||(o={}));const i="popstate";function a(e){void 0===e&&(e={});let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:i=!1}=e;t=n.map(((e,t)=>g(e,"string"===typeof e?null:e.state,0===t?"default":void 0)));let a=u(null==r?t.length-1:r),s=o.Pop,d=null;function u(e){return Math.min(Math.max(e,0),t.length-1)}function c(){return t[a]}function g(e,n,r){void 0===n&&(n=null);let o=p(t?c().pathname:"/",e,n,r);return l("/"===o.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),o}function v(e){return"string"===typeof e?e:f(e)}return{get index(){return a},get action(){return s},get location(){return c()},createHref:v,createURL:e=>new URL(v(e),"http://localhost"),encodeLocation(e){let t="string"===typeof e?h(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){s=o.Push;let r=g(e,n);a+=1,t.splice(a,t.length,r),i&&d&&d({action:s,location:r,delta:1})},replace(e,n){s=o.Replace;let r=g(e,n);t[a]=r,i&&d&&d({action:s,location:r,delta:0})},go(e){s=o.Pop;let n=u(a+e),r=t[n];a=n,d&&d({action:s,location:r,delta:e})},listen:e=>(d=e,()=>{d=null})}}function s(e){return void 0===e&&(e={}),g((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return p("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:f(t)}),null,e)}function d(e){return void 0===e&&(e={}),g((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=h(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),p("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"===typeof t?t:f(t))}),(function(e,t){l("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}function u(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function l(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function c(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,n,o){return void 0===n&&(n=null),r({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?h(t):t,{state:n,key:t&&t.key||o||Math.random().toString(36).substr(2,8)})}function f(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function h(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function g(e,t,n,a){void 0===a&&(a={});let{window:s=document.defaultView,v5Compat:d=!1}=a,l=s.history,h=o.Pop,g=null,v=m();function m(){return(l.state||{idx:null}).idx}function _(){h=o.Pop;let e=m(),t=null==e?null:e-v;v=e,g&&g({action:h,location:b.location,delta:t})}function x(e){let t="null"!==s.location.origin?s.location.origin:s.location.href,n="string"===typeof e?e:f(e);return n=n.replace(/ $/,"%20"),u(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==v&&(v=0,l.replaceState(r({},l.state,{idx:v}),""));let b={get action(){return h},get location(){return e(s,l)},listen(e){if(g)throw new Error("A history only accepts one active listener");return s.addEventListener(i,_),g=e,()=>{s.removeEventListener(i,_),g=null}},createHref:e=>t(s,e),createURL:x,encodeLocation(e){let t=x(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){h=o.Push;let r=p(b.location,e,t);n&&n(r,e),v=m()+1;let i=c(r,v),a=b.createHref(r);try{l.pushState(i,"",a)}catch(u){if(u instanceof DOMException&&"DataCloneError"===u.name)throw u;s.location.assign(a)}d&&g&&g({action:h,location:b.location,delta:1})},replace:function(e,t){h=o.Replace;let r=p(b.location,e,t);n&&n(r,e),v=m();let i=c(r,v),a=b.createHref(r);l.replaceState(i,"",a),d&&g&&g({action:h,location:b.location,delta:0})},go:e=>l.go(e)};return b}var v;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(v||(v={}));const m=new Set(["lazy","caseSensitive","path","id","index","children"]);function _(e,t,n,o){return void 0===n&&(n=[]),void 0===o&&(o={}),e.map(((e,i)=>{let a=[...n,String(i)],s="string"===typeof e.id?e.id:a.join("-");if(u(!0!==e.index||!e.children,"Cannot specify children on an index route"),u(!o[s],'Found a route id collision on id "'+s+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let n=r({},e,t(e),{id:s});return o[s]=n,n}{let n=r({},e,t(e),{id:s,children:void 0});return o[s]=n,e.children&&(n.children=_(e.children,t,a,o)),n}}))}function x(e,t,n){return void 0===n&&(n="/"),b(e,t,n,!1)}function b(e,t,n,r){let o=N(("string"===typeof t?h(t):t).pathname||"/",n);if(null==o)return null;let i=y(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let s=0;null==a&&s{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(u(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let s=H([r,a.relativePath]),d=n.concat(a);e.children&&e.children.length>0&&(u(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),y(e.children,t,d,s)),(null!=e.path||e.index)&&t.push({path:s,score:P(s,e.index),routesMeta:d})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of k(e.path))o(e,t,r);else o(e,t)})),t}function k(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=k(r.join("/")),s=[];return s.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const E=/^:[\w-]+$/,C=3,I=2,S=1,T=10,R=-2,$=e=>"*"===e;function P(e,t){let n=e.split("/"),r=n.length;return n.some($)&&(r+=R),t&&(r+=I),n.filter((e=>!$(e))).reduce(((e,t)=>e+(E.test(t)?C:""===t?S:T)),r)}function O(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;snull==e?"":"string"===typeof e?e:String(e);return r+n.split(/\/+/).map(((e,n,r)=>{if(n===r.length-1&&"*"===e){return o(t["*"])}const i=e.match(/^:([\w-]+)(\??)$/);if(i){const[,e,n]=i;let r=t[e];return u("?"===n||null!=r,'Missing ":'+e+'" param'),o(r)}return e.replace(/\?$/g,"")})).filter((e=>!!e)).join("/")}function L(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);l("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let i=new RegExp(o,t?void 0:"i");return[i,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=s[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const d=s[n];return e[r]=o&&!d?void 0:(d||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function D(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return l(!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 N(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function F(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"===typeof e?h(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:G(r),hash:V(o)}}function M(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function U(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function j(e,t){let n=U(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function B(e,t,n,o){let i;void 0===o&&(o=!1),"string"===typeof e?i=h(e):(i=r({},e),u(!i.pathname||!i.pathname.includes("?"),M("?","pathname","search",i)),u(!i.pathname||!i.pathname.includes("#"),M("#","pathname","hash",i)),u(!i.search||!i.search.includes("#"),M("#","search","hash",i)));let a,s=""===e||""===i.pathname,d=s?"/":i.pathname;if(null==d)a=n;else{let e=t.length-1;if(!o&&d.startsWith("..")){let t=d.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=F(i,a),c=d&&"/"!==d&&d.endsWith("/"),p=(s||"."===d)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!p||(l.pathname+="/"),l}const H=e=>e.join("/").replace(/\/\/+/g,"/"),W=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),G=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",V=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",z=function(e,t){void 0===t&&(t={});let n="number"===typeof t?{status:t}:t,o=new Headers(n.headers);return o.has("Content-Type")||o.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),r({},n,{headers:o}))};class K extends Error{}class q{constructor(e,t){let n;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],u(e&&"object"===typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise(((e,t)=>n=t)),this.controller=new AbortController;let r=()=>n(new K("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",r),this.controller.signal.addEventListener("abort",r),this.data=Object.entries(e).reduce(((e,t)=>{let[n,r]=t;return Object.assign(e,{[n]:this.trackPromise(n,r)})}),{}),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 n=Promise.race([t,this.abortPromise]).then((t=>this.onSettle(n,e,void 0,t)),(t=>this.onSettle(n,e,t)));return n.catch((()=>{})),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(e,t,n,r){if(this.controller.signal.aborted&&n instanceof K)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>n}),Promise.reject(n);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===n&&void 0===r){let n=new 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:()=>n}),this.emit(!1,t),Promise.reject(n)}return void 0===r?(Object.defineProperty(e,"_error",{get:()=>n}),this.emit(!1,t),Promise.reject(n)):(Object.defineProperty(e,"_data",{get:()=>r}),this.emit(!1,t),r)}emit(e,t){this.subscribers.forEach((n=>n(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 n=()=>this.cancel();e.addEventListener("abort",n),t=await new Promise((t=>{this.subscribe((r=>{e.removeEventListener("abort",n),(r||this.done)&&t(r)}))}))}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return u(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce(((e,t)=>{let[n,r]=t;return Object.assign(e,{[n]:J(r)})}),{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function J(e){if(!function(e){return e instanceof Promise&&!0===e._tracked}(e))return e;if(e._error)throw e._error;return e._data}const Y=function(e,t){return void 0===t&&(t={}),new q(e,"number"===typeof t?{status:t}:t)},Z=function(e,t){void 0===t&&(t=302);let n=t;"number"===typeof n?n={status:n}:"undefined"===typeof n.status&&(n.status=302);let o=new Headers(n.headers);return o.set("Location",e),new Response(null,r({},n,{headers:o}))},Q=(e,t)=>{let n=Z(e,t);return n.headers.set("X-Remix-Reload-Document","true"),n};class X{constructor(e,t,n,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function ee(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const te=["post","put","patch","delete"],ne=new Set(te),re=["get",...te],oe=new Set(re),ie=new Set([301,302,303,307,308]),ae=new Set([307,308]),se={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},de={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ue={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},le=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ce=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),pe="remix-router-transitions";function fe(e){const t=e.window?e.window:"undefined"!==typeof window?window:void 0,n="undefined"!==typeof t&&"undefined"!==typeof t.document&&"undefined"!==typeof t.document.createElement,i=!n;let a;if(u(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;a=e=>({hasErrorBoundary:t(e)})}else a=ce;let s,d,c,f={},h=_(e.routes,a,void 0,f),g=e.basename||"/",m=e.unstable_dataStrategy||ke,y=e.unstable_patchRoutesOnMiss,k=r({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),E=null,C=new Set,I=null,S=null,T=null,R=null!=e.hydrationData,$=x(h,e.history.location,g),P=null;if(null==$&&!y){let t=Fe(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Ne(h);$=n,P={[r.id]:t}}if($&&y&&!e.hydrationData){lt($,h,e.history.location.pathname).active&&($=null)}if($)if($.some((e=>e.route.lazy)))d=!1;else if($.some((e=>e.route.loader)))if(k.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=e=>!e.route.loader||("function"!==typeof e.route.loader||!0!==e.route.loader.hydrate)&&(t&&void 0!==t[e.route.id]||n&&void 0!==n[e.route.id]);if(n){let e=$.findIndex((e=>void 0!==n[e.route.id]));d=$.slice(0,e+1).every(r)}else d=$.every(r)}else d=null!=e.hydrationData;else d=!0;else d=!1,$=[];let O,A={historyAction:e.history.action,location:e.history.location,matches:$,initialized:d,navigation:se,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||P,fetchers:new Map,blockers:new Map},L=o.Pop,D=!1,F=!1,M=new Map,U=null,j=!1,B=!1,H=[],W=[],G=new Map,V=0,z=-1,K=new Map,q=new Set,J=new Map,Y=new Map,Z=new Set,Q=new Map,X=new Map,te=new Map,ne=!1;function re(e,t){void 0===t&&(t={}),A=r({},A,e);let n=[],o=[];k.v7_fetcherPersist&&A.fetchers.forEach(((e,t)=>{"idle"===e.state&&(Z.has(t)?o.push(t):n.push(t))})),[...C].forEach((e=>e(A,{deletedFetchers:o,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync}))),k.v7_fetcherPersist&&(n.forEach((e=>A.fetchers.delete(e))),o.forEach((e=>Ue(e))))}function oe(t,n,i){var a,d;let u,{flushSync:l}=void 0===i?{}:i,c=null!=A.actionData&&null!=A.navigation.formMethod&&ze(A.navigation.formMethod)&&"loading"===A.navigation.state&&!0!==(null==(a=t.state)?void 0:a._isRedirect);u=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:c?A.actionData:null;let p=n.loaderData?Ae(A.loaderData,n.loaderData,n.matches||[],n.errors):A.loaderData,f=A.blockers;f.size>0&&(f=new Map(f),f.forEach(((e,t)=>f.set(t,ue))));let g,v=!0===D||null!=A.navigation.formMethod&&ze(A.navigation.formMethod)&&!0!==(null==(d=t.state)?void 0:d._isRedirect);if(s&&(h=s,s=void 0),j||L===o.Pop||(L===o.Push?e.history.push(t,t.state):L===o.Replace&&e.history.replace(t,t.state)),L===o.Pop){let e=M.get(A.location.pathname);e&&e.has(t.pathname)?g={currentLocation:A.location,nextLocation:t}:M.has(t.pathname)&&(g={currentLocation:t,nextLocation:A.location})}else if(F){let e=M.get(A.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),M.set(A.location.pathname,e)),g={currentLocation:A.location,nextLocation:t}}re(r({},n,{actionData:u,loaderData:p,historyAction:L,location:t,initialized:!0,navigation:se,revalidation:"idle",restoreScrollPosition:ut(t,n.matches||A.matches),preventScrollReset:v,blockers:f}),{viewTransitionOpts:g,flushSync:!0===l}),L=o.Pop,D=!1,F=!1,j=!1,B=!1,H=[],W=[]}async function ie(t,n,i){O&&O.abort(),O=null,L=t,j=!0===(i&&i.startUninterruptedRevalidation),function(e,t){if(I&&T){let n=dt(e,t);I[n]=T()}}(A.location,A.matches),D=!0===(i&&i.preventScrollReset),F=!0===(i&&i.enableViewTransition);let a=s||h,d=i&&i.overrideNavigation,u=x(a,n,g),l=!0===(i&&i.flushSync),c=lt(u,a,n.pathname);if(c.active&&c.matches&&(u=c.matches),!u){let{error:e,notFoundMatches:t,route:r}=it(n.pathname);return void oe(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:l})}if(A.initialized&&!B&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(A.location,n)&&!(i&&i.submission&&ze(i.submission.formMethod)))return void oe(n,{matches:u},{flushSync:l});O=new AbortController;let p,f=Te(e.history,n,O.signal,i&&i.submission);if(i&&i.pendingError)p=[De(u).route.id,{type:v.error,error:i.pendingError}];else if(i&&i.submission&&ze(i.submission.formMethod)){let t=await async function(e,t,n,r,i,a){void 0===a&&(a={});ye();let s,d=function(e,t){let n={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return n}(t,n);if(re({navigation:d},{flushSync:!0===a.flushSync}),i){let n=await ct(r,t.pathname,e.signal);if("aborted"===n.type)return{shortCircuited:!0};if("error"===n.type){let{boundaryId:e,error:r}=at(t.pathname,n);return{matches:n.partialMatches,pendingActionResult:[e,{type:v.error,error:r}]}}if(!n.matches){let{notFoundMatches:e,error:n,route:r}=it(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:v.error,error:n}]}}r=n.matches}let u=Ye(r,t);if(u.route.action||u.route.lazy){if(s=(await _e("action",e,[u],r))[0],e.signal.aborted)return{shortCircuited:!0}}else s={type:v.error,error:Fe(405,{method:e.method,pathname:t.pathname,routeId:u.route.id})};if(We(s)){let t;if(a&&null!=a.replace)t=a.replace;else{t=Se(s.response.headers.get("Location"),new URL(e.url),g)===A.location.pathname+A.location.search}return await ve(e,s,{submission:n,replace:t}),{shortCircuited:!0}}if(Be(s))throw Fe(400,{type:"defer-action"});if(He(s)){let e=De(r,u.route.id);return!0!==(a&&a.replace)&&(L=o.Push),{matches:r,pendingActionResult:[e.route.id,s]}}return{matches:r,pendingActionResult:[u.route.id,s]}}(f,n,i.submission,u,c.active,{replace:i.replace,flushSync:l});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(He(r)&&ee(r.error)&&404===r.error.status)return O=null,void oe(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}u=t.matches||u,p=t.pendingActionResult,d=Qe(n,i.submission),l=!1,c.active=!1,f=Te(e.history,f.url,f.signal)}let{shortCircuited:m,matches:_,loaderData:b,errors:w}=await async function(t,n,o,i,a,d,u,l,c,p,f){let v=a||Qe(n,d),m=d||u||Ze(v),_=!j&&(!k.v7_partialHydration||!c);if(i){if(_){let e=fe(f);re(r({navigation:v},void 0!==e?{actionData:e}:{}),{flushSync:p})}let e=await ct(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let{boundaryId:t,error:r}=at(n.pathname,e);return{matches:e.partialMatches,loaderData:{},errors:{[t]:r}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=it(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let x=s||h,[b,w]=me(e.history,A,o,m,n,k.v7_partialHydration&&!0===c,k.v7_skipActionErrorRevalidation,B,H,W,Z,J,q,x,g,f);if(st((e=>!(o&&o.some((t=>t.route.id===e)))||b&&b.some((t=>t.route.id===e)))),z=++V,0===b.length&&0===w.length){let e=Je();return oe(n,r({matches:o,loaderData:{},errors:f&&He(f[1])?{[f[0]]:f[1].error}:null},Le(f),e?{fetchers:new Map(A.fetchers)}:{}),{flushSync:p}),{shortCircuited:!0}}if(_){let e={};if(!i){e.navigation=v;let t=fe(f);void 0!==t&&(e.actionData=t)}w.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=A.fetchers.get(e.key),n=Xe(void 0,t?t.data:void 0);A.fetchers.set(e.key,n)})),new Map(A.fetchers)}(w)),re(e,{flushSync:p})}w.forEach((e=>{G.has(e.key)&&Ge(e.key),e.controller&&G.set(e.key,e.controller)}));let y=()=>w.forEach((e=>Ge(e.key)));O&&O.signal.addEventListener("abort",y);let{loaderResults:E,fetcherResults:C}=await xe(A.matches,o,b,w,t);if(t.signal.aborted)return{shortCircuited:!0};O&&O.signal.removeEventListener("abort",y);w.forEach((e=>G.delete(e.key)));let I=Me([...E,...C]);if(I){if(I.idx>=b.length){let e=w[I.idx-b.length].key;q.add(e)}return await ve(t,I.result,{replace:l}),{shortCircuited:!0}}let{loaderData:S,errors:T}=Oe(A,o,b,E,f,w,C,Q);Q.forEach(((e,t)=>{e.subscribe((n=>{(n||e.done)&&Q.delete(t)}))})),k.v7_partialHydration&&c&&A.errors&&Object.entries(A.errors).filter((e=>{let[t]=e;return!b.some((e=>e.route.id===t))})).forEach((e=>{let[t,n]=e;T=Object.assign(T||{},{[t]:n})}));let R=Je(),$=tt(z),P=R||$||w.length>0;return r({matches:o,loaderData:S,errors:T},P?{fetchers:new Map(A.fetchers)}:{})}(f,n,u,c.active,d,i&&i.submission,i&&i.fetcherSubmission,i&&i.replace,i&&!0===i.initialHydration,l,p);m||(O=null,oe(n,r({matches:_||u},Le(p),{loaderData:b,errors:w})))}function fe(e){return e&&!He(e[1])?{[e[0]]:e[1].data}:A.actionData?0===Object.keys(A.actionData).length?null:A.actionData:void 0}async function ve(i,a,s){let{submission:d,fetcherSubmission:l,replace:c}=void 0===s?{}:s;a.response.headers.has("X-Remix-Revalidate")&&(B=!0);let f=a.response.headers.get("Location");u(f,"Expected a Location header on the redirect Response"),f=Se(f,new URL(i.url),g);let h=p(A.location,f,{_isRedirect:!0});if(n){let n=!1;if(a.response.headers.has("X-Remix-Reload-Document"))n=!0;else if(le.test(f)){const r=e.history.createURL(f);n=r.origin!==t.location.origin||null==N(r.pathname,g)}if(n)return void(c?t.location.replace(f):t.location.assign(f))}O=null;let v=!0===c?o.Replace:o.Push,{formMethod:m,formAction:_,formEncType:x}=A.navigation;!d&&!l&&m&&_&&x&&(d=Ze(A.navigation));let b=d||l;if(ae.has(a.response.status)&&b&&ze(b.formMethod))await ie(v,h,{submission:r({},b,{formAction:f}),preventScrollReset:D});else{let e=Qe(h,d);await ie(v,h,{overrideNavigation:e,fetcherSubmission:l,preventScrollReset:D})}}async function _e(e,t,n,r){try{let o=await Ee(m,e,t,n,r,f,a);return await Promise.all(o.map(((e,o)=>{if(je(e)){let i=e.result;return{type:v.redirect,response:Ie(i,t,n[o].route.id,r,g,k.v7_relativeSplatPath)}}return Ce(e)})))}catch(o){return n.map((()=>({type:v.error,error:o})))}}async function xe(t,n,r,o,i){let[a,...s]=await Promise.all([r.length?_e("loader",i,r,n):[],...o.map((t=>{if(t.matches&&t.match&&t.controller){return _e("loader",Te(e.history,t.path,t.controller.signal),[t.match],t.matches).then((e=>e[0]))}return Promise.resolve({type:v.error,error:Fe(404,{pathname:t.path})})}))]);return await Promise.all([Ke(t,r,a,a.map((()=>i.signal)),!1,A.loaderData),Ke(t,o.map((e=>e.match)),s,o.map((e=>e.controller?e.controller.signal:null)),!0)]),{loaderResults:a,fetcherResults:s}}function ye(){B=!0,H.push(...st()),J.forEach(((e,t)=>{G.has(t)&&(W.push(t),Ge(t))}))}function Re(e,t,n){void 0===n&&(n={}),A.fetchers.set(e,t),re({fetchers:new Map(A.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function $e(e,t,n,r){void 0===r&&(r={});let o=De(A.matches,t);Ue(e),re({errors:{[o.route.id]:n},fetchers:new Map(A.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Pe(e){return k.v7_fetcherPersist&&(Y.set(e,(Y.get(e)||0)+1),Z.has(e)&&Z.delete(e)),A.fetchers.get(e)||de}function Ue(e){let t=A.fetchers.get(e);!G.has(e)||t&&"loading"===t.state&&K.has(e)||Ge(e),J.delete(e),K.delete(e),q.delete(e),Z.delete(e),A.fetchers.delete(e)}function Ge(e){let t=G.get(e);u(t,"Expected fetch controller: "+e),t.abort(),G.delete(e)}function Ve(e){for(let t of e){let e=et(Pe(t).data);A.fetchers.set(t,e)}}function Je(){let e=[],t=!1;for(let n of q){let r=A.fetchers.get(n);u(r,"Expected fetcher: "+n),"loading"===r.state&&(q.delete(n),e.push(n),t=!0)}return Ve(e),t}function tt(e){let t=[];for(let[n,r]of K)if(r0}function nt(e){A.blockers.delete(e),X.delete(e)}function rt(e,t){let n=A.blockers.get(e)||ue;u("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state);let r=new Map(A.blockers);r.set(e,t),re({blockers:r})}function ot(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(0===X.size)return;X.size>1&&l(!1,"A router only supports one blocker at a time");let o=Array.from(X.entries()),[i,a]=o[o.length-1],s=A.blockers.get(i);return s&&"proceeding"===s.state?void 0:a({currentLocation:t,nextLocation:n,historyAction:r})?i:void 0}function it(e){let t=Fe(404,{pathname:e}),n=s||h,{matches:r,route:o}=Ne(n);return st(),{notFoundMatches:r,route:o,error:t}}function at(e,t){return{boundaryId:De(t.partialMatches).route.id,error:Fe(400,{type:"route-discovery",pathname:e,message:null!=t.error&&"message"in t.error?t.error:String(t.error)})}}function st(e){let t=[];return Q.forEach(((n,r)=>{e&&!e(r)||(n.cancel(),t.push(r),Q.delete(r))})),t}function dt(e,t){if(S){return S(e,t.map((e=>w(e,A.loaderData))))||e.key}return e.key}function ut(e,t){if(I){let n=dt(e,t),r=I[n];if("number"===typeof r)return r}return null}function lt(e,t,n){if(y){if(!e){return{active:!0,matches:b(t,n,g,!0)||[]}}{let r=e[e.length-1].route;if(r.path&&("*"===r.path||r.path.endsWith("/*"))){return{active:!0,matches:b(t,n,g,!0)}}}}return{active:!1,matches:null}}async function ct(e,t,n){let r=e,o=r.length>0?r[r.length-1].route:null;for(;;){let e=null==s,d=s||h;try{await be(y,t,r,d,f,a,te,n)}catch(i){return{type:"error",error:i,partialMatches:r}}finally{e&&(h=[...h])}if(n.aborted)return{type:"aborted"};let u=x(d,t,g),l=!1;if(u){let e=u[u.length-1].route;if(e.index)return{type:"success",matches:u};if(e.path&&e.path.length>0){if("*"!==e.path)return{type:"success",matches:u};l=!0}}let c=b(d,t,g,!0);if(!c||r.map((e=>e.route.id)).join("-")===c.map((e=>e.route.id)).join("-"))return{type:"success",matches:l?u:null};if(r=c,o=r[r.length-1].route,"*"===o.path)return{type:"success",matches:r}}}return c={get basename(){return g},get future(){return k},get state(){return A},get routes(){return h},get window(){return t},initialize:function(){if(E=e.history.listen((t=>{let{action:n,location:r,delta:o}=t;if(ne)return void(ne=!1);l(0===X.size||null!=o,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=ot({currentLocation:A.location,nextLocation:r,historyAction:n});return i&&null!=o?(ne=!0,e.history.go(-1*o),void rt(i,{state:"blocked",location:r,proceed(){rt(i,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),e.history.go(o)},reset(){let e=new Map(A.blockers);e.set(i,ue),re({blockers:e})}})):ie(n,r)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(pe);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(n){}}(t,M);let e=()=>function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(pe,JSON.stringify(r))}catch(n){l(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}(t,M);t.addEventListener("pagehide",e),U=()=>t.removeEventListener("pagehide",e)}return A.initialized||ie(o.Pop,A.location,{initialHydration:!0}),c},subscribe:function(e){return C.add(e),()=>C.delete(e)},enableScrollRestoration:function(e,t,n){if(I=e,T=t,S=n||null,!R&&A.navigation===se){R=!0;let e=ut(A.location,A.matches);null!=e&&re({restoreScrollPosition:e})}return()=>{I=null,T=null,S=null}},navigate:async function t(n,i){if("number"===typeof n)return void e.history.go(n);let a=he(A.location,A.matches,g,k.v7_prependBasename,n,k.v7_relativeSplatPath,null==i?void 0:i.fromRouteId,null==i?void 0:i.relative),{path:s,submission:d,error:u}=ge(k.v7_normalizeFormMethod,!1,a,i),l=A.location,c=p(A.location,s,i&&i.state);c=r({},c,e.history.encodeLocation(c));let f=i&&null!=i.replace?i.replace:void 0,h=o.Push;!0===f?h=o.Replace:!1===f||null!=d&&ze(d.formMethod)&&d.formAction===A.location.pathname+A.location.search&&(h=o.Replace);let v=i&&"preventScrollReset"in i?!0===i.preventScrollReset:void 0,m=!0===(i&&i.unstable_flushSync),_=ot({currentLocation:l,nextLocation:c,historyAction:h});if(!_)return await ie(h,c,{submission:d,pendingError:u,preventScrollReset:v,replace:i&&i.replace,enableViewTransition:i&&i.unstable_viewTransition,flushSync:m});rt(_,{state:"blocked",location:c,proceed(){rt(_,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),t(n,i)},reset(){let e=new Map(A.blockers);e.set(_,ue),re({blockers:e})}})},fetch:function(t,n,r,o){if(i)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");G.has(t)&&Ge(t);let a=!0===(o&&o.unstable_flushSync),d=s||h,l=he(A.location,A.matches,g,k.v7_prependBasename,r,k.v7_relativeSplatPath,n,null==o?void 0:o.relative),c=x(d,l,g),p=lt(c,d,l);if(p.active&&p.matches&&(c=p.matches),!c)return void $e(t,n,Fe(404,{pathname:l}),{flushSync:a});let{path:f,submission:v,error:m}=ge(k.v7_normalizeFormMethod,!0,l,o);if(m)return void $e(t,n,m,{flushSync:a});let _=Ye(c,f);D=!0===(o&&o.preventScrollReset),v&&ze(v.formMethod)?async function(t,n,r,o,i,a,d,l){function c(e){if(!e.route.action&&!e.route.lazy){let e=Fe(405,{method:l.formMethod,pathname:r,routeId:n});return $e(t,n,e,{flushSync:d}),!0}return!1}if(ye(),J.delete(t),!a&&c(o))return;let p=A.fetchers.get(t);Re(t,function(e,t){let n={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return n}(l,p),{flushSync:d});let f=new AbortController,v=Te(e.history,r,f.signal,l);if(a){let e=await ct(i,r,v.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:o}=at(r,e);return void $e(t,n,o,{flushSync:d})}if(!e.matches)return void $e(t,n,Fe(404,{pathname:r}),{flushSync:d});if(c(o=Ye(i=e.matches,r)))return}G.set(t,f);let m=V,_=await _e("action",v,[o],i),b=_[0];if(v.signal.aborted)return void(G.get(t)===f&&G.delete(t));if(k.v7_fetcherPersist&&Z.has(t)){if(We(b)||He(b))return void Re(t,et(void 0))}else{if(We(b))return G.delete(t),z>m?void Re(t,et(void 0)):(q.add(t),Re(t,Xe(l)),ve(v,b,{fetcherSubmission:l}));if(He(b))return void $e(t,n,b.error)}if(Be(b))throw Fe(400,{type:"defer-action"});let w=A.navigation.location||A.location,y=Te(e.history,w,f.signal),E=s||h,C="idle"!==A.navigation.state?x(E,A.navigation.location,g):A.matches;u(C,"Didn't find any matches after fetcher action");let I=++V;K.set(t,I);let S=Xe(l,b.data);A.fetchers.set(t,S);let[T,R]=me(e.history,A,C,l,w,!1,k.v7_skipActionErrorRevalidation,B,H,W,Z,J,q,E,g,[o.route.id,b]);R.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=A.fetchers.get(t),r=Xe(void 0,n?n.data:void 0);A.fetchers.set(t,r),G.has(t)&&Ge(t),e.controller&&G.set(t,e.controller)})),re({fetchers:new Map(A.fetchers)});let $=()=>R.forEach((e=>Ge(e.key)));f.signal.addEventListener("abort",$);let{loaderResults:P,fetcherResults:D}=await xe(A.matches,C,T,R,y);if(f.signal.aborted)return;f.signal.removeEventListener("abort",$),K.delete(t),G.delete(t),R.forEach((e=>G.delete(e.key)));let N=Me([...P,...D]);if(N){if(N.idx>=T.length){let e=R[N.idx-T.length].key;q.add(e)}return ve(y,N.result)}let{loaderData:F,errors:M}=Oe(A,A.matches,T,P,void 0,R,D,Q);if(A.fetchers.has(t)){let e=et(b.data);A.fetchers.set(t,e)}tt(I),"loading"===A.navigation.state&&I>z?(u(L,"Expected pending action"),O&&O.abort(),oe(A.navigation.location,{matches:C,loaderData:F,errors:M,fetchers:new Map(A.fetchers)})):(re({errors:M,loaderData:Ae(A.loaderData,F,C,M),fetchers:new Map(A.fetchers)}),B=!1)}(t,n,f,_,c,p.active,a,v):(J.set(t,{routeId:n,path:f}),async function(t,n,r,o,i,a,s,d){let l=A.fetchers.get(t);Re(t,Xe(d,l?l.data:void 0),{flushSync:s});let c=new AbortController,p=Te(e.history,r,c.signal);if(a){let e=await ct(i,r,p.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:o}=at(r,e);return void $e(t,n,o,{flushSync:s})}if(!e.matches)return void $e(t,n,Fe(404,{pathname:r}),{flushSync:s});o=Ye(i=e.matches,r)}G.set(t,c);let f=V,h=await _e("loader",p,[o],i),g=h[0];Be(g)&&(g=await qe(g,p.signal,!0)||g);G.get(t)===c&&G.delete(t);if(p.signal.aborted)return;if(Z.has(t))return void Re(t,et(void 0));if(We(g))return z>f?void Re(t,et(void 0)):(q.add(t),void await ve(p,g));if(He(g))return void $e(t,n,g.error);u(!Be(g),"Unhandled fetcher deferred data"),Re(t,et(g.data))}(t,n,f,_,c,p.active,a,v))},revalidate:function(){ye(),re({revalidation:"loading"}),"submitting"!==A.navigation.state&&("idle"!==A.navigation.state?ie(L||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation}):ie(A.historyAction,A.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Pe,deleteFetcher:function(e){if(k.v7_fetcherPersist){let t=(Y.get(e)||0)-1;t<=0?(Y.delete(e),Z.add(e)):Y.set(e,t)}else Ue(e);re({fetchers:new Map(A.fetchers)})},dispose:function(){E&&E(),U&&U(),C.clear(),O&&O.abort(),A.fetchers.forEach(((e,t)=>Ue(t))),A.blockers.forEach(((e,t)=>nt(t)))},getBlocker:function(e,t){let n=A.blockers.get(e)||ue;return X.get(e)!==t&&X.set(e,t),n},deleteBlocker:nt,patchRoutes:function(e,t){let n=null==s;we(e,t,s||h,f,a),n&&(h=[...h],re({}))},_internalFetchControllers:G,_internalActiveDeferreds:Q,_internalSetRoutes:function(e){f={},s=_(e,a,void 0,f)}},c}Symbol("deferred");function he(e,t,n,r,o,i,a,s){let d,u;if(a){d=[];for(let e of t)if(d.push(e),e.route.id===a){u=e;break}}else d=t,u=t[t.length-1];let l=B(o||".",j(d,i),N(e.pathname,n)||e.pathname,"path"===s);return null==o&&(l.search=e.search,l.hash=e.hash),null!=o&&""!==o&&"."!==o||!u||!u.route.index||Je(l.search)||(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),r&&"/"!==n&&(l.pathname="/"===l.pathname?n:H([n,l.pathname])),f(l)}function ge(e,t,n,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:n};if(r.formMethod&&!Ve(r.formMethod))return{path:n,error:Fe(405,{method:r.formMethod})};let o,i,a=()=>({path:n,error:Fe(400,{type:"invalid-body"})}),s=r.formMethod||"get",d=e?s.toUpperCase():s.toLowerCase(),l=Ue(n);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!ze(d))return a();let e="string"===typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce(((e,t)=>{let[n,r]=t;return""+e+n+"="+r+"\n"}),""):String(r.body);return{path:n,submission:{formMethod:d,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!ze(d))return a();try{let e="string"===typeof r.body?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:d,formAction:l,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(g){return a()}}}if(u("function"===typeof FormData,"FormData is not available in this environment"),r.formData)o=Re(r.formData),i=r.formData;else if(r.body instanceof FormData)o=Re(r.body),i=r.body;else if(r.body instanceof URLSearchParams)o=r.body,i=$e(o);else if(null==r.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(r.body),i=$e(o)}catch(g){return a()}let c={formMethod:d,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(ze(c.formMethod))return{path:n,submission:c};let p=h(n);return t&&p.search&&Je(p.search)&&o.append("index",""),p.search="?"+o,{path:f(p),submission:c}}function ve(e,t){let n=e;if(t){let r=e.findIndex((e=>e.route.id===t));r>=0&&(n=e.slice(0,r))}return n}function me(e,t,n,o,i,a,s,d,u,l,c,p,f,h,g,v){let m=v?He(v[1])?v[1].error:v[1].data:void 0,_=e.createURL(t.location),b=e.createURL(i),w=v&&He(v[1])?v[0]:void 0,y=w?ve(n,w):n,k=v?v[1].statusCode:void 0,E=s&&k&&k>=400,C=y.filter(((e,n)=>{let{route:i}=e;if(i.lazy)return!0;if(null==i.loader)return!1;if(a)return!("function"===typeof i.loader&&!i.loader.hydrate)||void 0===t.loaderData[i.id]&&(!t.errors||void 0===t.errors[i.id]);if(function(e,t,n){let r=!t||n.route.id!==t.route.id,o=void 0===e[n.route.id];return r||o}(t.loaderData,t.matches[n],e)||u.some((t=>t===e.route.id)))return!0;let s=t.matches[n],l=e;return xe(e,r({currentUrl:_,currentParams:s.params,nextUrl:b,nextParams:l.params},o,{actionResult:m,actionStatus:k,defaultShouldRevalidate:!E&&(d||_.pathname+_.search===b.pathname+b.search||_.search!==b.search||_e(s,l))}))})),I=[];return p.forEach(((e,i)=>{if(a||!n.some((t=>t.route.id===e.routeId))||c.has(i))return;let s=x(h,e.path,g);if(!s)return void I.push({key:i,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=t.fetchers.get(i),p=Ye(s,e.path),v=!1;v=!f.has(i)&&(!!l.includes(i)||(u&&"idle"!==u.state&&void 0===u.data?d:xe(p,r({currentUrl:_,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:n[n.length-1].params},o,{actionResult:m,actionStatus:k,defaultShouldRevalidate:!E&&d})))),v&&I.push({key:i,routeId:e.routeId,path:e.path,matches:s,match:p,controller:new AbortController})})),[C,I]}function _e(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function xe(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"===typeof n)return n}return t.defaultShouldRevalidate}async function be(e,t,n,r,o,i,a,s){let d=[t,...n.map((e=>e.route.id))].join("-");try{let l=a.get(d);l||(l=e({path:t,matches:n,patch:(e,t)=>{s.aborted||we(e,t,r,o,i)}}),a.set(d,l)),l&&("object"===typeof(u=l)&&null!=u&&"then"in u)&&await l}finally{a.delete(d)}var u}function we(e,t,n,r,o){if(e){var i;let n=r[e];u(n,"No route found to patch children into: routeId = "+e);let a=_(t,o,[e,"patch",String((null==(i=n.children)?void 0:i.length)||"0")],r);n.children?n.children.push(...a):n.children=a}else{let e=_(t,o,["patch",String(n.length||"0")],r);n.push(...e)}}async function ye(e,t,n){if(!e.lazy)return;let o=await e.lazy();if(!e.lazy)return;let i=n[e.id];u(i,"No route found in manifest");let a={};for(let r in o){let e=void 0!==i[r]&&"hasErrorBoundary"!==r;l(!e,'Route "'+i.id+'" has a static property "'+r+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+r+'" will be ignored.'),e||m.has(r)||(a[r]=o[r])}Object.assign(i,a),Object.assign(i,r({},t(i),{lazy:void 0}))}function ke(e){return Promise.all(e.matches.map((e=>e.resolve())))}async function Ee(e,t,n,o,i,a,s,d){let l=o.reduce(((e,t)=>e.add(t.route.id)),new Set),c=new Set,p=await e({matches:i.map((e=>{let o=l.has(e.route.id);return r({},e,{shouldLoad:o,resolve:r=>(c.add(e.route.id),o?async function(e,t,n,r,o,i,a){let s,d,l=r=>{let o,s=new Promise(((e,t)=>o=t));d=()=>o(),t.signal.addEventListener("abort",d);let u,l=o=>"function"!==typeof r?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+n.route.id+"]")):r({request:t,params:n.params,context:a},...void 0!==o?[o]:[]);return u=i?i((e=>l(e))):(async()=>{try{return{type:"data",result:await l()}}catch(e){return{type:"error",result:e}}})(),Promise.race([u,s])};try{let i=n.route[e];if(n.route.lazy)if(i){let e,[t]=await Promise.all([l(i).catch((t=>{e=t})),ye(n.route,o,r)]);if(void 0!==e)throw e;s=t}else{if(await ye(n.route,o,r),i=n.route[e],!i){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw Fe(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:v.data,result:void 0}}s=await l(i)}else{if(!i){let e=new URL(t.url);throw Fe(404,{pathname:e.pathname+e.search})}s=await l(i)}u(void 0!==s.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+n.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(c){return{type:v.error,result:c}}finally{d&&t.signal.removeEventListener("abort",d)}return s}(t,n,e,a,s,r,d):Promise.resolve({type:v.data,result:void 0}))})})),request:n,params:i[0].params,context:d});return i.forEach((e=>u(c.has(e.route.id),'`match.resolve()` was not called for route id "'+e.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.'))),p.filter(((e,t)=>l.has(i[t].route.id)))}async function Ce(e){let{result:t,type:n,status:r}=e;if(Ge(t)){let e;try{let n=t.headers.get("Content-Type");e=n&&/\bapplication\/json\b/.test(n)?null==t.body?null:await t.json():await t.text()}catch(a){return{type:v.error,error:a}}return n===v.error?{type:v.error,error:new X(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:v.data,data:e,statusCode:t.status,headers:t.headers}}return n===v.error?{type:v.error,error:t,statusCode:ee(t)?t.status:r}:function(e){let t=e;return t&&"object"===typeof t&&"object"===typeof t.data&&"function"===typeof t.subscribe&&"function"===typeof t.cancel&&"function"===typeof t.resolveData}(t)?{type:v.deferred,deferredData:t,statusCode:null==(o=t.init)?void 0:o.status,headers:(null==(i=t.init)?void 0:i.headers)&&new Headers(t.init.headers)}:{type:v.data,data:t,statusCode:r};var o,i}function Ie(e,t,n,r,o,i){let a=e.headers.get("Location");if(u(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!le.test(a)){let s=r.slice(0,r.findIndex((e=>e.route.id===n))+1);a=he(new URL(t.url),s,o,!0,a,i),e.headers.set("Location",a)}return e}function Se(e,t,n){if(le.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=null!=N(o.pathname,n);if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Te(e,t,n,r){let o=e.createURL(Ue(t)).toString(),i={signal:n};if(r&&ze(r.formMethod)){let{formMethod:e,formEncType:t}=r;i.method=e.toUpperCase(),"application/json"===t?(i.headers=new Headers({"Content-Type":t}),i.body=JSON.stringify(r.json)):"text/plain"===t?i.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?i.body=Re(r.formData):i.body=r.formData}return new Request(o,i)}function Re(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"===typeof r?r:r.name);return t}function $e(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Pe(e,t,n,r,o,i){let a,s={},d=null,l=!1,c={},p=r&&He(r[1])?r[1].error:void 0;return n.forEach(((n,r)=>{let f=t[r].route.id;if(u(!We(n),"Cannot handle redirect results in processLoaderData"),He(n)){let t=n.error;if(void 0!==p&&(t=p,p=void 0),d=d||{},i)d[f]=t;else{let n=De(e,f);null==d[n.route.id]&&(d[n.route.id]=t)}s[f]=void 0,l||(l=!0,a=ee(n.error)?n.error.status:500),n.headers&&(c[f]=n.headers)}else Be(n)?(o.set(f,n.deferredData),s[f]=n.deferredData.data,null==n.statusCode||200===n.statusCode||l||(a=n.statusCode),n.headers&&(c[f]=n.headers)):(s[f]=n.data,n.statusCode&&200!==n.statusCode&&!l&&(a=n.statusCode),n.headers&&(c[f]=n.headers))})),void 0!==p&&r&&(d={[r[0]]:p},s[r[0]]=void 0),{loaderData:s,errors:d,statusCode:a||200,loaderHeaders:c}}function Oe(e,t,n,o,i,a,s,d){let{loaderData:l,errors:c}=Pe(t,n,o,i,d,!1);for(let p=0;pe.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function Ne(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 Fe(e,t){let{pathname:n,routeId:r,method:o,type:i,message:a}=void 0===t?{}:t,s="Unknown Server Error",d="Unknown @remix-run/router error";return 400===e?(s="Bad Request","route-discovery"===i?d='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnMiss()` function threw the following error:\n'+a:o&&n&&r?d="You made a "+o+' request to "'+n+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===i?d="defer() is not supported in actions":"invalid-body"===i&&(d="Unable to encode submission body")):403===e?(s="Forbidden",d='Route "'+r+'" does not match URL "'+n+'"'):404===e?(s="Not Found",d='No route matches URL "'+n+'"'):405===e&&(s="Method Not Allowed",o&&n&&r?d="You made a "+o.toUpperCase()+' request to "'+n+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':o&&(d='Invalid request method "'+o.toUpperCase()+'"')),new X(e||500,s,new Error(d),!0)}function Me(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(We(n))return{result:n,idx:t}}}function Ue(e){return f(r({},"string"===typeof e?h(e):e,{hash:""}))}function je(e){return Ge(e.result)&&ie.has(e.result.status)}function Be(e){return e.type===v.deferred}function He(e){return e.type===v.error}function We(e){return(e&&e.type)===v.redirect}function Ge(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"object"===typeof e.headers&&"undefined"!==typeof e.body}function Ve(e){return oe.has(e.toLowerCase())}function ze(e){return ne.has(e.toLowerCase())}async function Ke(e,t,n,r,o,i){for(let a=0;ae.route.id===d.route.id)),c=null!=l&&!_e(l,d)&&void 0!==(i&&i[d.route.id]);if(Be(s)&&(o||c)){let e=r[a];u(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await qe(s,e,o).then((e=>{e&&(n[a]=e||n[a])}))}}}async function qe(e,t,n){if(void 0===n&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:v.data,data:e.deferredData.unwrappedData}}catch(r){return{type:v.error,error:r}}return{type:v.data,data:e.deferredData.data}}}function Je(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function Ye(e,t){let n="string"===typeof t?h(t).search:t.search;if(e[e.length-1].route.index&&Je(n||""))return e[e.length-1];let r=U(e);return r[r.length-1]}function Ze(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=i?{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0}:void 0!==a?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}:void 0}function Qe(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Xe(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function et(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}},3337:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{d(r.next(e))}catch(t){i(t)}}function s(e){try{d(r.throw(e))}catch(t){i(t)}}function d(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,s)}d((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0?setTimeout(n,t):n(null)}}window.addEventListener("storage",a),e.addToWaiting(a);var s=setTimeout(a,Math.max(0,t-Date.now()))}))];case 1:return n.sent(),[2]}}))}))},e.addToWaiting=function(t){this.removeFromWaiting(t),void 0!==e.waiters&&e.waiters.push(t)},e.removeFromWaiting=function(t){void 0!==e.waiters&&(e.waiters=e.waiters.filter((function(e){return e!==t})))},e.notifyWaiters=function(){void 0!==e.waiters&&e.waiters.slice().forEach((function(e){return e()}))},e.prototype.releaseLock=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.releaseLock__private__(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.releaseLock__private__=function(t){return r(this,void 0,void 0,(function(){var n,r,i,u;return o(this,(function(o){switch(o.label){case 0:return n=void 0===this.storageHandler?d:this.storageHandler,r=s+"-"+t,null===(i=n.getItemSync(r))?[2]:(u=JSON.parse(i)).id!==this.id?[3,2]:[4,a.default().lock(u.iat)];case 1:o.sent(),this.acquiredIatSet.delete(u.iat),n.removeItemSync(r),a.default().unlock(u.iat),e.notifyWaiters(),o.label=2;case 2:return[2]}}))}))},e.lockCorrector=function(t){for(var n=Date.now()-5e3,r=t,o=[],i=0;;){var a=r.keySync(i);if(null===a)break;o.push(a),i++}for(var d=!1,u=0;u{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){var e=this;this.locked=new Map,this.addToLocked=function(t,n){var r=e.locked.get(t);void 0===r?void 0===n?e.locked.set(t,[]):e.locked.set(t,[n]):void 0!==n&&(r.unshift(n),e.locked.set(t,r))},this.isLocked=function(t){return e.locked.has(t)},this.lock=function(t){return new Promise((function(n,r){e.isLocked(t)?e.addToLocked(t,n):(e.addToLocked(t),n())}))},this.unlock=function(t){var n=e.locked.get(t);if(void 0!==n&&0!==n.length){var r=n.pop();e.locked.set(t,n),void 0!==r&&setTimeout(r,0)}else e.locked.delete(t)}}return e.getInstance=function(){return void 0===e.instance&&(e.instance=new e),e.instance},e}();t.default=function(){return n.getInstance()}},2730:(e,t,n)=>{var r=n(5043),o=n(8853);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n