tocco-widget-bundle 3.16.5 → 3.16.6

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/wage-view.js CHANGED
@@ -59,4 +59,4 @@ const{entries:r,setPrototypeOf:o,isFrozen:a,getPrototypeOf:i,getOwnPropertyDescr
59
59
  * LICENSE.md file in the root directory of this source tree.
60
60
  *
61
61
  * @license MIT
62
- */function l(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function u(e={}){let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:o=!1}=e;t=n.map(((e,t)=>d(e,"string"==typeof e?null:e.state,0===t?"default":void 0,"string"==typeof e?void 0:e.unstable_mask)));let a=s(null==r?t.length-1:r),i="POP",c=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function u(){return t[a]}function d(e,n=null,r,o){let a=h(t?u().pathname:"/",e,n,r,o);return f("/"===a.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),a}function p(e){return"string"==typeof e?e:g(e)}return{get index(){return a},get action(){return i},get location(){return u()},createHref:p,createURL:e=>new URL(p(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?v(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){i="PUSH";let r=l(e)?e:d(e,n);a+=1,t.splice(a,t.length,r),o&&c&&c({action:i,location:r,delta:1})},replace(e,n){i="REPLACE";let r=l(e)?e:d(e,n);t[a]=r,o&&c&&c({action:i,location:r,delta:0})},go(e){i="POP";let n=s(a+e),r=t[n];a=n,c&&c({action:i,location:r,delta:e})},listen:e=>(c=e,()=>{c=null})}}function d(e={}){return y((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=v(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),h("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:g(t))}),(function(e,t){f("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function p(e,t){if(!1===e||null==e)throw new Error(t)}function f(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function m(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function h(e,t,n=null,r,o){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?v(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10),unstable_mask:o}}function g({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function v(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function y(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,c="POP",u=null,d=p();function p(){return(i.state||{idx:null}).idx}function f(){c="POP";let e=p(),t=null==e?null:e-d;d=e,u&&u({action:c,location:v.location,delta:t})}function g(e){return b(e)}null==d&&(d=0,i.replaceState({...i.state,idx:d},""));let v={get action(){return c},get location(){return e(o,i)},listen(e){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(s,f),u=e,()=>{o.removeEventListener(s,f),u=null}},createHref:e=>t(o,e),createURL:g,encodeLocation(e){let t=g(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c="PUSH";let r=l(e)?e:h(v.location,e,t);n&&n(r,e),d=p()+1;let s=m(r,d),f=v.createHref(r.unstable_mask||r);try{i.pushState(s,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(f)}a&&u&&u({action:c,location:v.location,delta:1})},replace:function(e,t){c="REPLACE";let r=l(e)?e:h(v.location,e,t);n&&n(r,e),d=p();let o=m(r,d),s=v.createHref(r.unstable_mask||r);i.replaceState(o,"",s),a&&u&&u({action:c,location:v.location,delta:0})},go:e=>i.go(e)};return v}function b(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),p(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:g(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function w(e){return{defaultValue:e}}var x=class{constructor(e){var t,n,r;if(t=this,n=o,r=new Map,n.has(t)?i("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),e)for(let[t,n]of e)this.set(t,n)}get(e){if(c(this,o).has(e))return c(this,o).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw new Error("No value found for context")}set(e,t){c(this,o).set(e,t)}};o=new WeakMap;var A=new Set(["lazy","caseSensitive","path","id","index","children"]);var O=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function k(e,t,n=[],r={},o=!1){return e.map(((e,a)=>{let i=[...n,String(a)],c="string"==typeof e.id?e.id:i.join("-");if(p(!0!==e.index||!e.children,"Cannot specify children on an index route"),p(o||!r[c],`Found a route id collision on id "${c}". Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let n={...e,id:c};return r[c]=S(n,t(n)),n}{let n={...e,id:c,children:void 0};return r[c]=S(n,t(n)),e.children&&(n.children=k(e.children,t,i,r,o)),n}}))}function S(e,t){return Object.assign(e,{...t,..."object"==typeof t.lazy&&null!=t.lazy?{lazy:{...e.lazy,...t.lazy}}:{}})}function E(e,t,n="/"){return j(e,t,n,!1)}function j(e,t,n,r){let o=F(("string"==typeof t?v(t):t).pathname||"/",n);if(null==o)return null;let a=T(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e){let t=L(o);i=I(a[e],t,r)}return i}function P(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function T(e,t=[],n=[],r="",o=!1){let a=(e,a,i=o,c)=>{let s={relativePath:void 0===c?e.path||"":c,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};if(s.relativePath.startsWith("/")){if(!s.relativePath.startsWith(r)&&i)return;p(s.relativePath.startsWith(r),`Absolute route path "${s.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),s.relativePath=s.relativePath.slice(r.length)}let l=$([r,s.relativePath]),u=n.concat(s);e.children&&e.children.length>0&&(p(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),T(e.children,t,u,l,i)),(null!=e.path||e.index)&&t.push({path:l,score:N(l,e.index),routesMeta:u})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of D(e.path))a(e,t,!0,n);else a(e,t)})),t}function D(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=D(r.join("/")),c=[];return c.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&c.push(...i),c.map((t=>e.startsWith("/")&&""===t?"/":t))}var _=/^:[\w-]+$/,C=e=>"*"===e;function N(e,t){let n=e.split("/"),r=n.length;return n.some(C)&&(r+=-2),t&&(r+=2),n.filter((e=>!C(e))).reduce(((e,t)=>e+(_.test(t)?3:""===t?1:10)),r)}function I(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let e=0;e<r.length;++e){let c=r[e],s=e===r.length-1,l="/"===a?t:t.slice(a.length)||"/",u=R({path:c.relativePath,caseSensitive:c.caseSensitive,end:s},l),d=c.route;if(!u&&s&&n&&!r[r.length-1].route.index&&(u=R({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},l)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:$([a,u.pathname]),pathnameBase:K($([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=$([a,u.pathnameBase]))}return i}function R(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=M(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=c[r]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const o=c[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:i,pattern:e}}function M(e,t=!1,n=!0){f("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n,o,a)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=a.charAt(o+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"})).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function L(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 a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function F(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var H=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,z=e=>H.test(e);function B(e,t){let n=G(t).split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function U(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function V(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function W(e){let t=V(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function Y(e,t,n,r=!1){let o;"string"==typeof e?o=v(e):(o={...e},p(!o.pathname||!o.pathname.includes("?"),U("?","pathname","search",o)),p(!o.pathname||!o.pathname.includes("#"),U("#","pathname","hash",o)),p(!o.search||!o.search.includes("#"),U("#","search","hash",o)));let a,i=""===e||""===o.pathname,c=i?"/":o.pathname;if(null==c)a=n;else{let e=t.length-1;if(!r&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let s=function(e,t="/"){let n,{pathname:r,search:o="",hash:a=""}="string"==typeof e?v(e):e;return r?(r=q(r),n=r.startsWith("/")?B(r.substring(1),"/"):B(r,t)):n=t,{pathname:n,search:J(o),hash:Q(a)}}(o,a),l=c&&"/"!==c&&c.endsWith("/"),u=(i||"."===c)&&n.endsWith("/");return s.pathname.endsWith("/")||!l&&!u||(s.pathname+="/"),s}var q=e=>e.replace(/\/\/+/g,"/"),$=e=>q(e.join("/")),G=e=>e.replace(/\/+$/,""),K=e=>G(e).replace(/^\/*/,"/"),J=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Q=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var X=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Z(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function ee(e){let t=e.map((e=>e.route.path)).filter(Boolean);return $(t)||"/"}var te="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function ne(e,t){let n=e;if("string"!=typeof n||!H.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(te)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),a=F(r.pathname,t);r.origin===e.origin&&null!=a?n=a+r.search+r.hash:o=!0}catch(e){f(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}var re=Symbol("Uninstrumented");function oe(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach((e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(n);for(let r of t)e[r]&&n[r].push(e[r])}})));let r={};if("function"==typeof t.lazy&&n.lazy.length>0){let e=ae(n.lazy,t.lazy,(()=>{}));e&&(r.lazy=e)}if("object"==typeof t.lazy){let e=t.lazy;["middleware","loader","action"].forEach((t=>{let o=e[t],a=n[`lazy.${t}`];if("function"==typeof o&&a.length>0){let e=ae(a,o,(()=>{}));e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}}))}return["loader","action"].forEach((e=>{let o=t[e];if("function"==typeof o&&n[e].length>0){let t=o[re]??o,a=ae(n[e],t,((...e)=>ce(e[0])));a&&("loader"===e&&!0===t.hydrate&&(a.hydrate=!0),a[re]=t,r[e]=a)}})),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map((e=>{let t=e[re]??e,r=ae(n.middleware,t,((...e)=>ce(e[0])));return r?(r[re]=t,r):e}))),r}function ae(e,t,n){return 0===e.length?null:async(...r)=>{let o=await ie(e,n(...r),(()=>t(...r)),e.length-1);if("error"===o.type)throw o.value;return o.value}}async function ie(e,t,n,r){let o,a=e[r];if(a){let i,c=async()=>(i?console.error("You cannot call instrumented handlers more than once"):i=ie(e,t,n,r-1),o=await i,p(o,"Expected a result"),"error"===o.type&&o.value instanceof Error?{status:"error",error:o.value}:{status:"success",error:void 0});try{await a(c,t)}catch(e){console.error("An instrumentation function threw an error:",e)}i||await c(),await i}else try{let e=await n();o={type:"success",value:e}}catch(e){o={type:"error",value:e}}return o||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function ce(e){let{request:t,context:n,params:r,unstable_pattern:o}=e;return{request:le(t),params:{...r},unstable_pattern:o,context:ue(n)}}function se(e,t){return{currentUrl:g(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function le(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function ue(e){if(function(e){if(null===e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t||Object.getOwnPropertyNames(t).sort().join("\0")===de}(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var de=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var pe=["POST","PUT","PATCH","DELETE"],fe=new Set(pe),me=["GET",...pe],he=new Set(me),ge=new Set([301,302,303,307,308]),ve=new Set([307,308]),ye={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},be={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},we={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},xe=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),Ae="remix-router-transitions",Oe=Symbol("ResetLoaderData");function ke(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement;p(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||xe,a=o;if(e.unstable_instrumentations){let t=e.unstable_instrumentations;a=e=>({...o(e),...oe(t.map((e=>e.route)).filter(Boolean),e)})}let i,c={},s=k(e.routes,a,void 0,c),l=e.basename||"/";l.startsWith("/")||(l=`/${l}`);let u,d,m,y=e.dataStrategy||Le,w={unstable_passThroughRequests:!1,...e.future},A=null,O=new Set,S=null,T=null,D=null,_=null!=e.hydrationData,C=E(s,e.history.location,l),N=!1,I=null;if(null!=C||e.patchRoutesOnNavigation){if(C&&!e.hydrationData){Qe(C,s,e.history.location.pathname).active&&(C=null)}if(C)if(C.some((e=>e.route.lazy)))u=!1,d=!u;else if(C.some((e=>Pe(e.route)))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=C;if(n){let e=C.findIndex((e=>void 0!==n[e.route.id]));r=r.slice(0,e+1)}d=!1,u=!0,r.forEach((e=>{let r=Te(e.route,t,n);d=d||r.renderFallback,u=u&&!r.shouldLoad}))}else u=!0,d=!u;else{u=!1,d=!u,C=[];let t=Qe(null,s,e.history.location.pathname);t.active&&t.matches&&(N=!0,C=t.matches)}}else{let t=it(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=at(s);u=!0,d=!u,C=n,I={[r.id]:t}}let R,M,L={historyAction:e.history.action,location:e.history.location,matches:C,initialized:u,renderFallback:d,navigation:ye,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||I,fetchers:new Map,blockers:new Map},H="POP",B=null,U=!1,V=!1,W=new Map,Y=null,q=!1,$=!1,G=new Set,K=new Map,J=0,Q=-1,X=new Map,ee=new Set,te=new Map,ne=new Map,ie=new Set,ce=new Map,le=null;function ue(e,t={}){e.matches&&(e.matches=e.matches.map((e=>{let t=c[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}))),L={...L,...e};let n=[],r=[];L.fetchers.forEach(((e,t)=>{"idle"===e.state&&(ie.has(t)?n.push(t):r.push(t))})),ie.forEach((e=>{L.fetchers.has(e)||K.has(e)||n.push(e)})),[...O].forEach((r=>r(L,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>Ne(e))),r.forEach((e=>L.fetchers.delete(e)))}function de(t,n,{flushSync:r}={}){let o,a=null!=L.actionData&&null!=L.navigation.formMethod&&bt(L.navigation.formMethod)&&"loading"===L.navigation.state&&!0!==t.state?._isRedirect;o=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:a?L.actionData:null;let c=n.loaderData?nt(L.loaderData,n.loaderData,n.matches||[],n.errors):L.loaderData,l=L.blockers;l.size>0&&(l=new Map(l),l.forEach(((e,t)=>l.set(t,we))));let u,d=!q&&Ge(t,n.matches||L.matches),p=!0===U||null!=L.navigation.formMethod&&bt(L.navigation.formMethod)&&!0!==t.state?._isRedirect;if(i&&(s=i,i=void 0),q||"POP"===H||("PUSH"===H?e.history.push(t,t.state):"REPLACE"===H&&e.history.replace(t,t.state)),"POP"===H){let e=W.get(L.location.pathname);e&&e.has(t.pathname)?u={currentLocation:L.location,nextLocation:t}:W.has(t.pathname)&&(u={currentLocation:t,nextLocation:L.location})}else if(V){let e=W.get(L.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),W.set(L.location.pathname,e)),u={currentLocation:L.location,nextLocation:t}}ue({...n,actionData:o,loaderData:c,historyAction:H,location:t,initialized:!0,renderFallback:!1,navigation:ye,revalidation:"idle",restoreScrollPosition:d,preventScrollReset:p,blockers:l},{viewTransitionOpts:u,flushSync:!0===r}),H="POP",U=!1,V=!1,q=!1,$=!1,B?.resolve(),B=null,le?.resolve(),le=null}async function pe(t,n,o){R&&R.abort(),R=null,H=t,q=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(S&&D){let n=Ye(e,t);S[n]=D()}}(L.location,L.matches),U=!0===(o&&o.preventScrollReset),V=!0===(o&&o.enableViewTransition);let u=i||s,d=o&&o.overrideNavigation,p=o?.initialHydration&&L.matches&&L.matches.length>0&&!N?L.matches:E(u,n,l),f=!0===(o&&o.flushSync);if(p&&L.initialized&&!$&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(L.location,n)&&!(o&&o.submission&&bt(o.submission.formMethod)))return void de(n,{matches:p},{flushSync:f});let m=Qe(p,u,n.pathname);if(m.active&&m.matches&&(p=m.matches),!p){let{error:e,notFoundMatches:t,route:r}=Ue(n.pathname);return void de(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:f})}R=new AbortController;let h,g=Je(e.history,n,R.signal,o&&o.submission),v=e.getContext?await e.getContext():new x;if(o&&o.pendingError)h=[ot(p).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&bt(o.submission.formMethod)){let t=await async function(t,n,o,i,u,d,p,f={}){Oe();let m,h=function(e,t){let n={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return n}(n,o);if(ue({navigation:h},{flushSync:!0===f.flushSync}),d){let e=await Xe(i,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:n}=at(s);return{matches:t,pendingActionResult:[n.id,{type:"error",error:e.error}]}}let t=ot(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:"error",error:e.error}]}}if(!e.matches){let{notFoundMatches:e,error:t,route:r}=Ue(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:t}]}}i=e.matches}let g=xt(i,n);if(g.route.action||g.route.lazy){let e=Ve(a,c,t,n,i,g,p?[]:r,u),o=await he(t,n,e,u,null);if(m=o[g.route.id],!m)for(let e of i)if(o[e.route.id]){m=o[e.route.id];break}if(t.signal.aborted)return{shortCircuited:!0}}else m={type:"error",error:it(405,{method:t.method,pathname:n.pathname,routeId:g.route.id})};if(mt(m)){let n;if(f&&null!=f.replace)n=f.replace;else{n=Ke(m.response.headers.get("Location"),new URL(t.url),l,e.history)===L.location.pathname+L.location.search}return await me(t,m,!0,{submission:o,replace:n}),{shortCircuited:!0}}if(ft(m)){let e=ot(i,g.route.id);return!0!==(f&&f.replace)&&(H="PUSH"),{matches:i,pendingActionResult:[e.route.id,m,g.route.id]}}return{matches:i,pendingActionResult:[g.route.id,m]}}(g,n,o.submission,p,v,m.active,o&&!0===o.initialHydration,{replace:o.replace,flushSync:f});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(ft(r)&&Z(r.error)&&404===r.error.status)return R=null,void de(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}p=t.matches||p,h=t.pendingActionResult,d=Ot(n,o.submission),f=!1,m.active=!1,g=Je(e.history,g.url,g.signal)}let{shortCircuited:y,matches:b,loaderData:w,errors:A}=await async function(t,n,o,u,d,p,f,m,h,g,v,y,b){let w=p||Ot(n,f),x=f||m||At(w),A=!q&&!g;if(d){if(A){let e=fe(y);ue({navigation:w,...void 0!==e?{actionData:e}:{}},{flushSync:v})}let e=await Xe(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:n}=at(s);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=ot(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=Ue(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let O=i||s,{dsMatches:k,revalidatingFetchers:S}=je(t,u,a,c,e.history,L,o,x,n,g?[]:r,!0===g,$,G,ie,te,ee,O,l,null!=e.patchRoutesOnNavigation,y,b);if(Q=++J,!e.dataStrategy&&!k.some((e=>e.shouldLoad))&&!k.some((e=>e.route.middleware&&e.route.middleware.length>0))&&0===S.length){let e=Me();return de(n,{matches:o,loaderData:{},errors:y&&ft(y[1])?{[y[0]]:y[1].error}:null,...rt(y),...e?{fetchers:new Map(L.fetchers)}:{}},{flushSync:v}),{shortCircuited:!0}}if(A){let e={};if(!d){e.navigation=w;let t=fe(y);void 0!==t&&(e.actionData=t)}S.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=L.fetchers.get(e.key),n=kt(void 0,t?t.data:void 0);L.fetchers.set(e.key,n)})),new Map(L.fetchers)}(S)),ue(e,{flushSync:v})}S.forEach((e=>{Ie(e.key),e.controller&&K.set(e.key,e.controller)}));let E=()=>S.forEach((e=>Ie(e.key)));R&&R.signal.addEventListener("abort",E);let{loaderResults:j,fetcherResults:P}=await ge(k,S,t,n,u);if(t.signal.aborted)return{shortCircuited:!0};R&&R.signal.removeEventListener("abort",E);S.forEach((e=>K.delete(e.key)));let T=ct(j);if(T)return await me(t,T.result,!0,{replace:h}),{shortCircuited:!0};if(T=ct(P),T)return ee.add(T.key),await me(t,T.result,!0,{replace:h}),{shortCircuited:!0};let{loaderData:D,errors:_}=tt(L,o,j,y,S,P);g&&L.errors&&(_={...L.errors,..._});let C=Me(),N=Fe(Q),I=C||N||S.length>0;return{matches:o,loaderData:D,errors:_,...I?{fetchers:new Map(L.fetchers)}:{}}}(g,n,p,v,m.active,d,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,f,h,o&&o.callSiteDefaultShouldRevalidate);y||(R=null,de(n,{matches:b||p,...rt(h),loaderData:w,errors:A}))}function fe(e){return e&&!ft(e[1])?{[e[0]]:e[1].data}:L.actionData?0===Object.keys(L.actionData).length?null:L.actionData:void 0}async function me(r,o,a,{submission:i,fetcherSubmission:c,preventScrollReset:s,replace:u}={}){a||(B?.resolve(),B=null),o.response.headers.has("X-Remix-Revalidate")&&($=!0);let d=o.response.headers.get("Location");p(d,"Expected a Location header on the redirect Response"),d=Ke(d,new URL(r.url),l,e.history);let f=h(L.location,d,{_isRedirect:!0});if(n){let e=!1;if(o.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(z(d)){const n=b(d,!0);e=n.origin!==t.location.origin||null==F(n.pathname,l)}if(e)return void(u?t.location.replace(d):t.location.assign(d))}R=null;let m=!0===u||o.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:g,formAction:v,formEncType:y}=L.navigation;!i&&!c&&g&&v&&y&&(i=At(L.navigation));let w=i||c;if(ve.has(o.response.status)&&w&&bt(w.formMethod))await pe(m,f,{submission:{...w,formAction:d},preventScrollReset:s||U,enableViewTransition:a?V:void 0});else{let e=Ot(f,i);await pe(m,f,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:s||U,enableViewTransition:a?V:void 0})}}async function he(e,t,n,r,o){let a,i={};try{a=await We(y,e,t,n,o,r,!1)}catch(e){return n.filter((e=>e.shouldLoad)).forEach((t=>{i[t.route.id]={type:"error",error:e}})),i}if(e.signal.aborted)return i;if(!bt(e.method))for(let e of n){if("error"===a[e.route.id]?.type)break;a.hasOwnProperty(e.route.id)||L.loaderData.hasOwnProperty(e.route.id)||L.errors&&L.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(a[e.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(a))if(pt(r)){let o=r.result;i[t]={type:"redirect",response:$e(o,e,t,n,l)}}else i[t]=await qe(r);return i}async function ge(e,t,n,r,o){let a=he(n,r,e,o,null),i=Promise.all(t.map((async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await he(e.request,e.path,e.matches,o,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:"error",error:it(404,{pathname:e.path})}})})));return{loaderResults:await a,fetcherResults:(await i).reduce(((e,t)=>Object.assign(e,t)),{})}}function Oe(){$=!0,te.forEach(((e,t)=>{K.has(t)&&G.add(t),Ie(t)}))}function ke(e,t,n={}){L.fetchers.set(e,t),ue({fetchers:new Map(L.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function De(e,t,n,r={}){let o=ot(L.matches,t);Ne(e),ue({errors:{[o.route.id]:n},fetchers:new Map(L.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Ce(e){return ne.set(e,(ne.get(e)||0)+1),ie.has(e)&&ie.delete(e),L.fetchers.get(e)||be}function Ne(e){let t=L.fetchers.get(e);!K.has(e)||t&&"loading"===t.state&&X.has(e)||Ie(e),te.delete(e),X.delete(e),ee.delete(e),ie.delete(e),G.delete(e),L.fetchers.delete(e)}function Ie(e,t){let n=K.get(e);n&&(n.abort(t),K.delete(e))}function Re(e){for(let t of e){let e=St(Ce(t).data);L.fetchers.set(t,e)}}function Me(){let e=[],t=!1;for(let n of ee){let r=L.fetchers.get(n);p(r,`Expected fetcher: ${n}`),"loading"===r.state&&(ee.delete(n),e.push(n),t=!0)}return Re(e),t}function Fe(e){let t=[];for(let[n,r]of X)if(r<e){let e=L.fetchers.get(n);p(e,`Expected fetcher: ${n}`),"loading"===e.state&&(Ie(n),X.delete(n),t.push(n))}return Re(t),t.length>0}function He(e){L.blockers.delete(e),ce.delete(e)}function ze(e,t){let n=L.blockers.get(e)||we;p("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(L.blockers);r.set(e,t),ue({blockers:r})}function Be({currentLocation:e,nextLocation:t,historyAction:n}){if(0===ce.size)return;ce.size>1&&f(!1,"A router only supports one blocker at a time");let r=Array.from(ce.entries()),[o,a]=r[r.length-1],i=L.blockers.get(o);return i&&"proceeding"===i.state?void 0:a({currentLocation:e,nextLocation:t,historyAction:n})?o:void 0}function Ue(e){let t=it(404,{pathname:e}),n=i||s,{matches:r,route:o}=at(n);return{notFoundMatches:r,route:o,error:t}}function Ye(e,t){if(T){return T(e,t.map((e=>P(e,L.loaderData))))||e.key}return e.key}function Ge(e,t){if(S){let n=Ye(e,t),r=S[n];if("number"==typeof r)return r}return null}function Qe(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:j(n,r,l,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:j(n,r,l,!0)}}}return{active:!1,matches:null}}async function Xe(t,n,r,o){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let u=t;for(;;){let t=null==i,d=i||s,p=c;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:u,fetcherKey:o,patch:(e,t)=>{r.aborted||_e(e,t,d,p,a,!1)}})}catch(e){return{type:"error",error:e,partialMatches:u}}finally{t&&!r.aborted&&(s=[...s])}if(r.aborted)return{type:"aborted"};let f=E(d,n,l),m=null;if(f){if(0===Object.keys(f[0].params).length)return{type:"success",matches:f};if(m=j(d,n,l,!0),!(m&&u.length<m.length&&Ze(u,m.slice(0,u.length))))return{type:"success",matches:f}}if(m||(m=j(d,n,l,!0)),!m||Ze(u,m))return{type:"success",matches:null};u=m}}function Ze(e,t){return e.length===t.length&&e.every(((e,n)=>e.route.id===t[n].route.id))}return m={get basename(){return l},get future(){return w},get state(){return L},get routes(){return s},get window(){return t},initialize:function(){if(A=e.history.listen((({action:t,location:n,delta:r})=>{if(M)return M(),void(M=void 0);f(0===ce.size||null!=r,"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=Be({currentLocation:L.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise((e=>{M=e}));return e.history.go(-1*r),ze(o,{state:"blocked",location:n,proceed(){ze(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(L.blockers);e.set(o,we),ue({blockers:e})}}),B?.resolve(),void(B=null)}return pe(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(Ae);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,W);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(Ae,JSON.stringify(n))}catch(e){f(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,W);t.addEventListener("pagehide",e),Y=()=>t.removeEventListener("pagehide",e)}return L.initialized||pe("POP",L.location,{initialHydration:!0}),m},subscribe:function(e){return O.add(e),()=>O.delete(e)},enableScrollRestoration:function(e,t,n){if(S=e,D=t,T=n||null,!_&&L.navigation===ye){_=!0;let e=Ge(L.location,L.matches);null!=e&&ue({restoreScrollPosition:e})}return()=>{S=null,D=null,T=null}},navigate:async function t(n,r){if(B?.resolve(),B=null,"number"==typeof n){B||(B=Et());let t=B.promise;return e.history.go(n),t}let o,a=Se(L.location,L.matches,l,n,r?.fromRouteId,r?.relative),{path:i,submission:c,error:s}=Ee(!1,a,r);if(r?.unstable_mask){o={pathname:"",search:"",hash:"",..."string"==typeof r.unstable_mask?v(r.unstable_mask):{...L.location.unstable_mask,...r.unstable_mask}}}let u=L.location,d=h(u,i,r&&r.state,void 0,o);d={...d,...e.history.encodeLocation(d)};let p=r&&null!=r.replace?r.replace:void 0,f="PUSH";!0===p?f="REPLACE":!1===p||null!=c&&bt(c.formMethod)&&c.formAction===L.location.pathname+L.location.search&&(f="REPLACE");let m=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,g=!0===(r&&r.flushSync),y=Be({currentLocation:u,nextLocation:d,historyAction:f});y?ze(y,{state:"blocked",location:d,proceed(){ze(y,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),t(n,r)},reset(){let e=new Map(L.blockers);e.set(y,we),ue({blockers:e})}}):await pe(f,d,{submission:c,pendingError:s,preventScrollReset:m,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:g,callSiteDefaultShouldRevalidate:r&&r.unstable_defaultShouldRevalidate})},fetch:async function(t,n,o,u){Ie(t);let d=!0===(u&&u.flushSync),f=i||s,m=Se(L.location,L.matches,l,o,n,u?.relative),h=E(f,m,l),g=Qe(h,f,m);if(g.active&&g.matches&&(h=g.matches),!h)return void De(t,n,it(404,{pathname:m}),{flushSync:d});let{path:v,submission:y,error:b}=Ee(!0,m,u);if(b)return void De(t,n,b,{flushSync:d});let w=e.getContext?await e.getContext():new x,A=!0===(u&&u.preventScrollReset);y&&bt(y.formMethod)?await async function(t,n,o,u,d,f,m,h,g,v){Oe(),te.delete(t);let y=L.fetchers.get(t);ke(t,function(e,t){let n={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return n}(g,y),{flushSync:m});let b=new AbortController,w=Je(e.history,o,b.signal,g);if(f){let e=await Xe(u,new URL(w.url).pathname,w.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void De(t,n,e.error,{flushSync:m});if(!e.matches)return void De(t,n,it(404,{pathname:o}),{flushSync:m});u=e.matches}let x=xt(u,o);if(!x.route.action&&!x.route.lazy){let e=it(405,{method:g.formMethod,pathname:o,routeId:n});return void De(t,n,e,{flushSync:m})}K.set(t,b);let A=J,O=Ve(a,c,w,o,u,x,r,d),k=await he(w,o,O,d,t),S=k[x.route.id];if(!S)for(let e of O)if(k[e.route.id]){S=k[e.route.id];break}if(w.signal.aborted)return void(K.get(t)===b&&K.delete(t));if(ie.has(t)){if(mt(S)||ft(S))return void ke(t,St(void 0))}else{if(mt(S))return K.delete(t),Q>A?void ke(t,St(void 0)):(ee.add(t),ke(t,kt(g)),me(w,S,!1,{fetcherSubmission:g,preventScrollReset:h}));if(ft(S))return void De(t,n,S.error)}let j=L.navigation.location||L.location,P=Je(e.history,j,b.signal),T=i||s,D="idle"!==L.navigation.state?E(T,L.navigation.location,l):L.matches;p(D,"Didn't find any matches after fetcher action");let _=++J;X.set(t,_);let C=kt(g,S.data);L.fetchers.set(t,C);let{dsMatches:N,revalidatingFetchers:I}=je(P,d,a,c,e.history,L,D,g,j,r,!1,$,G,ie,te,ee,T,l,null!=e.patchRoutesOnNavigation,[x.route.id,S],v);I.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=L.fetchers.get(t),r=kt(void 0,n?n.data:void 0);L.fetchers.set(t,r),Ie(t),e.controller&&K.set(t,e.controller)})),ue({fetchers:new Map(L.fetchers)});let M=()=>I.forEach((e=>Ie(e.key)));b.signal.addEventListener("abort",M);let{loaderResults:F,fetcherResults:z}=await ge(N,I,P,j,d);if(b.signal.aborted)return;if(b.signal.removeEventListener("abort",M),X.delete(t),K.delete(t),I.forEach((e=>K.delete(e.key))),L.fetchers.has(t)){let e=St(S.data);L.fetchers.set(t,e)}let B=ct(F);if(B)return me(P,B.result,!1,{preventScrollReset:h});if(B=ct(z),B)return ee.add(B.key),me(P,B.result,!1,{preventScrollReset:h});let{loaderData:U,errors:V}=tt(L,D,F,void 0,I,z);Fe(_),"loading"===L.navigation.state&&_>Q?(p(H,"Expected pending action"),R&&R.abort(),de(L.navigation.location,{matches:D,loaderData:U,errors:V,fetchers:new Map(L.fetchers)})):(ue({errors:V,loaderData:nt(L.loaderData,U,D,V),fetchers:new Map(L.fetchers)}),$=!1)}(t,n,v,h,w,g.active,d,A,y,u&&u.unstable_defaultShouldRevalidate):(te.set(t,{routeId:n,path:v}),await async function(t,n,o,i,s,l,u,d,p){let f=L.fetchers.get(t);ke(t,kt(p,f?f.data:void 0),{flushSync:u});let m=new AbortController,h=Je(e.history,o,m.signal);if(l){let e=await Xe(i,new URL(h.url).pathname,h.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void De(t,n,e.error,{flushSync:u});if(!e.matches)return void De(t,n,it(404,{pathname:o}),{flushSync:u});i=e.matches}let g=xt(i,o);K.set(t,m);let v=J,y=Ve(a,c,h,o,i,g,r,s),b=await he(h,o,y,s,t),w=b[g.route.id];K.get(t)===m&&K.delete(t);if(h.signal.aborted)return;if(ie.has(t))return void ke(t,St(void 0));if(mt(w))return Q>v?void ke(t,St(void 0)):(ee.add(t),void await me(h,w,!1,{preventScrollReset:d}));if(ft(w))return void De(t,n,w.error);ke(t,St(w.data))}(t,n,v,h,w,g.active,d,A,y))},revalidate:function(){le||(le=Et()),Oe(),ue({revalidation:"loading"});let e=le.promise;return"submitting"===L.navigation.state?e:"idle"===L.navigation.state?(pe(L.historyAction,L.location,{startUninterruptedRevalidation:!0}),e):(pe(H||L.historyAction,L.navigation.location,{overrideNavigation:L.navigation,enableViewTransition:!0===V}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Ce,resetFetcher:function(e,t){Ie(e,t?.reason),ke(e,St(null))},deleteFetcher:function(e){let t=(ne.get(e)||0)-1;t<=0?(ne.delete(e),ie.add(e)):ne.set(e,t),ue({fetchers:new Map(L.fetchers)})},dispose:function(){A&&A(),Y&&Y(),O.clear(),R&&R.abort(),L.fetchers.forEach(((e,t)=>Ne(t))),L.blockers.forEach(((e,t)=>He(t)))},getBlocker:function(e,t){let n=L.blockers.get(e)||we;return ce.get(e)!==t&&ce.set(e,t),n},deleteBlocker:He,patchRoutes:function(e,t,n=!1){let r=null==i;_e(e,t,i||s,c,a,n),r&&(s=[...s],ue({}))},_internalFetchControllers:K,_internalSetRoutes:function(e){c={},i=k(e,a,void 0,c)},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){ue(e)}},e.unstable_instrumentations&&(m=function(e,t){let n={navigate:[],fetch:[]};if(t.forEach((e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}}))),n.navigate.length>0){let t=e.navigate[re]??e.navigate,r=ae(n.navigate,t,((...t)=>{let[n,r]=t;return{to:"number"==typeof n||"string"==typeof n?n:n?g(n):".",...se(e,r??{})}}));r&&(r[re]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[re]??e.fetch,r=ae(n.fetch,t,((...t)=>{let[n,,r,o]=t;return{href:r??".",fetcherKey:n,...se(e,o??{})}}));r&&(r[re]=t,e.fetch=r)}return e}(m,e.unstable_instrumentations.map((e=>e.router)).filter(Boolean))),m}function Se(e,t,n,r,o,a){let i,c;if(o){i=[];for(let e of t)if(i.push(e),e.route.id===o){c=e;break}}else i=t,c=t[t.length-1];let s=Y(r||".",W(i),F(e.pathname,n)||e.pathname,"path"===a);if(null==r&&(s.search=e.search,s.hash=e.hash),(null==r||""===r||"."===r)&&c){let e=wt(s.search);if(c.route.index&&!e)s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&e){let e=new URLSearchParams(s.search),t=e.getAll("index");e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();s.search=n?`?${n}`:""}}return"/"!==n&&(s.pathname=function({basename:e,pathname:t}){return"/"===t?e:$([e,t])}({basename:n,pathname:s.pathname})),g(s)}function Ee(e,t,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:t};if(n.formMethod&&!yt(n.formMethod))return{path:t,error:it(405,{method:n.formMethod})};let r,o,a=()=>({path:t,error:it(400,{type:"invalid-body"})}),i=(n.formMethod||"get").toUpperCase(),c=st(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!bt(i))return a();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce(((e,[t,n])=>`${e}${t}=${n}\n`),""):String(n.body);return{path:t,submission:{formMethod:i,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!bt(i))return a();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return a()}}}if(p("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=Xe(n.formData),o=n.formData;else if(n.body instanceof FormData)r=Xe(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=Ze(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=Ze(r)}catch(e){return a()}let s={formMethod:i,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(bt(s.formMethod))return{path:t,submission:s};let l=v(t);return e&&l.search&&wt(l.search)&&r.append("index",""),l.search=`?${r}`,{path:g(l),submission:s}}function je(e,t,n,r,o,a,i,c,s,l,u,d,p,f,m,h,g,v,y,b,w){let x,A=b?ft(b[1])?b[1].error:b[1].data:void 0,O=o.createURL(a.location),k=o.createURL(s);if(u&&a.errors){let e=Object.keys(a.errors)[0];x=i.findIndex((t=>t.route.id===e))}else if(b&&ft(b[1])){let e=b[0];x=i.findIndex((t=>t.route.id===e))-1}let S=b?b[1].statusCode:void 0,j=S&&S>=400,P={currentUrl:O,currentParams:a.matches[0]?.params||{},nextUrl:k,nextParams:i[0].params,...c,actionResult:A,actionStatus:S},T=ee(i),D=i.map(((o,i)=>{let{route:c}=o,p=null;if(null!=x&&i>x)p=!1;else if(c.lazy)p=!0;else if(Pe(c))if(u){let{shouldLoad:e}=Te(c,a.loaderData,a.errors);p=e}else(function(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o})(a.loaderData,a.matches[i],o)&&(p=!0);else p=!1;if(null!==p)return Ue(n,r,e,s,T,o,l,t,p);let f=!1;"boolean"==typeof w?f=w:j?f=!1:(d||O.pathname+O.search===k.pathname+k.search||O.search!==k.search||function(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}(a.matches[i],o))&&(f=!0);let m={...P,defaultShouldRevalidate:f},h=De(o,m);return Ue(n,r,e,s,T,o,l,t,h,m,w)})),_=[];return m.forEach(((e,c)=>{if(u||!i.some((t=>t.route.id===e.routeId))||f.has(c))return;let s=a.fetchers.get(c),m=s&&"idle"!==s.state&&void 0===s.data,b=E(g,e.path,v);if(!b){if(y&&m)return;return void _.push({key:c,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null})}if(h.has(c))return;let x=xt(b,e.path),A=new AbortController,O=Je(o,e.path,A.signal),k=null;if(p.has(c))p.delete(c),k=Ve(n,r,O,e.path,b,x,l,t);else if(m)d&&(k=Ve(n,r,O,e.path,b,x,l,t));else{let o;o="boolean"==typeof w?w:!j&&d;let a={...P,defaultShouldRevalidate:o};De(x,a)&&(k=Ve(n,r,O,e.path,b,x,l,t,a))}k&&_.push({key:c,routeId:e.routeId,path:e.path,matches:k,match:x,request:O,controller:A})})),{dsMatches:D,revalidatingFetchers:_}}function Pe(e){return null!=e.loader||null!=e.middleware&&e.middleware.length>0}function Te(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Pe(e))return{shouldLoad:!1,renderFallback:!1};let r=null!=t&&e.id in t,o=null!=n&&void 0!==n[e.id];if(!r&&o)return{shouldLoad:!1,renderFallback:!1};if("function"==typeof e.loader&&!0===e.loader.hydrate)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!o;return{shouldLoad:a,renderFallback:a}}function De(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function _e(e,t,n,r,o,a){let i;if(e){let t=r[e];p(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),i=t.children}else i=n;let c=[],s=[];if(t.forEach((e=>{let t=i.find((t=>Ce(e,t)));t?s.push({existingRoute:t,newRoute:e}):c.push(e)})),c.length>0){let t=k(c,o,[e||"_","patch",String(i?.length||"0")],r);i.push(...t)}if(a&&s.length>0)for(let e=0;e<s.length;e++){let{existingRoute:t,newRoute:n}=s[e],r=t,[a]=k([n],o,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}}function Ce(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||(e.children?.every(((e,n)=>t.children?.some((t=>Ce(e,t)))))??!1))}var Ne=new WeakMap,Ie=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(p(o,"No route found in manifest"),!o.lazy||"object"!=typeof o.lazy)return;let a=o.lazy[e];if(!a)return;let i=Ne.get(o);i||(i={},Ne.set(o,i));let c=i[e];if(c)return c;let s=(async()=>{let t=function(e){return A.has(e)}(e),n=void 0!==o[e]&&"hasErrorBoundary"!==e;if(t)f(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(n)f(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();null!=t&&(Object.assign(o,{[e]:t}),Object.assign(o,r(o)))}"object"==typeof o.lazy&&(o.lazy[e]=void 0,Object.values(o.lazy).every((e=>void 0===e))&&(o.lazy=void 0))})();return i[e]=s,s},Re=new WeakMap;async function Me(e){let t=e.matches.filter((e=>e.shouldLoad)),n={};return(await Promise.all(t.map((e=>e.resolve())))).forEach(((e,r)=>{n[t[r].route.id]=e})),n}async function Le(e){return e.matches.some((e=>e.route.middleware))?Fe(e,(()=>Me(e))):Me(e)}function Fe(e,t){return He(e,t,(e=>{if(vt(e))throw e;return e}),ut,(function(t,n,r){if(r)return Promise.resolve(Object.assign(r.value,{[n]:{type:"error",result:t}}));{let{matches:r}=e,o=Math.min(Math.max(r.findIndex((e=>e.route.id===n)),0),Math.max(r.findIndex((e=>e.shouldCallHandler())),0)),a=ot(r,r[o].route.id).route.id;return Promise.resolve({[a]:{type:"error",result:t}})}}))}async function He(e,t,n,r,o){let{matches:a,...i}=e,c=a.flatMap((e=>e.route.middleware?e.route.middleware.map((t=>[e.route.id,t])):[]));return await ze(i,c,t,n,r,o)}async function ze(e,t,n,r,o,a,i=0){let{request:c}=e;if(c.signal.aborted)throw c.signal.reason??new Error(`Request aborted: ${c.method} ${c.url}`);let s=t[i];if(!s){return await n()}let l,[u,d]=s,p=async()=>{if(l)throw new Error("You may only call `next()` once per middleware");try{let c=await ze(e,t,n,r,o,a,i+1);return l={value:c},l.value}catch(e){return l={value:await a(e,u,l)},l.value}};try{let t=await d(e,p),n=null!=t?r(t):void 0;return o(n)?n:l?n??l.value:(l={value:await p()},l.value)}catch(e){return await a(e,u,l)}}function Be(e,t,n,r,o){let a=Ie({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),i=function(e,t,n,r,o){let a=n[e.id];if(p(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=Re.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{p("function"==typeof e.lazy,"No lazy route function found");let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(void 0===r)continue;let i=(o=e,O.has(o)),c=void 0!==a[e]&&"hasErrorBoundary"!==e;i?f(!i,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):c?f(!c,`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.`):n[e]=r}var o;Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return Re.set(a,n),n.catch((()=>{})),{lazyRoutePromise:n,lazyHandlerPromise:n}}let i,c=Object.keys(e.lazy),s=[];for(let a of c){if(o&&o.includes(a))continue;let c=Ie({key:a,route:e,manifest:n,mapRouteProperties:r});c&&(s.push(c),a===t&&(i=c))}let l=s.length>0?Promise.all(s).then((()=>{})):void 0;return l?.catch((()=>{})),i?.catch((()=>{})),{lazyRoutePromise:l,lazyHandlerPromise:i}}(r.route,bt(n.method)?"action":"loader",t,e,o);return{middleware:a,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function Ue(e,t,n,r,o,a,i,c,s,l=null,u){let d=!1,p=Be(e,t,n,a,i);return{...a,_lazyPromises:p,shouldLoad:s,shouldRevalidateArgs:l,shouldCallHandler:e=>(d=!0,l?De(a,"boolean"==typeof u?{...l,defaultShouldRevalidate:u}:"boolean"==typeof e?{...l,defaultShouldRevalidate:e}:l):s),resolve(e){let{lazy:t,loader:i,middleware:l}=a.route,u=d||s||e&&!bt(n.method)&&(t||i),f=l&&l.length>0&&!i&&!t;return!u||!bt(n.method)&&f?Promise.resolve({type:"data",result:void 0}):async function({request:e,path:t,unstable_pattern:n,match:r,lazyHandlerPromise:o,lazyRoutePromise:a,handlerOverride:i,scopedContext:c}){let s,l,u=bt(e.method),d=u?"action":"loader",p=o=>{let a,s=new Promise(((e,t)=>a=t));l=()=>a(),e.signal.addEventListener("abort",l);let u=a=>"function"!=typeof o?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)):o({request:e,unstable_url:Qe(e,t),unstable_pattern:n,params:r.params,context:c},...void 0!==a?[a]:[]),p=(async()=>{try{return{type:"data",result:await(i?i((e=>u(e))):u())}}catch(e){return{type:"error",result:e}}})();return Promise.race([p,s])};try{let t=u?r.route.action:r.route.loader;if(o||a)if(t){let e,[n]=await Promise.all([p(t).catch((t=>{e=t})),o,a]);if(void 0!==e)throw e;s=n}else{await o;let t=u?r.route.action:r.route.loader;if(!t){if("action"===d){let t=new URL(e.url),n=t.pathname+t.search;throw it(405,{method:e.method,pathname:n,routeId:r.route.id})}return{type:"data",result:void 0}}[s]=await Promise.all([p(t),a])}else{if(!t){let t=new URL(e.url);throw it(404,{pathname:t.pathname+t.search})}s=await p(t)}}catch(e){return{type:"error",result:e}}finally{l&&e.signal.removeEventListener("abort",l)}return s}({request:n,path:r,unstable_pattern:o,match:a,lazyHandlerPromise:p?.handler,lazyRoutePromise:p?.route,handlerOverride:e,scopedContext:c})}}}function Ve(e,t,n,r,o,a,i,c,s=null){return o.map((l=>l.route.id!==a.route.id?{...l,shouldLoad:!1,shouldRevalidateArgs:s,shouldCallHandler:()=>!1,_lazyPromises:Be(e,t,n,l,i),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Ue(e,t,n,r,ee(o),l,i,c,!0,s)))}async function We(e,t,n,r,o,a,i){r.some((e=>e._lazyPromises?.middleware))&&await Promise.all(r.map((e=>e._lazyPromises?.middleware)));let c={request:t,unstable_url:Qe(t,n),unstable_pattern:ee(r),params:r[0].params,context:a,matches:r},s=i?()=>{throw new Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=c;return Fe(t,(()=>e({...t,fetcherKey:o,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}})))},l=await e({...c,fetcherKey:o,runClientMiddleware:s});try{await Promise.all(r.flatMap((e=>[e._lazyPromises?.handler,e._lazyPromises?.route])))}catch(e){}return l}async function Ye(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?null==e.body?null:e.json():e.text()}async function qe(e){let{result:t,type:n}=e;if(gt(t)){let e;try{e=await Ye(t)}catch(e){return{type:"error",error:e}}return"error"===n?{type:"error",error:new X(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===n?ht(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:lt(t),statusCode:Z(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Z(t)?t.status:void 0}:ht(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function $e(e,t,n,r,o){let a=e.headers.get("Location");if(p(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!z(a)){let i=r.slice(0,r.findIndex((e=>e.route.id===n))+1);a=Se(new URL(t.url),i,o,a),e.headers.set("Location",a)}return e}var Ge=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Ke(e,t,n,r){if(z(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r);if(Ge.includes(o.protocol))throw new Error("Invalid redirect location");let a=null!=F(o.pathname,n);if(o.origin===t.origin&&a)return q(o.pathname)+o.search+o.hash}try{let t=r.createURL(e);if(Ge.includes(t.protocol))throw new Error("Invalid redirect location")}catch(e){}return e}function Je(e,t,n,r){let o=e.createURL(st(t)).toString(),a={signal:n};if(r&&bt(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),"application/json"===t?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):"text/plain"===t?a.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?a.body=Xe(r.formData):a.body=r.formData}return new Request(o,a)}function Qe(e,t){let n=new URL(e.url),r="string"==typeof t?v(t):t;if(n.pathname=r.pathname||"/",r.search){let e=new URLSearchParams(r.search),t=e.getAll("index");e.delete("index");for(let n of t.filter(Boolean))e.append("index",n);n.search=e.size?`?${e.toString()}`:""}else n.search="";return n.hash=r.hash||"",n}function Xe(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Ze(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function et(e,t,n,r=!1,o=!1){let a,i={},c=null,s=!1,l={},u=n&&ft(n[1])?n[1].error:void 0;return e.forEach((n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(p(!mt(f),"Cannot handle redirect results in processLoaderData"),ft(f)){let t=f.error;if(void 0!==u&&(t=u,u=void 0),c=c||{},o)c[d]=t;else{let n=ot(e,d);null==c[n.route.id]&&(c[n.route.id]=t)}r||(i[d]=Oe),s||(s=!0,a=Z(f.error)?f.error.status:500),f.headers&&(l[d]=f.headers)}else i[d]=f.data,f.statusCode&&200!==f.statusCode&&!s&&(a=f.statusCode),f.headers&&(l[d]=f.headers)})),void 0!==u&&n&&(c={[n[0]]:u},n[2]&&(i[n[2]]=void 0)),{loaderData:i,errors:c,statusCode:a||200,loaderHeaders:l}}function tt(e,t,n,r,o,a){let{loaderData:i,errors:c}=et(t,n,r);return o.filter((e=>!e.matches||e.matches.some((e=>e.shouldLoad)))).forEach((t=>{let{key:n,match:r,controller:o}=t;if(o&&o.signal.aborted)return;let i=a[n];if(p(i,"Did not find corresponding fetcher result"),ft(i)){let t=ot(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:i.error}),e.fetchers.delete(n)}else if(mt(i))p(!1,"Unhandled fetcher revalidation redirect");else{let t=St(i.data);e.fetchers.set(n,t)}})),{loaderData:i,errors:c}}function nt(e,t,n,r){let o=Object.entries(t).filter((([,e])=>e!==Oe)).reduce(((e,[t,n])=>(e[t]=n,e)),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function rt(e){return e?ft(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ot(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 at(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 it(e,{pathname:t,routeId:n,method:r,type:o,message:a}={}){let i="Unknown Server Error",c="Unknown @remix-run/router error";return 400===e?(i="Bad Request",r&&t&&n?c=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:"invalid-body"===o&&(c="Unable to encode submission body")):403===e?(i="Forbidden",c=`Route "${n}" does not match URL "${t}"`):404===e?(i="Not Found",c=`No route matches URL "${t}"`):405===e&&(i="Method Not Allowed",r&&t&&n?c=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(c=`Invalid request method "${r.toUpperCase()}"`)),new X(e||500,i,new Error(c),!0)}function ct(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(mt(r))return{key:n,result:r}}}function st(e){return g({..."string"==typeof e?v(e):e,hash:""})}function lt(e){return new X(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function ut(e){return null!=e&&"object"==typeof e&&Object.entries(e).every((([e,t])=>"string"==typeof e&&dt(t)))}function dt(e){return null!=e&&"object"==typeof e&&"type"in e&&"result"in e&&("data"===e.type||"error"===e.type)}function pt(e){return gt(e.result)&&ge.has(e.result.status)}function ft(e){return"error"===e.type}function mt(e){return"redirect"===(e&&e.type)}function ht(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function gt(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function vt(e){return gt(e)&&(t=e.status,ge.has(t))&&e.headers.has("Location");var t}function yt(e){return he.has(e.toUpperCase())}function bt(e){return fe.has(e.toUpperCase())}function wt(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function xt(e,t){let n="string"==typeof t?v(t).search:t.search;if(e[e.length-1].route.index&&wt(n||""))return e[e.length-1];let r=V(e);return r[r.length-1]}function At(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=a?{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}:void 0}function Ot(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function kt(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function St(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Et(){let e,t,n=new Promise(((r,o)=>{e=async e=>{r(e);try{await n}catch(e){}},t=async e=>{o(e);try{await n}catch(e){}}}));return{promise:n,resolve:e,reject:t}}var jt=a.createContext(null);jt.displayName="DataRouter";var Pt=a.createContext(null);Pt.displayName="DataRouterState";var Tt=a.createContext(!1);function Dt(){return a.useContext(Tt)}var _t=a.createContext({isTransitioning:!1});_t.displayName="ViewTransition";var Ct=a.createContext(new Map);Ct.displayName="Fetchers";var Nt=a.createContext(null);Nt.displayName="Await";var It=a.createContext(null);It.displayName="Navigation";var Rt=a.createContext(null);Rt.displayName="Location";var Mt=a.createContext({outlet:null,matches:[],isDataRoute:!1});Mt.displayName="Route";var Lt=a.createContext(null);Lt.displayName="RouteError";var Ft="REACT_ROUTER_ERROR";function Ht(){return null!=a.useContext(Rt)}function zt(){return p(Ht(),"useLocation() may be used only in the context of a <Router> component."),a.useContext(Rt).location}var Bt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ut(e){a.useContext(It).static||a.useLayoutEffect(e)}function Vt(){let{isDataRoute:e}=a.useContext(Mt);return e?function(){let{router:e}=tn("useNavigate"),t=rn("useNavigate"),n=a.useRef(!1);return Ut((()=>{n.current=!0})),a.useCallback((async(r,o={})=>{f(n.current,Bt),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){p(Ht(),"useNavigate() may be used only in the context of a <Router> component.");let e=a.useContext(jt),{basename:t,navigator:n}=a.useContext(It),{matches:r}=a.useContext(Mt),{pathname:o}=zt(),i=JSON.stringify(W(r)),c=a.useRef(!1);return Ut((()=>{c.current=!0})),a.useCallback(((r,a={})=>{if(f(c.current,Bt),!c.current)return;if("number"==typeof r)return void n.go(r);let s=Y(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:$([t,s.pathname])),(a.replace?n.replace:n.push)(s,a.state,a)}),[t,n,i,o,e])}()}a.createContext(null);function Wt(){let{matches:e}=a.useContext(Mt),t=e[e.length-1];return t?t.params:{}}function Yt(e,{relative:t}={}){let{matches:n}=a.useContext(Mt),{pathname:r}=zt(),o=JSON.stringify(W(n));return a.useMemo((()=>Y(e,JSON.parse(o),r,"path"===t)),[e,o,r,t])}function qt(e,t,n){p(Ht(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=a.useContext(It),{matches:o}=a.useContext(Mt),i=o[o.length-1],c=i?i.params:{},s=i?i.pathname:"/",l=i?i.pathnameBase:"/",u=i&&i.route;{let e=u&&u.path||"";un(s,!u||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let d,m=zt();if(t){let e="string"==typeof t?v(t):t;p("/"===l||e.pathname?.startsWith(l),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=m;let h=d.pathname||"/",g=h;if("/"!==l){let e=l.replace(/^\//,"").split("/");g="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=E(e,{pathname:g});f(u||null!=y,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),f(null==y||void 0!==y[y.length-1].route.element||void 0!==y[y.length-1].route.Component||void 0!==y[y.length-1].route.lazy,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=Zt(y&&y.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:$([l,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:$([l,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])}))),o,n);return t&&b?a.createElement(Rt.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...d},navigationType:"POP"}},b):b}function $t(){let e=an(),t=Z(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=a.createElement(a.Fragment,null,a.createElement("p",null,"💿 Hey developer 👋"),a.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",a.createElement("code",{style:i},"ErrorBoundary")," or"," ",a.createElement("code",{style:i},"errorElement")," prop on your route.")),a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),n?a.createElement("pre",{style:o},n):null,c)}var Gt=a.createElement($t,null),Kt=class extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${Ft}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new X(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?a.createElement(Mt.Provider,{value:this.props.routeContext},a.createElement(Lt.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?a.createElement(Qt,{error:e},t):t}};Kt.contextType=Tt;var Jt=new WeakMap;function Qt({children:e,error:t}){let{basename:n}=a.useContext(It);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${Ft}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=Jt.get(t);if(r)throw r;let o=ne(e.location,n);if(te&&!Jt.get(t)){if(!o.isExternal&&!e.reloadDocument){const n=Promise.resolve().then((()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace})));throw Jt.set(t,n),n}window.location.href=o.absoluteURL||o.to}return a.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function Xt({routeContext:e,match:t,children:n}){let r=a.useContext(jt);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),a.createElement(Mt.Provider,{value:e},n)}function Zt(e,t=[],n){let r=n?.state;if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let o=e,i=r?.errors;if(null!=i){let e=o.findIndex((e=>e.route.id&&void 0!==i?.[e.route.id]));p(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let c=!1,s=-1;if(n&&r){c=r.renderFallback;for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,i=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||void 0===a[t.route.id]);if(t.route.lazy||i){n.isStatic&&(c=!0),o=s>=0?o.slice(0,s+1):[o[0]];break}}}}let l=n?.onError,u=r&&l?(e,t)=>{l(e,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:ee(r.matches),errorInfo:t})}:void 0;return o.reduceRight(((e,n,l)=>{let d,p=!1,f=null,m=null;r&&(d=i&&n.route.id?i[n.route.id]:void 0,f=n.route.errorElement||Gt,c&&(s<0&&0===l?(un("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,m=null):s===l&&(p=!0,m=n.route.hydrateFallbackElement||null)));let h=t.concat(o.slice(0,l+1)),g=()=>{let t;return t=d?f:p?m:n.route.Component?a.createElement(n.route.Component,null):n.route.element?n.route.element:e,a.createElement(Xt,{match:n,routeContext:{outlet:e,matches:h,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===l)?a.createElement(Kt,{location:r.location,revalidation:r.revalidation,component:f,error:d,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):g()}),null)}function en(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function tn(e){let t=a.useContext(jt);return p(t,en(e)),t}function nn(e){let t=a.useContext(Pt);return p(t,en(e)),t}function rn(e){let t=function(e){let t=a.useContext(Mt);return p(t,en(e)),t}(e),n=t.matches[t.matches.length-1];return p(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function on(){let{matches:e,loaderData:t}=nn("useMatches");return a.useMemo((()=>e.map((e=>P(e,t)))),[e,t])}function an(){let e=a.useContext(Lt),t=nn("useRouteError"),n=rn("useRouteError");return void 0!==e?e:t.errors?.[n]}var cn=0;function sn(e){let{router:t,basename:n}=tn("useBlocker"),r=nn("useBlocker"),[o,i]=a.useState(""),c=a.useCallback((t=>{if("function"!=typeof e)return!!e;if("/"===n)return e(t);let{currentLocation:r,nextLocation:o,historyAction:a}=t;return e({currentLocation:{...r,pathname:F(r.pathname,n)||r.pathname},nextLocation:{...o,pathname:F(o.pathname,n)||o.pathname},historyAction:a})}),[n,e]);return a.useEffect((()=>{let e=String(++cn);return i(e),()=>t.deleteBlocker(e)}),[t]),a.useEffect((()=>{""!==o&&t.getBlocker(o,c)}),[t,o,c]),o&&r.blockers.has(o)?r.blockers.get(o):we}var ln={};function un(e,t,n){t||ln[e]||(ln[e]=!0,f(!1,n))}var dn={};function pn(e,t){e||dn[t]||(dn[t]=!0,console.warn(t))}var fn=(r||(r=n.t(a,2))).useOptimistic,mn=()=>{};function hn(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(e.element&&f(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:a.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&f(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:a.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&f(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:a.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var gn=["HydrateFallback","hydrateFallbackElement"];function vn(e,t){return ke({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:u({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,hydrationRouteProperties:gn,mapRouteProperties:hn,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}var yn=class{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 bn({router:e,flushSync:t,onError:n,unstable_useTransitions:r}){let o=Dt();r=o||r;let[i,c]=a.useState(e.state),[s,l]=(u=i,fn?fn(u):[u,mn]);var u;let[d,p]=a.useState(),[f,m]=a.useState({isTransitioning:!1}),[h,g]=a.useState(),[v,y]=a.useState(),[b,w]=a.useState(),x=a.useRef(new Map),A=a.useCallback(((o,{deletedFetchers:i,newErrors:s,flushSync:u,viewTransitionOpts:d})=>{s&&n&&Object.values(s).forEach((e=>n(e,{location:o.location,params:o.matches[0]?.params??{},unstable_pattern:ee(o.matches)}))),o.fetchers.forEach(((e,t)=>{void 0!==e.data&&x.current.set(t,e.data)})),i.forEach((e=>x.current.delete(e))),pn(!1===u||null!=t,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let f=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(pn(null==d||f,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),d&&f){if(t&&u){t((()=>{v&&(h?.resolve(),v.skipTransition()),m({isTransitioning:!0,flushSync:!0,currentLocation:d.currentLocation,nextLocation:d.nextLocation})}));let n=e.window.document.startViewTransition((()=>{t((()=>c(o)))}));return n.finished.finally((()=>{t((()=>{g(void 0),y(void 0),p(void 0),m({isTransitioning:!1})}))})),void t((()=>y(n)))}v?(h?.resolve(),v.skipTransition(),w({state:o,currentLocation:d.currentLocation,nextLocation:d.nextLocation})):(p(o),m({isTransitioning:!0,flushSync:!1,currentLocation:d.currentLocation,nextLocation:d.nextLocation}))}else t&&u?t((()=>c(o))):!1===r?c(o):a.startTransition((()=>{!0===r&&l((e=>wn(e,o))),c(o)}))}),[e.window,t,v,h,r,l,n]);a.useLayoutEffect((()=>e.subscribe(A)),[e,A]);let O=s.initialized;a.useLayoutEffect((()=>{!O&&e.state.initialized&&A(e.state,{deletedFetchers:[],flushSync:!1,newErrors:null})}),[O,A,e.state]),a.useEffect((()=>{f.isTransitioning&&!f.flushSync&&g(new yn)}),[f]),a.useEffect((()=>{if(h&&d&&e.window){let t=d,n=h.promise,o=e.window.document.startViewTransition((async()=>{!1===r?c(t):a.startTransition((()=>{!0===r&&l((e=>wn(e,t))),c(t)})),await n}));o.finished.finally((()=>{g(void 0),y(void 0),p(void 0),m({isTransitioning:!1})})),y(o)}}),[d,h,e.window,r,l]),a.useEffect((()=>{h&&d&&s.location.key===d.location.key&&h.resolve()}),[h,v,s.location,d]),a.useEffect((()=>{!f.isTransitioning&&b&&(p(b.state),m({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),w(void 0))}),[f.isTransitioning,b]);let k=a.useMemo((()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})})),[e]),S=e.basename||"/",E=a.useMemo((()=>({router:e,navigator:k,static:!1,basename:S,onError:n})),[e,k,S,n]);return a.createElement(a.Fragment,null,a.createElement(jt.Provider,{value:E},a.createElement(Pt.Provider,{value:s},a.createElement(Ct.Provider,{value:x.current},a.createElement(_t.Provider,{value:f},a.createElement(Sn,{basename:S,location:s.location,navigationType:s.historyAction,navigator:k,unstable_useTransitions:r},a.createElement(xn,{routes:e.routes,future:e.future,state:s,isStatic:!1,onError:n})))))),null)}function wn(e,t){return{...e,navigation:"idle"!==t.navigation.state?t.navigation:e.navigation,revalidation:"idle"!==t.revalidation?t.revalidation:e.revalidation,actionData:"submitting"!==t.navigation.state?t.actionData:e.actionData,fetchers:t.fetchers}}var xn=a.memo(An);function An({routes:e,future:t,state:n,isStatic:r,onError:o}){return qt(e,void 0,{state:n,isStatic:r,onError:o,future:t})}function On({to:e,replace:t,state:n,relative:r}){p(Ht(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=a.useContext(It);f(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=a.useContext(Mt),{pathname:c}=zt(),s=Vt(),l=Y(e,W(i),c,"path"===r),u=JSON.stringify(l);return a.useEffect((()=>{s(JSON.parse(u),{replace:t,state:n,relative:r})}),[s,u,r,t,n]),null}function kn(e){p(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Sn({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,unstable_useTransitions:c}){p(!Ht(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=a.useMemo((()=>({basename:s,navigator:o,static:i,unstable_useTransitions:c,future:{}})),[s,o,i,c]);"string"==typeof n&&(n=v(n));let{pathname:u="/",search:d="",hash:m="",state:h=null,key:g="default",unstable_mask:y}=n,b=a.useMemo((()=>{let e=F(u,s);return null==e?null:{location:{pathname:e,search:d,hash:m,state:h,key:g,unstable_mask:y},navigationType:r}}),[s,u,d,m,h,g,r,y]);return f(null!=b,`<Router basename="${s}"> is not able to match the URL "${u}${d}${m}" because it does not start with the basename, so the <Router> won't render anything.`),null==b?null:a.createElement(It.Provider,{value:l},a.createElement(Rt.Provider,{children:t,value:b}))}function En({children:e,location:t}){return qt(jn(e),t)}a.Component;function jn(e,t=[]){let n=[];return a.Children.forEach(e,((e,r)=>{if(!a.isValidElement(e))return;let o=[...t,r];if(e.type===a.Fragment)return void n.push.apply(n,jn(e.props.children,o));p(e.type===kn,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),p(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=jn(e.props.children,o)),n.push(i)})),n}var Pn="get",Tn="application/x-www-form-urlencoded";function Dn(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function _n(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}var Cn=null;var Nn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function In(e){return null==e||Nn.has(e)?e:(f(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Tn}"`),null)}function Rn(e,t){let n,r,o,a,i;if(Dn(c=e)&&"form"===c.tagName.toLowerCase()){let i=e.getAttribute("action");r=i?F(i,t):null,n=e.getAttribute("method")||Pn,o=In(e.getAttribute("enctype"))||Tn,a=new FormData(e)}else if(function(e){return Dn(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Dn(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||i.getAttribute("action");if(r=c?F(c,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||Pn,o=In(e.getAttribute("formenctype"))||In(i.getAttribute("enctype"))||Tn,a=new FormData(i,e),!function(){if(null===Cn)try{new FormData(document.createElement("form"),0),Cn=!1}catch(e){Cn=!0}return Cn}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";a.append(`${e}x`,"0"),a.append(`${e}y`,"0")}else t&&a.append(t,r)}}else{if(Dn(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Pn,r=null,o=Tn,i=e}var c;return a&&"text/plain"===o&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis;var Mn={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},Ln=/[&><\u2028\u2029]/g;function Fn(e){return e.replace(Ln,(e=>Mn[e]))}function Hn(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function zn(e,t,n,r){let o="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:"/"===o.pathname?o.pathname=`_root.${r}`:t&&"/"===F(o.pathname,t)?o.pathname=`${G(t)}/_root.${r}`:o.pathname=`${G(o.pathname)}.${r}`,o}async function Bn(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}function Un(e){return null!=e&&"string"==typeof e.page}function Vn(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function Wn(e,t,n,r,o,a){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,c=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===a?t.filter(((e,t)=>i(e,t)||c(e,t))):"data"===a?t.filter(((t,a)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(i(t,a)||c(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function Yn(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o})).flat(1),[...new Set(r)];var r}function qn(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!Un(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let a=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(a)||(n.add(a),e.push({key:a,link:o})),e}),[])}function $n(e,t){return"lazy"===e.mode&&!0===t}function Gn(){let e=a.useContext(jt);return Hn(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Kn(){let e=a.useContext(Pt);return Hn(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Jn=a.createContext(void 0);function Qn(){let e=a.useContext(Jn);return Hn(e,"You must render this element inside a <HydratedRouter> element"),e}function Xn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Zn(e,t,n){if(n&&!or)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}Jn.displayName="FrameworkContext";function er({page:e,...t}){let n=Dt(),{router:r}=Gn(),o=a.useMemo((()=>E(r.routes,e,r.basename)),[r.routes,e,r.basename]);return o?n?a.createElement(nr,{page:e,matches:o,...t}):a.createElement(rr,{page:e,matches:o,...t}):null}function tr(e){let{manifest:t,routeModules:n}=Qn(),[r,o]=a.useState([]);return a.useEffect((()=>{let r=!1;return async function(e,t,n){return qn((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await Bn(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(Vn).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(e,t,n).then((e=>{r||o(e)})),()=>{r=!0}}),[e,t,n]),r}function nr({page:e,matches:t,...n}){let r=zt(),{future:o}=Qn(),{basename:i}=Gn(),c=a.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=zn(e,i,o.unstable_trailingSlashAwareDataRequests,"rsc"),a=!1,c=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?a=!0:c.push(e.route.id);return a&&c.length>0&&n.searchParams.set("_routes",c.join(",")),[n.pathname+n.search]}),[i,o.unstable_trailingSlashAwareDataRequests,e,r,t]);return a.createElement(a.Fragment,null,c.map((e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))))}function rr({page:e,matches:t,...n}){let r=zt(),{future:o,manifest:i,routeModules:c}=Qn(),{basename:s}=Gn(),{loaderData:l,matches:u}=Kn(),d=a.useMemo((()=>Wn(e,t,u,i,r,"data")),[e,t,u,i,r]),p=a.useMemo((()=>Wn(e,t,u,i,r,"assets")),[e,t,u,i,r]),f=a.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,a=!1;if(t.forEach((e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!d.some((t=>t.route.id===e.route.id))&&e.route.id in l&&c[e.route.id]?.shouldRevalidate||t.hasClientLoader?a=!0:n.add(e.route.id))})),0===n.size)return[];let u=zn(e,s,o.unstable_trailingSlashAwareDataRequests,"data");return a&&n.size>0&&u.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[u.pathname+u.search]}),[s,o.unstable_trailingSlashAwareDataRequests,l,r,i,d,t,e,c]),m=a.useMemo((()=>Yn(p,i)),[p,i]),h=tr(p);return a.createElement(a.Fragment,null,f.map((e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),m.map((e=>a.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),h.map((({key:e,link:t})=>a.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin}))))}var or=!1;function ar(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:o,routeDiscovery:i,ssr:c}=Qn(),{router:s,static:l,staticContext:u}=Gn(),{matches:d}=Kn(),p=Dt(),f=$n(i,c);o&&(o.didRenderScripts=!0);let m=Zn(d,null,r);a.useEffect((()=>{0}),[]);let h=a.useMemo((()=>{if(p)return null;let r=u?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",o=l?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${f?"":`import ${JSON.stringify(t.url)}`};\n${m.map(((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];Hn(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:a,clientLoaderModule:i,clientMiddlewareModule:c,hydrateFallbackModule:s,module:l}=o,u=[...a?[{module:a,varName:`${r}_clientAction`}]:[],...i?[{module:i,varName:`${r}_clientLoader`}]:[],...c?[{module:c,varName:`${r}_clientMiddleware`}]:[],...s?[{module:s,varName:`${r}_HydrateFallback`}]:[],{module:l,varName:`${r}_main`}];return 1===u.length?`import * as ${r} from ${JSON.stringify(l)};`:[u.map((e=>`import * as ${e.varName} from "${e.module}";`)).join("\n"),`const ${r} = {${u.map((e=>`...${e.varName}`)).join(",")}};`].join("\n")})).join("\n")}\n ${f?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},n){let r=new Set(n.state.matches.map((e=>e.route.id))),o=n.state.location.pathname.split("/").filter(Boolean),a=["/"];for(o.pop();o.length>0;)a.push(`/${o.join("/")}`),o.pop();a.forEach((e=>{let t=E(n.routes,e,n.basename);t&&t.forEach((e=>r.add(e.route.id)))}));let i=[...r].reduce(((e,n)=>Object.assign(e,{[n]:t.routes[n]})),{});return{...t,routes:i,sri:!!e||void 0}}(t,s),null,2)};`:""}\n window.__reactRouterRouteModules = {${m.map(((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`)).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return a.createElement(a.Fragment,null,a.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:void 0}),a.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:o},type:"module",async:!0}))}),[]),g=or||p?[]:(t.entry.imports.concat(Yn(m,t,{includeHydrateFallback:!0})),[...new Set(v)]);var v;let y="object"==typeof t.sri?t.sri:{};return pn(!p,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),or||p?null:a.createElement(a.Fragment,null,"object"==typeof t.sri?a.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:y})}}):null,f?null:a.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:y[t.url],suppressHydrationWarning:!0}),a.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:y[t.entry.module],suppressHydrationWarning:!0}),g.map((t=>a.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:y[t],suppressHydrationWarning:!0}))),h)}function ir(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}a.Component;function cr({error:e,isOutsideRemixApp:t}){console.error(e);let n,r=a.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(Z(e))return a.createElement(sr,{title:"Unhandled Thrown Response!"},a.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),r);if(e instanceof Error)0;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);new Error(t)}return a.createElement(sr,{title:"Application Error!",isOutsideRemixApp:t},a.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),a.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},n.stack),r)}function sr({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:o}=Qn();return o.root?.Layout&&!n?r:a.createElement("html",{lang:"en"},a.createElement("head",null,a.createElement("meta",{charSet:"utf-8"}),a.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),a.createElement("title",null,e)),a.createElement("body",null,a.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r,t?a.createElement(ar,null):null)))}var lr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{lr&&(window.__reactRouterVersion="7.14.1")}catch(e){}function ur(e,t){return ke({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:d({window:t?.window}),hydrationData:t?.hydrationData||dr(),routes:e,mapRouteProperties:hn,hydrationRouteProperties:gn,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function dr(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:pr(e.errors)}),e}function pr(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new X(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let o=new t(r.message);o.stack="",n[e]=o}catch(e){}}if(null==n[e]){let t=new Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}var fr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mr=a.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:o,replace:i,unstable_mask:c,state:s,target:l,to:u,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:m,...h},v){let{basename:y,navigator:b,unstable_useTransitions:w}=a.useContext(It),x="string"==typeof u&&fr.test(u),A=ne(u,y),O=function(e,{relative:t}={}){p(Ht(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=a.useContext(It),{hash:o,pathname:i,search:c}=Yt(e,{relative:t}),s=i;return"/"!==n&&(s="/"===i?n:$([n,i])),r.createHref({pathname:s,search:c,hash:o})}(u=A.to,{relative:r}),k=zt(),S=null;if(c){let e=Y(c,[],k.unstable_mask?k.unstable_mask.pathname:"/",!0);"/"!==y&&(e.pathname="/"===e.pathname?y:$([y,e.pathname])),S=b.createHref(e)}let[E,j,P]=function(e,t){let n=a.useContext(Jn),[r,o]=a.useState(!1),[i,c]=a.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:p}=t,f=a.useRef(null);a.useEffect((()=>{if("render"===e&&c(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{c(e.isIntersecting)}))}),{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}}),[e]),a.useEffect((()=>{if(r){let e=setTimeout((()=>{c(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let m=()=>{o(!0)},h=()=>{o(!1),c(!1)};return n?"intent"!==e?[i,f,{}]:[i,f,{onFocus:Xn(s,m),onBlur:Xn(l,h),onMouseEnter:Xn(u,m),onMouseLeave:Xn(d,h),onTouchStart:Xn(p,m)}]:[!1,f,{}]}(n,h),T=function(e,{target:t,replace:n,unstable_mask:r,state:o,preventScrollReset:i,relative:c,viewTransition:s,unstable_defaultShouldRevalidate:l,unstable_useTransitions:u}={}){let d=Vt(),p=zt(),f=Yt(e,{relative:c});return a.useCallback((m=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(m,t)){m.preventDefault();let t=void 0!==n?n:g(p)===g(f),h=()=>d(e,{replace:t,unstable_mask:r,state:o,preventScrollReset:i,relative:c,viewTransition:s,unstable_defaultShouldRevalidate:l});u?a.startTransition((()=>h())):h()}}),[p,d,f,n,r,o,t,e,i,c,s,l,u])}(u,{replace:i,unstable_mask:c,state:s,target:l,preventScrollReset:d,relative:r,viewTransition:f,unstable_defaultShouldRevalidate:m,unstable_useTransitions:w});let D=!(A.isExternal||o),_=a.createElement("a",{...h,...P,href:(D?S:void 0)||A.absoluteURL||O,onClick:D?function(t){e&&e(t),t.defaultPrevented||T(t)}:e,ref:ir(v,j),target:l,"data-discover":x||"render"!==t?void 0:"true"});return E&&!x?a.createElement(a.Fragment,null,_,a.createElement(er,{page:O})):_}));mr.displayName="Link",a.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:o,to:i,viewTransition:c,children:s,...l},u){let d=Yt(i,{relative:l.relative}),f=zt(),m=a.useContext(Pt),{navigator:h,basename:g}=a.useContext(It),v=null!=m&&function(e,{relative:t}={}){let n=a.useContext(_t);p(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=yr("useViewTransitionState"),o=Yt(e,{relative:t});if(!n.isTransitioning)return!1;let i=F(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=F(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=R(o.pathname,c)||null!=R(o.pathname,i)}(d)&&!0===c,y=h.encodeLocation?h.encodeLocation(d).pathname:d.pathname,b=f.pathname,w=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&g&&(w=F(w,g)||w);const x="/"!==y&&y.endsWith("/")?y.length-1:y.length;let A,O=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(x),k=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),S={isActive:O,isPending:k,isTransitioning:v},E=O?e:void 0;A="function"==typeof n?n(S):[n,O?"active":null,k?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let j="function"==typeof o?o(S):o;return a.createElement(mr,{...l,"aria-current":E,className:A,ref:u,style:j,to:i,viewTransition:c},"function"==typeof s?s(S):s)})).displayName="NavLink";var hr=a.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:c=Pn,action:s,onSubmit:l,relative:u,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:m,...h},v)=>{let{unstable_useTransitions:y}=a.useContext(It),b=Ar(),w=function(e,{relative:t}={}){let{basename:n}=a.useContext(It),r=a.useContext(Mt);p(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...Yt(e||".",{relative:t})},c=zt();if(null==e){i.search=c.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 n=e.toString();i.search=n?`?${n}`:""}}e&&"."!==e||!o.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(i.pathname="/"===i.pathname?n:$([n,i.pathname]));return g(i)}(s,{relative:u}),x="get"===c.toLowerCase()?"get":"post",A="string"==typeof s&&fr.test(s);return a.createElement("form",{ref:v,method:x,action:w,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute("formmethod")||c,p=()=>b(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:o,state:i,relative:u,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:m});y&&!1!==n?a.startTransition((()=>p())):p()},...h,"data-discover":A||"render"!==e?void 0:"true"})}));function gr({getKey:e,storageKey:t,...n}){let r=a.useContext(Jn),{basename:o}=a.useContext(It),i=zt(),c=on();!function({getKey:e,storageKey:t}={}){let{router:n}=yr("useScrollRestoration"),{restoreScrollPosition:r,preventScrollReset:o}=br("useScrollRestoration"),{basename:i}=a.useContext(It),c=zt(),s=on(),l=nn("useNavigation").navigation;a.useEffect((()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"})),[]),function(e,t){let{capture:n}=t||{};a.useEffect((()=>{let t=null!=n?{capture:n}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}}),[e,n])}(a.useCallback((()=>{if("idle"===l.state){let t=Sr(c,s,i,e);kr[t]=window.scrollY}try{sessionStorage.setItem(t||Or,JSON.stringify(kr))}catch(e){f(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration="auto"}),[l.state,e,i,c,s,t])),"undefined"!=typeof document&&(a.useLayoutEffect((()=>{try{let e=sessionStorage.getItem(t||Or);e&&(kr=JSON.parse(e))}catch(e){}}),[t]),a.useLayoutEffect((()=>{let t=n?.enableScrollRestoration(kr,(()=>window.scrollY),e?(t,n)=>Sr(t,n,i,e):void 0);return()=>t&&t()}),[n,i,e]),a.useLayoutEffect((()=>{if(!1!==r)if("number"!=typeof r){try{if(c.hash){let e=document.getElementById(decodeURIComponent(c.hash.slice(1)));if(e)return void e.scrollIntoView()}}catch{f(!1,`"${c.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}!0!==o&&window.scrollTo(0,0)}else window.scrollTo(0,r)}),[c,r,o]))}({getKey:e,storageKey:t});let s=a.useMemo((()=>{if(!r||!e)return null;let t=Sr(i,c,o,e);return t!==i.key?t:null}),[]);if(!r||r.isSpaMode)return null;let l=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},"")}try{let n=JSON.parse(sessionStorage.getItem(e)||"{}")[t||window.history.state.key];"number"==typeof n&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return a.createElement("script",{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${l})(${Fn(JSON.stringify(t||Or))}, ${Fn(JSON.stringify(s))})`}})}function vr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function yr(e){let t=a.useContext(jt);return p(t,vr(e)),t}function br(e){let t=a.useContext(Pt);return p(t,vr(e)),t}function wr(e){f("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=a.useRef(_n(e)),n=a.useRef(!1),r=zt(),o=a.useMemo((()=>function(e,t){let n=_n(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),i=Vt(),c=a.useCallback(((e,t)=>{const r=_n("function"==typeof e?e(new URLSearchParams(o)):e);n.current=!0,i("?"+r,t)}),[i,o]);return[o,c]}hr.displayName="Form",gr.displayName="ScrollRestoration";var xr=0;function Ar(){let{router:e}=yr("useSubmit"),{basename:t}=a.useContext(It),n=rn("useRouteId"),r=e.fetch,o=e.navigate;return a.useCallback((async(e,a={})=>{let{action:i,method:c,encType:s,formData:l,body:u}=Rn(e,t);if(!1===a.navigate){let e=a.fetcherKey||`__${String(++xr)}__`;await r(e,n,a.action||i,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||c,formEncType:a.encType||s,flushSync:a.flushSync})}else await o(a.action||i,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||c,formEncType:a.encType||s,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})}),[r,o,t,n])}var Or="react-router-scroll-positions",kr={};function Sr(e,t,n,r){let o=null;return r&&(o=r("/"!==n?{...e,pathname:F(e.pathname,n)||e.pathname}:e,t)),null==o&&(o=e.key),o}},52600(e,t,n){"use strict";n.d(t,{pg:()=>i});var r=n(50766),o=n(4883),a=n(81845);function i(e){return o.createElement(r.pg,{flushSync:a.flushSync,...e})}(0,r.q6)()},72367(e,t,n){"use strict";n.d(t,{B1:()=>r});function r(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}Math.min,Math.max;const o=["top","right","bottom","left"];o.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[])},9725(e,t,n){"use strict";n.d(t,{ll:()=>w});n(72367);function r(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function o(e){if(null==e)return window;if(!r(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function a(e){return o(e).getComputedStyle(e)}function i(e){return r(e)?"":e?(e.nodeName||"").toLowerCase():""}function c(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function s(e){return e instanceof o(e).HTMLElement}function l(e){return e instanceof o(e).Element}function u(e){return"undefined"!=typeof ShadowRoot&&(e instanceof o(e).ShadowRoot||e instanceof ShadowRoot)}function d(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=a(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function p(){return!/^((?!chrome|android).)*safari/i.test(c())}function f(e){return["html","body","#document"].includes(i(e))}Math.min,Math.max;const m=Math.round;function h(e,t,n){var r,a,i,c;void 0===t&&(t=!1),void 0===n&&(n=!1);const u=e.getBoundingClientRect();let d=1,f=1;t&&s(e)&&(d=e.offsetWidth>0&&m(u.width)/e.offsetWidth||1,f=e.offsetHeight>0&&m(u.height)/e.offsetHeight||1);const h=l(e)?o(e):window,g=!p()&&n,v=(u.left+(g&&null!=(r=null==(a=h.visualViewport)?void 0:a.offsetLeft)?r:0))/d,y=(u.top+(g&&null!=(i=null==(c=h.visualViewport)?void 0:c.offsetTop)?i:0))/f,b=u.width/d,w=u.height/f;return{width:b,height:w,top:y,right:v+b,bottom:y+w,left:v,x:v,y}}function g(e){return(t=e,(t instanceof o(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function v(e){if("html"===i(e))return e;const t=e.assignedSlot||e.parentNode||(u(e)?e.host:null)||g(e);return u(t)?t.host:t}function y(e){const t=v(e);return f(t)?e.ownerDocument.body:s(t)&&d(t)?t:y(t)}function b(e,t){var n;void 0===t&&(t=[]);const r=y(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),i=o(r),c=a?[i].concat(i.visualViewport||[],d(r)?r:[]):r,s=t.concat(c);return a?s:s.concat(b(c))}function w(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=!0,animationFrame:c=!1}=r,s=o&&!c,u=s||a?[...l(e)?b(e):e.contextElement?b(e.contextElement):[],...b(t)]:[];u.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));let d,p=null;if(i){let r=!0;p=new ResizeObserver((()=>{r||n(),r=!1})),l(e)&&!c&&p.observe(e),l(e)||!e.contextElement||c||p.observe(e.contextElement),p.observe(t)}let f=c?h(e):null;return c&&function t(){const r=h(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{s&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==(e=p)||e.disconnect(),p=null,c&&cancelAnimationFrame(d)}}},21396(e,t,n){"use strict";n.d(t,{LU:()=>s,MS:()=>r,Sv:()=>u,XZ:()=>c,YK:()=>i,j:()=>a,vd:()=>o,yE:()=>l});var r="-ms-",o="-moz-",a="-webkit-",i="comm",c="rule",s="decl",l="@import",u="@keyframes"},53473(e,t,n){"use strict";n.d(t,{MY:()=>a,r1:()=>o});var r=n(18061);function o(e){var t=(0,r.FK)(e);return function(n,r,o,a){for(var i="",c=0;c<t;c++)i+=e[c](n,r,o,a)||"";return i}}function a(e){return function(t){t.root||(t=t.return)&&e(t)}}},71458(e,t,n){"use strict";n.d(t,{wE:()=>i});var r=n(21396),o=n(18061),a=n(19552);function i(e){return(0,a.VF)(c("",null,null,null,[""],e=(0,a.c4)(e),0,[0],e))}function c(e,t,n,r,i,d,p,f,m){for(var h=0,g=0,v=p,y=0,b=0,w=0,x=1,A=1,O=1,k=0,S="",E=i,j=d,P=r,T=S;A;)switch(w=k,k=(0,a.K2)()){case 40:if(108!=w&&58==(0,o.wN)(T,v-1)){-1!=(0,o.K5)(T+=(0,o.HC)((0,a.Tb)(k),"&","&\f"),"&\f")&&(O=-1);break}case 34:case 39:case 91:T+=(0,a.Tb)(k);break;case 9:case 10:case 13:case 32:T+=(0,a.mw)(w);break;case 92:T+=(0,a.Nc)((0,a.OW)()-1,7);continue;case 47:switch((0,a.se)()){case 42:case 47:(0,o.BC)(l((0,a.nf)((0,a.K2)(),(0,a.OW)()),t,n),m);break;default:T+="/"}break;case 123*x:f[h++]=(0,o.b2)(T)*O;case 125*x:case 59:case 0:switch(k){case 0:case 125:A=0;case 59+g:b>0&&(0,o.b2)(T)-v&&(0,o.BC)(b>32?u(T+";",r,n,v-1):u((0,o.HC)(T," ","")+";",r,n,v-2),m);break;case 59:T+=";";default:if((0,o.BC)(P=s(T,t,n,h,g,i,f,S,E=[],j=[],v),d),123===k)if(0===g)c(T,t,P,P,E,d,v,f,j);else switch(99===y&&110===(0,o.wN)(T,3)?100:y){case 100:case 109:case 115:c(e,P,P,r&&(0,o.BC)(s(e,P,P,0,0,i,f,S,i,E=[],v),j),i,j,v,f,r?E:j);break;default:c(T,P,P,P,[""],j,0,f,j)}}h=g=b=0,x=O=1,S=T="",v=p;break;case 58:v=1+(0,o.b2)(T),b=w;default:if(x<1)if(123==k)--x;else if(125==k&&0==x++&&125==(0,a.YL)())continue;switch(T+=(0,o.HT)(k),k*x){case 38:O=g>0?1:(T+="\f",-1);break;case 44:f[h++]=((0,o.b2)(T)-1)*O,O=1;break;case 64:45===(0,a.se)()&&(T+=(0,a.Tb)((0,a.K2)())),y=(0,a.se)(),g=v=(0,o.b2)(S=T+=(0,a.Cv)((0,a.OW)())),k++;break;case 45:45===w&&2==(0,o.b2)(T)&&(x=0)}}return d}function s(e,t,n,i,c,s,l,u,d,p,f){for(var m=c-1,h=0===c?s:[""],g=(0,o.FK)(h),v=0,y=0,b=0;v<i;++v)for(var w=0,x=(0,o.c1)(e,m+1,m=(0,o.tn)(y=l[v])),A=e;w<g;++w)(A=(0,o.Bq)(y>0?h[w]+" "+x:(0,o.HC)(x,/&\f/g,h[w])))&&(d[b++]=A);return(0,a.rH)(e,t,n,0===c?r.XZ:u,d,p,f)}function l(e,t,n){return(0,a.rH)(e,t,n,r.YK,(0,o.HT)((0,a.Tp)()),(0,o.c1)(e,2,-2),0)}function u(e,t,n,i){return(0,a.rH)(e,t,n,r.LU,(0,o.c1)(e,0,i),(0,o.c1)(e,i+1,-1),i)}},3485(e,t,n){"use strict";n.d(t,{A:()=>i,l:()=>a});var r=n(21396),o=n(18061);function a(e,t){for(var n="",r=(0,o.FK)(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function i(e,t,n,i){switch(e.type){case r.yE:case r.LU:return e.return=e.return||e.value;case r.YK:return"";case r.Sv:return e.return=e.value+"{"+a(e.children,i)+"}";case r.XZ:e.value=e.props.join(",")}return(0,o.b2)(n=a(e.children,i))?e.return=e.value+"{"+n+"}":""}},19552(e,t,n){"use strict";n.d(t,{C:()=>d,Cv:()=>E,G1:()=>c,K2:()=>m,Nc:()=>O,OW:()=>g,Sh:()=>y,Tb:()=>x,Tp:()=>p,VF:()=>w,YL:()=>f,c4:()=>b,di:()=>v,mw:()=>A,nf:()=>S,rH:()=>u,se:()=>h});var r=n(18061),o=1,a=1,i=0,c=0,s=0,l="";function u(e,t,n,r,i,c,s){return{value:e,root:t,parent:n,type:r,props:i,children:c,line:o,column:a,length:s,return:""}}function d(e,t){return(0,r.kp)(u("",null,null,"",null,null,0),e,{length:-e.length},t)}function p(){return s}function f(){return s=c>0?(0,r.wN)(l,--c):0,a--,10===s&&(a=1,o--),s}function m(){return s=c<i?(0,r.wN)(l,c++):0,a++,10===s&&(a=1,o++),s}function h(){return(0,r.wN)(l,c)}function g(){return c}function v(e,t){return(0,r.c1)(l,e,t)}function y(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function b(e){return o=a=1,i=(0,r.b2)(l=e),c=0,[]}function w(e){return l="",e}function x(e){return(0,r.Bq)(v(c-1,k(91===e?e+2:40===e?e+1:e)))}function A(e){for(;(s=h())&&s<33;)m();return y(e)>2||y(s)>3?"":" "}function O(e,t){for(;--t&&m()&&!(s<48||s>102||s>57&&s<65||s>70&&s<97););return v(e,g()+(t<6&&32==h()&&32==m()))}function k(e){for(;m();)switch(s){case e:return c;case 34:case 39:34!==e&&39!==e&&k(s);break;case 40:41===e&&k(e);break;case 92:m()}return c}function S(e,t){for(;m()&&e+s!==57&&(e+s!==84||47!==h()););return"/*"+v(t,c-1)+"*"+(0,r.HT)(47===e?e:m())}function E(e){for(;!y(h());)m();return v(e,c)}},18061(e,t,n){"use strict";n.d(t,{BC:()=>h,Bq:()=>c,FK:()=>m,HC:()=>l,HT:()=>o,K5:()=>u,YW:()=>s,b2:()=>f,c1:()=>p,kg:()=>g,kp:()=>a,tW:()=>i,tn:()=>r,wN:()=>d});var r=Math.abs,o=String.fromCharCode,a=Object.assign;function i(e,t){return 45^d(e,0)?(((t<<2^d(e,0))<<2^d(e,1))<<2^d(e,2))<<2^d(e,3):0}function c(e){return e.trim()}function s(e,t){return(e=t.exec(e))?e[0]:e}function l(e,t,n){return e.replace(t,n)}function u(e,t){return e.indexOf(t)}function d(e,t){return 0|e.charCodeAt(t)}function p(e,t,n){return e.slice(t,n)}function f(e){return e.length}function m(e){return e.length}function h(e,t){return t.push(e),e}function g(e,t){return e.map(t).join("")}},92149(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(4883),o=n(81845),a=n(2418);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}const c=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class s extends r.Component{constructor(...e){super(...e),this._targetNode=r.createRef(),this._elementNode=r.createRef(),this._elementParentNode=null,this._tetherInstance=null}componentDidMount(){this._createContainer(),this.forceUpdate()}componentDidUpdate(e){if(e.renderElementTag===this.props.renderElementTag&&e.renderElementTo===this.props.renderElementTo||this._createContainer(),this._elementParentNode&&e.className!==this.props.className){const t=(e.className||"").split(" ").filter((e=>e.length>0)),n=(this.props.className||"").split(" ").filter((e=>e.length>0));this._elementParentNode.classList.remove(...t),this._elementParentNode.classList.add(...n)}this._update()}componentWillUnmount(){this._destroy()}getTetherInstance(){return this._tetherInstance}disable(){var e;null==(e=this._tetherInstance)||e.disable()}enable(){var e;null==(e=this._tetherInstance)||e.enable()}on(e,t,n){this._tetherInstance.on(e,t,n)}once(e,t,n){this._tetherInstance.once(e,t,n)}off(e,t){this._tetherInstance.off(e,t)}position(){var e;null==(e=this._tetherInstance)||e.position()}_runRenders(){let e="function"==typeof this.props.renderTarget?this.props.renderTarget(this._targetNode):null,t="function"==typeof this.props.renderElement?this.props.renderElement(this._elementNode):null;return(0,r.isValidElement)(e)||(e=null),(0,r.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new a(e),this._registerEventListeners()}_destroyTetherInstance(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}_registerEventListeners(){this.on("update",((...e)=>this.props.onUpdate&&this.props.onUpdate.apply(this,e))),this.on("repositioned",((...e)=>this.props.onRepositioned&&this.props.onRepositioned.apply(this,e)))}get _renderNode(){const{renderElementTo:e}=this.props;return"string"==typeof e?document.querySelector(e):e||document.body}_destroy(){this._destroyTetherInstance(),this._removeContainer()}_createContainer(){this._removeContainer();const{renderElementTag:e="div",className:t}=this.props;this._elementParentNode=document.createElement(e),this._elementParentNode.className=t||""}_addContainerToDOM(){this._elementParentNode&&this._renderNode&&this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.append(this._elementParentNode)}_removeContainer(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.remove()}_update(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}_updateTether(){var e;const t=this.props,{id:n,style:r}=t,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(t,c),a=i({target:this._targetNode.current,element:this._elementParentNode},o),s=n||"";if(this._elementParentNode&&this._elementParentNode.id!==s&&(this._elementParentNode.id=s),this._elementParentNode&&r){const e=this._elementParentNode.style;for(const t in r)if(e[t]!==r[t]){let n=r[t];n&&(e[t]=n)}}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(a):this._createTetherInstance(a),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?r.createElement(r.Fragment,null,e,t&&this._elementParentNode&&o.createPortal(t,this._elementParentNode)):null}}},27346(e,t,n){"use strict";function r(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}n.d(t,{P:()=>o,Y:()=>a});var o=r(),a=r},14644(e,t,n){"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{HY:()=>l,Qd:()=>c,Tw:()=>f,Zz:()=>p,ve:()=>m,y$:()=>s,zH:()=>d});var o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),a=()=>Math.random().toString(36).substring(7).split("").join("."),i={INIT:`@@redux/INIT${a()}`,REPLACE:`@@redux/REPLACE${a()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${a()}`};function c(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function s(e,t,n){if("function"!=typeof e)throw new Error(r(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(r(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(r(1));return n(s)(e,t)}let a=e,l=t,u=new Map,d=u,p=0,f=!1;function m(){d===u&&(d=new Map,u.forEach(((e,t)=>{d.set(t,e)})))}function h(){if(f)throw new Error(r(3));return l}function g(e){if("function"!=typeof e)throw new Error(r(4));if(f)throw new Error(r(5));let t=!0;m();const n=p++;return d.set(n,e),function(){if(t){if(f)throw new Error(r(6));t=!1,m(),d.delete(n),u=null}}}function v(e){if(!c(e))throw new Error(r(7));if(void 0===e.type)throw new Error(r(8));if("string"!=typeof e.type)throw new Error(r(17));if(f)throw new Error(r(9));try{f=!0,l=a(l,e)}finally{f=!1}return(u=d).forEach((e=>{e()})),e}v({type:i.INIT});return{dispatch:v,subscribe:g,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));a=e,v({type:i.REPLACE})},[o]:function(){const e=g;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(h())}n();return{unsubscribe:e(n)}},[o](){return this}}}}}function l(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}const o=Object.keys(n);let a;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:i.INIT}))throw new Error(r(12));if(void 0===n(void 0,{type:i.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(e){a=e}return function(e={},t){if(a)throw a;let i=!1;const c={};for(let a=0;a<o.length;a++){const s=o[a],l=n[s],u=e[s],d=l(u,t);if(void 0===d){t&&t.type;throw new Error(r(14))}c[s]=d,i=i||d!==u}return i=i||o.length!==Object.keys(e).length,i?c:e}}function u(e,t){return function(...n){return t(e.apply(this,n))}}function d(e,t){if("function"==typeof e)return u(e,t);if("object"!=typeof e||null===e)throw new Error(r(16));const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=u(o,t))}return n}function p(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function f(...e){return t=>(n,o)=>{const a=t(n,o);let i=()=>{throw new Error(r(15))};const c={getState:a.getState,dispatch:(e,...t)=>i(e,...t)},s=e.map((e=>e(c)));return i=p(...s)(a.dispatch),{...a,dispatch:i}}}function m(e){return c(e)&&"type"in e&&"string"==typeof e.type}}},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=i,s.amdD=function(){throw new Error("define cannot be used indirect")},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);s.r(o);var a={};n=n||[null,r({}),r([]),r(r)];for(var i=2&t&&e;("object"==typeof i||"function"==typeof i)&&!~n.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,s.d(o,a),o},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,n)=>(s.f[n](e,t),t)),[])),s.u=e=>"chunk-"+({4672:"phone-formatter",36916:"vendor-icons",49222:"vendor-libphonenumber-js",54236:"actions",54310:"vendor-fontawesome",61556:"docs-actions",71262:"html-editor",83722:"code-editor"}[e]||e)+"."+{311:"55b709a1e67d30741e96",662:"0709b28425abca2159be",850:"fc9b4e2f1f0020dc680a",996:"21a842210fa3c8385856",1207:"eb29c85fefa59b81ee29",1216:"6acaae98c11fc5093b1c",1221:"9ed57a05f59fb0852f8d",1234:"b772b800007fe0af5ca0",1325:"bbf245813bc3167f8e28",1361:"c72713c80a4d951a3536",1496:"e29046cbbe103a33b971",1655:"57f39649ad023fe0a44d",1702:"6a2e20365a9fe58c9408",1766:"3266b3e54db03e176fd5",2045:"d2e6608a066a0e1a8075",2070:"3c2b089a2893beb5cf51",2451:"3466483b840640f19706",2540:"26a95001fce688f4df0a",2586:"aab9805dfd4411d66a75",2682:"fbce207866337b7948c6",3082:"1e22f1f7069c73263cca",3459:"62de1f29b122c6070a0c",4139:"86ea494a01052de0a906",4490:"4aa480502a55b02d2792",4672:"df409b6ab91acadfb10f",5243:"79991c7b9691fcd34056",5318:"50ce2dedab26b3e546b1",5438:"075f4fcfe1218743620f",5575:"0c64f6946a4fa6bbdfcc",5817:"3634825f807251ab5b20",6041:"0e58d9c8c41755f867d5",6147:"1f7ce063c1946f2f1359",6396:"9f55f8d7e81293cfd96a",6644:"beeb0a46b19d88c16d38",6893:"d1b655a118b8d35f16c9",7313:"0e9a157fd98f73fbb077",7625:"97c0b0e226ea9ffdb330",7668:"de0a4d13f9c57aa4363d",7743:"6a3b2b01e444368af9e2",7802:"e868ffe14749aedeb427",7989:"7d67b889e58f85f2fbf6",8171:"eef1e28193232f867458",8504:"71d1263e1e332cc8b63f",8676:"22c3b6e2ce770a269eeb",8818:"f48798d6db7389a4b62f",8992:"c75371a8810e05de1160",9017:"443c3b54409f19ee7c1b",9561:"482cce5d4fc3dbfe4ac2",9603:"43097da4b936011acc15",9753:"2104911286eef06de727",10012:"c8ab2dee83486b2444c8",10472:"3facaa10badfa19af71a",10499:"cd327bb45eefa3229969",10655:"a1310d1c80d1a95e1320",10910:"f9a73d6b14e4fece4326",11211:"2aeb59e8e88d31fdd075",11239:"3a5cd677cf29f3546ee4",11281:"d0881fa4e1202a4dbb76",11788:"51e32ea30eb321b03e6f",11842:"9004a43dcef6d7760dd2",12987:"e00735b41ae6ff2c87fc",13081:"6e3a716365ee7d39dd63",13093:"3b4932fbe1e946badeb8",13124:"764ef1f63f450a6e264e",13452:"f31354ce62affe8aa010",13622:"5769fcec499ffa3f8767",14291:"6b35b1445b08f16e746a",14527:"14552f16863cd535b9f3",14663:"97d3fa97b5fbc43dcb6b",14879:"fc754cc445fe49ec62d1",14973:"f5bd4d6821369ddb9902",15028:"12e19959715ac40d672a",15197:"deff53df5228fa2c24f0",15692:"2220e995fc039eb05eae",15802:"fd306bc350d0626d0473",15898:"1158c67247e4c8ab4f3c",16334:"fafa6ea6d3569a75d135",17e3:"c3fd2a7dc35291a84ae9",17076:"0f19a6b0d9cc8dc8ab61",17247:"db0ba89198c83764a522",17380:"9dc5fc5b4589a4c4c03d",18334:"b7ee0200ec27b95f0b60",18410:"bef573967f30cde14a27",18849:"f2472681cf4af859b992",19217:"1515dc5b023136b25cdd",19249:"90baded3ae36d9b7566a",19557:"2e0873273209dff402bc",19588:"3ad1468e8a3e9a8f7722",19786:"368da19980cfa756d67a",19956:"988e55513ade05075610",20009:"af75e80faa07fc7eab99",20047:"f7bee1ddda299d8667fe",20132:"5088bc17a351b35a9862",20360:"7fcaeef80d1db5956b22",20454:"fb27365591cf9a2129d6",20592:"f48bc52100574af18a16",20659:"e66eb1b6623329a2937c",21137:"4602565b0c56494683f3",21323:"2bfeee6325ccfa03bb82",21843:"e5f6f1902f9b094a6619",21901:"81698b2cc38d201c0a63",22030:"c6259dbf37721bbfbfd5",22584:"5d6cda172bda5322815d",22981:"7761a1310b113edb4605",23097:"ba847b56813726f79436",23257:"0b2c46625f3638e898cd",23407:"40a4f4ec8fc984c71455",24364:"c41187836437ff058e55",24499:"fe03519b5d9fbfd60fc3",24522:"584f31a073235fdd2e0a",24854:"a7fd3dfb0f0a153d69ef",25181:"4ade960a842ef4c100bb",25395:"12cec45009b444dc3631",25637:"be4ad6dabc51b1ac5b80",26051:"fd430c23c4ccf734e86b",26332:"86e899c360ce4305357b",26335:"4eef2a31a3376dc2a85f",26605:"7e65ff9ef2a2c0211495",26820:"fa58e092ebbee3d55be0",27211:"d3852ecf430737750021",28507:"609fae44f43cf8862780",28586:"1bcd120f8525d25beb3e",28734:"07684bf6b67a236ceaf0",28797:"5b5e2fa1d44428c8c827",29067:"2dfe443f7cc993f34941",29072:"a2ebb414065469553a79",29369:"8dafde99b5944fc2cf6f",29435:"660e92f79d1185e49133",29694:"18517adbc05c4642da34",29755:"7df6f8f9b7a96d4fcd5a",29861:"5f7679f4315fa3e2d0a3",29954:"79b1ae00af45e95a3c56",30470:"ac573086b4e17c955dc6",30486:"fd84837c0e602a7eaa62",30766:"217730baee42aed1b545",30897:"009ffa5de2ca2ddab31e",31001:"fc24be602d994b07bfe1",31131:"e00f6c558e7b634c6972",31255:"284d61fabe5b5e7e997f",31570:"38f44180ef39cc4bac78",31600:"102146e75a946ca0a528",31723:"3f9ca9f3db3e6aa55583",31835:"e7e6a10db3de690c40a5",32499:"755932b2aaa6c227b76c",32521:"284f3f58bed5891af7fe",32725:"084212f69acc91cc9e18",33204:"13d21862e8e9b6a61468",33227:"030d94d5f267409e7c89",33366:"cc6a7ba0fae65f10aa9b",33537:"ff4135b6b6d23fc0f21a",33688:"fd0e5ba6a25bc67d9142",34048:"82f3726f04680935d376",34163:"ef7ed0f0b6674e832d34",34675:"f249568ce058bdbe8959",34678:"adc95a7cdb5fb956efbd",34817:"02642114674717ea5515",34869:"1ae6b287a301074bace8",34916:"6793f2214984cbe50727",35173:"c9359f23abcb3ffbb024",36032:"a5a363c8f71950fc4255",36086:"181d5b1e040e11b819d1",36627:"599f51539711b56f98c0",36763:"96837ddc65e2150cb2da",36788:"0e7ffd3b0e524b3f1075",36916:"054e70b96c2e5c470388",37210:"f6278c0aadb80890fe5d",37551:"0a69c03c600be01a7959",37633:"50544d3151542cb1b0dc",37856:"9a37ed9989f007cb84f1",37887:"34bc6b68c4dfe77b7237",38223:"ae11e5ff036c4c7b6fe4",38297:"eedaae81cd83ca49ec70",38470:"6e4e7753c03332f46087",38506:"71f0b92fc5f9ab206a47",38749:"171a3deb73bfdbaf4a33",38848:"c103126300e5bd237e25",38909:"7bcd37f04776fd5618cc",38918:"588e8d295b84f0a9437c",39417:"5614744c5f77330f4adc",39669:"51e01abfaef96032f7ea",39797:"47480790e6c8b09c46bb",40426:"7a03b4113873e223f4fa",40975:"cb22d228c324ead003ec",41056:"b28cd9e48be188ca6e6f",41170:"9b6ca720904d7680825b",41293:"8b93fd134ecda415a88c",42049:"733b330d55d34c4be581",42206:"061386d61650c8dcc5f4",42482:"f2ce98cfbe1b7f4fd67c",43158:"60eb6fd2a03c92db6c32",43317:"ca9f4ceac867435d379d",43425:"b31052de5d55876efb17",43500:"c6835f9be8555cc4c110",43636:"2927cb3b50eef450cdf2",44286:"9971617eae952dd74262",44330:"41139c74898d549bc71f",44417:"9d80d6493d40b0348be4",44586:"d285afc00848c9d0cf72",44753:"f4531ccc8e9079e1e54f",44788:"1df2acb3c0abb6e02b23",45010:"88fdd69223a2ff04aaab",45011:"0f3ee20446072ae7e84d",45029:"450cac71e9af8a391422",45202:"648abbbcd149fea5425a",45209:"467b29b9742795038062",45587:"e178f27893c9c32ef621",45631:"5d3e1fca835a90f17786",45734:"95098f8933b7dd643805",45814:"2d182bf2ed9ecca4424e",46116:"c3b234cfd3764c5ac7ca",46167:"eaad51979a15258126c9",46503:"397619af3e2499a3d061",46623:"0192d63261a9431dbcaa",46811:"067bf557370878bb5bb0",47026:"6dd4d3cf79cf019e4c9f",47075:"f2effe325cfc11d32333",47145:"080c753a83b83ba91b76",47173:"de64cdd0bf6917c26572",47281:"bc445615da8446239d1a",47387:"60acb4daa69ee6b6040e",47507:"1cf8b3a1340f4cb79f05",47694:"aead390ef2eef6dee573",47968:"c844e5296f783731287e",48077:"4aadda7f9e96a7e1e9c1",48320:"b8eb8b426c820839dd9f",48331:"7196f1bdcc8a221a6d14",48575:"50c5014cb176eb6714e1",48640:"e534bf7a58811ef2c8bd",49159:"eadb61400091b1c10d77",49222:"eb517c355ffe999b8e56",49343:"d9b3aeec4ba3d1b53e43",49372:"b90c42134a7ac98b61ec",49392:"e7cdd975bf0c463dd969",49808:"842a1deb9090396c5e32",50117:"9502bee1ee2230863e3f",50152:"a1d1e59f249f83def93a",51004:"e367f86624bccf3f7e31",51057:"ef7d99460f087628da16",51150:"cef2267247ba07f6c739",51183:"e24c93b812697b07e44c",51199:"e47ddbe0a992b185f2da",51287:"0db49861e0d3a8c814d7",51289:"16c7f3c1b1e2d076a1d8",51678:"0bc483982c268f0f2855",51958:"2c1cd66da24b194d0b48",52602:"516ef2fae7c2fa4e5c1c",53103:"8e650d1a571786b92c48",53610:"f4b3433db4edb1bb91f0",53611:"2c084168e7aa91b6dfc7",53840:"1d2ee8133e222ba02eca",54176:"8e6d6d8f467d1ee6e048",54236:"a78547f45df3238e9a68",54310:"277a8ac23d29765828d5",54958:"09a59592c6c721cc88fd",55009:"d7a4afbc7fa2e8639c29",55113:"b8906c45edb18e43f4f6",55208:"2ab47fc88c473bf699b6",55263:"f4b1fecdc5bcc5ac49a9",55677:"b50f7084898db30be8ac",55980:"dec370469b3dea2b1ffa",56470:"464fda9e7efcdced81e1",56742:"4e5e77a2dc75c051685f",56746:"ff270605f206b3b00f68",57e3:"fe8c369e39d86f6341b2",57031:"d15c526cf7246d17cc8b",57108:"58b676f3b9386f789b67",57186:"b80511a71283c3a99c70",57217:"5b4b99f7374c05365f8d",57546:"c19fe57a0a9bf9433598",57592:"29b9ec31ca428490a84a",57936:"f6f1b366d3240f2556c1",58045:"13a2c2dce2cf09d0f540",58082:"f724c8229530ef962fa1",58135:"08f721ab5ff6038da1bf",58292:"4899c7d3fa047709ee47",58382:"6991743aa1efc1ae7585",58444:"33375a6f72b502837a0a",58457:"2ce0618b4c8f8ea579dd",58485:"85feae1a28c3d60356df",58972:"a0eb7f83be915f8c6b1c",59287:"705e6431fb2158aa45c7",59364:"52e28d5be9c1332d4cf7",59479:"088d030275ceca04a3a0",59517:"209c1d4e6c01b399d711",59544:"9a9c1e6d4c85890bb8cf",60240:"4c7e69531a623e34ea80",60395:"98dc972c273dba592c86",60526:"a49437bdea3e2be9930a",60824:"c95ebbaaf010932ad6ff",60871:"88a168d6759efb77fb1e",61060:"76e9eafe5c968a07bdae",61079:"a3ca7aeccd20c134fc8c",61305:"e96f62a8bfc1b37d46df",61507:"63c9a7157d7ef468a0b4",61532:"175ae393fb289a835ccd",61556:"cbc7b910295375acd69e",61594:"0382427712b4da544e89",61742:"69492c57097c7388ee14",61777:"6cfa01d168603d2e8b19",61866:"4ed73f64b7afcb2ad7e6",62115:"1b678f758663080a7b01",62308:"26dc495f0f463da3b0f9",62429:"59879690a27d5de8217e",62459:"80ad1792f9b61f1c915e",62575:"824beb8bf5cfa49e4401",62632:"986d0fe476f909c0e303",62797:"36551b552b6dc9eb3d94",63112:"bdb57914e8503d844bcd",63135:"92d35065523917c1ad99",63419:"88502bb23c0338114067",63471:"0e3f89f7c037ca05f16a",63489:"266aa9bfe25a60fe3ca2",63767:"2bb9b080be711df5cd0c",63780:"1f218c2f4ba4e7ff340d",64025:"3414e7a0b945937c7fa6",64108:"14ba11cb2e75baaa809b",64190:"072142050070bc273006",64309:"837ee3015640679acbb2",64420:"5d300e51b82dc0cae650",64442:"7abd6ed64f3d6c6d0f3c",64570:"ea6dec5dd759cf4aba44",64660:"cb8d588d30176bffd253",65111:"4d0dcda0383dac0d36e6",65408:"1a30bc2b9d7bd2e8dec9",65559:"4f3e54739cb32f771589",65896:"f35caf7ff8650f71e9a7",66181:"6a72393c9517628a0316",66448:"a2dfdbd24a3588f7489f",66565:"58c2a9e8e759b3e6542f",66656:"7485f3f4913bc3aab325",66796:"e584972fd68200f15a5d",66885:"5fcc126dd04266e2e46b",67015:"2fd58e657c09ec06111c",67278:"3937fef7a946d4b3857c",67705:"fb305cffbb0201ae2f18",67744:"917129ac82418dfa14cd",67772:"6e2a5492b50e16d96971",68389:"b0a81bcaab8e0ab2fdf1",68648:"626ab410de3b0107b50b",69073:"2b6d88ba6a1ac41f2f1e",69170:"50933dbc6144f3ccd543",69502:"cff776640344cdb44ade",69687:"9f6dff497a6ab6e68eca",69776:"08f6b63ed3cf7e02393c",69884:"9ee569bc61a675d05f36",69975:"e3110f5ccb37d9200092",70174:"5234cdf02209e0851692",70316:"46c6ddb94b2a0266aa94",70471:"2404ea8ce4e766412073",70997:"147b7a6a534a09d1ff10",71075:"2964b4b0918eb2c96de0",71262:"b14e478ffa420ad2f0c2",71496:"06a9e24517f63c64b71e",71657:"e24e92ec601c3a8f6123",72246:"74336b92b3c10275cf5b",72283:"5640ceafcb1a84995a2b",72376:"1c8fe4fca40bdb58f2c7",72456:"f76fad1aca8dfb886286",72496:"2e04213724432319d644",72823:"0986f95ef2f3e926bec0",72887:"a2459671464659787208",72969:"8a2a308c99be2a53b181",73031:"dd71a517f881edd9d8c3",73120:"d272e6a0bffc5172bc48",73226:"2c1a6e531e24ea283b88",73330:"5a50a05993eb767c309c",73477:"205f99959cb9d231d738",73781:"eb6e7bcf93bdaae3ec12",74142:"3d670f4bd292f133bade",74413:"4725684692958ea7f1e5",75042:"065ab5be0ba83abd6cc1",75263:"749dac4a120692ffebe3",76235:"cbb7286a14ba4594cd07",76254:"6caae5921e2441a90dcc",76283:"de1a40e4c57169aef5e5",76397:"e8abbebfc125f8e8b0bb",76667:"74ebd2430bdc43e3ecd4",77385:"7071cd8ad175d5cd7137",77406:"87c4c4bdcfd581493a2b",77623:"ec72054b4d92a21b234c",77968:"a866a0b7a1acec57f7db",78056:"5f8f7e52e7b980b7de3d",78155:"1c273c1e11e3765cb7f8",78720:"5d8ced9525aef536ad7f",79258:"79cb99624223df731c11",79289:"fd6fd52e0ecb5ef82165",79340:"b6b4bd6671aba4f948a1",79625:"cb4ca441c1c2430a6e5a",79685:"e1f9dcb8ff9a472013de",79699:"7e364fd1b5c7c7598078",79869:"40fdcb998f181de4d773",80008:"a83f75ebb8cab1c8d37f",80262:"9c066f08769142e86213",80270:"2df925ad04c68e688b9d",80335:"b7511e28be8ecb4a5cd5",80566:"0b1c7eec30627206617a",80569:"3a2b0d9efa9f60d4cc82",80638:"3a86c8fbeff1678e1fa7",80902:"fe4159bb61199644b734",81328:"6b7115a74a075f38c799",81450:"13af8a1248b7c49c14ca",81534:"5bef7ceeca3acb52d1be",81852:"fb62cfca74c8fae32a6a",82067:"0dcc81ddc8e5007b3de8",82327:"e1e1fc9b4f7a1467a823",82422:"c3695a3eb28f2b642fd0",82544:"0370ded20e71e1527b37",82555:"5fb9ac0ce96e3fa77996",82628:"ef51d7865ca6f23d00b4",82954:"061ac642a1ce20c7cc2c",83136:"d9121fe1542f2122e02e",83282:"cbc4633f587e1371b460",83369:"0dff41c8748325cea681",83722:"bd499550aa7dc300d9c5",84506:"65901c8d6e51b655ed26",84556:"1037288f434db19f6a5d",84567:"a5ea4e7f08bf4d4786a2",84625:"4d45878bc75d842f0ce5",85085:"1437fb70620c874f931b",85477:"b1c42a2c640fc2f2efa4",85481:"9bf28c4cde56ec1da335",85749:"e12a77f854f7d0742067",86006:"ea630e081ef1e382e68f",86187:"89510d8669a217799c2c",86275:"d6c5bc5e16e0f23cc4f3",86902:"ab0bf04a1e0383d5df49",86952:"0517e341b6e10ee776ce",87268:"a7087cd82cedd90f490c",87406:"debb0c44636d04b5eb39",87624:"64c6748e273bf56ee1d4",87632:"0af7995c6e40eb52dca5",87772:"c202df324d8c7a9f281a",87826:"8aa1ffea5e1e56adc349",87842:"bed34f3e7841458d6640",87874:"f12fa7bfa10ecc20982a",88408:"9a48313c98c21ae6d1d6",88533:"5eb1146629661065df32",88628:"12f5fc0c3aba791d9a2c",89179:"7d00f85436616020bda8",89426:"9a25ab594d74348e18c6",89476:"f67df3c69912937f1523",89609:"fa3ca64eb85db5886e02",89651:"bc4ac92adc26ff821031",89673:"151a1d4cab641fadfc63",89695:"a12db7f0fe08b4675472",90008:"84cc7ab91d9cfcfa4391",90316:"b24f7bec252cbafc332b",90616:"3e98884220668405e2c9",90667:"222b3dc2b62488187da8",90721:"3c9f3b41706ebac89371",90724:"7cb9cb9a20e61980c465",90731:"b19dfa49acdbda9e000d",90830:"a8afe84f076c4fe09682",90846:"7cbb8281928a160c83f1",91051:"f99873b3b51630f3a08f",91201:"52ea9aab1a5f7397dfdc",91316:"d71dbfaa509e1922fdf0",91344:"98a01a7b75c1e588f044",91841:"92b4c75fe767e610a016",91858:"11bc3a034c8b2a04f6a4",91951:"2b5529ef98c9dbefd8d8",92012:"a77b4948d3ea822a8af2",92174:"3e3739be35b37dfb3fbe",92361:"a3f0df65f0d112c837e5",92657:"65b03a51e48c472555a1",93102:"5065edb159d56ef9aac5",93171:"bb3a24a282c316bb3ae3",93236:"df4c86dec4767c440c40",93534:"eb21ab6c7f397035b32f",93537:"4e422fcf8100e596cb54",93985:"6b5b006c41701d71962a",94194:"874988358d90d2ada2ea",94224:"d780c752eab2bef8775c",94443:"3d38310af7bba4e9b7f7",94565:"042130afcf5cee5a91cf",95399:"571e5848a3b4f2e18aa8",95814:"1f7d4b0ec5fec6e00e2e",95883:"d2e26eb9c8852f1a2bd7",96145:"a6ee2cfdcf6528a8f9c6",96193:"79e4fe2851a1dc19c512",96199:"7f44df2209ad638b44bf",96332:"5398dbb27ce84121fb75",96679:"1d186d28cff27c3d9c06",96809:"cfa7a7a96385b2913bb8",96934:"55830f344105fcb8a760",97230:"25633af52236707de347",97359:"1e499768062f586a1f52",97665:"8fba68dda4752888ead1",97940:"0f24963a4ed77d85f2ee",98153:"af1fe2055e0ebaa9d030",98423:"72c9a2563b902325285c",98769:"18994fa02e00b158f525",98996:"95624092978a62b14e6c",99010:"04b4f165cf5dea59c237",99148:"7dab4be2c2769260ee22",99623:"4a7a4f9cfe1156da2363",99651:"e4f9a079d93032c29342"}[e]+".js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},a="tocco-widget-bundle:",s.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var i,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==a+n){i=d;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-webpack",a+n),i.src=e),o[e]=[t];var p=(t,n)=>{i.onerror=i.onload=null,clearTimeout(f);var r=o[e];if(delete o[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach((e=>e(n))),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.j=34623,s.p="/",(()=>{var e={34623:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=s.p+s.u(t),i=new Error;s.l(a,(n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,r[1](i)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,i,c]=n,l=0;if(a.some((t=>0!==e[t]))){for(r in i)s.o(i,r)&&(s.m[r]=i[r]);if(c)c(s)}for(t&&t(n);l<a.length;l++)o=a[l],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=this.webpackChunktocco_widget_bundle=this.webpackChunktocco_widget_bundle||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),s.nc=void 0;var l={};return(()=>{"use strict";s.r(l),s.d(l,{app:()=>ft});var e=s(61402),t=s(28391),n=s(80621),r=s(71468),o="wageView/CHECK_ROLE",a="wageView/SET_ALLOW_CREATE",i=function(e){return{type:a,payload:{allowCreate:e}}},c=s(4883),u=s.n(c),d=s(38401),p=s(64467),f=s(62193),m=s.n(f),h=s(2404),g=s.n(h),v=s(71086),y=s.n(v),b=s(5556),w=s.n(b),x=s(50766),A=s(52600),O=s(88951),k=s(13128),S=s(59042),E=s(96450),j=s(72942),P=s(78144),T=s(68500),D=s(32619),_=s(7311),C=s(66498),N=s(35301),I=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return C.A.getDispatchActions(e,R,t)},R=[{name:"entityName",action:N.Zl,mandatory:!0,argsFactory:function(e){return[e.entityName]}},{name:"entityName",action:N.uO,argsFactory:function(e){return[e.formBase||e.entityName]}},{name:"formBase",action:N.uO,argsFactory:function(e){return[e.formBase]}},{name:"scrollBehaviour",action:N.Zy,argsFactory:function(e){return[e.scrollBehaviour]}},{name:"id",action:N.RH,argsFactory:function(e){return[e.id||(new Date).valueOf()]}}],M=s(44467),L=s(54756),F=s.n(L),H=s(15003),z=s(29056),B=s(71635),U=(0,p.A)((0,p.A)({},B.Bt,z.A.singleTransferReducer("formTouched")),B.wr,z.A.singleTransferReducer("detailParams")),V={detailParams:void 0,formTouched:!1};var W=s(10076),Y=s(3453),q=s(28261),$=s(57327),G=s(27399);function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Q=function(e){var t={};return e.fields.forEach((function(e){t[e.fieldName]=J({},e)})),e.relations.forEach((function(e){t[e.relationName]=J({type:"relation"},e)})),t};function X(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Q;return F().mark((function n(){var r;return F().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,H.T1)($.A.requestSaga,"entities/".concat(e,"/model"));case 1:return r=n.sent,n.next=2,(0,H.T1)(t,r.body);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)}))()}var Z={CREATE:"create",UPDATE:"update"};const ee=function(e){return void 0===e?Z.CREATE:Z.UPDATE};var te=s(89394);const ne=function(e){var t=e.split("/").filter((function(e){return!!e})),n=t[t.length-1],r=t.filter((function(e,t){return t>1&&t%2==0})).map((function(e){return e.split(".")})).reduce((function(e,t){return[].concat((0,te.A)(e),(0,te.A)(t))}),[]);if(isNaN(n)){return{modelPaths:r,entityId:undefined,parentUrl:"/"+t.slice(0,-1).join("/")}}return{modelPaths:r,entityId:t[t.length-1],parentUrl:"/"+t.slice(0,-2).join("/")}};const re=function(e,t){return 0!==t.length||(!e||isNaN(e))};var oe=s(74848);function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ie=F().mark(de),ce=F().mark(pe),se=F().mark(he),le=function(e){return e.entityBrowser},ue=function(e){return e.input};function de(){return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,H.Q7)([(0,H.p8)(B.M4,fe),(0,H.p8)(B.z3,pe),(0,H.p8)(B.o7,ge)]);case 1:case"end":return e.stop()}}),ie)}function pe(){return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,H.yJ)(B.EJ(void 0));case 1:case"end":return e.stop()}}),ce)}function fe(e){var t=e.payload;return F().mark((function e(){var n,r,o,a,i,c,s,l,u,d,p,f,m,h,g,v;return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,H.T1)(ne,t.url);case 1:return n=e.sent,r=n.modelPaths,o=n.entityId,a=n.parentUrl,e.next=2,(0,H.Lt)(le);case 2:return i=e.sent,c=i.entityName,s=i.formBase,e.next=3,(0,H.T1)(ee,o);case 3:return l=e.sent,e.next=4,(0,H.T1)(me,c,r,s);case 4:return u=e.sent,d=(0,Y.A)(u,2),p=d[0],f=d[1],e.next=5,(0,H.Lt)(ue);case 5:return m=e.sent,h=m.initialKey,e.next=6,(0,H.T1)(re,h,r);case 6:return g=e.sent,v={mode:l,entityId:o,entityName:p,formName:f,parentUrl:a,showBackButton:g},e.next=7,(0,H.yJ)(B.EJ(v));case 7:case"end":return e.stop()}}),e)}))()}function me(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return F().mark((function o(){var a,i,c,s,l,u,d;return F().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(a=(0,W.A)(t),i=a[0],c=ae(a).slice(1),i){o.next=1;break}return o.abrupt("return",[e,r]);case 1:return o.next=2,(0,H.T1)(X,e);case 2:if(s=o.sent,l=s[i]){o.next=5;break}return o.next=3,(0,H.T1)($.A.fetchForm,"".concat(n,"_detail_").concat(i),"list");case 3:return u=o.sent,o.next=4,(0,H.T1)(me,u.modelName,c,"".concat(n,"_").concat(i));case 4:case 6:return o.abrupt("return",o.sent);case 5:return d="".concat(n,"_").concat(l.targetEntity),o.next=6,(0,H.T1)(me,l.targetEntity,c,n,d);case 7:case"end":return o.stop()}}),o)}))()}function he(e){var t;return F().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,H.T1)(q.Ix);case 1:return t=n.sent,n.next=2,(0,H.yJ)(j.A.modal("navigation-pending-changes","client.entity-browser.detail.confirmTouchedFormTitle",e,(function(e){var n=e.close;return(0,oe.jsx)(G.A,{onYes:function(){n(),t.put("yes")},onNo:function(){n(),t.put("no")}})}),!0,(function(){return t.put("no")})));case 2:return n.next=3,(0,H.s)(t);case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}}),se)}function ge(e){var t=e.payload;return F().mark((function e(){var n,r;return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.message,r=t.confirmCallback,e.next=1,(0,H.T1)(he,n);case 1:if("yes"!==e.sent){e.next=3;break}return e.next=2,(0,H.T1)(r,!0);case 2:e.next=4;break;case 3:return e.next=4,(0,H.T1)(r,!1);case 4:case"end":return e.stop()}}),e)}))()}var ve=F().mark(ye);function ye(){return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,H.Q7)([(0,H.Zy)(de)]);case 1:case"end":return e.stop()}}),ve)}const be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:V,t=arguments.length>1?arguments[1]:void 0,n=U[t.type];return n?n(e,t):e};function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ae=(0,p.A)((0,p.A)((0,p.A)((0,p.A)({},N.Rf,z.A.singleTransferReducer("entityName")),N.g0,(function(e,t){var n=t.payload.formBase;return n?xe(xe({},e),{},{formBase:n}):xe({},e)})),N.J6,z.A.singleTransferReducer("scrollBehaviour")),N.PH,z.A.singleTransferReducer("appId")),Oe={entityName:"",formBase:"",scrollBehaviour:"none",appId:""};var ke=F().mark(je),Se=F().mark(Pe),Ee=F().mark(Te);function je(){return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,H.Q7)([(0,H.T1)(Pe),(0,H.p8)(N.XA,Te)]);case 1:case"end":return e.stop()}}),ke)}function Pe(){return F().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,(0,H.s)(e.A.INPUT_INITIALIZED);case 1:return t.next=2,(0,H.yJ)(E.A.doSessionCheck());case 2:case"end":return t.stop()}}),Se)}function Te(){return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,H.yJ)(t.A.fireExternalEvent("onRouteChange"));case 1:case"end":return e.stop()}}),Ee)}var De=F().mark(_e);function _e(){return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,H.Q7)([(0,H.Zy)(je)]);case 1:case"end":return e.stop()}}),De)}const Ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oe,t=arguments.length>1?arguments[1]:void 0,n=Ae[t.type];return n?n(e,t):e},Ne={detail:be,form:M.A,entityBrowser:Ce};var Ie,Re,Me=[_e,ye];function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var He="entity-browser",ze=["onVisibilityStatusChange","onRouteChange"],Be=u().lazy((function(){return Promise.all([s.e(61866),s.e(86275),s.e(91051)]).then(s.bind(s,55341))})),Ue=function(){return Ie||(Ie=(0,oe.jsx)(c.Suspense,{fallback:"",children:(0,oe.jsx)(Be,{})}))},Ve=function(e){var t=e.initialKey,n=e.initialAction,r=(0,x.Zp)(),o=(0,x.zy)().pathname;(0,c.useEffect)((function(){if(t&&!isNaN(t)){if(!o.match(/\/detail\/[0-9]*/)){var e="/detail/".concat(t);r(e)}}if(n&&n.name){var a="/action/".concat(n.name,"?").concat(D.A.toQueryString(n.properties));r(a)}}),[])},We=function(e){var t=e.memoryRouter,n=e.initialKey,r=e.initialAction,o=(t?x.bg:x.Ge)([{path:"*",element:(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)(Ve,{initialKey:n,initialAction:r}),Re||(Re=(0,oe.jsx)(Ue,{}))]})}]);return(0,oe.jsx)(A.pg,{router:o})},Ye=function(r,o,a,i){o=Fe(Fe({},o),{},{id:r}),n.A.setInputEnvs(o);var c=e.A.createStore(Ne,Me,o,He);t.A.addToStore(c,(function(t){return e.A.getEvents(ze,t.input)})),O.A.addToStore(c),k.A.dynamicActionsAddToStore(c),S.A.addToStore(c,!0,["console","remote","notification"]),j.A.addToStore(c,!0),E.A.addToStore(c);var s=(0,oe.jsx)(We,{memoryRouter:o.memoryHistory,initialKey:o.initialKey,initialAction:o.initialAction});return e.A.createApp(He,s,c,{input:o,actions:I(o),publicPath:i,textResourceModules:["component","common","actions","entity-list","entity-detail"]})},qe=function(t){var n=e.A.useApp({initApp:Ye,props:t,packageName:He}),r=n.component,o=n.store,a=_.A.usePrevious(t);return _.A.useDidUpdate((function(){var e=y()(t,(function(e,t){return!g()(e,a[t])}));m()(e)||I(e,!1).forEach((function(e){o.dispatch(e)}))}),[t]),(0,oe.jsx)(oe.Fragment,{children:r})};qe.propTypes=Fe({entityName:w().string.isRequired,searchFormType:P.X,formBase:w().string,limit:w().oneOfType([w().number,w().string]),preselectedSearchFields:w().array,searchFilters:w().arrayOf(w().string),simpleSearchFields:w().string,initialKey:w().string,initialAction:w().shape({name:w().string,properties:w().objectOf(w().object)}),businessUnit:w().string,memoryHistory:w().bool,backendUrl:w().string,scrollBehaviour:w().oneOf(["none","inline"]),appContext:T.A.propTypes,modifyFormDefinition:w().func,modifyEntityPaths:w().func,disableDetailView:w().bool,reportIds:w().arrayOf(w().string),customActionEventHandlers:w().objectOf(w().objectOf(w().func)),isHidden:w().bool},t.A.createPropTypes(ze));const $e=qe;e.A.createBundleableApp(He,Ye,qe);var Ge=s(88208),Ke=s(53727);const Je=function(e){var t=e.checkRole,n=e.formBase,r=e.allowCreate,o=e.reportIds,a=e.searchFilters,i=e.searchFormType,s=e.limit,l=e.backendUrl,u=e.businessUnit,p=e.appContext,f=e.onVisibilityStatusChange,m=e.locale;(0,c.useEffect)((function(){t()}),[t]);var h=(0,d.tz)();return(0,oe.jsx)(Ge.A,{required:[void 0!==r],children:(0,oe.jsx)($e,{entityName:"Wage",formBase:n,searchFormType:i,searchFilters:a,limit:s,modifyFormDefinition:function(e){return function(e,t,n){return t?Ke.A.addCreate(e,n):Ke.A.removeActions(e,["new","copy"])}(e,r,h)},backendUrl:l,businessUnit:u,appContext:p,reportIds:o,onVisibilityStatusChange:f,locale:m})})};var Qe={checkRole:function(){return{type:o}}};const Xe=(0,r.Ng)((function(e){return{formBase:e.input.formBase,reportIds:e.input.reportIds,allowCreate:e.wageView.allowCreate,searchFilters:e.input.searchFilters,limit:e.input.limit,backendUrl:e.input.backendUrl,businessUnit:e.input.businessUnit,appContext:e.input.appContext,searchFormType:e.input.searchFormType,onVisibilityStatusChange:e.input.onVisibilityStatusChange,locale:e.app.locale}}),Qe)(Je);var Ze={allowCreate:void 0},et=(0,p.A)({},a,z.A.singleTransferReducer("allowCreate"));var tt=F().mark(ot),nt=F().mark(at),rt=function(e){return e.input};function ot(){return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,H.Q7)([(0,H.p8)(o,at)]);case 1:case"end":return e.stop()}}),tt)}function at(){var e,t,n,r;return F().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=1,(0,H.Lt)(rt);case 1:if(e=o.sent,t=e.allowCreate,n=e.roles,!t){o.next=4;break}return o.next=2,(0,H.T1)($.A.hasCurrentUserAnyRole,n);case 2:return r=o.sent,o.next=3,(0,H.yJ)(i(r));case 3:o.next=5;break;case 4:return o.next=5,(0,H.yJ)(i(!1));case 5:case"end":return o.stop()}}),nt)}const it={wageView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ze,t=arguments.length>1?arguments[1]:void 0,n=et[t.type];return n?n(e,t):e}};var ct,st=[ot],lt="wage-view",ut=["onVisibilityStatusChange"],dt=function(r,o,a,i){n.A.setInputEnvs(o);var c=ct||(ct=(0,oe.jsx)(Xe,{})),s=e.A.createStore(it,st,o,lt);return t.A.addToStore(s,(function(t){return e.A.getEvents(ut,t.input)})),e.A.createApp(lt,c,s,{input:o,events:a,actions:[],publicPath:i,textResourceModules:["component","common","actions",lt]})},pt=function(t){return e.A.useApp({initApp:dt,props:t,packageName:lt}).component};var ft=e.A.createBundleableApp(lt,dt,pt);e.A.registerAppInRegistry(ft.name,ft.init)})(),l})()));
62
+ */function l(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function u(e={}){let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:o=!1}=e;t=n.map(((e,t)=>d(e,"string"==typeof e?null:e.state,0===t?"default":void 0,"string"==typeof e?void 0:e.unstable_mask)));let a=s(null==r?t.length-1:r),i="POP",c=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function u(){return t[a]}function d(e,n=null,r,o){let a=h(t?u().pathname:"/",e,n,r,o);return f("/"===a.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),a}function p(e){return"string"==typeof e?e:g(e)}return{get index(){return a},get action(){return i},get location(){return u()},createHref:p,createURL:e=>new URL(p(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?v(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){i="PUSH";let r=l(e)?e:d(e,n);a+=1,t.splice(a,t.length,r),o&&c&&c({action:i,location:r,delta:1})},replace(e,n){i="REPLACE";let r=l(e)?e:d(e,n);t[a]=r,o&&c&&c({action:i,location:r,delta:0})},go(e){i="POP";let n=s(a+e),r=t[n];a=n,c&&c({action:i,location:r,delta:e})},listen:e=>(c=e,()=>{c=null})}}function d(e={}){return y((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=v(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),h("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:g(t))}),(function(e,t){f("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function p(e,t){if(!1===e||null==e)throw new Error(t)}function f(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function m(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function h(e,t,n=null,r,o){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?v(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10),unstable_mask:o}}function g({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function v(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function y(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,c="POP",u=null,d=p();function p(){return(i.state||{idx:null}).idx}function f(){c="POP";let e=p(),t=null==e?null:e-d;d=e,u&&u({action:c,location:v.location,delta:t})}function g(e){return b(e)}null==d&&(d=0,i.replaceState({...i.state,idx:d},""));let v={get action(){return c},get location(){return e(o,i)},listen(e){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(s,f),u=e,()=>{o.removeEventListener(s,f),u=null}},createHref:e=>t(o,e),createURL:g,encodeLocation(e){let t=g(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c="PUSH";let r=l(e)?e:h(v.location,e,t);n&&n(r,e),d=p()+1;let s=m(r,d),f=v.createHref(r.unstable_mask||r);try{i.pushState(s,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(f)}a&&u&&u({action:c,location:v.location,delta:1})},replace:function(e,t){c="REPLACE";let r=l(e)?e:h(v.location,e,t);n&&n(r,e),d=p();let o=m(r,d),s=v.createHref(r.unstable_mask||r);i.replaceState(o,"",s),a&&u&&u({action:c,location:v.location,delta:0})},go:e=>i.go(e)};return v}function b(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),p(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:g(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function w(e){return{defaultValue:e}}var x=class{constructor(e){var t,n,r;if(t=this,n=o,r=new Map,n.has(t)?i("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),e)for(let[t,n]of e)this.set(t,n)}get(e){if(c(this,o).has(e))return c(this,o).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw new Error("No value found for context")}set(e,t){c(this,o).set(e,t)}};o=new WeakMap;var A=new Set(["lazy","caseSensitive","path","id","index","children"]);var O=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function k(e,t,n=[],r={},o=!1){return e.map(((e,a)=>{let i=[...n,String(a)],c="string"==typeof e.id?e.id:i.join("-");if(p(!0!==e.index||!e.children,"Cannot specify children on an index route"),p(o||!r[c],`Found a route id collision on id "${c}". Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let n={...e,id:c};return r[c]=S(n,t(n)),n}{let n={...e,id:c,children:void 0};return r[c]=S(n,t(n)),e.children&&(n.children=k(e.children,t,i,r,o)),n}}))}function S(e,t){return Object.assign(e,{...t,..."object"==typeof t.lazy&&null!=t.lazy?{lazy:{...e.lazy,...t.lazy}}:{}})}function E(e,t,n="/"){return j(e,t,n,!1)}function j(e,t,n,r){let o=F(("string"==typeof t?v(t):t).pathname||"/",n);if(null==o)return null;let a=T(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e){let t=L(o);i=I(a[e],t,r)}return i}function P(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function T(e,t=[],n=[],r="",o=!1){let a=(e,a,i=o,c)=>{let s={relativePath:void 0===c?e.path||"":c,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};if(s.relativePath.startsWith("/")){if(!s.relativePath.startsWith(r)&&i)return;p(s.relativePath.startsWith(r),`Absolute route path "${s.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),s.relativePath=s.relativePath.slice(r.length)}let l=$([r,s.relativePath]),u=n.concat(s);e.children&&e.children.length>0&&(p(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),T(e.children,t,u,l,i)),(null!=e.path||e.index)&&t.push({path:l,score:N(l,e.index),routesMeta:u})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of D(e.path))a(e,t,!0,n);else a(e,t)})),t}function D(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=D(r.join("/")),c=[];return c.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&c.push(...i),c.map((t=>e.startsWith("/")&&""===t?"/":t))}var _=/^:[\w-]+$/,C=e=>"*"===e;function N(e,t){let n=e.split("/"),r=n.length;return n.some(C)&&(r+=-2),t&&(r+=2),n.filter((e=>!C(e))).reduce(((e,t)=>e+(_.test(t)?3:""===t?1:10)),r)}function I(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let e=0;e<r.length;++e){let c=r[e],s=e===r.length-1,l="/"===a?t:t.slice(a.length)||"/",u=R({path:c.relativePath,caseSensitive:c.caseSensitive,end:s},l),d=c.route;if(!u&&s&&n&&!r[r.length-1].route.index&&(u=R({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},l)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:$([a,u.pathname]),pathnameBase:K($([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=$([a,u.pathnameBase]))}return i}function R(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=M(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=c[r]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const o=c[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:i,pattern:e}}function M(e,t=!1,n=!0){f("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n,o,a)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=a.charAt(o+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"})).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function L(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 a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function F(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var H=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,z=e=>H.test(e);function B(e,t){let n=G(t).split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function U(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function V(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function W(e){let t=V(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function Y(e,t,n,r=!1){let o;"string"==typeof e?o=v(e):(o={...e},p(!o.pathname||!o.pathname.includes("?"),U("?","pathname","search",o)),p(!o.pathname||!o.pathname.includes("#"),U("#","pathname","hash",o)),p(!o.search||!o.search.includes("#"),U("#","search","hash",o)));let a,i=""===e||""===o.pathname,c=i?"/":o.pathname;if(null==c)a=n;else{let e=t.length-1;if(!r&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let s=function(e,t="/"){let n,{pathname:r,search:o="",hash:a=""}="string"==typeof e?v(e):e;return r?(r=q(r),n=r.startsWith("/")?B(r.substring(1),"/"):B(r,t)):n=t,{pathname:n,search:J(o),hash:Q(a)}}(o,a),l=c&&"/"!==c&&c.endsWith("/"),u=(i||"."===c)&&n.endsWith("/");return s.pathname.endsWith("/")||!l&&!u||(s.pathname+="/"),s}var q=e=>e.replace(/\/\/+/g,"/"),$=e=>q(e.join("/")),G=e=>e.replace(/\/+$/,""),K=e=>G(e).replace(/^\/*/,"/"),J=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Q=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var X=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Z(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function ee(e){let t=e.map((e=>e.route.path)).filter(Boolean);return $(t)||"/"}var te="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function ne(e,t){let n=e;if("string"!=typeof n||!H.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(te)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),a=F(r.pathname,t);r.origin===e.origin&&null!=a?n=a+r.search+r.hash:o=!0}catch(e){f(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}var re=Symbol("Uninstrumented");function oe(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach((e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(n);for(let r of t)e[r]&&n[r].push(e[r])}})));let r={};if("function"==typeof t.lazy&&n.lazy.length>0){let e=ae(n.lazy,t.lazy,(()=>{}));e&&(r.lazy=e)}if("object"==typeof t.lazy){let e=t.lazy;["middleware","loader","action"].forEach((t=>{let o=e[t],a=n[`lazy.${t}`];if("function"==typeof o&&a.length>0){let e=ae(a,o,(()=>{}));e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}}))}return["loader","action"].forEach((e=>{let o=t[e];if("function"==typeof o&&n[e].length>0){let t=o[re]??o,a=ae(n[e],t,((...e)=>ce(e[0])));a&&("loader"===e&&!0===t.hydrate&&(a.hydrate=!0),a[re]=t,r[e]=a)}})),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map((e=>{let t=e[re]??e,r=ae(n.middleware,t,((...e)=>ce(e[0])));return r?(r[re]=t,r):e}))),r}function ae(e,t,n){return 0===e.length?null:async(...r)=>{let o=await ie(e,n(...r),(()=>t(...r)),e.length-1);if("error"===o.type)throw o.value;return o.value}}async function ie(e,t,n,r){let o,a=e[r];if(a){let i,c=async()=>(i?console.error("You cannot call instrumented handlers more than once"):i=ie(e,t,n,r-1),o=await i,p(o,"Expected a result"),"error"===o.type&&o.value instanceof Error?{status:"error",error:o.value}:{status:"success",error:void 0});try{await a(c,t)}catch(e){console.error("An instrumentation function threw an error:",e)}i||await c(),await i}else try{let e=await n();o={type:"success",value:e}}catch(e){o={type:"error",value:e}}return o||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function ce(e){let{request:t,context:n,params:r,unstable_pattern:o}=e;return{request:le(t),params:{...r},unstable_pattern:o,context:ue(n)}}function se(e,t){return{currentUrl:g(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function le(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function ue(e){if(function(e){if(null===e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t||Object.getOwnPropertyNames(t).sort().join("\0")===de}(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var de=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var pe=["POST","PUT","PATCH","DELETE"],fe=new Set(pe),me=["GET",...pe],he=new Set(me),ge=new Set([301,302,303,307,308]),ve=new Set([307,308]),ye={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},be={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},we={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},xe=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),Ae="remix-router-transitions",Oe=Symbol("ResetLoaderData");function ke(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement;p(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||xe,a=o;if(e.unstable_instrumentations){let t=e.unstable_instrumentations;a=e=>({...o(e),...oe(t.map((e=>e.route)).filter(Boolean),e)})}let i,c={},s=k(e.routes,a,void 0,c),l=e.basename||"/";l.startsWith("/")||(l=`/${l}`);let u,d,m,y=e.dataStrategy||Le,w={unstable_passThroughRequests:!1,...e.future},A=null,O=new Set,S=null,T=null,D=null,_=null!=e.hydrationData,C=E(s,e.history.location,l),N=!1,I=null;if(null!=C||e.patchRoutesOnNavigation){if(C&&!e.hydrationData){Qe(C,s,e.history.location.pathname).active&&(C=null)}if(C)if(C.some((e=>e.route.lazy)))u=!1,d=!u;else if(C.some((e=>Pe(e.route)))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=C;if(n){let e=C.findIndex((e=>void 0!==n[e.route.id]));r=r.slice(0,e+1)}d=!1,u=!0,r.forEach((e=>{let r=Te(e.route,t,n);d=d||r.renderFallback,u=u&&!r.shouldLoad}))}else u=!0,d=!u;else{u=!1,d=!u,C=[];let t=Qe(null,s,e.history.location.pathname);t.active&&t.matches&&(N=!0,C=t.matches)}}else{let t=it(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=at(s);u=!0,d=!u,C=n,I={[r.id]:t}}let R,M,L={historyAction:e.history.action,location:e.history.location,matches:C,initialized:u,renderFallback:d,navigation:ye,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||I,fetchers:new Map,blockers:new Map},H="POP",B=null,U=!1,V=!1,W=new Map,Y=null,q=!1,$=!1,G=new Set,K=new Map,J=0,Q=-1,X=new Map,ee=new Set,te=new Map,ne=new Map,ie=new Set,ce=new Map,le=null;function ue(e,t={}){e.matches&&(e.matches=e.matches.map((e=>{let t=c[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}))),L={...L,...e};let n=[],r=[];L.fetchers.forEach(((e,t)=>{"idle"===e.state&&(ie.has(t)?n.push(t):r.push(t))})),ie.forEach((e=>{L.fetchers.has(e)||K.has(e)||n.push(e)})),[...O].forEach((r=>r(L,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>Ne(e))),r.forEach((e=>L.fetchers.delete(e)))}function de(t,n,{flushSync:r}={}){let o,a=null!=L.actionData&&null!=L.navigation.formMethod&&bt(L.navigation.formMethod)&&"loading"===L.navigation.state&&!0!==t.state?._isRedirect;o=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:a?L.actionData:null;let c=n.loaderData?nt(L.loaderData,n.loaderData,n.matches||[],n.errors):L.loaderData,l=L.blockers;l.size>0&&(l=new Map(l),l.forEach(((e,t)=>l.set(t,we))));let u,d=!q&&Ge(t,n.matches||L.matches),p=!0===U||null!=L.navigation.formMethod&&bt(L.navigation.formMethod)&&!0!==t.state?._isRedirect;if(i&&(s=i,i=void 0),q||"POP"===H||("PUSH"===H?e.history.push(t,t.state):"REPLACE"===H&&e.history.replace(t,t.state)),"POP"===H){let e=W.get(L.location.pathname);e&&e.has(t.pathname)?u={currentLocation:L.location,nextLocation:t}:W.has(t.pathname)&&(u={currentLocation:t,nextLocation:L.location})}else if(V){let e=W.get(L.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),W.set(L.location.pathname,e)),u={currentLocation:L.location,nextLocation:t}}ue({...n,actionData:o,loaderData:c,historyAction:H,location:t,initialized:!0,renderFallback:!1,navigation:ye,revalidation:"idle",restoreScrollPosition:d,preventScrollReset:p,blockers:l},{viewTransitionOpts:u,flushSync:!0===r}),H="POP",U=!1,V=!1,q=!1,$=!1,B?.resolve(),B=null,le?.resolve(),le=null}async function pe(t,n,o){R&&R.abort(),R=null,H=t,q=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(S&&D){let n=Ye(e,t);S[n]=D()}}(L.location,L.matches),U=!0===(o&&o.preventScrollReset),V=!0===(o&&o.enableViewTransition);let u=i||s,d=o&&o.overrideNavigation,p=o?.initialHydration&&L.matches&&L.matches.length>0&&!N?L.matches:E(u,n,l),f=!0===(o&&o.flushSync);if(p&&L.initialized&&!$&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(L.location,n)&&!(o&&o.submission&&bt(o.submission.formMethod)))return void de(n,{matches:p},{flushSync:f});let m=Qe(p,u,n.pathname);if(m.active&&m.matches&&(p=m.matches),!p){let{error:e,notFoundMatches:t,route:r}=Ue(n.pathname);return void de(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:f})}R=new AbortController;let h,g=Je(e.history,n,R.signal,o&&o.submission),v=e.getContext?await e.getContext():new x;if(o&&o.pendingError)h=[ot(p).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&bt(o.submission.formMethod)){let t=await async function(t,n,o,i,u,d,p,f={}){Oe();let m,h=function(e,t){let n={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return n}(n,o);if(ue({navigation:h},{flushSync:!0===f.flushSync}),d){let e=await Xe(i,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:n}=at(s);return{matches:t,pendingActionResult:[n.id,{type:"error",error:e.error}]}}let t=ot(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:"error",error:e.error}]}}if(!e.matches){let{notFoundMatches:e,error:t,route:r}=Ue(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:t}]}}i=e.matches}let g=xt(i,n);if(g.route.action||g.route.lazy){let e=Ve(a,c,t,n,i,g,p?[]:r,u),o=await he(t,n,e,u,null);if(m=o[g.route.id],!m)for(let e of i)if(o[e.route.id]){m=o[e.route.id];break}if(t.signal.aborted)return{shortCircuited:!0}}else m={type:"error",error:it(405,{method:t.method,pathname:n.pathname,routeId:g.route.id})};if(mt(m)){let n;if(f&&null!=f.replace)n=f.replace;else{n=Ke(m.response.headers.get("Location"),new URL(t.url),l,e.history)===L.location.pathname+L.location.search}return await me(t,m,!0,{submission:o,replace:n}),{shortCircuited:!0}}if(ft(m)){let e=ot(i,g.route.id);return!0!==(f&&f.replace)&&(H="PUSH"),{matches:i,pendingActionResult:[e.route.id,m,g.route.id]}}return{matches:i,pendingActionResult:[g.route.id,m]}}(g,n,o.submission,p,v,m.active,o&&!0===o.initialHydration,{replace:o.replace,flushSync:f});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(ft(r)&&Z(r.error)&&404===r.error.status)return R=null,void de(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}p=t.matches||p,h=t.pendingActionResult,d=Ot(n,o.submission),f=!1,m.active=!1,g=Je(e.history,g.url,g.signal)}let{shortCircuited:y,matches:b,loaderData:w,errors:A}=await async function(t,n,o,u,d,p,f,m,h,g,v,y,b){let w=p||Ot(n,f),x=f||m||At(w),A=!q&&!g;if(d){if(A){let e=fe(y);ue({navigation:w,...void 0!==e?{actionData:e}:{}},{flushSync:v})}let e=await Xe(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:n}=at(s);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=ot(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=Ue(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let O=i||s,{dsMatches:k,revalidatingFetchers:S}=je(t,u,a,c,e.history,L,o,x,n,g?[]:r,!0===g,$,G,ie,te,ee,O,l,null!=e.patchRoutesOnNavigation,y,b);if(Q=++J,!e.dataStrategy&&!k.some((e=>e.shouldLoad))&&!k.some((e=>e.route.middleware&&e.route.middleware.length>0))&&0===S.length){let e=Me();return de(n,{matches:o,loaderData:{},errors:y&&ft(y[1])?{[y[0]]:y[1].error}:null,...rt(y),...e?{fetchers:new Map(L.fetchers)}:{}},{flushSync:v}),{shortCircuited:!0}}if(A){let e={};if(!d){e.navigation=w;let t=fe(y);void 0!==t&&(e.actionData=t)}S.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=L.fetchers.get(e.key),n=kt(void 0,t?t.data:void 0);L.fetchers.set(e.key,n)})),new Map(L.fetchers)}(S)),ue(e,{flushSync:v})}S.forEach((e=>{Ie(e.key),e.controller&&K.set(e.key,e.controller)}));let E=()=>S.forEach((e=>Ie(e.key)));R&&R.signal.addEventListener("abort",E);let{loaderResults:j,fetcherResults:P}=await ge(k,S,t,n,u);if(t.signal.aborted)return{shortCircuited:!0};R&&R.signal.removeEventListener("abort",E);S.forEach((e=>K.delete(e.key)));let T=ct(j);if(T)return await me(t,T.result,!0,{replace:h}),{shortCircuited:!0};if(T=ct(P),T)return ee.add(T.key),await me(t,T.result,!0,{replace:h}),{shortCircuited:!0};let{loaderData:D,errors:_}=tt(L,o,j,y,S,P);g&&L.errors&&(_={...L.errors,..._});let C=Me(),N=Fe(Q),I=C||N||S.length>0;return{matches:o,loaderData:D,errors:_,...I?{fetchers:new Map(L.fetchers)}:{}}}(g,n,p,v,m.active,d,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,f,h,o&&o.callSiteDefaultShouldRevalidate);y||(R=null,de(n,{matches:b||p,...rt(h),loaderData:w,errors:A}))}function fe(e){return e&&!ft(e[1])?{[e[0]]:e[1].data}:L.actionData?0===Object.keys(L.actionData).length?null:L.actionData:void 0}async function me(r,o,a,{submission:i,fetcherSubmission:c,preventScrollReset:s,replace:u}={}){a||(B?.resolve(),B=null),o.response.headers.has("X-Remix-Revalidate")&&($=!0);let d=o.response.headers.get("Location");p(d,"Expected a Location header on the redirect Response"),d=Ke(d,new URL(r.url),l,e.history);let f=h(L.location,d,{_isRedirect:!0});if(n){let e=!1;if(o.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(z(d)){const n=b(d,!0);e=n.origin!==t.location.origin||null==F(n.pathname,l)}if(e)return void(u?t.location.replace(d):t.location.assign(d))}R=null;let m=!0===u||o.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:g,formAction:v,formEncType:y}=L.navigation;!i&&!c&&g&&v&&y&&(i=At(L.navigation));let w=i||c;if(ve.has(o.response.status)&&w&&bt(w.formMethod))await pe(m,f,{submission:{...w,formAction:d},preventScrollReset:s||U,enableViewTransition:a?V:void 0});else{let e=Ot(f,i);await pe(m,f,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:s||U,enableViewTransition:a?V:void 0})}}async function he(e,t,n,r,o){let a,i={};try{a=await We(y,e,t,n,o,r,!1)}catch(e){return n.filter((e=>e.shouldLoad)).forEach((t=>{i[t.route.id]={type:"error",error:e}})),i}if(e.signal.aborted)return i;if(!bt(e.method))for(let e of n){if("error"===a[e.route.id]?.type)break;a.hasOwnProperty(e.route.id)||L.loaderData.hasOwnProperty(e.route.id)||L.errors&&L.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(a[e.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(a))if(pt(r)){let o=r.result;i[t]={type:"redirect",response:$e(o,e,t,n,l)}}else i[t]=await qe(r);return i}async function ge(e,t,n,r,o){let a=he(n,r,e,o,null),i=Promise.all(t.map((async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await he(e.request,e.path,e.matches,o,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:"error",error:it(404,{pathname:e.path})}})})));return{loaderResults:await a,fetcherResults:(await i).reduce(((e,t)=>Object.assign(e,t)),{})}}function Oe(){$=!0,te.forEach(((e,t)=>{K.has(t)&&G.add(t),Ie(t)}))}function ke(e,t,n={}){L.fetchers.set(e,t),ue({fetchers:new Map(L.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function De(e,t,n,r={}){let o=ot(L.matches,t);Ne(e),ue({errors:{[o.route.id]:n},fetchers:new Map(L.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Ce(e){return ne.set(e,(ne.get(e)||0)+1),ie.has(e)&&ie.delete(e),L.fetchers.get(e)||be}function Ne(e){let t=L.fetchers.get(e);!K.has(e)||t&&"loading"===t.state&&X.has(e)||Ie(e),te.delete(e),X.delete(e),ee.delete(e),ie.delete(e),G.delete(e),L.fetchers.delete(e)}function Ie(e,t){let n=K.get(e);n&&(n.abort(t),K.delete(e))}function Re(e){for(let t of e){let e=St(Ce(t).data);L.fetchers.set(t,e)}}function Me(){let e=[],t=!1;for(let n of ee){let r=L.fetchers.get(n);p(r,`Expected fetcher: ${n}`),"loading"===r.state&&(ee.delete(n),e.push(n),t=!0)}return Re(e),t}function Fe(e){let t=[];for(let[n,r]of X)if(r<e){let e=L.fetchers.get(n);p(e,`Expected fetcher: ${n}`),"loading"===e.state&&(Ie(n),X.delete(n),t.push(n))}return Re(t),t.length>0}function He(e){L.blockers.delete(e),ce.delete(e)}function ze(e,t){let n=L.blockers.get(e)||we;p("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(L.blockers);r.set(e,t),ue({blockers:r})}function Be({currentLocation:e,nextLocation:t,historyAction:n}){if(0===ce.size)return;ce.size>1&&f(!1,"A router only supports one blocker at a time");let r=Array.from(ce.entries()),[o,a]=r[r.length-1],i=L.blockers.get(o);return i&&"proceeding"===i.state?void 0:a({currentLocation:e,nextLocation:t,historyAction:n})?o:void 0}function Ue(e){let t=it(404,{pathname:e}),n=i||s,{matches:r,route:o}=at(n);return{notFoundMatches:r,route:o,error:t}}function Ye(e,t){if(T){return T(e,t.map((e=>P(e,L.loaderData))))||e.key}return e.key}function Ge(e,t){if(S){let n=Ye(e,t),r=S[n];if("number"==typeof r)return r}return null}function Qe(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:j(n,r,l,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:j(n,r,l,!0)}}}return{active:!1,matches:null}}async function Xe(t,n,r,o){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let u=t;for(;;){let t=null==i,d=i||s,p=c;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:u,fetcherKey:o,patch:(e,t)=>{r.aborted||_e(e,t,d,p,a,!1)}})}catch(e){return{type:"error",error:e,partialMatches:u}}finally{t&&!r.aborted&&(s=[...s])}if(r.aborted)return{type:"aborted"};let f=E(d,n,l),m=null;if(f){if(0===Object.keys(f[0].params).length)return{type:"success",matches:f};if(m=j(d,n,l,!0),!(m&&u.length<m.length&&Ze(u,m.slice(0,u.length))))return{type:"success",matches:f}}if(m||(m=j(d,n,l,!0)),!m||Ze(u,m))return{type:"success",matches:null};u=m}}function Ze(e,t){return e.length===t.length&&e.every(((e,n)=>e.route.id===t[n].route.id))}return m={get basename(){return l},get future(){return w},get state(){return L},get routes(){return s},get window(){return t},initialize:function(){if(A=e.history.listen((({action:t,location:n,delta:r})=>{if(M)return M(),void(M=void 0);f(0===ce.size||null!=r,"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=Be({currentLocation:L.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise((e=>{M=e}));return e.history.go(-1*r),ze(o,{state:"blocked",location:n,proceed(){ze(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(L.blockers);e.set(o,we),ue({blockers:e})}}),B?.resolve(),void(B=null)}return pe(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(Ae);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,W);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(Ae,JSON.stringify(n))}catch(e){f(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,W);t.addEventListener("pagehide",e),Y=()=>t.removeEventListener("pagehide",e)}return L.initialized||pe("POP",L.location,{initialHydration:!0}),m},subscribe:function(e){return O.add(e),()=>O.delete(e)},enableScrollRestoration:function(e,t,n){if(S=e,D=t,T=n||null,!_&&L.navigation===ye){_=!0;let e=Ge(L.location,L.matches);null!=e&&ue({restoreScrollPosition:e})}return()=>{S=null,D=null,T=null}},navigate:async function t(n,r){if(B?.resolve(),B=null,"number"==typeof n){B||(B=Et());let t=B.promise;return e.history.go(n),t}let o,a=Se(L.location,L.matches,l,n,r?.fromRouteId,r?.relative),{path:i,submission:c,error:s}=Ee(!1,a,r);if(r?.unstable_mask){o={pathname:"",search:"",hash:"",..."string"==typeof r.unstable_mask?v(r.unstable_mask):{...L.location.unstable_mask,...r.unstable_mask}}}let u=L.location,d=h(u,i,r&&r.state,void 0,o);d={...d,...e.history.encodeLocation(d)};let p=r&&null!=r.replace?r.replace:void 0,f="PUSH";!0===p?f="REPLACE":!1===p||null!=c&&bt(c.formMethod)&&c.formAction===L.location.pathname+L.location.search&&(f="REPLACE");let m=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,g=!0===(r&&r.flushSync),y=Be({currentLocation:u,nextLocation:d,historyAction:f});y?ze(y,{state:"blocked",location:d,proceed(){ze(y,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),t(n,r)},reset(){let e=new Map(L.blockers);e.set(y,we),ue({blockers:e})}}):await pe(f,d,{submission:c,pendingError:s,preventScrollReset:m,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:g,callSiteDefaultShouldRevalidate:r&&r.unstable_defaultShouldRevalidate})},fetch:async function(t,n,o,u){Ie(t);let d=!0===(u&&u.flushSync),f=i||s,m=Se(L.location,L.matches,l,o,n,u?.relative),h=E(f,m,l),g=Qe(h,f,m);if(g.active&&g.matches&&(h=g.matches),!h)return void De(t,n,it(404,{pathname:m}),{flushSync:d});let{path:v,submission:y,error:b}=Ee(!0,m,u);if(b)return void De(t,n,b,{flushSync:d});let w=e.getContext?await e.getContext():new x,A=!0===(u&&u.preventScrollReset);y&&bt(y.formMethod)?await async function(t,n,o,u,d,f,m,h,g,v){Oe(),te.delete(t);let y=L.fetchers.get(t);ke(t,function(e,t){let n={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return n}(g,y),{flushSync:m});let b=new AbortController,w=Je(e.history,o,b.signal,g);if(f){let e=await Xe(u,new URL(w.url).pathname,w.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void De(t,n,e.error,{flushSync:m});if(!e.matches)return void De(t,n,it(404,{pathname:o}),{flushSync:m});u=e.matches}let x=xt(u,o);if(!x.route.action&&!x.route.lazy){let e=it(405,{method:g.formMethod,pathname:o,routeId:n});return void De(t,n,e,{flushSync:m})}K.set(t,b);let A=J,O=Ve(a,c,w,o,u,x,r,d),k=await he(w,o,O,d,t),S=k[x.route.id];if(!S)for(let e of O)if(k[e.route.id]){S=k[e.route.id];break}if(w.signal.aborted)return void(K.get(t)===b&&K.delete(t));if(ie.has(t)){if(mt(S)||ft(S))return void ke(t,St(void 0))}else{if(mt(S))return K.delete(t),Q>A?void ke(t,St(void 0)):(ee.add(t),ke(t,kt(g)),me(w,S,!1,{fetcherSubmission:g,preventScrollReset:h}));if(ft(S))return void De(t,n,S.error)}let j=L.navigation.location||L.location,P=Je(e.history,j,b.signal),T=i||s,D="idle"!==L.navigation.state?E(T,L.navigation.location,l):L.matches;p(D,"Didn't find any matches after fetcher action");let _=++J;X.set(t,_);let C=kt(g,S.data);L.fetchers.set(t,C);let{dsMatches:N,revalidatingFetchers:I}=je(P,d,a,c,e.history,L,D,g,j,r,!1,$,G,ie,te,ee,T,l,null!=e.patchRoutesOnNavigation,[x.route.id,S],v);I.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=L.fetchers.get(t),r=kt(void 0,n?n.data:void 0);L.fetchers.set(t,r),Ie(t),e.controller&&K.set(t,e.controller)})),ue({fetchers:new Map(L.fetchers)});let M=()=>I.forEach((e=>Ie(e.key)));b.signal.addEventListener("abort",M);let{loaderResults:F,fetcherResults:z}=await ge(N,I,P,j,d);if(b.signal.aborted)return;if(b.signal.removeEventListener("abort",M),X.delete(t),K.delete(t),I.forEach((e=>K.delete(e.key))),L.fetchers.has(t)){let e=St(S.data);L.fetchers.set(t,e)}let B=ct(F);if(B)return me(P,B.result,!1,{preventScrollReset:h});if(B=ct(z),B)return ee.add(B.key),me(P,B.result,!1,{preventScrollReset:h});let{loaderData:U,errors:V}=tt(L,D,F,void 0,I,z);Fe(_),"loading"===L.navigation.state&&_>Q?(p(H,"Expected pending action"),R&&R.abort(),de(L.navigation.location,{matches:D,loaderData:U,errors:V,fetchers:new Map(L.fetchers)})):(ue({errors:V,loaderData:nt(L.loaderData,U,D,V),fetchers:new Map(L.fetchers)}),$=!1)}(t,n,v,h,w,g.active,d,A,y,u&&u.unstable_defaultShouldRevalidate):(te.set(t,{routeId:n,path:v}),await async function(t,n,o,i,s,l,u,d,p){let f=L.fetchers.get(t);ke(t,kt(p,f?f.data:void 0),{flushSync:u});let m=new AbortController,h=Je(e.history,o,m.signal);if(l){let e=await Xe(i,new URL(h.url).pathname,h.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void De(t,n,e.error,{flushSync:u});if(!e.matches)return void De(t,n,it(404,{pathname:o}),{flushSync:u});i=e.matches}let g=xt(i,o);K.set(t,m);let v=J,y=Ve(a,c,h,o,i,g,r,s),b=await he(h,o,y,s,t),w=b[g.route.id];K.get(t)===m&&K.delete(t);if(h.signal.aborted)return;if(ie.has(t))return void ke(t,St(void 0));if(mt(w))return Q>v?void ke(t,St(void 0)):(ee.add(t),void await me(h,w,!1,{preventScrollReset:d}));if(ft(w))return void De(t,n,w.error);ke(t,St(w.data))}(t,n,v,h,w,g.active,d,A,y))},revalidate:function(){le||(le=Et()),Oe(),ue({revalidation:"loading"});let e=le.promise;return"submitting"===L.navigation.state?e:"idle"===L.navigation.state?(pe(L.historyAction,L.location,{startUninterruptedRevalidation:!0}),e):(pe(H||L.historyAction,L.navigation.location,{overrideNavigation:L.navigation,enableViewTransition:!0===V}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Ce,resetFetcher:function(e,t){Ie(e,t?.reason),ke(e,St(null))},deleteFetcher:function(e){let t=(ne.get(e)||0)-1;t<=0?(ne.delete(e),ie.add(e)):ne.set(e,t),ue({fetchers:new Map(L.fetchers)})},dispose:function(){A&&A(),Y&&Y(),O.clear(),R&&R.abort(),L.fetchers.forEach(((e,t)=>Ne(t))),L.blockers.forEach(((e,t)=>He(t)))},getBlocker:function(e,t){let n=L.blockers.get(e)||we;return ce.get(e)!==t&&ce.set(e,t),n},deleteBlocker:He,patchRoutes:function(e,t,n=!1){let r=null==i;_e(e,t,i||s,c,a,n),r&&(s=[...s],ue({}))},_internalFetchControllers:K,_internalSetRoutes:function(e){c={},i=k(e,a,void 0,c)},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){ue(e)}},e.unstable_instrumentations&&(m=function(e,t){let n={navigate:[],fetch:[]};if(t.forEach((e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}}))),n.navigate.length>0){let t=e.navigate[re]??e.navigate,r=ae(n.navigate,t,((...t)=>{let[n,r]=t;return{to:"number"==typeof n||"string"==typeof n?n:n?g(n):".",...se(e,r??{})}}));r&&(r[re]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[re]??e.fetch,r=ae(n.fetch,t,((...t)=>{let[n,,r,o]=t;return{href:r??".",fetcherKey:n,...se(e,o??{})}}));r&&(r[re]=t,e.fetch=r)}return e}(m,e.unstable_instrumentations.map((e=>e.router)).filter(Boolean))),m}function Se(e,t,n,r,o,a){let i,c;if(o){i=[];for(let e of t)if(i.push(e),e.route.id===o){c=e;break}}else i=t,c=t[t.length-1];let s=Y(r||".",W(i),F(e.pathname,n)||e.pathname,"path"===a);if(null==r&&(s.search=e.search,s.hash=e.hash),(null==r||""===r||"."===r)&&c){let e=wt(s.search);if(c.route.index&&!e)s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&e){let e=new URLSearchParams(s.search),t=e.getAll("index");e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();s.search=n?`?${n}`:""}}return"/"!==n&&(s.pathname=function({basename:e,pathname:t}){return"/"===t?e:$([e,t])}({basename:n,pathname:s.pathname})),g(s)}function Ee(e,t,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:t};if(n.formMethod&&!yt(n.formMethod))return{path:t,error:it(405,{method:n.formMethod})};let r,o,a=()=>({path:t,error:it(400,{type:"invalid-body"})}),i=(n.formMethod||"get").toUpperCase(),c=st(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!bt(i))return a();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce(((e,[t,n])=>`${e}${t}=${n}\n`),""):String(n.body);return{path:t,submission:{formMethod:i,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!bt(i))return a();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return a()}}}if(p("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=Xe(n.formData),o=n.formData;else if(n.body instanceof FormData)r=Xe(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=Ze(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=Ze(r)}catch(e){return a()}let s={formMethod:i,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(bt(s.formMethod))return{path:t,submission:s};let l=v(t);return e&&l.search&&wt(l.search)&&r.append("index",""),l.search=`?${r}`,{path:g(l),submission:s}}function je(e,t,n,r,o,a,i,c,s,l,u,d,p,f,m,h,g,v,y,b,w){let x,A=b?ft(b[1])?b[1].error:b[1].data:void 0,O=o.createURL(a.location),k=o.createURL(s);if(u&&a.errors){let e=Object.keys(a.errors)[0];x=i.findIndex((t=>t.route.id===e))}else if(b&&ft(b[1])){let e=b[0];x=i.findIndex((t=>t.route.id===e))-1}let S=b?b[1].statusCode:void 0,j=S&&S>=400,P={currentUrl:O,currentParams:a.matches[0]?.params||{},nextUrl:k,nextParams:i[0].params,...c,actionResult:A,actionStatus:S},T=ee(i),D=i.map(((o,i)=>{let{route:c}=o,p=null;if(null!=x&&i>x)p=!1;else if(c.lazy)p=!0;else if(Pe(c))if(u){let{shouldLoad:e}=Te(c,a.loaderData,a.errors);p=e}else(function(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o})(a.loaderData,a.matches[i],o)&&(p=!0);else p=!1;if(null!==p)return Ue(n,r,e,s,T,o,l,t,p);let f=!1;"boolean"==typeof w?f=w:j?f=!1:(d||O.pathname+O.search===k.pathname+k.search||O.search!==k.search||function(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}(a.matches[i],o))&&(f=!0);let m={...P,defaultShouldRevalidate:f},h=De(o,m);return Ue(n,r,e,s,T,o,l,t,h,m,w)})),_=[];return m.forEach(((e,c)=>{if(u||!i.some((t=>t.route.id===e.routeId))||f.has(c))return;let s=a.fetchers.get(c),m=s&&"idle"!==s.state&&void 0===s.data,b=E(g,e.path,v);if(!b){if(y&&m)return;return void _.push({key:c,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null})}if(h.has(c))return;let x=xt(b,e.path),A=new AbortController,O=Je(o,e.path,A.signal),k=null;if(p.has(c))p.delete(c),k=Ve(n,r,O,e.path,b,x,l,t);else if(m)d&&(k=Ve(n,r,O,e.path,b,x,l,t));else{let o;o="boolean"==typeof w?w:!j&&d;let a={...P,defaultShouldRevalidate:o};De(x,a)&&(k=Ve(n,r,O,e.path,b,x,l,t,a))}k&&_.push({key:c,routeId:e.routeId,path:e.path,matches:k,match:x,request:O,controller:A})})),{dsMatches:D,revalidatingFetchers:_}}function Pe(e){return null!=e.loader||null!=e.middleware&&e.middleware.length>0}function Te(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Pe(e))return{shouldLoad:!1,renderFallback:!1};let r=null!=t&&e.id in t,o=null!=n&&void 0!==n[e.id];if(!r&&o)return{shouldLoad:!1,renderFallback:!1};if("function"==typeof e.loader&&!0===e.loader.hydrate)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!o;return{shouldLoad:a,renderFallback:a}}function De(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function _e(e,t,n,r,o,a){let i;if(e){let t=r[e];p(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),i=t.children}else i=n;let c=[],s=[];if(t.forEach((e=>{let t=i.find((t=>Ce(e,t)));t?s.push({existingRoute:t,newRoute:e}):c.push(e)})),c.length>0){let t=k(c,o,[e||"_","patch",String(i?.length||"0")],r);i.push(...t)}if(a&&s.length>0)for(let e=0;e<s.length;e++){let{existingRoute:t,newRoute:n}=s[e],r=t,[a]=k([n],o,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}}function Ce(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||(e.children?.every(((e,n)=>t.children?.some((t=>Ce(e,t)))))??!1))}var Ne=new WeakMap,Ie=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(p(o,"No route found in manifest"),!o.lazy||"object"!=typeof o.lazy)return;let a=o.lazy[e];if(!a)return;let i=Ne.get(o);i||(i={},Ne.set(o,i));let c=i[e];if(c)return c;let s=(async()=>{let t=function(e){return A.has(e)}(e),n=void 0!==o[e]&&"hasErrorBoundary"!==e;if(t)f(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(n)f(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();null!=t&&(Object.assign(o,{[e]:t}),Object.assign(o,r(o)))}"object"==typeof o.lazy&&(o.lazy[e]=void 0,Object.values(o.lazy).every((e=>void 0===e))&&(o.lazy=void 0))})();return i[e]=s,s},Re=new WeakMap;async function Me(e){let t=e.matches.filter((e=>e.shouldLoad)),n={};return(await Promise.all(t.map((e=>e.resolve())))).forEach(((e,r)=>{n[t[r].route.id]=e})),n}async function Le(e){return e.matches.some((e=>e.route.middleware))?Fe(e,(()=>Me(e))):Me(e)}function Fe(e,t){return He(e,t,(e=>{if(vt(e))throw e;return e}),ut,(function(t,n,r){if(r)return Promise.resolve(Object.assign(r.value,{[n]:{type:"error",result:t}}));{let{matches:r}=e,o=Math.min(Math.max(r.findIndex((e=>e.route.id===n)),0),Math.max(r.findIndex((e=>e.shouldCallHandler())),0)),a=ot(r,r[o].route.id).route.id;return Promise.resolve({[a]:{type:"error",result:t}})}}))}async function He(e,t,n,r,o){let{matches:a,...i}=e,c=a.flatMap((e=>e.route.middleware?e.route.middleware.map((t=>[e.route.id,t])):[]));return await ze(i,c,t,n,r,o)}async function ze(e,t,n,r,o,a,i=0){let{request:c}=e;if(c.signal.aborted)throw c.signal.reason??new Error(`Request aborted: ${c.method} ${c.url}`);let s=t[i];if(!s){return await n()}let l,[u,d]=s,p=async()=>{if(l)throw new Error("You may only call `next()` once per middleware");try{let c=await ze(e,t,n,r,o,a,i+1);return l={value:c},l.value}catch(e){return l={value:await a(e,u,l)},l.value}};try{let t=await d(e,p),n=null!=t?r(t):void 0;return o(n)?n:l?n??l.value:(l={value:await p()},l.value)}catch(e){return await a(e,u,l)}}function Be(e,t,n,r,o){let a=Ie({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),i=function(e,t,n,r,o){let a=n[e.id];if(p(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=Re.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{p("function"==typeof e.lazy,"No lazy route function found");let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(void 0===r)continue;let i=(o=e,O.has(o)),c=void 0!==a[e]&&"hasErrorBoundary"!==e;i?f(!i,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):c?f(!c,`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.`):n[e]=r}var o;Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return Re.set(a,n),n.catch((()=>{})),{lazyRoutePromise:n,lazyHandlerPromise:n}}let i,c=Object.keys(e.lazy),s=[];for(let a of c){if(o&&o.includes(a))continue;let c=Ie({key:a,route:e,manifest:n,mapRouteProperties:r});c&&(s.push(c),a===t&&(i=c))}let l=s.length>0?Promise.all(s).then((()=>{})):void 0;return l?.catch((()=>{})),i?.catch((()=>{})),{lazyRoutePromise:l,lazyHandlerPromise:i}}(r.route,bt(n.method)?"action":"loader",t,e,o);return{middleware:a,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function Ue(e,t,n,r,o,a,i,c,s,l=null,u){let d=!1,p=Be(e,t,n,a,i);return{...a,_lazyPromises:p,shouldLoad:s,shouldRevalidateArgs:l,shouldCallHandler:e=>(d=!0,l?De(a,"boolean"==typeof u?{...l,defaultShouldRevalidate:u}:"boolean"==typeof e?{...l,defaultShouldRevalidate:e}:l):s),resolve(e){let{lazy:t,loader:i,middleware:l}=a.route,u=d||s||e&&!bt(n.method)&&(t||i),f=l&&l.length>0&&!i&&!t;return!u||!bt(n.method)&&f?Promise.resolve({type:"data",result:void 0}):async function({request:e,path:t,unstable_pattern:n,match:r,lazyHandlerPromise:o,lazyRoutePromise:a,handlerOverride:i,scopedContext:c}){let s,l,u=bt(e.method),d=u?"action":"loader",p=o=>{let a,s=new Promise(((e,t)=>a=t));l=()=>a(),e.signal.addEventListener("abort",l);let u=a=>"function"!=typeof o?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)):o({request:e,unstable_url:Qe(e,t),unstable_pattern:n,params:r.params,context:c},...void 0!==a?[a]:[]),p=(async()=>{try{return{type:"data",result:await(i?i((e=>u(e))):u())}}catch(e){return{type:"error",result:e}}})();return Promise.race([p,s])};try{let t=u?r.route.action:r.route.loader;if(o||a)if(t){let e,[n]=await Promise.all([p(t).catch((t=>{e=t})),o,a]);if(void 0!==e)throw e;s=n}else{await o;let t=u?r.route.action:r.route.loader;if(!t){if("action"===d){let t=new URL(e.url),n=t.pathname+t.search;throw it(405,{method:e.method,pathname:n,routeId:r.route.id})}return{type:"data",result:void 0}}[s]=await Promise.all([p(t),a])}else{if(!t){let t=new URL(e.url);throw it(404,{pathname:t.pathname+t.search})}s=await p(t)}}catch(e){return{type:"error",result:e}}finally{l&&e.signal.removeEventListener("abort",l)}return s}({request:n,path:r,unstable_pattern:o,match:a,lazyHandlerPromise:p?.handler,lazyRoutePromise:p?.route,handlerOverride:e,scopedContext:c})}}}function Ve(e,t,n,r,o,a,i,c,s=null){return o.map((l=>l.route.id!==a.route.id?{...l,shouldLoad:!1,shouldRevalidateArgs:s,shouldCallHandler:()=>!1,_lazyPromises:Be(e,t,n,l,i),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Ue(e,t,n,r,ee(o),l,i,c,!0,s)))}async function We(e,t,n,r,o,a,i){r.some((e=>e._lazyPromises?.middleware))&&await Promise.all(r.map((e=>e._lazyPromises?.middleware)));let c={request:t,unstable_url:Qe(t,n),unstable_pattern:ee(r),params:r[0].params,context:a,matches:r},s=i?()=>{throw new Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=c;return Fe(t,(()=>e({...t,fetcherKey:o,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}})))},l=await e({...c,fetcherKey:o,runClientMiddleware:s});try{await Promise.all(r.flatMap((e=>[e._lazyPromises?.handler,e._lazyPromises?.route])))}catch(e){}return l}async function Ye(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?null==e.body?null:e.json():e.text()}async function qe(e){let{result:t,type:n}=e;if(gt(t)){let e;try{e=await Ye(t)}catch(e){return{type:"error",error:e}}return"error"===n?{type:"error",error:new X(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===n?ht(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:lt(t),statusCode:Z(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Z(t)?t.status:void 0}:ht(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function $e(e,t,n,r,o){let a=e.headers.get("Location");if(p(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!z(a)){let i=r.slice(0,r.findIndex((e=>e.route.id===n))+1);a=Se(new URL(t.url),i,o,a),e.headers.set("Location",a)}return e}var Ge=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Ke(e,t,n,r){if(z(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r);if(Ge.includes(o.protocol))throw new Error("Invalid redirect location");let a=null!=F(o.pathname,n);if(o.origin===t.origin&&a)return q(o.pathname)+o.search+o.hash}try{let t=r.createURL(e);if(Ge.includes(t.protocol))throw new Error("Invalid redirect location")}catch(e){}return e}function Je(e,t,n,r){let o=e.createURL(st(t)).toString(),a={signal:n};if(r&&bt(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),"application/json"===t?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):"text/plain"===t?a.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?a.body=Xe(r.formData):a.body=r.formData}return new Request(o,a)}function Qe(e,t){let n=new URL(e.url),r="string"==typeof t?v(t):t;if(n.pathname=r.pathname||"/",r.search){let e=new URLSearchParams(r.search),t=e.getAll("index");e.delete("index");for(let n of t.filter(Boolean))e.append("index",n);n.search=e.size?`?${e.toString()}`:""}else n.search="";return n.hash=r.hash||"",n}function Xe(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Ze(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function et(e,t,n,r=!1,o=!1){let a,i={},c=null,s=!1,l={},u=n&&ft(n[1])?n[1].error:void 0;return e.forEach((n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(p(!mt(f),"Cannot handle redirect results in processLoaderData"),ft(f)){let t=f.error;if(void 0!==u&&(t=u,u=void 0),c=c||{},o)c[d]=t;else{let n=ot(e,d);null==c[n.route.id]&&(c[n.route.id]=t)}r||(i[d]=Oe),s||(s=!0,a=Z(f.error)?f.error.status:500),f.headers&&(l[d]=f.headers)}else i[d]=f.data,f.statusCode&&200!==f.statusCode&&!s&&(a=f.statusCode),f.headers&&(l[d]=f.headers)})),void 0!==u&&n&&(c={[n[0]]:u},n[2]&&(i[n[2]]=void 0)),{loaderData:i,errors:c,statusCode:a||200,loaderHeaders:l}}function tt(e,t,n,r,o,a){let{loaderData:i,errors:c}=et(t,n,r);return o.filter((e=>!e.matches||e.matches.some((e=>e.shouldLoad)))).forEach((t=>{let{key:n,match:r,controller:o}=t;if(o&&o.signal.aborted)return;let i=a[n];if(p(i,"Did not find corresponding fetcher result"),ft(i)){let t=ot(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:i.error}),e.fetchers.delete(n)}else if(mt(i))p(!1,"Unhandled fetcher revalidation redirect");else{let t=St(i.data);e.fetchers.set(n,t)}})),{loaderData:i,errors:c}}function nt(e,t,n,r){let o=Object.entries(t).filter((([,e])=>e!==Oe)).reduce(((e,[t,n])=>(e[t]=n,e)),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function rt(e){return e?ft(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ot(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 at(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 it(e,{pathname:t,routeId:n,method:r,type:o,message:a}={}){let i="Unknown Server Error",c="Unknown @remix-run/router error";return 400===e?(i="Bad Request",r&&t&&n?c=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:"invalid-body"===o&&(c="Unable to encode submission body")):403===e?(i="Forbidden",c=`Route "${n}" does not match URL "${t}"`):404===e?(i="Not Found",c=`No route matches URL "${t}"`):405===e&&(i="Method Not Allowed",r&&t&&n?c=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(c=`Invalid request method "${r.toUpperCase()}"`)),new X(e||500,i,new Error(c),!0)}function ct(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(mt(r))return{key:n,result:r}}}function st(e){return g({..."string"==typeof e?v(e):e,hash:""})}function lt(e){return new X(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function ut(e){return null!=e&&"object"==typeof e&&Object.entries(e).every((([e,t])=>"string"==typeof e&&dt(t)))}function dt(e){return null!=e&&"object"==typeof e&&"type"in e&&"result"in e&&("data"===e.type||"error"===e.type)}function pt(e){return gt(e.result)&&ge.has(e.result.status)}function ft(e){return"error"===e.type}function mt(e){return"redirect"===(e&&e.type)}function ht(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function gt(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function vt(e){return gt(e)&&(t=e.status,ge.has(t))&&e.headers.has("Location");var t}function yt(e){return he.has(e.toUpperCase())}function bt(e){return fe.has(e.toUpperCase())}function wt(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function xt(e,t){let n="string"==typeof t?v(t).search:t.search;if(e[e.length-1].route.index&&wt(n||""))return e[e.length-1];let r=V(e);return r[r.length-1]}function At(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=a?{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}:void 0}function Ot(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function kt(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function St(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Et(){let e,t,n=new Promise(((r,o)=>{e=async e=>{r(e);try{await n}catch(e){}},t=async e=>{o(e);try{await n}catch(e){}}}));return{promise:n,resolve:e,reject:t}}var jt=a.createContext(null);jt.displayName="DataRouter";var Pt=a.createContext(null);Pt.displayName="DataRouterState";var Tt=a.createContext(!1);function Dt(){return a.useContext(Tt)}var _t=a.createContext({isTransitioning:!1});_t.displayName="ViewTransition";var Ct=a.createContext(new Map);Ct.displayName="Fetchers";var Nt=a.createContext(null);Nt.displayName="Await";var It=a.createContext(null);It.displayName="Navigation";var Rt=a.createContext(null);Rt.displayName="Location";var Mt=a.createContext({outlet:null,matches:[],isDataRoute:!1});Mt.displayName="Route";var Lt=a.createContext(null);Lt.displayName="RouteError";var Ft="REACT_ROUTER_ERROR";function Ht(){return null!=a.useContext(Rt)}function zt(){return p(Ht(),"useLocation() may be used only in the context of a <Router> component."),a.useContext(Rt).location}var Bt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ut(e){a.useContext(It).static||a.useLayoutEffect(e)}function Vt(){let{isDataRoute:e}=a.useContext(Mt);return e?function(){let{router:e}=tn("useNavigate"),t=rn("useNavigate"),n=a.useRef(!1);return Ut((()=>{n.current=!0})),a.useCallback((async(r,o={})=>{f(n.current,Bt),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){p(Ht(),"useNavigate() may be used only in the context of a <Router> component.");let e=a.useContext(jt),{basename:t,navigator:n}=a.useContext(It),{matches:r}=a.useContext(Mt),{pathname:o}=zt(),i=JSON.stringify(W(r)),c=a.useRef(!1);return Ut((()=>{c.current=!0})),a.useCallback(((r,a={})=>{if(f(c.current,Bt),!c.current)return;if("number"==typeof r)return void n.go(r);let s=Y(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:$([t,s.pathname])),(a.replace?n.replace:n.push)(s,a.state,a)}),[t,n,i,o,e])}()}a.createContext(null);function Wt(){let{matches:e}=a.useContext(Mt),t=e[e.length-1];return t?t.params:{}}function Yt(e,{relative:t}={}){let{matches:n}=a.useContext(Mt),{pathname:r}=zt(),o=JSON.stringify(W(n));return a.useMemo((()=>Y(e,JSON.parse(o),r,"path"===t)),[e,o,r,t])}function qt(e,t,n){p(Ht(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=a.useContext(It),{matches:o}=a.useContext(Mt),i=o[o.length-1],c=i?i.params:{},s=i?i.pathname:"/",l=i?i.pathnameBase:"/",u=i&&i.route;{let e=u&&u.path||"";un(s,!u||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let d,m=zt();if(t){let e="string"==typeof t?v(t):t;p("/"===l||e.pathname?.startsWith(l),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=m;let h=d.pathname||"/",g=h;if("/"!==l){let e=l.replace(/^\//,"").split("/");g="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=E(e,{pathname:g});f(u||null!=y,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),f(null==y||void 0!==y[y.length-1].route.element||void 0!==y[y.length-1].route.Component||void 0!==y[y.length-1].route.lazy,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=Zt(y&&y.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:$([l,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:$([l,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])}))),o,n);return t&&b?a.createElement(Rt.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...d},navigationType:"POP"}},b):b}function $t(){let e=an(),t=Z(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=a.createElement(a.Fragment,null,a.createElement("p",null,"💿 Hey developer 👋"),a.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",a.createElement("code",{style:i},"ErrorBoundary")," or"," ",a.createElement("code",{style:i},"errorElement")," prop on your route.")),a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),n?a.createElement("pre",{style:o},n):null,c)}var Gt=a.createElement($t,null),Kt=class extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${Ft}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new X(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?a.createElement(Mt.Provider,{value:this.props.routeContext},a.createElement(Lt.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?a.createElement(Qt,{error:e},t):t}};Kt.contextType=Tt;var Jt=new WeakMap;function Qt({children:e,error:t}){let{basename:n}=a.useContext(It);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${Ft}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=Jt.get(t);if(r)throw r;let o=ne(e.location,n);if(te&&!Jt.get(t)){if(!o.isExternal&&!e.reloadDocument){const n=Promise.resolve().then((()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace})));throw Jt.set(t,n),n}window.location.href=o.absoluteURL||o.to}return a.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function Xt({routeContext:e,match:t,children:n}){let r=a.useContext(jt);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),a.createElement(Mt.Provider,{value:e},n)}function Zt(e,t=[],n){let r=n?.state;if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let o=e,i=r?.errors;if(null!=i){let e=o.findIndex((e=>e.route.id&&void 0!==i?.[e.route.id]));p(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let c=!1,s=-1;if(n&&r){c=r.renderFallback;for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,i=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||void 0===a[t.route.id]);if(t.route.lazy||i){n.isStatic&&(c=!0),o=s>=0?o.slice(0,s+1):[o[0]];break}}}}let l=n?.onError,u=r&&l?(e,t)=>{l(e,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:ee(r.matches),errorInfo:t})}:void 0;return o.reduceRight(((e,n,l)=>{let d,p=!1,f=null,m=null;r&&(d=i&&n.route.id?i[n.route.id]:void 0,f=n.route.errorElement||Gt,c&&(s<0&&0===l?(un("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,m=null):s===l&&(p=!0,m=n.route.hydrateFallbackElement||null)));let h=t.concat(o.slice(0,l+1)),g=()=>{let t;return t=d?f:p?m:n.route.Component?a.createElement(n.route.Component,null):n.route.element?n.route.element:e,a.createElement(Xt,{match:n,routeContext:{outlet:e,matches:h,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===l)?a.createElement(Kt,{location:r.location,revalidation:r.revalidation,component:f,error:d,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):g()}),null)}function en(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function tn(e){let t=a.useContext(jt);return p(t,en(e)),t}function nn(e){let t=a.useContext(Pt);return p(t,en(e)),t}function rn(e){let t=function(e){let t=a.useContext(Mt);return p(t,en(e)),t}(e),n=t.matches[t.matches.length-1];return p(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function on(){let{matches:e,loaderData:t}=nn("useMatches");return a.useMemo((()=>e.map((e=>P(e,t)))),[e,t])}function an(){let e=a.useContext(Lt),t=nn("useRouteError"),n=rn("useRouteError");return void 0!==e?e:t.errors?.[n]}var cn=0;function sn(e){let{router:t,basename:n}=tn("useBlocker"),r=nn("useBlocker"),[o,i]=a.useState(""),c=a.useCallback((t=>{if("function"!=typeof e)return!!e;if("/"===n)return e(t);let{currentLocation:r,nextLocation:o,historyAction:a}=t;return e({currentLocation:{...r,pathname:F(r.pathname,n)||r.pathname},nextLocation:{...o,pathname:F(o.pathname,n)||o.pathname},historyAction:a})}),[n,e]);return a.useEffect((()=>{let e=String(++cn);return i(e),()=>t.deleteBlocker(e)}),[t]),a.useEffect((()=>{""!==o&&t.getBlocker(o,c)}),[t,o,c]),o&&r.blockers.has(o)?r.blockers.get(o):we}var ln={};function un(e,t,n){t||ln[e]||(ln[e]=!0,f(!1,n))}var dn={};function pn(e,t){e||dn[t]||(dn[t]=!0,console.warn(t))}var fn=(r||(r=n.t(a,2))).useOptimistic,mn=()=>{};function hn(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(e.element&&f(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:a.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&f(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:a.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&f(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:a.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var gn=["HydrateFallback","hydrateFallbackElement"];function vn(e,t){return ke({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:u({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,hydrationRouteProperties:gn,mapRouteProperties:hn,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}var yn=class{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 bn({router:e,flushSync:t,onError:n,unstable_useTransitions:r}){let o=Dt();r=o||r;let[i,c]=a.useState(e.state),[s,l]=(u=i,fn?fn(u):[u,mn]);var u;let[d,p]=a.useState(),[f,m]=a.useState({isTransitioning:!1}),[h,g]=a.useState(),[v,y]=a.useState(),[b,w]=a.useState(),x=a.useRef(new Map),A=a.useCallback(((o,{deletedFetchers:i,newErrors:s,flushSync:u,viewTransitionOpts:d})=>{s&&n&&Object.values(s).forEach((e=>n(e,{location:o.location,params:o.matches[0]?.params??{},unstable_pattern:ee(o.matches)}))),o.fetchers.forEach(((e,t)=>{void 0!==e.data&&x.current.set(t,e.data)})),i.forEach((e=>x.current.delete(e))),pn(!1===u||null!=t,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let f=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(pn(null==d||f,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),d&&f){if(t&&u){t((()=>{v&&(h?.resolve(),v.skipTransition()),m({isTransitioning:!0,flushSync:!0,currentLocation:d.currentLocation,nextLocation:d.nextLocation})}));let n=e.window.document.startViewTransition((()=>{t((()=>c(o)))}));return n.finished.finally((()=>{t((()=>{g(void 0),y(void 0),p(void 0),m({isTransitioning:!1})}))})),void t((()=>y(n)))}v?(h?.resolve(),v.skipTransition(),w({state:o,currentLocation:d.currentLocation,nextLocation:d.nextLocation})):(p(o),m({isTransitioning:!0,flushSync:!1,currentLocation:d.currentLocation,nextLocation:d.nextLocation}))}else t&&u?t((()=>c(o))):!1===r?c(o):a.startTransition((()=>{!0===r&&l((e=>wn(e,o))),c(o)}))}),[e.window,t,v,h,r,l,n]);a.useLayoutEffect((()=>e.subscribe(A)),[e,A]);let O=s.initialized;a.useLayoutEffect((()=>{!O&&e.state.initialized&&A(e.state,{deletedFetchers:[],flushSync:!1,newErrors:null})}),[O,A,e.state]),a.useEffect((()=>{f.isTransitioning&&!f.flushSync&&g(new yn)}),[f]),a.useEffect((()=>{if(h&&d&&e.window){let t=d,n=h.promise,o=e.window.document.startViewTransition((async()=>{!1===r?c(t):a.startTransition((()=>{!0===r&&l((e=>wn(e,t))),c(t)})),await n}));o.finished.finally((()=>{g(void 0),y(void 0),p(void 0),m({isTransitioning:!1})})),y(o)}}),[d,h,e.window,r,l]),a.useEffect((()=>{h&&d&&s.location.key===d.location.key&&h.resolve()}),[h,v,s.location,d]),a.useEffect((()=>{!f.isTransitioning&&b&&(p(b.state),m({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),w(void 0))}),[f.isTransitioning,b]);let k=a.useMemo((()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})})),[e]),S=e.basename||"/",E=a.useMemo((()=>({router:e,navigator:k,static:!1,basename:S,onError:n})),[e,k,S,n]);return a.createElement(a.Fragment,null,a.createElement(jt.Provider,{value:E},a.createElement(Pt.Provider,{value:s},a.createElement(Ct.Provider,{value:x.current},a.createElement(_t.Provider,{value:f},a.createElement(Sn,{basename:S,location:s.location,navigationType:s.historyAction,navigator:k,unstable_useTransitions:r},a.createElement(xn,{routes:e.routes,future:e.future,state:s,isStatic:!1,onError:n})))))),null)}function wn(e,t){return{...e,navigation:"idle"!==t.navigation.state?t.navigation:e.navigation,revalidation:"idle"!==t.revalidation?t.revalidation:e.revalidation,actionData:"submitting"!==t.navigation.state?t.actionData:e.actionData,fetchers:t.fetchers}}var xn=a.memo(An);function An({routes:e,future:t,state:n,isStatic:r,onError:o}){return qt(e,void 0,{state:n,isStatic:r,onError:o,future:t})}function On({to:e,replace:t,state:n,relative:r}){p(Ht(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=a.useContext(It);f(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=a.useContext(Mt),{pathname:c}=zt(),s=Vt(),l=Y(e,W(i),c,"path"===r),u=JSON.stringify(l);return a.useEffect((()=>{s(JSON.parse(u),{replace:t,state:n,relative:r})}),[s,u,r,t,n]),null}function kn(e){p(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Sn({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,unstable_useTransitions:c}){p(!Ht(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=a.useMemo((()=>({basename:s,navigator:o,static:i,unstable_useTransitions:c,future:{}})),[s,o,i,c]);"string"==typeof n&&(n=v(n));let{pathname:u="/",search:d="",hash:m="",state:h=null,key:g="default",unstable_mask:y}=n,b=a.useMemo((()=>{let e=F(u,s);return null==e?null:{location:{pathname:e,search:d,hash:m,state:h,key:g,unstable_mask:y},navigationType:r}}),[s,u,d,m,h,g,r,y]);return f(null!=b,`<Router basename="${s}"> is not able to match the URL "${u}${d}${m}" because it does not start with the basename, so the <Router> won't render anything.`),null==b?null:a.createElement(It.Provider,{value:l},a.createElement(Rt.Provider,{children:t,value:b}))}function En({children:e,location:t}){return qt(jn(e),t)}a.Component;function jn(e,t=[]){let n=[];return a.Children.forEach(e,((e,r)=>{if(!a.isValidElement(e))return;let o=[...t,r];if(e.type===a.Fragment)return void n.push.apply(n,jn(e.props.children,o));p(e.type===kn,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),p(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=jn(e.props.children,o)),n.push(i)})),n}var Pn="get",Tn="application/x-www-form-urlencoded";function Dn(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function _n(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}var Cn=null;var Nn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function In(e){return null==e||Nn.has(e)?e:(f(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Tn}"`),null)}function Rn(e,t){let n,r,o,a,i;if(Dn(c=e)&&"form"===c.tagName.toLowerCase()){let i=e.getAttribute("action");r=i?F(i,t):null,n=e.getAttribute("method")||Pn,o=In(e.getAttribute("enctype"))||Tn,a=new FormData(e)}else if(function(e){return Dn(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Dn(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||i.getAttribute("action");if(r=c?F(c,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||Pn,o=In(e.getAttribute("formenctype"))||In(i.getAttribute("enctype"))||Tn,a=new FormData(i,e),!function(){if(null===Cn)try{new FormData(document.createElement("form"),0),Cn=!1}catch(e){Cn=!0}return Cn}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";a.append(`${e}x`,"0"),a.append(`${e}y`,"0")}else t&&a.append(t,r)}}else{if(Dn(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Pn,r=null,o=Tn,i=e}var c;return a&&"text/plain"===o&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis;var Mn={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},Ln=/[&><\u2028\u2029]/g;function Fn(e){return e.replace(Ln,(e=>Mn[e]))}function Hn(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function zn(e,t,n,r){let o="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:"/"===o.pathname?o.pathname=`_root.${r}`:t&&"/"===F(o.pathname,t)?o.pathname=`${G(t)}/_root.${r}`:o.pathname=`${G(o.pathname)}.${r}`,o}async function Bn(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}function Un(e){return null!=e&&"string"==typeof e.page}function Vn(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function Wn(e,t,n,r,o,a){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,c=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===a?t.filter(((e,t)=>i(e,t)||c(e,t))):"data"===a?t.filter(((t,a)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(i(t,a)||c(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function Yn(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o})).flat(1),[...new Set(r)];var r}function qn(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!Un(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let a=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(a)||(n.add(a),e.push({key:a,link:o})),e}),[])}function $n(e,t){return"lazy"===e.mode&&!0===t}function Gn(){let e=a.useContext(jt);return Hn(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Kn(){let e=a.useContext(Pt);return Hn(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Jn=a.createContext(void 0);function Qn(){let e=a.useContext(Jn);return Hn(e,"You must render this element inside a <HydratedRouter> element"),e}function Xn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Zn(e,t,n){if(n&&!or)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}Jn.displayName="FrameworkContext";function er({page:e,...t}){let n=Dt(),{router:r}=Gn(),o=a.useMemo((()=>E(r.routes,e,r.basename)),[r.routes,e,r.basename]);return o?n?a.createElement(nr,{page:e,matches:o,...t}):a.createElement(rr,{page:e,matches:o,...t}):null}function tr(e){let{manifest:t,routeModules:n}=Qn(),[r,o]=a.useState([]);return a.useEffect((()=>{let r=!1;return async function(e,t,n){return qn((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await Bn(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(Vn).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(e,t,n).then((e=>{r||o(e)})),()=>{r=!0}}),[e,t,n]),r}function nr({page:e,matches:t,...n}){let r=zt(),{future:o}=Qn(),{basename:i}=Gn(),c=a.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=zn(e,i,o.unstable_trailingSlashAwareDataRequests,"rsc"),a=!1,c=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?a=!0:c.push(e.route.id);return a&&c.length>0&&n.searchParams.set("_routes",c.join(",")),[n.pathname+n.search]}),[i,o.unstable_trailingSlashAwareDataRequests,e,r,t]);return a.createElement(a.Fragment,null,c.map((e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))))}function rr({page:e,matches:t,...n}){let r=zt(),{future:o,manifest:i,routeModules:c}=Qn(),{basename:s}=Gn(),{loaderData:l,matches:u}=Kn(),d=a.useMemo((()=>Wn(e,t,u,i,r,"data")),[e,t,u,i,r]),p=a.useMemo((()=>Wn(e,t,u,i,r,"assets")),[e,t,u,i,r]),f=a.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,a=!1;if(t.forEach((e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!d.some((t=>t.route.id===e.route.id))&&e.route.id in l&&c[e.route.id]?.shouldRevalidate||t.hasClientLoader?a=!0:n.add(e.route.id))})),0===n.size)return[];let u=zn(e,s,o.unstable_trailingSlashAwareDataRequests,"data");return a&&n.size>0&&u.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[u.pathname+u.search]}),[s,o.unstable_trailingSlashAwareDataRequests,l,r,i,d,t,e,c]),m=a.useMemo((()=>Yn(p,i)),[p,i]),h=tr(p);return a.createElement(a.Fragment,null,f.map((e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),m.map((e=>a.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),h.map((({key:e,link:t})=>a.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin}))))}var or=!1;function ar(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:o,routeDiscovery:i,ssr:c}=Qn(),{router:s,static:l,staticContext:u}=Gn(),{matches:d}=Kn(),p=Dt(),f=$n(i,c);o&&(o.didRenderScripts=!0);let m=Zn(d,null,r);a.useEffect((()=>{0}),[]);let h=a.useMemo((()=>{if(p)return null;let r=u?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",o=l?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${f?"":`import ${JSON.stringify(t.url)}`};\n${m.map(((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];Hn(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:a,clientLoaderModule:i,clientMiddlewareModule:c,hydrateFallbackModule:s,module:l}=o,u=[...a?[{module:a,varName:`${r}_clientAction`}]:[],...i?[{module:i,varName:`${r}_clientLoader`}]:[],...c?[{module:c,varName:`${r}_clientMiddleware`}]:[],...s?[{module:s,varName:`${r}_HydrateFallback`}]:[],{module:l,varName:`${r}_main`}];return 1===u.length?`import * as ${r} from ${JSON.stringify(l)};`:[u.map((e=>`import * as ${e.varName} from "${e.module}";`)).join("\n"),`const ${r} = {${u.map((e=>`...${e.varName}`)).join(",")}};`].join("\n")})).join("\n")}\n ${f?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},n){let r=new Set(n.state.matches.map((e=>e.route.id))),o=n.state.location.pathname.split("/").filter(Boolean),a=["/"];for(o.pop();o.length>0;)a.push(`/${o.join("/")}`),o.pop();a.forEach((e=>{let t=E(n.routes,e,n.basename);t&&t.forEach((e=>r.add(e.route.id)))}));let i=[...r].reduce(((e,n)=>Object.assign(e,{[n]:t.routes[n]})),{});return{...t,routes:i,sri:!!e||void 0}}(t,s),null,2)};`:""}\n window.__reactRouterRouteModules = {${m.map(((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`)).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return a.createElement(a.Fragment,null,a.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:void 0}),a.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:o},type:"module",async:!0}))}),[]),g=or||p?[]:(t.entry.imports.concat(Yn(m,t,{includeHydrateFallback:!0})),[...new Set(v)]);var v;let y="object"==typeof t.sri?t.sri:{};return pn(!p,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),or||p?null:a.createElement(a.Fragment,null,"object"==typeof t.sri?a.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:y})}}):null,f?null:a.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:y[t.url],suppressHydrationWarning:!0}),a.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:y[t.entry.module],suppressHydrationWarning:!0}),g.map((t=>a.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:y[t],suppressHydrationWarning:!0}))),h)}function ir(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}a.Component;function cr({error:e,isOutsideRemixApp:t}){console.error(e);let n,r=a.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(Z(e))return a.createElement(sr,{title:"Unhandled Thrown Response!"},a.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),r);if(e instanceof Error)0;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);new Error(t)}return a.createElement(sr,{title:"Application Error!",isOutsideRemixApp:t},a.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),a.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},n.stack),r)}function sr({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:o}=Qn();return o.root?.Layout&&!n?r:a.createElement("html",{lang:"en"},a.createElement("head",null,a.createElement("meta",{charSet:"utf-8"}),a.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),a.createElement("title",null,e)),a.createElement("body",null,a.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r,t?a.createElement(ar,null):null)))}var lr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{lr&&(window.__reactRouterVersion="7.14.1")}catch(e){}function ur(e,t){return ke({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:d({window:t?.window}),hydrationData:t?.hydrationData||dr(),routes:e,mapRouteProperties:hn,hydrationRouteProperties:gn,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function dr(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:pr(e.errors)}),e}function pr(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new X(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let o=new t(r.message);o.stack="",n[e]=o}catch(e){}}if(null==n[e]){let t=new Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}var fr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mr=a.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:o,replace:i,unstable_mask:c,state:s,target:l,to:u,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:m,...h},v){let{basename:y,navigator:b,unstable_useTransitions:w}=a.useContext(It),x="string"==typeof u&&fr.test(u),A=ne(u,y),O=function(e,{relative:t}={}){p(Ht(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=a.useContext(It),{hash:o,pathname:i,search:c}=Yt(e,{relative:t}),s=i;return"/"!==n&&(s="/"===i?n:$([n,i])),r.createHref({pathname:s,search:c,hash:o})}(u=A.to,{relative:r}),k=zt(),S=null;if(c){let e=Y(c,[],k.unstable_mask?k.unstable_mask.pathname:"/",!0);"/"!==y&&(e.pathname="/"===e.pathname?y:$([y,e.pathname])),S=b.createHref(e)}let[E,j,P]=function(e,t){let n=a.useContext(Jn),[r,o]=a.useState(!1),[i,c]=a.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:p}=t,f=a.useRef(null);a.useEffect((()=>{if("render"===e&&c(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{c(e.isIntersecting)}))}),{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}}),[e]),a.useEffect((()=>{if(r){let e=setTimeout((()=>{c(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let m=()=>{o(!0)},h=()=>{o(!1),c(!1)};return n?"intent"!==e?[i,f,{}]:[i,f,{onFocus:Xn(s,m),onBlur:Xn(l,h),onMouseEnter:Xn(u,m),onMouseLeave:Xn(d,h),onTouchStart:Xn(p,m)}]:[!1,f,{}]}(n,h),T=function(e,{target:t,replace:n,unstable_mask:r,state:o,preventScrollReset:i,relative:c,viewTransition:s,unstable_defaultShouldRevalidate:l,unstable_useTransitions:u}={}){let d=Vt(),p=zt(),f=Yt(e,{relative:c});return a.useCallback((m=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(m,t)){m.preventDefault();let t=void 0!==n?n:g(p)===g(f),h=()=>d(e,{replace:t,unstable_mask:r,state:o,preventScrollReset:i,relative:c,viewTransition:s,unstable_defaultShouldRevalidate:l});u?a.startTransition((()=>h())):h()}}),[p,d,f,n,r,o,t,e,i,c,s,l,u])}(u,{replace:i,unstable_mask:c,state:s,target:l,preventScrollReset:d,relative:r,viewTransition:f,unstable_defaultShouldRevalidate:m,unstable_useTransitions:w});let D=!(A.isExternal||o),_=a.createElement("a",{...h,...P,href:(D?S:void 0)||A.absoluteURL||O,onClick:D?function(t){e&&e(t),t.defaultPrevented||T(t)}:e,ref:ir(v,j),target:l,"data-discover":x||"render"!==t?void 0:"true"});return E&&!x?a.createElement(a.Fragment,null,_,a.createElement(er,{page:O})):_}));mr.displayName="Link",a.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:o,to:i,viewTransition:c,children:s,...l},u){let d=Yt(i,{relative:l.relative}),f=zt(),m=a.useContext(Pt),{navigator:h,basename:g}=a.useContext(It),v=null!=m&&function(e,{relative:t}={}){let n=a.useContext(_t);p(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=yr("useViewTransitionState"),o=Yt(e,{relative:t});if(!n.isTransitioning)return!1;let i=F(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=F(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=R(o.pathname,c)||null!=R(o.pathname,i)}(d)&&!0===c,y=h.encodeLocation?h.encodeLocation(d).pathname:d.pathname,b=f.pathname,w=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&g&&(w=F(w,g)||w);const x="/"!==y&&y.endsWith("/")?y.length-1:y.length;let A,O=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(x),k=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),S={isActive:O,isPending:k,isTransitioning:v},E=O?e:void 0;A="function"==typeof n?n(S):[n,O?"active":null,k?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let j="function"==typeof o?o(S):o;return a.createElement(mr,{...l,"aria-current":E,className:A,ref:u,style:j,to:i,viewTransition:c},"function"==typeof s?s(S):s)})).displayName="NavLink";var hr=a.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:c=Pn,action:s,onSubmit:l,relative:u,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:m,...h},v)=>{let{unstable_useTransitions:y}=a.useContext(It),b=Ar(),w=function(e,{relative:t}={}){let{basename:n}=a.useContext(It),r=a.useContext(Mt);p(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...Yt(e||".",{relative:t})},c=zt();if(null==e){i.search=c.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 n=e.toString();i.search=n?`?${n}`:""}}e&&"."!==e||!o.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(i.pathname="/"===i.pathname?n:$([n,i.pathname]));return g(i)}(s,{relative:u}),x="get"===c.toLowerCase()?"get":"post",A="string"==typeof s&&fr.test(s);return a.createElement("form",{ref:v,method:x,action:w,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute("formmethod")||c,p=()=>b(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:o,state:i,relative:u,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:m});y&&!1!==n?a.startTransition((()=>p())):p()},...h,"data-discover":A||"render"!==e?void 0:"true"})}));function gr({getKey:e,storageKey:t,...n}){let r=a.useContext(Jn),{basename:o}=a.useContext(It),i=zt(),c=on();!function({getKey:e,storageKey:t}={}){let{router:n}=yr("useScrollRestoration"),{restoreScrollPosition:r,preventScrollReset:o}=br("useScrollRestoration"),{basename:i}=a.useContext(It),c=zt(),s=on(),l=nn("useNavigation").navigation;a.useEffect((()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"})),[]),function(e,t){let{capture:n}=t||{};a.useEffect((()=>{let t=null!=n?{capture:n}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}}),[e,n])}(a.useCallback((()=>{if("idle"===l.state){let t=Sr(c,s,i,e);kr[t]=window.scrollY}try{sessionStorage.setItem(t||Or,JSON.stringify(kr))}catch(e){f(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration="auto"}),[l.state,e,i,c,s,t])),"undefined"!=typeof document&&(a.useLayoutEffect((()=>{try{let e=sessionStorage.getItem(t||Or);e&&(kr=JSON.parse(e))}catch(e){}}),[t]),a.useLayoutEffect((()=>{let t=n?.enableScrollRestoration(kr,(()=>window.scrollY),e?(t,n)=>Sr(t,n,i,e):void 0);return()=>t&&t()}),[n,i,e]),a.useLayoutEffect((()=>{if(!1!==r)if("number"!=typeof r){try{if(c.hash){let e=document.getElementById(decodeURIComponent(c.hash.slice(1)));if(e)return void e.scrollIntoView()}}catch{f(!1,`"${c.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}!0!==o&&window.scrollTo(0,0)}else window.scrollTo(0,r)}),[c,r,o]))}({getKey:e,storageKey:t});let s=a.useMemo((()=>{if(!r||!e)return null;let t=Sr(i,c,o,e);return t!==i.key?t:null}),[]);if(!r||r.isSpaMode)return null;let l=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},"")}try{let n=JSON.parse(sessionStorage.getItem(e)||"{}")[t||window.history.state.key];"number"==typeof n&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return a.createElement("script",{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${l})(${Fn(JSON.stringify(t||Or))}, ${Fn(JSON.stringify(s))})`}})}function vr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function yr(e){let t=a.useContext(jt);return p(t,vr(e)),t}function br(e){let t=a.useContext(Pt);return p(t,vr(e)),t}function wr(e){f("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=a.useRef(_n(e)),n=a.useRef(!1),r=zt(),o=a.useMemo((()=>function(e,t){let n=_n(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),i=Vt(),c=a.useCallback(((e,t)=>{const r=_n("function"==typeof e?e(new URLSearchParams(o)):e);n.current=!0,i("?"+r,t)}),[i,o]);return[o,c]}hr.displayName="Form",gr.displayName="ScrollRestoration";var xr=0;function Ar(){let{router:e}=yr("useSubmit"),{basename:t}=a.useContext(It),n=rn("useRouteId"),r=e.fetch,o=e.navigate;return a.useCallback((async(e,a={})=>{let{action:i,method:c,encType:s,formData:l,body:u}=Rn(e,t);if(!1===a.navigate){let e=a.fetcherKey||`__${String(++xr)}__`;await r(e,n,a.action||i,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||c,formEncType:a.encType||s,flushSync:a.flushSync})}else await o(a.action||i,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||c,formEncType:a.encType||s,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})}),[r,o,t,n])}var Or="react-router-scroll-positions",kr={};function Sr(e,t,n,r){let o=null;return r&&(o=r("/"!==n?{...e,pathname:F(e.pathname,n)||e.pathname}:e,t)),null==o&&(o=e.key),o}},52600(e,t,n){"use strict";n.d(t,{pg:()=>i});var r=n(50766),o=n(4883),a=n(81845);function i(e){return o.createElement(r.pg,{flushSync:a.flushSync,...e})}(0,r.q6)()},72367(e,t,n){"use strict";n.d(t,{B1:()=>r});function r(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}Math.min,Math.max;const o=["top","right","bottom","left"];o.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[])},9725(e,t,n){"use strict";n.d(t,{ll:()=>w});n(72367);function r(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function o(e){if(null==e)return window;if(!r(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function a(e){return o(e).getComputedStyle(e)}function i(e){return r(e)?"":e?(e.nodeName||"").toLowerCase():""}function c(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function s(e){return e instanceof o(e).HTMLElement}function l(e){return e instanceof o(e).Element}function u(e){return"undefined"!=typeof ShadowRoot&&(e instanceof o(e).ShadowRoot||e instanceof ShadowRoot)}function d(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=a(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function p(){return!/^((?!chrome|android).)*safari/i.test(c())}function f(e){return["html","body","#document"].includes(i(e))}Math.min,Math.max;const m=Math.round;function h(e,t,n){var r,a,i,c;void 0===t&&(t=!1),void 0===n&&(n=!1);const u=e.getBoundingClientRect();let d=1,f=1;t&&s(e)&&(d=e.offsetWidth>0&&m(u.width)/e.offsetWidth||1,f=e.offsetHeight>0&&m(u.height)/e.offsetHeight||1);const h=l(e)?o(e):window,g=!p()&&n,v=(u.left+(g&&null!=(r=null==(a=h.visualViewport)?void 0:a.offsetLeft)?r:0))/d,y=(u.top+(g&&null!=(i=null==(c=h.visualViewport)?void 0:c.offsetTop)?i:0))/f,b=u.width/d,w=u.height/f;return{width:b,height:w,top:y,right:v+b,bottom:y+w,left:v,x:v,y}}function g(e){return(t=e,(t instanceof o(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function v(e){if("html"===i(e))return e;const t=e.assignedSlot||e.parentNode||(u(e)?e.host:null)||g(e);return u(t)?t.host:t}function y(e){const t=v(e);return f(t)?e.ownerDocument.body:s(t)&&d(t)?t:y(t)}function b(e,t){var n;void 0===t&&(t=[]);const r=y(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),i=o(r),c=a?[i].concat(i.visualViewport||[],d(r)?r:[]):r,s=t.concat(c);return a?s:s.concat(b(c))}function w(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=!0,animationFrame:c=!1}=r,s=o&&!c,u=s||a?[...l(e)?b(e):e.contextElement?b(e.contextElement):[],...b(t)]:[];u.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));let d,p=null;if(i){let r=!0;p=new ResizeObserver((()=>{r||n(),r=!1})),l(e)&&!c&&p.observe(e),l(e)||!e.contextElement||c||p.observe(e.contextElement),p.observe(t)}let f=c?h(e):null;return c&&function t(){const r=h(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{s&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==(e=p)||e.disconnect(),p=null,c&&cancelAnimationFrame(d)}}},21396(e,t,n){"use strict";n.d(t,{LU:()=>s,MS:()=>r,Sv:()=>u,XZ:()=>c,YK:()=>i,j:()=>a,vd:()=>o,yE:()=>l});var r="-ms-",o="-moz-",a="-webkit-",i="comm",c="rule",s="decl",l="@import",u="@keyframes"},53473(e,t,n){"use strict";n.d(t,{MY:()=>a,r1:()=>o});var r=n(18061);function o(e){var t=(0,r.FK)(e);return function(n,r,o,a){for(var i="",c=0;c<t;c++)i+=e[c](n,r,o,a)||"";return i}}function a(e){return function(t){t.root||(t=t.return)&&e(t)}}},71458(e,t,n){"use strict";n.d(t,{wE:()=>i});var r=n(21396),o=n(18061),a=n(19552);function i(e){return(0,a.VF)(c("",null,null,null,[""],e=(0,a.c4)(e),0,[0],e))}function c(e,t,n,r,i,d,p,f,m){for(var h=0,g=0,v=p,y=0,b=0,w=0,x=1,A=1,O=1,k=0,S="",E=i,j=d,P=r,T=S;A;)switch(w=k,k=(0,a.K2)()){case 40:if(108!=w&&58==(0,o.wN)(T,v-1)){-1!=(0,o.K5)(T+=(0,o.HC)((0,a.Tb)(k),"&","&\f"),"&\f")&&(O=-1);break}case 34:case 39:case 91:T+=(0,a.Tb)(k);break;case 9:case 10:case 13:case 32:T+=(0,a.mw)(w);break;case 92:T+=(0,a.Nc)((0,a.OW)()-1,7);continue;case 47:switch((0,a.se)()){case 42:case 47:(0,o.BC)(l((0,a.nf)((0,a.K2)(),(0,a.OW)()),t,n),m);break;default:T+="/"}break;case 123*x:f[h++]=(0,o.b2)(T)*O;case 125*x:case 59:case 0:switch(k){case 0:case 125:A=0;case 59+g:b>0&&(0,o.b2)(T)-v&&(0,o.BC)(b>32?u(T+";",r,n,v-1):u((0,o.HC)(T," ","")+";",r,n,v-2),m);break;case 59:T+=";";default:if((0,o.BC)(P=s(T,t,n,h,g,i,f,S,E=[],j=[],v),d),123===k)if(0===g)c(T,t,P,P,E,d,v,f,j);else switch(99===y&&110===(0,o.wN)(T,3)?100:y){case 100:case 109:case 115:c(e,P,P,r&&(0,o.BC)(s(e,P,P,0,0,i,f,S,i,E=[],v),j),i,j,v,f,r?E:j);break;default:c(T,P,P,P,[""],j,0,f,j)}}h=g=b=0,x=O=1,S=T="",v=p;break;case 58:v=1+(0,o.b2)(T),b=w;default:if(x<1)if(123==k)--x;else if(125==k&&0==x++&&125==(0,a.YL)())continue;switch(T+=(0,o.HT)(k),k*x){case 38:O=g>0?1:(T+="\f",-1);break;case 44:f[h++]=((0,o.b2)(T)-1)*O,O=1;break;case 64:45===(0,a.se)()&&(T+=(0,a.Tb)((0,a.K2)())),y=(0,a.se)(),g=v=(0,o.b2)(S=T+=(0,a.Cv)((0,a.OW)())),k++;break;case 45:45===w&&2==(0,o.b2)(T)&&(x=0)}}return d}function s(e,t,n,i,c,s,l,u,d,p,f){for(var m=c-1,h=0===c?s:[""],g=(0,o.FK)(h),v=0,y=0,b=0;v<i;++v)for(var w=0,x=(0,o.c1)(e,m+1,m=(0,o.tn)(y=l[v])),A=e;w<g;++w)(A=(0,o.Bq)(y>0?h[w]+" "+x:(0,o.HC)(x,/&\f/g,h[w])))&&(d[b++]=A);return(0,a.rH)(e,t,n,0===c?r.XZ:u,d,p,f)}function l(e,t,n){return(0,a.rH)(e,t,n,r.YK,(0,o.HT)((0,a.Tp)()),(0,o.c1)(e,2,-2),0)}function u(e,t,n,i){return(0,a.rH)(e,t,n,r.LU,(0,o.c1)(e,0,i),(0,o.c1)(e,i+1,-1),i)}},3485(e,t,n){"use strict";n.d(t,{A:()=>i,l:()=>a});var r=n(21396),o=n(18061);function a(e,t){for(var n="",r=(0,o.FK)(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function i(e,t,n,i){switch(e.type){case r.yE:case r.LU:return e.return=e.return||e.value;case r.YK:return"";case r.Sv:return e.return=e.value+"{"+a(e.children,i)+"}";case r.XZ:e.value=e.props.join(",")}return(0,o.b2)(n=a(e.children,i))?e.return=e.value+"{"+n+"}":""}},19552(e,t,n){"use strict";n.d(t,{C:()=>d,Cv:()=>E,G1:()=>c,K2:()=>m,Nc:()=>O,OW:()=>g,Sh:()=>y,Tb:()=>x,Tp:()=>p,VF:()=>w,YL:()=>f,c4:()=>b,di:()=>v,mw:()=>A,nf:()=>S,rH:()=>u,se:()=>h});var r=n(18061),o=1,a=1,i=0,c=0,s=0,l="";function u(e,t,n,r,i,c,s){return{value:e,root:t,parent:n,type:r,props:i,children:c,line:o,column:a,length:s,return:""}}function d(e,t){return(0,r.kp)(u("",null,null,"",null,null,0),e,{length:-e.length},t)}function p(){return s}function f(){return s=c>0?(0,r.wN)(l,--c):0,a--,10===s&&(a=1,o--),s}function m(){return s=c<i?(0,r.wN)(l,c++):0,a++,10===s&&(a=1,o++),s}function h(){return(0,r.wN)(l,c)}function g(){return c}function v(e,t){return(0,r.c1)(l,e,t)}function y(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function b(e){return o=a=1,i=(0,r.b2)(l=e),c=0,[]}function w(e){return l="",e}function x(e){return(0,r.Bq)(v(c-1,k(91===e?e+2:40===e?e+1:e)))}function A(e){for(;(s=h())&&s<33;)m();return y(e)>2||y(s)>3?"":" "}function O(e,t){for(;--t&&m()&&!(s<48||s>102||s>57&&s<65||s>70&&s<97););return v(e,g()+(t<6&&32==h()&&32==m()))}function k(e){for(;m();)switch(s){case e:return c;case 34:case 39:34!==e&&39!==e&&k(s);break;case 40:41===e&&k(e);break;case 92:m()}return c}function S(e,t){for(;m()&&e+s!==57&&(e+s!==84||47!==h()););return"/*"+v(t,c-1)+"*"+(0,r.HT)(47===e?e:m())}function E(e){for(;!y(h());)m();return v(e,c)}},18061(e,t,n){"use strict";n.d(t,{BC:()=>h,Bq:()=>c,FK:()=>m,HC:()=>l,HT:()=>o,K5:()=>u,YW:()=>s,b2:()=>f,c1:()=>p,kg:()=>g,kp:()=>a,tW:()=>i,tn:()=>r,wN:()=>d});var r=Math.abs,o=String.fromCharCode,a=Object.assign;function i(e,t){return 45^d(e,0)?(((t<<2^d(e,0))<<2^d(e,1))<<2^d(e,2))<<2^d(e,3):0}function c(e){return e.trim()}function s(e,t){return(e=t.exec(e))?e[0]:e}function l(e,t,n){return e.replace(t,n)}function u(e,t){return e.indexOf(t)}function d(e,t){return 0|e.charCodeAt(t)}function p(e,t,n){return e.slice(t,n)}function f(e){return e.length}function m(e){return e.length}function h(e,t){return t.push(e),e}function g(e,t){return e.map(t).join("")}},92149(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(4883),o=n(81845),a=n(2418);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}const c=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class s extends r.Component{constructor(...e){super(...e),this._targetNode=r.createRef(),this._elementNode=r.createRef(),this._elementParentNode=null,this._tetherInstance=null}componentDidMount(){this._createContainer(),this.forceUpdate()}componentDidUpdate(e){if(e.renderElementTag===this.props.renderElementTag&&e.renderElementTo===this.props.renderElementTo||this._createContainer(),this._elementParentNode&&e.className!==this.props.className){const t=(e.className||"").split(" ").filter((e=>e.length>0)),n=(this.props.className||"").split(" ").filter((e=>e.length>0));this._elementParentNode.classList.remove(...t),this._elementParentNode.classList.add(...n)}this._update()}componentWillUnmount(){this._destroy()}getTetherInstance(){return this._tetherInstance}disable(){var e;null==(e=this._tetherInstance)||e.disable()}enable(){var e;null==(e=this._tetherInstance)||e.enable()}on(e,t,n){this._tetherInstance.on(e,t,n)}once(e,t,n){this._tetherInstance.once(e,t,n)}off(e,t){this._tetherInstance.off(e,t)}position(){var e;null==(e=this._tetherInstance)||e.position()}_runRenders(){let e="function"==typeof this.props.renderTarget?this.props.renderTarget(this._targetNode):null,t="function"==typeof this.props.renderElement?this.props.renderElement(this._elementNode):null;return(0,r.isValidElement)(e)||(e=null),(0,r.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new a(e),this._registerEventListeners()}_destroyTetherInstance(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}_registerEventListeners(){this.on("update",((...e)=>this.props.onUpdate&&this.props.onUpdate.apply(this,e))),this.on("repositioned",((...e)=>this.props.onRepositioned&&this.props.onRepositioned.apply(this,e)))}get _renderNode(){const{renderElementTo:e}=this.props;return"string"==typeof e?document.querySelector(e):e||document.body}_destroy(){this._destroyTetherInstance(),this._removeContainer()}_createContainer(){this._removeContainer();const{renderElementTag:e="div",className:t}=this.props;this._elementParentNode=document.createElement(e),this._elementParentNode.className=t||""}_addContainerToDOM(){this._elementParentNode&&this._renderNode&&this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.append(this._elementParentNode)}_removeContainer(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.remove()}_update(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}_updateTether(){var e;const t=this.props,{id:n,style:r}=t,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(t,c),a=i({target:this._targetNode.current,element:this._elementParentNode},o),s=n||"";if(this._elementParentNode&&this._elementParentNode.id!==s&&(this._elementParentNode.id=s),this._elementParentNode&&r){const e=this._elementParentNode.style;for(const t in r)if(e[t]!==r[t]){let n=r[t];n&&(e[t]=n)}}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(a):this._createTetherInstance(a),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?r.createElement(r.Fragment,null,e,t&&this._elementParentNode&&o.createPortal(t,this._elementParentNode)):null}}},27346(e,t,n){"use strict";function r(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}n.d(t,{P:()=>o,Y:()=>a});var o=r(),a=r},14644(e,t,n){"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{HY:()=>l,Qd:()=>c,Tw:()=>f,Zz:()=>p,ve:()=>m,y$:()=>s,zH:()=>d});var o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),a=()=>Math.random().toString(36).substring(7).split("").join("."),i={INIT:`@@redux/INIT${a()}`,REPLACE:`@@redux/REPLACE${a()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${a()}`};function c(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function s(e,t,n){if("function"!=typeof e)throw new Error(r(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(r(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(r(1));return n(s)(e,t)}let a=e,l=t,u=new Map,d=u,p=0,f=!1;function m(){d===u&&(d=new Map,u.forEach(((e,t)=>{d.set(t,e)})))}function h(){if(f)throw new Error(r(3));return l}function g(e){if("function"!=typeof e)throw new Error(r(4));if(f)throw new Error(r(5));let t=!0;m();const n=p++;return d.set(n,e),function(){if(t){if(f)throw new Error(r(6));t=!1,m(),d.delete(n),u=null}}}function v(e){if(!c(e))throw new Error(r(7));if(void 0===e.type)throw new Error(r(8));if("string"!=typeof e.type)throw new Error(r(17));if(f)throw new Error(r(9));try{f=!0,l=a(l,e)}finally{f=!1}return(u=d).forEach((e=>{e()})),e}v({type:i.INIT});return{dispatch:v,subscribe:g,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));a=e,v({type:i.REPLACE})},[o]:function(){const e=g;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(h())}n();return{unsubscribe:e(n)}},[o](){return this}}}}}function l(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}const o=Object.keys(n);let a;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:i.INIT}))throw new Error(r(12));if(void 0===n(void 0,{type:i.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(e){a=e}return function(e={},t){if(a)throw a;let i=!1;const c={};for(let a=0;a<o.length;a++){const s=o[a],l=n[s],u=e[s],d=l(u,t);if(void 0===d){t&&t.type;throw new Error(r(14))}c[s]=d,i=i||d!==u}return i=i||o.length!==Object.keys(e).length,i?c:e}}function u(e,t){return function(...n){return t(e.apply(this,n))}}function d(e,t){if("function"==typeof e)return u(e,t);if("object"!=typeof e||null===e)throw new Error(r(16));const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=u(o,t))}return n}function p(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function f(...e){return t=>(n,o)=>{const a=t(n,o);let i=()=>{throw new Error(r(15))};const c={getState:a.getState,dispatch:(e,...t)=>i(e,...t)},s=e.map((e=>e(c)));return i=p(...s)(a.dispatch),{...a,dispatch:i}}}function m(e){return c(e)&&"type"in e&&"string"==typeof e.type}}},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=i,s.amdD=function(){throw new Error("define cannot be used indirect")},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);s.r(o);var a={};n=n||[null,r({}),r([]),r(r)];for(var i=2&t&&e;("object"==typeof i||"function"==typeof i)&&!~n.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,s.d(o,a),o},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,n)=>(s.f[n](e,t),t)),[])),s.u=e=>"chunk-"+({4672:"phone-formatter",36916:"vendor-icons",49222:"vendor-libphonenumber-js",54236:"actions",54310:"vendor-fontawesome",61556:"docs-actions",71262:"html-editor",83722:"code-editor"}[e]||e)+"."+{311:"55b709a1e67d30741e96",662:"0709b28425abca2159be",850:"fc9b4e2f1f0020dc680a",996:"21a842210fa3c8385856",1207:"eb29c85fefa59b81ee29",1216:"6acaae98c11fc5093b1c",1221:"9ed57a05f59fb0852f8d",1234:"b772b800007fe0af5ca0",1325:"bbf245813bc3167f8e28",1361:"c72713c80a4d951a3536",1496:"e29046cbbe103a33b971",1655:"57f39649ad023fe0a44d",1702:"6a2e20365a9fe58c9408",1766:"3266b3e54db03e176fd5",2045:"d2e6608a066a0e1a8075",2070:"3c2b089a2893beb5cf51",2451:"3466483b840640f19706",2540:"26a95001fce688f4df0a",2586:"aab9805dfd4411d66a75",2682:"fbce207866337b7948c6",3082:"1e22f1f7069c73263cca",3459:"62de1f29b122c6070a0c",4139:"86ea494a01052de0a906",4490:"4aa480502a55b02d2792",4672:"df409b6ab91acadfb10f",5243:"79991c7b9691fcd34056",5318:"50ce2dedab26b3e546b1",5438:"075f4fcfe1218743620f",5575:"0c64f6946a4fa6bbdfcc",5817:"3634825f807251ab5b20",6041:"0e58d9c8c41755f867d5",6147:"1f7ce063c1946f2f1359",6396:"9f55f8d7e81293cfd96a",6644:"beeb0a46b19d88c16d38",6893:"d1b655a118b8d35f16c9",7313:"0e9a157fd98f73fbb077",7625:"97c0b0e226ea9ffdb330",7668:"de0a4d13f9c57aa4363d",7743:"6a3b2b01e444368af9e2",7802:"e868ffe14749aedeb427",7989:"7d67b889e58f85f2fbf6",8171:"eef1e28193232f867458",8504:"71d1263e1e332cc8b63f",8676:"22c3b6e2ce770a269eeb",8818:"f48798d6db7389a4b62f",8992:"c75371a8810e05de1160",9017:"443c3b54409f19ee7c1b",9561:"482cce5d4fc3dbfe4ac2",9603:"43097da4b936011acc15",9753:"2104911286eef06de727",10012:"c8ab2dee83486b2444c8",10472:"3facaa10badfa19af71a",10499:"cd327bb45eefa3229969",10655:"a1310d1c80d1a95e1320",10910:"f9a73d6b14e4fece4326",11211:"2aeb59e8e88d31fdd075",11239:"3a5cd677cf29f3546ee4",11281:"d0881fa4e1202a4dbb76",11788:"51e32ea30eb321b03e6f",11842:"9004a43dcef6d7760dd2",12987:"e00735b41ae6ff2c87fc",13081:"6e3a716365ee7d39dd63",13093:"3b4932fbe1e946badeb8",13124:"764ef1f63f450a6e264e",13452:"f31354ce62affe8aa010",13622:"5769fcec499ffa3f8767",14291:"6b35b1445b08f16e746a",14527:"14552f16863cd535b9f3",14663:"97d3fa97b5fbc43dcb6b",14879:"fc754cc445fe49ec62d1",14973:"f5bd4d6821369ddb9902",15028:"12e19959715ac40d672a",15197:"deff53df5228fa2c24f0",15692:"2220e995fc039eb05eae",15802:"fd306bc350d0626d0473",15898:"1158c67247e4c8ab4f3c",16334:"fafa6ea6d3569a75d135",17e3:"c3fd2a7dc35291a84ae9",17076:"0f19a6b0d9cc8dc8ab61",17247:"db0ba89198c83764a522",17380:"9dc5fc5b4589a4c4c03d",18334:"b7ee0200ec27b95f0b60",18410:"bef573967f30cde14a27",18849:"f2472681cf4af859b992",19217:"1515dc5b023136b25cdd",19249:"90baded3ae36d9b7566a",19557:"2e0873273209dff402bc",19588:"3ad1468e8a3e9a8f7722",19786:"368da19980cfa756d67a",19956:"988e55513ade05075610",20009:"af75e80faa07fc7eab99",20047:"f7bee1ddda299d8667fe",20132:"5088bc17a351b35a9862",20360:"7fcaeef80d1db5956b22",20454:"fb27365591cf9a2129d6",20592:"f48bc52100574af18a16",20659:"e66eb1b6623329a2937c",21137:"4602565b0c56494683f3",21323:"2bfeee6325ccfa03bb82",21843:"e5f6f1902f9b094a6619",21901:"81698b2cc38d201c0a63",22030:"c6259dbf37721bbfbfd5",22584:"5d6cda172bda5322815d",22981:"7761a1310b113edb4605",23097:"ba847b56813726f79436",23257:"0b2c46625f3638e898cd",23407:"40a4f4ec8fc984c71455",24364:"c41187836437ff058e55",24499:"fe03519b5d9fbfd60fc3",24522:"584f31a073235fdd2e0a",24854:"a7fd3dfb0f0a153d69ef",25181:"4ade960a842ef4c100bb",25395:"12cec45009b444dc3631",25637:"be4ad6dabc51b1ac5b80",26051:"fd430c23c4ccf734e86b",26332:"86e899c360ce4305357b",26335:"4eef2a31a3376dc2a85f",26605:"7e65ff9ef2a2c0211495",26820:"fa58e092ebbee3d55be0",27211:"d3852ecf430737750021",28507:"609fae44f43cf8862780",28586:"1bcd120f8525d25beb3e",28734:"07684bf6b67a236ceaf0",28797:"5b5e2fa1d44428c8c827",29067:"2dfe443f7cc993f34941",29072:"a2ebb414065469553a79",29369:"8dafde99b5944fc2cf6f",29435:"660e92f79d1185e49133",29694:"18517adbc05c4642da34",29755:"7df6f8f9b7a96d4fcd5a",29861:"5f7679f4315fa3e2d0a3",29954:"79b1ae00af45e95a3c56",30470:"ac573086b4e17c955dc6",30486:"fd84837c0e602a7eaa62",30766:"217730baee42aed1b545",30897:"009ffa5de2ca2ddab31e",31001:"fc24be602d994b07bfe1",31131:"e00f6c558e7b634c6972",31255:"284d61fabe5b5e7e997f",31570:"38f44180ef39cc4bac78",31600:"102146e75a946ca0a528",31723:"3f9ca9f3db3e6aa55583",31835:"e7e6a10db3de690c40a5",32499:"755932b2aaa6c227b76c",32521:"284f3f58bed5891af7fe",32725:"084212f69acc91cc9e18",33204:"13d21862e8e9b6a61468",33227:"030d94d5f267409e7c89",33366:"cc6a7ba0fae65f10aa9b",33537:"ff4135b6b6d23fc0f21a",33688:"fd0e5ba6a25bc67d9142",34048:"82f3726f04680935d376",34163:"ef7ed0f0b6674e832d34",34675:"f249568ce058bdbe8959",34678:"adc95a7cdb5fb956efbd",34817:"02642114674717ea5515",34869:"1ae6b287a301074bace8",34916:"6793f2214984cbe50727",35173:"c9359f23abcb3ffbb024",36032:"a5a363c8f71950fc4255",36086:"181d5b1e040e11b819d1",36627:"599f51539711b56f98c0",36763:"96837ddc65e2150cb2da",36788:"0e7ffd3b0e524b3f1075",36916:"054e70b96c2e5c470388",37210:"f6278c0aadb80890fe5d",37551:"0a69c03c600be01a7959",37633:"50544d3151542cb1b0dc",37856:"9a37ed9989f007cb84f1",37887:"34bc6b68c4dfe77b7237",38223:"ae11e5ff036c4c7b6fe4",38297:"eedaae81cd83ca49ec70",38470:"6e4e7753c03332f46087",38506:"71f0b92fc5f9ab206a47",38749:"171a3deb73bfdbaf4a33",38848:"c103126300e5bd237e25",38909:"7bcd37f04776fd5618cc",38918:"588e8d295b84f0a9437c",39417:"5614744c5f77330f4adc",39669:"51e01abfaef96032f7ea",39797:"47480790e6c8b09c46bb",40426:"7a03b4113873e223f4fa",40975:"cb22d228c324ead003ec",41056:"b28cd9e48be188ca6e6f",41170:"9b6ca720904d7680825b",41293:"8b93fd134ecda415a88c",42049:"733b330d55d34c4be581",42206:"061386d61650c8dcc5f4",42482:"f2ce98cfbe1b7f4fd67c",43158:"60eb6fd2a03c92db6c32",43317:"ca9f4ceac867435d379d",43425:"b31052de5d55876efb17",43500:"c6835f9be8555cc4c110",43636:"2927cb3b50eef450cdf2",44286:"9971617eae952dd74262",44330:"41139c74898d549bc71f",44417:"9d80d6493d40b0348be4",44586:"d285afc00848c9d0cf72",44753:"f4531ccc8e9079e1e54f",44788:"1df2acb3c0abb6e02b23",45010:"88fdd69223a2ff04aaab",45011:"0f3ee20446072ae7e84d",45029:"450cac71e9af8a391422",45202:"648abbbcd149fea5425a",45209:"467b29b9742795038062",45587:"e178f27893c9c32ef621",45631:"5d3e1fca835a90f17786",45734:"95098f8933b7dd643805",45814:"2d182bf2ed9ecca4424e",46116:"c3b234cfd3764c5ac7ca",46167:"eaad51979a15258126c9",46503:"397619af3e2499a3d061",46623:"0192d63261a9431dbcaa",46811:"067bf557370878bb5bb0",47026:"6dd4d3cf79cf019e4c9f",47075:"f2effe325cfc11d32333",47145:"080c753a83b83ba91b76",47173:"de64cdd0bf6917c26572",47281:"bc445615da8446239d1a",47387:"60acb4daa69ee6b6040e",47507:"1cf8b3a1340f4cb79f05",47694:"aead390ef2eef6dee573",47968:"c844e5296f783731287e",48077:"4aadda7f9e96a7e1e9c1",48320:"b8eb8b426c820839dd9f",48331:"7196f1bdcc8a221a6d14",48575:"50c5014cb176eb6714e1",48640:"e534bf7a58811ef2c8bd",49159:"eadb61400091b1c10d77",49222:"eb517c355ffe999b8e56",49343:"d9b3aeec4ba3d1b53e43",49372:"b90c42134a7ac98b61ec",49392:"e7cdd975bf0c463dd969",49808:"842a1deb9090396c5e32",50117:"9502bee1ee2230863e3f",50152:"a1d1e59f249f83def93a",51004:"e367f86624bccf3f7e31",51057:"ef7d99460f087628da16",51150:"cef2267247ba07f6c739",51183:"e24c93b812697b07e44c",51199:"e47ddbe0a992b185f2da",51287:"0db49861e0d3a8c814d7",51289:"16c7f3c1b1e2d076a1d8",51678:"0bc483982c268f0f2855",51958:"2c1cd66da24b194d0b48",52602:"516ef2fae7c2fa4e5c1c",53103:"8e650d1a571786b92c48",53610:"f4b3433db4edb1bb91f0",53611:"2c084168e7aa91b6dfc7",53840:"1d2ee8133e222ba02eca",54176:"8e6d6d8f467d1ee6e048",54236:"a78547f45df3238e9a68",54310:"277a8ac23d29765828d5",54958:"09a59592c6c721cc88fd",55009:"d7a4afbc7fa2e8639c29",55113:"b8906c45edb18e43f4f6",55208:"2ab47fc88c473bf699b6",55263:"f4b1fecdc5bcc5ac49a9",55677:"b50f7084898db30be8ac",55980:"dec370469b3dea2b1ffa",56470:"464fda9e7efcdced81e1",56742:"4e5e77a2dc75c051685f",56746:"ff270605f206b3b00f68",57e3:"fe8c369e39d86f6341b2",57031:"d15c526cf7246d17cc8b",57108:"58b676f3b9386f789b67",57186:"b80511a71283c3a99c70",57217:"5b4b99f7374c05365f8d",57546:"c19fe57a0a9bf9433598",57592:"29b9ec31ca428490a84a",57936:"f6f1b366d3240f2556c1",58045:"13a2c2dce2cf09d0f540",58082:"f724c8229530ef962fa1",58135:"08f721ab5ff6038da1bf",58292:"4899c7d3fa047709ee47",58382:"6991743aa1efc1ae7585",58444:"33375a6f72b502837a0a",58457:"2ce0618b4c8f8ea579dd",58485:"85feae1a28c3d60356df",58972:"a0eb7f83be915f8c6b1c",59287:"705e6431fb2158aa45c7",59364:"52e28d5be9c1332d4cf7",59479:"088d030275ceca04a3a0",59517:"209c1d4e6c01b399d711",59544:"9a9c1e6d4c85890bb8cf",60240:"4c7e69531a623e34ea80",60395:"98dc972c273dba592c86",60526:"a49437bdea3e2be9930a",60824:"c95ebbaaf010932ad6ff",60871:"88a168d6759efb77fb1e",61060:"76e9eafe5c968a07bdae",61079:"a3ca7aeccd20c134fc8c",61305:"e96f62a8bfc1b37d46df",61507:"63c9a7157d7ef468a0b4",61532:"175ae393fb289a835ccd",61556:"cbc7b910295375acd69e",61594:"0382427712b4da544e89",61742:"69492c57097c7388ee14",61777:"6cfa01d168603d2e8b19",61866:"4ed73f64b7afcb2ad7e6",62115:"1b678f758663080a7b01",62308:"26dc495f0f463da3b0f9",62429:"59879690a27d5de8217e",62459:"80ad1792f9b61f1c915e",62575:"824beb8bf5cfa49e4401",62632:"986d0fe476f909c0e303",62797:"36551b552b6dc9eb3d94",63112:"bdb57914e8503d844bcd",63135:"92d35065523917c1ad99",63419:"88502bb23c0338114067",63471:"0e3f89f7c037ca05f16a",63489:"266aa9bfe25a60fe3ca2",63767:"2bb9b080be711df5cd0c",63780:"1f218c2f4ba4e7ff340d",64025:"3414e7a0b945937c7fa6",64108:"14ba11cb2e75baaa809b",64190:"072142050070bc273006",64309:"837ee3015640679acbb2",64420:"5d300e51b82dc0cae650",64442:"7abd6ed64f3d6c6d0f3c",64570:"ea6dec5dd759cf4aba44",64660:"cb8d588d30176bffd253",65111:"4d0dcda0383dac0d36e6",65408:"1a30bc2b9d7bd2e8dec9",65559:"4f3e54739cb32f771589",65896:"f35caf7ff8650f71e9a7",66181:"6a72393c9517628a0316",66448:"a2dfdbd24a3588f7489f",66565:"58c2a9e8e759b3e6542f",66656:"7485f3f4913bc3aab325",66796:"e584972fd68200f15a5d",66885:"5fcc126dd04266e2e46b",67015:"2fd58e657c09ec06111c",67278:"3937fef7a946d4b3857c",67705:"fb305cffbb0201ae2f18",67744:"917129ac82418dfa14cd",67772:"6e2a5492b50e16d96971",68389:"b0a81bcaab8e0ab2fdf1",68648:"626ab410de3b0107b50b",69073:"2b6d88ba6a1ac41f2f1e",69170:"50933dbc6144f3ccd543",69502:"cff776640344cdb44ade",69687:"9f6dff497a6ab6e68eca",69776:"08f6b63ed3cf7e02393c",69884:"9ee569bc61a675d05f36",69975:"e3110f5ccb37d9200092",70174:"5234cdf02209e0851692",70316:"46c6ddb94b2a0266aa94",70471:"2404ea8ce4e766412073",70997:"147b7a6a534a09d1ff10",71075:"2964b4b0918eb2c96de0",71262:"b14e478ffa420ad2f0c2",71496:"06a9e24517f63c64b71e",71657:"e24e92ec601c3a8f6123",72246:"74336b92b3c10275cf5b",72283:"5640ceafcb1a84995a2b",72376:"1c8fe4fca40bdb58f2c7",72456:"f76fad1aca8dfb886286",72496:"2e04213724432319d644",72823:"0986f95ef2f3e926bec0",72887:"a2459671464659787208",72969:"8a2a308c99be2a53b181",73031:"dd71a517f881edd9d8c3",73120:"d272e6a0bffc5172bc48",73226:"2c1a6e531e24ea283b88",73330:"5a50a05993eb767c309c",73477:"205f99959cb9d231d738",73781:"eb6e7bcf93bdaae3ec12",74142:"3d670f4bd292f133bade",74413:"4725684692958ea7f1e5",75042:"065ab5be0ba83abd6cc1",75263:"749dac4a120692ffebe3",76235:"cbb7286a14ba4594cd07",76254:"6caae5921e2441a90dcc",76283:"de1a40e4c57169aef5e5",76397:"e8abbebfc125f8e8b0bb",76667:"74ebd2430bdc43e3ecd4",77385:"7071cd8ad175d5cd7137",77406:"87c4c4bdcfd581493a2b",77623:"ec72054b4d92a21b234c",77968:"a866a0b7a1acec57f7db",78056:"5f8f7e52e7b980b7de3d",78155:"1c273c1e11e3765cb7f8",78720:"5d8ced9525aef536ad7f",79258:"79cb99624223df731c11",79289:"fd6fd52e0ecb5ef82165",79340:"b6b4bd6671aba4f948a1",79625:"cb4ca441c1c2430a6e5a",79685:"e1f9dcb8ff9a472013de",79699:"7e364fd1b5c7c7598078",79869:"40fdcb998f181de4d773",80008:"a83f75ebb8cab1c8d37f",80262:"9c066f08769142e86213",80270:"2df925ad04c68e688b9d",80335:"b7511e28be8ecb4a5cd5",80566:"0b1c7eec30627206617a",80569:"3a2b0d9efa9f60d4cc82",80638:"3a86c8fbeff1678e1fa7",80902:"fe4159bb61199644b734",81328:"6b7115a74a075f38c799",81450:"13af8a1248b7c49c14ca",81534:"5bef7ceeca3acb52d1be",81852:"fb62cfca74c8fae32a6a",82067:"0dcc81ddc8e5007b3de8",82327:"e1e1fc9b4f7a1467a823",82422:"c3695a3eb28f2b642fd0",82544:"0370ded20e71e1527b37",82555:"5fb9ac0ce96e3fa77996",82628:"ef51d7865ca6f23d00b4",82954:"061ac642a1ce20c7cc2c",83136:"d9121fe1542f2122e02e",83282:"cbc4633f587e1371b460",83369:"0dff41c8748325cea681",83722:"bd499550aa7dc300d9c5",84506:"65901c8d6e51b655ed26",84556:"1037288f434db19f6a5d",84567:"a5ea4e7f08bf4d4786a2",84625:"4d45878bc75d842f0ce5",85085:"1437fb70620c874f931b",85477:"b1c42a2c640fc2f2efa4",85481:"9bf28c4cde56ec1da335",85749:"e12a77f854f7d0742067",86006:"ea630e081ef1e382e68f",86187:"89510d8669a217799c2c",86275:"d6c5bc5e16e0f23cc4f3",86902:"ab0bf04a1e0383d5df49",86952:"0517e341b6e10ee776ce",87268:"a7087cd82cedd90f490c",87406:"debb0c44636d04b5eb39",87624:"64c6748e273bf56ee1d4",87632:"0af7995c6e40eb52dca5",87772:"c202df324d8c7a9f281a",87826:"8aa1ffea5e1e56adc349",87842:"bed34f3e7841458d6640",87874:"f12fa7bfa10ecc20982a",88408:"9a48313c98c21ae6d1d6",88533:"5eb1146629661065df32",88628:"12f5fc0c3aba791d9a2c",89179:"7d00f85436616020bda8",89426:"9a25ab594d74348e18c6",89476:"f67df3c69912937f1523",89609:"fa3ca64eb85db5886e02",89651:"bc4ac92adc26ff821031",89673:"151a1d4cab641fadfc63",89695:"a12db7f0fe08b4675472",90008:"84cc7ab91d9cfcfa4391",90316:"b24f7bec252cbafc332b",90616:"3e98884220668405e2c9",90667:"222b3dc2b62488187da8",90721:"3c9f3b41706ebac89371",90724:"7cb9cb9a20e61980c465",90731:"b19dfa49acdbda9e000d",90830:"a8afe84f076c4fe09682",90846:"7cbb8281928a160c83f1",91051:"3ba0d5542ad78d0ee8ff",91201:"52ea9aab1a5f7397dfdc",91316:"d71dbfaa509e1922fdf0",91344:"98a01a7b75c1e588f044",91841:"92b4c75fe767e610a016",91858:"11bc3a034c8b2a04f6a4",91951:"2b5529ef98c9dbefd8d8",92012:"a77b4948d3ea822a8af2",92174:"3e3739be35b37dfb3fbe",92361:"a3f0df65f0d112c837e5",92657:"65b03a51e48c472555a1",93102:"5065edb159d56ef9aac5",93171:"bb3a24a282c316bb3ae3",93236:"df4c86dec4767c440c40",93534:"eb21ab6c7f397035b32f",93537:"4e422fcf8100e596cb54",93985:"6b5b006c41701d71962a",94194:"874988358d90d2ada2ea",94224:"d780c752eab2bef8775c",94443:"3d38310af7bba4e9b7f7",94565:"042130afcf5cee5a91cf",95399:"571e5848a3b4f2e18aa8",95814:"1f7d4b0ec5fec6e00e2e",95883:"d2e26eb9c8852f1a2bd7",96145:"a6ee2cfdcf6528a8f9c6",96193:"79e4fe2851a1dc19c512",96199:"7f44df2209ad638b44bf",96332:"5398dbb27ce84121fb75",96679:"1d186d28cff27c3d9c06",96809:"cfa7a7a96385b2913bb8",96934:"55830f344105fcb8a760",97230:"25633af52236707de347",97359:"1e499768062f586a1f52",97665:"8fba68dda4752888ead1",97940:"0f24963a4ed77d85f2ee",98153:"af1fe2055e0ebaa9d030",98423:"72c9a2563b902325285c",98769:"18994fa02e00b158f525",98996:"95624092978a62b14e6c",99010:"04b4f165cf5dea59c237",99148:"7dab4be2c2769260ee22",99623:"4a7a4f9cfe1156da2363",99651:"e4f9a079d93032c29342"}[e]+".js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},a="tocco-widget-bundle:",s.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var i,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==a+n){i=d;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-webpack",a+n),i.src=e),o[e]=[t];var p=(t,n)=>{i.onerror=i.onload=null,clearTimeout(f);var r=o[e];if(delete o[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach((e=>e(n))),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.j=34623,s.p="/",(()=>{var e={34623:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=s.p+s.u(t),i=new Error;s.l(a,(n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,r[1](i)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,i,c]=n,l=0;if(a.some((t=>0!==e[t]))){for(r in i)s.o(i,r)&&(s.m[r]=i[r]);if(c)c(s)}for(t&&t(n);l<a.length;l++)o=a[l],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=this.webpackChunktocco_widget_bundle=this.webpackChunktocco_widget_bundle||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),s.nc=void 0;var l={};return(()=>{"use strict";s.r(l),s.d(l,{app:()=>ft});var e=s(61402),t=s(28391),n=s(80621),r=s(71468),o="wageView/CHECK_ROLE",a="wageView/SET_ALLOW_CREATE",i=function(e){return{type:a,payload:{allowCreate:e}}},c=s(4883),u=s.n(c),d=s(38401),p=s(64467),f=s(62193),m=s.n(f),h=s(2404),g=s.n(h),v=s(71086),y=s.n(v),b=s(5556),w=s.n(b),x=s(50766),A=s(52600),O=s(88951),k=s(13128),S=s(59042),E=s(96450),j=s(72942),P=s(78144),T=s(68500),D=s(32619),_=s(7311),C=s(66498),N=s(35301),I=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return C.A.getDispatchActions(e,R,t)},R=[{name:"entityName",action:N.Zl,mandatory:!0,argsFactory:function(e){return[e.entityName]}},{name:"entityName",action:N.uO,argsFactory:function(e){return[e.formBase||e.entityName]}},{name:"formBase",action:N.uO,argsFactory:function(e){return[e.formBase]}},{name:"scrollBehaviour",action:N.Zy,argsFactory:function(e){return[e.scrollBehaviour]}},{name:"id",action:N.RH,argsFactory:function(e){return[e.id||(new Date).valueOf()]}}],M=s(44467),L=s(54756),F=s.n(L),H=s(15003),z=s(29056),B=s(71635),U=(0,p.A)((0,p.A)({},B.Bt,z.A.singleTransferReducer("formTouched")),B.wr,z.A.singleTransferReducer("detailParams")),V={detailParams:void 0,formTouched:!1};var W=s(10076),Y=s(3453),q=s(28261),$=s(57327),G=s(27399);function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Q=function(e){var t={};return e.fields.forEach((function(e){t[e.fieldName]=J({},e)})),e.relations.forEach((function(e){t[e.relationName]=J({type:"relation"},e)})),t};function X(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Q;return F().mark((function n(){var r;return F().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,H.T1)($.A.requestSaga,"entities/".concat(e,"/model"));case 1:return r=n.sent,n.next=2,(0,H.T1)(t,r.body);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)}))()}var Z={CREATE:"create",UPDATE:"update"};const ee=function(e){return void 0===e?Z.CREATE:Z.UPDATE};var te=s(89394);const ne=function(e){var t=e.split("/").filter((function(e){return!!e})),n=t[t.length-1],r=t.filter((function(e,t){return t>1&&t%2==0})).map((function(e){return e.split(".")})).reduce((function(e,t){return[].concat((0,te.A)(e),(0,te.A)(t))}),[]);if(isNaN(n)){return{modelPaths:r,entityId:undefined,parentUrl:"/"+t.slice(0,-1).join("/")}}return{modelPaths:r,entityId:t[t.length-1],parentUrl:"/"+t.slice(0,-2).join("/")}};const re=function(e,t){return 0!==t.length||(!e||isNaN(e))};var oe=s(74848);function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ie=F().mark(de),ce=F().mark(pe),se=F().mark(he),le=function(e){return e.entityBrowser},ue=function(e){return e.input};function de(){return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,H.Q7)([(0,H.p8)(B.M4,fe),(0,H.p8)(B.z3,pe),(0,H.p8)(B.o7,ge)]);case 1:case"end":return e.stop()}}),ie)}function pe(){return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,H.yJ)(B.EJ(void 0));case 1:case"end":return e.stop()}}),ce)}function fe(e){var t=e.payload;return F().mark((function e(){var n,r,o,a,i,c,s,l,u,d,p,f,m,h,g,v;return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,H.T1)(ne,t.url);case 1:return n=e.sent,r=n.modelPaths,o=n.entityId,a=n.parentUrl,e.next=2,(0,H.Lt)(le);case 2:return i=e.sent,c=i.entityName,s=i.formBase,e.next=3,(0,H.T1)(ee,o);case 3:return l=e.sent,e.next=4,(0,H.T1)(me,c,r,s);case 4:return u=e.sent,d=(0,Y.A)(u,2),p=d[0],f=d[1],e.next=5,(0,H.Lt)(ue);case 5:return m=e.sent,h=m.initialKey,e.next=6,(0,H.T1)(re,h,r);case 6:return g=e.sent,v={mode:l,entityId:o,entityName:p,formName:f,parentUrl:a,showBackButton:g},e.next=7,(0,H.yJ)(B.EJ(v));case 7:case"end":return e.stop()}}),e)}))()}function me(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return F().mark((function o(){var a,i,c,s,l,u,d;return F().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(a=(0,W.A)(t),i=a[0],c=ae(a).slice(1),i){o.next=1;break}return o.abrupt("return",[e,r]);case 1:return o.next=2,(0,H.T1)(X,e);case 2:if(s=o.sent,l=s[i]){o.next=5;break}return o.next=3,(0,H.T1)($.A.fetchForm,"".concat(n,"_detail_").concat(i),"list");case 3:return u=o.sent,o.next=4,(0,H.T1)(me,u.modelName,c,"".concat(n,"_").concat(i));case 4:case 6:return o.abrupt("return",o.sent);case 5:return d="".concat(n,"_").concat(l.targetEntity),o.next=6,(0,H.T1)(me,l.targetEntity,c,n,d);case 7:case"end":return o.stop()}}),o)}))()}function he(e){var t;return F().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,H.T1)(q.Ix);case 1:return t=n.sent,n.next=2,(0,H.yJ)(j.A.modal("navigation-pending-changes","client.entity-browser.detail.confirmTouchedFormTitle",e,(function(e){var n=e.close;return(0,oe.jsx)(G.A,{onYes:function(){n(),t.put("yes")},onNo:function(){n(),t.put("no")}})}),!0,(function(){return t.put("no")})));case 2:return n.next=3,(0,H.s)(t);case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}}),se)}function ge(e){var t=e.payload;return F().mark((function e(){var n,r;return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.message,r=t.confirmCallback,e.next=1,(0,H.T1)(he,n);case 1:if("yes"!==e.sent){e.next=3;break}return e.next=2,(0,H.T1)(r,!0);case 2:e.next=4;break;case 3:return e.next=4,(0,H.T1)(r,!1);case 4:case"end":return e.stop()}}),e)}))()}var ve=F().mark(ye);function ye(){return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,H.Q7)([(0,H.Zy)(de)]);case 1:case"end":return e.stop()}}),ve)}const be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:V,t=arguments.length>1?arguments[1]:void 0,n=U[t.type];return n?n(e,t):e};function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ae=(0,p.A)((0,p.A)((0,p.A)((0,p.A)({},N.Rf,z.A.singleTransferReducer("entityName")),N.g0,(function(e,t){var n=t.payload.formBase;return n?xe(xe({},e),{},{formBase:n}):xe({},e)})),N.J6,z.A.singleTransferReducer("scrollBehaviour")),N.PH,z.A.singleTransferReducer("appId")),Oe={entityName:"",formBase:"",scrollBehaviour:"none",appId:""};var ke=F().mark(je),Se=F().mark(Pe),Ee=F().mark(Te);function je(){return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,H.Q7)([(0,H.T1)(Pe),(0,H.p8)(N.XA,Te)]);case 1:case"end":return e.stop()}}),ke)}function Pe(){return F().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,(0,H.s)(e.A.INPUT_INITIALIZED);case 1:return t.next=2,(0,H.yJ)(E.A.doSessionCheck());case 2:case"end":return t.stop()}}),Se)}function Te(){return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,H.yJ)(t.A.fireExternalEvent("onRouteChange"));case 1:case"end":return e.stop()}}),Ee)}var De=F().mark(_e);function _e(){return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,H.Q7)([(0,H.Zy)(je)]);case 1:case"end":return e.stop()}}),De)}const Ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oe,t=arguments.length>1?arguments[1]:void 0,n=Ae[t.type];return n?n(e,t):e},Ne={detail:be,form:M.A,entityBrowser:Ce};var Ie,Re,Me=[_e,ye];function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var He="entity-browser",ze=["onVisibilityStatusChange","onRouteChange"],Be=u().lazy((function(){return Promise.all([s.e(61866),s.e(86275),s.e(91051)]).then(s.bind(s,55341))})),Ue=function(){return Ie||(Ie=(0,oe.jsx)(c.Suspense,{fallback:"",children:(0,oe.jsx)(Be,{})}))},Ve=function(e){var t=e.initialKey,n=e.initialAction,r=(0,x.Zp)(),o=(0,x.zy)().pathname;(0,c.useEffect)((function(){if(t&&!isNaN(t)){if(!o.match(/\/detail\/[0-9]*/)){var e="/detail/".concat(t);r(e)}}if(n&&n.name){var a="/action/".concat(n.name,"?").concat(D.A.toQueryString(n.properties));r(a)}}),[])},We=function(e){var t=e.memoryRouter,n=e.initialKey,r=e.initialAction,o=(t?x.bg:x.Ge)([{path:"*",element:(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)(Ve,{initialKey:n,initialAction:r}),Re||(Re=(0,oe.jsx)(Ue,{}))]})}]);return(0,oe.jsx)(A.pg,{router:o})},Ye=function(r,o,a,i){o=Fe(Fe({},o),{},{id:r}),n.A.setInputEnvs(o);var c=e.A.createStore(Ne,Me,o,He);t.A.addToStore(c,(function(t){return e.A.getEvents(ze,t.input)})),O.A.addToStore(c),k.A.dynamicActionsAddToStore(c),S.A.addToStore(c,!0,["console","remote","notification"]),j.A.addToStore(c,!0),E.A.addToStore(c);var s=(0,oe.jsx)(We,{memoryRouter:o.memoryHistory,initialKey:o.initialKey,initialAction:o.initialAction});return e.A.createApp(He,s,c,{input:o,actions:I(o),publicPath:i,textResourceModules:["component","common","actions","entity-list","entity-detail"]})},qe=function(t){var n=e.A.useApp({initApp:Ye,props:t,packageName:He}),r=n.component,o=n.store,a=_.A.usePrevious(t);return _.A.useDidUpdate((function(){var e=y()(t,(function(e,t){return!g()(e,a[t])}));m()(e)||I(e,!1).forEach((function(e){o.dispatch(e)}))}),[t]),(0,oe.jsx)(oe.Fragment,{children:r})};qe.propTypes=Fe({entityName:w().string.isRequired,searchFormType:P.X,formBase:w().string,limit:w().oneOfType([w().number,w().string]),preselectedSearchFields:w().array,searchFilters:w().arrayOf(w().string),simpleSearchFields:w().string,initialKey:w().string,initialAction:w().shape({name:w().string,properties:w().objectOf(w().object)}),businessUnit:w().string,memoryHistory:w().bool,backendUrl:w().string,scrollBehaviour:w().oneOf(["none","inline"]),appContext:T.A.propTypes,modifyFormDefinition:w().func,modifyEntityPaths:w().func,disableDetailView:w().bool,reportIds:w().arrayOf(w().string),customActionEventHandlers:w().objectOf(w().objectOf(w().func)),isHidden:w().bool},t.A.createPropTypes(ze));const $e=qe;e.A.createBundleableApp(He,Ye,qe);var Ge=s(88208),Ke=s(53727);const Je=function(e){var t=e.checkRole,n=e.formBase,r=e.allowCreate,o=e.reportIds,a=e.searchFilters,i=e.searchFormType,s=e.limit,l=e.backendUrl,u=e.businessUnit,p=e.appContext,f=e.onVisibilityStatusChange,m=e.locale;(0,c.useEffect)((function(){t()}),[t]);var h=(0,d.tz)();return(0,oe.jsx)(Ge.A,{required:[void 0!==r],children:(0,oe.jsx)($e,{entityName:"Wage",formBase:n,searchFormType:i,searchFilters:a,limit:s,modifyFormDefinition:function(e){return function(e,t,n){return t?Ke.A.addCreate(e,n):Ke.A.removeActions(e,["new","copy"])}(e,r,h)},backendUrl:l,businessUnit:u,appContext:p,reportIds:o,onVisibilityStatusChange:f,locale:m})})};var Qe={checkRole:function(){return{type:o}}};const Xe=(0,r.Ng)((function(e){return{formBase:e.input.formBase,reportIds:e.input.reportIds,allowCreate:e.wageView.allowCreate,searchFilters:e.input.searchFilters,limit:e.input.limit,backendUrl:e.input.backendUrl,businessUnit:e.input.businessUnit,appContext:e.input.appContext,searchFormType:e.input.searchFormType,onVisibilityStatusChange:e.input.onVisibilityStatusChange,locale:e.app.locale}}),Qe)(Je);var Ze={allowCreate:void 0},et=(0,p.A)({},a,z.A.singleTransferReducer("allowCreate"));var tt=F().mark(ot),nt=F().mark(at),rt=function(e){return e.input};function ot(){return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,H.Q7)([(0,H.p8)(o,at)]);case 1:case"end":return e.stop()}}),tt)}function at(){var e,t,n,r;return F().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=1,(0,H.Lt)(rt);case 1:if(e=o.sent,t=e.allowCreate,n=e.roles,!t){o.next=4;break}return o.next=2,(0,H.T1)($.A.hasCurrentUserAnyRole,n);case 2:return r=o.sent,o.next=3,(0,H.yJ)(i(r));case 3:o.next=5;break;case 4:return o.next=5,(0,H.yJ)(i(!1));case 5:case"end":return o.stop()}}),nt)}const it={wageView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ze,t=arguments.length>1?arguments[1]:void 0,n=et[t.type];return n?n(e,t):e}};var ct,st=[ot],lt="wage-view",ut=["onVisibilityStatusChange"],dt=function(r,o,a,i){n.A.setInputEnvs(o);var c=ct||(ct=(0,oe.jsx)(Xe,{})),s=e.A.createStore(it,st,o,lt);return t.A.addToStore(s,(function(t){return e.A.getEvents(ut,t.input)})),e.A.createApp(lt,c,s,{input:o,events:a,actions:[],publicPath:i,textResourceModules:["component","common","actions",lt]})},pt=function(t){return e.A.useApp({initApp:dt,props:t,packageName:lt}).component};var ft=e.A.createBundleableApp(lt,dt,pt);e.A.registerAppInRegistry(ft.name,ft.init)})(),l})()));