@tego/web 1.3.17 → 1.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/5293.14ee5e2b.js +464 -0
- package/dist/assets/5293.14ee5e2b.js.LICENSE.txt +1860 -0
- package/dist/assets/5293.67e21b23.css +1 -0
- package/dist/assets/android-chrome-192x192.png +0 -0
- package/dist/assets/android-chrome-512x512.png +0 -0
- package/dist/assets/apple-touch-icon.png +0 -0
- package/dist/assets/async/1151.6b8adcae.js +1 -0
- package/dist/assets/async/1152.00e4d731.js +1 -0
- package/dist/assets/async/1179.964211d5.js +1 -0
- package/dist/assets/async/131.b9e3b1ea.js +1 -0
- package/dist/assets/async/1356.5ccfc7e7.js +1 -0
- package/dist/assets/async/1467.2672bba1.js +1 -0
- package/dist/assets/async/166.f5a5d259.js +1 -0
- package/dist/assets/async/1696.f16add28.js +1 -0
- package/dist/assets/async/1747.d89c6a33.js +1 -0
- package/dist/assets/async/1800.d0580635.js +1 -0
- package/dist/assets/async/1901.16a32893.js +1 -0
- package/dist/assets/async/1902.b3a213b3.js +1 -0
- package/dist/assets/async/1981.cf58ec67.js +1 -0
- package/dist/assets/async/2015.d1881f3e.js +1 -0
- package/dist/assets/async/2064.d989c659.js +1 -0
- package/dist/assets/async/208.72f66fc4.js +1 -0
- package/dist/assets/async/2204.c7696234.js +1 -0
- package/dist/assets/async/2375.971a8c23.js +1 -0
- package/dist/assets/async/2400.6b3bc1d8.js +1 -0
- package/dist/assets/async/2434.113e771a.js +1 -0
- package/dist/assets/async/2493.75d6db89.js +1 -0
- package/dist/assets/async/2518.61a2edec.js +1 -0
- package/dist/assets/async/2549.cd8d4015.js +1 -0
- package/dist/assets/async/2563.79dd0cc0.js +1 -0
- package/dist/assets/async/2606.212958ec.js +1 -0
- package/dist/assets/async/2812.97d287f4.js +1 -0
- package/dist/assets/async/2883.0a405018.js +1 -0
- package/dist/assets/async/3024.69b15566.js +1 -0
- package/dist/assets/async/304.40cf6875.js +1 -0
- package/dist/assets/async/3105.f136ab59.js +1 -0
- package/dist/assets/async/3142.8fc2d9dc.js +1 -0
- package/dist/assets/async/3310.d8deff2a.js +1 -0
- package/dist/assets/async/3352.900dab1c.js +1 -0
- package/dist/assets/async/3371.bf1c3411.js +1 -0
- package/dist/assets/async/3499.04eed93d.js +1 -0
- package/dist/assets/async/359.29df24be.js +1 -0
- package/dist/assets/async/371.59b85128.js +1 -0
- package/dist/assets/async/3829.50241783.js +1 -0
- package/dist/assets/async/388.0c3417e8.js +1 -0
- package/dist/assets/async/3940.1fe3e367.js +1 -0
- package/dist/assets/async/4128.1ee4c9d1.js +1 -0
- package/dist/assets/async/413.1c018787.js +1 -0
- package/dist/assets/async/4141.2ad67e23.js +1 -0
- package/dist/assets/async/4308.ca18943a.js +1 -0
- package/dist/assets/async/4329.ba7c7b8a.js +1 -0
- package/dist/assets/async/4403.369e9c0f.js +1 -0
- package/dist/assets/async/4500.b2bc4f59.js +1 -0
- package/dist/assets/async/4548.10dc0699.js +1 -0
- package/dist/assets/async/4563.acf73fca.js +1 -0
- package/dist/assets/async/4621.15aef3ba.js +1 -0
- package/dist/assets/async/4653.c8e74766.js +1 -0
- package/dist/assets/async/4672.dac49a3d.js +1 -0
- package/dist/assets/async/4677.224484a0.js +1 -0
- package/dist/assets/async/4775.5295dad4.js +1 -0
- package/dist/assets/async/4785.2e9285c0.js +1 -0
- package/dist/assets/async/4888.79c31031.js +1 -0
- package/dist/assets/async/499.a3937d88.js +1 -0
- package/dist/assets/async/5050.5067f8a1.js +1 -0
- package/dist/assets/async/5100.6c1df095.js +1 -0
- package/dist/assets/async/5101.58d1b0eb.js +1 -0
- package/dist/assets/async/5222.ea438e67.js +1 -0
- package/dist/assets/async/5239.88b98c1e.js +1 -0
- package/dist/assets/async/5296.264999c4.js +1 -0
- package/dist/assets/async/5319.bf507398.js +1 -0
- package/dist/assets/async/5429.f6e79d30.js +1 -0
- package/dist/assets/async/544.ed7f02be.js +1 -0
- package/dist/assets/async/5595.a787d360.js +1 -0
- package/dist/assets/async/5845.578ec465.js +1 -0
- package/dist/assets/async/5902.2768d6b3.js +1 -0
- package/dist/assets/async/6263.dd63243a.js +1 -0
- package/dist/assets/async/6340.1e1737d4.js +1 -0
- package/dist/assets/async/6360.38331c04.js +1 -0
- package/dist/assets/async/641.a97d5a6b.js +1 -0
- package/dist/assets/async/6459.3a4b0b26.js +1 -0
- package/dist/assets/async/6495.7f7e42f4.js +1 -0
- package/dist/assets/async/6611.e6c123ec.js +1 -0
- package/dist/assets/async/6636.401303f5.js +1 -0
- package/dist/assets/async/6676.3dafddff.js +1 -0
- package/dist/assets/async/6717.4c9dd409.js +1 -0
- package/dist/assets/async/6791.6614240a.js +1 -0
- package/dist/assets/async/688.494ce4c5.js +1 -0
- package/dist/assets/async/6916.33872615.js +1 -0
- package/dist/assets/async/6947.0844785c.js +1 -0
- package/dist/assets/async/6987.a7e06c7c.js +1 -0
- package/dist/assets/async/700.b00ec145.js +1 -0
- package/dist/assets/async/7004.f35c81a5.js +1 -0
- package/dist/assets/async/7038.ad773261.js +1 -0
- package/dist/assets/async/716.99bdcb10.js +1 -0
- package/dist/assets/async/7180.2d0e2000.js +1 -0
- package/dist/assets/async/7189.2c89ca76.js +1 -0
- package/dist/assets/async/720.209cbef4.js +1 -0
- package/dist/assets/async/7228.e808c0c4.js +1 -0
- package/dist/assets/async/7250.9b42c00f.js +1 -0
- package/dist/assets/async/7251.6b060f8c.js +1 -0
- package/dist/assets/async/729.f65519dc.js +1 -0
- package/dist/assets/async/7417.6abef294.js +1 -0
- package/dist/assets/async/7431.5a9b8adc.js +1 -0
- package/dist/assets/async/7454.cbc58ee0.js +1 -0
- package/dist/assets/async/7467.7d4e8998.js +1 -0
- package/dist/assets/async/7482.f43e2a2c.js +1 -0
- package/dist/assets/async/7667.a6e9b7ac.js +1 -0
- package/dist/assets/async/7668.960ff944.js +1 -0
- package/dist/assets/async/770.d1b65df1.js +1 -0
- package/dist/assets/async/7783.a49565f1.js +1 -0
- package/dist/assets/async/7816.c1dd8dad.js +1 -0
- package/dist/assets/async/7937.505a4cb9.js +1 -0
- package/dist/assets/async/7943.97fcff31.js +1 -0
- package/dist/assets/async/7988.93885c8e.js +1 -0
- package/dist/assets/async/7994.c1abb4ec.js +1 -0
- package/dist/assets/async/7995.9ef8dc91.js +1 -0
- package/dist/assets/async/8031.77b7d2fc.js +1 -0
- package/dist/assets/async/8048.8331d16c.js +1 -0
- package/dist/assets/async/8168.2ea172bb.js +1 -0
- package/dist/assets/async/8194.4022b0b0.js +1 -0
- package/dist/assets/async/8195.06557e98.js +1 -0
- package/dist/assets/async/8471.b83bba92.js +1 -0
- package/dist/assets/async/8566.8642e42a.js +1 -0
- package/dist/assets/async/864.a840f5b4.js +1 -0
- package/dist/assets/async/8683.8c7cf85c.js +1 -0
- package/dist/assets/async/8712.75f3fe84.js +1 -0
- package/dist/assets/async/8733.4e56ce45.js +1 -0
- package/dist/assets/async/9094.ea8b166b.js +1 -0
- package/dist/assets/async/9178.7ba86a75.js +1 -0
- package/dist/assets/async/9205.c294abf0.js +1 -0
- package/dist/assets/async/9215.d22f7b18.js +1 -0
- package/dist/assets/async/9253.f064d673.js +1 -0
- package/dist/assets/async/9274.36f41f3c.js +1 -0
- package/dist/assets/async/9278.01eeb29e.js +1 -0
- package/dist/assets/async/9281.6516b55e.js +1 -0
- package/dist/assets/async/9343.2916432d.js +1 -0
- package/dist/assets/async/9353.a22c5d31.js +1 -0
- package/dist/assets/async/9407.6e395dec.js +1 -0
- package/dist/assets/async/942.073c0889.js +1 -0
- package/dist/assets/async/9444.966dde99.js +1 -0
- package/dist/assets/async/9446.721084a6.js +1 -0
- package/dist/assets/async/9564.77505ac2.js +1 -0
- package/dist/assets/async/9599.3f3d2f0e.js +1 -0
- package/dist/assets/async/964.70dce3e9.js +1 -0
- package/dist/assets/async/9715.2e94ce04.js +1 -0
- package/dist/assets/async/9857.e10cc657.js +1 -0
- package/dist/assets/async/9859.576a953b.js +1 -0
- package/dist/assets/async/9861.45bc620c.js +1 -0
- package/dist/assets/async/9941.16f336f3.js +1 -0
- package/dist/assets/index.2b486d31.js +2 -0
- package/dist/assets/index.2b486d31.js.LICENSE.txt +6 -0
- package/dist/assets/index.3937c8bb.css +1 -0
- package/dist/assets/lib-axios.1d874012.js +2 -0
- package/dist/assets/lib-axios.1d874012.js.LICENSE.txt +18 -0
- package/dist/assets/lib-react.a86740e1.js +2 -0
- package/dist/assets/lib-react.a86740e1.js.LICENSE.txt +48 -0
- package/dist/assets/lib-router.da995a7a.js +2 -0
- package/dist/assets/lib-router.da995a7a.js.LICENSE.txt +32 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.html +10 -0
- package/dist/manifest.webmanifest +1 -0
- package/package.json +7 -5
- package/rsbuild.config.ts +6 -0
- package/LICENSE +0 -201
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see lib-router.da995a7a.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_tego_web=self.webpackChunk_tego_web||[]).push([["2118"],{61838:function(e,t,r){var n,a,o,i;function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{AV:()=>B,Cd:()=>_,Ep:()=>v,Gn:()=>P,J0:()=>h,LX:()=>D,OF:()=>$,PP:()=>u,PQ:()=>H,RQ:()=>M,WK:()=>K,WS:()=>S,X3:()=>I,Zn:()=>L,aU:()=>n,cP:()=>y,cm:()=>N,fZ:()=>W,fp:()=>E,gx:()=>V,i3:()=>A,lX:()=>c,ov:()=>ee,p7:()=>eo,pC:()=>F,q_:()=>d,qp:()=>et,uX:()=>J}),(o=n||(n={})).Pop="POP",o.Push="PUSH",o.Replace="REPLACE";let s="popstate";function u(e){let t;void 0===e&&(e={});let{initialEntries:r=["/"],initialIndex:a,v5Compat:o=!1}=e;t=r.map((e,t)=>c(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let i=u(null==a?t.length-1:a),l=n.Pop,s=null;function u(e){return Math.min(Math.max(e,0),t.length-1)}function c(e,r,n){void 0===r&&(r=null);let a=m(t?t[i].pathname:"/",e,r,n);return f("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}function d(e){return"string"==typeof e?e:v(e)}return{get index(){return i},get action(){return l},get location(){return t[i]},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?y(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){l=n.Push;let a=c(e,r);i+=1,t.splice(i,t.length,a),o&&s&&s({action:l,location:a,delta:1})},replace(e,r){l=n.Replace;let a=c(e,r);t[i]=a,o&&s&&s({action:l,location:a,delta:0})},go(e){l=n.Pop;let r=u(i+e),a=t[r];i=r,s&&s({action:l,location:a,delta:e})},listen:e=>(s=e,()=>{s=null})}}function c(e){return void 0===e&&(e={}),g(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return m("",{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:v(t)},null,e)}function d(e){return void 0===e&&(e={}),g(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=y(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),m("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:v(t))},function(e,t){f("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function h(e,t){if(!1===e||null==e)throw Error(t)}function f(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function p(e,t){return{usr:e.state,key:e.key,idx:t}}function m(e,t,r,n){return void 0===r&&(r=null),l({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?y(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function v(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 y(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 g(e,t,r,a){void 0===a&&(a={});let{window:o=document.defaultView,v5Compat:i=!1}=a,u=o.history,c=n.Pop,d=null,f=y();function y(){return(u.state||{idx:null}).idx}function g(){c=n.Pop;let e=y(),t=null==e?null:e-f;f=e,d&&d({action:c,location:w.location,delta:t})}function b(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,r="string"==typeof e?e:v(e);return h(t,"No window.location.(origin|href) available to create URL for href: "+(r=r.replace(/ $/,"%20"))),new URL(r,t)}null==f&&(f=0,u.replaceState(l({},u.state,{idx:f}),""));let w={get action(){return c},get location(){return e(o,u)},listen(e){if(d)throw Error("A history only accepts one active listener");return o.addEventListener(s,g),d=e,()=>{o.removeEventListener(s,g),d=null}},createHref:e=>t(o,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=n.Push;let a=m(w.location,e,t);r&&r(a,e);let l=p(a,f=y()+1),s=w.createHref(a);try{u.pushState(l,"",s)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(s)}i&&d&&d({action:c,location:w.location,delta:1})},replace:function(e,t){c=n.Replace;let a=m(w.location,e,t);r&&r(a,e);let o=p(a,f=y()),l=w.createHref(a);u.replaceState(o,"",l),i&&d&&d({action:c,location:w.location,delta:0})},go:e=>u.go(e)};return w}(i=a||(a={})).data="data",i.deferred="deferred",i.redirect="redirect",i.error="error";let b=new Set(["lazy","caseSensitive","path","id","index","children"]);function w(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let o=[...r,String(a)],i="string"==typeof e.id?e.id:o.join("-");if(h(!0!==e.index||!e.children,"Cannot specify children on an index route"),h(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let r=l({},e,t(e),{id:i});return n[i]=r,r}{let r=l({},e,t(e),{id:i,children:void 0});return n[i]=r,e.children&&(r.children=w(e.children,t,o,n)),r}})}function E(e,t,r){return void 0===r&&(r="/"),R(e,t,r,!1)}function R(e,t,r,n){let a=L(("string"==typeof t?y(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)=>{var l,s;let u,c,d={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};d.relativePath.startsWith("/")&&(h(d.relativePath.startsWith(a),'Absolute route path "'+d.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),d.relativePath=d.relativePath.slice(a.length));let f=M([a,d.relativePath]),p=n.concat(d);t.children&&t.children.length>0&&(h(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+f+'".'),e(t.children,r,p,f)),(null!=t.path||t.index)&&r.push({path:f,score:(l=f,s=t.index,c=(u=l.split("/")).length,u.some(C)&&(c+=-2),s&&(c+=2),u.filter(e=>!C(e)).reduce((e,t)=>e+(x.test(t)?3:""===t?1:10),c)),routesMeta:p})};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 l=e(a.join("/")),s=[];return s.push(...l.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...l),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,r);else o(e,t)}),r}(e);o.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)});let i=null;for(let e=0;null==i&&e<o.length;++e){let t=_(a);i=function(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let e=0;e<n.length;++e){let l=n[e],s=e===n.length-1,u="/"===o?t:t.slice(o.length)||"/",c=D({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u),d=l.route;if(!c&&s&&r&&!n[n.length-1].route.index&&(c=D({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:M([o,c.pathname]),pathnameBase:T(M([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=M([o,c.pathnameBase]))}return i}(o[e],t,n)}return i}function S(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}let x=/^:[\w-]+$/,C=e=>"*"===e;function P(e,t){void 0===t&&(t={});let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(f(!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 h("?"===r||null!=n,'Missing ":'+e+'" param'),a(n)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function D(e,t){var r,n,a;let o,i;"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[l,s]=(r=e.path,n=e.caseSensitive,a=e.end,void 0===n&&(n=!1),void 0===a&&(a=!0),f("*"===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(l);if(!u)return null;let c=u[0],d=c.replace(/(.)\/+$/,"$1"),h=u.slice(1);return{params:s.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=h[r]||"";d=c.slice(0,c.length-e.length).replace(/(.)\/+$/,"$1")}let o=h[r];return a&&!o?e[n]=void 0:e[n]=(o||"").replace(/%2F/g,"/"),e},{}),pathname:c,pathnameBase:d,pattern:e}}function _(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return f(!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 L(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 A(e,t){var r;let n;void 0===t&&(t="/");let{pathname:a,search:o="",hash:i=""}="string"==typeof e?y(e):e;return{pathname:a?a.startsWith("/")?a:(r=a,n=t.replace(/\/+$/,"").split("/"),r.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"):t,search:O(o),hash:j(i)}}function U(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 <Link to="..."> and the router will parse it for you.'}function k(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function N(e,t){let r=k(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}function F(e,t,r,n){let a,o;void 0===n&&(n=!1),"string"==typeof e?a=y(e):(h(!(a=l({},e)).pathname||!a.pathname.includes("?"),U("?","pathname","search",a)),h(!a.pathname||!a.pathname.includes("#"),U("#","pathname","hash",a)),h(!a.search||!a.search.includes("#"),U("#","search","hash",a)));let i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=A(a,o),c=s&&"/"!==s&&s.endsWith("/"),d=(i||"."===s)&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}let M=e=>e.join("/").replace(/\/\/+/g,"/"),T=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),O=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",j=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",B=function(e,t){void 0===t&&(t={});let r="number"==typeof t?{status:t}:t,n=new Headers(r.headers);return n.has("Content-Type")||n.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),l({},r,{headers:n}))};class I extends Error{}class z{constructor(e,t){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],h(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 I("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 I)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 h(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 H=function(e,t){return void 0===t&&(t={}),new z(e,"number"==typeof t?{status:t}:t)},J=function(e,t){void 0===t&&(t=302);let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,l({},r,{headers:n}))},W=(e,t)=>{let r=J(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},V=(e,t)=>{let r=J(e,t);return r.headers.set("X-Remix-Replace","true"),r};class ${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 K(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let X=["post","put","patch","delete"],q=new Set(X),Z=new Set(["get",...X]),Y=new Set([301,302,303,307,308]),Q=new Set([307,308]),G={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ee={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},et={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},er=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,en=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ea="remix-router-transitions";function eo(e){let t,r,o,i,s,u,c=e.window?e.window:"undefined"!=typeof window?window:void 0,d=void 0!==c&&void 0!==c.document&&void 0!==c.document.createElement,p=!d;if(h(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=en;let v={},y=w(e.routes,t,void 0,v),g=e.basename||"/",b=e.dataStrategy||em,x=e.patchRoutesOnNavigation,C=l({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),P=null,D=new Set,_=null,A=null,U=null,k=null!=e.hydrationData,N=E(y,e.history.location,g),F=null;if(null==N&&!x){let t=e_(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=eD(y);N=r,F={[n.id]:t}}if(N&&!e.hydrationData&&ta(N,y,e.history.location.pathname).active&&(N=null),N)if(N.some(e=>e.route.lazy))o=!1;else if(N.some(e=>e.route.loader))if(C.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=N.findIndex(e=>void 0!==r[e.route.id]);o=N.slice(0,e+1).every(e=>!ec(e.route,t,r))}else o=N.every(e=>!ec(e.route,t,r))}else o=null!=e.hydrationData;else o=!0;else if(o=!1,N=[],C.v7_partialHydration){let t=ta(null,y,e.history.location.pathname);t.active&&t.matches&&(N=t.matches)}let M={historyAction:e.history.action,location:e.history.location,matches:N,initialized:o,navigation:G,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||F,fetchers:new Map,blockers:new Map},T=n.Pop,O=!1,j=!1,B=new Map,I=null,z=!1,H=!1,J=[],W=new Set,V=new Map,$=0,X=-1,q=new Map,Z=new Set,eo=new Map,es=new Map,ed=new Set,eh=new Map,ep=new Map;function ey(e,t){void 0===t&&(t={}),M=l({},M,e);let r=[],n=[];C.v7_fetcherPersist&&M.fetchers.forEach((e,t)=>{"idle"===e.state&&(ed.has(t)?n.push(t):r.push(t))}),[...D].forEach(e=>e(M,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),C.v7_fetcherPersist&&(r.forEach(e=>M.fetchers.delete(e)),n.forEach(e=>e7(e)))}function eE(t,a,o){var i,s;let u,c,{flushSync:d}=void 0===o?{}:o,h=null!=M.actionData&&null!=M.navigation.formMethod&&eT(M.navigation.formMethod)&&"loading"===M.navigation.state&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;u=a.actionData?Object.keys(a.actionData).length>0?a.actionData:null:h?M.actionData:null;let f=a.loaderData?ex(M.loaderData,a.loaderData,a.matches||[],a.errors):M.loaderData,p=M.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,et));let m=!0===O||null!=M.navigation.formMethod&&eT(M.navigation.formMethod)&&(null==(s=t.state)?void 0:s._isRedirect)!==!0;if(r&&(y=r,r=void 0),z||T===n.Pop||(T===n.Push?e.history.push(t,t.state):T===n.Replace&&e.history.replace(t,t.state)),T===n.Pop){let e=B.get(M.location.pathname);e&&e.has(t.pathname)?c={currentLocation:M.location,nextLocation:t}:B.has(t.pathname)&&(c={currentLocation:t,nextLocation:M.location})}else if(j){let e=B.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),B.set(M.location.pathname,e)),c={currentLocation:M.location,nextLocation:t}}ey(l({},a,{actionData:u,loaderData:f,historyAction:T,location:t,initialized:!0,navigation:G,revalidation:"idle",restoreScrollPosition:tn(t,a.matches||M.matches),preventScrollReset:m,blockers:p}),{viewTransitionOpts:c,flushSync:!0===d}),T=n.Pop,O=!1,j=!1,z=!1,H=!1,J=[]}async function eR(t,r){if("number"==typeof t)return void e.history.go(t);let a=ei(M.location,M.matches,g,C.v7_prependBasename,t,C.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:o,submission:i,error:s}=el(C.v7_normalizeFormMethod,!1,a,r),u=M.location,c=m(M.location,o,r&&r.state);c=l({},c,e.history.encodeLocation(c));let d=r&&null!=r.replace?r.replace:void 0,h=n.Push;!0===d?h=n.Replace:!1===d||null!=i&&eT(i.formMethod)&&i.formAction===M.location.pathname+M.location.search&&(h=n.Replace);let f=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,p=!0===(r&&r.flushSync),v=e9({currentLocation:u,nextLocation:c,historyAction:h});return v?void e8(v,{state:"blocked",location:c,proceed(){e8(v,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),eR(t,r)},reset(){let e=new Map(M.blockers);e.set(v,et),ey({blockers:e})}}):await eA(h,c,{submission:i,pendingError:s,preventScrollReset:f,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:p})}async function eA(t,n,o){var i,u,c,d;let h;s&&s.abort(),s=null,T=t,z=!0===(o&&o.startUninterruptedRevalidation),i=M.location,u=M.matches,_&&U&&(_[tr(i,u)]=U()),O=!0===(o&&o.preventScrollReset),j=!0===(o&&o.enableViewTransition);let f=r||y,p=o&&o.overrideNavigation,m=E(f,n,g),v=!0===(o&&o.flushSync),b=ta(m,f,n.pathname);if(b.active&&b.matches&&(m=b.matches),!m){let{error:e,notFoundMatches:t,route:r}=te(n.pathname);eE(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:v});return}if(M.initialized&&!H&&(c=M.location,d=n,c.pathname===d.pathname&&c.search===d.search&&(""===c.hash?""!==d.hash:c.hash===d.hash||""!==d.hash||!1))&&!(o&&o.submission&&eT(o.submission.formMethod)))return void eE(n,{matches:m},{flushSync:v});s=new AbortController;let w=ew(e.history,n,s.signal,o&&o.submission);if(o&&o.pendingError)h=[eP(m).route.id,{type:a.error,error:o.pendingError}];else if(o&&o.submission&&eT(o.submission.formMethod)){let t=await eF(w,n,o.submission,m,b.active,{replace:o.replace,flushSync:v});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(ek(r)&&K(r.error)&&404===r.error.status){s=null,eE(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}m=t.matches||m,h=t.pendingActionResult,p=eJ(n,o.submission),v=!1,b.active=!1,w=ew(e.history,w.url,w.signal)}let{shortCircuited:R,matches:S,loaderData:x,errors:C}=await eI(w,n,m,b.active,p,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,v,h);R||(s=null,eE(n,l({matches:S||m},eC(h),{loaderData:x,errors:C})))}async function eF(e,t,r,o,i,l){var s;let u;if(void 0===l&&(l={}),eQ(),ey({navigation:{state:"submitting",location:t,formMethod:(s=r).formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text}},{flushSync:!0===l.flushSync}),i){let r=await to(o,t.pathname,e.signal);if("aborted"===r.type)return{shortCircuited:!0};if("error"===r.type){let e=eP(r.partialMatches).route.id;return{matches:r.partialMatches,pendingActionResult:[e,{type:a.error,error:r.error}]}}if(r.matches)o=r.matches;else{let{notFoundMatches:e,error:r,route:n}=te(t.pathname);return{matches:e,pendingActionResult:[n.id,{type:a.error,error:r}]}}}let c=ez(o,t);if(c.route.action||c.route.lazy){if(u=(await eZ("action",M,e,[c],o,null))[c.route.id],e.signal.aborted)return{shortCircuited:!0}}else u={type:a.error,error:e_(405,{method:e.method,pathname:t.pathname,routeId:c.route.id})};if(eN(u)){let t;return t=l&&null!=l.replace?l.replace:eb(u.response.headers.get("Location"),new URL(e.url),g)===M.location.pathname+M.location.search,await eq(e,u,!0,{submission:r,replace:t}),{shortCircuited:!0}}if(eU(u))throw e_(400,{type:"defer-action"});if(ek(u)){let e=eP(o,c.route.id);return!0!==(l&&l.replace)&&(T=n.Push),{matches:o,pendingActionResult:[e.route.id,u]}}return{matches:o,pendingActionResult:[c.route.id,u]}}async function eI(t,n,a,o,i,u,c,d,h,f,p){let m=i||eJ(n,u),v=u||c||eH(m),b=!z&&(!C.v7_partialHydration||!h);if(o){if(b){let e=e$(p);ey(l({navigation:m},void 0!==e?{actionData:e}:{}),{flushSync:f})}let e=await to(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=eP(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)a=e.matches;else{let{error:e,notFoundMatches:t,route:r}=te(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let w=r||y,[E,R]=eu(e.history,M,a,v,n,C.v7_partialHydration&&!0===h,C.v7_skipActionErrorRevalidation,H,J,W,ed,eo,Z,w,g,p);if(tt(e=>!(a&&a.some(t=>t.route.id===e))||E&&E.some(t=>t.route.id===e)),X=++$,0===E.length&&0===R.length){let e=e2();return eE(n,l({matches:a,loaderData:{},errors:p&&ek(p[1])?{[p[0]]:p[1].error}:null},eC(p),e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(b){let e={};if(!o){e.navigation=m;let t=e$(p);void 0!==t&&(e.actionData=t)}R.length>0&&(R.forEach(e=>{let t=M.fetchers.get(e.key),r=eW(void 0,t?t.data:void 0);M.fetchers.set(e.key,r)}),e.fetchers=new Map(M.fetchers)),ey(e,{flushSync:f})}R.forEach(e=>{e4(e.key),e.controller&&V.set(e.key,e.controller)});let S=()=>R.forEach(e=>e4(e.key));s&&s.signal.addEventListener("abort",S);let{loaderResults:x,fetcherResults:P}=await eY(M,a,E,R,t);if(t.signal.aborted)return{shortCircuited:!0};s&&s.signal.removeEventListener("abort",S),R.forEach(e=>V.delete(e.key));let D=eL(x);if(D)return await eq(t,D.result,!0,{replace:d}),{shortCircuited:!0};if(D=eL(P))return Z.add(D.key),await eq(t,D.result,!0,{replace:d}),{shortCircuited:!0};let{loaderData:_,errors:L}=eS(M,a,x,p,R,P,eh);eh.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&eh.delete(t)})}),C.v7_partialHydration&&h&&M.errors&&(L=l({},M.errors,L));let A=e2(),U=e5(X),k=A||U||R.length>0;return l({matches:a,loaderData:_,errors:L},k?{fetchers:new Map(M.fetchers)}:{})}function e$(e){if(e&&!ek(e[1]))return{[e[0]]:e[1].data};if(M.actionData)if(0===Object.keys(M.actionData).length)return null;else return M.actionData}async function eK(t,n,a,o,i,l,u,c,d){var f,p;function m(e){if(!e.route.action&&!e.route.lazy){let e=e_(405,{method:d.formMethod,pathname:a,routeId:n});return e0(t,n,e,{flushSync:u}),!0}return!1}if(eQ(),eo.delete(t),!l&&m(o))return;let v=M.fetchers.get(t);eG(t,(f=d,p=v,{state:"submitting",formMethod:f.formMethod,formAction:f.formAction,formEncType:f.formEncType,formData:f.formData,json:f.json,text:f.text,data:p?p.data:void 0}),{flushSync:u});let b=new AbortController,w=ew(e.history,a,b.signal,d);if(l){let e=await to(i,a,w.signal);if("aborted"===e.type)return;if("error"===e.type)return void e0(t,n,e.error,{flushSync:u});if(!e.matches)return void e0(t,n,e_(404,{pathname:a}),{flushSync:u});if(m(o=ez(i=e.matches,a)))return}V.set(t,b);let R=$,S=(await eZ("action",M,w,[o],i,t))[o.route.id];if(w.signal.aborted){V.get(t)===b&&V.delete(t);return}if(C.v7_fetcherPersist&&ed.has(t)){if(eN(S)||ek(S))return void eG(t,eV(void 0))}else{if(eN(S))return(V.delete(t),X>R)?void eG(t,eV(void 0)):(Z.add(t),eG(t,eW(d)),eq(w,S,!1,{fetcherSubmission:d,preventScrollReset:c}));if(ek(S))return void e0(t,n,S.error)}if(eU(S))throw e_(400,{type:"defer-action"});let x=M.navigation.location||M.location,P=ew(e.history,x,b.signal),D=r||y,_="idle"!==M.navigation.state?E(D,M.navigation.location,g):M.matches;h(_,"Didn't find any matches after fetcher action");let L=++$;q.set(t,L);let A=eW(d,S.data);M.fetchers.set(t,A);let[U,k]=eu(e.history,M,_,d,x,!1,C.v7_skipActionErrorRevalidation,H,J,W,ed,eo,Z,D,g,[o.route.id,S]);k.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=M.fetchers.get(t),n=eW(void 0,r?r.data:void 0);M.fetchers.set(t,n),e4(t),e.controller&&V.set(t,e.controller)}),ey({fetchers:new Map(M.fetchers)});let N=()=>k.forEach(e=>e4(e.key));b.signal.addEventListener("abort",N);let{loaderResults:F,fetcherResults:O}=await eY(M,_,U,k,P);if(b.signal.aborted)return;b.signal.removeEventListener("abort",N),q.delete(t),V.delete(t),k.forEach(e=>V.delete(e.key));let j=eL(F);if(j)return eq(P,j.result,!1,{preventScrollReset:c});if(j=eL(O))return Z.add(j.key),eq(P,j.result,!1,{preventScrollReset:c});let{loaderData:B,errors:I}=eS(M,_,F,void 0,k,O,eh);if(M.fetchers.has(t)){let e=eV(S.data);M.fetchers.set(t,e)}e5(L),"loading"===M.navigation.state&&L>X?(h(T,"Expected pending action"),s&&s.abort(),eE(M.navigation.location,{matches:_,loaderData:B,errors:I,fetchers:new Map(M.fetchers)})):(ey({errors:I,loaderData:ex(M.loaderData,B,_,I),fetchers:new Map(M.fetchers)}),H=!1)}async function eX(t,r,n,a,o,i,l,s,u){let c=M.fetchers.get(t);eG(t,eW(u,c?c.data:void 0),{flushSync:l});let d=new AbortController,f=ew(e.history,n,d.signal);if(i){let e=await to(o,n,f.signal);if("aborted"===e.type)return;if("error"===e.type)return void e0(t,r,e.error,{flushSync:l});if(!e.matches)return void e0(t,r,e_(404,{pathname:n}),{flushSync:l});a=ez(o=e.matches,n)}V.set(t,d);let p=$,m=(await eZ("loader",M,f,[a],o,t))[a.route.id];if(eU(m)&&(m=await eB(m,f.signal,!0)||m),V.get(t)===d&&V.delete(t),!f.signal.aborted){if(ed.has(t))return void eG(t,eV(void 0));if(eN(m))if(X>p)return void eG(t,eV(void 0));else{Z.add(t),await eq(f,m,!1,{preventScrollReset:s});return}if(ek(m))return void e0(t,r,m.error);h(!eU(m),"Unhandled fetcher deferred data"),eG(t,eV(m.data))}}async function eq(t,r,a,o){let{submission:i,fetcherSubmission:u,preventScrollReset:f,replace:p}=void 0===o?{}:o;r.response.headers.has("X-Remix-Revalidate")&&(H=!0);let v=r.response.headers.get("Location");h(v,"Expected a Location header on the redirect Response"),v=eb(v,new URL(t.url),g);let y=m(M.location,v,{_isRedirect:!0});if(d){let t=!1;if(r.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(er.test(v)){let r=e.history.createURL(v);t=r.origin!==c.location.origin||null==L(r.pathname,g)}if(t)return void(p?c.location.replace(v):c.location.assign(v))}s=null;let b=!0===p||r.response.headers.has("X-Remix-Replace")?n.Replace:n.Push,{formMethod:w,formAction:E,formEncType:R}=M.navigation;!i&&!u&&w&&E&&R&&(i=eH(M.navigation));let S=i||u;if(Q.has(r.response.status)&&S&&eT(S.formMethod))await eA(b,y,{submission:l({},S,{formAction:v}),preventScrollReset:f||O,enableViewTransition:a?j:void 0});else{let e=eJ(y,i);await eA(b,y,{overrideNavigation:e,fetcherSubmission:u,preventScrollReset:f||O,enableViewTransition:a?j:void 0})}}async function eZ(e,r,n,o,i,l){let s,u={};try{s=await ev(b,e,r,n,o,i,l,v,t)}catch(e){return o.forEach(t=>{u[t.route.id]={type:a.error,error:e}}),u}for(let[e,t]of Object.entries(s)){var c;if(eM((c=t).result)&&Y.has(c.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(h(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!er.test(i)){let l=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=ei(new URL(t.url),l,a,!0,i,o),e.headers.set("Location",i)}return e}(r,n,e,i,g,C.v7_relativeSplatPath)}}else u[e]=await eg(t)}return u}async function eY(t,r,n,o,i){let l=t.matches,s=eZ("loader",t,i,n,r,null),u=Promise.all(o.map(async r=>{if(!r.matches||!r.match||!r.controller)return Promise.resolve({[r.key]:{type:a.error,error:e_(404,{pathname:r.path})}});{let n=(await eZ("loader",t,ew(e.history,r.path,r.controller.signal),[r.match],r.matches,r.key))[r.match.route.id];return{[r.key]:n}}})),c=await s,d=(await u).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([eO(r,c,i.signal,l,t.loaderData),ej(r,d,o)]),{loaderResults:c,fetcherResults:d}}function eQ(){H=!0,J.push(...tt()),eo.forEach((e,t)=>{V.has(t)&&W.add(t),e4(t)})}function eG(e,t,r){void 0===r&&(r={}),M.fetchers.set(e,t),ey({fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function e0(e,t,r,n){void 0===n&&(n={});let a=eP(M.matches,t);e7(e),ey({errors:{[a.route.id]:r},fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function e1(e){return C.v7_fetcherPersist&&(es.set(e,(es.get(e)||0)+1),ed.has(e)&&ed.delete(e)),M.fetchers.get(e)||ee}function e7(e){let t=M.fetchers.get(e);V.has(e)&&!(t&&"loading"===t.state&&q.has(e))&&e4(e),eo.delete(e),q.delete(e),Z.delete(e),ed.delete(e),W.delete(e),M.fetchers.delete(e)}function e4(e){let t=V.get(e);t&&(t.abort(),V.delete(e))}function e3(e){for(let t of e){let e=eV(e1(t).data);M.fetchers.set(t,e)}}function e2(){let e=[],t=!1;for(let r of Z){let n=M.fetchers.get(r);h(n,"Expected fetcher: "+r),"loading"===n.state&&(Z.delete(r),e.push(r),t=!0)}return e3(e),t}function e5(e){let t=[];for(let[r,n]of q)if(n<e){let e=M.fetchers.get(r);h(e,"Expected fetcher: "+r),"loading"===e.state&&(e4(r),q.delete(r),t.push(r))}return e3(t),t.length>0}function e6(e){M.blockers.delete(e),ep.delete(e)}function e8(e,t){let r=M.blockers.get(e)||et;h("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(M.blockers);n.set(e,t),ey({blockers:n})}function e9(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===ep.size)return;ep.size>1&&f(!1,"A router only supports one blocker at a time");let a=Array.from(ep.entries()),[o,i]=a[a.length-1],l=M.blockers.get(o);if((!l||"proceeding"!==l.state)&&i({currentLocation:t,nextLocation:r,historyAction:n}))return o}function te(e){let t=e_(404,{pathname:e}),{matches:n,route:a}=eD(r||y);return tt(),{notFoundMatches:n,route:a,error:t}}function tt(e){let t=[];return eh.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),eh.delete(n))}),t}function tr(e,t){return A&&A(e,t.map(e=>S(e,M.loaderData)))||e.key}function tn(e,t){if(_){let r=_[tr(e,t)];if("number"==typeof r)return r}return null}function ta(e,t,r){if(x){if(!e)return{active:!0,matches:R(t,r,g,!0)||[]};else if(Object.keys(e[0].params).length>0)return{active:!0,matches:R(t,r,g,!0)}}return{active:!1,matches:null}}async function to(e,n,a){if(!x)return{type:"success",matches:e};let o=e;for(;;){let e=null==r,i=r||y,l=v;try{await x({path:n,matches:o,patch:(e,r)=>{a.aborted||ef(e,r,i,l,t)}})}catch(e){return{type:"error",error:e,partialMatches:o}}finally{e&&!a.aborted&&(y=[...y])}if(a.aborted)return{type:"aborted"};let s=E(i,n,g);if(s)return{type:"success",matches:s};let u=R(i,n,g,!0);if(!u||o.length===u.length&&o.every((e,t)=>e.route.id===u[t].route.id))return{type:"success",matches:null};o=u}}return i={get basename(){return g},get future(){return C},get state(){return M},get routes(){return y},get window(){return c},initialize:function(){if(P=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(u){u(),u=void 0;return}f(0===ep.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:M.location,nextLocation:n,historyAction:r});if(o&&null!=a){let t=new Promise(e=>{u=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(M.blockers);e.set(o,et),ey({blockers:e})}});return}return eA(r,n)}),d){var t=c,r=B;try{let e=t.sessionStorage.getItem(ea);if(e){let t=JSON.parse(e);for(let[e,n]of Object.entries(t||{}))n&&Array.isArray(n)&&r.set(e,new Set(n||[]))}}catch(e){}let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(ea,JSON.stringify(r))}catch(e){f(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(c,B);c.addEventListener("pagehide",e),I=()=>c.removeEventListener("pagehide",e)}return M.initialized||eA(n.Pop,M.location,{initialHydration:!0}),i},subscribe:function(e){return D.add(e),()=>D.delete(e)},enableScrollRestoration:function(e,t,r){if(_=e,U=t,A=r||null,!k&&M.navigation===G){k=!0;let e=tn(M.location,M.matches);null!=e&&ey({restoreScrollPosition:e})}return()=>{_=null,U=null,A=null}},navigate:eR,fetch:function(e,t,n,a){if(p)throw Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");e4(e);let o=!0===(a&&a.flushSync),i=r||y,l=ei(M.location,M.matches,g,C.v7_prependBasename,n,C.v7_relativeSplatPath,t,null==a?void 0:a.relative),s=E(i,l,g),u=ta(s,i,l);if(u.active&&u.matches&&(s=u.matches),!s)return void e0(e,t,e_(404,{pathname:l}),{flushSync:o});let{path:c,submission:d,error:h}=el(C.v7_normalizeFormMethod,!0,l,a);if(h)return void e0(e,t,h,{flushSync:o});let f=ez(s,c),m=!0===(a&&a.preventScrollReset);if(d&&eT(d.formMethod))return void eK(e,t,c,f,s,u.active,o,m,d);eo.set(e,{routeId:t,path:c}),eX(e,t,c,f,s,u.active,o,m,d)},revalidate:function(){if(eQ(),ey({revalidation:"loading"}),"submitting"!==M.navigation.state){if("idle"===M.navigation.state)return void eA(M.historyAction,M.location,{startUninterruptedRevalidation:!0});eA(T||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:!0===j})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:e1,deleteFetcher:function(e){if(C.v7_fetcherPersist){let t=(es.get(e)||0)-1;t<=0?(es.delete(e),ed.add(e)):es.set(e,t)}else e7(e);ey({fetchers:new Map(M.fetchers)})},dispose:function(){P&&P(),I&&I(),D.clear(),s&&s.abort(),M.fetchers.forEach((e,t)=>e7(t)),M.blockers.forEach((e,t)=>e6(t))},getBlocker:function(e,t){let r=M.blockers.get(e)||et;return ep.get(e)!==t&&ep.set(e,t),r},deleteBlocker:e6,patchRoutes:function(e,n){let a=null==r;ef(e,n,r||y,v,t),a&&(y=[...y],ey({}))},_internalFetchControllers:V,_internalActiveDeferreds:eh,_internalSetRoutes:function(e){r=w(e,t,void 0,v={})}}}function ei(e,t,r,n,a,o,i,l){let s,u;if(i){for(let e of(s=[],t))if(s.push(e),e.route.id===i){u=e;break}}else s=t,u=t[t.length-1];let c=F(a||".",N(s,o),L(e.pathname,r)||e.pathname,"path"===l);if(null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&u){let e=eI(c.search);if(u.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();c.search=r?"?"+r:""}}return n&&"/"!==r&&(c.pathname="/"===c.pathname?r:M([r,c.pathname])),v(c)}function el(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:e_(405,{method:n.formMethod})};let l=()=>({path:r,error:e_(400,{type:"invalid-body"})}),s=n.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=eA(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!eT(u))return l();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:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if("application/json"===n.formEncType){if(!eT(u))return l();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(h("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=eE(n.formData),i=n.formData;else if(n.body instanceof FormData)o=eE(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=eR(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=eR(o)}catch(e){return l()}let d={formMethod:u,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(eT(d.formMethod))return{path:r,submission:d};let f=y(r);return t&&f.search&&eI(f.search)&&o.append("index",""),f.search="?"+o,{path:v(f),submission:d}}function es(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 eu(e,t,r,n,a,o,i,s,u,c,d,h,f,p,m,v){let y=v?ek(v[1])?v[1].error:v[1].data:void 0,g=e.createURL(t.location),b=e.createURL(a),w=r;o&&t.errors?w=es(r,Object.keys(t.errors)[0],!0):v&&ek(v[1])&&(w=es(r,v[0]));let R=v?v[1].statusCode:void 0,S=i&&R&&R>=400,x=w.filter((e,r)=>{var a,i,c;let d,h,{route:f}=e;if(f.lazy)return!0;if(null==f.loader)return!1;if(o)return ec(f,t.loaderData,t.errors);if(a=t.loaderData,i=t.matches[r],c=e,d=!i||c.route.id!==i.route.id,h=void 0===a[c.route.id],d||h||u.some(t=>t===e.route.id))return!0;let p=t.matches[r];return eh(e,l({currentUrl:g,currentParams:p.params,nextUrl:b,nextParams:e.params},n,{actionResult:y,actionStatus:R,defaultShouldRevalidate:!S&&(s||g.pathname+g.search===b.pathname+b.search||g.search!==b.search||ed(p,e))}))}),C=[];return h.forEach((e,a)=>{if(o||!r.some(t=>t.route.id===e.routeId)||d.has(a))return;let i=E(p,e.path,m);if(!i)return void C.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=t.fetchers.get(a),h=ez(i,e.path),v=!1;f.has(a)?v=!1:c.has(a)?(c.delete(a),v=!0):v=u&&"idle"!==u.state&&void 0===u.data?s:eh(h,l({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:y,actionStatus:R,defaultShouldRevalidate:!S&&s})),v&&C.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:h,controller:new AbortController})}),[x,C]}function ec(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 ed(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function eh(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function ef(e,t,r,n,a){var o;let i;if(e){let t=n[e];h(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let l=w(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(...l)}async function ep(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];h(a,"No route found in manifest");let o={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;f(!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||b.has(e)||(o[e]=n[e])}Object.assign(a,o),Object.assign(a,l({},t(a),{lazy:void 0}))}async function em(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 ev(e,t,r,n,o,i,s,u,c,d){let h=i.map(e=>e.route.lazy?ep(e.route,c,u):void 0),f=i.map((e,r)=>{let i=h[r],s=o.some(t=>t.route.id===e.route.id),u=async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(s=!0),s?ey(t,n,e,i,r,d):Promise.resolve({type:a.data,result:void 0}));return l({},e,{shouldLoad:s,resolve:u})}),p=await e({matches:f,request:n,params:i[0].params,fetcherKey:s,context:d});try{await Promise.all(h)}catch(e){}return p}async function ey(e,t,r,n,o,i){let l,s,u=n=>{let a,l=new Promise((e,t)=>a=t);s=()=>a(),t.signal.addEventListener("abort",s);let u=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=>u(e)):u());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),l])};try{let o=r.route[e];if(n)if(o){let e,[t]=await Promise.all([u(o).catch(t=>{e=t}),n]);if(void 0!==e)throw e;l=t}else if(await n,o=r.route[e])l=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 e_(405,{method:t.method,pathname:o,routeId:r.route.id})}else if(o)l=await u(o);else{let e=new URL(t.url),r=e.pathname+e.search;throw e_(404,{pathname:r})}h(void 0!==l.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{s&&t.signal.removeEventListener("abort",s)}return l}async function eg(e){var t,r,n,o,i,l,s;let{result:u,type:c}=e;if(eM(u)){let e;try{let t=u.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==u.body?null:await u.json():await u.text()}catch(e){return{type:a.error,error:e}}return c===a.error?{type:a.error,error:new $(u.status,u.statusText,e),statusCode:u.status,headers:u.headers}:{type:a.data,data:e,statusCode:u.status,headers:u.headers}}if(c===a.error){if(eF(u)){if(u.data instanceof Error)return{type:a.error,error:u.data,statusCode:null==(r=u.init)?void 0:r.status};u=new $((null==(t=u.init)?void 0:t.status)||500,void 0,u.data)}return{type:a.error,error:u,statusCode:K(u)?u.status:void 0}}return(s=u)&&"object"==typeof s&&"object"==typeof s.data&&"function"==typeof s.subscribe&&"function"==typeof s.cancel&&"function"==typeof s.resolveData?{type:a.deferred,deferredData:u,statusCode:null==(n=u.init)?void 0:n.status,headers:(null==(o=u.init)?void 0:o.headers)&&new Headers(u.init.headers)}:eF(u)?{type:a.data,data:u.data,statusCode:null==(i=u.init)?void 0:i.status,headers:null!=(l=u.init)&&l.headers?new Headers(u.init.headers):void 0}:{type:a.data,data:u}}function eb(e,t,r){if(er.test(e)){let n=new URL(e.startsWith("//")?t.protocol+e:e),a=null!=L(n.pathname,r);if(n.origin===t.origin&&a)return n.pathname+n.search+n.hash}return e}function ew(e,t,r,n){let a=e.createURL(eA(t)).toString(),o={signal:r};if(n&&eT(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=eE(n.formData):o.body=n.formData}return new Request(a,o)}function eE(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function eR(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function eS(e,t,r,n,a,o,i){let s,u,c,d,f,p,{loaderData:m,errors:v}=(u={},c=null,d=!1,f={},p=n&&ek(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(h(!eN(a),"Cannot handle redirect results in processLoaderData"),ek(a)){let e=a.error;void 0!==p&&(e=p,p=void 0),c=c||{},1;{let r=eP(t,n);null==c[r.route.id]&&(c[r.route.id]=e)}u[n]=void 0,d||(d=!0,s=K(a.error)?a.error.status:500),a.headers&&(f[n]=a.headers)}else eU(a)?(i.set(n,a.deferredData),u[n]=a.deferredData.data,null==a.statusCode||200===a.statusCode||d||(s=a.statusCode)):(u[n]=a.data,a.statusCode&&200!==a.statusCode&&!d&&(s=a.statusCode)),a.headers&&(f[n]=a.headers)}),void 0!==p&&n&&(c={[n[0]]:p},u[n[0]]=void 0),{loaderData:u,errors:c,statusCode:s||200,loaderHeaders:f});return a.forEach(t=>{let{key:r,match:n,controller:a}=t,i=o[r];if(h(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(ek(i)){let t=eP(e.matches,null==n?void 0:n.route.id);v&&v[t.route.id]||(v=l({},v,{[t.route.id]:i.error})),e.fetchers.delete(r)}else if(eN(i))h(!1,"Unhandled fetcher revalidation redirect");else if(eU(i))h(!1,"Unhandled fetcher deferred data");else{let t=eV(i.data);e.fetchers.set(r,t)}}),{loaderData:m,errors:v}}function ex(e,t,r,n){let a=l({},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 eC(e){return e?ek(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function eP(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function eD(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 e_(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=void 0===t?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(l="Bad Request",a&&r&&n?s="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?s="defer() is not supported in actions":"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):404===e?(l="Not Found",s='No route matches URL "'+r+'"'):405===e&&(l="Method Not Allowed",a&&r&&n?s="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&&(s='Invalid request method "'+a.toUpperCase()+'"')),new $(e||500,l,Error(s),!0)}function eL(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(eN(n))return{key:r,result:n}}}function eA(e){let t="string"==typeof e?y(e):e;return v(l({},t,{hash:""}))}function eU(e){return e.type===a.deferred}function ek(e){return e.type===a.error}function eN(e){return(e&&e.type)===a.redirect}function eF(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function eM(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function eT(e){return q.has(e.toLowerCase())}async function eO(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[l,s]=o[i],u=e.find(e=>(null==e?void 0:e.route.id)===l);if(!u)continue;let c=n.find(e=>e.route.id===u.route.id),d=null!=c&&!ed(c,u)&&(a&&a[u.route.id])!==void 0;eU(s)&&d&&await eB(s,r,!1).then(e=>{e&&(t[l]=e)})}}async function ej(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:o,controller:i}=r[n],l=t[a];e.find(e=>(null==e?void 0:e.route.id)===o)&&eU(l)&&(h(i,"Expected an AbortController for revalidating fetcher deferred result"),await eB(l,i.signal,!0).then(e=>{e&&(t[a]=e)}))}}async function eB(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 eI(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function ez(e,t){let r="string"==typeof t?y(t).search:t.search;if(e[e.length-1].route.index&&eI(r||""))return e[e.length-1];let n=k(e);return n[n.length-1]}function eH(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};else if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};else if(void 0!==i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function eJ(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 eW(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 eV(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")},55828:function(e,t,r){r.r(t),r.d(t,{AbortedDeferredError:()=>h.X3,Await:()=>d.Await,BrowserRouter:()=>T,Form:()=>J,HashRouter:()=>O,Link:()=>z,MemoryRouter:()=>d.MemoryRouter,NavLink:()=>H,Navigate:()=>d.Navigate,NavigationType:()=>h.aU,Outlet:()=>d.Outlet,Route:()=>d.Route,Router:()=>d.Router,RouterProvider:()=>F,Routes:()=>d.Routes,ScrollRestoration:()=>W,UNSAFE_DataRouterContext:()=>d.UNSAFE_DataRouterContext,UNSAFE_DataRouterStateContext:()=>d.UNSAFE_DataRouterStateContext,UNSAFE_ErrorResponseImpl:()=>h.OF,UNSAFE_FetchersContext:()=>_,UNSAFE_LocationContext:()=>d.UNSAFE_LocationContext,UNSAFE_NavigationContext:()=>d.UNSAFE_NavigationContext,UNSAFE_RouteContext:()=>d.UNSAFE_RouteContext,UNSAFE_ViewTransitionContext:()=>D,UNSAFE_useRouteId:()=>d.UNSAFE_useRouteId,UNSAFE_useScrollRestoration:()=>en,createBrowserRouter:()=>x,createHashRouter:()=>C,createMemoryRouter:()=>d.createMemoryRouter,createPath:()=>h.Ep,createRoutesFromChildren:()=>d.createRoutesFromChildren,createRoutesFromElements:()=>d.createRoutesFromElements,createSearchParams:()=>y,defer:()=>h.PQ,generatePath:()=>h.Gn,isRouteErrorResponse:()=>h.WK,json:()=>h.AV,matchPath:()=>h.LX,matchRoutes:()=>h.fp,parsePath:()=>h.cP,redirect:()=>h.uX,redirectDocument:()=>h.fZ,renderMatches:()=>d.renderMatches,replace:()=>h.gx,resolvePath:()=>h.i3,unstable_HistoryRouter:()=>j,unstable_usePrompt:()=>eo,useActionData:()=>d.useActionData,useAsyncError:()=>d.useAsyncError,useAsyncValue:()=>d.useAsyncValue,useBeforeUnload:()=>ea,useBlocker:()=>d.useBlocker,useFetcher:()=>G,useFetchers:()=>ee,useFormAction:()=>Q,useHref:()=>d.useHref,useInRouterContext:()=>d.useInRouterContext,useLinkClickHandler:()=>K,useLoaderData:()=>d.useLoaderData,useLocation:()=>d.useLocation,useMatch:()=>d.useMatch,useMatches:()=>d.useMatches,useNavigate:()=>d.useNavigate,useNavigation:()=>d.useNavigation,useNavigationType:()=>d.useNavigationType,useOutlet:()=>d.useOutlet,useOutletContext:()=>d.useOutletContext,useParams:()=>d.useParams,useResolvedPath:()=>d.useResolvedPath,useRevalidator:()=>d.useRevalidator,useRouteError:()=>d.useRouteError,useRouteLoaderData:()=>d.useRouteLoaderData,useRoutes:()=>d.useRoutes,useSearchParams:()=>X,useSubmit:()=>Y,useViewTransitionState:()=>ei});var n,a,o,i,l,s,u=r(44194),c=r(56321),d=r(93191),h=r(61838);function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function p(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}let m="application/x-www-form-urlencoded";function v(e){return null!=e&&"string"==typeof e.tagName}function y(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 g=null,b=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function w(e){return null==e||b.has(e)?e:null}let E=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],R=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],S=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function x(e,t){return(0,h.p7)({basename:null==t?void 0:t.basename,future:f({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,h.lX)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||P(),routes:e,mapRouteProperties:d.UNSAFE_mapRouteProperties,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function C(e,t){return(0,h.p7)({basename:null==t?void 0:t.basename,future:f({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,h.q_)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||P(),routes:e,mapRouteProperties:d.UNSAFE_mapRouteProperties,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function P(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=f({},t,{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 h.OF(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}(t.errors)})),t}let D=u.createContext({isTransitioning:!1}),_=u.createContext(new Map),L=(o||(o=r.t(u,2))).startTransition,A=(i||(i=r.t(c,2))).flushSync,U=(o||(o=r.t(u,2))).useId;function k(e){A?A(e):e()}class N{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 F(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=u.useState(r.state),[i,l]=u.useState(),[s,c]=u.useState({isTransitioning:!1}),[h,f]=u.useState(),[p,m]=u.useState(),[v,y]=u.useState(),g=u.useRef(new Map),{v7_startTransition:b}=n||{},w=u.useCallback(e=>{if(b)L?L(e):e();else e()},[b]),E=u.useCallback((e,t)=>{let{deletedFetchers:n,flushSync:a,viewTransitionOpts:i}=t;n.forEach(e=>g.current.delete(e)),e.fetchers.forEach((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)});let s=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(!i||s)return void(a?k(()=>o(e)):w(()=>o(e)));if(a){k(()=>{p&&(h&&h.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=r.window.document.startViewTransition(()=>{k(()=>o(e))});t.finished.finally(()=>{k(()=>{f(void 0),m(void 0),l(void 0),c({isTransitioning:!1})})}),k(()=>m(t));return}p?(h&&h.resolve(),p.skipTransition(),y({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(l(e),c({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))},[r.window,p,h,g,w]);u.useLayoutEffect(()=>r.subscribe(E),[r,E]),u.useEffect(()=>{s.isTransitioning&&!s.flushSync&&f(new N)},[s]),u.useEffect(()=>{if(h&&i&&r.window){let e=h.promise,t=r.window.document.startViewTransition(async()=>{w(()=>o(i)),await e});t.finished.finally(()=>{f(void 0),m(void 0),l(void 0),c({isTransitioning:!1})}),m(t)}},[w,i,h,r.window]),u.useEffect(()=>{h&&i&&a.location.key===i.location.key&&h.resolve()},[h,p,a.location,i]),u.useEffect(()=>{!s.isTransitioning&&v&&(l(v.state),c({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),y(void 0))},[s.isTransitioning,v]),u.useEffect(()=>{},[]);let R=u.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]),S=r.basename||"/",x=u.useMemo(()=>({router:r,navigator:R,static:!1,basename:S}),[r,R,S]),C=u.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return u.useEffect(()=>(0,d.UNSAFE_logV6DeprecationWarnings)(n,r.future),[n,r.future]),u.createElement(u.Fragment,null,u.createElement(d.UNSAFE_DataRouterContext.Provider,{value:x},u.createElement(d.UNSAFE_DataRouterStateContext.Provider,{value:a},u.createElement(_.Provider,{value:g.current},u.createElement(D.Provider,{value:s},u.createElement(d.Router,{basename:S,location:a.location,navigationType:a.historyAction,navigator:R,future:C},a.initialized||r.future.v7_partialHydration?u.createElement(M,{routes:r.routes,future:r.future,state:a}):t))))),null)}let M=u.memo(function(e){let{routes:t,future:r,state:n}=e;return(0,d.UNSAFE_useRoutesImpl)(t,void 0,n,r)});function T(e){let{basename:t,children:r,future:n,window:a}=e,o=u.useRef();null==o.current&&(o.current=(0,h.lX)({window:a,v5Compat:!0}));let i=o.current,[l,s]=u.useState({action:i.action,location:i.location}),{v7_startTransition:c}=n||{},f=u.useCallback(e=>{c&&L?L(()=>s(e)):s(e)},[s,c]);return u.useLayoutEffect(()=>i.listen(f),[i,f]),u.useEffect(()=>(0,d.UNSAFE_logV6DeprecationWarnings)(n),[n]),u.createElement(d.Router,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}function O(e){let{basename:t,children:r,future:n,window:a}=e,o=u.useRef();null==o.current&&(o.current=(0,h.q_)({window:a,v5Compat:!0}));let i=o.current,[l,s]=u.useState({action:i.action,location:i.location}),{v7_startTransition:c}=n||{},f=u.useCallback(e=>{c&&L?L(()=>s(e)):s(e)},[s,c]);return u.useLayoutEffect(()=>i.listen(f),[i,f]),u.useEffect(()=>(0,d.UNSAFE_logV6DeprecationWarnings)(n),[n]),u.createElement(d.Router,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}function j(e){let{basename:t,children:r,future:n,history:a}=e,[o,i]=u.useState({action:a.action,location:a.location}),{v7_startTransition:l}=n||{},s=u.useCallback(e=>{l&&L?L(()=>i(e)):i(e)},[i,l]);return u.useLayoutEffect(()=>a.listen(s),[a,s]),u.useEffect(()=>(0,d.UNSAFE_logV6DeprecationWarnings)(n),[n]),u.createElement(d.Router,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:a,future:n})}let B="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,I=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,z=u.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:s,to:c,preventScrollReset:m,viewTransition:v}=e,y=p(e,E),{basename:g}=u.useContext(d.UNSAFE_NavigationContext),b=!1;if("string"==typeof c&&I.test(c)&&(r=c,B))try{let e=new URL(window.location.href),t=new URL(c.startsWith("//")?e.protocol+c:c),r=(0,h.Zn)(t.pathname,g);t.origin===e.origin&&null!=r?c=r+t.search+t.hash:b=!0}catch(e){}let w=(0,d.useHref)(c,{relative:a}),R=K(c,{replace:i,state:l,target:s,preventScrollReset:m,relative:a,viewTransition:v});return u.createElement("a",f({},y,{href:r||w,onClick:b||o?n:function(e){n&&n(e),e.defaultPrevented||R(e)},ref:t,target:s}))}),H=u.forwardRef(function(e,t){let r,{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:l,to:s,viewTransition:c,children:m}=e,v=p(e,R),y=(0,d.useResolvedPath)(s,{relative:v.relative}),g=(0,d.useLocation)(),b=u.useContext(d.UNSAFE_DataRouterStateContext),{navigator:w,basename:E}=u.useContext(d.UNSAFE_NavigationContext),S=null!=b&&ei(y)&&!0===c,x=w.encodeLocation?w.encodeLocation(y).pathname:y.pathname,C=g.pathname,P=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;a||(C=C.toLowerCase(),P=P?P.toLowerCase():null,x=x.toLowerCase()),P&&E&&(P=(0,h.Zn)(P,E)||P);let D="/"!==x&&x.endsWith("/")?x.length-1:x.length,_=C===x||!i&&C.startsWith(x)&&"/"===C.charAt(D),L=null!=P&&(P===x||!i&&P.startsWith(x)&&"/"===P.charAt(x.length)),A={isActive:_,isPending:L,isTransitioning:S},U=_?n:void 0;r="function"==typeof o?o(A):[o,_?"active":null,L?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let k="function"==typeof l?l(A):l;return u.createElement(z,f({},v,{"aria-current":U,className:r,ref:t,style:k,to:s,viewTransition:c}),"function"==typeof m?m(A):m)}),J=u.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:a,replace:o,state:i,method:l="get",action:s,onSubmit:c,relative:d,preventScrollReset:h,viewTransition:m}=e,v=p(e,S),y=Y(),g=Q(s,{relative:d}),b="get"===l.toLowerCase()?"get":"post";return u.createElement("form",f({ref:t,method:b,action:g,onSubmit:a?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,a=(null==t?void 0:t.getAttribute("formmethod"))||l;y(t||e.currentTarget,{fetcherKey:r,method:a,navigate:n,replace:o,state:i,relative:d,preventScrollReset:h,viewTransition:m})}},v))});function W(e){let{getKey:t,storageKey:r}=e;return en({getKey:t,storageKey:r}),null}function V(e){let t=u.useContext(d.UNSAFE_DataRouterContext);return t||(0,h.J0)(!1),t}function $(e){let t=u.useContext(d.UNSAFE_DataRouterStateContext);return t||(0,h.J0)(!1),t}function K(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:l}=void 0===t?{}:t,s=(0,d.useNavigate)(),c=(0,d.useLocation)(),f=(0,d.useResolvedPath)(e,{relative:i});return u.useCallback(t=>{0!==t.button||r&&"_self"!==r||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),s(e,{replace:void 0!==n?n:(0,h.Ep)(c)===(0,h.Ep)(f),state:a,preventScrollReset:o,relative:i,viewTransition:l}))},[c,s,f,n,a,r,e,o,i,l])}function X(e){let t=u.useRef(y(e)),r=u.useRef(!1),n=(0,d.useLocation)(),a=u.useMemo(()=>{var e,a;let o;return e=n.search,a=r.current?null:t.current,o=y(e),a&&a.forEach((e,t)=>{o.has(t)||a.getAll(t).forEach(e=>{o.append(t,e)})}),o},[n.search]),o=(0,d.useNavigate)(),i=u.useCallback((e,t)=>{let n=y("function"==typeof e?e(a):e);r.current=!0,o("?"+n,t)},[o,a]);return[a,i]}(n=l||(l={})).UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState",(a=s||(s={})).UseFetcher="useFetcher",a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration";let q=0,Z=()=>"__"+String(++q)+"__";function Y(){let{router:e}=V(l.UseSubmit),{basename:t}=u.useContext(d.UNSAFE_NavigationContext),r=(0,d.UNSAFE_useRouteId)();return u.useCallback(function(n,a){if(void 0===a&&(a={}),"undefined"==typeof document)throw Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");let{action:o,method:i,encType:l,formData:s,body:u}=function(e,t){let r,n,a,o,i;if(v(e)&&"form"===e.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?(0,h.Zn)(i,t):null,r=e.getAttribute("method")||"get",a=w(e.getAttribute("enctype"))||m,o=new FormData(e)}else if(v(e)&&"button"===e.tagName.toLowerCase()||v(e)&&"input"===e.tagName.toLowerCase()&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(n=l?(0,h.Zn)(l,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||"get",a=w(e.getAttribute("formenctype"))||w(i.getAttribute("enctype"))||m,o=new FormData(i,e),!function(){if(null===g)try{new FormData(document.createElement("form"),0),g=!1}catch(e){g=!0}return g}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?t+".":"";o.append(e+"x","0"),o.append(e+"y","0")}else t&&o.append(t,n)}}else if(v(e))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else r="get",n=null,a=m,i=e;return o&&"text/plain"===a&&(i=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:i}}(n,t);if(!1===a.navigate){let t=a.fetcherKey||Z();e.fetch(t,r,a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,flushSync:a.flushSync})}else e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,r])}function Q(e,t){let{relative:r}=void 0===t?{}:t,{basename:n}=u.useContext(d.UNSAFE_NavigationContext),a=u.useContext(d.UNSAFE_RouteContext);a||(0,h.J0)(!1);let[o]=a.matches.slice(-1),i=f({},(0,d.useResolvedPath)(e||".",{relative:r})),l=(0,d.useLocation)();if(null==e){i.search=l.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();i.search=r?"?"+r:""}}return(!e||"."===e)&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(i.pathname="/"===i.pathname?n:(0,h.RQ)([n,i.pathname])),(0,h.Ep)(i)}function G(e){var t;let{key:r}=void 0===e?{}:e,{router:n}=V(l.UseFetcher),a=$(s.UseFetcher),o=u.useContext(_),i=u.useContext(d.UNSAFE_RouteContext),c=null==(t=i.matches[i.matches.length-1])?void 0:t.route.id;o||(0,h.J0)(!1),i||(0,h.J0)(!1),null==c&&(0,h.J0)(!1);let p=U?U():"",[m,v]=u.useState(r||p);r&&r!==m?v(r):m||v(Z()),u.useEffect(()=>(n.getFetcher(m),()=>{n.deleteFetcher(m)}),[n,m]);let y=u.useCallback((e,t)=>{c||(0,h.J0)(!1),n.fetch(m,c,e,t)},[m,c,n]),g=Y(),b=u.useCallback((e,t)=>{g(e,f({},t,{navigate:!1,fetcherKey:m}))},[m,g]),w=u.useMemo(()=>u.forwardRef((e,t)=>u.createElement(J,f({},e,{navigate:!1,fetcherKey:m,ref:t}))),[m]),E=a.fetchers.get(m)||h.ov,R=o.get(m);return u.useMemo(()=>f({Form:w,submit:b,load:y},E,{data:R}),[w,b,y,E,R])}function ee(){return Array.from($(s.UseFetchers).fetchers.entries()).map(e=>{let[t,r]=e;return f({},r,{key:t})})}let et="react-router-scroll-positions",er={};function en(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:n}=V(l.UseScrollRestoration),{restoreScrollPosition:a,preventScrollReset:o}=$(s.UseScrollRestoration),{basename:i}=u.useContext(d.UNSAFE_NavigationContext),c=(0,d.useLocation)(),p=(0,d.useMatches)(),m=(0,d.useNavigation)();u.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e,t){let{capture:r}={};u.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}},[e,r])}(u.useCallback(()=>{"idle"===m.state&&(er[(t?t(c,p):null)||c.key]=window.scrollY);try{sessionStorage.setItem(r||et,JSON.stringify(er))}catch(e){}window.history.scrollRestoration="auto"},[r,t,m.state,c,p])),"undefined"!=typeof document&&(u.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(r||et);e&&(er=JSON.parse(e))}catch(e){}},[r]),u.useLayoutEffect(()=>{let e=t&&"/"!==i?(e,r)=>t(f({},e,{pathname:(0,h.Zn)(e.pathname,i)||e.pathname}),r):t,r=null==n?void 0:n.enableScrollRestoration(er,()=>window.scrollY,e);return()=>r&&r()},[n,i,t]),u.useLayoutEffect(()=>{if(!1!==a){if("number"==typeof a)return void window.scrollTo(0,a);if(c.hash){let e=document.getElementById(decodeURIComponent(c.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==o&&window.scrollTo(0,0)}},[c,a,o]))}function ea(e,t){let{capture:r}=t||{};u.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,r])}function eo(e){let{when:t,message:r}=e,n=(0,d.useBlocker)(t);u.useEffect(()=>{"blocked"===n.state&&(window.confirm(r)?setTimeout(n.proceed,0):n.reset())},[n,r]),u.useEffect(()=>{"blocked"!==n.state||t||n.reset()},[n,t])}function ei(e,t){void 0===t&&(t={});let r=u.useContext(D);null==r&&(0,h.J0)(!1);let{basename:n}=V(l.useViewTransitionState),a=(0,d.useResolvedPath)(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=(0,h.Zn)(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=(0,h.Zn)(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=(0,h.LX)(a.pathname,i)||null!=(0,h.LX)(a.pathname,o)}},93191:function(e,t,r){r.r(t),r.d(t,{AbortedDeferredError:()=>s.X3,Await:()=>ed,MemoryRouter:()=>eo,Navigate:()=>ei,NavigationType:()=>s.aU,Outlet:()=>el,Route:()=>es,Router:()=>eu,RouterProvider:()=>en,Routes:()=>ec,UNSAFE_DataRouterContext:()=>c,UNSAFE_DataRouterStateContext:()=>d,UNSAFE_LocationContext:()=>p,UNSAFE_NavigationContext:()=>f,UNSAFE_RouteContext:()=>m,UNSAFE_logV6DeprecationWarnings:()=>et,UNSAFE_mapRouteProperties:()=>eg,UNSAFE_useRouteId:()=>I,UNSAFE_useRoutesImpl:()=>A,createMemoryRouter:()=>eb,createPath:()=>s.Ep,createRoutesFromChildren:()=>ev,createRoutesFromElements:()=>ev,defer:()=>s.PQ,generatePath:()=>s.Gn,isRouteErrorResponse:()=>s.WK,json:()=>s.AV,matchPath:()=>s.LX,matchRoutes:()=>s.fp,parsePath:()=>s.cP,redirect:()=>s.uX,redirectDocument:()=>s.fZ,renderMatches:()=>ey,replace:()=>s.gx,resolvePath:()=>s.i3,useActionData:()=>$,useAsyncError:()=>q,useAsyncValue:()=>X,useBlocker:()=>Y,useHref:()=>y,useInRouterContext:()=>g,useLoaderData:()=>W,useLocation:()=>b,useMatch:()=>E,useMatches:()=>J,useNavigate:()=>S,useNavigation:()=>z,useNavigationType:()=>w,useOutlet:()=>P,useOutletContext:()=>C,useParams:()=>D,useResolvedPath:()=>_,useRevalidator:()=>H,useRouteError:()=>K,useRouteLoaderData:()=>V,useRoutes:()=>L});var n,a,o,i,l=r(44194),s=r(61838);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let c=l.createContext(null),d=l.createContext(null),h=l.createContext(null),f=l.createContext(null),p=l.createContext(null),m=l.createContext({outlet:null,matches:[],isDataRoute:!1}),v=l.createContext(null);function y(e,t){let{relative:r}=void 0===t?{}:t;g()||(0,s.J0)(!1);let{basename:n,navigator:a}=l.useContext(f),{hash:o,pathname:i,search:u}=_(e,{relative:r}),c=i;return"/"!==n&&(c="/"===i?n:(0,s.RQ)([n,i])),a.createHref({pathname:c,search:u,hash:o})}function g(){return null!=l.useContext(p)}function b(){return g()||(0,s.J0)(!1),l.useContext(p).location}function w(){return l.useContext(p).navigationType}function E(e){g()||(0,s.J0)(!1);let{pathname:t}=b();return l.useMemo(()=>(0,s.LX)(e,(0,s.Cd)(t)),[t,e])}function R(e){l.useContext(f).static||l.useLayoutEffect(e)}function S(){let{isDataRoute:e}=l.useContext(m);return e?function(){let{router:e}=O(M.UseNavigateStable),t=B(T.UseNavigateStable),r=l.useRef(!1);return R(()=>{r.current=!0}),l.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,u({fromRouteId:t},a)))},[e,t])}():function(){g()||(0,s.J0)(!1);let e=l.useContext(c),{basename:t,future:r,navigator:n}=l.useContext(f),{matches:a}=l.useContext(m),{pathname:o}=b(),i=JSON.stringify((0,s.cm)(a,r.v7_relativeSplatPath)),u=l.useRef(!1);return R(()=>{u.current=!0}),l.useCallback(function(r,a){if(void 0===a&&(a={}),!u.current)return;if("number"==typeof r)return void n.go(r);let l=(0,s.pC)(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:(0,s.RQ)([t,l.pathname])),(a.replace?n.replace:n.push)(l,a.state,a)},[t,n,i,o,e])}()}let x=l.createContext(null);function C(){return l.useContext(x)}function P(e){let t=l.useContext(m).outlet;return t?l.createElement(x.Provider,{value:e},t):t}function D(){let{matches:e}=l.useContext(m),t=e[e.length-1];return t?t.params:{}}function _(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=l.useContext(f),{matches:a}=l.useContext(m),{pathname:o}=b(),i=JSON.stringify((0,s.cm)(a,n.v7_relativeSplatPath));return l.useMemo(()=>(0,s.pC)(e,JSON.parse(i),o,"path"===r),[e,i,o,r])}function L(e,t){return A(e,t)}function A(e,t,r,n){let a;g()||(0,s.J0)(!1);let{navigator:o}=l.useContext(f),{matches:i}=l.useContext(m),c=i[i.length-1],d=c?c.params:{};c&&c.pathname;let h=c?c.pathnameBase:"/";c&&c.route;let v=b();if(t){var y;let e="string"==typeof t?(0,s.cP)(t):t;"/"===h||(null==(y=e.pathname)?void 0:y.startsWith(h))||(0,s.J0)(!1),a=e}else a=v;let w=a.pathname||"/",E=w;if("/"!==h){let e=h.replace(/^\//,"").split("/");E="/"+w.replace(/^\//,"").split("/").slice(e.length).join("/")}let R=(0,s.fp)(e,{pathname:E}),S=F(R&&R.map(e=>Object.assign({},e,{params:Object.assign({},d,e.params),pathname:(0,s.RQ)([h,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?h:(0,s.RQ)([h,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),i,r,n);return t&&S?l.createElement(p.Provider,{value:{location:u({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:s.aU.Pop}},S):S}let U=l.createElement(function(){let e=K(),t=(0,s.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),r?l.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)},null);class k extends l.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?l.createElement(m.Provider,{value:this.props.routeContext},l.createElement(v.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function N(e){let{routeContext:t,match:r,children:n}=e,a=l.useContext(c);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),l.createElement(m.Provider,{value:t},n)}function F(e,t,r,n){var a,o;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==(o=n)||!o.v7_partialHydration||0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let i=e,u=null==(a=r)?void 0:a.errors;if(null!=u){let e=i.findIndex(e=>e.route.id&&(null==u?void 0:u[e.route.id])!==void 0);e>=0||(0,s.J0)(!1),i=i.slice(0,Math.min(i.length,e+1))}let c=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){c=!0,i=d>=0?i.slice(0,d+1):[i[0]];break}}}return i.reduceRight((e,n,a)=>{var o;let s,h=!1,f=null,p=null;r&&(s=u&&n.route.id?u[n.route.id]:void 0,f=n.route.errorElement||U,c&&(d<0&&0===a?(o="route-fallback",Q[o]||(Q[o]=!0),h=!0,p=null):d===a&&(h=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,a+1)),v=()=>{let t;return t=s?f:h?p:n.route.Component?l.createElement(n.route.Component,null):n.route.element?n.route.element:e,l.createElement(N,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?l.createElement(k,{location:r.location,revalidation:r.revalidation,component:f,error:s,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var M=((n=M||{}).UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n),T=((a=T||{}).UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",a);function O(e){let t=l.useContext(c);return t||(0,s.J0)(!1),t}function j(e){let t=l.useContext(d);return t||(0,s.J0)(!1),t}function B(e){let t,r=((t=l.useContext(m))||(0,s.J0)(!1),t),n=r.matches[r.matches.length-1];return n.route.id||(0,s.J0)(!1),n.route.id}function I(){return B(T.UseRouteId)}function z(){return j(T.UseNavigation).navigation}function H(){let e=O(M.UseRevalidator),t=j(T.UseRevalidator);return l.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function J(){let{matches:e,loaderData:t}=j(T.UseMatches);return l.useMemo(()=>e.map(e=>(0,s.WS)(e,t)),[e,t])}function W(){let e=j(T.UseLoaderData),t=B(T.UseLoaderData);return e.errors&&null!=e.errors[t]?void console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")"):e.loaderData[t]}function V(e){return j(T.UseRouteLoaderData).loaderData[e]}function $(){let e=j(T.UseActionData),t=B(T.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function K(){var e;let t=l.useContext(v),r=j(T.UseRouteError),n=B(T.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}function X(){let e=l.useContext(h);return null==e?void 0:e._data}function q(){let e=l.useContext(h);return null==e?void 0:e._error}let Z=0;function Y(e){let{router:t,basename:r}=O(M.UseBlocker),n=j(T.UseBlocker),[a,o]=l.useState(""),i=l.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:o}=t;return e({currentLocation:u({},n,{pathname:(0,s.Zn)(n.pathname,r)||n.pathname}),nextLocation:u({},a,{pathname:(0,s.Zn)(a.pathname,r)||a.pathname}),historyAction:o})},[r,e]);return l.useEffect(()=>{let e=String(++Z);return o(e),()=>t.deleteBlocker(e)},[t]),l.useEffect(()=>{""!==a&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):s.qp}let Q={},G={},ee=(e,t,r)=>{var n;!G[n="⚠️ React Router Future Flag Warning: "+t+". You can use the `"+e+"` future flag to opt-in early. For more information, see "+r+"."]&&(G[n]=!0,console.warn(n))};function et(e,t){(null==e?void 0:e.v7_startTransition)===void 0&&ee("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(null==e?void 0:e.v7_relativeSplatPath)!==void 0||t&&t.v7_relativeSplatPath||ee("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(void 0===t.v7_fetcherPersist&&ee("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),void 0===t.v7_normalizeFormMethod&&ee("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),void 0===t.v7_partialHydration&&ee("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),void 0===t.v7_skipActionErrorRevalidation&&ee("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}let er=(i||(i=r.t(l,2))).startTransition;function en(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=l.useState(r.state),{v7_startTransition:i}=n||{},s=l.useCallback(e=>{i&&er?er(()=>o(e)):o(e)},[o,i]);l.useLayoutEffect(()=>r.subscribe(s),[r,s]),l.useEffect(()=>{},[]);let u=l.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]),h=r.basename||"/",f=l.useMemo(()=>({router:r,navigator:u,static:!1,basename:h}),[r,u,h]);return l.useEffect(()=>et(n,r.future),[r,n]),l.createElement(l.Fragment,null,l.createElement(c.Provider,{value:f},l.createElement(d.Provider,{value:a},l.createElement(eu,{basename:h,location:a.location,navigationType:a.historyAction,navigator:u,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},a.initialized||r.future.v7_partialHydration?l.createElement(ea,{routes:r.routes,future:r.future,state:a}):t))),null)}function ea(e){let{routes:t,future:r,state:n}=e;return A(t,void 0,n,r)}function eo(e){let{basename:t,children:r,initialEntries:n,initialIndex:a,future:o}=e,i=l.useRef();null==i.current&&(i.current=(0,s.PP)({initialEntries:n,initialIndex:a,v5Compat:!0}));let u=i.current,[c,d]=l.useState({action:u.action,location:u.location}),{v7_startTransition:h}=o||{},f=l.useCallback(e=>{h&&er?er(()=>d(e)):d(e)},[d,h]);return l.useLayoutEffect(()=>u.listen(f),[u,f]),l.useEffect(()=>et(o),[o]),l.createElement(eu,{basename:t,children:r,location:c.location,navigationType:c.action,navigator:u,future:o})}function ei(e){let{to:t,replace:r,state:n,relative:a}=e;g()||(0,s.J0)(!1);let{future:o,static:i}=l.useContext(f),{matches:u}=l.useContext(m),{pathname:c}=b(),d=S(),h=JSON.stringify((0,s.pC)(t,(0,s.cm)(u,o.v7_relativeSplatPath),c,"path"===a));return l.useEffect(()=>d(JSON.parse(h),{replace:r,state:n,relative:a}),[d,h,a,r,n]),null}function el(e){return P(e.context)}function es(e){(0,s.J0)(!1)}function eu(e){let{basename:t="/",children:r=null,location:n,navigationType:a=s.aU.Pop,navigator:o,static:i=!1,future:c}=e;g()&&(0,s.J0)(!1);let d=t.replace(/^\/*/,"/"),h=l.useMemo(()=>({basename:d,navigator:o,static:i,future:u({v7_relativeSplatPath:!1},c)}),[d,c,o,i]);"string"==typeof n&&(n=(0,s.cP)(n));let{pathname:m="/",search:v="",hash:y="",state:b=null,key:w="default"}=n,E=l.useMemo(()=>{let e=(0,s.Zn)(m,d);return null==e?null:{location:{pathname:e,search:v,hash:y,state:b,key:w},navigationType:a}},[d,m,v,y,b,w,a]);return null==E?null:l.createElement(f.Provider,{value:h},l.createElement(p.Provider,{children:r,value:E}))}function ec(e){let{children:t,location:r}=e;return A(ev(t),r)}function ed(e){let{children:t,errorElement:r,resolve:n}=e;return l.createElement(ep,{resolve:n,errorElement:r},l.createElement(em,null,t))}var eh=((o=eh||{})[o.pending=0]="pending",o[o.success=1]="success",o[o.error=2]="error",o);let ef=new Promise(()=>{});class ep extends l.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,n=null,a=eh.pending;if(r instanceof Promise)if(this.state.error){a=eh.error;let e=this.state.error;Object.defineProperty(n=Promise.reject().catch(()=>{}),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_error",{get:()=>e})}else r._tracked?a="_error"in(n=r)?eh.error:"_data"in n?eh.success:eh.pending:(a=eh.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),n=r.then(e=>Object.defineProperty(r,"_data",{get:()=>e}),e=>Object.defineProperty(r,"_error",{get:()=>e})));else a=eh.success,Object.defineProperty(n=Promise.resolve(),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_data",{get:()=>r});if(a===eh.error&&n._error instanceof s.X3)throw ef;if(a===eh.error&&!t)throw n._error;if(a===eh.error)return l.createElement(h.Provider,{value:n,children:t});if(a===eh.success)return l.createElement(h.Provider,{value:n,children:e});throw n}}function em(e){let{children:t}=e,r=X(),n="function"==typeof t?t(r):t;return l.createElement(l.Fragment,null,n)}function ev(e,t){void 0===t&&(t=[]);let r=[];return l.Children.forEach(e,(e,n)=>{if(!l.isValidElement(e))return;let a=[...t,n];if(e.type===l.Fragment)return void r.push.apply(r,ev(e.props.children,a));e.type!==es&&(0,s.J0)(!1),e.props.index&&e.props.children&&(0,s.J0)(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=ev(e.props.children,a)),r.push(o)}),r}function ey(e){return F(e)}function eg(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:l.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:l.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:l.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function eb(e,t){return(0,s.p7)({basename:null==t?void 0:t.basename,future:u({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,s.PP)({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:eg,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()}}}]);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @remix-run/router v1.21.0
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Remix Software Inc.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
+
*
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* React Router DOM v6.28.1
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) Remix Software Inc.
|
|
16
|
+
*
|
|
17
|
+
* This source code is licensed under the MIT license found in the
|
|
18
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
19
|
+
*
|
|
20
|
+
* @license MIT
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* React Router v6.28.1
|
|
25
|
+
*
|
|
26
|
+
* Copyright (c) Remix Software Inc.
|
|
27
|
+
*
|
|
28
|
+
* This source code is licensed under the MIT license found in the
|
|
29
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
30
|
+
*
|
|
31
|
+
* @license MIT
|
|
32
|
+
*/
|
package/dist/favicon.ico
ADDED
|
Binary file
|
package/dist/index.html
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<link rel="stylesheet" href="/global.css">
|
|
5
|
+
<script src="/browser-checker.js"></script>
|
|
6
|
+
<link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png"><link rel="manifest" href="/manifest.webmanifest"><link rel="icon" href="/favicon.ico"><title>Tachybase</title><meta charset="UTF-8"><meta name="viewport" content="initial-scale=0.1"><link href="/assets/5293.67e21b23.css" rel="stylesheet"><link href="/assets/index.3937c8bb.css" rel="stylesheet"></head>
|
|
7
|
+
<body>
|
|
8
|
+
<div id="root"></div>
|
|
9
|
+
<script defer src="/assets/lib-axios.1d874012.js"></script><script defer src="/assets/lib-react.a86740e1.js"></script><script defer src="/assets/lib-router.da995a7a.js"></script><script defer src="/assets/5293.14ee5e2b.js"></script><script defer src="/assets/index.2b486d31.js"></script></body>
|
|
10
|
+
</html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"Tachybase","icons":[{"src":"/assets/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/assets/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}]}
|
package/package.json
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tego/web",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.18",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@rsbuild/core": "1.4.
|
|
7
|
+
"@rsbuild/core": "^1.4.7",
|
|
8
8
|
"@rsbuild/plugin-babel": "1.0.5",
|
|
9
|
-
"@rsbuild/plugin-less": "1.2.
|
|
9
|
+
"@rsbuild/plugin-less": "1.2.5",
|
|
10
10
|
"@rsbuild/plugin-node-polyfill": "1.3.0",
|
|
11
11
|
"@rsbuild/plugin-react": "1.3.2",
|
|
12
12
|
"@rsbuild/plugin-umd": "1.0.4",
|
|
13
13
|
"@types/react": "18.3.18",
|
|
14
14
|
"@types/react-dom": "18.3.5",
|
|
15
|
+
"i18next": "23.16.8",
|
|
15
16
|
"react": "18.3.1",
|
|
16
17
|
"react-dom": "18.3.1",
|
|
18
|
+
"react-i18next": "15.2.0",
|
|
17
19
|
"typescript": "5.8.3",
|
|
18
|
-
"@tachybase/client": "1.3.
|
|
19
|
-
"@tego/devkit": "1.3.
|
|
20
|
+
"@tachybase/client": "1.3.18",
|
|
21
|
+
"@tego/devkit": "1.3.18"
|
|
20
22
|
},
|
|
21
23
|
"scripts": {
|
|
22
24
|
"build": "rsbuild build",
|
package/rsbuild.config.ts
CHANGED
|
@@ -51,6 +51,9 @@ export default defineConfig({
|
|
|
51
51
|
define: {
|
|
52
52
|
...rsDefined,
|
|
53
53
|
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
|
|
54
|
+
'process.env.REACT_APP_CLICK_TO_COMPONENT_EDITOR': JSON.stringify(
|
|
55
|
+
process.env.REACT_APP_CLICK_TO_COMPONENT_EDITOR,
|
|
56
|
+
),
|
|
54
57
|
},
|
|
55
58
|
},
|
|
56
59
|
dev: {
|
|
@@ -80,6 +83,9 @@ export default defineConfig({
|
|
|
80
83
|
resolve: {
|
|
81
84
|
alias: {
|
|
82
85
|
...config.alias,
|
|
86
|
+
// TODO:暂时只对这个库做处理
|
|
87
|
+
i18next: require.resolve('i18next'),
|
|
88
|
+
'react-i18next': require.resolve('react-i18next'),
|
|
83
89
|
},
|
|
84
90
|
},
|
|
85
91
|
});
|
package/LICENSE
DELETED
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright [2023-2025] [Tego team]
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|