tocco-admin 3.13.19 → 3.13.21
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/changelog.md +9 -0
- package/dist/{chunk-103.ca4a21e9b3b8611e938e.js → chunk-103.8ca44aa944f53d7b412d.js} +1 -1
- package/dist/chunk-123.ac4fa42a181536622e8c.js +1 -0
- package/dist/chunk-136.b1765e8ce9af597ac984.js +1 -0
- package/dist/{chunk-172.f3e21609162d9b4c4027.js → chunk-172.5a8562f05605c293e378.js} +1 -1
- package/dist/chunk-211.3bd370ff7af5a3620bdd.js +1 -0
- package/dist/{chunk-264.40010c522f5c616180fc.js → chunk-264.50c0399dd90e4d3fedb1.js} +1 -1
- package/dist/chunk-348.b13e957f7bb7d358044a.js +1 -0
- package/dist/chunk-350.3095883aa9c5ac06014e.js +1 -0
- package/dist/chunk-389.362711d95ad8d73ee7ed.js +1 -0
- package/dist/chunk-401.edb867f2a5542352d52c.js +1 -0
- package/dist/chunk-424.9c7b92cf9e8cbe74166f.js +6 -0
- package/dist/chunk-429.16c8ed878b86fd7bc056.js +1 -0
- package/dist/chunk-466.6af4c93c89d8f32039c0.js +1 -0
- package/dist/chunk-501.9c171dcb4c0d8858f8ec.js +1 -0
- package/dist/chunk-567.457e5844a6fe437c3c79.js +1 -0
- package/dist/chunk-601.1304209cea9b5485565a.js +6 -0
- package/dist/chunk-668.bd1313fa57266739d273.js +1 -0
- package/dist/chunk-768.e2e4c0612343074967db.js +1 -0
- package/dist/chunk-789.ce63b37a0005d8eceac9.js +1 -0
- package/dist/chunk-907.2a14cbe0cbaf512984e5.js +39 -0
- package/dist/chunk-987.5f405a561ede8174b92d.js +1 -0
- package/dist/chunk-actions.20c2986511758ba58ab1.js +1 -0
- package/dist/chunk-code-editor.354ee9b93fb8cfa8de45.js +1 -0
- package/dist/chunk-docs-actions.7300ad0ad16c4b1644c6.js +1 -0
- package/dist/{chunk-html-editor.563903c7d284da8ff0d8.js → chunk-html-editor.0a91849f42ebdf533dc5.js} +2 -2
- package/dist/chunk-phone-formatter.f0685e5e63247acbc44a.js +1 -0
- package/dist/{chunk-vendor-fontawesome.301bc3dc060c2bc6cb96.js → chunk-vendor-fontawesome.2a830bb5d2d9d5e9e0f3.js} +1 -1
- package/dist/{chunk-vendor-icons.bb8df5b3b79f7d1c42ea.js → chunk-vendor-icons.521e69baa747d7a1ded7.js} +1 -1
- package/dist/chunk-vendor-libphonenumber-js.86e7e69454f651e8e581.js +1 -0
- package/dist/index.js +8 -56
- package/package.json +1 -1
- package/dist/chunk-179.10f5f107569e2122e506.js +0 -1
- package/dist/chunk-338.4a0da7766aab4c7abf74.js +0 -1
- package/dist/chunk-345.4da83e951107688216b2.js +0 -1
- package/dist/chunk-350.4212b65fe6db87d4aea3.js +0 -1
- package/dist/chunk-389.d748075477dbac37713f.js +0 -1
- package/dist/chunk-413.893f60fb822d90e3fb4d.js +0 -1
- package/dist/chunk-523.8090f3e1c9eadf531554.js +0 -1
- package/dist/chunk-668.fb225f8a59cf6c52d336.js +0 -1
- package/dist/chunk-721.37f9be01f1bea755241e.js +0 -1
- package/dist/chunk-730.b2396391021987c7f73c.js +0 -1
- package/dist/chunk-789.09e87963437ebe25c720.js +0 -1
- package/dist/chunk-863.a5e447ed5a20568d95ef.js +0 -1
- package/dist/chunk-actions.9b06fb68766f2fbff826.js +0 -1
- package/dist/chunk-code-editor.6cc6710bbb21f99b83e9.js +0 -1
- package/dist/chunk-docs-actions.80d97a01d188edcae19c.js +0 -1
- package/dist/chunk-phone-formatter.63b1e14db31d0c9e920a.js +0 -1
- package/dist/chunk-vendor-libphonenumber-js.f8a35646a77724da7677.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[789],{92789:(e,r,t)=>{t.r(r),t.d(r,{default:()=>k});var n=t(58156),o=t.n(n),s=t(38798),c=t(71468),a=t(74978),i=t(26396),l=t.n(i),u=t(22056),p=t.n(u),f=t(84976),d=t(47767),b=t(9466),y=t(82237),h=t(66789),O=t(74848);function m(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function g(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?m(Object(t),!0).forEach((function(r){l()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var v=function(e){var r=e.entityName,t=e.entityKeys,n=e.children,o=t.map((function(e){return{entityName:r,key:e}}));return(0,O.jsx)(y.A,{to:"/docs?rootNodes=".concat(JSON.stringify(o)),target:"_blank",children:n})};const j=function(e){var r=(0,f.ok)(),t=p()(r,1)[0],n=(0,d.Zp)(),o=t.get("rootNodes");return(0,O.jsx)(b.default,g(g(g({},e),{},{routerType:"inherit",navigationStrategy:g(g({},(0,h.Ay)(n,e.baseRoute)),{},{ListLink:v})},o&&{rootNodes:JSON.parse(o)}),{},{searchFormCollapsed:e.searchFormCollapsed,onSearchFormCollapsedChange:function(r){var t=r.collapsed;e.saveUserPreferences({"admin.list.searchFormCollapsed":t})},scrollBehaviour:"inline"}))};var P={saveUserPreferences:a.bM};const k={container:(0,c.Ng)((function(e,r){return{searchFormCollapsed:o()(e.preferences.userPreferences,"admin.list.searchFormCollapsed",null),baseRoute:e.input.baseRoute}}),P)((0,s.Ay)(j))}}}]);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[907],{45588:(e,t,r)=>{"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @remix-run/router v1.20.0
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Remix Software Inc.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
9
|
+
*
|
|
10
|
+
* @license MIT
|
|
11
|
+
*/
|
|
12
|
+
function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}var o;r.d(t,{AO:()=>h,G3:()=>ee,Gh:()=>j,HS:()=>U,Oi:()=>c,Rr:()=>p,TM:()=>l,VV:()=>B,aE:()=>oe,pX:()=>Y,pb:()=>P,rc:()=>o,sC:()=>a,tH:()=>W,ue:()=>b,yD:()=>N,zR:()=>s}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(o||(o={}));const i="popstate";function a(e){void 0===e&&(e={});let t,{initialEntries:r=["/"],initialIndex:n,v5Compat:i=!1}=e;t=r.map(((e,t)=>m(e,"string"==typeof e?null:e.state,0===t?"default":void 0)));let a=c(null==n?t.length-1:n),s=o.Pop,l=null;function c(e){return Math.min(Math.max(e,0),t.length-1)}function d(){return t[a]}function m(e,r,n){void 0===r&&(r=null);let o=f(t?d().pathname:"/",e,r,n);return u("/"===o.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),o}function v(e){return"string"==typeof e?e:h(e)}return{get index(){return a},get action(){return s},get location(){return d()},createHref:v,createURL:e=>new URL(v(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?p(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){s=o.Push;let n=m(e,r);a+=1,t.splice(a,t.length,n),i&&l&&l({action:s,location:n,delta:1})},replace(e,r){s=o.Replace;let n=m(e,r);t[a]=n,i&&l&&l({action:s,location:n,delta:0})},go(e){s=o.Pop;let r=c(a+e),n=t[r];a=r,l&&l({action:s,location:n,delta:e})},listen:e=>(l=e,()=>{l=null})}}function s(e){return void 0===e&&(e={}),m((function(e,t){let{pathname:r,search:n,hash:o}=e.location;return f("",{pathname:r,search:n,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:h(t)}),null,e)}function l(e){return void 0===e&&(e={}),m((function(e,t){let{pathname:r="/",search:n="",hash:o=""}=p(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),f("",{pathname:r,search:n,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:h(t))}),(function(e,t){u("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}function c(e,t){if(!1===e||null==e)throw new Error(t)}function u(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function d(e,t){return{usr:e.state,key:e.key,idx:t}}function f(e,t,r,o){return void 0===r&&(r=null),n({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?p(t):t,{state:r,key:t&&t.key||o||Math.random().toString(36).substr(2,8)})}function h(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function p(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function m(e,t,r,a){void 0===a&&(a={});let{window:s=document.defaultView,v5Compat:l=!1}=a,u=s.history,p=o.Pop,m=null,v=y();function y(){return(u.state||{idx:null}).idx}function g(){p=o.Pop;let e=y(),t=null==e?null:e-v;v=e,m&&m({action:p,location:w.location,delta:t})}function b(e){let t="null"!==s.location.origin?s.location.origin:s.location.href,r="string"==typeof e?e:h(e);return r=r.replace(/ $/,"%20"),c(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==v&&(v=0,u.replaceState(n({},u.state,{idx:v}),""));let w={get action(){return p},get location(){return e(s,u)},listen(e){if(m)throw new Error("A history only accepts one active listener");return s.addEventListener(i,g),m=e,()=>{s.removeEventListener(i,g),m=null}},createHref:e=>t(s,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){p=o.Push;let n=f(w.location,e,t);r&&r(n,e),v=y()+1;let i=d(n,v),a=w.createHref(n);try{u.pushState(i,"",a)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;s.location.assign(a)}l&&m&&m({action:p,location:w.location,delta:1})},replace:function(e,t){p=o.Replace;let n=f(w.location,e,t);r&&r(n,e),v=y();let i=d(n,v),a=w.createHref(n);u.replaceState(i,"",a),l&&m&&m({action:p,location:w.location,delta:0})},go:e=>u.go(e)};return w}var v;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(v||(v={}));const y=new Set(["lazy","caseSensitive","path","id","index","children"]);function g(e,t,r,o){return void 0===r&&(r=[]),void 0===o&&(o={}),e.map(((e,i)=>{let a=[...r,String(i)],s="string"==typeof e.id?e.id:a.join("-");if(c(!0!==e.index||!e.children,"Cannot specify children on an index route"),c(!o[s],'Found a route id collision on id "'+s+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let r=n({},e,t(e),{id:s});return o[s]=r,r}{let r=n({},e,t(e),{id:s,children:void 0});return o[s]=r,e.children&&(r.children=g(e.children,t,a,o)),r}}))}function b(e,t,r){return void 0===r&&(r="/"),w(e,t,r,!1)}function w(e,t,r,n){let o=P(("string"==typeof t?p(t):t).pathname||"/",r);if(null==o)return null;let i=S(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let e=0;null==a&&e<i.length;++e){let t=k(o);a=A(i[e],t,n)}return a}function S(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");let o=(e,o,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(c(a.relativePath.startsWith(n),'Absolute route path "'+a.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(n.length));let s=U([n,a.relativePath]),l=r.concat(a);e.children&&e.children.length>0&&(c(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),S(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:z(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of E(e.path))o(e,t,r);else o(e,t)})),t}function E(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===n.length)return o?[i,""]:[i];let a=E(n.join("/")),s=[];return s.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const T=/^:[\w-]+$/,_=3,x=2,C=1,O=10,R=-2,D=e=>"*"===e;function z(e,t){let r=e.split("/"),n=r.length;return r.some(D)&&(n+=R),t&&(n+=x),r.filter((e=>!D(e))).reduce(((e,t)=>e+(T.test(t)?_:""===t?C:O)),n)}function A(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,o={},i="/",a=[];for(let e=0;e<n.length;++e){let s=n[e],l=e===n.length-1,c="/"===i?t:t.slice(i.length)||"/",u=M({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c),d=s.route;if(!u&&l&&r&&!n[n.length-1].route.index&&(u=M({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!u)return null;Object.assign(o,u.params),a.push({params:o,pathname:U([i,u.pathname]),pathnameBase:F(U([i,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(i=U([i,u.pathnameBase]))}return a}function M(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1);void 0===r&&(r=!0);u("*"===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 n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(n.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let i=new RegExp(o,t?void 0:"i");return[i,n]}(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:n.reduce(((e,t,r)=>{let{paramName:n,isOptional:o}=t;if("*"===n){let e=s[r]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[r];return e[n]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function k(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return u(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function P(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function L(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function I(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function N(e,t){let r=I(e);return t?r.map(((e,t)=>t===r.length-1?e.pathname:e.pathnameBase)):r.map((e=>e.pathnameBase))}function j(e,t,r,o){let i;void 0===o&&(o=!1),"string"==typeof e?i=p(e):(i=n({},e),c(!i.pathname||!i.pathname.includes("?"),L("?","pathname","search",i)),c(!i.pathname||!i.pathname.includes("#"),L("#","pathname","hash",i)),c(!i.search||!i.search.includes("#"),L("#","search","hash",i)));let a,s=""===e||""===i.pathname,l=s?"/":i.pathname;if(null==l)a=r;else{let e=t.length-1;if(!o&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}a=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:o=""}="string"==typeof e?p(e):e,i=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:i,search:H(n),hash:$(o)}}(i,a),d=l&&"/"!==l&&l.endsWith("/"),f=(s||"."===l)&&r.endsWith("/");return u.pathname.endsWith("/")||!d&&!f||(u.pathname+="/"),u}const U=e=>e.join("/").replace(/\/\/+/g,"/"),F=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),H=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",$=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class W extends Error{}class B{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Y(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const q=["post","put","patch","delete"],Z=new Set(q),V=["get",...q],X=new Set(V),J=new Set([301,302,303,307,308]),G=new Set([307,308]),K={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Q={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ee={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},te=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,re=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ne="remix-router-transitions";function oe(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,r=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,i=!r;let a;if(c(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;a=e=>({hasErrorBoundary:t(e)})}else a=re;let s,l,d,h={},p=g(e.routes,a,void 0,h),m=e.basename||"/",y=e.dataStrategy||pe,S=e.patchRoutesOnNavigation,E=n({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),T=null,_=new Set,x=null,C=null,O=null,R=null!=e.hydrationData,D=b(p,e.history.location,m),z=null;if(null==D&&!S){let t=Re(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=Oe(p);D=r,z={[n.id]:t}}if(D&&!e.hydrationData){lt(D,p,e.history.location.pathname).active&&(D=null)}if(D)if(D.some((e=>e.route.lazy)))l=!1;else if(D.some((e=>e.route.loader)))if(E.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=D.findIndex((e=>void 0!==r[e.route.id]));l=D.slice(0,e+1).every((e=>!ce(e.route,t,r)))}else l=D.every((e=>!ce(e.route,t,r)))}else l=null!=e.hydrationData;else l=!0;else if(l=!1,D=[],E.v7_partialHydration){let t=lt(null,p,e.history.location.pathname);t.active&&t.matches&&(D=t.matches)}let A,M,k={historyAction:e.history.action,location:e.history.location,matches:D,initialized:l,navigation:K,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||z,fetchers:new Map,blockers:new Map},L=o.Pop,I=!1,N=!1,j=new Map,U=null,F=!1,H=!1,$=[],W=new Set,B=new Map,q=0,Z=-1,V=new Map,X=new Set,J=new Map,oe=new Map,se=new Set,ue=new Map,de=new Map;function he(e,t){void 0===t&&(t={}),k=n({},k,e);let r=[],o=[];E.v7_fetcherPersist&&k.fetchers.forEach(((e,t)=>{"idle"===e.state&&(se.has(t)?o.push(t):r.push(t))})),[..._].forEach((e=>e(k,{deletedFetchers:o,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),E.v7_fetcherPersist&&(r.forEach((e=>k.fetchers.delete(e))),o.forEach((e=>Je(e))))}function we(t,r,i){var a,l;let c,{flushSync:u}=void 0===i?{}:i,d=null!=k.actionData&&null!=k.navigation.formMethod&&je(k.navigation.formMethod)&&"loading"===k.navigation.state&&!0!==(null==(a=t.state)?void 0:a._isRedirect);c=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:d?k.actionData:null;let f=r.loaderData?_e(k.loaderData,r.loaderData,r.matches||[],r.errors):k.loaderData,h=k.blockers;h.size>0&&(h=new Map(h),h.forEach(((e,t)=>h.set(t,ee))));let m,v=!0===I||null!=k.navigation.formMethod&&je(k.navigation.formMethod)&&!0!==(null==(l=t.state)?void 0:l._isRedirect);if(s&&(p=s,s=void 0),F||L===o.Pop||(L===o.Push?e.history.push(t,t.state):L===o.Replace&&e.history.replace(t,t.state)),L===o.Pop){let e=j.get(k.location.pathname);e&&e.has(t.pathname)?m={currentLocation:k.location,nextLocation:t}:j.has(t.pathname)&&(m={currentLocation:t,nextLocation:k.location})}else if(N){let e=j.get(k.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),j.set(k.location.pathname,e)),m={currentLocation:k.location,nextLocation:t}}he(n({},r,{actionData:c,loaderData:f,historyAction:L,location:t,initialized:!0,navigation:K,revalidation:"idle",restoreScrollPosition:st(t,r.matches||k.matches),preventScrollReset:v,blockers:h}),{viewTransitionOpts:m,flushSync:!0===u}),L=o.Pop,I=!1,N=!1,F=!1,H=!1,$=[]}async function Se(t,r,i){A&&A.abort(),A=null,L=t,F=!0===(i&&i.startUninterruptedRevalidation),function(e,t){if(x&&O){let r=at(e,t);x[r]=O()}}(k.location,k.matches),I=!0===(i&&i.preventScrollReset),N=!0===(i&&i.enableViewTransition);let a=s||p,l=i&&i.overrideNavigation,c=b(a,r,m),u=!0===(i&&i.flushSync),d=lt(c,a,r.pathname);if(d.active&&d.matches&&(c=d.matches),!c){let{error:e,notFoundMatches:t,route:n}=ot(r.pathname);return void we(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:u})}if(k.initialized&&!H&&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}(k.location,r)&&!(i&&i.submission&&je(i.submission.formMethod)))return void we(r,{matches:c},{flushSync:u});A=new AbortController;let f,h=be(e.history,r,A.signal,i&&i.submission);if(i&&i.pendingError)f=[Ce(c).route.id,{type:v.error,error:i.pendingError}];else if(i&&i.submission&&je(i.submission.formMethod)){let t=await async function(e,t,r,n,i,a){void 0===a&&(a={});Ne();let s,l=function(e,t){let r={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return r}(t,r);if(he({navigation:l},{flushSync:!0===a.flushSync}),i){let r=await ct(n,t.pathname,e.signal);if("aborted"===r.type)return{shortCircuited:!0};if("error"===r.type){let e=Ce(r.partialMatches).route.id;return{matches:r.partialMatches,pendingActionResult:[e,{type:v.error,error:r.error}]}}if(!r.matches){let{notFoundMatches:e,error:r,route:n}=ot(t.pathname);return{matches:e,pendingActionResult:[n.id,{type:v.error,error:r}]}}n=r.matches}let c=We(n,t);if(c.route.action||c.route.lazy){if(s=(await Le("action",k,e,[c],n,null))[c.route.id],e.signal.aborted)return{shortCircuited:!0}}else s={type:v.error,error:Re(405,{method:e.method,pathname:t.pathname,routeId:c.route.id})};if(Pe(s)){let t;if(a&&null!=a.replace)t=a.replace;else{t=ge(s.response.headers.get("Location"),new URL(e.url),m)===k.location.pathname+k.location.search}return await ze(e,s,!0,{submission:r,replace:t}),{shortCircuited:!0}}if(Me(s))throw Re(400,{type:"defer-action"});if(ke(s)){let e=Ce(n,c.route.id);return!0!==(a&&a.replace)&&(L=o.Push),{matches:n,pendingActionResult:[e.route.id,s]}}return{matches:n,pendingActionResult:[c.route.id,s]}}(h,r,i.submission,c,d.active,{replace:i.replace,flushSync:u});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,n]=t.pendingActionResult;if(ke(n)&&Y(n.error)&&404===n.error.status)return A=null,void we(r,{matches:t.matches,loaderData:{},errors:{[e]:n.error}})}c=t.matches||c,f=t.pendingActionResult,l=Ye(r,i.submission),u=!1,d.active=!1,h=be(e.history,h.url,h.signal)}let{shortCircuited:y,matches:g,loaderData:w,errors:S}=await async function(t,r,o,i,a,l,c,u,d,f,h){let v=a||Ye(r,l),y=l||c||Be(v),g=!(F||E.v7_partialHydration&&d);if(i){if(g){let e=Ee(h);he(n({navigation:v},void 0!==e?{actionData:e}:{}),{flushSync:f})}let e=await ct(o,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Ce(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:n}=ot(r.pathname);return{matches:t,loaderData:{},errors:{[n.id]:e}}}o=e.matches}let b=s||p,[w,S]=le(e.history,k,o,y,r,E.v7_partialHydration&&!0===d,E.v7_skipActionErrorRevalidation,H,$,W,se,J,X,b,m,h);if(it((e=>!(o&&o.some((t=>t.route.id===e)))||w&&w.some((t=>t.route.id===e)))),Z=++q,0===w.length&&0===S.length){let e=Qe();return we(r,n({matches:o,loaderData:{},errors:h&&ke(h[1])?{[h[0]]:h[1].error}:null},xe(h),e?{fetchers:new Map(k.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(g){let e={};if(!i){e.navigation=v;let t=Ee(h);void 0!==t&&(e.actionData=t)}S.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=k.fetchers.get(e.key),r=qe(void 0,t?t.data:void 0);k.fetchers.set(e.key,r)})),new Map(k.fetchers)}(S)),he(e,{flushSync:f})}S.forEach((e=>{Ge(e.key),e.controller&&B.set(e.key,e.controller)}));let T=()=>S.forEach((e=>Ge(e.key)));A&&A.signal.addEventListener("abort",T);let{loaderResults:_,fetcherResults:x}=await Ie(k,o,w,S,t);if(t.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",T);S.forEach((e=>B.delete(e.key)));let C=De(_);if(C)return await ze(t,C.result,!0,{replace:u}),{shortCircuited:!0};if(C=De(x),C)return X.add(C.key),await ze(t,C.result,!0,{replace:u}),{shortCircuited:!0};let{loaderData:O,errors:R}=Te(k,o,_,h,S,x,ue);ue.forEach(((e,t)=>{e.subscribe((r=>{(r||e.done)&&ue.delete(t)}))})),E.v7_partialHydration&&d&&k.errors&&(R=n({},k.errors,R));let D=Qe(),z=et(Z),M=D||z||S.length>0;return n({matches:o,loaderData:O,errors:R},M?{fetchers:new Map(k.fetchers)}:{})}(h,r,c,d.active,l,i&&i.submission,i&&i.fetcherSubmission,i&&i.replace,i&&!0===i.initialHydration,u,f);y||(A=null,we(r,n({matches:g||c},xe(f),{loaderData:w,errors:S})))}function Ee(e){return e&&!ke(e[1])?{[e[0]]:e[1].data}:k.actionData?0===Object.keys(k.actionData).length?null:k.actionData:void 0}async function ze(i,a,s,l){let{submission:u,fetcherSubmission:d,preventScrollReset:h,replace:p}=void 0===l?{}:l;a.response.headers.has("X-Remix-Revalidate")&&(H=!0);let v=a.response.headers.get("Location");c(v,"Expected a Location header on the redirect Response"),v=ge(v,new URL(i.url),m);let y=f(k.location,v,{_isRedirect:!0});if(r){let r=!1;if(a.response.headers.has("X-Remix-Reload-Document"))r=!0;else if(te.test(v)){const n=e.history.createURL(v);r=n.origin!==t.location.origin||null==P(n.pathname,m)}if(r)return void(p?t.location.replace(v):t.location.assign(v))}A=null;let g=!0===p||a.response.headers.has("X-Remix-Replace")?o.Replace:o.Push,{formMethod:b,formAction:w,formEncType:S}=k.navigation;!u&&!d&&b&&w&&S&&(u=Be(k.navigation));let E=u||d;if(G.has(a.response.status)&&E&&je(E.formMethod))await Se(g,y,{submission:n({},E,{formAction:v}),preventScrollReset:h||I,enableViewTransition:s?N:void 0});else{let e=Ye(y,u);await Se(g,y,{overrideNavigation:e,fetcherSubmission:d,preventScrollReset:h||I,enableViewTransition:s?N:void 0})}}async function Le(e,t,r,n,o,i){let s,l={};try{s=await me(y,e,t,r,n,o,i,h,a)}catch(e){return n.forEach((t=>{l[t.route.id]={type:v.error,error:e}})),l}for(let[e,t]of Object.entries(s))if(Ae(t)){let n=t.result;l[e]={type:v.redirect,response:ye(n,r,e,o,m,E.v7_relativeSplatPath)}}else l[e]=await ve(t);return l}async function Ie(t,r,n,o,i){let a=t.matches,s=Le("loader",t,i,n,r,null),l=Promise.all(o.map((async r=>{if(r.matches&&r.match&&r.controller){let n=(await Le("loader",t,be(e.history,r.path,r.controller.signal),[r.match],r.matches,r.key))[r.match.route.id];return{[r.key]:n}}return Promise.resolve({[r.key]:{type:v.error,error:Re(404,{pathname:r.path})}})}))),c=await s,u=(await l).reduce(((e,t)=>Object.assign(e,t)),{});return await Promise.all([Ue(r,c,i.signal,a,t.loaderData),Fe(r,u,o)]),{loaderResults:c,fetcherResults:u}}function Ne(){H=!0,$.push(...it()),J.forEach(((e,t)=>{B.has(t)&&W.add(t),Ge(t)}))}function $e(e,t,r){void 0===r&&(r={}),k.fetchers.set(e,t),he({fetchers:new Map(k.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Ve(e,t,r,n){void 0===n&&(n={});let o=Ce(k.matches,t);Je(e),he({errors:{[o.route.id]:r},fetchers:new Map(k.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Xe(e){return E.v7_fetcherPersist&&(oe.set(e,(oe.get(e)||0)+1),se.has(e)&&se.delete(e)),k.fetchers.get(e)||Q}function Je(e){let t=k.fetchers.get(e);!B.has(e)||t&&"loading"===t.state&&V.has(e)||Ge(e),J.delete(e),V.delete(e),X.delete(e),se.delete(e),W.delete(e),k.fetchers.delete(e)}function Ge(e){let t=B.get(e);t&&(t.abort(),B.delete(e))}function Ke(e){for(let t of e){let e=Ze(Xe(t).data);k.fetchers.set(t,e)}}function Qe(){let e=[],t=!1;for(let r of X){let n=k.fetchers.get(r);c(n,"Expected fetcher: "+r),"loading"===n.state&&(X.delete(r),e.push(r),t=!0)}return Ke(e),t}function et(e){let t=[];for(let[r,n]of V)if(n<e){let e=k.fetchers.get(r);c(e,"Expected fetcher: "+r),"loading"===e.state&&(Ge(r),V.delete(r),t.push(r))}return Ke(t),t.length>0}function tt(e){k.blockers.delete(e),de.delete(e)}function rt(e,t){let r=k.blockers.get(e)||ee;c("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(k.blockers);n.set(e,t),he({blockers:n})}function nt(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===de.size)return;de.size>1&&u(!1,"A router only supports one blocker at a time");let o=Array.from(de.entries()),[i,a]=o[o.length-1],s=k.blockers.get(i);return s&&"proceeding"===s.state?void 0:a({currentLocation:t,nextLocation:r,historyAction:n})?i:void 0}function ot(e){let t=Re(404,{pathname:e}),r=s||p,{matches:n,route:o}=Oe(r);return it(),{notFoundMatches:n,route:o,error:t}}function it(e){let t=[];return ue.forEach(((r,n)=>{e&&!e(n)||(r.cancel(),t.push(n),ue.delete(n))})),t}function at(e,t){if(C){return C(e,t.map((e=>function(e,t){let{route:r,pathname:n,params:o}=e;return{id:r.id,pathname:n,params:o,data:t[r.id],handle:r.handle}}(e,k.loaderData))))||e.key}return e.key}function st(e,t){if(x){let r=at(e,t),n=x[r];if("number"==typeof n)return n}return null}function lt(e,t,r){if(S){if(!e){return{active:!0,matches:w(t,r,m,!0)||[]}}if(Object.keys(e[0].params).length>0){return{active:!0,matches:w(t,r,m,!0)}}}return{active:!1,matches:null}}async function ct(e,t,r){if(!S)return{type:"success",matches:e};let n=e;for(;;){let e=null==s,o=s||p,i=h;try{await S({path:t,matches:n,patch:(e,t)=>{r.aborted||fe(e,t,o,i,a)}})}catch(e){return{type:"error",error:e,partialMatches:n}}finally{e&&!r.aborted&&(p=[...p])}if(r.aborted)return{type:"aborted"};let l=b(o,t,m);if(l)return{type:"success",matches:l};let c=w(o,t,m,!0);if(!c||n.length===c.length&&n.every(((e,t)=>e.route.id===c[t].route.id)))return{type:"success",matches:null};n=c}}return d={get basename(){return m},get future(){return E},get state(){return k},get routes(){return p},get window(){return t},initialize:function(){if(T=e.history.listen((t=>{let{action:r,location:n,delta:o}=t;if(M)return M(),void(M=void 0);u(0===de.size||null!=o,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=nt({currentLocation:k.location,nextLocation:n,historyAction:r});if(i&&null!=o){let t=new Promise((e=>{M=e}));return e.history.go(-1*o),void rt(i,{state:"blocked",location:n,proceed(){rt(i,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(o)))},reset(){let e=new Map(k.blockers);e.set(i,ee),he({blockers:e})}})}return Se(r,n)})),r){!function(e,t){try{let r=e.sessionStorage.getItem(ne);if(r){let e=JSON.parse(r);for(let[r,n]of Object.entries(e||{}))n&&Array.isArray(n)&&t.set(r,new Set(n||[]))}}catch(e){}}(t,j);let e=()=>function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(ne,JSON.stringify(r))}catch(e){u(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,j);t.addEventListener("pagehide",e),U=()=>t.removeEventListener("pagehide",e)}return k.initialized||Se(o.Pop,k.location,{initialHydration:!0}),d},subscribe:function(e){return _.add(e),()=>_.delete(e)},enableScrollRestoration:function(e,t,r){if(x=e,O=t,C=r||null,!R&&k.navigation===K){R=!0;let e=st(k.location,k.matches);null!=e&&he({restoreScrollPosition:e})}return()=>{x=null,O=null,C=null}},navigate:async function t(r,i){if("number"==typeof r)return void e.history.go(r);let a=ie(k.location,k.matches,m,E.v7_prependBasename,r,E.v7_relativeSplatPath,null==i?void 0:i.fromRouteId,null==i?void 0:i.relative),{path:s,submission:l,error:c}=ae(E.v7_normalizeFormMethod,!1,a,i),u=k.location,d=f(k.location,s,i&&i.state);d=n({},d,e.history.encodeLocation(d));let h=i&&null!=i.replace?i.replace:void 0,p=o.Push;!0===h?p=o.Replace:!1===h||null!=l&&je(l.formMethod)&&l.formAction===k.location.pathname+k.location.search&&(p=o.Replace);let v=i&&"preventScrollReset"in i?!0===i.preventScrollReset:void 0,y=!0===(i&&i.flushSync),g=nt({currentLocation:u,nextLocation:d,historyAction:p});if(!g)return await Se(p,d,{submission:l,pendingError:c,preventScrollReset:v,replace:i&&i.replace,enableViewTransition:i&&i.viewTransition,flushSync:y});rt(g,{state:"blocked",location:d,proceed(){rt(g,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),t(r,i)},reset(){let e=new Map(k.blockers);e.set(g,ee),he({blockers:e})}})},fetch:function(t,r,n,o){if(i)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Ge(t);let a=!0===(o&&o.flushSync),l=s||p,u=ie(k.location,k.matches,m,E.v7_prependBasename,n,E.v7_relativeSplatPath,r,null==o?void 0:o.relative),d=b(l,u,m),f=lt(d,l,u);if(f.active&&f.matches&&(d=f.matches),!d)return void Ve(t,r,Re(404,{pathname:u}),{flushSync:a});let{path:h,submission:v,error:y}=ae(E.v7_normalizeFormMethod,!0,u,o);if(y)return void Ve(t,r,y,{flushSync:a});let g=We(d,h),w=!0===(o&&o.preventScrollReset);v&&je(v.formMethod)?async function(t,r,n,o,i,a,l,u,d){function f(e){if(!e.route.action&&!e.route.lazy){let e=Re(405,{method:d.formMethod,pathname:n,routeId:r});return Ve(t,r,e,{flushSync:l}),!0}return!1}if(Ne(),J.delete(t),!a&&f(o))return;let h=k.fetchers.get(t);$e(t,function(e,t){let r={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 r}(d,h),{flushSync:l});let v=new AbortController,y=be(e.history,n,v.signal,d);if(a){let e=await ct(i,n,y.signal);if("aborted"===e.type)return;if("error"===e.type)return void Ve(t,r,e.error,{flushSync:l});if(!e.matches)return void Ve(t,r,Re(404,{pathname:n}),{flushSync:l});if(f(o=We(i=e.matches,n)))return}B.set(t,v);let g=q,w=await Le("action",k,y,[o],i,t),S=w[o.route.id];if(y.signal.aborted)return void(B.get(t)===v&&B.delete(t));if(E.v7_fetcherPersist&&se.has(t)){if(Pe(S)||ke(S))return void $e(t,Ze(void 0))}else{if(Pe(S))return B.delete(t),Z>g?void $e(t,Ze(void 0)):(X.add(t),$e(t,qe(d)),ze(y,S,!1,{fetcherSubmission:d,preventScrollReset:u}));if(ke(S))return void Ve(t,r,S.error)}if(Me(S))throw Re(400,{type:"defer-action"});let T=k.navigation.location||k.location,_=be(e.history,T,v.signal),x=s||p,C="idle"!==k.navigation.state?b(x,k.navigation.location,m):k.matches;c(C,"Didn't find any matches after fetcher action");let O=++q;V.set(t,O);let R=qe(d,S.data);k.fetchers.set(t,R);let[D,z]=le(e.history,k,C,d,T,!1,E.v7_skipActionErrorRevalidation,H,$,W,se,J,X,x,m,[o.route.id,S]);z.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,r=k.fetchers.get(t),n=qe(void 0,r?r.data:void 0);k.fetchers.set(t,n),Ge(t),e.controller&&B.set(t,e.controller)})),he({fetchers:new Map(k.fetchers)});let M=()=>z.forEach((e=>Ge(e.key)));v.signal.addEventListener("abort",M);let{loaderResults:P,fetcherResults:I}=await Ie(k,C,D,z,_);if(v.signal.aborted)return;v.signal.removeEventListener("abort",M),V.delete(t),B.delete(t),z.forEach((e=>B.delete(e.key)));let N=De(P);if(N)return ze(_,N.result,!1,{preventScrollReset:u});if(N=De(I),N)return X.add(N.key),ze(_,N.result,!1,{preventScrollReset:u});let{loaderData:j,errors:U}=Te(k,C,P,void 0,z,I,ue);if(k.fetchers.has(t)){let e=Ze(S.data);k.fetchers.set(t,e)}et(O),"loading"===k.navigation.state&&O>Z?(c(L,"Expected pending action"),A&&A.abort(),we(k.navigation.location,{matches:C,loaderData:j,errors:U,fetchers:new Map(k.fetchers)})):(he({errors:U,loaderData:_e(k.loaderData,j,C,U),fetchers:new Map(k.fetchers)}),H=!1)}(t,r,h,g,d,f.active,a,w,v):(J.set(t,{routeId:r,path:h}),async function(t,r,n,o,i,a,s,l,u){let d=k.fetchers.get(t);$e(t,qe(u,d?d.data:void 0),{flushSync:s});let f=new AbortController,h=be(e.history,n,f.signal);if(a){let e=await ct(i,n,h.signal);if("aborted"===e.type)return;if("error"===e.type)return void Ve(t,r,e.error,{flushSync:s});if(!e.matches)return void Ve(t,r,Re(404,{pathname:n}),{flushSync:s});o=We(i=e.matches,n)}B.set(t,f);let p=q,m=await Le("loader",k,h,[o],i,t),v=m[o.route.id];Me(v)&&(v=await He(v,h.signal,!0)||v);B.get(t)===f&&B.delete(t);if(h.signal.aborted)return;if(se.has(t))return void $e(t,Ze(void 0));if(Pe(v))return Z>p?void $e(t,Ze(void 0)):(X.add(t),void await ze(h,v,!1,{preventScrollReset:l}));if(ke(v))return void Ve(t,r,v.error);c(!Me(v),"Unhandled fetcher deferred data"),$e(t,Ze(v.data))}(t,r,h,g,d,f.active,a,w,v))},revalidate:function(){Ne(),he({revalidation:"loading"}),"submitting"!==k.navigation.state&&("idle"!==k.navigation.state?Se(L||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:!0===N}):Se(k.historyAction,k.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Xe,deleteFetcher:function(e){if(E.v7_fetcherPersist){let t=(oe.get(e)||0)-1;t<=0?(oe.delete(e),se.add(e)):oe.set(e,t)}else Je(e);he({fetchers:new Map(k.fetchers)})},dispose:function(){T&&T(),U&&U(),_.clear(),A&&A.abort(),k.fetchers.forEach(((e,t)=>Je(t))),k.blockers.forEach(((e,t)=>tt(t)))},getBlocker:function(e,t){let r=k.blockers.get(e)||ee;return de.get(e)!==t&&de.set(e,t),r},deleteBlocker:tt,patchRoutes:function(e,t){let r=null==s;fe(e,t,s||p,h,a),r&&(p=[...p],he({}))},_internalFetchControllers:B,_internalActiveDeferreds:ue,_internalSetRoutes:function(e){h={},s=g(e,a,void 0,h)}},d}Symbol("deferred");function ie(e,t,r,n,o,i,a,s){let l,c;if(a){l=[];for(let e of t)if(l.push(e),e.route.id===a){c=e;break}}else l=t,c=t[t.length-1];let u=j(o||".",N(l,i),P(e.pathname,r)||e.pathname,"path"===s);if(null==o&&(u.search=e.search,u.hash=e.hash),(null==o||""===o||"."===o)&&c){let e=$e(u.search);if(c.route.index&&!e)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&e){let e=new URLSearchParams(u.search),t=e.getAll("index");e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let r=e.toString();u.search=r?"?"+r:""}}return n&&"/"!==r&&(u.pathname="/"===u.pathname?r:U([r,u.pathname])),h(u)}function ae(e,t,r,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:r};if(n.formMethod&&!Ne(n.formMethod))return{path:r,error:Re(405,{method:n.formMethod})};let o,i,a=()=>({path:r,error:Re(400,{type:"invalid-body"})}),s=n.formMethod||"get",l=e?s.toUpperCase():s.toLowerCase(),u=ze(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!je(l))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)=>{let[r,n]=t;return""+e+r+"="+n+"\n"}),""):String(n.body);return{path:r,submission:{formMethod:l,formAction:u,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!je(l))return a();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:l,formAction:u,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return a()}}}if(c("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=we(n.formData),i=n.formData;else if(n.body instanceof FormData)o=we(n.body),i=n.body;else if(n.body instanceof URLSearchParams)o=n.body,i=Se(o);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=Se(o)}catch(e){return a()}let d={formMethod:l,formAction:u,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(je(d.formMethod))return{path:r,submission:d};let f=p(r);return t&&f.search&&$e(f.search)&&o.append("index",""),f.search="?"+o,{path:h(f),submission:d}}function se(e,t,r){void 0===r&&(r=!1);let n=e.findIndex((e=>e.route.id===t));return n>=0?e.slice(0,r?n+1:n):e}function le(e,t,r,o,i,a,s,l,c,u,d,f,h,p,m,v){let y=v?ke(v[1])?v[1].error:v[1].data:void 0,g=e.createURL(t.location),w=e.createURL(i),S=r;a&&t.errors?S=se(r,Object.keys(t.errors)[0],!0):v&&ke(v[1])&&(S=se(r,v[0]));let E=v?v[1].statusCode:void 0,T=s&&E&&E>=400,_=S.filter(((e,r)=>{let{route:i}=e;if(i.lazy)return!0;if(null==i.loader)return!1;if(a)return ce(i,t.loaderData,t.errors);if(function(e,t,r){let n=!t||r.route.id!==t.route.id,o=void 0===e[r.route.id];return n||o}(t.loaderData,t.matches[r],e)||c.some((t=>t===e.route.id)))return!0;let s=t.matches[r],u=e;return de(e,n({currentUrl:g,currentParams:s.params,nextUrl:w,nextParams:u.params},o,{actionResult:y,actionStatus:E,defaultShouldRevalidate:!T&&(l||g.pathname+g.search===w.pathname+w.search||g.search!==w.search||ue(s,u))}))})),x=[];return f.forEach(((e,i)=>{if(a||!r.some((t=>t.route.id===e.routeId))||d.has(i))return;let s=b(p,e.path,m);if(!s)return void x.push({key:i,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let c=t.fetchers.get(i),f=We(s,e.path),v=!1;h.has(i)?v=!1:u.has(i)?(u.delete(i),v=!0):v=c&&"idle"!==c.state&&void 0===c.data?l:de(f,n({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},o,{actionResult:y,actionStatus:E,defaultShouldRevalidate:!T&&l})),v&&x.push({key:i,routeId:e.routeId,path:e.path,matches:s,match:f,controller:new AbortController})})),[_,x]}function ce(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=null!=t&&void 0!==t[e.id],o=null!=r&&void 0!==r[e.id];return!(!n&&o)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!o)}function ue(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function de(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function fe(e,t,r,n,o){var i;let a;if(e){let t=n[e];c(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),a=t.children}else a=r;let s=g(t.filter((e=>!a.some((t=>he(e,t))))),o,[e||"_","patch",String((null==(i=a)?void 0:i.length)||"0")],n);a.push(...s)}function he(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,r)=>{var n;return null==(n=t.children)?void 0:n.some((t=>he(e,t)))})))}async function pe(e){let{matches:t}=e,r=t.filter((e=>e.shouldLoad));return(await Promise.all(r.map((e=>e.resolve())))).reduce(((e,t,n)=>Object.assign(e,{[r[n].route.id]:t})),{})}async function me(e,t,r,o,i,a,s,l,d,f){let h=a.map((e=>e.route.lazy?async function(e,t,r){if(!e.lazy)return;let o=await e.lazy();if(!e.lazy)return;let i=r[e.id];c(i,"No route found in manifest");let a={};for(let e in o){let t=void 0!==i[e]&&"hasErrorBoundary"!==e;u(!t,'Route "'+i.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||y.has(e)||(a[e]=o[e])}Object.assign(i,a),Object.assign(i,n({},t(i),{lazy:void 0}))}(e.route,d,l):void 0)),p=a.map(((e,r)=>{let a=h[r],s=i.some((t=>t.route.id===e.route.id));return n({},e,{shouldLoad:s,resolve:async r=>(r&&"GET"===o.method&&(e.route.lazy||e.route.loader)&&(s=!0),s?async function(e,t,r,n,o,i){let a,s,l=n=>{let a,l=new Promise(((e,t)=>a=t));s=()=>a(),t.signal.addEventListener("abort",s);let c=o=>"function"!=typeof n?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+r.route.id+"]")):n({request:t,params:r.params,context:i},...void 0!==o?[o]:[]),u=(async()=>{try{return{type:"data",result:await(o?o((e=>c(e))):c())}}catch(e){return{type:"error",result:e}}})();return Promise.race([u,l])};try{let o=r.route[e];if(n)if(o){let e,[t]=await Promise.all([l(o).catch((t=>{e=t})),n]);if(void 0!==e)throw e;a=t}else{if(await n,o=r.route[e],!o){if("action"===e){let e=new URL(t.url),n=e.pathname+e.search;throw Re(405,{method:t.method,pathname:n,routeId:r.route.id})}return{type:v.data,result:void 0}}a=await l(o)}else{if(!o){let e=new URL(t.url);throw Re(404,{pathname:e.pathname+e.search})}a=await l(o)}c(void 0!==a.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+r.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:v.error,result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return a}(t,o,e,a,r,f):Promise.resolve({type:v.data,result:void 0}))})})),m=await e({matches:p,request:o,params:a[0].params,fetcherKey:s,context:f});try{await Promise.all(h)}catch(e){}return m}async function ve(e){let{result:t,type:r}=e;if(Ie(t)){let e;try{let r=t.headers.get("Content-Type");e=r&&/\bapplication\/json\b/.test(r)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:v.error,error:e}}return r===v.error?{type:v.error,error:new B(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:v.data,data:e,statusCode:t.status,headers:t.headers}}if(r===v.error){if(Le(t)){var n,o;if(t.data instanceof Error)return{type:v.error,error:t.data,statusCode:null==(o=t.init)?void 0:o.status};t=new B((null==(n=t.init)?void 0:n.status)||500,void 0,t.data)}return{type:v.error,error:t,statusCode:Y(t)?t.status:void 0}}var i,a,s,l;return function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:v.deferred,deferredData:t,statusCode:null==(i=t.init)?void 0:i.status,headers:(null==(a=t.init)?void 0:a.headers)&&new Headers(t.init.headers)}:Le(t)?{type:v.data,data:t.data,statusCode:null==(s=t.init)?void 0:s.status,headers:null!=(l=t.init)&&l.headers?new Headers(t.init.headers):void 0}:{type:v.data,data:t}}function ye(e,t,r,n,o,i){let a=e.headers.get("Location");if(c(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!te.test(a)){let s=n.slice(0,n.findIndex((e=>e.route.id===r))+1);a=ie(new URL(t.url),s,o,!0,a,i),e.headers.set("Location",a)}return e}function ge(e,t,r){if(te.test(e)){let n=e,o=n.startsWith("//")?new URL(t.protocol+n):new URL(n),i=null!=P(o.pathname,r);if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function be(e,t,r,n){let o=e.createURL(ze(t)).toString(),i={signal:r};if(n&&je(n.formMethod)){let{formMethod:e,formEncType:t}=n;i.method=e.toUpperCase(),"application/json"===t?(i.headers=new Headers({"Content-Type":t}),i.body=JSON.stringify(n.json)):"text/plain"===t?i.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?i.body=we(n.formData):i.body=n.formData}return new Request(o,i)}function we(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function Se(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Ee(e,t,r,n,o){let i,a={},s=null,l=!1,u={},d=r&&ke(r[1])?r[1].error:void 0;return e.forEach((r=>{if(!(r.route.id in t))return;let f=r.route.id,h=t[f];if(c(!Pe(h),"Cannot handle redirect results in processLoaderData"),ke(h)){let t=h.error;if(void 0!==d&&(t=d,d=void 0),s=s||{},o)s[f]=t;else{let r=Ce(e,f);null==s[r.route.id]&&(s[r.route.id]=t)}a[f]=void 0,l||(l=!0,i=Y(h.error)?h.error.status:500),h.headers&&(u[f]=h.headers)}else Me(h)?(n.set(f,h.deferredData),a[f]=h.deferredData.data,null==h.statusCode||200===h.statusCode||l||(i=h.statusCode),h.headers&&(u[f]=h.headers)):(a[f]=h.data,h.statusCode&&200!==h.statusCode&&!l&&(i=h.statusCode),h.headers&&(u[f]=h.headers))})),void 0!==d&&r&&(s={[r[0]]:d},a[r[0]]=void 0),{loaderData:a,errors:s,statusCode:i||200,loaderHeaders:u}}function Te(e,t,r,o,i,a,s){let{loaderData:l,errors:u}=Ee(t,r,o,s,!1);return i.forEach((t=>{let{key:r,match:o,controller:i}=t,s=a[r];if(c(s,"Did not find corresponding fetcher result"),!i||!i.signal.aborted)if(ke(s)){let t=Ce(e.matches,null==o?void 0:o.route.id);u&&u[t.route.id]||(u=n({},u,{[t.route.id]:s.error})),e.fetchers.delete(r)}else if(Pe(s))c(!1,"Unhandled fetcher revalidation redirect");else if(Me(s))c(!1,"Unhandled fetcher deferred data");else{let t=Ze(s.data);e.fetchers.set(r,t)}})),{loaderData:l,errors:u}}function _e(e,t,r,o){let i=n({},t);for(let n of r){let r=n.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(i[r]=t[r]):void 0!==e[r]&&n.route.loader&&(i[r]=e[r]),o&&o.hasOwnProperty(r))break}return i}function xe(e){return e?ke(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ce(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 Oe(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 Re(e,t){let{pathname:r,routeId:n,method:o,type:i,message:a}=void 0===t?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(s="Bad Request",o&&r&&n?l="You made a "+o+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===i?l="defer() is not supported in actions":"invalid-body"===i&&(l="Unable to encode submission body")):403===e?(s="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):404===e?(s="Not Found",l='No route matches URL "'+r+'"'):405===e&&(s="Method Not Allowed",o&&r&&n?l="You made a "+o.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new B(e||500,s,new Error(l),!0)}function De(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(Pe(n))return{key:r,result:n}}}function ze(e){return h(n({},"string"==typeof e?p(e):e,{hash:""}))}function Ae(e){return Ie(e.result)&&J.has(e.result.status)}function Me(e){return e.type===v.deferred}function ke(e){return e.type===v.error}function Pe(e){return(e&&e.type)===v.redirect}function Le(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Ie(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Ne(e){return X.has(e.toLowerCase())}function je(e){return Z.has(e.toLowerCase())}async function Ue(e,t,r,n,o){let i=Object.entries(t);for(let a=0;a<i.length;a++){let[s,l]=i[a],c=e.find((e=>(null==e?void 0:e.route.id)===s));if(!c)continue;let u=n.find((e=>e.route.id===c.route.id)),d=null!=u&&!ue(u,c)&&void 0!==(o&&o[c.route.id]);Me(l)&&d&&await He(l,r,!1).then((e=>{e&&(t[s]=e)}))}}async function Fe(e,t,r){for(let n=0;n<r.length;n++){let{key:o,routeId:i,controller:a}=r[n],s=t[o];e.find((e=>(null==e?void 0:e.route.id)===i))&&(Me(s)&&(c(a,"Expected an AbortController for revalidating fetcher deferred result"),await He(s,a.signal,!0).then((e=>{e&&(t[o]=e)}))))}}async function He(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:v.data,data:e.deferredData.unwrappedData}}catch(e){return{type:v.error,error:e}}return{type:v.data,data:e.deferredData.data}}}function $e(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function We(e,t){let r="string"==typeof t?p(t).search:t.search;if(e[e.length-1].route.index&&$e(r||""))return e[e.length-1];let n=I(e);return n[n.length-1]}function Be(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:i,json:a}=e;if(t&&r&&n)return null!=o?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o}:null!=i?{formMethod:t,formAction:r,formEncType:n,formData:i,json:void 0,text:void 0}:void 0!==a?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}:void 0}function Ye(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 qe(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 Ze(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}},45228:e=>{"use strict";
|
|
13
|
+
/*
|
|
14
|
+
object-assign
|
|
15
|
+
(c) Sindre Sorhus
|
|
16
|
+
@license MIT
|
|
17
|
+
*/var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))r.call(i,c)&&(s[c]=i[c]);if(t){a=t(i);for(var u=0;u<a.length;u++)n.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s}},48067:(e,t)=>{"use strict";t.YW=function(e,t={}){const{decode:o=decodeURIComponent,loose:i=!0,delimiter:a=r}=t,s=y(e,t),l=f(i,a),c=s.keys.map((e=>{if(o&&("+"===e.modifier||"*"===e.modifier)){const{prefix:t="",suffix:r="",separator:n=r+t}=e,i=new RegExp(l(n),"g");return e=>e.split(i).map(o)}return o||n}));return function(e){const t=s.exec(e);if(!t)return!1;const{0:r,index:n}=t,o=Object.create(null);for(let e=1;e<t.length;e++){if(void 0===t[e])continue;const r=s.keys[e-1],n=c[e-1];o[r.name]=n(t[e])}return{path:r,index:n,params:o}}};const r="/",n=e=>e,o=/^\p{XID_Continue}$/u,i="https://git.new/pathToRegexpError",a={"!":"!","@":"@",";":";",",":",","*":"*","+":"+","?":"?","{":"{","}":"}"};class s{constructor(e){this.tokens=e,this.index=0}peek(){return this.tokens[this.index]}tryConsume(e){const t=this.peek();if(t.type===e)return this.index++,t.value}consume(e){const t=this.tryConsume(e);if(void 0!==t)return t;const{type:r,index:n}=this.peek();throw new TypeError(`Unexpected ${r} at ${n}, expected ${e}: ${i}`)}text(){let e,t="";for(;e=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)t+=e;return t}modifier(){return this.tryConsume("?")||this.tryConsume("*")||this.tryConsume("+")}}class l{constructor(e,t){this.tokens=e,this.delimiter=t}}function c(e,t={}){const{encodePath:c=n,delimiter:d=c(r)}=t,f=[],h=function(e){const t=[...e],r=[];let n=0;for(;n<t.length;){const e=t[n],i=a[e];if(i)r.push({type:i,index:n++,value:e});else if("\\"!==e)if(":"!==e)if("("!==e)r.push({type:"CHAR",index:n,value:t[n++]});else{const e=n++;let o=1,i="";if("?"===t[n])throw new TypeError(`Pattern cannot start with "?" at ${n}`);for(;n<t.length;)if("\\"!==t[n]){if(")"===t[n]){if(o--,0===o){n++;break}}else if("("===t[n]&&(o++,"?"!==t[n+1]))throw new TypeError(`Capturing groups are not allowed at ${n}`);i+=t[n++]}else i+=t[n++]+t[n++];if(o)throw new TypeError(`Unbalanced pattern at ${e}`);if(!i)throw new TypeError(`Missing pattern at ${e}`);r.push({type:"PATTERN",index:n,value:i})}else{let e="";for(;o.test(t[++n]);)e+=t[n];if(!e)throw new TypeError(`Missing parameter name at ${n}`);r.push({type:"NAME",index:n,value:e})}else r.push({type:"ESCAPED",index:n++,value:t[n++]})}return r.push({type:"END",index:n,value:""}),new s(r)}(e);let p=0;for(;;){const e=h.text();e&&f.push(c(e));const t=h.tryConsume("NAME"),r=h.tryConsume("PATTERN");if(t||r){f.push({name:t||String(p++),pattern:r});const e=h.peek();if("*"===e.type)throw new TypeError(`Unexpected * at ${e.index}, you probably want \`/*\` or \`{/:foo}*\`: ${i}`);continue}if(h.tryConsume("*")){f.push({name:String(p++),pattern:`(?:(?!${u(d)}).)*`,modifier:"*",separator:d});continue}if(!h.tryConsume("{")){h.consume("END");break}{const e=h.text(),t=h.tryConsume("NAME"),r=h.tryConsume("PATTERN"),n=h.text(),o=h.tryConsume(";")&&h.text();h.consume("}");const i=h.modifier();f.push({name:t||(r?String(p++):""),prefix:c(e),suffix:c(n),pattern:r,modifier:i,separator:o})}}return new l(f,d)}function u(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function d(e,t){const r=u(e);return t?`(?:${r})+(?!${r})`:r}function f(e,t){if(!e)return u;const r=new RegExp(`(?:(?!${u(t)}).)+|(.)`,"g");return e=>e.replace(r,d)}function h(e){return e.sensitive?"":"i"}function p(e,t,r,n){const o=e instanceof l?e:c(e,n),{trailing:i=!0,loose:a=!0,start:s=!0,end:d=!0,strict:h=!1}=n,p=f(a,o.delimiter);let v=s?"^":"";return v+=m(o,p,t,r,h).join(""),i&&(v+=`(?:${p(o.delimiter)}$)?`),v+=d?"$":`(?=${u(o.delimiter)}|$)`,v}function m(e,t,r,n,o){const a=`(?:(?!${u(e.delimiter)}).)+?`;let s="",l=!0;return e.tokens.map((e=>{if("string"==typeof e)return s=e,t(e);const{prefix:c="",suffix:u="",separator:d=u+c,modifier:f=""}=e,h=t(c),p=t(u);if(e.name){const m=e.pattern?`(?:${e.pattern})`:a,y=function(e,t,r){try{return new RegExp(`^${e}$`,r)}catch(e){throw new TypeError(`Invalid pattern for "${t}": ${e.message}`)}}(m,e.name,n);if(l||(l=v(y,c||s)),!l)throw new TypeError(`Ambiguous pattern for "${e.name}": ${i}`);if(l=!o||v(y,u),s="",r.push(e),"+"===f||"*"===f){const r="*"===f?"?":"",n=t(d);if(!n)throw new TypeError(`Missing separator for "${e.name}": ${i}`);if(l||(l=!o||v(y,d)),!l)throw new TypeError(`Ambiguous pattern for "${e.name}" separator: ${i}`);return l=!o,`(?:${h}(${m}(?:${n}${m})*)${p})${r}`}return`(?:${h}(${m})${p})${f}`}return`(?:${h}${p})${f}`}))}function v(e,t){return!!t&&!e.test(t)}function y(e,t={}){const r=[],n=h(t);if(Array.isArray(e)){const o=e.map((e=>p(e,r,n,t)));return Object.assign(new RegExp(o.join("|")),{keys:r})}const o=p(e,r,n,t);return Object.assign(new RegExp(o),{keys:r})}},30115:e=>{var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!=l--;)if(!i(e[l],a[l]))return!1;return!0}if(r&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!i(l.value[1],a.get(l.value[0])))return!1;return!0}if(n&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!=l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!i(e[c[l]],a[c[l]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return i(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},68154:(e,t,r)=>{"use strict";r.d(t,{m:()=>pe});var n,o,i,a,s=r(49859),l=r.n(s),c=r(52098),u=r.n(c),d=r(30115),f=r.n(d),h=r(4883),p=r.n(h),m=r(45228),v=r.n(m),y="bodyAttributes",g="htmlAttributes",b="titleAttributes",w={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},S=(Object.keys(w).map((function(e){return w[e]})),"charset"),E="cssText",T="href",_="http-equiv",x="innerHTML",C="itemprop",O="name",R="property",D="rel",z="src",A="target",M={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},k="defaultTitle",P="defer",L="encodeSpecialCharacters",I="onChangeClientState",N="titleTemplate",j=Object.keys(M).reduce((function(e,t){return e[M[t]]=t,e}),{}),U=[w.NOSCRIPT,w.SCRIPT,w.STYLE],F="data-react-helmet",H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),W=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},B=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},Y=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},q=function(e){var t=G(e,w.TITLE),r=G(e,N);if(r&&t)return r.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var n=G(e,k);return t||n||void 0},Z=function(e){return G(e,I)||function(){}},V=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return W({},e,t)}),{})},X=function(e,t){return t.filter((function(e){return void 0!==e[w.BASE]})).map((function(e){return e[w.BASE]})).reverse().reduce((function(t,r){if(!t.length)for(var n=Object.keys(r),o=0;o<n.length;o++){var i=n[o].toLowerCase();if(-1!==e.indexOf(i)&&r[i])return t.concat(r)}return t}),[])},J=function(e,t,r){var n={};return r.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&re("Helmet: "+e+' should be of type "Array". Instead found type "'+H(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,r){var o={};r.filter((function(e){for(var r=void 0,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a],l=s.toLowerCase();-1===t.indexOf(l)||r===D&&"canonical"===e[r].toLowerCase()||l===D&&"stylesheet"===e[l].toLowerCase()||(r=l),-1===t.indexOf(s)||s!==x&&s!==E&&s!==C||(r=s)}if(!r||!e[r])return!1;var c=e[r].toLowerCase();return n[r]||(n[r]={}),o[r]||(o[r]={}),!n[r][c]&&(o[r][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var s=i[a],l=v()({},n[s],o[s]);n[s]=l}return e}),[]).reverse()},G=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.hasOwnProperty(t))return n[t]}return null},K=(n=Date.now(),function(e){var t=Date.now();t-n>16?(n=t,e(t)):setTimeout((function(){K(e)}),0)}),Q=function(e){return clearTimeout(e)},ee="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||K:r.g.requestAnimationFrame||K,te="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Q:r.g.cancelAnimationFrame||Q,re=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},ne=null,oe=function(e,t){var r=e.baseTag,n=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,l=e.onChangeClientState,c=e.scriptTags,u=e.styleTags,d=e.title,f=e.titleAttributes;se(w.BODY,n),se(w.HTML,o),ae(d,f);var h={baseTag:le(w.BASE,r),linkTags:le(w.LINK,i),metaTags:le(w.META,a),noscriptTags:le(w.NOSCRIPT,s),scriptTags:le(w.SCRIPT,c),styleTags:le(w.STYLE,u)},p={},m={};Object.keys(h).forEach((function(e){var t=h[e],r=t.newTags,n=t.oldTags;r.length&&(p[e]=r),n.length&&(m[e]=h[e].oldTags)})),t&&t(),l(e,p,m)},ie=function(e){return Array.isArray(e)?e.join(""):e},ae=function(e,t){void 0!==e&&document.title!==e&&(document.title=ie(e)),se(w.TITLE,t)},se=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var n=r.getAttribute(F),o=n?n.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s++){var l=a[s],c=t[l]||"";r.getAttribute(l)!==c&&r.setAttribute(l,c),-1===o.indexOf(l)&&o.push(l);var u=i.indexOf(l);-1!==u&&i.splice(u,1)}for(var d=i.length-1;d>=0;d--)r.removeAttribute(i[d]);o.length===i.length?r.removeAttribute(F):r.getAttribute(F)!==a.join(",")&&r.setAttribute(F,a.join(","))}},le=function(e,t){var r=document.head||document.querySelector(w.HEAD),n=r.querySelectorAll(e+"["+F+"]"),o=Array.prototype.slice.call(n),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var n in t)if(t.hasOwnProperty(n))if(n===x)r.innerHTML=t.innerHTML;else if(n===E)r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[n]?"":t[n];r.setAttribute(n,s)}r.setAttribute(F,"true"),o.some((function(e,t){return a=t,r.isEqualNode(e)}))?o.splice(a,1):i.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return r.appendChild(e)})),{oldTags:o,newTags:i}},ce=function(e){return Object.keys(e).reduce((function(t,r){var n=void 0!==e[r]?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n}),"")},ue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,r){return t[M[r]||r]=e[r],t}),t)},de=function(e,t,r){switch(e){case w.TITLE:return{toComponent:function(){return e=t.title,r=t.titleAttributes,(n={key:e})[F]=!0,o=ue(r,n),[p().createElement(w.TITLE,o,e)];var e,r,n,o},toString:function(){return function(e,t,r,n){var o=ce(r),i=ie(t);return o?"<"+e+" "+F+'="true" '+o+">"+Y(i,n)+"</"+e+">":"<"+e+" "+F+'="true">'+Y(i,n)+"</"+e+">"}(e,t.title,t.titleAttributes,r)}};case y:case g:return{toComponent:function(){return ue(t)},toString:function(){return ce(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,r){var n,o=((n={key:r})[F]=!0,n);return Object.keys(t).forEach((function(e){var r=M[e]||e;if(r===x||r===E){var n=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:n}}else o[r]=t[e]})),p().createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,r){return t.reduce((function(t,n){var o=Object.keys(n).filter((function(e){return!(e===x||e===E)})).reduce((function(e,t){var o=void 0===n[t]?t:t+'="'+Y(n[t],r)+'"';return e?e+" "+o:o}),""),i=n.innerHTML||n.cssText||"",a=-1===U.indexOf(e);return t+"<"+e+" "+F+'="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,r)}}}},fe=function(e){var t=e.baseTag,r=e.bodyAttributes,n=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,l=e.scriptTags,c=e.styleTags,u=e.title,d=void 0===u?"":u,f=e.titleAttributes;return{base:de(w.BASE,t,n),bodyAttributes:de(y,r,n),htmlAttributes:de(g,o,n),link:de(w.LINK,i,n),meta:de(w.META,a,n),noscript:de(w.NOSCRIPT,s,n),script:de(w.SCRIPT,l,n),style:de(w.STYLE,c,n),title:de(w.TITLE,{title:d,titleAttributes:f},n)}},he=u()((function(e){return{baseTag:X([T,A],e),bodyAttributes:V(y,e),defer:G(e,P),encode:G(e,L),htmlAttributes:V(g,e),linkTags:J(w.LINK,[D,T],e),metaTags:J(w.META,[O,S,_,R,C],e),noscriptTags:J(w.NOSCRIPT,[x],e),onChangeClientState:Z(e),scriptTags:J(w.SCRIPT,[z,x],e),styleTags:J(w.STYLE,[E],e),title:q(e),titleAttributes:V(b,e)}}),(function(e){ne&&te(ne),e.defer?ne=ee((function(){oe(e,(function(){ne=null}))})):(oe(e),ne=null)}),fe)((function(){return null})),pe=(o=he,a=i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!f()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case w.SCRIPT:case w.NOSCRIPT:return{innerHTML:t};case w.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,r=e.child,n=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return W({},n,((t={})[r.type]=[].concat(n[r.type]||[],[W({},o,this.mapNestedChildrenToProps(r,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,r,n=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(n.type){case w.TITLE:return W({},o,((t={})[n.type]=a,t.titleAttributes=W({},i),t));case w.BODY:return W({},o,{bodyAttributes:W({},i)});case w.HTML:return W({},o,{htmlAttributes:W({},i)})}return W({},o,((r={})[n.type]=W({},i),r))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var r=W({},t);return Object.keys(e).forEach((function(t){var n;r=W({},r,((n={})[t]=e[t],n))})),r},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var r=this,n={};return p().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,r){return t[j[r]||r]=e[r],t}),t)}(B(o,["children"]));switch(r.warnOnInvalidChildren(e,i),e.type){case w.LINK:case w.META:case w.NOSCRIPT:case w.SCRIPT:case w.STYLE:n=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:a,nestedChildren:i});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(n,t)},t.prototype.render=function(){var e=this.props,t=e.children,r=B(e,["children"]),n=W({},r);return t&&(n=this.mapChildrenToProps(t,n)),p().createElement(o,n)},$(t,null,[{key:"canUseDOM",set:function(e){o.canUseDOM=e}}]),t}(p().Component),i.propTypes={base:l().object,bodyAttributes:l().object,children:l().oneOfType([l().arrayOf(l().node),l().node]),defaultTitle:l().string,defer:l().bool,encodeSpecialCharacters:l().bool,htmlAttributes:l().object,link:l().arrayOf(l().object),meta:l().arrayOf(l().object),noscript:l().arrayOf(l().object),onChangeClientState:l().func,script:l().arrayOf(l().object),style:l().arrayOf(l().object),title:l().string,titleAttributes:l().object,titleTemplate:l().string},i.defaultProps={defer:!0,encodeSpecialCharacters:!0},i.peek=o.peek,i.rewind=function(){var e=o.rewind();return e||(e=fe({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},a);pe.renderStatic=pe.rewind},46079:(e,t,r)=>{"use strict";var n=r(83752);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},49859:(e,t,r)=>{e.exports=r(46079)()},83752:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},84976:(e,t,r)=>{"use strict";r.d(t,{Ge:()=>f,N_:()=>C,Ys:()=>d,ok:()=>D,pg:()=>S});var n=r(4883),o=r(81845),i=r(47767),a=r(45588);
|
|
18
|
+
/**
|
|
19
|
+
* React Router DOM v6.27.0
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Remix Software Inc.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
25
|
+
*
|
|
26
|
+
* @license MIT
|
|
27
|
+
*/
|
|
28
|
+
function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function l(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function c(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map((e=>[r,e])):[[r,n]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const u=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function d(e,t){return(0,a.aE)({basename:null==t?void 0:t.basename,future:s({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,a.zR)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||h(),routes:e,mapRouteProperties:i.wE,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function f(e,t){return(0,a.aE)({basename:null==t?void 0:t.basename,future:s({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,a.TM)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||h(),routes:e,mapRouteProperties:i.wE,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function h(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=s({},t,{errors:p(t.errors)})),t}function p(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new a.VV(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let o=new t(n.message);o.stack="",r[e]=o}catch(e){}}if(null==r[e]){let t=new Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}const m=n.createContext({isTransitioning:!1});const v=n.createContext(new Map);const y=n.startTransition,g=o.flushSync;n.useId;function b(e){g?g(e):e()}class w{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 S(e){let{fallbackElement:t,router:r,future:o}=e,[a,s]=n.useState(r.state),[l,c]=n.useState(),[u,d]=n.useState({isTransitioning:!1}),[f,h]=n.useState(),[p,g]=n.useState(),[S,T]=n.useState(),_=n.useRef(new Map),{v7_startTransition:x}=o||{},C=n.useCallback((e=>{x?function(e){y?y(e):e()}(e):e()}),[x]),O=n.useCallback(((e,t)=>{let{deletedFetchers:n,flushSync:o,viewTransitionOpts:i}=t;n.forEach((e=>_.current.delete(e))),e.fetchers.forEach(((e,t)=>{void 0!==e.data&&_.current.set(t,e.data)}));let a=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(i&&!a){if(o){b((()=>{p&&(f&&f.resolve(),p.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})}));let t=r.window.document.startViewTransition((()=>{b((()=>s(e)))}));return t.finished.finally((()=>{b((()=>{h(void 0),g(void 0),c(void 0),d({isTransitioning:!1})}))})),void b((()=>g(t)))}p?(f&&f.resolve(),p.skipTransition(),T({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(c(e),d({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))}else o?b((()=>s(e))):C((()=>s(e)))}),[r.window,p,f,_,C]);n.useLayoutEffect((()=>r.subscribe(O)),[r,O]),n.useEffect((()=>{u.isTransitioning&&!u.flushSync&&h(new w)}),[u]),n.useEffect((()=>{if(f&&l&&r.window){let e=l,t=f.promise,n=r.window.document.startViewTransition((async()=>{C((()=>s(e))),await t}));n.finished.finally((()=>{h(void 0),g(void 0),c(void 0),d({isTransitioning:!1})})),g(n)}}),[C,l,f,r.window]),n.useEffect((()=>{f&&l&&a.location.key===l.location.key&&f.resolve()}),[f,p,a.location,l]),n.useEffect((()=>{!u.isTransitioning&&S&&(c(S.state),d({isTransitioning:!0,flushSync:!1,currentLocation:S.currentLocation,nextLocation:S.nextLocation}),T(void 0))}),[u.isTransitioning,S]),n.useEffect((()=>{}),[]);let R=n.useMemo((()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})})),[r]),D=r.basename||"/",z=n.useMemo((()=>({router:r,navigator:R,static:!1,basename:D})),[r,R,D]),A=n.useMemo((()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath})),[r.future.v7_relativeSplatPath]);return n.createElement(n.Fragment,null,n.createElement(i.sp.Provider,{value:z},n.createElement(i.Rq.Provider,{value:a},n.createElement(v.Provider,{value:_.current},n.createElement(m.Provider,{value:u},n.createElement(i.Ix,{basename:D,location:a.location,navigationType:a.historyAction,navigator:R,future:A},a.initialized||r.future.v7_partialHydration?n.createElement(E,{routes:r.routes,future:r.future,state:a}):t))))),null)}const E=n.memo(T);function T(e){let{routes:t,future:r,state:n}=e;return(0,i.ph)(t,void 0,n,r)}const _="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,x=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,C=n.forwardRef((function(e,t){let r,{onClick:o,relative:c,reloadDocument:d,replace:f,state:h,target:p,to:m,preventScrollReset:v,viewTransition:y}=e,g=l(e,u),{basename:b}=n.useContext(i.jb),w=!1;if("string"==typeof m&&x.test(m)&&(r=m,_))try{let e=new URL(window.location.href),t=m.startsWith("//")?new URL(e.protocol+m):new URL(m),r=(0,a.pb)(t.pathname,b);t.origin===e.origin&&null!=r?m=r+t.search+t.hash:w=!0}catch(e){}let S=(0,i.$P)(m,{relative:c}),E=function(e,t){let{target:r,replace:o,state:s,preventScrollReset:l,relative:c,viewTransition:u}=void 0===t?{}:t,d=(0,i.Zp)(),f=(0,i.zy)(),h=(0,i.x$)(e,{relative:c});return n.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,r)){t.preventDefault();let r=void 0!==o?o:(0,a.AO)(f)===(0,a.AO)(h);d(e,{replace:r,state:s,preventScrollReset:l,relative:c,viewTransition:u})}}),[f,d,h,o,s,r,e,l,c,u])}(m,{replace:f,state:h,target:p,preventScrollReset:v,relative:c,viewTransition:y});return n.createElement("a",s({},g,{href:r||S,onClick:w||d?o:function(e){o&&o(e),e.defaultPrevented||E(e)},ref:t,target:p}))}));var O,R;function D(e){let t=n.useRef(c(e)),r=n.useRef(!1),o=(0,i.zy)(),a=n.useMemo((()=>function(e,t){let r=c(e);return t&&t.forEach(((e,n)=>{r.has(n)||t.getAll(n).forEach((e=>{r.append(n,e)}))})),r}(o.search,r.current?null:t.current)),[o.search]),s=(0,i.Zp)(),l=n.useCallback(((e,t)=>{const n=c("function"==typeof e?e(a):e);r.current=!0,s("?"+n,t)}),[s,a]);return[a,l]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(O||(O={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(R||(R={}))},47767:(e,t,r)=>{"use strict";r.d(t,{$P:()=>f,BV:()=>I,C5:()=>k,Ix:()=>L,KP:()=>A,Rq:()=>s,Zp:()=>v,bg:()=>U,g:()=>y,jb:()=>l,ph:()=>b,qh:()=>P,sp:()=>a,wE:()=>j,x$:()=>g,zy:()=>p});var n=r(4883),o=r(45588);
|
|
29
|
+
/**
|
|
30
|
+
* React Router v6.27.0
|
|
31
|
+
*
|
|
32
|
+
* Copyright (c) Remix Software Inc.
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the MIT license found in the
|
|
35
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
36
|
+
*
|
|
37
|
+
* @license MIT
|
|
38
|
+
*/
|
|
39
|
+
function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const a=n.createContext(null);const s=n.createContext(null);const l=n.createContext(null);const c=n.createContext(null);const u=n.createContext({outlet:null,matches:[],isDataRoute:!1});const d=n.createContext(null);function f(e,t){let{relative:r}=void 0===t?{}:t;h()||(0,o.Oi)(!1);let{basename:i,navigator:a}=n.useContext(l),{hash:s,pathname:c,search:u}=g(e,{relative:r}),d=c;return"/"!==i&&(d="/"===c?i:(0,o.HS)([i,c])),a.createHref({pathname:d,search:u,hash:s})}function h(){return null!=n.useContext(c)}function p(){return h()||(0,o.Oi)(!1),n.useContext(c).location}function m(e){n.useContext(l).static||n.useLayoutEffect(e)}function v(){let{isDataRoute:e}=n.useContext(u);return e?function(){let{router:e}=O(x.UseNavigateStable),t=D(C.UseNavigateStable),r=n.useRef(!1);return m((()=>{r.current=!0})),n.useCallback((function(n,o){void 0===o&&(o={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,i({fromRouteId:t},o)))}),[e,t])}():function(){h()||(0,o.Oi)(!1);let e=n.useContext(a),{basename:t,future:r,navigator:i}=n.useContext(l),{matches:s}=n.useContext(u),{pathname:c}=p(),d=JSON.stringify((0,o.yD)(s,r.v7_relativeSplatPath)),f=n.useRef(!1);return m((()=>{f.current=!0})),n.useCallback((function(r,n){if(void 0===n&&(n={}),!f.current)return;if("number"==typeof r)return void i.go(r);let a=(0,o.Gh)(r,JSON.parse(d),c,"path"===n.relative);null==e&&"/"!==t&&(a.pathname="/"===a.pathname?t:(0,o.HS)([t,a.pathname])),(n.replace?i.replace:i.push)(a,n.state,n)}),[t,i,d,c,e])}()}function y(){let{matches:e}=n.useContext(u),t=e[e.length-1];return t?t.params:{}}function g(e,t){let{relative:r}=void 0===t?{}:t,{future:i}=n.useContext(l),{matches:a}=n.useContext(u),{pathname:s}=p(),c=JSON.stringify((0,o.yD)(a,i.v7_relativeSplatPath));return n.useMemo((()=>(0,o.Gh)(e,JSON.parse(c),s,"path"===r)),[e,c,s,r])}function b(e,t,r,a){h()||(0,o.Oi)(!1);let{navigator:s}=n.useContext(l),{matches:d}=n.useContext(u),f=d[d.length-1],m=f?f.params:{},v=(f&&f.pathname,f?f.pathnameBase:"/");f&&f.route;let y,g=p();if(t){var b;let e="string"==typeof t?(0,o.Rr)(t):t;"/"===v||(null==(b=e.pathname)?void 0:b.startsWith(v))||(0,o.Oi)(!1),y=e}else y=g;let w=y.pathname||"/",S=w;if("/"!==v){let e=v.replace(/^\//,"").split("/");S="/"+w.replace(/^\//,"").split("/").slice(e.length).join("/")}let E=(0,o.ue)(e,{pathname:S});let T=_(E&&E.map((e=>Object.assign({},e,{params:Object.assign({},m,e.params),pathname:(0,o.HS)([v,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?v:(0,o.HS)([v,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),d,r,a);return t&&T?n.createElement(c.Provider,{value:{location:i({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:o.rc.Pop}},T):T}function w(){let e=function(){var e;let t=n.useContext(d),r=R(C.UseRouteError),o=D(C.UseRouteError);if(void 0!==t)return t;return null==(e=r.errors)?void 0:e[o]}(),t=(0,o.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:i};return n.createElement(n.Fragment,null,n.createElement("h2",null,"Unexpected Application Error!"),n.createElement("h3",{style:{fontStyle:"italic"}},t),r?n.createElement("pre",{style:a},r):null,null)}const S=n.createElement(w,null);class E extends n.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?n.createElement(u.Provider,{value:this.props.routeContext},n.createElement(d.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function T(e){let{routeContext:t,match:r,children:o}=e,i=n.useContext(a);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),n.createElement(u.Provider,{value:t},o)}function _(e,t,r,i){var a;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===i&&(i=null),null==e){var s;if(!r)return null;if(r.errors)e=r.matches;else{if(!(null!=(s=i)&&s.v7_partialHydration&&0===t.length&&!r.initialized&&r.matches.length>0))return null;e=r.matches}}let l=e,c=null==(a=r)?void 0:a.errors;if(null!=c){let e=l.findIndex((e=>e.route.id&&void 0!==(null==c?void 0:c[e.route.id])));e>=0||(0,o.Oi)(!1),l=l.slice(0,Math.min(l.length,e+1))}let u=!1,d=-1;if(r&&i&&i.v7_partialHydration)for(let e=0;e<l.length;e++){let t=l[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:n}=r,o=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||o){u=!0,l=d>=0?l.slice(0,d+1):[l[0]];break}}}return l.reduceRight(((e,o,i)=>{let a,s=!1,f=null,h=null;var p;r&&(a=c&&o.route.id?c[o.route.id]:void 0,f=o.route.errorElement||S,u&&(d<0&&0===i?(p="route-fallback",!1||M[p]||(M[p]=!0),s=!0,h=null):d===i&&(s=!0,h=o.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,i+1)),v=()=>{let t;return t=a?f:s?h:o.route.Component?n.createElement(o.route.Component,null):o.route.element?o.route.element:e,n.createElement(T,{match:o,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(o.route.ErrorBoundary||o.route.errorElement||0===i)?n.createElement(E,{location:r.location,revalidation:r.revalidation,component:f,error:a,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()}),null)}var x=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(x||{}),C=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(C||{});function O(e){let t=n.useContext(a);return t||(0,o.Oi)(!1),t}function R(e){let t=n.useContext(s);return t||(0,o.Oi)(!1),t}function D(e){let t=function(e){let t=n.useContext(u);return t||(0,o.Oi)(!1),t}(),r=t.matches[t.matches.length-1];return r.route.id||(0,o.Oi)(!1),r.route.id}let z=0;function A(e){let{router:t,basename:r}=O(x.UseBlocker),a=R(C.UseBlocker),[s,l]=n.useState(""),c=n.useCallback((t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:s}=t;return e({currentLocation:i({},n,{pathname:(0,o.pb)(n.pathname,r)||n.pathname}),nextLocation:i({},a,{pathname:(0,o.pb)(a.pathname,r)||a.pathname}),historyAction:s})}),[r,e]);return n.useEffect((()=>{let e=String(++z);return l(e),()=>t.deleteBlocker(e)}),[t]),n.useEffect((()=>{""!==s&&t.getBlocker(s,c)}),[t,s,c]),s&&a.blockers.has(s)?a.blockers.get(s):o.G3}const M={};n.startTransition;function k(e){let{to:t,replace:r,state:i,relative:a}=e;h()||(0,o.Oi)(!1);let{future:s,static:c}=n.useContext(l),{matches:d}=n.useContext(u),{pathname:f}=p(),m=v(),y=(0,o.Gh)(t,(0,o.yD)(d,s.v7_relativeSplatPath),f,"path"===a),g=JSON.stringify(y);return n.useEffect((()=>m(JSON.parse(g),{replace:r,state:i,relative:a})),[m,g,a,r,i]),null}function P(e){(0,o.Oi)(!1)}function L(e){let{basename:t="/",children:r=null,location:a,navigationType:s=o.rc.Pop,navigator:u,static:d=!1,future:f}=e;h()&&(0,o.Oi)(!1);let p=t.replace(/^\/*/,"/"),m=n.useMemo((()=>({basename:p,navigator:u,static:d,future:i({v7_relativeSplatPath:!1},f)})),[p,f,u,d]);"string"==typeof a&&(a=(0,o.Rr)(a));let{pathname:v="/",search:y="",hash:g="",state:b=null,key:w="default"}=a,S=n.useMemo((()=>{let e=(0,o.pb)(v,p);return null==e?null:{location:{pathname:e,search:y,hash:g,state:b,key:w},navigationType:s}}),[p,v,y,g,b,w,s]);return null==S?null:n.createElement(l.Provider,{value:m},n.createElement(c.Provider,{children:r,value:S}))}function I(e){let{children:t,location:r}=e;return b(N(t),r)}new Promise((()=>{}));n.Component;function N(e,t){void 0===t&&(t=[]);let r=[];return n.Children.forEach(e,((e,i)=>{if(!n.isValidElement(e))return;let a=[...t,i];if(e.type===n.Fragment)return void r.push.apply(r,N(e.props.children,a));e.type!==P&&(0,o.Oi)(!1),e.props.index&&e.props.children&&(0,o.Oi)(!1);let s={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=N(e.props.children,a)),r.push(s)})),r}function j(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:n.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:n.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:n.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function U(e,t){return(0,o.aE)({basename:null==t?void 0:t.basename,future:i({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,o.sC)({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:j,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()}},52098:(e,t,r)=>{"use strict";var n,o=r(4883),i=(n=o)&&"object"==typeof n&&"default"in n?n.default:n;function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,r){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==r&&"function"!=typeof r)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(n){if("function"!=typeof n)throw new Error("Expected WrappedComponent to be a React component.");var l,c=[];function u(){l=e(c.map((function(e){return e.props}))),d.canUseDOM?t(l):r&&(l=r(l))}var d=function(e){var t,r;function o(){return e.apply(this,arguments)||this}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,o.peek=function(){return l},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=l;return l=void 0,c=[],e};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){c.push(this),u()},a.componentDidUpdate=function(){u()},a.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),u()},a.render=function(){return i.createElement(n,this.props)},o}(o.PureComponent);return a(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),a(d,"canUseDOM",s),d}}},71764:(e,t,r)=>{"use strict";r.d(t,{A:()=>D});var n=r(4883),o=r.n(n),i=r(5556),a=r.n(i),s="undefined"!=typeof window?window:null,l=null===s,c=l?void 0:s.document,u="addEventListener",d="removeEventListener",f="getBoundingClientRect",h="_a",p="_b",m="_c",v="horizontal",y=function(){return!1},g=l?"calc":["","-webkit-","-moz-","-o-"].filter((function(e){var t=c.createElement("div");return t.style.cssText="width:"+e+"calc(9px)",!!t.style.length})).shift()+"calc",b=function(e){return"string"==typeof e||e instanceof String},w=function(e){if(b(e)){var t=c.querySelector(e);if(!t)throw new Error("Selector "+e+" did not match a DOM element");return t}return e},S=function(e,t,r){var n=e[t];return void 0!==n?n:r},E=function(e,t,r,n){if(t){if("end"===n)return 0;if("center"===n)return e/2}else if(r){if("start"===n)return 0;if("center"===n)return e/2}return e},T=function(e,t){var r=c.createElement("div");return r.className="gutter gutter-"+t,r},_=function(e,t,r){var n={};return b(t)?n[e]=t:n[e]=g+"("+t+"% - "+r+"px)",n},x=function(e,t){var r;return(r={})[e]=t+"px",r};const C=function(e,t){if(void 0===t&&(t={}),l)return{};var r,n,o,i,a,g,b=e;Array.from&&(b=Array.from(b));var C=w(b[0]).parentNode,O=getComputedStyle?getComputedStyle(C):null,R=O?O.flexDirection:null,D=S(t,"sizes")||b.map((function(){return 100/b.length})),z=S(t,"minSize",100),A=Array.isArray(z)?z:b.map((function(){return z})),M=S(t,"maxSize",1/0),k=Array.isArray(M)?M:b.map((function(){return M})),P=S(t,"expandToMin",!1),L=S(t,"gutterSize",10),I=S(t,"gutterAlign","center"),N=S(t,"snapOffset",30),j=Array.isArray(N)?N:b.map((function(){return N})),U=S(t,"dragInterval",1),F=S(t,"direction",v),H=S(t,"cursor",F===v?"col-resize":"row-resize"),$=S(t,"gutter",T),W=S(t,"elementStyle",_),B=S(t,"gutterStyle",x);function Y(e,t,n,o){var i=W(r,t,n,o);Object.keys(i).forEach((function(t){e.style[t]=i[t]}))}function q(){return g.map((function(e){return e.size}))}function Z(e){return"touches"in e?e.touches[0][n]:e[n]}function V(e){var t=g[this.a],r=g[this.b],n=t.size+r.size;t.size=e/this.size*n,r.size=n-e/this.size*n,Y(t.element,t.size,this[p],t.i),Y(r.element,r.size,this[m],r.i)}function X(e){var r,n=g[this.a],o=g[this.b];this.dragging&&(r=Z(e)-this.start+(this[p]-this.dragOffset),U>1&&(r=Math.round(r/U)*U),r<=n.minSize+n.snapOffset+this[p]?r=n.minSize+this[p]:r>=this.size-(o.minSize+o.snapOffset+this[m])&&(r=this.size-(o.minSize+this[m])),r>=n.maxSize-n.snapOffset+this[p]?r=n.maxSize+this[p]:r<=this.size-(o.maxSize-o.snapOffset+this[m])&&(r=this.size-(o.maxSize+this[m])),V.call(this,r),S(t,"onDrag",y)(q()))}function J(){var e=g[this.a].element,t=g[this.b].element,n=e[f](),a=t[f]();this.size=n[r]+a[r]+this[p]+this[m],this.start=n[o],this.end=n[i]}function G(e){var t=function(e){if(!getComputedStyle)return null;var t=getComputedStyle(e);if(!t)return null;var r=e[a];return 0===r?null:r-=F===v?parseFloat(t.paddingLeft)+parseFloat(t.paddingRight):parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)}(C);if(null===t)return e;if(A.reduce((function(e,t){return e+t}),0)>t)return e;var r=0,n=[],o=e.map((function(o,i){var a=t*o/100,s=E(L,0===i,i===e.length-1,I),l=A[i]+s;return a<l?(r+=l-a,n.push(0),l):(n.push(a-l),a)}));return 0===r?e:o.map((function(e,o){var i=e;if(r>0&&n[o]-r>0){var a=Math.min(r,n[o]-r);r-=a,i=e-a}return i/t*100}))}function K(){var e=this,r=g[e.a].element,n=g[e.b].element;e.dragging&&S(t,"onDragEnd",y)(q()),e.dragging=!1,s[d]("mouseup",e.stop),s[d]("touchend",e.stop),s[d]("touchcancel",e.stop),s[d]("mousemove",e.move),s[d]("touchmove",e.move),e.stop=null,e.move=null,r[d]("selectstart",y),r[d]("dragstart",y),n[d]("selectstart",y),n[d]("dragstart",y),r.style.userSelect="",r.style.webkitUserSelect="",r.style.MozUserSelect="",r.style.pointerEvents="",n.style.userSelect="",n.style.webkitUserSelect="",n.style.MozUserSelect="",n.style.pointerEvents="",e.gutter.style.cursor="",e.parent.style.cursor="",c.body.style.cursor=""}function Q(e){if(!("button"in e)||0===e.button){var r=this,n=g[r.a].element,o=g[r.b].element;r.dragging||S(t,"onDragStart",y)(q()),e.preventDefault(),r.dragging=!0,r.move=X.bind(r),r.stop=K.bind(r),s[u]("mouseup",r.stop),s[u]("touchend",r.stop),s[u]("touchcancel",r.stop),s[u]("mousemove",r.move),s[u]("touchmove",r.move),n[u]("selectstart",y),n[u]("dragstart",y),o[u]("selectstart",y),o[u]("dragstart",y),n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.MozUserSelect="none",n.style.pointerEvents="none",o.style.userSelect="none",o.style.webkitUserSelect="none",o.style.MozUserSelect="none",o.style.pointerEvents="none",r.gutter.style.cursor=H,r.parent.style.cursor=H,c.body.style.cursor=H,J.call(r),r.dragOffset=Z(e)-r.end}}F===v?(r="width",n="clientX",o="left",i="right",a="clientWidth"):"vertical"===F&&(r="height",n="clientY",o="top",i="bottom",a="clientHeight"),D=G(D);var ee=[];function te(e){var t=e.i===ee.length,r=t?ee[e.i-1]:ee[e.i];J.call(r);var n=t?r.size-e.minSize-r[m]:e.minSize+r[p];V.call(r,n)}return(g=b.map((function(e,t){var n,o={element:w(e),size:D[t],minSize:A[t],maxSize:k[t],snapOffset:j[t],i:t};if(t>0&&((n={a:t-1,b:t,dragging:!1,direction:F,parent:C})[p]=E(L,t-1==0,!1,I),n[m]=E(L,!1,t===b.length-1,I),"row-reverse"===R||"column-reverse"===R)){var i=n.a;n.a=n.b,n.b=i}if(t>0){var a=$(t,F,o.element);!function(e,t,n){var o=B(r,t,n);Object.keys(o).forEach((function(t){e.style[t]=o[t]}))}(a,L,t),n[h]=Q.bind(n),a[u]("mousedown",n[h]),a[u]("touchstart",n[h]),C.insertBefore(a,o.element),n.gutter=a}return Y(o.element,o.size,E(L,0===t,t===b.length-1,I),t),t>0&&ee.push(n),o}))).forEach((function(e){var t=e.element[f]()[r];t<e.minSize&&(P?te(e):e.minSize=t)})),{setSizes:function(e){var t=G(e);t.forEach((function(e,r){if(r>0){var n=ee[r-1],o=g[n.a],i=g[n.b];o.size=t[r-1],i.size=e,Y(o.element,o.size,n[p],o.i),Y(i.element,i.size,n[m],i.i)}}))},getSizes:q,collapse:function(e){te(g[e])},destroy:function(e,t){ee.forEach((function(n){if(!0!==t?n.parent.removeChild(n.gutter):(n.gutter[d]("mousedown",n[h]),n.gutter[d]("touchstart",n[h])),!0!==e){var o=W(r,n.a.size,n[p]);Object.keys(o).forEach((function(e){g[n.a].element.style[e]="",g[n.b].element.style[e]=""}))}}))},parent:C,pairs:ee}};function O(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&-1===t.indexOf(n)&&(r[n]=e[n]);return r}var R=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){var e=this.props;e.children;var t=e.gutter,r=O(e,["children","gutter"]);r.gutter=function(e,r){var n;return t?n=t(e,r):(n=document.createElement("div")).className="gutter gutter-"+r,n.__isSplitGutter=!0,n},this.split=C(this.parent.children,r)},t.prototype.componentDidUpdate=function(e){var t=this,r=this.props;r.children;var n=r.minSize,o=r.sizes,i=r.collapsed,a=O(r,["children","minSize","sizes","collapsed"]),s=e.minSize,l=e.sizes,c=e.collapsed,u=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"].map((function(r){return t.props[r]!==e[r]})).reduce((function(e,t){return e||t}),!1);if(Array.isArray(n)&&Array.isArray(s)){var d=!1;n.forEach((function(e,t){d=d||e!==s[t]})),u=u||d}else u=!(!Array.isArray(n)&&!Array.isArray(s))||(u||n!==s);if(u)a.minSize=n,a.sizes=o||this.split.getSizes(),this.split.destroy(!0,!0),a.gutter=function(e,t,r){return r.previousSibling},this.split=C(Array.from(this.parent.children).filter((function(e){return!e.__isSplitGutter})),a);else if(o){var f=!1;o.forEach((function(e,t){f=f||e!==l[t]})),f&&this.split.setSizes(this.props.sizes)}Number.isInteger(i)&&(i!==c||u)&&this.split.collapse(i)},t.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},t.prototype.render=function(){var e=this,t=this.props;t.sizes,t.minSize,t.maxSize,t.expandToMin,t.gutterSize,t.gutterAlign,t.snapOffset,t.dragInterval,t.direction,t.cursor,t.gutter,t.elementStyle,t.gutterStyle,t.onDrag,t.onDragStart,t.onDragEnd,t.collapsed;var r=t.children,n=O(t,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]);return o().createElement("div",Object.assign({},{ref:function(t){e.parent=t}},n),r)},t}(o().Component);R.propTypes={sizes:a().arrayOf(a().number),minSize:a().oneOfType([a().number,a().arrayOf(a().number)]),maxSize:a().oneOfType([a().number,a().arrayOf(a().number)]),expandToMin:a().bool,gutterSize:a().number,gutterAlign:a().string,snapOffset:a().oneOfType([a().number,a().arrayOf(a().number)]),dragInterval:a().number,direction:a().string,cursor:a().string,gutter:a().func,elementStyle:a().func,gutterStyle:a().func,onDrag:a().func,onDragStart:a().func,onDragEnd:a().func,collapsed:a().number,children:a().arrayOf(a().element)},R.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};const D=R},70713:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>f});var n=r(4883);let o;o="undefined"!=typeof window?window:"undefined"!=typeof self?self:r.g;let i=null,a=null;const s=o.clearTimeout,l=o.setTimeout,c=o.cancelAnimationFrame||o.mozCancelAnimationFrame||o.webkitCancelAnimationFrame,u=o.requestAnimationFrame||o.mozRequestAnimationFrame||o.webkitRequestAnimationFrame;function d(e){let t,r,n,s,l,c,u;const d="undefined"!=typeof document&&document.attachEvent;if(!d){c=function(e){const t=e.__resizeTriggers__,r=t.firstElementChild,n=t.lastElementChild,o=r.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,o.style.width=r.offsetWidth+1+"px",o.style.height=r.offsetHeight+1+"px",r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight},l=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},u=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;c(this),this.__resizeRAF__&&i(this.__resizeRAF__),this.__resizeRAF__=a((function(){l(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(r){r.call(t,e)})))}))};let e=!1,o="";n="animationstart";const d="Webkit Moz O ms".split(" ");let f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let r=0;r<d.length;r++)if(void 0!==t.style[d[r]+"AnimationName"]){h=d[r],o="-"+h.toLowerCase()+"-",n=f[r],e=!0;break}}r="resizeanim",t="@"+o+"keyframes "+r+" { from { opacity: 0; } to { opacity: 0; } } ",s=o+"animation: 1ms "+r+"; "}return{addResizeListener:function(i,a){if(d)i.attachEvent("onresize",a);else{if(!i.__resizeTriggers__){const a=i.ownerDocument,l=o.getComputedStyle(i);l&&"static"===l.position&&(i.style.position="relative"),function(r){if(!r.getElementById("detectElementResize")){const n=(t||"")+".resize-triggers { "+(s||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=r.head||r.getElementsByTagName("head")[0],i=r.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(r.createTextNode(n)),o.appendChild(i)}}(a),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=a.createElement("div")).className="resize-triggers";const d=a.createElement("div");d.className="expand-trigger",d.appendChild(a.createElement("div"));const f=a.createElement("div");f.className="contract-trigger",i.__resizeTriggers__.appendChild(d),i.__resizeTriggers__.appendChild(f),i.appendChild(i.__resizeTriggers__),c(i),i.addEventListener("scroll",u,!0),n&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===r&&c(i)},i.__resizeTriggers__.addEventListener(n,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(a)}},removeResizeListener:function(e,t){if(d)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",u,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(n,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==c||null==u?(i=s,a=function(e){return l(e,20)}):(i=function([e,t]){c(e),s(t)},a=function(e){const t=u((function(){s(r),e()})),r=l((function(){c(t),e()}),20);return[t,r]});class f extends n.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:r}=this.props;if(this._parentNode){const n=window.getComputedStyle(this._parentNode)||{},o=parseFloat(n.paddingLeft||"0"),i=parseFloat(n.paddingRight||"0"),a=parseFloat(n.paddingTop||"0"),s=parseFloat(n.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-o-i,d=this._parentNode.offsetHeight-a-s,f=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===f&&this.state.scaledWidth===u)||(this.setState({height:d,width:f,scaledHeight:c,scaledWidth:u}),"function"==typeof r&&r({height:d,scaledHeight:c,scaledWidth:u,width:f}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const r=t.ownerDocument.defaultView.ResizeObserver;null!=r?(this._resizeObserver=new r((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=d(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:r,disableHeight:o=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:s,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:f,scaledHeight:h,scaledWidth:p,width:m}=this.state,v={overflow:"visible"},y={};let g=!1;return o||(0===f&&(g=!0),v.height=0,y.height=f,y.scaledHeight=h),i||(0===m&&(g=!0),v.width=0,y.width=m,y.scaledWidth=p),a&&(g=!1),(0,n.createElement)(u,{ref:this._setRef,style:{...v,...c},...d},!g&&e(y))}}},99906:(e,t,r)=>{"use strict";r.d(t,{Y1:()=>w});var n=r(58168);function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var a=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function s(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||a(n)&&a(o)))return!1;var n,o;return!0}const l=function(e,t){var r;void 0===t&&(t=s);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}};var c=r(4883),u="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function d(e){cancelAnimationFrame(e.id)}function f(e,t){var r=u();var n={id:requestAnimationFrame((function o(){u()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var h=-1;function p(e){if(void 0===e&&(e=!1),-1===h||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),h=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return h}var m=null;function v(e){if(void 0===e&&(e=!1),null===m||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?m="positive-descending":(t.scrollLeft=1,m=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),m}return m}var y=function(e,t){return e};function g(e){var t,r=e.getItemOffset,a=e.getEstimatedTotalSize,s=e.getItemSize,u=e.getOffsetForIndexAndAlignment,h=e.getStartIndexForOffset,m=e.getStopIndexForStartIndex,g=e.initInstanceProps,w=e.shouldResetStyleCacheOnItemSizeChange,S=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=g(n.props,o(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:o(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=l((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=l((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,i=o.direction,a=o.itemSize,l=o.layout,c=n._getItemStyleCache(w&&a,w&&l,w&&i);if(c.hasOwnProperty(e))t=c[e];else{var u=r(n.props,e,n._instanceProps),d=s(n.props,e,n._instanceProps),f="horizontal"===i||"horizontal"===l,h="rtl"===i,p=f?u:0;c[e]=t={position:"absolute",left:h?void 0:p,right:h?p:void 0,top:f?0:u,height:f?"100%":d,width:f?d:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=l((function(e,t,r){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(v()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&d(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=f(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}i(t,e),t.getDerivedStateFromProps=function(e,t){return b(e,t),S(e),null};var E=t.prototype;return E.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},E.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var a=0;if(this._outerRef){var s=this._outerRef;a="vertical"===o?s.scrollWidth>s.clientWidth?p():0:s.scrollHeight>s.clientHeight?p():0}this.scrollTo(u(this.props,e,t,i,this._instanceProps,a))},E.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},E.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(v()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},E.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&d(this._resetIsScrollingTimeoutId)},E.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,s=e.innerRef,l=e.innerElementType,u=e.innerTagName,d=e.itemCount,f=e.itemData,h=e.itemKey,p=void 0===h?y:h,m=e.layout,v=e.outerElementType,g=e.outerTagName,b=e.style,w=e.useIsScrolling,S=e.width,E=this.state.isScrolling,T="horizontal"===o||"horizontal"===m,_=T?this._onScrollHorizontal:this._onScrollVertical,x=this._getRangeToRender(),C=x[0],O=x[1],R=[];if(d>0)for(var D=C;D<=O;D++)R.push((0,c.createElement)(t,{data:f,key:p(D,f),index:D,isScrolling:w?E:void 0,style:this._getItemStyle(D)}));var z=a(this.props,this._instanceProps);return(0,c.createElement)(v||g||"div",{className:r,onScroll:_,ref:this._outerRefSetter,style:(0,n.A)({position:"relative",height:i,width:S,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},(0,c.createElement)(l||u||"div",{children:R,ref:s,style:{height:T?"100%":z,pointerEvents:E?"none":void 0,width:T?z:"100%"}}))},E._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},E._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,a=n.scrollOffset;if(0===t)return[0,0,0,0];var s=h(this.props,a,this._instanceProps),l=m(this.props,s,a,this._instanceProps),c=o&&"backward"!==i?1:Math.max(1,r),u=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,s-c),Math.max(0,Math.min(t-1,l+u)),s,l]},t}(c.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var b=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},w=g({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,f="horizontal"===a||"horizontal"===u?d:s,h=Math.max(0,l*c-f),p=Math.min(h,t*c),m=Math.max(0,t*c-f+c+i);switch("smart"===r&&(r=n>=m-f&&n<=p+f?"auto":"center"),r){case"start":return p;case"end":return m;case"center":var v=Math.round(m+(p-m)/2);return v<Math.ceil(f/2)?0:v>h+Math.floor(f/2)?h:v;default:return n>=m&&n<=p?n:n<m?m:p}},getStartIndexForOffset:function(e,t){var r=e.itemCount,n=e.itemSize;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getStopIndexForStartIndex:function(e,t,r){var n=e.direction,o=e.height,i=e.itemCount,a=e.itemSize,s=e.layout,l=e.width,c=t*a,u="horizontal"===n||"horizontal"===s?l:o,d=Math.ceil((u+r-c)/a);return Math.max(0,Math.min(i-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}})},39182:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(4069);const o=(i=n.A,function(e,t){var r,n,o,a,s=(n=(r=i).deepEqual,o=r.empty,a=r.getIn,function(e,t){return function(r){for(var i=t||function(e){return a(e,"form")},s=i(r),l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];if(c&&c.length)return c.every((function(t){var r=a(s,e+".initial."+t),o=a(s,e+".values."+t);return n(r,o)}));var d=a(s,e+".initial")||o,f=a(s,e+".values")||d;return n(d,f)}})(e,t);return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return!s.apply(void 0,[e].concat(r))}});var i},9396:(e,t,r)=>{"use strict";r.d(t,{qD:()=>j});var n=r(25948),o=r(58161);function i(e,t,r){const n=(0,o.q)(),i=function(e,t,r){return new Intl.DateTimeFormat(r?[r.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,r.timeZone,r.locale??n.locale);return"formatToParts"in i?function(e,t){const r=e.formatToParts(t);for(let e=r.length-1;e>=0;--e)if("timeZoneName"===r[e].type)return r[e].value;return}(i,t):function(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(r);return n?n[0].substr(1):""}(i,t)}function a(e,t){const r=function(e){l[e]||(l[e]=u?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}));return l[e]}(t);return"formatToParts"in r?function(e,t){try{const r=e.formatToParts(t),n=[];for(let e=0;e<r.length;e++){const t=s[r[e].type];void 0!==t&&(n[t]=parseInt(r[e].value,10))}return n}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(r,e):function(e,t){const r=e.format(t),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[parseInt(n[3],10),parseInt(n[1],10),parseInt(n[2],10),parseInt(n[4],10),parseInt(n[5],10),parseInt(n[6],10)]}(r,e)}const s={year:0,month:1,day:2,hour:3,minute:4,second:5};const l={},c=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),u="06/25/2014, 00:00:00"===c||"06/25/2014 00:00:00"===c;function d(e,t,r,n,o,i,a){const s=new Date(0);return s.setUTCFullYear(e,t,r),s.setUTCHours(n,o,i,a),s}const f=36e5,h=6e4,p={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function m(e,t,r){if(!e)return 0;let n,o,i=p.timezoneZ.exec(e);if(i)return 0;if(i=p.timezoneHH.exec(e),i)return n=parseInt(i[1],10),y(n)?-n*f:NaN;if(i=p.timezoneHHMM.exec(e),i){n=parseInt(i[2],10);const e=parseInt(i[3],10);return y(n,e)?(o=Math.abs(n)*f+e*h,"+"===i[1]?-o:o):NaN}if(function(e){if(g[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),g[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());const n=r?t:function(e){return d(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),o=v(n,e),i=r?o:function(e,t,r){const n=e.getTime();let o=n-t;const i=v(new Date(o),r);if(t===i)return t;o-=i-t;const a=v(new Date(o),r);if(i===a)return i;return Math.max(i,a)}(t,o,e);return-i}return NaN}function v(e,t){const r=a(e,t),n=d(r[0],r[1]-1,r[2],r[3]%24,r[4],r[5],0).getTime();let o=e.getTime();const i=o%1e3;return o-=i>=0?i:1e3+i,n-o}function y(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}const g={};const b={X:function(e,t,r){const n=w(r.timeZone,e);if(0===n)return"Z";switch(t){case"X":return T(n);case"XXXX":case"XX":return E(n);default:return E(n,":")}},x:function(e,t,r){const n=w(r.timeZone,e);switch(t){case"x":return T(n);case"xxxx":case"xx":return E(n);default:return E(n,":")}},O:function(e,t,r){const n=w(r.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.floor(n/60),i=n%60;if(0===i)return r+String(o);return r+String(o)+t+S(i,2)}(n,":");default:return"GMT"+E(n,":")}},z:function(e,t,r){switch(t){case"z":case"zz":case"zzz":return i("short",e,r);default:return i("long",e,r)}}};function w(e,t){const r=e?m(e,t,!0)/6e4:t?.getTimezoneOffset()??0;if(Number.isNaN(r))throw new RangeError("Invalid time zone specified: "+e);return r}function S(e,t){const r=e<0?"-":"";let n=Math.abs(e).toString();for(;n.length<t;)n="0"+n;return r+n}function E(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+S(Math.floor(n/60),2)+t+S(Math.floor(n%60),2)}function T(e,t){if(e%60==0){return(e>0?"-":"+")+S(Math.abs(e)/60,2)}return E(e,t)}function _(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const x=36e5,C=6e4,O=2,R={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/};function D(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);const r=null==t.additionalDigits?O:Number(t.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);const n=function(e){const t={};let r,n=R.dateTimePattern.exec(e);n?(t.date=n[1],r=n[3]):(n=R.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e));if(r){const e=R.timeZone.exec(r);e?(t.time=r.replace(e[1],""),t.timeZone=e[1].trim()):t.time=r}return t}(e),{year:o,restDateString:i}=function(e,t){if(e){const r=R.YYY[t],n=R.YYYYY[t];let o=R.YYYY.exec(e)||n.exec(e);if(o){const t=o[1];return{year:parseInt(t,10),restDateString:e.slice(t.length)}}if(o=R.YY.exec(e)||r.exec(e),o){const t=o[1];return{year:100*parseInt(t,10),restDateString:e.slice(t.length)}}}return{year:null}}(n.date,r),a=function(e,t){if(null===t)return null;let r,n,o;if(!e||!e.length)return r=new Date(0),r.setUTCFullYear(t),r;let i=R.MM.exec(e);if(i)return r=new Date(0),n=parseInt(i[1],10)-1,P(t,n)?(r.setUTCFullYear(t,n),r):new Date(NaN);if(i=R.DDD.exec(e),i){r=new Date(0);const e=parseInt(i[1],10);return function(e,t){if(t<1)return!1;const r=k(e);if(r&&t>366)return!1;if(!r&&t>365)return!1;return!0}(t,e)?(r.setUTCFullYear(t,0,e),r):new Date(NaN)}if(i=R.MMDD.exec(e),i){r=new Date(0),n=parseInt(i[1],10)-1;const e=parseInt(i[2],10);return P(t,n,e)?(r.setUTCFullYear(t,n,e),r):new Date(NaN)}if(i=R.Www.exec(e),i)return o=parseInt(i[1],10)-1,L(o)?z(t,o):new Date(NaN);if(i=R.WwwD.exec(e),i){o=parseInt(i[1],10)-1;const e=parseInt(i[2],10)-1;return L(o,e)?z(t,o,e):new Date(NaN)}return null}(i,o);if(null===a||isNaN(a.getTime()))return new Date(NaN);if(a){const e=a.getTime();let r,o=0;if(n.time&&(o=function(e){let t,r,n=R.HH.exec(e);if(n)return t=parseFloat(n[1].replace(",",".")),I(t)?t%24*x:NaN;if(n=R.HHMM.exec(e),n)return t=parseInt(n[1],10),r=parseFloat(n[2].replace(",",".")),I(t,r)?t%24*x+r*C:NaN;if(n=R.HHMMSS.exec(e),n){t=parseInt(n[1],10),r=parseInt(n[2],10);const e=parseFloat(n[3].replace(",","."));return I(t,r,e)?t%24*x+r*C+1e3*e:NaN}return null}(n.time),null===o||isNaN(o)))return new Date(NaN);if(n.timeZone||t.timeZone){if(r=m(n.timeZone||t.timeZone,new Date(e+o)),isNaN(r))return new Date(NaN)}else r=_(new Date(e+o)),r=_(new Date(e+o+r));return new Date(e+o+r)}return new Date(NaN)}function z(e,t,r){t=t||0,r=r||0;const n=new Date(0);n.setUTCFullYear(e,0,4);const o=7*t+r+1-(n.getUTCDay()||7);return n.setUTCDate(n.getUTCDate()+o),n}const A=[31,28,31,30,31,30,31,31,30,31,30,31],M=[31,29,31,30,31,30,31,31,30,31,30,31];function k(e){return e%400==0||e%4==0&&e%100!=0}function P(e,t,r){if(t<0||t>11)return!1;if(null!=r){if(r<1)return!1;const n=k(e);if(n&&r>M[t])return!1;if(!n&&r>A[t])return!1}return!0}function L(e,t){return!(e<0||e>52)&&(null==t||!(t<0||t>6))}function I(e,t,r){return!(e<0||e>=25)&&((null==t||!(t<0||t>=60))&&(null==r||!(r<0||r>=60)))}const N=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function j(e,t,r,o){return function(e,t,r={}){const o=(t=String(t)).match(N);if(o){const n=D(r.originalDate||e,r);t=o.reduce((function(e,t){if("'"===t[0])return e;const o=e.indexOf(t),i="'"===e[o-1],a=e.replace(t,"'"+b[t[0]](n,t,r)+"'");return i?a.substring(0,o-1)+a.substring(o+1):a}),t)}return(0,n.GP)(e,t,r)}(function(e,t,r){const n=m(t,e=D(e,r),!0),o=new Date(e.getTime()-n),i=new Date(0);return i.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),i.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),i}(e,t,{timeZone:(o={...o,timeZone:t,originalDate:e}).timeZone}),r,o)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[987],{12987:(e,t,n)=>{n.d(t,{A:()=>gt});var r,i=n(5556),o=n.n(i),a=n(6730),s=n(30632),c=n(12199),l=n(10822),d=n(27772),u=n(38798),y=n(71468),p="root/LOAD_DIALOG_INFO",f="delete/SET_DELETE_DIALOG_INFO",g="delete/DO_DELETE",x="delete/SET_DELETING_IN_PROGRESS",b="delete/ON_CANCEL",h="delete/SET_ENTITIES_TO_DELETE",E=function(e){return{type:f,payload:{dialogInfo:e}}},A=function(){return{type:g}},m=function(e){return{type:x,payload:{deletingInProgress:e}}},j=function(e){return{type:h,payload:{entitiesToDelete:e}}},k=n(4883),v=n.n(k),O=n(88208),D=n(58065),S=n(69556),N=n(56375),I=n(21259),T=n.n(I),w=n(22056),L=n.n(w),P=n(72189),C=n.n(P),B=n(6199),R=n(3634),F=n(74848);const _=function(e){var t,n=e.deleteEntityProp,i=e.children,o=e.maxCountLink;if(n.keys.length<o&&(!n.keysOtherBu||0===n.keysOtherBu.length))return i;var a=(0,F.jsxs)(F.Fragment,{children:[n.keys.length>o&&(r||(r=(0,F.jsx)(N.Ay.P,{children:(0,F.jsx)(D.A,{id:"client.delete.tooManyRecords"})}))),(null===(t=n.keysOtherBu)||void 0===t?void 0:t.length)>0&&(0,F.jsx)(N.Ay.P,{children:(0,F.jsx)(D.A,{id:"client.delete.recordInOtherBU",values:{count:n.keysOtherBu.length}})})]});return(0,F.jsx)(R.A,{content:a,placement:"top",children:i})};var U,M,q=B.Ay.span.withConfig({displayName:"NonBreakingText"})(U||(U=C()(["\n white-space: nowrap;\n"])));const J=function(e){var t=e.rootEntities,n=e.relatedEntities,r=e.maxCountLink,i=e.navigationStrategy;return(0,F.jsxs)(N.Ay.Span,{children:[(0,F.jsx)(N.Ay.B,{children:Object.entries(t).map((function(e){var t=L()(e,2),n=t[0],o=t[1];return(0,F.jsxs)("span",{children:[o.entityLabel," (",(0,F.jsx)(_,{deleteEntityProp:o,maxCountLink:r,children:o.keys.length>0&&i.ListLink?(0,F.jsx)(i.ListLink,{entityName:n,entityKeys:o.keys.slice(0,r),children:o.keys.length}):(0,F.jsx)(N.Ay.Span,{children:o.keys.length})}),")"]},"root-entity-".concat(n))})).reduce((function(e,t){return[].concat(T()(e),[t,", "])}),[]).slice(0,-1)}),Object.keys(n).length>0&&(0,F.jsxs)(F.Fragment,{children:[M||(M=(0,F.jsx)("span",{children:" / "})),Object.keys(n).map((function(e){var t=n[e],o=[].concat(T()(t.keys),T()(t.keysOtherBu)).length,a=t.keys.length>0&&i.ListLink?(0,F.jsx)(i.ListLink,{entityName:e,entityKeys:t.keys.slice(0,r),children:o}):(0,F.jsx)(N.Ay.Span,{children:o}),s=(0,F.jsx)(_,{deleteEntityProp:t,maxCountLink:r,children:a});return(0,F.jsx)(v().Fragment,{children:(0,F.jsxs)(q,{children:[t.entityLabel," (",s,")"]})},"entity-info-"+e)})).reduce((function(e,t){return[].concat(T()(e),[t,", "])}),[]).slice(0,-1)]})]})};var G,Q,W,Y=n(26166),K=B.Ay.div.withConfig({displayName:"StyledIconWrapper"})(G||(G=C()(["\n margin-bottom: ",";\n"])),Y.A.space(.2));const V=function(e){var t=e.dialogInfo,n=e.navigationStrategy;return(0,F.jsxs)(F.Fragment,{children:[Q||(Q=(0,F.jsx)(K,{children:(0,F.jsx)(S.A,{size:"30px"})})),W||(W=(0,F.jsx)(N.Ay.P,{children:(0,F.jsx)(D.A,{id:"client.delete.deleteInProgress"})})),(0,F.jsx)(J,{rootEntities:t.rootEntitiesDeletable,relatedEntities:t.relatedDeletable,maxCountLink:100,navigationStrategy:n},"infopart-deletable")]})};var z={doDelete:A};const H=(0,y.Ng)((function(e,t){return{dialogInfo:e.del.dialogInfo,navigationStrategy:e.input.navigationStrategy}}),z)((0,u.Ay)(V));var X,Z=n(82064),$=n(77271),ee=n(26396),te=n.n(ee),ne=n(57488),re=[$.A.condition.BASE,$.A.condition.INFO,$.A.condition.DANGER,$.A.condition.SUCCESS,$.A.condition.WARNING],ie=te()(te()(te()(te()(te()({},$.A.condition.BASE,ne.t7.color("signal.neutral")),$.A.condition.DANGER,ne.t7.color("signal.danger")),$.A.condition.SUCCESS,ne.t7.color("signal.success")),$.A.condition.WARNING,ne.t7.color("signal.warning")),$.A.condition.INFO,ne.t7.color("signal.info")),oe=B.Ay.div.withConfig({displayName:"StyledSignalBox"})(X||(X=C()(["\n && {\n background-color: ",";\n padding: ",";\n margin-bottom: ",";\n\n * {\n color: ",";\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(function(e){return function(e){return ie[e.condition]||ie[$.A.condition.INFO]}(e)}),Y.A.space(-1),Y.A.space(-1),(function(e){return"base"===e.condition?"#000":"#FFF"}));oe.propTypes={condition:$.A.oneOfPropTypeAndCompletelyMapped(re,ie)};const ae=function(e){var t=e.condition,n=void 0===t?$.A.condition.BASE:t,r=e.title,i=e.children,o=e.meta;return(0,F.jsxs)(oe,{condition:n,children:[r&&(0,F.jsx)(N.Ay.H5,{children:r}),v().Children.map(i,(function(e){return v().cloneElement(e)})),o&&(0,F.jsx)(N.Ay.Small,{children:o})]})};var se,ce,le,de,ue,ye,pe,fe,ge,xe=n(62764),be=n(5975),he=B.Ay.div.withConfig({displayName:"StyledSectionWrapper"})(se||(se=C()(["\n padding-top: ",";\n"])),Y.A.space(.6)),Ee=B.Ay.div.withConfig({displayName:"StyledButtonsWrapper"})(ce||(ce=C()(["\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),be.Ay);const Ae=function(e){var t=e.dialogInfo,n=t.rootEntitiesDeletable,r=t.rootEntitiesNotDeletable,i=t.relatedDeletable,o=t.relatedNotDeletable,a=t.hasUnreadableEntities,s=t.limitExceeded,c=e.doDelete,l=e.onCancel,d=e.navigationStrategy;return(0,Z.L)(l),s?le||(le=(0,F.jsx)(N.Ay.P,{children:(0,F.jsx)(D.A,{id:"client.delete.limitExceededText"})})):(0,F.jsxs)(F.Fragment,{children:[Object.keys(n).length>0&&(0,F.jsxs)(he,{children:[de||(de=(0,F.jsx)(N.Ay.P,{children:(0,F.jsx)(D.A,{id:"client.delete.confirmText"})})),(0,F.jsx)(J,{rootEntities:n,relatedEntities:i,maxCountLink:100,navigationStrategy:d},"infopart-deletable")]}),Object.keys(r).length>0&&(0,F.jsxs)(he,{children:[ue||(ue=(0,F.jsx)(N.Ay.P,{children:(0,F.jsx)(D.A,{id:"client.delete.textNotDeletable"})})),(0,F.jsx)(J,{rootEntities:r,relatedEntities:o,maxCountLink:100,navigationStrategy:d},"infopart-notdeletable")]}),0===Object.keys(n).length&&0===Object.keys(r).length&&(ye||(ye=(0,F.jsx)(he,{children:(0,F.jsx)(N.Ay.P,{children:(0,F.jsx)(D.A,{id:"client.delete.errorMessage"})})}))),a&&(pe||(pe=(0,F.jsx)(he,{children:(0,F.jsx)(ae,{condition:"warning",children:(0,F.jsx)(N.Ay.Span,{children:(0,F.jsx)(D.A,{id:"client.delete.unreadableEntities"})})})}))),(0,F.jsx)(he,{children:(0,F.jsxs)(Ee,{children:[(0,F.jsx)(xe.A,{onClick:c,disabled:Object.keys(n).every((function(e){return 0===n[e].keys.length})),"data-cy":"btn-delete-ok",children:fe||(fe=(0,F.jsx)(D.A,{id:"client.delete.deleteButton"}))}),(0,F.jsx)(xe.A,{ink:"primary",look:"raised",onClick:l,"data-cy":"btn-delete-cancel",children:ge||(ge=(0,F.jsx)(D.A,{id:"client.delete.cancelButton"}))})]})})]})};var me={doDelete:A,onCancel:function(){return{type:b}}};const je=(0,y.Ng)((function(e,t){return{dialogInfo:e.del.dialogInfo,navigationStrategy:e.input.navigationStrategy}}),me)((0,u.Ay)(Ae));var ke,ve;const Oe=function(e){var t=e.loadDialogInfo,n=e.dialogInfo,r=e.deletingInProgress,i=e.intl;(0,k.useEffect)((function(){t()}),[t]);var o;return r?ke||(ke=(0,F.jsx)(H,{})):(0,F.jsx)(O.A,{required:[n],loadingText:(o="client.delete.loadingText",i.formatMessage({id:o})),children:n&&(ve||(ve=(0,F.jsx)(je,{})))})};var De={loadDialogInfo:function(){return{type:p}}};const Se=(0,y.Ng)((function(e,t){return{dialogInfo:e.del.dialogInfo,deletingInProgress:e.del.deletingInProgress}}),De)((0,u.Ay)(Oe));var Ne=n(37954),Ie=te()(te()(te()({},f,Ne.A.singleTransferReducer("dialogInfo")),h,Ne.A.singleTransferReducer("entitiesToDelete")),x,Ne.A.singleTransferReducer("deletingInProgress")),Te={dialogInfo:null,entitiesToDelete:null,deletingInProgress:!1};var we=n(92207),Le=n.n(we),Pe=n(43786),Ce=n(70661),Be=n(48673);const Re=function(e){var t=e.errors.map((function(e){var t=e.entityValidatorErrors;return Object.keys(t).map((function(e){return(0,F.jsx)(Be.A.List,{children:t[e].map((function(t,n){return(0,F.jsx)(Be.A.Item,{label:t},"entity-".concat(e,"-").concat(n))}))},e)}))}));return(0,F.jsx)(F.Fragment,{children:t})};var Fe=n(58156),_e=n.n(Fe);function Ue(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 Me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(n),!0).forEach((function(t){te()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qe="DELETABLE",Je=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t.rootEntity,i=r.entityName,o=r.entityLabel,a=r.key;if(a.includes("/")){var s=a.split("/"),c=L()(s,2),l=c[0],d=c[1];return Me(Me({},e),{},te()({},l,{entityLabel:o,keys:[].concat(T()(_e()(e,[l,"keys"],[])),T()(n?[d]:[]))}))}return Me(Me({},e),{},te()({},i,{entityLabel:o,keys:[].concat(T()(_e()(e,[i,"keys"],[])),T()(n?[a]:[]))}))},Ge=function(e){return e.rootEntity.deleteStatus===qe&&!e.affectedEntities.find((function(e){return e.deleteStatus!==qe}))},Qe=function(e,t){var n=e.entitiesToDelete;return e.limitExceeded?{limitExceeded:!0}:n.reduce((function(e,n){var r=Ge(n),i=r?"relatedDeletable":"relatedNotDeletable";return Me(Me(Me({},e),{},{rootEntitiesDeletable:Je(e.rootEntitiesDeletable,n,r)},!r&&{rootEntitiesNotDeletable:Je(e.rootEntitiesNotDeletable,n)}),{},te()({},i,function(e,t,n,r){return Me({},t.affectedEntities.reduce((function(e,t){return Me(Me({},e),n||t.deleteStatus!==qe?te()({},t.entityName,Me(Me({},_e()(e,t.entityName,{keys:[],keysOtherBu:[],entityLabel:t.entityLabel})),null===t.businessUnitId||t.businessUnitId===r?{keys:Array.from(new Set([].concat(T()(_e()(e,[t.entityName,"keys"],[])),[t.key])))}:{keysOtherBu:Array.from(new Set([].concat(T()(_e()(e,[t.entityName,"keysOtherBu"],[])),[t.key])))})):{})}),Me({},e)))}(e[i],n,r,t)))}),{rootEntitiesDeletable:{},rootEntitiesNotDeletable:{},relatedDeletable:{},relatedNotDeletable:{},hasUnreadableEntities:!!n.find((function(e){return e.unreadableEntities}))})},We=function(e){var t=e.entitiesToDelete;return{entityName:_e()(t,"[0].rootEntity.entityName"),keys:t.reduce((function(e,t){return[].concat(T()(e),T()(Ge(t)?[t.rootEntity.key]:[]))}),[])}},Ye=o().shape({entityLabel:o().string.isRequired,keys:o().arrayOf(o().string).isRequired,keysOtherBu:o().arrayOf(o().string)}),Ke=(o().shape({rootEntitiesDeletable:o().objectOf(Ye),rootEntitiesNotDeletable:o().objectOf(Ye),relatedDeletable:o().objectOf(Ye),relatedNotDeletable:o().objectOf(Ye),hasUnreadableEntities:o().bool,limitExceeded:o().bool}),Le().mark(nt)),Ve=Le().mark(rt),ze=Le().mark(it),He=Le().mark(ot),Xe=Le().mark(at),Ze=Le().mark(st),$e=function(e){return e.input},et=function(e){return e.intl.messages},tt=function(e){return e.del.entitiesToDelete};function nt(){var e,t,n;return Le().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Pe.Lt)($e);case 2:return e=r.sent,t=e.selection,r.next=6,(0,Pe.T1)(d.A.getEntities,t,Ce.A.fetchAllEntities);case 6:return n=r.sent,r.abrupt("return",{entityModel:n.entityName,keys:n.keys});case 8:case"end":return r.stop()}}),Ke)}function rt(){var e,t;return Le().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Pe.Lt)($e);case 2:return e=n.sent,t=e.customDeleteEndpoint,n.abrupt("return",t||"client/delete");case 5:case"end":return n.stop()}}),Ve)}function it(){var e,t,n,r,i,o;return Le().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,Pe.T1)(nt);case 2:return e=a.sent,a.next=5,(0,Pe.T1)(rt);case 5:return t=a.sent,a.next=8,(0,Pe.T1)(Ce.A.requestSaga,"".concat(t,"/dialog"),{method:"POST",body:e,acceptedStatusCodes:[403]});case 8:if(!(n=a.sent).ok){a.next=25;break}return a.next=12,(0,Pe.T1)(Ce.A.fetchPrincipal);case 12:return r=a.sent,a.next=15,(0,Pe.T1)(Qe,n.body,r.currentBusinessUnit.id);case 15:return i=a.sent,a.next=18,(0,Pe.yJ)(E(i));case 18:return a.next=20,(0,Pe.T1)(We,n.body);case 20:return o=a.sent,a.next=23,(0,Pe.yJ)(j(o));case 23:a.next=27;break;case 25:return a.next=27,(0,Pe.yJ)(E({rootEntitiesDeletable:{},rootEntitiesNotDeletable:{},relatedDeletable:{},relatedNotDeletable:{},hasUnreadableEntities:!1}));case 27:case"end":return a.stop()}}),ze)}function ot(){var e,t,n,r,i,o,a,s;return Le().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,(0,Pe.Lt)(tt);case 2:return e=l.sent,l.next=5,(0,Pe.yJ)(m(!0));case 5:return l.next=7,(0,Pe.T1)(rt);case 7:return t=l.sent,l.next=10,(0,Pe.T1)(Ce.A.requestSaga,t,{method:"POST",body:{entityModel:e.entityName,keys:e.keys},acceptedErrorCodes:["VALIDATION_FAILED"],acceptedStatusCodes:[500,400,409]});case 10:return n=l.sent,l.next=13,(0,Pe.Lt)(et);case 13:if(r=l.sent,!n.ok){l.next=22;break}return i=n.body,o=Object.keys(i.deletedEntities).reduce((function(e,t){return[].concat(T()(e),T()(i.deletedEntities[t].map((function(e){return{entityName:t,key:e}}))))}),[]),a=[{type:"entity-delete-event",payload:{entities:o}}],l.next=20,(0,Pe.yJ)(c.A.fireExternalEvent("onSuccess",{message:r["client.delete.successfullyMessage"],remoteEvents:a}));case 20:case 25:case 31:l.next=35;break;case 22:if(409!==n.status||!n.body.information){l.next=27;break}return l.next=25,(0,Pe.yJ)(c.A.fireExternalEvent("onError",{message:n.body.information}));case 27:if(400!==n.status||"VALIDATION_FAILED"!==n.body.errorCode){l.next=33;break}return s=function(){return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{children:r["client.delete.validationErrorMessage"]}),(0,F.jsx)(Re,{errors:n.body.errors})]})},l.next=31,(0,Pe.yJ)(c.A.fireExternalEvent("onError",{message:s}));case 33:return l.next=35,(0,Pe.yJ)(c.A.fireExternalEvent("onError",{message:r["client.delete.errorMessage"]}));case 35:case"end":return l.stop()}}),He)}function at(){return Le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Pe.yJ)(c.A.fireExternalEvent("onCancel"));case 2:case"end":return e.stop()}}),Xe)}function st(){return Le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Pe.Q7)([(0,Pe.p8)(p,it),(0,Pe.p8)(g,ot),(0,Pe.p8)(b,at)]);case 2:case"end":return e.stop()}}),Ze)}const ct={del:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Te,t=arguments.length>1?arguments[1]:void 0,n=Ie[t.type];return n?n(e,t):e}};var lt,dt=[st],ut="delete",yt=["onSuccess","onCancel","onError","emitAction"],pt=function(e,t,n,r){var i=lt||(lt=(0,F.jsx)(Se,{})),o=s.A.createStore(ct,dt,t,ut);a.A.addToStore(o,(function(e){return e.input.emitAction}));var d=!n.emitAction;return l.A.addToStore(o,d),c.A.addToStore(o,(function(e){return s.A.getEvents(yt,e.input)})),s.A.createApp(ut,i,o,{input:t,events:n,actions:[],publicPath:r,textResourceModules:["component","common",ut]})};s.A.registerAppInRegistry(ut,pt);var ft=function(e){return s.A.useApp({initApp:pt,props:e,packageName:ut,externalEvents:yt}).component};ft.propTypes={selection:d.A.propType.isRequired,customDeleteEndpoint:o().string};const gt=ft;s.A.createBundleableApp(ut,pt,ft)},27772:(e,t,n)=>{n.d(t,{A:()=>x});var r=n(5556),i=n.n(r);const o={ID:"ID",QUERY:"QUERY"},a=i().shape({entityName:i().string,ids:function(e,t,n){if(e.selection&&e.selection.type===o.ID&&!e.selection[t])return new Error("Selection.ids prop not defined. Component: ".concat(n,"'."))},query:function(e,t,n){if(e.selection&&e.selection.type===o.QUERY&&!e.selection[t])return new Error("Selection.query prop not defined. Component: ".concat(n,"'."))},type:i().oneOf(Object.keys(o)),count:i().number});var s=n(26396),c=n.n(s),l=n(92207),d=n.n(l),u=n(43786),y=d().mark(g);function p(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t){var n,r;return d().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(n=e.entityName,e.type!==o.QUERY){i.next=6;break}return i.next=4,(0,u.T1)(t,e.entityName,f({},e.query));case 4:return r=i.sent,i.abrupt("return",{entityName:n,keys:r.map((function(e){return e.key}))});case 6:return i.abrupt("return",{entityName:n,keys:e.ids});case 7:case"end":return i.stop()}}),y)}const x={getEntities:g,getSingleKey:function(e,t){if(e.entityName!==t)throw new Error("Only selection of ".concat(t," supported"));if("ID"!==e.type)throw new Error("Only ID selection type supported");if(!e.ids||1!==e.ids.length)throw new Error("Exactly one ".concat(t," must be selected"));return e.ids[0]},propType:a,selectionTypes:o}}}]);
|