tocco-legacy-bundle 3.14.53 → 3.14.54
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 +3 -0
- package/dist/docs-browser.js +1 -1
- package/dist/entity-browser.js +1 -1
- package/dist/login.js +1 -1
- package/dist/password-update.js +1 -1
- package/dist/sso-login.js +1 -1
- package/package.json +1 -1
package/dist/entity-browser.js
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
* LICENSE.md file in the root directory of this source tree.
|
|
44
44
|
*
|
|
45
45
|
* @license MIT
|
|
46
|
-
*/function s(e={}){let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:o=!1}=e;t=n.map(((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0)));let a=s(null==r?t.length-1:r),i="POP",c=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function l(){return t[a]}function u(e,n=null,r){let o=p(t?l().pathname:"/",e,n,r);return d("/"===o.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),o}function f(e){return"string"==typeof e?e:h(e)}return{get index(){return a},get action(){return i},get location(){return l()},createHref:f,createURL:e=>new URL(f(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?m(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){i="PUSH";let r=u(e,n);a+=1,t.splice(a,t.length,r),o&&c&&c({action:i,location:r,delta:1})},replace(e,n){i="REPLACE";let r=u(e,n);t[a]=r,o&&c&&c({action:i,location:r,delta:0})},go(e){i="POP";let n=s(a+e),r=t[n];a=n,c&&c({action:i,location:r,delta:e})},listen:e=>(c=e,()=>{c=null})}}function l(e={}){return v((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=m(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),p("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:h(t))}),(function(e,t){d("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function u(e,t){if(!1===e||null==e)throw new Error(t)}function d(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function f(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?m(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function h({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function m(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function v(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,s="POP",l=null,u=d();function d(){return(i.state||{idx:null}).idx}function h(){s="POP";let e=d(),t=null==e?null:e-u;u=e,l&&l({action:s,location:v.location,delta:t})}function m(e){return g(e)}null==u&&(u=0,i.replaceState({...i.state,idx:u},""));let v={get action(){return s},get location(){return e(o,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(c,h),l=e,()=>{o.removeEventListener(c,h),l=null}},createHref:e=>t(o,e),createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let r=p(v.location,e,t);n&&n(r,e),u=d()+1;let c=f(r,u),h=v.createHref(r);try{i.pushState(c,"",h)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(h)}a&&l&&l({action:s,location:v.location,delta:1})},replace:function(e,t){s="REPLACE";let r=p(v.location,e,t);n&&n(r,e),u=d();let o=f(r,u),c=v.createHref(r);i.replaceState(o,"",c),a&&l&&l({action:s,location:v.location,delta:0})},go:e=>i.go(e)};return v}function g(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),u(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:h(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var y=class{constructor(e){var t,n,o;if(t=this,n=r,o=new Map,n.has(t)?a("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,o),e)for(let[t,n]of e)this.set(t,n)}get(e){if(i(this,r).has(e))return i(this,r).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw new Error("No value found for context")}set(e,t){i(this,r).set(e,t)}};r=new WeakMap;var b=new Set(["lazy","caseSensitive","path","id","index","children"]);var w=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function x(e,t,n=[],r={},o=!1){return e.map(((e,a)=>{let i=[...n,String(a)],c="string"==typeof e.id?e.id:i.join("-");if(u(!0!==e.index||!e.children,"Cannot specify children on an index route"),u(o||!r[c],`Found a route id collision on id "${c}". Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let n={...e,...t(e),id:c};return r[c]=n,n}{let n={...e,...t(e),id:c,children:void 0};return r[c]=n,e.children&&(n.children=x(e.children,t,i,r,o)),n}}))}function k(e,t,n="/"){return A(e,t,n,!1)}function A(e,t,n,r){let o=z(("string"==typeof t?m(t):t).pathname||"/",n);if(null==o)return null;let a=O(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e){let t=F(o);i=L(a[e],t,r)}return i}function S(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function O(e,t=[],n=[],r=""){let o=(e,o,a)=>{let i={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith("/")&&(u(i.relativePath.startsWith(r),`Absolute route path "${i.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),i.relativePath=i.relativePath.slice(r.length));let c=$([r,i.relativePath]),s=n.concat(i);e.children&&e.children.length>0&&(u(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),O(e.children,t,s,c)),(null!=e.path||e.index)&&t.push({path:c,score:D(c,e.index),routesMeta:s})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of E(e.path))o(e,t,n);else o(e,t)})),t}function E(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=E(r.join("/")),c=[];return c.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&c.push(...i),c.map((t=>e.startsWith("/")&&""===t?"/":t))}var j=/^:[\w-]+$/,P=3,T=2,C=1,_=10,N=-2,R=e=>"*"===e;function D(e,t){let n=e.split("/"),r=n.length;return n.some(R)&&(r+=N),t&&(r+=T),n.filter((e=>!R(e))).reduce(((e,t)=>e+(j.test(t)?P:""===t?C:_)),r)}function L(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let e=0;e<r.length;++e){let c=r[e],s=e===r.length-1,l="/"===a?t:t.slice(a.length)||"/",u=M({path:c.relativePath,caseSensitive:c.caseSensitive,end:s},l),d=c.route;if(!u&&s&&n&&!r[r.length-1].route.index&&(u=M({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},l)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:$([a,u.pathname]),pathnameBase:q($([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=$([a,u.pathnameBase]))}return i}function M(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=I(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=c[r]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const o=c[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:i,pattern:e}}function I(e,t=!1,n=!0){d("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function F(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return d(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function z(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function H(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function B(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function U(e){let t=B(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function W(e,t,n,r=!1){let o;"string"==typeof e?o=m(e):(o={...e},u(!o.pathname||!o.pathname.includes("?"),H("?","pathname","search",o)),u(!o.pathname||!o.pathname.includes("#"),H("#","pathname","hash",o)),u(!o.search||!o.search.includes("#"),H("#","search","hash",o)));let a,i=""===e||""===o.pathname,c=i?"/":o.pathname;if(null==c)a=n;else{let e=t.length-1;if(!r&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let s=function(e,t="/"){let{pathname:n,search:r="",hash:o=""}="string"==typeof e?m(e):e,a=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:a,search:V(r),hash:G(o)}}(o,a),l=c&&"/"!==c&&c.endsWith("/"),d=(i||"."===c)&&n.endsWith("/");return s.pathname.endsWith("/")||!l&&!d||(s.pathname+="/"),s}var $=e=>e.join("/").replace(/\/\/+/g,"/"),q=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),V=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",G=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var Y=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function K(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var J=["POST","PUT","PATCH","DELETE"],X=new Set(J),Q=["GET",...J],Z=new Set(Q),ee=new Set([301,302,303,307,308]),te=new Set([307,308]),ne={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},re={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},oe={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ae=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ie=e=>ae.test(e),ce=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),se="remix-router-transitions",le=Symbol("ResetLoaderData");function ue(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement;u(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r,o,a,i=e.hydrationRouteProperties||[],c=e.mapRouteProperties||ce,s={},l=x(e.routes,c,void 0,s),f=e.basename||"/",h=e.dataStrategy||ke,m={unstable_middleware:!1,...e.future},v=null,b=new Set,w=null,O=null,E=null,j=null!=e.hydrationData,P=k(l,e.history.location,f),T=!1,C=null;if(null!=P||e.patchRoutesOnNavigation){if(P&&!e.hydrationData){Qe(P,l,e.history.location.pathname).active&&(P=null)}if(P)if(P.some((e=>e.route.lazy)))o=!1;else if(P.some((e=>e.route.loader))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=P.findIndex((e=>void 0!==n[e.route.id]));o=P.slice(0,e+1).every((e=>!he(e.route,t,n)))}else o=P.every((e=>!he(e.route,t,n)))}else o=!0;else{o=!1,P=[];let t=Qe(null,l,e.history.location.pathname);t.active&&t.matches&&(T=!0,P=t.matches)}}else{let t=Ue(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Be(l);o=!0,P=n,C={[r.id]:t}}let _,N,R={historyAction:e.history.action,location:e.history.location,matches:P,initialized:o,navigation:ne,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||C,fetchers:new Map,blockers:new Map},D="POP",L=!1,M=!1,I=new Map,F=null,H=!1,B=!1,U=new Set,W=new Map,$=0,q=-1,V=new Map,G=new Set,Y=new Map,J=new Map,X=new Set,Q=new Map,Z=null;function ee(e,t={}){e.matches&&(e.matches=e.matches.map((e=>{let t=s[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}))),R={...R,...e};let n=[],r=[];R.fetchers.forEach(((e,t)=>{"idle"===e.state&&(X.has(t)?n.push(t):r.push(t))})),X.forEach((e=>{R.fetchers.has(e)||W.has(e)||n.push(e)})),[...b].forEach((e=>e(R,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>Se(e))),r.forEach((e=>R.fetchers.delete(e)))}function ae(t,n,{flushSync:o}={}){let a,i=null!=R.actionData&&null!=R.navigation.formMethod&&Xe(R.navigation.formMethod)&&"loading"===R.navigation.state&&!0!==t.state?._isRedirect;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?R.actionData:null;let c=n.loaderData?Fe(R.loaderData,n.loaderData,n.matches||[],n.errors):R.loaderData,s=R.blockers;s.size>0&&(s=new Map(s),s.forEach(((e,t)=>s.set(t,oe))));let u,d=!H&&Je(t,n.matches||R.matches),f=!0===L||null!=R.navigation.formMethod&&Xe(R.navigation.formMethod)&&!0!==t.state?._isRedirect;if(r&&(l=r,r=void 0),H||"POP"===D||("PUSH"===D?e.history.push(t,t.state):"REPLACE"===D&&e.history.replace(t,t.state)),"POP"===D){let e=I.get(R.location.pathname);e&&e.has(t.pathname)?u={currentLocation:R.location,nextLocation:t}:I.has(t.pathname)&&(u={currentLocation:t,nextLocation:R.location})}else if(M){let e=I.get(R.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),I.set(R.location.pathname,e)),u={currentLocation:R.location,nextLocation:t}}ee({...n,actionData:a,loaderData:c,historyAction:D,location:t,initialized:!0,navigation:ne,revalidation:"idle",restoreScrollPosition:d,preventScrollReset:f,blockers:s},{viewTransitionOpts:u,flushSync:!0===o}),D="POP",L=!1,M=!1,H=!1,B=!1,Z?.resolve(),Z=null}async function le(t,n,o){_&&_.abort(),_=null,D=t,H=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(w&&E){let n=Ke(e,t);w[n]=E()}}(R.location,R.matches),L=!0===(o&&o.preventScrollReset),M=!0===(o&&o.enableViewTransition);let a=r||l,u=o&&o.overrideNavigation,d=o?.initialHydration&&R.matches&&R.matches.length>0&&!T?R.matches:k(a,n,f),p=!0===(o&&o.flushSync);if(d&&R.initialized&&!B&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(R.location,n)&&!(o&&o.submission&&Xe(o.submission.formMethod)))return void ae(n,{matches:d},{flushSync:p});let h=Qe(d,a,n.pathname);if(h.active&&h.matches&&(d=h.matches),!d){let{error:e,notFoundMatches:t,route:r}=Ye(n.pathname);return void ae(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:p})}_=new AbortController;let m,v=Re(e.history,n,_.signal,o&&o.submission),g=e.unstable_getContext?await e.unstable_getContext():new y;if(o&&o.pendingError)m=[He(d).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&Xe(o.submission.formMethod)){let t=await async function(e,t,n,r,o,a,l,u={}){be();let d,p=function(e,t){let n={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return n}(t,n);if(ee({navigation:p},{flushSync:!0===u.flushSync}),a){let n=await ot(r,t.pathname,e.signal);if("aborted"===n.type)return{shortCircuited:!0};if("error"===n.type){let e=He(n.partialMatches).route.id;return{matches:n.partialMatches,pendingActionResult:[e,{type:"error",error:n.error}]}}if(!n.matches){let{notFoundMatches:e,error:n,route:r}=Ye(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:n}]}}r=n.matches}let h=Ze(r,t);if(h.route.action||h.route.lazy){let t=Pe(c,s,e,r,h,l?[]:i,o),n=await ge(e,t,o,null);if(d=n[h.route.id],!d)for(let e of r)if(n[e.route.id]){d=n[e.route.id];break}if(e.signal.aborted)return{shortCircuited:!0}}else d={type:"error",error:Ue(405,{method:e.method,pathname:t.pathname,routeId:h.route.id})};if(Ge(d)){let t;if(u&&null!=u.replace)t=u.replace;else{t=Ne(d.response.headers.get("Location"),new URL(e.url),f)===R.location.pathname+R.location.search}return await me(e,d,!0,{submission:n,replace:t}),{shortCircuited:!0}}if(Ve(d)){let e=He(r,h.route.id);return!0!==(u&&u.replace)&&(D="PUSH"),{matches:r,pendingActionResult:[e.route.id,d,h.route.id]}}return{matches:r,pendingActionResult:[h.route.id,d]}}(v,n,o.submission,d,g,h.active,o&&!0===o.initialHydration,{replace:o.replace,flushSync:p});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(Ve(r)&&K(r.error)&&404===r.error.status)return _=null,void ae(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}d=t.matches||d,m=t.pendingActionResult,u=tt(n,o.submission),p=!1,h.active=!1,v=Re(e.history,v.url,v.signal)}let{shortCircuited:b,matches:x,loaderData:A,errors:S}=await async function(t,n,o,a,u,d,p,h,m,v,g,y){let b=d||tt(n,p),w=p||h||et(b),x=!H&&!v;if(u){if(x){let e=ue(y);ee({navigation:b,...void 0!==e?{actionData:e}:{}},{flushSync:g})}let e=await ot(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=He(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=Ye(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let k=r||l,{dsMatches:A,revalidatingFetchers:S}=pe(t,a,c,s,e.history,R,o,w,n,v?[]:i,!0===v,B,U,X,Y,G,k,f,null!=e.patchRoutesOnNavigation,y);if(q=++$,!e.dataStrategy&&!A.some((e=>e.shouldLoad))&&!A.some((e=>e.route.unstable_middleware))&&0===S.length){let e=je();return ae(n,{matches:o,loaderData:{},errors:y&&Ve(y[1])?{[y[0]]:y[1].error}:null,...ze(y),...e?{fetchers:new Map(R.fetchers)}:{}},{flushSync:g}),{shortCircuited:!0}}if(x){let e={};if(!u){e.navigation=b;let t=ue(y);void 0!==t&&(e.actionData=t)}S.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=R.fetchers.get(e.key),n=nt(void 0,t?t.data:void 0);R.fetchers.set(e.key,n)})),new Map(R.fetchers)}(S)),ee(e,{flushSync:g})}S.forEach((e=>{Oe(e.key),e.controller&&W.set(e.key,e.controller)}));let O=()=>S.forEach((e=>Oe(e.key)));_&&_.signal.addEventListener("abort",O);let{loaderResults:E,fetcherResults:j}=await ye(A,S,t,a);if(t.signal.aborted)return{shortCircuited:!0};_&&_.signal.removeEventListener("abort",O);S.forEach((e=>W.delete(e.key)));let P=We(E);if(P)return await me(t,P.result,!0,{replace:m}),{shortCircuited:!0};if(P=We(j),P)return G.add(P.key),await me(t,P.result,!0,{replace:m}),{shortCircuited:!0};let{loaderData:T,errors:C}=Ie(R,o,E,y,S,j);v&&R.errors&&(C={...R.errors,...C});let N=je(),D=De(q),L=N||D||S.length>0;return{matches:o,loaderData:T,errors:C,...L?{fetchers:new Map(R.fetchers)}:{}}}(v,n,d,g,h.active,u,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,p,m);b||(_=null,ae(n,{matches:x||d,...ze(m),loaderData:A,errors:S}))}function ue(e){return e&&!Ve(e[1])?{[e[0]]:e[1].data}:R.actionData?0===Object.keys(R.actionData).length?null:R.actionData:void 0}async function me(e,r,o,{submission:a,fetcherSubmission:i,preventScrollReset:c,replace:s}={}){r.response.headers.has("X-Remix-Revalidate")&&(B=!0);let l=r.response.headers.get("Location");u(l,"Expected a Location header on the redirect Response"),l=Ne(l,new URL(e.url),f);let d=p(R.location,l,{_isRedirect:!0});if(n){let e=!1;if(r.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(ie(l)){const n=g(l,!0);e=n.origin!==t.location.origin||null==z(n.pathname,f)}if(e)return void(s?t.location.replace(l):t.location.assign(l))}_=null;let h=!0===s||r.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:m,formAction:v,formEncType:y}=R.navigation;!a&&!i&&m&&v&&y&&(a=et(R.navigation));let b=a||i;if(te.has(r.response.status)&&b&&Xe(b.formMethod))await le(h,d,{submission:{...b,formAction:l},preventScrollReset:c||L,enableViewTransition:o?M:void 0});else{let e=tt(d,a);await le(h,d,{overrideNavigation:e,fetcherSubmission:i,preventScrollReset:c||L,enableViewTransition:o?M:void 0})}}async function ge(e,t,n,r){let o,a={};try{o=await Te(h,e,t,r,n,!1)}catch(e){return t.filter((e=>e.shouldLoad)).forEach((t=>{a[t.route.id]={type:"error",error:e}})),a}if(e.signal.aborted)return a;for(let[n,r]of Object.entries(o))if(qe(r)){let o=r.result;a[n]={type:"redirect",response:_e(o,e,n,t,f)}}else a[n]=await Ce(r);return a}async function ye(e,t,n,r){let o=ge(n,e,r,null),a=Promise.all(t.map((async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await ge(e.request,e.matches,r,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:"error",error:Ue(404,{pathname:e.path})}})})));return{loaderResults:await o,fetcherResults:(await a).reduce(((e,t)=>Object.assign(e,t)),{})}}function be(){B=!0,Y.forEach(((e,t)=>{W.has(t)&&U.add(t),Oe(t)}))}function we(e,t,n={}){R.fetchers.set(e,t),ee({fetchers:new Map(R.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function xe(e,t,n,r={}){let o=He(R.matches,t);Se(e),ee({errors:{[o.route.id]:n},fetchers:new Map(R.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Ae(e){return J.set(e,(J.get(e)||0)+1),X.has(e)&&X.delete(e),R.fetchers.get(e)||re}function Se(e){let t=R.fetchers.get(e);!W.has(e)||t&&"loading"===t.state&&V.has(e)||Oe(e),Y.delete(e),V.delete(e),G.delete(e),X.delete(e),U.delete(e),R.fetchers.delete(e)}function Oe(e){let t=W.get(e);t&&(t.abort(),W.delete(e))}function Ee(e){for(let t of e){let e=rt(Ae(t).data);R.fetchers.set(t,e)}}function je(){let e=[],t=!1;for(let n of G){let r=R.fetchers.get(n);u(r,`Expected fetcher: ${n}`),"loading"===r.state&&(G.delete(n),e.push(n),t=!0)}return Ee(e),t}function De(e){let t=[];for(let[n,r]of V)if(r<e){let e=R.fetchers.get(n);u(e,`Expected fetcher: ${n}`),"loading"===e.state&&(Oe(n),V.delete(n),t.push(n))}return Ee(t),t.length>0}function Le(e){R.blockers.delete(e),Q.delete(e)}function Me(e,t){let n=R.blockers.get(e)||oe;u("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(R.blockers);r.set(e,t),ee({blockers:r})}function $e({currentLocation:e,nextLocation:t,historyAction:n}){if(0===Q.size)return;Q.size>1&&d(!1,"A router only supports one blocker at a time");let r=Array.from(Q.entries()),[o,a]=r[r.length-1],i=R.blockers.get(o);return i&&"proceeding"===i.state?void 0:a({currentLocation:e,nextLocation:t,historyAction:n})?o:void 0}function Ye(e){let t=Ue(404,{pathname:e}),n=r||l,{matches:o,route:a}=Be(n);return{notFoundMatches:o,route:a,error:t}}function Ke(e,t){if(O){return O(e,t.map((e=>S(e,R.loaderData))))||e.key}return e.key}function Je(e,t){if(w){let n=Ke(e,t),r=w[n];if("number"==typeof r)return r}return null}function Qe(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:A(n,r,f,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:A(n,r,f,!0)}}}return{active:!1,matches:null}}async function ot(t,n,o,a){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let i=t;for(;;){let t=null==r,u=r||l,d=s;try{await e.patchRoutesOnNavigation({signal:o,path:n,matches:i,fetcherKey:a,patch:(e,t)=>{o.aborted||ve(e,t,u,d,c,!1)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{t&&!o.aborted&&(l=[...l])}if(o.aborted)return{type:"aborted"};let p=k(u,n,f);if(p)return{type:"success",matches:p};let h=A(u,n,f,!0);if(!h||i.length===h.length&&i.every(((e,t)=>e.route.id===h[t].route.id)))return{type:"success",matches:null};i=h}}return a={get basename(){return f},get future(){return m},get state(){return R},get routes(){return l},get window(){return t},initialize:function(){if(v=e.history.listen((({action:t,location:n,delta:r})=>{if(N)return N(),void(N=void 0);d(0===Q.size||null!=r,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=$e({currentLocation:R.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise((e=>{N=e}));return e.history.go(-1*r),void Me(o,{state:"blocked",location:n,proceed(){Me(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(R.blockers);e.set(o,oe),ee({blockers:e})}})}return le(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(se);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,I);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(se,JSON.stringify(n))}catch(e){d(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,I);t.addEventListener("pagehide",e),F=()=>t.removeEventListener("pagehide",e)}return R.initialized||le("POP",R.location,{initialHydration:!0}),a},subscribe:function(e){return b.add(e),()=>b.delete(e)},enableScrollRestoration:function(e,t,n){if(w=e,E=t,O=n||null,!j&&R.navigation===ne){j=!0;let e=Je(R.location,R.matches);null!=e&&ee({restoreScrollPosition:e})}return()=>{w=null,E=null,O=null}},navigate:async function t(n,r){if("number"==typeof n)return void e.history.go(n);let o=de(R.location,R.matches,f,n,r?.fromRouteId,r?.relative),{path:a,submission:i,error:c}=fe(!1,o,r),s=R.location,l=p(R.location,a,r&&r.state);l={...l,...e.history.encodeLocation(l)};let u=r&&null!=r.replace?r.replace:void 0,d="PUSH";!0===u?d="REPLACE":!1===u||null!=i&&Xe(i.formMethod)&&i.formAction===R.location.pathname+R.location.search&&(d="REPLACE");let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,m=!0===(r&&r.flushSync),v=$e({currentLocation:s,nextLocation:l,historyAction:d});v?Me(v,{state:"blocked",location:l,proceed(){Me(v,{state:"proceeding",proceed:void 0,reset:void 0,location:l}),t(n,r)},reset(){let e=new Map(R.blockers);e.set(v,oe),ee({blockers:e})}}):await le(d,l,{submission:i,pendingError:c,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:m})},fetch:async function(t,n,o,a){Oe(t);let d=!0===(a&&a.flushSync),p=r||l,h=de(R.location,R.matches,f,o,n,a?.relative),m=k(p,h,f),v=Qe(m,p,h);if(v.active&&v.matches&&(m=v.matches),!m)return void xe(t,n,Ue(404,{pathname:h}),{flushSync:d});let{path:g,submission:b,error:w}=fe(!0,h,a);if(w)return void xe(t,n,w,{flushSync:d});let x=e.unstable_getContext?await e.unstable_getContext():new y,A=!0===(a&&a.preventScrollReset);b&&Xe(b.formMethod)?await async function(t,n,o,a,d,p,h,m,v){be(),Y.delete(t);let g=R.fetchers.get(t);we(t,function(e,t){let n={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return n}(v,g),{flushSync:h});let y=new AbortController,b=Re(e.history,o,y.signal,v);if(p){let e=await ot(a,new URL(b.url).pathname,b.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void xe(t,n,e.error,{flushSync:h});if(!e.matches)return void xe(t,n,Ue(404,{pathname:o}),{flushSync:h});a=e.matches}let w=Ze(a,o);if(!w.route.action&&!w.route.lazy){let e=Ue(405,{method:v.formMethod,pathname:o,routeId:n});return void xe(t,n,e,{flushSync:h})}W.set(t,y);let x=$,A=Pe(c,s,b,a,w,i,d),S=await ge(b,A,d,t),O=S[w.route.id];if(b.signal.aborted)return void(W.get(t)===y&&W.delete(t));if(X.has(t)){if(Ge(O)||Ve(O))return void we(t,rt(void 0))}else{if(Ge(O))return W.delete(t),q>x?void we(t,rt(void 0)):(G.add(t),we(t,nt(v)),me(b,O,!1,{fetcherSubmission:v,preventScrollReset:m}));if(Ve(O))return void xe(t,n,O.error)}let E=R.navigation.location||R.location,j=Re(e.history,E,y.signal),P=r||l,T="idle"!==R.navigation.state?k(P,R.navigation.location,f):R.matches;u(T,"Didn't find any matches after fetcher action");let C=++$;V.set(t,C);let N=nt(v,O.data);R.fetchers.set(t,N);let{dsMatches:L,revalidatingFetchers:M}=pe(j,d,c,s,e.history,R,T,v,E,i,!1,B,U,X,Y,G,P,f,null!=e.patchRoutesOnNavigation,[w.route.id,O]);M.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=R.fetchers.get(t),r=nt(void 0,n?n.data:void 0);R.fetchers.set(t,r),Oe(t),e.controller&&W.set(t,e.controller)})),ee({fetchers:new Map(R.fetchers)});let I=()=>M.forEach((e=>Oe(e.key)));y.signal.addEventListener("abort",I);let{loaderResults:F,fetcherResults:z}=await ye(L,M,j,d);if(y.signal.aborted)return;if(y.signal.removeEventListener("abort",I),V.delete(t),W.delete(t),M.forEach((e=>W.delete(e.key))),R.fetchers.has(t)){let e=rt(O.data);R.fetchers.set(t,e)}let H=We(F);if(H)return me(j,H.result,!1,{preventScrollReset:m});if(H=We(z),H)return G.add(H.key),me(j,H.result,!1,{preventScrollReset:m});let{loaderData:K,errors:J}=Ie(R,T,F,void 0,M,z);De(C),"loading"===R.navigation.state&&C>q?(u(D,"Expected pending action"),_&&_.abort(),ae(R.navigation.location,{matches:T,loaderData:K,errors:J,fetchers:new Map(R.fetchers)})):(ee({errors:J,loaderData:Fe(R.loaderData,K,T,J),fetchers:new Map(R.fetchers)}),B=!1)}(t,n,g,m,x,v.active,d,A,b):(Y.set(t,{routeId:n,path:g}),await async function(t,n,r,o,a,l,u,d,f){let p=R.fetchers.get(t);we(t,nt(f,p?p.data:void 0),{flushSync:u});let h=new AbortController,m=Re(e.history,r,h.signal);if(l){let e=await ot(o,new URL(m.url).pathname,m.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void xe(t,n,e.error,{flushSync:u});if(!e.matches)return void xe(t,n,Ue(404,{pathname:r}),{flushSync:u});o=e.matches}let v=Ze(o,r);W.set(t,h);let g=$,y=Pe(c,s,m,o,v,i,a),b=await ge(m,y,a,t),w=b[v.route.id];W.get(t)===h&&W.delete(t);if(m.signal.aborted)return;if(X.has(t))return void we(t,rt(void 0));if(Ge(w))return q>g?void we(t,rt(void 0)):(G.add(t),void await me(m,w,!1,{preventScrollReset:d}));if(Ve(w))return void xe(t,n,w.error);we(t,rt(w.data))}(t,n,g,m,x,v.active,d,A,b))},revalidate:function(){Z||(Z=function(){let e,t,n=new Promise(((r,o)=>{e=async e=>{r(e);try{await n}catch(e){}},t=async e=>{o(e);try{await n}catch(e){}}}));return{promise:n,resolve:e,reject:t}}()),be(),ee({revalidation:"loading"});let e=Z.promise;return"submitting"===R.navigation.state?e:"idle"===R.navigation.state?(le(R.historyAction,R.location,{startUninterruptedRevalidation:!0}),e):(le(D||R.historyAction,R.navigation.location,{overrideNavigation:R.navigation,enableViewTransition:!0===M}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Ae,deleteFetcher:function(e){let t=(J.get(e)||0)-1;t<=0?(J.delete(e),X.add(e)):J.set(e,t),ee({fetchers:new Map(R.fetchers)})},dispose:function(){v&&v(),F&&F(),b.clear(),_&&_.abort(),R.fetchers.forEach(((e,t)=>Se(t))),R.blockers.forEach(((e,t)=>Le(t)))},getBlocker:function(e,t){let n=R.blockers.get(e)||oe;return Q.get(e)!==t&&Q.set(e,t),n},deleteBlocker:Le,patchRoutes:function(e,t,n=!1){let o=null==r;ve(e,t,r||l,s,c,n),o&&(l=[...l],ee({}))},_internalFetchControllers:W,_internalSetRoutes:function(e){s={},r=x(e,c,void 0,s)},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){ee(e)}},a}function de(e,t,n,r,o,a){let i,c;if(o){i=[];for(let e of t)if(i.push(e),e.route.id===o){c=e;break}}else i=t,c=t[t.length-1];let s=W(r||".",U(i),z(e.pathname,n)||e.pathname,"path"===a);if(null==r&&(s.search=e.search,s.hash=e.hash),(null==r||""===r||"."===r)&&c){let e=Qe(s.search);if(c.route.index&&!e)s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&e){let e=new URLSearchParams(s.search),t=e.getAll("index");e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();s.search=n?`?${n}`:""}}return"/"!==n&&(s.pathname=function({basename:e,pathname:t}){return"/"===t?e:$([e,t])}({basename:n,pathname:s.pathname})),h(s)}function fe(e,t,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:t};if(n.formMethod&&!Je(n.formMethod))return{path:t,error:Ue(405,{method:n.formMethod})};let r,o,a=()=>({path:t,error:Ue(400,{type:"invalid-body"})}),i=(n.formMethod||"get").toUpperCase(),c=$e(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!Xe(i))return a();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce(((e,[t,n])=>`${e}${t}=${n}\n`),""):String(n.body);return{path:t,submission:{formMethod:i,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!Xe(i))return a();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return a()}}}if(u("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=De(n.formData),o=n.formData;else if(n.body instanceof FormData)r=De(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=Le(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=Le(r)}catch(e){return a()}let s={formMethod:i,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(Xe(s.formMethod))return{path:t,submission:s};let l=m(t);return e&&l.search&&Qe(l.search)&&r.append("index",""),l.search=`?${r}`,{path:h(l),submission:s}}function pe(e,t,n,r,o,a,i,c,s,l,u,d,f,p,h,m,v,g,y,b){let w,x=b?Ve(b[1])?b[1].error:b[1].data:void 0,A=o.createURL(a.location),S=o.createURL(s);if(u&&a.errors){let e=Object.keys(a.errors)[0];w=i.findIndex((t=>t.route.id===e))}else if(b&&Ve(b[1])){let e=b[0];w=i.findIndex((t=>t.route.id===e))-1}let O=b?b[1].statusCode:void 0,E=O&&O>=400,j={currentUrl:A,currentParams:a.matches[0]?.params||{},nextUrl:S,nextParams:i[0].params,...c,actionResult:x,actionStatus:O},P=i.map(((o,i)=>{let{route:c}=o,s=null;if(null!=w&&i>w?s=!1:c.lazy?s=!0:null==c.loader?s=!1:u?s=he(c,a.loaderData,a.errors):function(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}(a.loaderData,a.matches[i],o)&&(s=!0),null!==s)return je(n,r,e,o,l,t,s);let f=!E&&(d||A.pathname+A.search===S.pathname+S.search||A.search!==S.search||function(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}(a.matches[i],o)),p={...j,defaultShouldRevalidate:f},h=me(o,p);return je(n,r,e,o,l,t,h,p)})),T=[];return h.forEach(((e,c)=>{if(u||!i.some((t=>t.route.id===e.routeId))||p.has(c))return;let s=a.fetchers.get(c),h=s&&"idle"!==s.state&&void 0===s.data,b=k(v,e.path,g);if(!b){if(y&&h)return;return void T.push({key:c,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null})}if(m.has(c))return;let w=Ze(b,e.path),x=new AbortController,A=Re(o,e.path,x.signal),S=null;if(f.has(c))f.delete(c),S=Pe(n,r,A,b,w,l,t);else if(h)d&&(S=Pe(n,r,A,b,w,l,t));else{let e={...j,defaultShouldRevalidate:!E&&d};me(w,e)&&(S=Pe(n,r,A,b,w,l,t,e))}S&&T.push({key:c,routeId:e.routeId,path:e.path,matches:S,match:w,request:A,controller:x})})),{dsMatches:P,revalidatingFetchers:T}}function he(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=null!=t&&e.id in t,o=null!=n&&void 0!==n[e.id];return!(!r&&o)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!o)}function me(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function ve(e,t,n,r,o,a){let i;if(e){let t=r[e];u(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),i=t.children}else i=n;let c=[],s=[];if(t.forEach((e=>{let t=i.find((t=>ge(e,t)));t?s.push({existingRoute:t,newRoute:e}):c.push(e)})),c.length>0){let t=x(c,o,[e||"_","patch",String(i?.length||"0")],r);i.push(...t)}if(a&&s.length>0)for(let e=0;e<s.length;e++){let{existingRoute:t,newRoute:n}=s[e],r=t,[a]=x([n],o,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}}function ge(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every(((e,n)=>t.children?.some((t=>ge(e,t))))))}var ye=new WeakMap,be=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(u(o,"No route found in manifest"),!o.lazy||"object"!=typeof o.lazy)return;let a=o.lazy[e];if(!a)return;let i=ye.get(o);i||(i={},ye.set(o,i));let c=i[e];if(c)return c;let s=(async()=>{let t=function(e){return b.has(e)}(e),n=void 0!==o[e]&&"hasErrorBoundary"!==e;if(t)d(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(n)d(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();null!=t&&(Object.assign(o,{[e]:t}),Object.assign(o,r(o)))}"object"==typeof o.lazy&&(o.lazy[e]=void 0,Object.values(o.lazy).every((e=>void 0===e))&&(o.lazy=void 0))})();return i[e]=s,s},we=new WeakMap;async function xe(e){let t=e.matches.filter((e=>e.shouldLoad)),n={};return(await Promise.all(t.map((e=>e.resolve())))).forEach(((e,r)=>{n[t[r].route.id]=e})),n}async function ke(e){if(!e.matches.some((e=>e.route.unstable_middleware)))return xe(e);let t=!1;return Se(e,(()=>(t=!0,xe(e))),((n,r)=>Ae(n,r,e.matches,t)))}function Ae(e,t,n,r){if(r)return{[t]:{type:"error",result:e}};{let r=He(n,n.find((e=>e.route.id===t||e.route.loader))?.route.id||t).route.id;return{[r]:{type:"error",result:e}}}}async function Se(e,t,n){let{matches:r,request:o,params:a,context:i}=e,c=r.flatMap((e=>e.route.unstable_middleware?e.route.unstable_middleware.map((t=>[e.route.id,t])):[])),s={};return await Oe({request:o,params:a,context:i},c,t,n,s),s}async function Oe(e,t,n,r,o={},a=0){let{request:i}=e;if(i.signal.aborted){if(i.signal.reason)throw i.signal.reason;throw new Error(`Request aborted without an \`AbortSignal.reason\`: ${i.method} ${i.url}`)}let c=t[a];if(!c){let e=await n();return void Object.assign(o,e)}let[s,l]=c,u=!1,d=async()=>{if(u)throw new Error("You may only call `next()` once per middleware");u=!0;try{let i=await Oe(e,t,n,r,o,a+1);Object.assign(o,i)}catch(e){let t=await r(e,s);Object.assign(o,t)}};try{let t=await l({request:e.request,params:e.params,context:e.context},d);void 0!==t&&console.warn("client middlewares are not intended to return values, the value will be ignored",t),u||await d()}catch(e){let t=await r(e,s);Object.assign(o,t)}}function Ee(e,t,n,r,o){let a=be({key:"unstable_middleware",route:r.route,manifest:t,mapRouteProperties:e}),i=function(e,t,n,r,o){let a=n[e.id];if(u(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=we.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{u("function"==typeof e.lazy,"No lazy route function found");let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(void 0===r)continue;let i=(o=e,w.has(o)),c=void 0!==a[e]&&"hasErrorBoundary"!==e;i?d(!i,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):c?d(!c,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}var o;Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return we.set(a,n),n.catch((()=>{})),{lazyRoutePromise:n,lazyHandlerPromise:n}}let i,c=Object.keys(e.lazy),s=[];for(let a of c){if(o&&o.includes(a))continue;let c=be({key:a,route:e,manifest:n,mapRouteProperties:r});c&&(s.push(c),a===t&&(i=c))}let l=s.length>0?Promise.all(s).then((()=>{})):void 0;return l?.catch((()=>{})),i?.catch((()=>{})),{lazyRoutePromise:l,lazyHandlerPromise:i}}(r.route,Xe(n.method)?"action":"loader",t,e,o);return{middleware:a,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function je(e,t,n,r,o,a,i,c=null){let s=!1,l=Ee(e,t,n,r,o);return{...r,_lazyPromises:l,shouldLoad:i,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler:e=>(s=!0,c?me(r,"boolean"==typeof e?{...c,defaultShouldRevalidate:e}:c):i),resolve:e=>s||i||e&&!Xe(n.method)&&(r.route.lazy||r.route.loader)?async function({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:o,scopedContext:a}){let i,c,s=Xe(e.method),l=s?"action":"loader",u=n=>{let r,i=new Promise(((e,t)=>r=t));c=()=>r(),e.signal.addEventListener("abort",c);let s=r=>"function"!=typeof n?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${l}" [routeId: ${t.route.id}]`)):n({request:e,params:t.params,context:a},...void 0!==r?[r]:[]),u=(async()=>{try{return{type:"data",result:await(o?o((e=>s(e))):s())}}catch(e){return{type:"error",result:e}}})();return Promise.race([u,i])};try{let o=s?t.route.action:t.route.loader;if(n||r)if(o){let e,[t]=await Promise.all([u(o).catch((t=>{e=t})),n,r]);if(void 0!==e)throw e;i=t}else{await n;let o=s?t.route.action:t.route.loader;if(!o){if("action"===l){let n=new URL(e.url),r=n.pathname+n.search;throw Ue(405,{method:e.method,pathname:r,routeId:t.route.id})}return{type:"data",result:void 0}}[i]=await Promise.all([u(o),r])}else{if(!o){let t=new URL(e.url);throw Ue(404,{pathname:t.pathname+t.search})}i=await u(o)}}catch(e){return{type:"error",result:e}}finally{c&&e.signal.removeEventListener("abort",c)}return i}({request:n,match:r,lazyHandlerPromise:l?.handler,lazyRoutePromise:l?.route,handlerOverride:e,scopedContext:a}):Promise.resolve({type:"data",result:void 0})}}function Pe(e,t,n,r,o,a,i,c=null){return r.map((r=>r.route.id!==o.route.id?{...r,shouldLoad:!1,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler:()=>!1,_lazyPromises:Ee(e,t,n,r,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:je(e,t,n,r,a,i,!0,c)))}async function Te(e,t,n,r,o,a){n.some((e=>e._lazyPromises?.middleware))&&await Promise.all(n.map((e=>e._lazyPromises?.middleware)));let i={request:t,params:n[0].params,context:o,matches:n},c=a?()=>{throw new Error("You cannot call `unstable_runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=i,o=!1;return Se(t,(()=>(o=!0,e({...t,fetcherKey:r,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}))),((e,t)=>Ae(e,t,n,o)))},s=await e({...i,fetcherKey:r,unstable_runClientMiddleware:c});try{await Promise.all(n.flatMap((e=>[e._lazyPromises?.handler,e._lazyPromises?.route])))}catch(e){}return s}async function Ce(e){let{result:t,type:n}=e;if(Ke(t)){let e;try{let n=t.headers.get("Content-Type");e=n&&/\bapplication\/json\b/.test(n)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:"error",error:e}}return"error"===n?{type:"error",error:new Y(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===n?Ye(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new Y(t.init?.status||500,void 0,t.data),statusCode:K(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:K(t)?t.status:void 0}:Ye(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function _e(e,t,n,r,o){let a=e.headers.get("Location");if(u(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!ie(a)){let i=r.slice(0,r.findIndex((e=>e.route.id===n))+1);a=de(new URL(t.url),i,o,a),e.headers.set("Location",a)}return e}function Ne(e,t,n){if(ie(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=null!=z(o.pathname,n);if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function Re(e,t,n,r){let o=e.createURL($e(t)).toString(),a={signal:n};if(r&&Xe(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),"application/json"===t?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):"text/plain"===t?a.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?a.body=De(r.formData):a.body=r.formData}return new Request(o,a)}function De(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Le(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Me(e,t,n,r=!1,o=!1){let a,i={},c=null,s=!1,l={},d=n&&Ve(n[1])?n[1].error:void 0;return e.forEach((n=>{if(!(n.route.id in t))return;let f=n.route.id,p=t[f];if(u(!Ge(p),"Cannot handle redirect results in processLoaderData"),Ve(p)){let t=p.error;if(void 0!==d&&(t=d,d=void 0),c=c||{},o)c[f]=t;else{let n=He(e,f);null==c[n.route.id]&&(c[n.route.id]=t)}r||(i[f]=le),s||(s=!0,a=K(p.error)?p.error.status:500),p.headers&&(l[f]=p.headers)}else i[f]=p.data,p.statusCode&&200!==p.statusCode&&!s&&(a=p.statusCode),p.headers&&(l[f]=p.headers)})),void 0!==d&&n&&(c={[n[0]]:d},n[2]&&(i[n[2]]=void 0)),{loaderData:i,errors:c,statusCode:a||200,loaderHeaders:l}}function Ie(e,t,n,r,o,a){let{loaderData:i,errors:c}=Me(t,n,r);return o.filter((e=>!e.matches||e.matches.some((e=>e.shouldLoad)))).forEach((t=>{let{key:n,match:r,controller:o}=t;if(o&&o.signal.aborted)return;let i=a[n];if(u(i,"Did not find corresponding fetcher result"),Ve(i)){let t=He(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:i.error}),e.fetchers.delete(n)}else if(Ge(i))u(!1,"Unhandled fetcher revalidation redirect");else{let t=rt(i.data);e.fetchers.set(n,t)}})),{loaderData:i,errors:c}}function Fe(e,t,n,r){let o=Object.entries(t).filter((([,e])=>e!==le)).reduce(((e,[t,n])=>(e[t]=n,e)),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function ze(e){return e?Ve(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function He(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 Be(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 Ue(e,{pathname:t,routeId:n,method:r,type:o,message:a}={}){let i="Unknown Server Error",c="Unknown @remix-run/router error";return 400===e?(i="Bad Request",r&&t&&n?c=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:"invalid-body"===o&&(c="Unable to encode submission body")):403===e?(i="Forbidden",c=`Route "${n}" does not match URL "${t}"`):404===e?(i="Not Found",c=`No route matches URL "${t}"`):405===e&&(i="Method Not Allowed",r&&t&&n?c=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(c=`Invalid request method "${r.toUpperCase()}"`)),new Y(e||500,i,new Error(c),!0)}function We(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(Ge(r))return{key:n,result:r}}}function $e(e){return h({..."string"==typeof e?m(e):e,hash:""})}function qe(e){return Ke(e.result)&&ee.has(e.result.status)}function Ve(e){return"error"===e.type}function Ge(e){return"redirect"===(e&&e.type)}function Ye(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Ke(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Je(e){return Z.has(e.toUpperCase())}function Xe(e){return X.has(e.toUpperCase())}function Qe(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function Ze(e,t){let n="string"==typeof t?m(t).search:t.search;if(e[e.length-1].route.index&&Qe(n||""))return e[e.length-1];let r=B(e);return r[r.length-1]}function et(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=a?{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}:void 0}function tt(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 nt(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 rt(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}var ot=o.createContext(null);ot.displayName="DataRouter";var at=o.createContext(null);at.displayName="DataRouterState";var it=o.createContext(!1);var ct=o.createContext({isTransitioning:!1});ct.displayName="ViewTransition";var st=o.createContext(new Map);st.displayName="Fetchers";var lt=o.createContext(null);lt.displayName="Await";var ut=o.createContext(null);ut.displayName="Navigation";var dt=o.createContext(null);dt.displayName="Location";var ft=o.createContext({outlet:null,matches:[],isDataRoute:!1});ft.displayName="Route";var pt=o.createContext(null);pt.displayName="RouteError";var ht=!0;function mt(){return null!=o.useContext(dt)}function vt(){return u(mt(),"useLocation() may be used only in the context of a <Router> component."),o.useContext(dt).location}var gt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function yt(e){o.useContext(ut).static||o.useLayoutEffect(e)}function bt(){let{isDataRoute:e}=o.useContext(ft);return e?function(){let{router:e}=Tt("useNavigate"),t=_t("useNavigate"),n=o.useRef(!1);return yt((()=>{n.current=!0})),o.useCallback((async(r,o={})=>{d(n.current,gt),n.current&&("number"==typeof r?e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){u(mt(),"useNavigate() may be used only in the context of a <Router> component.");let e=o.useContext(ot),{basename:t,navigator:n}=o.useContext(ut),{matches:r}=o.useContext(ft),{pathname:a}=vt(),i=JSON.stringify(U(r)),c=o.useRef(!1);return yt((()=>{c.current=!0})),o.useCallback(((r,o={})=>{if(d(c.current,gt),!c.current)return;if("number"==typeof r)return void n.go(r);let s=W(r,JSON.parse(i),a,"path"===o.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:$([t,s.pathname])),(o.replace?n.replace:n.push)(s,o.state,o)}),[t,n,i,a,e])}()}o.createContext(null);function wt(){let{matches:e}=o.useContext(ft),t=e[e.length-1];return t?t.params:{}}function xt(e,{relative:t}={}){let{matches:n}=o.useContext(ft),{pathname:r}=vt(),a=JSON.stringify(U(n));return o.useMemo((()=>W(e,JSON.parse(a),r,"path"===t)),[e,a,r,t])}function kt(e,t,n,r){u(mt(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=o.useContext(ut),{matches:i}=o.useContext(ft),c=i[i.length-1],s=c?c.params:{},l=c?c.pathname:"/",f=c?c.pathnameBase:"/",p=c&&c.route;if(ht){let e=p&&p.path||"";It(l,!p||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let h,v=vt();if(t){let e="string"==typeof t?m(t):t;u("/"===f||e.pathname?.startsWith(f),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${e.pathname}" was given in the \`location\` prop.`),h=e}else h=v;let g=h.pathname||"/",y=g;if("/"!==f){let e=f.replace(/^\//,"").split("/");y="/"+g.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=k(e,{pathname:y});ht&&(d(p||null!=b,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),d(null==b||void 0!==b[b.length-1].route.element||void 0!==b[b.length-1].route.Component||void 0!==b[b.length-1].route.lazy,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`));let w=jt(b&&b.map((e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:$([f,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:$([f,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),i,n,r);return t&&w?o.createElement(dt.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...h},navigationType:"POP"}},w):w}function At(){let e=Rt(),t=K(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},c=null;return ht&&(console.error("Error handled by React Router default ErrorBoundary:",e),c=o.createElement(o.Fragment,null,o.createElement("p",null,"💿 Hey developer 👋"),o.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",o.createElement("code",{style:i},"ErrorBoundary")," or"," ",o.createElement("code",{style:i},"errorElement")," prop on your route."))),o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),n?o.createElement("pre",{style:a},n):null,c)}var St=o.createElement(At,null),Ot=class extends o.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?o.createElement(ft.Provider,{value:this.props.routeContext},o.createElement(pt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Et({routeContext:e,match:t,children:n}){let r=o.useContext(ot);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),o.createElement(ft.Provider,{value:e},n)}function jt(e,t=[],n=null,r=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let a=e,i=n?.errors;if(null!=i){let e=a.findIndex((e=>e.route.id&&void 0!==i?.[e.route.id]));u(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,e+1))}let c=!1,s=-1;if(n)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){c=!0,a=s>=0?a.slice(0,s+1):[a[0]];break}}}return a.reduceRight(((e,r,l)=>{let u,d=!1,f=null,p=null;n&&(u=i&&r.route.id?i[r.route.id]:void 0,f=r.route.errorElement||St,c&&(s<0&&0===l?(It("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===l&&(d=!0,p=r.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,l+1)),m=()=>{let t;return t=u?f:d?p:r.route.Component?o.createElement(r.route.Component,null):r.route.element?r.route.element:e,o.createElement(Et,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===l)?o.createElement(Ot,{location:n.location,revalidation:n.revalidation,component:f,error:u,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()}),null)}function Pt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Tt(e){let t=o.useContext(ot);return u(t,Pt(e)),t}function Ct(e){let t=o.useContext(at);return u(t,Pt(e)),t}function _t(e){let t=function(e){let t=o.useContext(ft);return u(t,Pt(e)),t}(e),n=t.matches[t.matches.length-1];return u(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Nt(){let{matches:e,loaderData:t}=Ct("useMatches");return o.useMemo((()=>e.map((e=>S(e,t)))),[e,t])}function Rt(){let e=o.useContext(pt),t=Ct("useRouteError"),n=_t("useRouteError");return void 0!==e?e:t.errors?.[n]}var Dt=0;function Lt(e){let{router:t,basename:n}=Tt("useBlocker"),r=Ct("useBlocker"),[a,i]=o.useState(""),c=o.useCallback((t=>{if("function"!=typeof e)return!!e;if("/"===n)return e(t);let{currentLocation:r,nextLocation:o,historyAction:a}=t;return e({currentLocation:{...r,pathname:z(r.pathname,n)||r.pathname},nextLocation:{...o,pathname:z(o.pathname,n)||o.pathname},historyAction:a})}),[n,e]);return o.useEffect((()=>{let e=String(++Dt);return i(e),()=>t.deleteBlocker(e)}),[t]),o.useEffect((()=>{""!==a&&t.getBlocker(a,c)}),[t,a,c]),a&&r.blockers.has(a)?r.blockers.get(a):oe}var Mt={};function It(e,t,n){t||Mt[e]||(Mt[e]=!0,d(!1,n))}var Ft={};function zt(e,t){e||Ft[t]||(Ft[t]=!0,console.warn(t))}function Ht(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(ht&&e.element&&d(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:o.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(ht&&e.hydrateFallbackElement&&d(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:o.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(ht&&e.errorElement&&d(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:o.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var Bt=["HydrateFallback","hydrateFallbackElement"];function Ut(e,t){return ue({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:s({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,hydrationRouteProperties:Bt,mapRouteProperties:Ht,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation}).initialize()}var Wt=class{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}};function $t({router:e,flushSync:t}){let[n,r]=o.useState(e.state),[a,i]=o.useState(),[c,s]=o.useState({isTransitioning:!1}),[l,u]=o.useState(),[d,f]=o.useState(),[p,h]=o.useState(),m=o.useRef(new Map),v=o.useCallback(((n,{deletedFetchers:a,flushSync:c,viewTransitionOpts:p})=>{n.fetchers.forEach(((e,t)=>{void 0!==e.data&&m.current.set(t,e.data)})),a.forEach((e=>m.current.delete(e))),zt(!1===c||null!=t,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let v=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(zt(null==p||v,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),p&&v){if(t&&c){t((()=>{d&&(l&&l.resolve(),d.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:p.currentLocation,nextLocation:p.nextLocation})}));let o=e.window.document.startViewTransition((()=>{t((()=>r(n)))}));return o.finished.finally((()=>{t((()=>{u(void 0),f(void 0),i(void 0),s({isTransitioning:!1})}))})),void t((()=>f(o)))}d?(l&&l.resolve(),d.skipTransition(),h({state:n,currentLocation:p.currentLocation,nextLocation:p.nextLocation})):(i(n),s({isTransitioning:!0,flushSync:!1,currentLocation:p.currentLocation,nextLocation:p.nextLocation}))}else t&&c?t((()=>r(n))):o.startTransition((()=>r(n)))}),[e.window,t,d,l]);o.useLayoutEffect((()=>e.subscribe(v)),[e,v]),o.useEffect((()=>{c.isTransitioning&&!c.flushSync&&u(new Wt)}),[c]),o.useEffect((()=>{if(l&&a&&e.window){let t=a,n=l.promise,c=e.window.document.startViewTransition((async()=>{o.startTransition((()=>r(t))),await n}));c.finished.finally((()=>{u(void 0),f(void 0),i(void 0),s({isTransitioning:!1})})),f(c)}}),[a,l,e.window]),o.useEffect((()=>{l&&a&&n.location.key===a.location.key&&l.resolve()}),[l,d,n.location,a]),o.useEffect((()=>{!c.isTransitioning&&p&&(i(p.state),s({isTransitioning:!0,flushSync:!1,currentLocation:p.currentLocation,nextLocation:p.nextLocation}),h(void 0))}),[c.isTransitioning,p]);let g=o.useMemo((()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})})),[e]),y=e.basename||"/",b=o.useMemo((()=>({router:e,navigator:g,static:!1,basename:y})),[e,g,y]);return o.createElement(o.Fragment,null,o.createElement(ot.Provider,{value:b},o.createElement(at.Provider,{value:n},o.createElement(st.Provider,{value:m.current},o.createElement(ct.Provider,{value:c},o.createElement(Yt,{basename:y,location:n.location,navigationType:n.historyAction,navigator:g},o.createElement(qt,{routes:e.routes,future:e.future,state:n})))))),null)}var qt=o.memo((function({routes:e,future:t,state:n}){return kt(e,void 0,n,t)}));function Vt({to:e,replace:t,state:n,relative:r}){u(mt(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=o.useContext(ut);d(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=o.useContext(ft),{pathname:c}=vt(),s=bt(),l=W(e,U(i),c,"path"===r),f=JSON.stringify(l);return o.useEffect((()=>{s(JSON.parse(f),{replace:t,state:n,relative:r})}),[s,f,r,t,n]),null}function Gt(e){u(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Yt({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1}){u(!mt(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),s=o.useMemo((()=>({basename:c,navigator:a,static:i,future:{}})),[c,a,i]);"string"==typeof n&&(n=m(n));let{pathname:l="/",search:f="",hash:p="",state:h=null,key:v="default"}=n,g=o.useMemo((()=>{let e=z(l,c);return null==e?null:{location:{pathname:e,search:f,hash:p,state:h,key:v},navigationType:r}}),[c,l,f,p,h,v,r]);return d(null!=g,`<Router basename="${c}"> is not able to match the URL "${l}${f}${p}" because it does not start with the basename, so the <Router> won't render anything.`),null==g?null:o.createElement(ut.Provider,{value:s},o.createElement(dt.Provider,{children:t,value:g}))}function Kt({children:e,location:t}){return kt(Jt(e),t)}o.Component;function Jt(e,t=[]){let n=[];return o.Children.forEach(e,((e,r)=>{if(!o.isValidElement(e))return;let a=[...t,r];if(e.type===o.Fragment)return void n.push.apply(n,Jt(e.props.children,a));u(e.type===Gt,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),u(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={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,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=Jt(e.props.children,a)),n.push(i)})),n}var Xt="get",Qt="application/x-www-form-urlencoded";function Zt(e){return null!=e&&"string"==typeof e.tagName}function en(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}var tn=null;var nn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function rn(e){return null==e||nn.has(e)?e:(d(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Qt}"`),null)}function on(e,t){let n,r,o,a,i;if(function(e){return Zt(e)&&"form"===e.tagName.toLowerCase()}(e)){let i=e.getAttribute("action");r=i?z(i,t):null,n=e.getAttribute("method")||Xt,o=rn(e.getAttribute("enctype"))||Qt,a=new FormData(e)}else if(function(e){return Zt(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Zt(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||i.getAttribute("action");if(r=c?z(c,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||Xt,o=rn(e.getAttribute("formenctype"))||rn(i.getAttribute("enctype"))||Qt,a=new FormData(i,e),!function(){if(null===tn)try{new FormData(document.createElement("form"),0),tn=!1}catch(e){tn=!0}return tn}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";a.append(`${e}x`,"0"),a.append(`${e}y`,"0")}else t&&a.append(t,r)}}else{if(Zt(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Xt,r=null,o=Qt,i=e}return a&&"text/plain"===o&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis;function an(e){return{__html:e}}function cn(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function sn(e,t,n){let r="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===r.pathname?r.pathname=`_root.${n}`:t&&"/"===z(r.pathname,t)?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function ln(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}function un(e){return null!=e&&"string"==typeof e.page}function dn(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function fn(e,t,n,r,o,a){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,c=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===a?t.filter(((e,t)=>i(e,t)||c(e,t))):"data"===a?t.filter(((t,a)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(i(t,a)||c(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function pn(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o})).flat(1),[...new Set(r)];var r}function hn(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!un(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let a=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(a)||(n.add(a),e.push({key:a,link:o})),e}),[])}function mn(e,t){return"lazy"===e.mode&&!0===t}function vn(){let e=o.useContext(ot);return cn(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function gn(){let e=o.useContext(at);return cn(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var yn=o.createContext(void 0);function bn(){let e=o.useContext(yn);return cn(e,"You must render this element inside a <HydratedRouter> element"),e}function wn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function xn(e,t,n){if(n&&!On)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}yn.displayName="FrameworkContext";function kn({page:e,...t}){let{router:n}=vn(),r=o.useMemo((()=>k(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?o.createElement(Sn,{page:e,matches:r,...t}):null}function An(e){let{manifest:t,routeModules:n}=bn(),[r,a]=o.useState([]);return o.useEffect((()=>{let r=!1;return async function(e,t,n){return hn((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await ln(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(dn).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(e,t,n).then((e=>{r||a(e)})),()=>{r=!0}}),[e,t,n]),r}function Sn({page:e,matches:t,...n}){let r=vt(),{manifest:a,routeModules:i}=bn(),{basename:c}=vn(),{loaderData:s,matches:l}=gn(),u=o.useMemo((()=>fn(e,t,l,a,r,"data")),[e,t,l,a,r]),d=o.useMemo((()=>fn(e,t,l,a,r,"assets")),[e,t,l,a,r]),f=o.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,o=!1;if(t.forEach((e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some((t=>t.route.id===e.route.id))&&e.route.id in s&&i[e.route.id]?.shouldRevalidate||t.hasClientLoader?o=!0:n.add(e.route.id))})),0===n.size)return[];let l=sn(e,c,"data");return o&&n.size>0&&l.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[l.pathname+l.search]}),[c,s,r,a,u,t,e,i]),p=o.useMemo((()=>pn(d,a)),[d,a]),h=An(d);return o.createElement(o.Fragment,null,f.map((e=>o.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),p.map((e=>o.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),h.map((({key:e,link:t})=>o.createElement("link",{key:e,nonce:n.nonce,...t}))))}var On=!1;function En(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:a,routeDiscovery:i,ssr:c}=bn(),{router:s,static:l,staticContext:u}=vn(),{matches:d}=gn(),f=o.useContext(it),p=mn(i,c);a&&(a.didRenderScripts=!0);let h=xn(d,null,r);o.useEffect((()=>{0}),[]);let m=o.useMemo((()=>{if(f)return null;let r=u?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",a=l?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${p?"":`import ${JSON.stringify(t.url)}`};\n${h.map(((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];cn(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:a,clientLoaderModule:i,clientMiddlewareModule:c,hydrateFallbackModule:s,module:l}=o,u=[...a?[{module:a,varName:`${r}_clientAction`}]:[],...i?[{module:i,varName:`${r}_clientLoader`}]:[],...c?[{module:c,varName:`${r}_clientMiddleware`}]:[],...s?[{module:s,varName:`${r}_HydrateFallback`}]:[],{module:l,varName:`${r}_main`}];return 1===u.length?`import * as ${r} from ${JSON.stringify(l)};`:[u.map((e=>`import * as ${e.varName} from "${e.module}";`)).join("\n"),`const ${r} = {${u.map((e=>`...${e.varName}`)).join(",")}};`].join("\n")})).join("\n")}\n ${p?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},n){let r=new Set(n.state.matches.map((e=>e.route.id))),o=n.state.location.pathname.split("/").filter(Boolean),a=["/"];for(o.pop();o.length>0;)a.push(`/${o.join("/")}`),o.pop();a.forEach((e=>{let t=k(n.routes,e,n.basename);t&&t.forEach((e=>r.add(e.route.id)))}));let i=[...r].reduce(((e,n)=>Object.assign(e,{[n]:t.routes[n]})),{});return{...t,routes:i,sri:!!e||void 0}}(t,s),null,2)};`:""}\n window.__reactRouterRouteModules = {${h.map(((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`)).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return o.createElement(o.Fragment,null,o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:an(r),type:void 0}),o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:an(a),type:"module",async:!0}))}),[]),v=On||f?[]:function(e){return[...new Set(e)]}(t.entry.imports.concat(pn(h,t,{includeHydrateFallback:!0}))),g="object"==typeof t.sri?t.sri:{};return zt(!f,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),On||f?null:o.createElement(o.Fragment,null,"object"==typeof t.sri?o.createElement("script",{"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:g})}}):null,p?null:o.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:g[t.url],suppressHydrationWarning:!0}),o.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:g[t.entry.module],suppressHydrationWarning:!0}),v.map((t=>o.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:g[t],suppressHydrationWarning:!0}))),m)}function jn(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}o.Component;function Pn({error:e,isOutsideRemixApp:t}){console.error(e);let n,r=o.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(K(e))return o.createElement(Tn,{title:"Unhandled Thrown Response!"},o.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),ht?r:null);if(e instanceof Error)0;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);new Error(t)}return o.createElement(Tn,{title:"Application Error!",isOutsideRemixApp:t},o.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),o.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},n.stack),r)}function Tn({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:a}=bn();return a.root?.Layout&&!n?r:o.createElement("html",{lang:"en"},o.createElement("head",null,o.createElement("meta",{charSet:"utf-8"}),o.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),o.createElement("title",null,e)),o.createElement("body",null,o.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r,t?o.createElement(En,null):null)))}var Cn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Cn&&(window.__reactRouterVersion="7.8.0")}catch(e){}function _n(e,t){return ue({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:l({window:t?.window}),hydrationData:t?.hydrationData||Nn(),routes:e,mapRouteProperties:Ht,hydrationRouteProperties:Bt,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function Nn(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Rn(e.errors)}),e}function Rn(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new Y(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let o=new t(r.message);o.stack="",n[e]=o}catch(e){}}if(null==n[e]){let t=new Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}var Dn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ln=o.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:a,replace:i,state:c,target:s,to:l,preventScrollReset:f,viewTransition:p,...m},v){let g,{basename:y}=o.useContext(ut),b="string"==typeof l&&Dn.test(l),w=!1;if("string"==typeof l&&b&&(g=l,Cn))try{let e=new URL(window.location.href),t=l.startsWith("//")?new URL(e.protocol+l):new URL(l),n=z(t.pathname,y);t.origin===e.origin&&null!=n?l=n+t.search+t.hash:w=!0}catch(e){d(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=function(e,{relative:t}={}){u(mt(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=o.useContext(ut),{hash:a,pathname:i,search:c}=xt(e,{relative:t}),s=i;return"/"!==n&&(s="/"===i?n:$([n,i])),r.createHref({pathname:s,search:c,hash:a})}(l,{relative:r}),[k,A,S]=function(e,t){let n=o.useContext(yn),[r,a]=o.useState(!1),[i,c]=o.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,p=o.useRef(null);o.useEffect((()=>{if("render"===e&&c(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{c(e.isIntersecting)}))}),{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}}),[e]),o.useEffect((()=>{if(r){let e=setTimeout((()=>{c(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let h=()=>{a(!0)},m=()=>{a(!1),c(!1)};return n?"intent"!==e?[i,p,{}]:[i,p,{onFocus:wn(s,h),onBlur:wn(l,m),onMouseEnter:wn(u,h),onMouseLeave:wn(d,m),onTouchStart:wn(f,h)}]:[!1,p,{}]}(n,m),O=function(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:i,viewTransition:c}={}){let s=bt(),l=vt(),u=xt(e,{relative:i});return o.useCallback((o=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(o,t)){o.preventDefault();let t=void 0!==n?n:h(l)===h(u);s(e,{replace:t,state:r,preventScrollReset:a,relative:i,viewTransition:c})}}),[l,s,u,n,r,t,e,a,i,c])}(l,{replace:i,state:c,target:s,preventScrollReset:f,relative:r,viewTransition:p});let E=o.createElement("a",{...m,...S,href:g||x,onClick:w||a?e:function(t){e&&e(t),t.defaultPrevented||O(t)},ref:jn(v,A),target:s,"data-discover":b||"render"!==t?void 0:"true"});return k&&!b?o.createElement(o.Fragment,null,E,o.createElement(kn,{page:x})):E}));Ln.displayName="Link",o.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:a,to:i,viewTransition:c,children:s,...l},d){let f=xt(i,{relative:l.relative}),p=vt(),h=o.useContext(at),{navigator:m,basename:v}=o.useContext(ut),g=null!=h&&function(e,{relative:t}={}){let n=o.useContext(ct);u(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=zn("useViewTransitionState"),a=xt(e,{relative:t});if(!n.isTransitioning)return!1;let i=z(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=z(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=M(a.pathname,c)||null!=M(a.pathname,i)}(f)&&!0===c,y=m.encodeLocation?m.encodeLocation(f).pathname:f.pathname,b=p.pathname,w=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&v&&(w=z(w,v)||w);const x="/"!==y&&y.endsWith("/")?y.length-1:y.length;let k,A=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(x),S=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),O={isActive:A,isPending:S,isTransitioning:g},E=A?e:void 0;k="function"==typeof n?n(O):[n,A?"active":null,S?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let j="function"==typeof a?a(O):a;return o.createElement(Ln,{...l,"aria-current":E,className:k,ref:d,style:j,to:i,viewTransition:c},"function"==typeof s?s(O):s)})).displayName="NavLink";var Mn=o.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:c=Xt,action:s,onSubmit:l,relative:d,preventScrollReset:f,viewTransition:p,...m},v)=>{let g=$n(),y=function(e,{relative:t}={}){let{basename:n}=o.useContext(ut),r=o.useContext(ft);u(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...xt(e||".",{relative:t})},c=vt();if(null==e){i.search=c.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();i.search=n?`?${n}`:""}}e&&"."!==e||!a.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(i.pathname="/"===i.pathname?n:$([n,i.pathname]));return h(i)}(s,{relative:d}),b="get"===c.toLowerCase()?"get":"post",w="string"==typeof s&&Dn.test(s);return o.createElement("form",{ref:v,method:b,action:y,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,o=r?.getAttribute("formmethod")||c;g(r||e.currentTarget,{fetcherKey:t,method:o,navigate:n,replace:a,state:i,relative:d,preventScrollReset:f,viewTransition:p})},...m,"data-discover":w||"render"!==e?void 0:"true"})}));function In({getKey:e,storageKey:t,...n}){let r=o.useContext(yn),{basename:a}=o.useContext(ut),i=vt(),c=Nt();!function({getKey:e,storageKey:t}={}){let{router:n}=zn("useScrollRestoration"),{restoreScrollPosition:r,preventScrollReset:a}=Hn("useScrollRestoration"),{basename:i}=o.useContext(ut),c=vt(),s=Nt(),l=Ct("useNavigation").navigation;o.useEffect((()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"})),[]),function(e,t){let{capture:n}=t||{};o.useEffect((()=>{let t=null!=n?{capture:n}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}}),[e,n])}(o.useCallback((()=>{if("idle"===l.state){let t=Gn(c,s,i,e);Vn[t]=window.scrollY}try{sessionStorage.setItem(t||qn,JSON.stringify(Vn))}catch(e){d(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration="auto"}),[l.state,e,i,c,s,t])),"undefined"!=typeof document&&(o.useLayoutEffect((()=>{try{let e=sessionStorage.getItem(t||qn);e&&(Vn=JSON.parse(e))}catch(e){}}),[t]),o.useLayoutEffect((()=>{let t=n?.enableScrollRestoration(Vn,(()=>window.scrollY),e?(t,n)=>Gn(t,n,i,e):void 0);return()=>t&&t()}),[n,i,e]),o.useLayoutEffect((()=>{if(!1!==r)if("number"!=typeof r){try{if(c.hash){let e=document.getElementById(decodeURIComponent(c.hash.slice(1)));if(e)return void e.scrollIntoView()}}catch{d(!1,`"${c.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}!0!==a&&window.scrollTo(0,0)}else window.scrollTo(0,r)}),[c,r,a]))}({getKey:e,storageKey:t});let s=o.useMemo((()=>{if(!r||!e)return null;let t=Gn(i,c,a,e);return t!==i.key?t:null}),[]);if(!r||r.isSpaMode)return null;let l=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},"")}try{let n=JSON.parse(sessionStorage.getItem(e)||"{}")[t||window.history.state.key];"number"==typeof n&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return o.createElement("script",{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${l})(${JSON.stringify(t||qn)}, ${JSON.stringify(s)})`}})}function Fn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function zn(e){let t=o.useContext(ot);return u(t,Fn(e)),t}function Hn(e){let t=o.useContext(at);return u(t,Fn(e)),t}function Bn(e){d("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=o.useRef(en(e)),n=o.useRef(!1),r=vt(),a=o.useMemo((()=>function(e,t){let n=en(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),i=bt(),c=o.useCallback(((e,t)=>{const r=en("function"==typeof e?e(new URLSearchParams(a)):e);n.current=!0,i("?"+r,t)}),[i,a]);return[a,c]}Mn.displayName="Form",In.displayName="ScrollRestoration";var Un=0,Wn=()=>`__${String(++Un)}__`;function $n(){let{router:e}=zn("useSubmit"),{basename:t}=o.useContext(ut),n=_t("useRouteId");return o.useCallback((async(r,o={})=>{let{action:a,method:i,encType:c,formData:s,body:l}=on(r,t);if(!1===o.navigate){let t=o.fetcherKey||Wn();await e.fetch(t,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:s,body:l,formMethod:o.method||i,formEncType:o.encType||c,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:s,body:l,formMethod:o.method||i,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})}),[e,t,n])}var qn="react-router-scroll-positions",Vn={};function Gn(e,t,n,r){let o=null;return r&&(o=r("/"!==n?{...e,pathname:z(e.pathname,n)||e.pathname}:e,t)),null==o&&(o=e.key),o}},31357:(e,t,n)=>{"use strict";n.d(t,{No:()=>G,W0:()=>q,a:()=>B,uq:()=>V});var r=n(41528),o=n(1481),a=n(96331),i=n(52107);var c=function(e){function t(t){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this,(0,o.A)(n)}return(0,a.A)(t,e),t}((0,i.A)(Error));function s(e,t){return e.substr(-t.length)===t}var l=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function u(e){return"string"!=typeof e?e:e.match(l)?parseFloat(e):e}var d=function(e){return function(t,n){void 0===n&&(n="16px");var r=t,o=n;if("string"==typeof t){if(!s(t,"px"))throw new c(69,e,t);r=u(t)}if("string"==typeof n){if(!s(n,"px"))throw new c(70,e,n);o=u(n)}if("string"==typeof r)throw new c(71,t,e);if("string"==typeof o)throw new c(72,n,e);return""+r/o+e}};d("em");d("rem");function f(e){return Math.round(255*e)}function p(e,t,n){return f(e)+","+f(t)+","+f(n)}function h(e,t,n,r){if(void 0===r&&(r=p),0===t)return r(n,n,n);var o=(e%360+360)%360/60,a=(1-Math.abs(2*n-1))*t,i=a*(1-Math.abs(o%2-1)),c=0,s=0,l=0;o>=0&&o<1?(c=a,s=i):o>=1&&o<2?(c=i,s=a):o>=2&&o<3?(s=a,l=i):o>=3&&o<4?(s=i,l=a):o>=4&&o<5?(c=i,l=a):o>=5&&o<6&&(c=a,l=i);var u=n-a/2;return r(c+u,s+u,l+u)}var m={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var v=/^#[a-fA-F0-9]{6}$/,g=/^#[a-fA-F0-9]{8}$/,y=/^#[a-fA-F0-9]{3}$/,b=/^#[a-fA-F0-9]{4}$/,w=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,x=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,k=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,A=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function S(e){if("string"!=typeof e)throw new c(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return m[t]?"#"+m[t]:e}(e);if(t.match(v))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(g)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(y))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(b)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=w.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=x.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=k.exec(t);if(i){var s="rgb("+h(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",l=w.exec(s);if(!l)throw new c(4,t,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var u=A.exec(t.substring(0,50));if(u){var d="rgb("+h(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",f=w.exec(d);if(!f)throw new c(4,t,d);return{red:parseInt(""+f[1],10),green:parseInt(""+f[2],10),blue:parseInt(""+f[3],10),alpha:parseFloat(""+u[4])>1?parseFloat(""+u[4])/100:parseFloat(""+u[4])}}throw new c(5)}function O(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,a=Math.max(n,r,o),i=Math.min(n,r,o),c=(a+i)/2;if(a===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:c,alpha:e.alpha}:{hue:0,saturation:0,lightness:c};var s=a-i,l=c>.5?s/(2-a-i):s/(a+i);switch(a){case n:t=(r-o)/s+(r<o?6:0);break;case r:t=(o-n)/s+2;break;default:t=(n-r)/s+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:l,lightness:c,alpha:e.alpha}:{hue:t,saturation:l,lightness:c}}(S(e))}var E=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function j(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function P(e){return j(Math.round(255*e))}function T(e,t,n){return E("#"+P(e)+P(t)+P(n))}function C(e,t,n){return h(e,t,n,T)}function _(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return C(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return C(e.hue,e.saturation,e.lightness);throw new c(1)}function N(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?C(e,t,n):"rgba("+h(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?C(e.hue,e.saturation,e.lightness):"rgba("+h(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new c(2)}function R(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return E("#"+j(e)+j(t)+j(n));if("object"==typeof e&&void 0===t&&void 0===n)return E("#"+j(e.red)+j(e.green)+j(e.blue));throw new c(6)}function D(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=S(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?R(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?R(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new c(7)}function L(e){if("object"!=typeof e)throw new c(8);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return D(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return R(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return N(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return _(e);throw new c(8)}function M(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):M(e,t,r)}}function I(e){return M(e,e.length,[])}I((function(e,t){if("transparent"===t)return t;var n=O(t);return L((0,r.A)({},n,{hue:n.hue+parseFloat(e)}))}));function F(e,t,n){return Math.max(e,Math.min(t,n))}I((function(e,t){if("transparent"===t)return t;var n=O(t);return L((0,r.A)({},n,{lightness:F(0,1,n.lightness-parseFloat(e))}))}));I((function(e,t){if("transparent"===t)return t;var n=O(t);return L((0,r.A)({},n,{saturation:F(0,1,n.saturation-parseFloat(e))}))}));function z(e){if("transparent"===e)return 0;var t=S(e),n=Object.keys(t).map((function(e){var n=t[e]/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)})),r=n[0],o=n[1],a=n[2];return parseFloat((.2126*r+.7152*o+.0722*a).toFixed(3))}function H(e,t){var n=z(e),r=z(t);return parseFloat((n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)).toFixed(2))}var B=I((function(e,t){if("transparent"===t)return t;var n=O(t);return L((0,r.A)({},n,{lightness:F(0,1,n.lightness+parseFloat(e))}))}));var U=I((function(e,t,n){if("transparent"===t)return n;if("transparent"===n)return t;if(0===e)return n;var o=S(t),a=(0,r.A)({},o,{alpha:"number"==typeof o.alpha?o.alpha:1}),i=S(n),c=(0,r.A)({},i,{alpha:"number"==typeof i.alpha?i.alpha:1}),s=a.alpha-c.alpha,l=2*parseFloat(e)-1,u=((l*s==-1?l:l+s)/(1+l*s)+1)/2,d=1-u;return D({red:Math.floor(a.red*u+c.red*d),green:Math.floor(a.green*u+c.green*d),blue:Math.floor(a.blue*u+c.blue*d),alpha:a.alpha*parseFloat(e)+c.alpha*(1-parseFloat(e))})}));I((function(e,t){if("transparent"===t)return t;var n=S(t),o="number"==typeof n.alpha?n.alpha:1;return D((0,r.A)({},n,{alpha:F(0,1,(100*o+100*parseFloat(e))/100)}))}));var W="#000",$="#fff";function q(e,t,n,r){void 0===t&&(t=W),void 0===n&&(n=$),void 0===r&&(r=!0);var o=z(e)>.179,a=o?t:n;return!r||H(e,a)>=4.5?a:o?W:$}I((function(e,t){if("transparent"===t)return t;var n=O(t);return L((0,r.A)({},n,{saturation:F(0,1,n.saturation+parseFloat(e))}))}));I((function(e,t){return"transparent"===t?t:L((0,r.A)({},O(t),{hue:parseFloat(e)}))}));I((function(e,t){return"transparent"===t?t:L((0,r.A)({},O(t),{lightness:parseFloat(e)}))}));I((function(e,t){return"transparent"===t?t:L((0,r.A)({},O(t),{saturation:parseFloat(e)}))}));I((function(e,t){return"transparent"===t?t:U(parseFloat(e),"rgb(0, 0, 0)",t)}));var V=I((function(e,t){return"transparent"===t?t:U(parseFloat(e),"rgb(255, 255, 255)",t)}));var G=I((function(e,t){if("transparent"===t)return t;var n=S(t),o="number"==typeof n.alpha?n.alpha:1;return D((0,r.A)({},n,{alpha:F(0,1,+(100*o-100*parseFloat(e)).toFixed(2)/100)}))}))},31380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},31401:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});var r={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]}},31444:(e,t,n)=>{var r=n(55765);e.exports=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?r(e,void 0,t):[]}},31456:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});const r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},o=(e,t,n,o)=>r[e]},31540:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(26396),o=n.n(r),a=n(22056),i=n.n(a),c=n(4883),s=n.n(c),l=n(9075),u=n(74848);function d(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?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"onChange";return s().forwardRef((function(r,a){var s=r.value,d=(0,c.useState)(s),p=i()(d,2),h=p[0],m=p[1],v=(0,l.A)(h,t),g=i()(v,2),y=g[0],b=g[1],w=(0,c.useRef)(s),x=r[n];return(0,c.useEffect)((function(){h!==s&&h===y&&(m(s),w.current=s,b(s))}),[s]),(0,c.useEffect)((function(){x&&w.current!==y&&(x(y),w.current=y)}),[y,x]),(0,u.jsx)(e,f(f(f({},r),{},{value:h},o()({},n,m)),{},{ref:a}))}))}},31601:e=>{"use strict";e.exports=function(e){return e[1]}},31615:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var r=n(31401);function o(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var c=1+(1&i),s=i<2?1:3+(i>>1),l=a(t);for("H"!=l&&"k"!=l||(s=0);s-- >0;)n+="a";for(;c-- >0;)n=l+n}else n+="J"===o?"H":o}return n}function a(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,o=e.language;return"root"!==o&&(n=e.maximize().region),(r.c[n||""]||r.c[o||""]||r.c["".concat(o,"-001")]||r.c["001"])[0]}},31695:(e,t,n)=>{"use strict";n.d(t,{mb:()=>u,pJ:()=>l});var r,o,a=n(40622),i=n(4883),c=n(6442);!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(r||(r={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(o||(o={}));var s=function(e){var t=(0,c.A)(),n=e.value,r=e.children,o=(0,a.Tt)(e,["value","children"]);return r(t.formatNumberToParts(n,o))};s.displayName="FormattedNumberParts";function l(e){var t=function(t){var n=(0,c.A)(),r=t.value,o=t.children,i=(0,a.Tt)(t,["value","children"]),s="string"==typeof r?new Date(r||0):r;return o("formatDate"===e?n.formatDateToParts(s,i):n.formatTimeToParts(s,i))};return t.displayName=o[e],t}function u(e){var t=function(t){var n=(0,c.A)(),r=t.value,o=t.children,s=(0,a.Tt)(t,["value","children"]),l=n[e](r,s);if("function"==typeof o)return o(l);var u=n.textComponent||i.Fragment;return i.createElement(u,null,l)};return t.displayName=r[e],t}s.displayName="FormattedNumberParts"},31769:(e,t,n)=>{var r=n(56449),o=n(28586),a=n(61802),i=n(13222);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:a(i(e))}},31781:(e,t,n)=>{"use strict";n.d(t,{Gt:()=>k,M$:()=>O,r9:()=>A});var r=n(26396),o=n.n(r),a=n(92207),i=n.n(a),c=n(90167),s=n(38159),l=n(79253),u=n(18562),d=n(61402),f=n(72942),p=n(52259),h=n(30355),m=n(38726);function v(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 g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y=i().mark(x),b=i().mark(S),w=function(e){var t=Object.keys(e||{}).filter((function(t){return!!e[t]})).sort((function(e,t){return e.localeCompare(t)})).map((function(t){return Array.isArray(e[t])?e[t].map((function(e){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e))})).join("&"):"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))})).join("&");return t?"?".concat(t):""};function x(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e instanceof h.A)){t.next=2;break}return t.next=1,(0,c.yJ)(f.A.toaster({type:"info",title:"client.common.information",body:e.message}));case 1:t.next=3;break;case 2:throw e;case 3:case"end":return t.stop()}}),y)}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i().mark((function n(){var r,o,a,s,l,u;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,c.T1)(S,t);case 1:return n.next=2,(0,c.T1)(E,e,t);case 2:return r=n.sent,n.next=3,(0,c.T1)(j,t);case 3:if(o=n.sent,a=o.addBlockingInfoAction,s=o.removeBlockingInfoAction,n.prev=4,!a){n.next=5;break}return n.next=5,(0,c.yJ)(a);case 5:return n.next=6,(0,c.T1)(m.w,r.url,r.options,t.acceptedErrorCodes,t.acceptedStatusCodes);case 6:if(l=n.sent,!s){n.next=7;break}return n.next=7,(0,c.yJ)(s);case 7:return n.next=8,(0,c.T1)(p.OO,l,r,t,o);case 8:return l=n.sent,n.abrupt("return",l);case 9:if(n.prev=9,u=n.catch(4),!s){n.next=10;break}return n.next=10,(0,c.yJ)(s);case 10:return n.next=11,x(u);case 11:return n.abrupt("return",{});case 12:case"end":return n.stop()}}),n,null,[[4,9]])}))()}function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i().mark((function n(){var r,o;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,c.T1)(S,t);case 1:return n.next=2,(0,c.T1)(E,e,t);case 2:return r=n.sent,n.prev=3,n.next=4,(0,c.T1)(m.A,r.url,r.options,t.acceptedErrorCodes,t.acceptedStatusCodes);case 4:return n.abrupt("return",n.sent);case 5:return n.prev=5,o=n.catch(3),n.next=6,x(o);case 6:return n.abrupt("return",{});case 7:case"end":return n.stop()}}),n,null,[[3,5]])}))()}function S(e){var t,n;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(null!==(t=e.queryParams)&&void 0!==t&&t.locale){r.next=2;break}return r.next=1,(0,c.Lt)(d.A.localeSelector);case 1:n=r.sent,e.queryParams=g(g({},e.queryParams),{},{locale:n});case 2:return r.abrupt("return",e);case 3:case"end":return r.stop()}}),b)}var O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=E(e,t);return(0,m.w)(n.url,n.options,t.acceptedErrorCodes,t.acceptedStatusCodes)};function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.queryParams,r=void 0===n?{}:n,o=t.method,a=void 0===o?"GET":o,i=t.backendUrl,c=void 0===i?s.A.getBackendUrl():i,u=l.A.prepareHeaders(t),d=t.body;!d||d instanceof FormData||"string"==typeof d||(d=JSON.stringify(d));var f=g({method:a,headers:u,credentials:"include"},d?{body:d}:{}),p=s.A.getWidgetConfigKey(),h=g(g({},r),r._widget_key?{}:{_widget_key:p}),m=w(h),v=function(e,t){return t.startsWith("/")&&(t=t.substring(1)),t.startsWith("http")||t.startsWith("nice2")?l.A.prepareUrl(e,t):"".concat(e,"/nice2/rest/").concat(t)}(c,e);return{url:"".concat(v).concat(m),options:f}}function j(e){var t=e.blockingInfoTitle;return i().mark((function e(){var n,r,o,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=2;break}return e.next=1,(0,c.T1)(u.A);case 1:return n=e.sent,r=t,o=f.A.blockingInfo(n,r),a=f.A.removeBlockingInfo(n),e.abrupt("return",{addBlockingInfoAction:o,removeBlockingInfoAction:a});case 2:return e.abrupt("return",{});case 3:case"end":return e.stop()}}),e)}))()}},31800:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},31885:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}()},32082:(e,t,n)=>{"use strict";n.d(t,{_:()=>v});var r=n(71104),o=n(84543),a=n(51898),i=n(97084),c=n(84485),s=n(51819),l=n(87758);const u="midnight",d="noon",f="morning",p="afternoon",h="evening",m="night",v={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return l.C.y(e,t)},Y:function(e,t,n,r){const o=(0,c.h)(e,r),a=o>0?o:1-o;if("YY"===t){const e=a%100;return(0,s.F)(e,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):(0,s.F)(a,t.length)},R:function(e,t){const n=(0,a.p)(e);return(0,s.F)(n,t.length)},u:function(e,t){const n=e.getFullYear();return(0,s.F)(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,s.F)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,s.F)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return l.C.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return(0,s.F)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=(0,i.N)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):(0,s.F)(o,t.length)},I:function(e,t,n){const r=(0,o.s)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,s.F)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):l.C.d(e,t)},D:function(e,t,n){const o=(0,r.F)(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):(0,s.F)(o,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return(0,s.F)(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return(0,s.F)(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return(0,s.F)(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?d:0===r?u:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?h:r>=12?p:r>=4?f:m,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return l.C.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):l.C.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,s.F)(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,s.F)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):l.C.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):l.C.s(e,t)},S:function(e,t){return l.C.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return y(r);case"XXXX":case"XX":return b(r);default:return b(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return y(r);case"xxxx":case"xx":return b(r);default:return b(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+g(r,":");default:return"GMT"+b(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+g(r,":");default:return"GMT"+b(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return(0,s.F)(r,t.length)},T:function(e,t,n){return(0,s.F)(+e,t.length)}};function g(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+(0,s.F)(a,2)}function y(e,t){if(e%60==0){return(e>0?"-":"+")+(0,s.F)(Math.abs(e)/60,2)}return b(e,t)}function b(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+(0,s.F)(Math.trunc(r/60),2)+t+(0,s.F)(r%60,2)}},32180:(e,t,n)=>{"use strict";n.d(t,{Y:()=>o});var r=n(57883);const o={ordinalNumber:(0,n(20337).K)({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e)}),era:(0,r.A)({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:(0,r.A)({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,r.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,r.A)({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,r.A)({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})}},32224:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(19609);const o={millisecondsToDuration:r.ss,formatDuration:r.a3,getDateFnsLocale:r.Me,getLocalizedDateFormat:r.Rj,getLocalizedDateTimeFormat:r.ax,getLocalizedDateFormatWithoutPunctuation:r.zQ,getLocalizedDateTimeFormatWithoutPunctuation:r.yX,getTimeZone:r.O,useTwoDigitYear:r.EQ,setCurrentTime:r.hW,selectUnit:r.xb}},32370:(e,t,n)=>{"use strict";n.d(t,{f:()=>a});var r=n(80658),o=n(29407);function a(e){return!(!(0,r.$)(e)&&"number"!=typeof e||isNaN(+(0,o.a)(e)))}},32378:(e,t,n)=>{"use strict";n.d(t,{e:()=>h,r:()=>a});var r=n(72319),o=n(11511);function a(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(o.R).filter((function(e){return e.length>0}));n<r.length;n++){var a=r[n].split("/");if(0===a.length)throw new Error("Invalid number skeleton");for(var i=a[0],c=a.slice(1),s=0,l=c;s<l.length;s++){if(0===l[s].length)throw new Error("Invalid number skeleton")}t.push({stem:i,options:c})}return t}var i=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,c=/^(@+)?(\+|#+)?[rs]?$/g,s=/(\*)(0+)|(#+)(0+)|(0+)/g,l=/^(0+)$/;function u(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(c,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function d(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function f(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!l.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function p(e){var t=d(e);return t||{}}function h(e){for(var t={},n=0,o=e;n<o.length;n++){var a=o[n];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=a.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=(0,r.Cl)((0,r.Cl)((0,r.Cl)({},t),{notation:"scientific"}),a.options.reduce((function(e,t){return(0,r.Cl)((0,r.Cl)({},e),p(t))}),{}));continue;case"engineering":t=(0,r.Cl)((0,r.Cl)((0,r.Cl)({},t),{notation:"engineering"}),a.options.reduce((function(e,t){return(0,r.Cl)((0,r.Cl)({},e),p(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(a.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(s,(function(e,n,r,o,a,i){if(n)t.minimumIntegerDigits=r.length;else{if(o&&a)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(l.test(a.stem))t.minimumIntegerDigits=a.stem.length;else if(i.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(i,(function(e,n,r,o,a,i){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:a&&i?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+i.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var h=a.options[0];"w"===h?t=(0,r.Cl)((0,r.Cl)({},t),{trailingZeroDisplay:"stripIfInteger"}):h&&(t=(0,r.Cl)((0,r.Cl)({},t),u(h)))}else if(c.test(a.stem))t=(0,r.Cl)((0,r.Cl)({},t),u(a.stem));else{var m=d(a.stem);m&&(t=(0,r.Cl)((0,r.Cl)({},t),m));var v=f(a.stem);v&&(t=(0,r.Cl)((0,r.Cl)({},t),v))}}return t}},32694:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r,o=n(64116),a=n(56775),i=n(40203),c=n(74848);const s=function(e){var t=e.thumbnailUrl,n=e.alt,s=e.srcUrl,l=(e.fileName,e.caption),u=e.maxDimensionX,d=e.maxDimensionY,f=t?(0,c.jsx)("img",{alt:n,title:n,src:t}):(0,c.jsx)("div",{title:n,children:r||(r=(0,c.jsx)(o.A,{icon:"file-alt"}))});return(0,c.jsxs)(i.A,{maxDimensionX:u,maxDimensionY:d,children:[(0,c.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:s,children:f}),l&&(0,c.jsx)(a.Ay.Figcaption,{children:l})]})}},32742:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>o,Ix:()=>r.Ix,Od:()=>r.Od});var r=n(24483);const o=r.Ay},32804:(e,t,n)=>{var r=n(56110)(n(9325),"Promise");e.exports=r},32865:e=>{e.exports=function(e){return e}},33090:(e,t,n)=>{"use strict";n.d(t,{K:()=>o,s:()=>r});var r=function(){return"\n display: inline-block;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"},o=function(){return"\n hyphens: auto;\n overflow-wrap: break-word;\n white-space: normal;\n word-wrap: break-word;\n"}},33150:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(26396),o=n.n(r),a=n(4883),i=n.n(a),c=n(64116),s=n(69556),l=n(77271),u=n(1897),d=n(11653),f=n(74848);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 h(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){o()(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}const m=i().forwardRef((function(e,t){var n=e.aria,r=e.ink,o=e.label,a=e.title,i=e.icon,p=e.pending,m=e.look,v=void 0===m?l.A.look.FLAT:m,g=e.iconPosition,y=void 0===g?l.A.position.PREPEND:g,b=e.type,w=void 0===b?"button":b,x=e.iconOnly,k=e.children,A=e.labelVisibility,S=(0,u.j)().labelVisibility;return(0,f.jsxs)(d.Ay,h(h(h({ref:t},n),e),{},{ink:r||l.A.ink.BASE,"data-cy":e["data-cy"],title:a||o,labelVisibility:A||S,type:w,children:[i&&!p&&(0,f.jsx)(c.A,{icon:i}),p&&(0,f.jsx)(s.A,{ink:r||l.A.ink.BASE,look:v,position:y,size:"1em"}),!x&&o?(0,f.jsx)(d.Bd,{children:o}):k||""]}))}))},33169:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>m});var r=n(92207),o=n.n(r),a=n(90167),i=n(84847),c=n(83403),s=n(29606);function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var d=o().mark(m),f=o().mark(v),p=o().mark(g),h=function(e){return e.socket};function m(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,a.Q7)([(0,a.jP)(c.wc,y),(0,a.jP)(c.hg,v),(0,a.jP)(c.Nd,g)]);case 1:case"end":return e.stop()}}),d)}function v(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,(0,a.T1)(i.A.getOriginId);case 1:return e=t.sent,t.next=2,(0,a.T1)(s.cH,{name:"tocco",messageReceivedAction:c.bE,originId:e});case 2:case"end":return t.stop()}}),f)}function g(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,a.T1)(s.sM,"tocco");case 1:case"end":return e.stop()}}),p)}function y(e){var t=e.payload,n=t.event,r=t.data;return o().mark((function e(){var t,i,c,s,u,d;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,a.Lt)(h);case 1:t=e.sent,i=t.socketReceivers,c=l(i[n]||[]),e.prev=2,c.s();case 3:if((s=c.n()).done){e.next=5;break}return u=s.value,e.next=4,(0,a.yJ)(u(r));case 4:e.next=3;break;case 5:e.next=7;break;case 6:e.prev=6,d=e.catch(2),c.e(d);case 7:return e.prev=7,c.f(),e.finish(7);case 8:case"end":return e.stop()}}),e,null,[[2,6,7,8]])}))()}},33393:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(38684);const o={fromQueryString:r.qt,toQueryString:r.zJ}},33443:(e,t,n)=>{"use strict";function r(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}n.d(t,{o:()=>r})},33563:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(22598).A},33694:e=>{e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},34743:(e,t,n)=>{"use strict";n.d(t,{BN:()=>h,Ej:()=>v,UE:()=>g,UU:()=>m,cY:()=>p,we:()=>d});var r=n(18491),o=n(4883),a=n(81845),i="undefined"!=typeof document?o.useLayoutEffect:function(){};function c(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!c(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!c(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function s(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function l(e,t){const n=s(e);return Math.round(t*n)/n}function u(e){const t=o.useRef(e);return i((()=>{t.current=e})),t}function d(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:f,elements:{reference:p,floating:h}={},transform:m=!0,whileElementsMounted:v,open:g}=e,[y,b]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[w,x]=o.useState(d);c(w,d)||x(d);const[k,A]=o.useState(null),[S,O]=o.useState(null),E=o.useCallback((e=>{e!==C.current&&(C.current=e,A(e))}),[]),j=o.useCallback((e=>{e!==_.current&&(_.current=e,O(e))}),[]),P=p||k,T=h||S,C=o.useRef(null),_=o.useRef(null),N=o.useRef(y),R=null!=v,D=u(v),L=u(f),M=u(g),I=o.useCallback((()=>{if(!C.current||!_.current)return;const e={placement:t,strategy:n,middleware:w};L.current&&(e.platform=L.current),(0,r.rD)(C.current,_.current,e).then((e=>{const t={...e,isPositioned:!1!==M.current};F.current&&!c(N.current,t)&&(N.current=t,a.flushSync((()=>{b(t)})))}))}),[w,t,n,L,M]);i((()=>{!1===g&&N.current.isPositioned&&(N.current.isPositioned=!1,b((e=>({...e,isPositioned:!1}))))}),[g]);const F=o.useRef(!1);i((()=>(F.current=!0,()=>{F.current=!1})),[]),i((()=>{if(P&&(C.current=P),T&&(_.current=T),P&&T){if(D.current)return D.current(P,T,I);I()}}),[P,T,I,D,R]);const z=o.useMemo((()=>({reference:C,floating:_,setReference:E,setFloating:j})),[E,j]),H=o.useMemo((()=>({reference:P,floating:T})),[P,T]),B=o.useMemo((()=>{const e={position:n,left:0,top:0};if(!H.floating)return e;const t=l(H.floating,y.x),r=l(H.floating,y.y);return m?{...e,transform:"translate("+t+"px, "+r+"px)",...s(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,m,H.floating,y.x,y.y]);return o.useMemo((()=>({...y,update:I,refs:z,elements:H,floatingStyles:B})),[y,I,z,H,B])}const f=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:o}="function"==typeof e?e(t):e;return n&&(a=n,{}.hasOwnProperty.call(a,"current"))?null!=n.current?(0,r.UE)({element:n.current,padding:o}).fn(t):{}:n?(0,r.UE)({element:n,padding:o}).fn(t):{};var a}}),p=(e,t)=>({...(0,r.cY)(e),options:[e,t]}),h=(e,t)=>({...(0,r.BN)(e),options:[e,t]}),m=(e,t)=>({...(0,r.UU)(e),options:[e,t]}),v=(e,t)=>({...(0,r.Ej)(e),options:[e,t]}),g=(e,t)=>({...f(e),options:[e,t]})},34840:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},34887:(e,t,n)=>{"use strict";n.d(t,{d:()=>c});var r=n(87683),o=n(11732),a=n(89160),i=["style","type","fallback","languageDisplay"];function c(e,t,n,c){var s=e.locale,l=e.onError;Intl.DisplayNames||l(new o.IF('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',o.O4.MISSING_INTL_API));var u=(0,r.J9)(c,i);try{return t(s,u).of(n)}catch(e){l(new a.pg("Error formatting display name.",s,e))}}},34932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},34938:(e,t,n)=>{"use strict";n.d(t,{Lv:()=>u,lD:()=>d});var r,o,a=n(72189),i=n.n(a),c=n(51510),s=n(57488),l={info:"info",success:"success",error:"danger",warning:"warning"},u=function(){return(0,c.AH)(r||(r=i()(["\n background-color: "," !important;\n border-radius: ",";\n border: 1px solid ",";\n\n *,\n a:link // reset legacy styling\n {\n color: "," !important;\n }\n"])),s.t7.color("paper"),s.t7.radii("statusLabel"),s.t7.color("border"),s.t7.color("text"))},d=function(){return(0,c.AH)(o||(o=i()(["\n * {\n color: "," !important;\n }\n"])),(function(e){return function(e,t){return l[e]?t.colors.signal[l[e]]:"#ccc"}(e.type,e.theme)}))}},35095:(e,t,n)=>{"use strict";n.d(t,{MY:()=>a,r1:()=>o});var r=n(30735);function o(e){var t=(0,r.FK)(e);return function(n,r,o,a){for(var i="",c=0;c<t;c++)i+=e[c](n,r,o,a)||"";return i}}function a(e){return function(t){t.root||(t=t.return)&&e(t)}}},35212:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(26396),o=n.n(r),a=n(25615),i=n(38798),c=n(33150),s=n(5092),l=n(74848);function u(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const f=(0,i.Ay)((function(e){var t,n=e.id,r=e.onDrop,o=e.immutable,i=e.text,u=e.onChoose,f=e.intl,p=e.allowedFileTypes,h=e.additionalButtonComponent,m=e.multiple,v=void 0!==m&&m,g=(0,a.VB)({onDrop:function(e){var t=e.map((function(e){return Object.assign(e,{preview:URL.createObjectURL(e)})}));r(t)},noKeyboard:!0,useFsAccessApi:!1,disabled:o,multiple:v}),y=g.getRootProps,b=g.isDragActive,w=g.getInputProps;return(0,l.jsxs)(s.PJ,{immutable:o,"data-cy":"upload-".concat(n),children:[(0,l.jsx)(s.PZ,{children:(0,l.jsxs)(s.vv,d(d({},y()),{},{children:[b&&(0,l.jsx)(s.pI,{onDrop:function(e){return e.preventDefault()}}),(0,l.jsx)(s.L9,{children:i}),(0,l.jsx)("input",d(d({},w()),{},{accept:(null==p?void 0:p.join(", "))||""})),(0,l.jsx)(c.A,{icon:"arrow-to-top","data-cy":"btn-upload-".concat(n)})]}))}),u&&(0,l.jsx)(c.A,{onClick:function(e){u(),e.stopPropagation()},icon:"folder",label:(t="client.component.upload.browseDocs",f.formatMessage({id:t})),iconOnly:!0,"data-cy":"btn-choose-".concat(n)}),h]})}))},35301:(e,t,n)=>{"use strict";n.d(t,{J6:()=>a,PH:()=>i,RH:()=>d,Rf:()=>r,XA:()=>c,Zl:()=>s,Zy:()=>u,g0:()=>o,uO:()=>l,zP:()=>f});var r="SET_ENTITY_NAME",o="SET_FORM_BASE",a="SET_SCROLL_BEHAVIOUR",i="root/SET_APP_ID",c="root/ON_ROUTE_CHANGE",s=function(e){return{type:r,payload:{entityName:e}}},l=function(e){return{type:o,payload:{formBase:e}}},u=function(e){return{type:a,payload:{scrollBehaviour:e}}},d=function(e){return{type:i,payload:{appId:e}}},f=function(){return{type:c}}},35478:(e,t,n)=>{"use strict";n.d(t,{k:()=>a});var r=n(33443);const o=["MMM","MMMM"],a={preprocessor:(e,t)=>{if(1===e.getDate())return t;return t.some((e=>e.isToken&&o.includes(e.value)))?t.map((e=>e.isToken&&"do"===e.value?{isToken:!0,value:"d"}:e)):t},ordinalNumber:(e,t)=>{const n=Number(e),r=t?.unit;if(0===n)return"0";let o;return o=1===n?r&&["year","week","hour","minute","second"].includes(r)?"ère":"er":"ème",n+o},era:(0,r.o)({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},defaultWidth:"wide"}),quarter:(0,r.o)({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,r.o)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},defaultWidth:"wide"}),day:(0,r.o)({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:(0,r.o)({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})}},35529:(e,t,n)=>{var r=n(39344),o=n(28879),a=n(55527);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(o(e))}},35536:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(21259),o=n.n(r),a=n(26396),i=n.n(a),c=n(15199);function s(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u=i()({},c.CO,(function(e,t){var n=t.payload.key;return l(l({},e),{},{ignoredToasters:o()(new Set([].concat(o()(e.ignoredToasters),[n])))})})),d={ignoredToasters:[]};function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0,n=u[t.type];return n?n(e,t):e}},35674:(e,t,n)=>{"use strict";n.d(t,{c:()=>u,v:()=>d});var r=n(79092),o=n.n(r),a=n(92207),i=n.n(a),c=n(19461),s=n(79253),l="error",u=function(){var e=o()(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="ERROR MESSAGE: ".concat(t.message," \nSTACK: ").concat(t.stack?t.stack.substring(0,1e3):"-"),c.A.logError(n),e.next=1,f(l,n);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=o()(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c.A.logError(t),e.next=1,f(l,t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=o()(i().mark((function e(t,n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,s.A.executeRequest("log?level=".concat(t,"&message=").concat(encodeURI(n)),{method:"POST"});case 1:e.next=3;break;case 2:e.prev=2,e.catch(0);case 3:case"end":return e.stop()}}),e,null,[[0,2]])})));return function(t,n){return e.apply(this,arguments)}}()},35749:(e,t,n)=>{var r=n(81042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},35970:(e,t,n)=>{var r=n(83120);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},36094:(e,t,n)=>{"use strict";n.d(t,{CO:()=>se,Cx:()=>Y,D8:()=>ae,HM:()=>re,Jt:()=>ie,LU:()=>M,Ov:()=>L,QN:()=>D,UA:()=>I,_P:()=>J,aO:()=>K,cM:()=>ee,f2:()=>W,fW:()=>B,hc:()=>G,op:()=>Z,qj:()=>F,qq:()=>H,rN:()=>$,rS:()=>q,sU:()=>ce,s_:()=>te,tL:()=>oe});var r=n(21259),o=n.n(r),a=n(22056),i=n.n(a),c=n(26396),s=n.n(c),l=n(92207),u=n.n(l),d=n(58156),f=n.n(d),p=n(23805),h=n.n(p),m=n(23181),v=n.n(m),g=n(40860),y=n.n(g),b=n(90167),w=n(18242),x=n(80211),k=n(31781),A=u().mark(L),S=u().mark(F),O=u().mark(Y),E=u().mark(re),j=u().mark(oe),P=u().mark(ae),T=u().mark(ie),C=u().mark(ce),_=u().mark(se);function N(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 R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(e){return e};return u().mark((function a(){var i,c,s,l,d,f,p;return u().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return i=r.method,c=void 0===i?"POST":i,s=r.useSelectors,l=void 0===s||s,a.next=1,(0,b.T1)(Z,n);case 1:return d=a.sent,f=R({method:c,queryParams:R({_omitLinks:!0,_useSelectors:l},"GET"===c&&R(R({},te(d)),{},{_permissions:!0}))},"POST"===c&&{body:R(R({},d),{},{permissions:!0})}),a.next=2,(0,b.T1)(k.Gt,"entities/2.0/".concat(e,"/").concat(t),f);case 2:return p=a.sent,a.next=3,(0,b.T1)(o,p.body);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),a)}))()}function L(e,t){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={method:"GET",queryParams:{_omitLinks:!0}},r.prev=1,r.next=2,(0,b.T1)(k.Gt,"entities/2.0/".concat(e,"/").concat(t),n);case 2:return r.abrupt("return",!0);case 3:return r.prev=3,r.catch(1),r.abrupt("return",!1);case 4:case"end":return r.stop()}}),A,null,[[1,3]])}function M(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return u().mark((function o(){var a,i,c;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=f(),o.next=1,H(s()({},e,[t]),n,r);case 1:return i=o.sent,c="".concat(e,".").concat(t),o.abrupt("return",a(i,c,null));case 2:case"end":return o.stop()}}),o)}))()}function I(e,t,n){B(s()({},e,[t]),n)}function F(e,t,n,r,o){var a,i;return u().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return a={method:"POST",queryParams:{_paths:r.join(",")},body:{entityName:o,type:"ID",ids:n}},c.next=1,(0,b.T1)(k.Gt,"forms/".concat(e,"_").concat(t,"/display-expressions"),a);case 1:return i=c.sent,c.abrupt("return",i.body.displayExpressions.reduce((function(e,t){return R(R({},e),{},s()({},t.key,t.displayExpressions))}),{}));case 2:case"end":return c.stop()}}),S)}var z=function(e,t,n){var r=n?".".concat(n):"";return"".concat(e,".").concat(t).concat(r)};function H(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return u().mark((function r(){var o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=Object.entries(e).map((function(e){var n=i()(e,2),r=n[0],o=n[1];return{model:r,keys:o.filter((function(e){return void 0===w.A.getObjectCache("display",z(r,e,t))})),displays:o.map((function(e){return{key:e,display:w.A.getObjectCache("display",z(r,e,t))}})).filter((function(e){return void 0!==e.display}))}})),r.next=1,U(o,t,n);case 1:return a=r.sent,r.abrupt("return",o.reduce((function(e,t){var n=t.model,r=t.displays;return R(R({},e),{},s()({},n,R(R({},e[n]),r.reduce((function(e,t){var n=t.key,r=t.display;return R(R({},e),{},s()({},n,r))}),{}))))}),a));case 2:case"end":return r.stop()}}),r)}))()}function B(e,t){Object.entries(e).forEach((function(e){var n=i()(e,2),r=n[0];n[1].forEach((function(e){return w.A.removeObjectCache("display",z(r,e,t))}))}))}function U(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return u().mark((function r(){var o,a,c,l,d;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!((o=e.filter((function(e){return e.keys.length>0})).map((function(e){return{model:e.model,keys:e.keys}}))).length>0)){r.next=2;break}return a={method:"POST",body:{data:o},queryParams:{_ignoreFallback:n}},c=t?"/".concat(t):"",r.next=1,(0,b.T1)(k.Gt,"entities/2.0/displays".concat(c),a);case 1:return l=r.sent,d=l.body.data.reduce((function(e,t){var n=t.model,r=t.values;return R(R({},e),{},s()({},n,r.reduce((function(e,t){var n=t.key,r=t.display;return R(R({},e),{},s()({},n,r))}),{})))}),{}),Object.entries(d).forEach((function(e){var n=i()(e,2),r=n[0],o=n[1];Object.entries(o).forEach((function(e){var n=i()(e,2),o=n[0],a=n[1];w.A.addObjectCache("display",z(r,o,t),a)}))})),r.abrupt("return",d);case 2:return r.abrupt("return",{});case 3:case"end":return r.stop()}}),r)}))()}function W(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u().mark((function r(){var o,a,i,c,s,l,d;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=n.method,a=void 0===o?"POST":o,i=n.endpoint,r.next=1,(0,b.T1)(Z,t);case 1:return c=r.sent,s=(i||"entities/2.0/".concat(e))+"/count",l=R({method:a},"GET"===a?{queryParams:te(c)}:{body:c}),r.next=2,(0,b.T1)(k.Gt,s,l);case 2:return d=r.sent,r.abrupt("return",d.body.count);case 3:case"end":return r.stop()}}),r)}))()}function $(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Q;return u().mark((function a(){var i,c,s,l,d,f,p,h,m,g;return u().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=1,(0,b.T1)(x.BA);case 1:return i=a.sent,c=n.method,s=void 0===c?"POST":c,l=n.endpoint,d=n.allKeys,a.next=2,(0,b.T1)(W,e,t,n);case 2:return f=a.sent,p=d?1:Math.ceil(f/i),h=l||"entities/2.0/".concat(e).concat("POST"===s?"/search":""),m=v()(p).map((function(e){return e+1})).map((function(e){return R(R({},t),{},{page:e,limit:i})})).map(Z).map((function(e){return(0,b.T1)(V,s,d,e,h,r)})),a.next=3,(0,b.Q7)(m);case 3:return g=a.sent,a.abrupt("return",g.reduce((function(e,t){return[].concat(o()(e),o()(t))}),[]));case 4:case"end":return a.stop()}}),a)}))()}function q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Q;return u().mark((function o(){var a,i,c,s,l,d;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=n.method,i=void 0===a?"POST":a,c=n.endpoint,s=n.allKeys,o.next=1,(0,b.T1)(Z,t);case 1:return l=o.sent,d=c||"entities/2.0/".concat(e).concat("POST"===i?"/search":""),o.next=2,(0,b.T1)(V,i,s,l,d,r);case 2:return o.abrupt("return",o.sent);case 3:case"end":return o.stop()}}),o)}))()}function V(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Q;return u().mark((function a(){var i,c;return u().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return i=R({method:e,queryParams:R({_omitLinks:!0,_allKeys:t},"GET"===e&&te(n))},"POST"===e&&{body:n}),a.next=1,(0,b.T1)(k.Gt,r,i);case 1:return c=a.sent,a.next=2,(0,b.T1)(o,c.body);case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop()}}),a)}))()}function G(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return u().mark((function o(){var a,i,c,s;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(void 0===r&&(r="create"===t),a="".concat(e,"/").concat(t),void 0===w.A.getObjectCache("forms",a)||r){o.next=1;break}return o.abrupt("return",w.A.getObjectCache("forms",a));case 1:return i=R(R({},["create","search"].includes(t)?{queryParams:{_display:!0}}:{}),n&&{acceptedStatusCodes:[404]}),o.next=2,(0,b.T1)(k.Gt,"forms/".concat(a),i);case 2:if(c=o.sent,!n||404!==c.status){o.next=3;break}return w.A.addObjectCache("forms",a,null),o.abrupt("return",null);case 3:return o.next=4,(0,b.T1)(X,c.body);case 4:return s=o.sent,w.A.addObjectCache("forms",a,s),o.abrupt("return",s);case 5:case"end":return o.stop()}}),o)}))()}function Y(e){var t;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,b.T1)(k.Gt,"client/searchfilters/".concat(e));case 1:return t=n.sent,n.abrupt("return",t.body.filters);case 2:case"end":return n.stop()}}),O)}function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J;return u().mark((function n(){var r,o,a;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(r=w.A.getObjectCache("model",e))){n.next=1;break}return n.abrupt("return",r);case 1:return n.next=2,(0,b.T1)(k.Gt,"entities/".concat(e,"/model"));case 2:return o=n.sent,n.next=3,(0,b.T1)(t,o.body);case 3:return a=n.sent,w.A.addObjectCache("model",e,a),n.abrupt("return",a);case 4:case"end":return n.stop()}}),n)}))()}var J=function(e){var t={name:e.name,label:e.label,markable:e.markable,useNiceFields:e.useNiceFields,keyField:e.keyField,paths:{}};return e.fields.forEach((function(e){t.paths[e.fieldName]=R({},e)})),e.relations.forEach((function(e){t.paths[e.relationName]=R({type:"relation"},e)})),t},X=function(e){return e.form},Q=function(e){return e.data},Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.conditions,n=e.fields,r=e.form,o=e.limit,a=e.search,i=e.sorting,c=e.page,s=e.paths,l=e.where,u=e.relations,d=e.filter,f=e.keys,p=e.constriction;return R(R(R(R(R(R(R(R(R(R(R(R(R({},t?{conditions:t}:{}),Array.isArray(n)?{fields:0===n.length?"!":n}:{}),r?{form:r}:{}),o?{limit:o}:{}),a?{search:a}:{}),i?{sort:ee(i)}:{}),c&&o?{offset:(c-1)*o}:{}),s?{paths:s}:{}),l?{where:l}:{}),Array.isArray(u)?{relations:0===u.length?"!":u}:{}),d?{filter:d}:{}),f?{keys:f}:{}),p?{constriction:p}:{})},ee=function(e){return e.map((function(e){return"".concat(e.field," ").concat(e.order)})).join(", ")},te=function(e){return y()(e,(function(e,t,n){var r={};return"conditions"===n?r=ne(t):r["_"+n]=Array.isArray(t)?t.join(","):t,R(R({},e),r)}),{})},ne=function(e){return y()(e,(function(e,t,n){return R(R({},e),{},s()({},n,h()(t)&&t.value?t.value:t))}),{})};function re(){var e,t,n,r,o,a;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=1,(0,b.T1)(k.Gt,"principals");case 1:return e=i.sent,t=e.body,n=t.username,r=t.businessUnit,o=t.inWrongBusinessUnit,a={username:n,currentBusinessUnit:r,inWrongBusinessUnit:o},i.abrupt("return",a);case 2:case"end":return i.stop()}}),E)}function oe(e){var t,n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t={method:"POST",body:{selection:e}},r.next=1,(0,b.T1)(k.Gt,"client/markings",t);case 1:return n=r.sent,r.abrupt("return",n.body.markings);case 2:case"end":return r.stop()}}),j)}function ae(e,t){var n,r;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n={method:"GET"},o.next=1,(0,b.T1)(k.Gt,"client/markings/".concat(e,"/").concat(t),n);case 1:return r=o.sent,o.abrupt("return",r.body.marked);case 2:case"end":return o.stop()}}),P)}function ie(e,t,n){var r;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return r={method:"PATCH",body:{marked:n}},o.next=1,(0,b.T1)(k.Gt,"client/markings/".concat(e,"/").concat(t),r);case 1:case"end":return o.stop()}}),T)}function ce(){var e,t,n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=w.A.getLongTerm("server","locales"))){r.next=1;break}return r.abrupt("return",e);case 1:return r.next=2,(0,b.T1)(k.Gt,"locales");case 2:return t=r.sent,n=t.body.locales,w.A.addLongTerm("server","locales",n),r.abrupt("return",n);case 3:case"end":return r.stop()}}),C)}function se(){var e,t,n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=w.A.getLongTerm("server","modules"))){r.next=1;break}return r.abrupt("return",e);case 1:return r.next=2,(0,b.T1)(k.Gt,"modules");case 2:return t=r.sent,n=t.body.modules,w.A.addLongTerm("server","modules",n),r.abrupt("return",n);case 3:case"end":return r.stop()}}),_)}},36289:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},36374:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});var r=n(29407);function o(e,t,n){const o=(0,r.a)(e,n?.in);return o.setMilliseconds(t),o}},36471:(e,t,n)=>{"use strict";n.d(t,{W:()=>f,f:()=>p});var r,o,a=n(72189),i=n.n(a),c=n(51510),s=n(67940),l=n(46005),u=n(57488),d=n(26166),f=c.Ay.div.withConfig({displayName:"StyledFloatingUi"})(r||(r=i()(["\n && {\n pointer-events: none; /* prevent flickering of tooltip */\n background-color: ",";\n max-width: 400px;\n z-index: 100000010;\n padding: ",";\n\n * {\n color: ",";\n }\n\n svg.floating-arrow path {\n /* style FloatingArrow SVG */\n fill: ",";\n }\n }\n"])),u.t7.color("backgroundPopover"),(function(e){return e.rimless?"0":d.A.space(0)}),u.t7.color("textPopover"),u.t7.color("backgroundPopover")),p=c.Ay.div.withConfig({displayName:"StyledBox"})(o||(o=i()(["\n && {\n ",";\n\n &,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n "," {\n color: ",";\n overflow-wrap: break-word;\n }\n }\n"])),(function(e){return e.isPlainHtml&&(0,l.g)(e,"html")}),s.b,u.t7.color("textPopover"))},36581:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(74932).A},36800:(e,t,n)=>{var r=n(75288),o=n(64894),a=n(30361),i=n(23805);e.exports=function(e,t,n){if(!i(n))return!1;var c=typeof t;return!!("number"==c?o(n)&&a(t,n.length):"string"==c&&t in n)&&r(n[t],e)}},36944:(e,t,n)=>{var r=n(73893)("round");e.exports=r},37089:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(63821);const o=function(e,t){var n;void 0===t&&(t=!0);var o=new Promise((function(r){n=setTimeout(r,Math.min(2147483647,e),t)}));return o[r.bO]=function(){clearTimeout(n)},o}},37167:(e,t,n)=>{var r=n(4901),o=n(27301),a=n(86009),i=a&&a.isTypedArray,c=i?o(i):r;e.exports=c},37217:(e,t,n)=>{var r=n(80079),o=n(51420),a=n(90938),i=n(63605),c=n(29817),s=n(80945);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=c,l.prototype.set=s,e.exports=l},37241:(e,t,n)=>{var r=n(70695),o=n(72903),a=n(64894);e.exports=function(e){return a(e)?r(e,!0):o(e)}},37820:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},37821:(e,t,n)=>{"use strict";n.d(t,{y:()=>x});var r=n(21259),o=n.n(r),a=n(26396),i=n.n(a),c=n(20038),s=n(14644),l=n(32742),u=n(90167),d=n(29056),f=n(14672),p=n(59042),h=n(42944),m=n(61473),v=n(92699),g=n(70306),y=n(41011);function b(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 w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=function(e){var t=window.__INITIAL_STATE__||{};return e&&(t.input=e,t.app=w(w({},t.app),{},{locale:e.locale})),t}(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),r=(0,l.Ay)(),a=w(w({},e),{},{input:v.Ay,app:h.Ay,theme:g.Ay});e=(0,s.HY)(a);var i=(0,c.U1)({reducer:e,devTools:undefined,preloadedState:n,middleware:function(e){return[r]}}),b=[m.Ay,y.A].concat(o()(t||[]));if(i.allReducers=a,i.sagas=b,i.sagaMiddleware=r,i.hotReloadReducers=d.A.hotReloadReducers,b&&b.length>0){var x=f.A.createGenerator(b.map((function(e){return(0,u.Zy)(e)})));r.run(f.A.autoRestartSaga(x,null,p.A.logError))}return i}},37828:(e,t,n)=>{var r=n(9325).Uint8Array;e.exports=r},37959:(e,t,n)=>{"use strict";n.d(t,{Cq:()=>y,Ef:()=>g,HA:()=>w,P2:()=>b,wr:()=>x});var r=n(79092),o=n.n(r),a=n(92207),i=n.n(a),c=n(80299),s=n.n(c),l=n(5338),u=n(19461),d=n(59042),f=n(26289),p=n(71067),h=n(62904),m=n(20577),v=n(74848),g=function(e,t,n,r){var a=r.input,c=void 0===a?{}:a,l=r.actions,g=void 0===l?void 0:l,y=r.publicPath,b=void 0===y?void 0:y,w=r.textResourceModules,x=void 0===w?[]:w;try{var S=c.customTheme;b&&A(b),g&&k(g,n),n.dispatch((0,h.D4)());var O=c?c.locale:null,E=s()([e],x);n.dispatch((0,p.pk)(E)),n.dispatch((0,p.mW)({shouldSetupIntl:!0,locale:O})),n.dispatch((0,m.Cq)());var j=function(){var e=o()(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.dispatch((0,p.pL)(t)));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return{component:(0,v.jsx)(f.A,{store:n,content:t,theme:S}),store:n,methods:{setLocale:j}}}catch(e){try{n.dispatch(d.A.logError("Error","Error creating react application: ",e))}catch(t){u.A.logError("Error creating react application: ",e),u.A.logError("Unable to log error: ",t)}}},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"root",n=document.getElementById(t);(0,l.createRoot)(n).render(e)},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"root",n=document.getElementById(t);(0,l.createRoot)(n).unmount(),y(e,t)},w=function(e,t){window.reactRegistry&&window.reactRegistry.register(e,t)},x=function(e,t,n){return{name:e,init:t,App:n,setWebpacksPublicPath:A}},k=function(e,t){e.forEach((function(e){t.dispatch(e)}))},A=function(e){n.p=e}},38159:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(58169),o=n(44984),a=n(8062);const i={EmbedType:o.w2,isInAdminEmbedded:o.f,isInWidgetEmbedded:o.K_,embedStrategyFactory:r.A,embedStrategy:r.r,getBackendUrl:o.wE,setBackendUrl:o.Wb,getBusinessUnit:o.Zn,getRuleProvider:o.Wi,setBusinessUnit:o.ne,setRuleProvider:o.KC,getEmbedType:o.M7,setEmbedType:o.W2,getWidgetConfigKey:o.wP,setWidgetConfigKey:o.Sk,getWidgetShowcase:o.o6,setWidgetShowcase:o.YI,asInputProps:o.fG,NULL_BUSINESS_UNIT:o.wU,ALLOWED_EMBED_TYPES:o.hZ,setInputEnvs:a.T}},38329:(e,t,n)=>{var r=n(64894);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var a=n.length,i=t?a:-1,c=Object(n);(t?i--:++i<a)&&!1!==o(c[i],i,c););return n}}},38440:(e,t,n)=>{var r=n(16038),o=n(27301),a=n(86009),i=a&&a.isSet,c=i?o(i):r;e.exports=c},38684:(e,t,n)=>{"use strict";n.d(t,{qt:()=>l,zJ:()=>s});var r=n(23805),o=n.n(r),a=n(73916),i=n.n(a),c=n(86663),s=function(e){var t=i()(e,(function(e){return o()(e)?JSON.stringify(e):e}));return c.stringify(t)},l=function(e){var t=c.parse(e);return i()(t,(function(e){return u(e)?JSON.parse(e):e}))},u=function(e){if("string"!=typeof e)return!1;try{var t=JSON.parse(e);return"[object Object]"===Object.prototype.toString.call(t)}catch(e){return!1}}},38726:(e,t,n)=>{"use strict";n.d(t,{A:()=>m,w:()=>h});var r=n(26396),o=n.n(r),a=n(14672),i=n(30355);function c(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=412,u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!(e.ok||n.includes(e.status)||e.body&&t.includes(e.body.errorCode))){if(409===e.status&&e.body.information)throw new i.A(e.body.information);var r="".concat(e.statusText," ").concat(e.body?e.body.message:"");throw new Error(r)}return e},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e.json()},n=e.ok,r=e.headers,o=e.status,a={ok:n,headers:r,status:o,statusText:e.statusText};return 204===o?s(s({},a),{},{body:null}):t(e).then((function(e){return s(s({},a),{},{body:e})})).catch((function(e){return s(s({},a),{},{body:null})}))},f=function(e){return d(e,(function(e){return e.blob()}))},p=function(e){return s(s({},e),{},{referrerPolicy:"no-referrer-when-downgrade",signal:a.A.abortController.signal})};function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return r.push(l),fetch(e,p(t)).then((function(e){return d(e)})).then((function(e){return u(e,n,r)}))}function m(e,t,n,r){return fetch(e,p(t)).then((function(e){return f(e)})).then((function(e){return u(e,n,r)}))}},38798:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>f,Kq:()=>u,ob:()=>d});var r=n(40622),o=n(4146),a=n.n(o),i=n(4883),c=n(24184);var s="undefined"==typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?i.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=i.createContext(null)),l=s.Consumer,u=s.Provider,d=s;function f(e,t){var n,o=t||{},s=o.intlPropName,u=void 0===s?"intl":s,d=o.forwardRef,f=void 0!==d&&d,p=o.enforceContext,h=void 0===p||p,m=function(t){return i.createElement(l,null,(function(n){var o;h&&(0,c.HM)(n);var a=((o={})[u]=n,o);return i.createElement(e,(0,r.Cl)({},t,a,{ref:f?t.forwardedRef:null}))}))};return m.displayName="injectIntl(".concat((n=e).displayName||n.name||"Component",")"),m.WrappedComponent=e,f?a()(i.forwardRef((function(e,t){return i.createElement(m,(0,r.Cl)({},e,{forwardedRef:t}))})),e):a()(m,e)}},38816:(e,t,n)=>{var r=n(35970),o=n(56757),a=n(32865);e.exports=function(e){return a(o(e,void 0,r),e+"")}},38823:(e,t,n)=>{"use strict";n.d(t,{k:()=>a});for(var r=[],o=0;o<256;++o)r.push((o+256).toString(16).slice(1));function a(e,t=0){return(r[e[t+0]]+r[e[t+1]]+r[e[t+2]]+r[e[t+3]]+"-"+r[e[t+4]]+r[e[t+5]]+"-"+r[e[t+6]]+r[e[t+7]]+"-"+r[e[t+8]]+r[e[t+9]]+"-"+r[e[t+10]]+r[e[t+11]]+r[e[t+12]]+r[e[t+13]]+r[e[t+14]]+r[e[t+15]]).toLowerCase()}},38859:(e,t,n)=>{var r=n(53661),o=n(31380),a=n(51459);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},38925:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(6442),o=n(8604),a=n(56775),i=n(74848);const c=function(e){var t=(0,r.A)();return(0,i.jsx)(a.Ay.Time,{id:e.id,dateTime:e.value,title:t.formatDate(e.value),children:(0,i.jsx)(o.XU,{value:e.value,year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC"})})}},39014:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(54870),o=n(74848);const a=function(e){var t=e.modal,n=e.isLatest,a=e.closeModal,i=e.cancelModal;return(0,o.jsx)(r.A,{modal:t,onClose:a,onCancel:function(e){return i(e,t)},isLatest:n})}},39319:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(41250).A},39344:(e,t,n)=>{var r=n(23805),o=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},39621:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={getRunEnv:n(17056).j}},39682:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(26396),o=n.n(r),a=n(22056),i=n.n(a),c=n(2404),s=n.n(c),l=n(4883),u=n(35212),d=n(24909),f=n(52826),p=n(74848);function h(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 m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const v=function(e){var t=e.value,n=e.textResources,r=void 0===n?{}:n,o=e.onUpload,a=e.onChoose,c=e.allowedFileTypes,h=void 0===c?[]:c,v=(0,l.useRef)(t),g=(0,l.useState)({isUploading:!1,previewFile:null}),y=i()(g,2),b=y[0],w=y[1];return(0,l.useEffect)((function(){s()(v.current,t)||w({isUploading:!1,previewFile:null}),v.current=t}),[t]),null!=t&&t.binaryLink?(0,p.jsx)(f.A,m(m({},e),{},{deleteTitle:r.delete,downloadTitle:r.download})):b.isUploading?(0,p.jsx)(d.A,m({file:b.previewFile,text:r.uploading},e)):(0,p.jsx)(u.A,m(m({},e),{},{onDrop:function(e){if(1===e.length){var t=e[0];!function(e){w({isUploading:!0,previewFile:e})}(t),o(t)}},onChoose:a,allowedFileTypes:h}))}},39892:(e,t,n)=>{var r=n(83712);e.exports=function(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},40203:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r,o=n(72189),a=n.n(o),i=n(51510),c=n(26166),s=n(57488);const l=i.Ay.figure.withConfig({displayName:"StyledPreview"})(r||(r=a()(["\n && {\n vertical-align: top;\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n margin: 0; /* reset css overwrite */\n\n img {\n margin-top: ",";\n border: 1px solid ",";\n border-radius: ",";\n max-width: ",";\n max-height: ",";\n min-width: 90px; /* prevent collapse to 1px if there is no preview generated */\n }\n\n figcaption {\n text-align: center;\n }\n }\n"])),c.A.space(-2.2),s.t7.color("border"),s.t7.radii("form"),(function(e){return e.maxDimensionX||"100%"}),(function(e){return e.maxDimensionY||"100%"}))},40337:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});var r=n(29407);function o(e,t){return(0,r.a)(e,t?.in).getHours()}},40346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},40622:(e,t,n)=>{"use strict";n.d(t,{C6:()=>o,Cl:()=>a,Tt:()=>i,fX:()=>c});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;function c(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError},40658:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},40860:(e,t,n)=>{var r=n(40882),o=n(80909),a=n(15389),i=n(85558),c=n(56449);e.exports=function(e,t,n){var s=c(e)?r:i,l=arguments.length<3;return s(e,a(t,4),n,l,o)}},40882:e=>{e.exports=function(e,t,n,r){var o=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}},41011:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(92207),o=n.n(r),a=n(90167),i=n(18242),c=n(20577),s=o().mark(u),l=o().mark(d);function u(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,a.Q7)([(0,a.p8)(c.nn,d)]);case 1:case"end":return e.stop()}}),s)}function d(){var e,t;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,a.T1)(i.A.getLongTerm,"admin","theme");case 1:return e=n.sent,t=e||"light",n.next=2,(0,a.yJ)(c.kd(t));case 2:case"end":return n.stop()}}),l)}},41113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},41224:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(56775),o=n(74848);const a=function(e){return e.breakWords?(0,o.jsx)(r.Ay.P,{breakWords:!0,useTitle:e.useTitle,id:e.id,children:(t=e.value,t.split("\n").flatMap((function(e,t,n){return t+1<n.length?[e,(0,o.jsx)("br",{},t)]:e})))}):(0,o.jsx)(r.Ay.Span,{breakWords:!1,useTitle:e.useTitle,id:e.id,children:e.value.replace("/\n/g"," ")});var t}},41250:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(26396),o=n.n(r),a=n(22056),i=n.n(a),c=n(58689),s=n(34743),l=n(4883),u=n(44518),d=n(36471),f=n(74848);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 h(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){o()(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}const m=function(e){var t=e.children,n=e.content,r=e.isPlainHtml,o=void 0===r||r,a=e.rimless,p=void 0!==a&&a,m=(0,l.useState)(!1),v=i()(m,2),g=v[0],y=v[1],b=(0,l.useRef)(null),w=(0,c.we)({open:g,onOpenChange:y,middleware:[(0,s.UU)(),(0,s.BN)({padding:20}),(0,s.UE)({element:b}),(0,s.cY)(5)]}),x=w.refs,k=w.floatingStyles,A=w.context,S=(0,c.Mk)(A,{delay:{open:500,close:0}}),O=(0,c.bv)([S]),E=O.getReferenceProps,j=O.getFloatingProps;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("span",h(h({ref:x.setReference},E()),{},{children:t})),g&&n&&(0,f.jsx)(c.XF,{children:(0,f.jsxs)(d.W,h(h({ref:x.setFloating,style:k,rimless:p},j()),{},{className:u.e,children:[(0,f.jsx)(c.ie,{ref:b,context:A,className:"floating-arrow"}),(0,f.jsx)(d.f,{isPlainHtml:o,children:n})]}))})]})}},41253:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(26396),o=n.n(r),a=n(58156),i=n.n(a),c=n(47383),s=n(73329),l=n(39319),u=n(56775),d=n(74848);function f(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 p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const h=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.id,a=n||{},f=a.tooltips,h=a.loadTooltip,m=a.navigationStrategy,v=a.linkProps,g=i()(f,t.key,null);t=c.A.getOrFirst(t);var y=(0,d.jsx)(u.Ay.Span,{breakWords:r,useTitle:!g,id:o,children:t.display});return(null!=m&&m.DetailLink?(0,d.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,d.jsx)(m.DetailLink,p(p({},v),{},{entityKey:t.key,children:(0,d.jsx)(l.A,{content:g?(0,d.jsx)("div",{dangerouslySetInnerHTML:{__html:s.A.sanitizeHtml(g)}}):null,children:(0,d.jsx)("span",{onMouseOver:function(){return h&&!g&&h(t.key)},id:o,children:y})})}))}):null)||y}},41401:(e,t,n)=>{"use strict";n.d(t,{M5:()=>f,UR:()=>h,fX:()=>p,g3:()=>d,he:()=>m});var r=n(92207),o=n.n(r),a=n(90167),i=n(18242),c=n(57327),s=n(81049),l=o().mark(f),u=o().mark(p);function d(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).locale;return o().mark((function t(){var n,r,l,u,d,f,p,h,m,v,g,y,b,w,x,k;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,(0,a.T1)(c.A.fetchServerRevision);case 1:return n=t.sent,t.next=2,(0,a.T1)(s.Y$);case 2:return r=t.sent,l=r.locale,u=r.username,d=r.businessUnitId,f=e||l,p=i.A.getObjectCacheMetaInfo(),h=p.locale,m=p.businessUnitId,v=p.username,g=i.A.getLongTermMetaInfo(),y=g.revision,b=!h||h!==f,w=m!==d,x=v!==u,k=y!==n,t.abrupt("return",{invalidObjectCache:b||w||x,invalidLongTermCache:k,cache:{locale:f,businessUnitId:d,username:u,revision:n}});case 3:case"end":return t.stop()}}),t)}))()}function f(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,a.T1)(i.A.clearLongTerm);case 1:case"end":return e.stop()}}),l)}function p(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,a.T1)(i.A.clearObjectCache);case 1:case"end":return e.stop()}}),u)}function h(e){var t=e.revision;return o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,a.T1)(i.A.setLongTermMetaInfo,{revision:t});case 1:case"end":return e.stop()}}),e)}))()}function m(e){var t=e.locale,n=e.businessUnitId,r=e.username;return o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,a.T1)(i.A.setObjectCacheMetaInfo,{locale:t,businessUnitId:n,username:r});case 1:case"end":return e.stop()}}),e)}))()}},41528:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},41601:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var r=n(7277);const o={date:(0,r.k)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,r.k)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,r.k)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})}},41799:(e,t,n)=>{var r=n(37217),o=n(60270);e.exports=function(e,t,n,a){var i=n.length,c=i,s=!a;if(null==e)return!c;for(e=Object(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<c;){var u=(l=n[i])[0],d=e[u],f=l[1];if(s&&l[2]){if(void 0===d&&!(u in e))return!1}else{var p=new r;if(a)var h=a(d,f,u,e,t,p);if(!(void 0===h?o(f,d,3,a,p):h))return!1}}return!0}},41972:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},42e3:(e,t,n)=>{var r=n(63945),o=n(62429),a=n(15389),i=n(56449);e.exports=function(e,t){return function(n,c){var s=i(n)?r:o,l=t?t():{};return s(n,e,a(c,2),l)}}},42072:(e,t,n)=>{var r=n(34932),o=n(23007),a=n(56449),i=n(44394),c=n(61802),s=n(77797),l=n(13222);e.exports=function(e){return a(e)?r(e,s):i(e)?[e]:o(c(l(e)))}},42265:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(40622),o=n(87683),a=n(4883),i=n(24184),c=n(66099),s=n(38798);function l(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}const u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=(0,o.MT)(),t.state={cache:t.cache,intl:(0,c.E)(l(t.props),t.cache),prevConfig:l(t.props)},t}return(0,r.C6)(t,e),t.getDerivedStateFromProps=function(e,t){var n=t.prevConfig,r=t.cache,o=l(e);return(0,i.bN)(n,o)?null:{intl:(0,c.E)(o,r),prevConfig:o}},t.prototype.render=function(){return(0,i.HM)(this.state.intl),a.createElement(s.Kq,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=i.JF,t}(a.PureComponent)},42625:(e,t,n)=>{"use strict";n.d(t,{g:()=>r,v:()=>o});var r="tocco-util/LOG_ERROR",o=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:r,payload:{title:e,description:t,error:n,dateTime:o}}}},42824:(e,t,n)=>{var r=n(87805),o=n(93290),a=n(71961),i=n(23007),c=n(35529),s=n(72428),l=n(56449),u=n(83693),d=n(3656),f=n(1882),p=n(23805),h=n(11331),m=n(37167),v=n(14974),g=n(69884);e.exports=function(e,t,n,y,b,w,x){var k=v(e,n),A=v(t,n),S=x.get(A);if(S)r(e,n,S);else{var O=w?w(k,A,n+"",e,t,x):void 0,E=void 0===O;if(E){var j=l(A),P=!j&&d(A),T=!j&&!P&&m(A);O=A,j||P||T?l(k)?O=k:u(k)?O=i(k):P?(E=!1,O=o(A,!0)):T?(E=!1,O=a(A,!0)):O=[]:h(A)||s(A)?(O=k,s(k)?O=g(k):p(k)&&!f(k)||(O=c(A))):E=!1}E&&(x.set(A,O),b(O,A,y,w,x),x.delete(A)),r(e,n,O)}}},42832:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(77691),o=n(17872),a=n(93870),i=n(96989),c=n(74848);const s=function(e){var t=e.notification,n=e.cancelTask,s=e.navigationStrategy,l=t.result,u=t.taskProgress,d=t.downloadStream;return l?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(o.A,{notification:t}),(0,c.jsx)(a.A,{notification:t,navigationStrategy:s})]}):u?(0,c.jsx)(i.A,{notification:t,navigationStrategy:s,cancelTask:n}):d?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(o.A,{notification:t}),(0,c.jsx)(r.A,{notification:t,navigationStrategy:s})]}):(0,c.jsx)(o.A,{notification:t})}},42944:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>r});const r=n(80884).A},43104:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r,o,a,i,c,s=n(72189),l=n.n(s),u=n(51510),d=n(26166),f="250px",p=d.A.space(.25),h=(0,u.AH)(r||(r=l()(["\n /* Base grid properties */\n gap: ",";\n grid-template-columns: repeat(auto-fit, minmax(",", 1fr));\n\n /* Custom ratio override */\n ","\n\n /* Mobile layout */\n ","\n"])),p,f,(function(e){var t=e.ratio;return t&&(0,u.AH)(o||(o=l()(["\n grid-template-columns: ",";\n "])),function(e){return e?e.split(":").filter(Boolean).map((function(e){return"minmax(".concat(f,", ").concat(e,"fr)")})).join(" "):""}(t))}),(function(e){return e.containerWidth<600&&(0,u.AH)(a||(a=l()(["\n grid-template-columns: 100%;\n gap: 0;\n "])))}));const m=u.Ay.div.withConfig({displayName:"StyledLayoutContainer"})(i||(i=l()(["\n /* Base layout styles */\n display: grid;\n padding-right: ",";\n\n /* Grid column configuration */\n ","\n\n /* Height adjustment */\n ","\n"])),d.A.space(0),h,(function(e){return e.occupiesRemainingHeight&&(0,u.AH)(c||(c=l()(["\n flex: 1;\n "])))}))},43215:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(88208),o=n(74848);const a=function(e){var t=e.children,n=e.intlInitialised,a=e.cacheInitialised;return(0,o.jsx)(r.A,{required:[a,n],children:t})}},43329:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});var r=n(61501);function o(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&r._P in e?e[r._P](t):e instanceof Date?new e.constructor(t):new Date(t)}},43360:(e,t,n)=>{var r=n(93243);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},43378:(e,t,n)=>{"use strict";n.d(t,{A:()=>b,k:()=>y});var r=n(26396),o=n.n(r),a=n(22056),i=n.n(a),c=n(62193),s=n.n(c),l=n(2404),u=n.n(l),d=n(71086),f=n.n(d),p=n(4883),h=n(7311),m=n(62904);function v(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 g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y=function(e,t){return e.reduce((function(e,n){return g(g({},e),t[n]?o()({},n,t[n]):{})}),{})};const b=function(e){var t,n=e.initApp,r=e.props,o=e.packageName,a=e.externalEvents,c=void 0===a?[]:a,l=(0,p.useState)(null),d=i()(l,2),v=d[0],g=d[1],b=null==v?void 0:v.store,w=v?v.component:null,x=(null==b||null===(t=b.getState())||void 0===t?void 0:t.input)||{};return(0,p.useEffect)((function(){g(n(o,r,y(c,r)))}),[]),h.A.useDidUpdate((function(){var e,t,n,o=f()(r,(function(e,t){return!u()(e,x[t])})),a=f()(x,(function(e,t){return Object.keys(o).includes(t)}));!s()(o)&&b&&(e=o,t=a,n=Object.keys(e).map((function(t){return(0,m.zF)(t,e[t])})),n.length>0&&n.push((0,m.Ru)(e,t)),n).forEach((function(e){b.dispatch(e)}))}),[r,x]),{component:w,setApp:g,store:b}}},43407:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>a});var o=new Uint8Array(16);function a(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}},43838:(e,t,n)=>{var r=n(21791),o=n(37241);e.exports=function(e,t){return e&&r(t,o(t),e)}},43847:(e,t,n)=>{"use strict";n.d(t,{k:()=>o});var r=n(33443);const o={ordinalNumber:(e,t)=>{const n=Number(e);return String(n)},era:(0,r.o)({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:(0,r.o)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,r.o)({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:(0,r.o)({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},defaultWidth:"wide"}),dayPeriod:(0,r.o)({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})}},43913:(e,t,n)=>{"use strict";n.d(t,{Y:()=>a,g:()=>o});var r=n(12170),o=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];e&&e[t]&&e[t].apply(e,r)},a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return{}};e.sagaMiddleware.run(r.Ay,t)}},44363:(e,t,n)=>{"use strict";e.exports=n(22799)},44383:(e,t,n)=>{var r=n(76001),o=n(38816)((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},44394:(e,t,n)=>{var r=n(72552),o=n(40346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},44517:(e,t,n)=>{var r=n(76545),o=n(63950),a=n(84247),i=r&&1/a(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=i},44518:(e,t,n)=>{"use strict";n.d(t,{e:()=>r});var r="tocco-app"},44743:(e,t,n)=>{"use strict";var r,o;function a(e){return e.type===r.literal}function i(e){return e.type===r.argument}function c(e){return e.type===r.number}function s(e){return e.type===r.date}function l(e){return e.type===r.time}function u(e){return e.type===r.select}function d(e){return e.type===r.plural}function f(e){return e.type===r.pound}function p(e){return e.type===r.tag}function h(e){return!(!e||"object"!=typeof e||e.type!==o.number)}function m(e){return!(!e||"object"!=typeof e||e.type!==o.dateTime)}n.d(t,{Im:()=>i,Jp:()=>u,N1:()=>h,N6:()=>d,Qh:()=>l,Tu:()=>m,ZE:()=>r,eW:()=>a,jA:()=>f,oF:()=>c,rq:()=>o,tv:()=>s,xm:()=>p}),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(r||(r={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(o||(o={}))},44817:(e,t,n)=>{"use strict";n.d(t,{Ki:()=>f,RZ:()=>d,Yq:()=>s,fU:()=>l,mi:()=>u});var r=n(81293),o=n(89160),a=n(87683),i=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function c(e,t,n,o){var c=e.locale,s=e.formats,l=e.onError,u=e.timeZone;void 0===o&&(o={});var d=o.format,f=(0,r.Cl)((0,r.Cl)({},u&&{timeZone:u}),d&&(0,a.F3)(s,t,d,l)),p=(0,a.J9)(o,i,f);return"time"!==t||p.hour||p.minute||p.second||p.timeStyle||p.dateStyle||(p=(0,r.Cl)((0,r.Cl)({},p),{hour:"numeric",minute:"numeric"})),n(c,p)}function s(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],s=void 0===i?{}:i,l="string"==typeof a?new Date(a||0):a;try{return c(e,"date",t,s).format(l)}catch(t){e.onError(new o.pg("Error formatting date.",e.locale,t))}return String(l)}function l(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],s=void 0===i?{}:i,l="string"==typeof a?new Date(a||0):a;try{return c(e,"time",t,s).format(l)}catch(t){e.onError(new o.pg("Error formatting time.",e.locale,t))}return String(l)}function u(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],s=n[2],l=void 0===s?{}:s,u="string"==typeof a?new Date(a||0):a,d="string"==typeof i?new Date(i||0):i;try{return c(e,"dateTimeRange",t,l).formatRange(u,d)}catch(t){e.onError(new o.pg("Error formatting date time range.",e.locale,t))}return String(u)}function d(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],s=void 0===i?{}:i,l="string"==typeof a?new Date(a||0):a;try{return c(e,"date",t,s).formatToParts(l)}catch(t){e.onError(new o.pg("Error formatting date.",e.locale,t))}return[]}function f(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],s=void 0===i?{}:i,l="string"==typeof a?new Date(a||0):a;try{return c(e,"time",t,s).formatToParts(l)}catch(t){e.onError(new o.pg("Error formatting time.",e.locale,t))}return[]}},44905:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r,o=n(64116),a=n(77271),i=n(72189),c=n.n(i),s=n(51510),l=n(85431),u=n(33090),d=n(47616);const f=s.Ay.a.withConfig({displayName:"StyledLink"})(r||(r=c()(["\n ","\n ","\n\n && {\n color: ",";\n text-decoration: ",";\n\n &:hover,\n &:focus {\n text-decoration: ",";\n }\n\n &:active {\n text-decoration: ",";\n }\n }\n"])),(0,l.A)(),(function(e){return e.breakWords?(0,u.K)():(0,u.s)()}),d.A.color("text"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}));var p=n(74848);const h=function(e){var t=e.id,n=e.alt,r=e.breakWords,i=void 0===r||r,c=e.download,s=e.href,l=void 0===s?"#":s,u=e.neutral,d=e.onClick,h=e.rel,m=e.tabIndex,v=e.target,g=void 0===v?"_self":v,y=e.title,b=e.label,w=e.icon,x=e.children,k=e.useTitle,A=void 0===k||k,S=y||(i?void 0:b);return(0,p.jsxs)(f,{id:t,alt:n,breakWords:i,download:c,href:l,neutral:u,onClick:d,rel:h,tabIndex:m,target:g,title:A?S:void 0,children:[w&&(0,p.jsx)(o.A,{icon:w,position:a.A.position.PREPEND}),b||x]})}},44984:(e,t,n)=>{"use strict";n.d(t,{KC:()=>p,K_:()=>v,M7:()=>h,Sk:()=>b,W2:()=>g,Wb:()=>l,Wi:()=>f,YI:()=>x,Zn:()=>u,f:()=>m,fG:()=>k,hZ:()=>i,ne:()=>d,o6:()=>w,w2:()=>a,wE:()=>s,wP:()=>y,wU:()=>o});var r=n(19461),o="__n-u-l-l__",a={admin:"admin",legacyAdmin:"legacy-admin",widget:"widget",legacyWidget:"legacy-widget"},i=Object.values(a),c={backendUrl:void 0,businessUnit:void 0,ruleProvider:void 0,embedType:a.admin,widgetConfigKey:void 0,widgetShowcase:void 0},s=function(){return c.backendUrl||""},l=function(e){c.backendUrl=e},u=function(){return c.businessUnit},d=function(e){c.businessUnit=e},f=function(){return c.ruleProvider},p=function(e){c.ruleProvider=e},h=function(){return c.embedType},m=function(){var e=h();return[a.admin,a.legacyAdmin].includes(e)},v=function(){var e=h();return[a.widget].includes(e)},g=function(e){i.includes(e)?c.embedType=e:r.A.logError("'".concat(e,"' as embedType is not allowed. Allowed embedTypes are: ").concat(i.join(", ")))},y=function(){return c.widgetConfigKey},b=function(e){c.widgetConfigKey=e},w=function(){return c.widgetShowcase},x=function(e){c.widgetShowcase=e},k=function(){return{backendUrl:c.backendUrl,businessUnit:c.businessUnit,appContext:{embedType:c.embedType,widgetConfigKey:c.widgetConfigKey,widgetShowcase:c.widgetShowcase}}}},45051:(e,t,n)=>{var r=n(23490);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},45083:(e,t,n)=>{var r=n(1882),o=n(87296),a=n(23805),i=n(47473),c=/^\[object .+?Constructor\]$/,s=Function.prototype,l=Object.prototype,u=s.toString,d=l.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?f:c).test(i(e))}},45293:(e,t,n)=>{"use strict";n.d(t,{R:()=>i});var r=n(28167),o=n(96675);const a=[".DS_Store","Thumbs.db"];function i(e){return(0,r.sH)(this,void 0,void 0,(function*(){return c(e)&&c(e.dataTransfer)?function(e,t){return(0,r.sH)(this,void 0,void 0,(function*(){if(e.items){const n=l(e.items).filter((e=>"file"===e.kind));if("drop"!==t)return n;return s(d(yield Promise.all(n.map(u))))}return s(l(e.files).map((e=>(0,o.b)(e))))}))}(e.dataTransfer,e.type):function(e){return c(e)&&c(e.target)}(e)?function(e){return l(e.target.files).map((e=>(0,o.b)(e)))}(e):Array.isArray(e)&&e.every((e=>"getFile"in e&&"function"==typeof e.getFile))?function(e){return(0,r.sH)(this,void 0,void 0,(function*(){return(yield Promise.all(e.map((e=>e.getFile())))).map((e=>(0,o.b)(e)))}))}(e):[]}))}function c(e){return"object"==typeof e&&null!==e}function s(e){return e.filter((e=>-1===a.indexOf(e.name)))}function l(e){if(null===e)return[];const t=[];for(let n=0;n<e.length;n++){const r=e[n];t.push(r)}return t}function u(e){if("function"!=typeof e.webkitGetAsEntry)return f(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?h(t):f(e,t)}function d(e){return e.reduce(((e,t)=>[...e,...Array.isArray(t)?d(t):[t]]),[])}function f(e,t){return(0,r.sH)(this,void 0,void 0,(function*(){var n;if(globalThis.isSecureContext&&"function"==typeof e.getAsFileSystemHandle){const t=yield e.getAsFileSystemHandle();if(null===t)throw new Error(`${e} is not a File`);if(void 0!==t){const e=yield t.getFile();return e.handle=t,(0,o.b)(e)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return(0,o.b)(r,null!==(n=null==t?void 0:t.fullPath)&&void 0!==n?n:void 0)}))}function p(e){return(0,r.sH)(this,void 0,void 0,(function*(){return e.isDirectory?h(e):function(e){return(0,r.sH)(this,void 0,void 0,(function*(){return new Promise(((t,n)=>{e.file((n=>{const r=(0,o.b)(n,e.fullPath);t(r)}),(e=>{n(e)}))}))}))}(e)}))}function h(e){const t=e.createReader();return new Promise(((e,n)=>{const o=[];!function a(){t.readEntries((t=>(0,r.sH)(this,void 0,void 0,(function*(){if(t.length){const e=Promise.all(t.map(p));o.push(e),a()}else try{const t=yield Promise.all(o);e(t)}catch(e){n(e)}}))),(e=>{n(e)}))}()}))}},45695:(e,t,n)=>{"use strict";n.d(t,{Y:()=>g});var r=n(14644),o=n(29056),a=n(24292),i=n(33169),c=n(13251),s=n(87456),l=n(86421),u=n(74914),d=n(91787),f=n(30255),p=n(35536),h=n(2405),m=n(23747),v=n(64822),g=function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).withNotificationCenter,g=void 0!==n&&n;t&&o.A.injectReducers(e,{notification:(0,r.HY)({socket:p.A,toaster:m.A,center:s.A,overlay:f.A}),socket:a.A}),e.sagaMiddleware.run(c.A,t),e.sagaMiddleware.run(u.Ay,t),e.sagaMiddleware.run(d.Ay,t),e.sagaMiddleware.run(h.Ay,t),e.sagaMiddleware.run(v.Ay,t),t&&g&&e.sagaMiddleware.run(l.Ay),t&&e.sagaMiddleware.run(i.Ay)}},45891:(e,t,n)=>{var r=n(51873),o=n(72428),a=n(56449),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},46005:(e,t,n)=>{"use strict";n.d(t,{g:()=>c});var r=n(58156),o=n.n(r),a=n(26166),i=n(47616),c=function(e,t){var n="\n color: ".concat(i.A.color("text")(e),";\n font-family: ").concat(i.A.fontFamily("regular")(e),";\n font-size: ").concat(a.A.font(0)(e),";\n font-style: ","normal",";\n font-weight: ").concat(i.A.fontWeight("regular")(e),";\n line-height: ").concat(i.A.lineHeight("regular")(e),";\n\n a {\n color: ").concat(i.A.color("secondary")(e),";\n\n &:hover,\n &:focus {\n color: ").concat(o()(e.theme,"colors.secondaryLight"),";\n text-decoration: underline;\n }\n\n &:active {\n color: ").concat(o()(e.theme,"colors.secondary"),";\n }\n }\n\n b,\n strong {\n font-weight: ").concat(i.A.fontWeight("bold")(e),"\n }\n\n em,\n i {\n font-style: italic;\n }\n\n u {\n text-decoration: underline;\n }\n\n h1 {font-size: ").concat(a.A.font(5)(e),";}\n h2 {font-size: ").concat(a.A.font(4)(e),";}\n h3 {font-size: ").concat(a.A.font(3)(e),";}\n h4 {font-size: ").concat(a.A.font(2)(e),";}\n h5 {font-size: ").concat(a.A.font(1)(e),";}\n h6 {font-size: ").concat(a.A.font(0)(e),";}\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-weight: ").concat(i.A.fontWeight("bold")(e),";\n margin-top: ").concat(a.A.space(0)(e),";\n margin-bottom: ").concat(a.A.space(-1)(e),";\n\n + h1,\n + h2,\n + h3,\n + h4,\n + h5,\n + h6,\n &:first-child {\n margin-top: 0;\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n p {\n margin-bottom: ").concat(a.A.space(-1)(e),";\n &:last-child {\n margin-bottom: 0;\n }\n }\n ");return"ckeditor"!==t&&(n="\n ".concat(n,"\n ol,\n ul {\n display: block;\n list-style-position: outside;\n margin: 0 0 ").concat(a.A.space(-1)(e)," 1.6rem;\n padding: 0;\n\n ol,\n ul,\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n ol li {\n list-style-type: decimal;\n }\n\n ul li {\n list-style-type: disc;\n }\n ")),n}},46326:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(27267).A},46516:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(81062);const o={downloadUrl:r.Is,openUrl:r.CZ,downloadSupportedByBrowser:r.qI,getDownloadUrl:r.y_,addParameterToURL:r.r2}},46544:(e,t,n)=>{"use strict";n.d(t,{Ne:()=>h,Vc:()=>m,i9:()=>v,qp:()=>p});var r=n(26396),o=n.n(r),a=n(85735),i=n.n(a),c=n(32224),s=n(38159),l=n(84847);function u(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={method:"GET",credentials:"include"},p=function(e){var t=function(e){if(e){if(e instanceof Headers)return e;if("object"===i()(e))return new Headers(e)}return new Headers}(e.headers),n=e.body;return t.has("Content-Type")||("string"==typeof n?t.set("Content-Type","text/plain"):n instanceof FormData||t.set("Content-Type","application/json")),t.has("X-Origin-Id")||t.set("X-Origin-Id",l.A.getOriginId()),!t.has("X-Business-Unit")&&s.A.getBusinessUnit()&&t.set("X-Business-Unit",s.A.getBusinessUnit()),t.has("X-Client")||t.set("X-Client",s.A.isInAdminEmbedded()?"client":"widget"),s.A.getRuleProvider()&&t.set("X-Rule-Provider-Id",s.A.getRuleProvider()),t.has("X-Timezone")||t.set("X-Timezone",c.A.getTimeZone()),t},h=function(e,t){return t.startsWith("/")&&(t=t.substring(1)),t.startsWith("http")?t:t.startsWith("nice2")?"".concat(e,"/").concat(t):"".concat(e,"/nice2/").concat(t)},m=function(e){var t=function(e){return d(d(d({},f),e),{},{headers:p(e)})}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=s.A.getBackendUrl(),r=h(n,e);return fetch(r,t)},v=function(e){return e.json()}},47029:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(88097);function o(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},47055:(e,t,n)=>{"use strict";n.d(t,{LT:()=>d,fY:()=>u,oV:()=>l});var r=n(4883),o=n(82064),a=n(18562),i=n(66537),c=n(53550),s=n(74848);function l(e){var t=e.title,n=e.message,o=e.okText,l=e.cancelText,u=e.onOk,d=e.onCancel,f=e.defaultAction,p=void 0===f?"submit":f,h=(0,a.A)();return(0,i.yl)(h,t,n,(function(e){var t=e.close,n=function(e){"Enter"===e.key?(e.preventDefault(),"submit"===p?u():"cancel"===p&&d(),t()):"Escape"===e.key&&(d(),t())};(0,r.useEffect)((function(){return document.addEventListener("keydown",n),function(){document.removeEventListener("keydown",n)}}),[]);var a=[{label:o,primary:"submit"===p,look:"submit"===p?"raised":"flat","data-cy":"btn-confirm-ok",callback:function(){u(),t()}},{label:l,primary:"cancel"===p,look:"cancel"===p?"raised":"flat","data-cy":"btn-confirm-cancel",callback:function(){d(),t()}}];return(0,s.jsx)(c.A,{buttons:a})}),!0,d)}function u(e){var t=e.title,n=e.message,r=e.yesText,l=e.noText,u=e.onYes,d=e.onNo,f=e.onCancel,p=(0,a.A)();return(0,i.yl)(p,t,n,(function(e){var t=e.close,n=function(){d(),t()};(0,o.L)(n);var a=[{label:r,callback:function(){u(),t()}},{label:l,primary:!0,look:"raised",callback:n}];return(0,s.jsx)(c.A,{buttons:a})}),!0,f)}function d(e){var t=e.title,n=e.message,o=e.okText,l=e.onOk,u=(0,a.A)();return(0,i.yl)(u,t,n,(function(e){var t=e.close,n=function(e){"Enter"===e.key&&(e.preventDefault(),l(),t())};(0,r.useEffect)((function(){return document.addEventListener("keydown",n),function(){document.removeEventListener("keydown",n)}}),[]);var a=[{label:o,primary:!0,look:"raised","data-cy":"btn-confirm-ok",callback:function(){l(),t()}}];return(0,s.jsx)(c.A,{buttons:a})}),!1)}},47162:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},47237:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},47383:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(98166),o=n(4394);const a={difference:n(77896).i,getOrFirst:r.Yd,adjustedHTMLString:o.H,roundDecimalPlaces:r.O5,copyToClipboard:r.lW,isDefined:r.O9}},47408:(e,t,n)=>{"use strict";n.d(t,{Bk:()=>a,GE:()=>s,MO:()=>o,XM:()=>i,hf:()=>r,pv:()=>c});var r="notification/TOASTER",o="notification/REMOVE_TOASTER",a="notification/REMOVE_TOASTER_FROM_STORE",i=function(e){return{type:r,payload:{toaster:e}}},c=function(e,t){return{type:o,payload:{key:e,manually:t}}},s=function(e){return{type:a,payload:{key:e}}}},47422:(e,t,n)=>{var r=n(31769),o=n(77797);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[o(t[n++])];return n&&n==a?e:void 0}},47473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},47509:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(22056),o=n.n(r),a=n(4883);const i=function(e,t){var n=new IntersectionObserver((function(e){o()(e,1)[0].isIntersecting&&(t(),n.disconnect())}));(0,a.useEffect)((function(){return n.observe(e.current),function(){n.disconnect()}}),[])}},47616:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(58156),o=n.n(r),a=n(28114),i=function(e){return 0===Object.keys(e).length?a.A:e};const c={color:function(e){return function(t){var n=t.theme;return o()(i(n),"colors.".concat(e))}},fontFamily:function(e){return function(t){var n=t.theme;return o()(i(n),"fontFamily.".concat(e))}},fontSize:function(e){return function(t){var n=t.theme;return o()(i(n),"fontSize.".concat(e))}},fontWeight:function(e){return function(t){var n=t.theme;return o()(i(n),"fontWeights.".concat(e))}},lineHeight:function(e){return function(t){var n=t.theme;return o()(i(n),"lineHeights.".concat(e))}},radii:function(e){return function(t){var n=t.theme;return o()(i(n),"radii.".concat(e))}},space:function(e){return function(t){var n=t.theme;return o()(i(n),"space.".concat(e))}},specificProperty:function(e){return function(t){var n=t.theme;return o()(i(n),"specificProperties.".concat(e))}}}},47978:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{A:()=>r})},48067:(e,t)=>{"use strict";t.YW=function(e,t={}){const{decode:o=decodeURIComponent,loose:a=!0,delimiter:i=n}=t,c=g(e,t),s=f(a,i),l=c.keys.map((e=>{if(o&&("+"===e.modifier||"*"===e.modifier)){const{prefix:t="",suffix:n="",separator:r=n+t}=e,a=new RegExp(s(r),"g");return e=>e.split(a).map(o)}return o||r}));return function(e){const t=c.exec(e);if(!t)return!1;const{0:n,index:r}=t,o=Object.create(null);for(let e=1;e<t.length;e++){if(void 0===t[e])continue;const n=c.keys[e-1],r=l[e-1];o[n.name]=r(t[e])}return{path:n,index:r,params:o}}};const n="/",r=e=>e,o=/^\p{XID_Continue}$/u,a="https://git.new/pathToRegexpError",i={"!":"!","@":"@",";":";",",":",","*":"*","+":"+","?":"?","{":"{","}":"}"};class c{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:n,index:r}=this.peek();throw new TypeError(`Unexpected ${n} at ${r}, expected ${e}: ${a}`)}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 s{constructor(e,t){this.tokens=e,this.delimiter=t}}function l(e,t={}){const{encodePath:l=r,delimiter:d=l(n)}=t,f=[],p=function(e){const t=[...e],n=[];let r=0;for(;r<t.length;){const e=t[r],a=i[e];if(a)n.push({type:a,index:r++,value:e});else if("\\"!==e)if(":"!==e)if("("!==e)n.push({type:"CHAR",index:r,value:t[r++]});else{const e=r++;let o=1,a="";if("?"===t[r])throw new TypeError(`Pattern cannot start with "?" at ${r}`);for(;r<t.length;)if("\\"!==t[r]){if(")"===t[r]){if(o--,0===o){r++;break}}else if("("===t[r]&&(o++,"?"!==t[r+1]))throw new TypeError(`Capturing groups are not allowed at ${r}`);a+=t[r++]}else a+=t[r++]+t[r++];if(o)throw new TypeError(`Unbalanced pattern at ${e}`);if(!a)throw new TypeError(`Missing pattern at ${e}`);n.push({type:"PATTERN",index:r,value:a})}else{let e="";for(;o.test(t[++r]);)e+=t[r];if(!e)throw new TypeError(`Missing parameter name at ${r}`);n.push({type:"NAME",index:r,value:e})}else n.push({type:"ESCAPED",index:r++,value:t[r++]})}return n.push({type:"END",index:r,value:""}),new c(n)}(e);let h=0;for(;;){const e=p.text();e&&f.push(l(e));const t=p.tryConsume("NAME"),n=p.tryConsume("PATTERN");if(t||n){f.push({name:t||String(h++),pattern:n});const e=p.peek();if("*"===e.type)throw new TypeError(`Unexpected * at ${e.index}, you probably want \`/*\` or \`{/:foo}*\`: ${a}`);continue}if(p.tryConsume("*")){f.push({name:String(h++),pattern:`(?:(?!${u(d)}).)*`,modifier:"*",separator:d});continue}if(!p.tryConsume("{")){p.consume("END");break}{const e=p.text(),t=p.tryConsume("NAME"),n=p.tryConsume("PATTERN"),r=p.text(),o=p.tryConsume(";")&&p.text();p.consume("}");const a=p.modifier();f.push({name:t||(n?String(h++):""),prefix:l(e),suffix:l(r),pattern:n,modifier:a,separator:o})}}return new s(f,d)}function u(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function d(e,t){const n=u(e);return t?`(?:${n})+(?!${n})`:n}function f(e,t){if(!e)return u;const n=new RegExp(`(?:(?!${u(t)}).)+|(.)`,"g");return e=>e.replace(n,d)}function p(e){return e.sensitive?"":"i"}function h(e,t,n,r){const o=e instanceof s?e:l(e,r),{trailing:a=!0,loose:i=!0,start:c=!0,end:d=!0,strict:p=!1}=r,h=f(i,o.delimiter);let v=c?"^":"";return v+=m(o,h,t,n,p).join(""),a&&(v+=`(?:${h(o.delimiter)}$)?`),v+=d?"$":`(?=${u(o.delimiter)}|$)`,v}function m(e,t,n,r,o){const i=`(?:(?!${u(e.delimiter)}).)+?`;let c="",s=!0;return e.tokens.map((e=>{if("string"==typeof e)return c=e,t(e);const{prefix:l="",suffix:u="",separator:d=u+l,modifier:f=""}=e,p=t(l),h=t(u);if(e.name){const m=e.pattern?`(?:${e.pattern})`:i,g=function(e,t,n){try{return new RegExp(`^${e}$`,n)}catch(e){throw new TypeError(`Invalid pattern for "${t}": ${e.message}`)}}(m,e.name,r);if(s||(s=v(g,l||c)),!s)throw new TypeError(`Ambiguous pattern for "${e.name}": ${a}`);if(s=!o||v(g,u),c="",n.push(e),"+"===f||"*"===f){const n="*"===f?"?":"",r=t(d);if(!r)throw new TypeError(`Missing separator for "${e.name}": ${a}`);if(s||(s=!o||v(g,d)),!s)throw new TypeError(`Ambiguous pattern for "${e.name}" separator: ${a}`);return s=!o,`(?:${p}(${m}(?:${r}${m})*)${h})${n}`}return`(?:${p}(${m})${h})${f}`}return`(?:${p}${h})${f}`}))}function v(e,t){return!!t&&!e.test(t)}function g(e,t={}){const n=[],r=p(t);if(Array.isArray(e)){const o=e.map((e=>h(e,n,r,t)));return Object.assign(new RegExp(o.join("|")),{keys:n})}const o=h(e,n,r,t);return Object.assign(new RegExp(o),{keys:n})}},48102:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(4883);const o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,r.useRef)(!1);(0,r.useEffect)((function(){n.current?e():n.current=!0}),t)}},48655:(e,t,n)=>{var r=n(26025);e.exports=function(e){return r(this.__data__,e)>-1}},48948:(e,t,n)=>{var r=n(21791),o=n(86375);e.exports=function(e,t){return r(e,o(e),t)}},49054:(e,t,n)=>{"use strict";n.d(t,{Kr:()=>k});
|
|
46
|
+
*/function s(e={}){let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:o=!1}=e;t=n.map(((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0)));let a=s(null==r?t.length-1:r),i="POP",c=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function l(){return t[a]}function u(e,n=null,r){let o=p(t?l().pathname:"/",e,n,r);return d("/"===o.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),o}function f(e){return"string"==typeof e?e:h(e)}return{get index(){return a},get action(){return i},get location(){return l()},createHref:f,createURL:e=>new URL(f(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?m(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){i="PUSH";let r=u(e,n);a+=1,t.splice(a,t.length,r),o&&c&&c({action:i,location:r,delta:1})},replace(e,n){i="REPLACE";let r=u(e,n);t[a]=r,o&&c&&c({action:i,location:r,delta:0})},go(e){i="POP";let n=s(a+e),r=t[n];a=n,c&&c({action:i,location:r,delta:e})},listen:e=>(c=e,()=>{c=null})}}function l(e={}){return v((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=m(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),p("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:h(t))}),(function(e,t){d("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function u(e,t){if(!1===e||null==e)throw new Error(t)}function d(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function f(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?m(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function h({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function m(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function v(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,s="POP",l=null,u=d();function d(){return(i.state||{idx:null}).idx}function h(){s="POP";let e=d(),t=null==e?null:e-u;u=e,l&&l({action:s,location:v.location,delta:t})}function m(e){return g(e)}null==u&&(u=0,i.replaceState({...i.state,idx:u},""));let v={get action(){return s},get location(){return e(o,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(c,h),l=e,()=>{o.removeEventListener(c,h),l=null}},createHref:e=>t(o,e),createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let r=p(v.location,e,t);n&&n(r,e),u=d()+1;let c=f(r,u),h=v.createHref(r);try{i.pushState(c,"",h)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(h)}a&&l&&l({action:s,location:v.location,delta:1})},replace:function(e,t){s="REPLACE";let r=p(v.location,e,t);n&&n(r,e),u=d();let o=f(r,u),c=v.createHref(r);i.replaceState(o,"",c),a&&l&&l({action:s,location:v.location,delta:0})},go:e=>i.go(e)};return v}function g(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),u(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:h(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var y=class{constructor(e){var t,n,o;if(t=this,n=r,o=new Map,n.has(t)?a("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,o),e)for(let[t,n]of e)this.set(t,n)}get(e){if(i(this,r).has(e))return i(this,r).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw new Error("No value found for context")}set(e,t){i(this,r).set(e,t)}};r=new WeakMap;var b=new Set(["lazy","caseSensitive","path","id","index","children"]);var w=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function x(e,t,n=[],r={},o=!1){return e.map(((e,a)=>{let i=[...n,String(a)],c="string"==typeof e.id?e.id:i.join("-");if(u(!0!==e.index||!e.children,"Cannot specify children on an index route"),u(o||!r[c],`Found a route id collision on id "${c}". Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let n={...e,...t(e),id:c};return r[c]=n,n}{let n={...e,...t(e),id:c,children:void 0};return r[c]=n,e.children&&(n.children=x(e.children,t,i,r,o)),n}}))}function k(e,t,n="/"){return A(e,t,n,!1)}function A(e,t,n,r){let o=z(("string"==typeof t?m(t):t).pathname||"/",n);if(null==o)return null;let a=O(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e){let t=F(o);i=L(a[e],t,r)}return i}function S(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function O(e,t=[],n=[],r=""){let o=(e,o,a)=>{let i={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith("/")&&(u(i.relativePath.startsWith(r),`Absolute route path "${i.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),i.relativePath=i.relativePath.slice(r.length));let c=$([r,i.relativePath]),s=n.concat(i);e.children&&e.children.length>0&&(u(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),O(e.children,t,s,c)),(null!=e.path||e.index)&&t.push({path:c,score:D(c,e.index),routesMeta:s})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of E(e.path))o(e,t,n);else o(e,t)})),t}function E(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=E(r.join("/")),c=[];return c.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&c.push(...i),c.map((t=>e.startsWith("/")&&""===t?"/":t))}var j=/^:[\w-]+$/,P=3,T=2,C=1,_=10,N=-2,R=e=>"*"===e;function D(e,t){let n=e.split("/"),r=n.length;return n.some(R)&&(r+=N),t&&(r+=T),n.filter((e=>!R(e))).reduce(((e,t)=>e+(j.test(t)?P:""===t?C:_)),r)}function L(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let e=0;e<r.length;++e){let c=r[e],s=e===r.length-1,l="/"===a?t:t.slice(a.length)||"/",u=M({path:c.relativePath,caseSensitive:c.caseSensitive,end:s},l),d=c.route;if(!u&&s&&n&&!r[r.length-1].route.index&&(u=M({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},l)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:$([a,u.pathname]),pathnameBase:q($([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=$([a,u.pathnameBase]))}return i}function M(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=I(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=c[r]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const o=c[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:i,pattern:e}}function I(e,t=!1,n=!0){d("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function F(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return d(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function z(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function H(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function B(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function U(e){let t=B(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function W(e,t,n,r=!1){let o;"string"==typeof e?o=m(e):(o={...e},u(!o.pathname||!o.pathname.includes("?"),H("?","pathname","search",o)),u(!o.pathname||!o.pathname.includes("#"),H("#","pathname","hash",o)),u(!o.search||!o.search.includes("#"),H("#","search","hash",o)));let a,i=""===e||""===o.pathname,c=i?"/":o.pathname;if(null==c)a=n;else{let e=t.length-1;if(!r&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let s=function(e,t="/"){let{pathname:n,search:r="",hash:o=""}="string"==typeof e?m(e):e,a=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:a,search:V(r),hash:G(o)}}(o,a),l=c&&"/"!==c&&c.endsWith("/"),d=(i||"."===c)&&n.endsWith("/");return s.pathname.endsWith("/")||!l&&!d||(s.pathname+="/"),s}var $=e=>e.join("/").replace(/\/\/+/g,"/"),q=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),V=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",G=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var Y=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function K(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var J=["POST","PUT","PATCH","DELETE"],X=new Set(J),Q=["GET",...J],Z=new Set(Q),ee=new Set([301,302,303,307,308]),te=new Set([307,308]),ne={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},re={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},oe={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ae=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ie=e=>ae.test(e),ce=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),se="remix-router-transitions",le=Symbol("ResetLoaderData");function ue(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement;u(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r,o,a,i=e.hydrationRouteProperties||[],c=e.mapRouteProperties||ce,s={},l=x(e.routes,c,void 0,s),f=e.basename||"/",h=e.dataStrategy||ke,m={unstable_middleware:!1,...e.future},v=null,b=new Set,w=null,O=null,E=null,j=null!=e.hydrationData,P=k(l,e.history.location,f),T=!1,C=null;if(null!=P||e.patchRoutesOnNavigation){if(P&&!e.hydrationData){Qe(P,l,e.history.location.pathname).active&&(P=null)}if(P)if(P.some((e=>e.route.lazy)))o=!1;else if(P.some((e=>e.route.loader))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=P.findIndex((e=>void 0!==n[e.route.id]));o=P.slice(0,e+1).every((e=>!he(e.route,t,n)))}else o=P.every((e=>!he(e.route,t,n)))}else o=!0;else{o=!1,P=[];let t=Qe(null,l,e.history.location.pathname);t.active&&t.matches&&(T=!0,P=t.matches)}}else{let t=Ue(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Be(l);o=!0,P=n,C={[r.id]:t}}let _,N,R={historyAction:e.history.action,location:e.history.location,matches:P,initialized:o,navigation:ne,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||C,fetchers:new Map,blockers:new Map},D="POP",L=!1,M=!1,I=new Map,F=null,H=!1,B=!1,U=new Set,W=new Map,$=0,q=-1,V=new Map,G=new Set,Y=new Map,J=new Map,X=new Set,Q=new Map,Z=null;function ee(e,t={}){e.matches&&(e.matches=e.matches.map((e=>{let t=s[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}))),R={...R,...e};let n=[],r=[];R.fetchers.forEach(((e,t)=>{"idle"===e.state&&(X.has(t)?n.push(t):r.push(t))})),X.forEach((e=>{R.fetchers.has(e)||W.has(e)||n.push(e)})),[...b].forEach((e=>e(R,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>Se(e))),r.forEach((e=>R.fetchers.delete(e)))}function ae(t,n,{flushSync:o}={}){let a,i=null!=R.actionData&&null!=R.navigation.formMethod&&Xe(R.navigation.formMethod)&&"loading"===R.navigation.state&&!0!==t.state?._isRedirect;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?R.actionData:null;let c=n.loaderData?Fe(R.loaderData,n.loaderData,n.matches||[],n.errors):R.loaderData,s=R.blockers;s.size>0&&(s=new Map(s),s.forEach(((e,t)=>s.set(t,oe))));let u,d=!H&&Je(t,n.matches||R.matches),f=!0===L||null!=R.navigation.formMethod&&Xe(R.navigation.formMethod)&&!0!==t.state?._isRedirect;if(r&&(l=r,r=void 0),H||"POP"===D||("PUSH"===D?e.history.push(t,t.state):"REPLACE"===D&&e.history.replace(t,t.state)),"POP"===D){let e=I.get(R.location.pathname);e&&e.has(t.pathname)?u={currentLocation:R.location,nextLocation:t}:I.has(t.pathname)&&(u={currentLocation:t,nextLocation:R.location})}else if(M){let e=I.get(R.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),I.set(R.location.pathname,e)),u={currentLocation:R.location,nextLocation:t}}ee({...n,actionData:a,loaderData:c,historyAction:D,location:t,initialized:!0,navigation:ne,revalidation:"idle",restoreScrollPosition:d,preventScrollReset:f,blockers:s},{viewTransitionOpts:u,flushSync:!0===o}),D="POP",L=!1,M=!1,H=!1,B=!1,Z?.resolve(),Z=null}async function le(t,n,o){_&&_.abort(),_=null,D=t,H=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(w&&E){let n=Ke(e,t);w[n]=E()}}(R.location,R.matches),L=!0===(o&&o.preventScrollReset),M=!0===(o&&o.enableViewTransition);let a=r||l,u=o&&o.overrideNavigation,d=o?.initialHydration&&R.matches&&R.matches.length>0&&!T?R.matches:k(a,n,f),p=!0===(o&&o.flushSync);if(d&&R.initialized&&!B&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(R.location,n)&&!(o&&o.submission&&Xe(o.submission.formMethod)))return void ae(n,{matches:d},{flushSync:p});let h=Qe(d,a,n.pathname);if(h.active&&h.matches&&(d=h.matches),!d){let{error:e,notFoundMatches:t,route:r}=Ye(n.pathname);return void ae(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:p})}_=new AbortController;let m,v=Re(e.history,n,_.signal,o&&o.submission),g=e.unstable_getContext?await e.unstable_getContext():new y;if(o&&o.pendingError)m=[He(d).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&Xe(o.submission.formMethod)){let t=await async function(e,t,n,r,o,a,l,u={}){be();let d,p=function(e,t){let n={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return n}(t,n);if(ee({navigation:p},{flushSync:!0===u.flushSync}),a){let n=await ot(r,t.pathname,e.signal);if("aborted"===n.type)return{shortCircuited:!0};if("error"===n.type){let e=He(n.partialMatches).route.id;return{matches:n.partialMatches,pendingActionResult:[e,{type:"error",error:n.error}]}}if(!n.matches){let{notFoundMatches:e,error:n,route:r}=Ye(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:n}]}}r=n.matches}let h=Ze(r,t);if(h.route.action||h.route.lazy){let t=Pe(c,s,e,r,h,l?[]:i,o),n=await ge(e,t,o,null);if(d=n[h.route.id],!d)for(let e of r)if(n[e.route.id]){d=n[e.route.id];break}if(e.signal.aborted)return{shortCircuited:!0}}else d={type:"error",error:Ue(405,{method:e.method,pathname:t.pathname,routeId:h.route.id})};if(Ge(d)){let t;if(u&&null!=u.replace)t=u.replace;else{t=Ne(d.response.headers.get("Location"),new URL(e.url),f)===R.location.pathname+R.location.search}return await me(e,d,!0,{submission:n,replace:t}),{shortCircuited:!0}}if(Ve(d)){let e=He(r,h.route.id);return!0!==(u&&u.replace)&&(D="PUSH"),{matches:r,pendingActionResult:[e.route.id,d,h.route.id]}}return{matches:r,pendingActionResult:[h.route.id,d]}}(v,n,o.submission,d,g,h.active,o&&!0===o.initialHydration,{replace:o.replace,flushSync:p});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(Ve(r)&&K(r.error)&&404===r.error.status)return _=null,void ae(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}d=t.matches||d,m=t.pendingActionResult,u=tt(n,o.submission),p=!1,h.active=!1,v=Re(e.history,v.url,v.signal)}let{shortCircuited:b,matches:x,loaderData:A,errors:S}=await async function(t,n,o,a,u,d,p,h,m,v,g,y){let b=d||tt(n,p),w=p||h||et(b),x=!H&&!v;if(u){if(x){let e=ue(y);ee({navigation:b,...void 0!==e?{actionData:e}:{}},{flushSync:g})}let e=await ot(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=He(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=Ye(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let k=r||l,{dsMatches:A,revalidatingFetchers:S}=pe(t,a,c,s,e.history,R,o,w,n,v?[]:i,!0===v,B,U,X,Y,G,k,f,null!=e.patchRoutesOnNavigation,y);if(q=++$,!e.dataStrategy&&!A.some((e=>e.shouldLoad))&&!A.some((e=>e.route.unstable_middleware))&&0===S.length){let e=je();return ae(n,{matches:o,loaderData:{},errors:y&&Ve(y[1])?{[y[0]]:y[1].error}:null,...ze(y),...e?{fetchers:new Map(R.fetchers)}:{}},{flushSync:g}),{shortCircuited:!0}}if(x){let e={};if(!u){e.navigation=b;let t=ue(y);void 0!==t&&(e.actionData=t)}S.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=R.fetchers.get(e.key),n=nt(void 0,t?t.data:void 0);R.fetchers.set(e.key,n)})),new Map(R.fetchers)}(S)),ee(e,{flushSync:g})}S.forEach((e=>{Oe(e.key),e.controller&&W.set(e.key,e.controller)}));let O=()=>S.forEach((e=>Oe(e.key)));_&&_.signal.addEventListener("abort",O);let{loaderResults:E,fetcherResults:j}=await ye(A,S,t,a);if(t.signal.aborted)return{shortCircuited:!0};_&&_.signal.removeEventListener("abort",O);S.forEach((e=>W.delete(e.key)));let P=We(E);if(P)return await me(t,P.result,!0,{replace:m}),{shortCircuited:!0};if(P=We(j),P)return G.add(P.key),await me(t,P.result,!0,{replace:m}),{shortCircuited:!0};let{loaderData:T,errors:C}=Ie(R,o,E,y,S,j);v&&R.errors&&(C={...R.errors,...C});let N=je(),D=De(q),L=N||D||S.length>0;return{matches:o,loaderData:T,errors:C,...L?{fetchers:new Map(R.fetchers)}:{}}}(v,n,d,g,h.active,u,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,p,m);b||(_=null,ae(n,{matches:x||d,...ze(m),loaderData:A,errors:S}))}function ue(e){return e&&!Ve(e[1])?{[e[0]]:e[1].data}:R.actionData?0===Object.keys(R.actionData).length?null:R.actionData:void 0}async function me(e,r,o,{submission:a,fetcherSubmission:i,preventScrollReset:c,replace:s}={}){r.response.headers.has("X-Remix-Revalidate")&&(B=!0);let l=r.response.headers.get("Location");u(l,"Expected a Location header on the redirect Response"),l=Ne(l,new URL(e.url),f);let d=p(R.location,l,{_isRedirect:!0});if(n){let e=!1;if(r.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(ie(l)){const n=g(l,!0);e=n.origin!==t.location.origin||null==z(n.pathname,f)}if(e)return void(s?t.location.replace(l):t.location.assign(l))}_=null;let h=!0===s||r.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:m,formAction:v,formEncType:y}=R.navigation;!a&&!i&&m&&v&&y&&(a=et(R.navigation));let b=a||i;if(te.has(r.response.status)&&b&&Xe(b.formMethod))await le(h,d,{submission:{...b,formAction:l},preventScrollReset:c||L,enableViewTransition:o?M:void 0});else{let e=tt(d,a);await le(h,d,{overrideNavigation:e,fetcherSubmission:i,preventScrollReset:c||L,enableViewTransition:o?M:void 0})}}async function ge(e,t,n,r){let o,a={};try{o=await Te(h,e,t,r,n,!1)}catch(e){return t.filter((e=>e.shouldLoad)).forEach((t=>{a[t.route.id]={type:"error",error:e}})),a}if(e.signal.aborted)return a;for(let[n,r]of Object.entries(o))if(qe(r)){let o=r.result;a[n]={type:"redirect",response:_e(o,e,n,t,f)}}else a[n]=await Ce(r);return a}async function ye(e,t,n,r){let o=ge(n,e,r,null),a=Promise.all(t.map((async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await ge(e.request,e.matches,r,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:"error",error:Ue(404,{pathname:e.path})}})})));return{loaderResults:await o,fetcherResults:(await a).reduce(((e,t)=>Object.assign(e,t)),{})}}function be(){B=!0,Y.forEach(((e,t)=>{W.has(t)&&U.add(t),Oe(t)}))}function we(e,t,n={}){R.fetchers.set(e,t),ee({fetchers:new Map(R.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function xe(e,t,n,r={}){let o=He(R.matches,t);Se(e),ee({errors:{[o.route.id]:n},fetchers:new Map(R.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Ae(e){return J.set(e,(J.get(e)||0)+1),X.has(e)&&X.delete(e),R.fetchers.get(e)||re}function Se(e){let t=R.fetchers.get(e);!W.has(e)||t&&"loading"===t.state&&V.has(e)||Oe(e),Y.delete(e),V.delete(e),G.delete(e),X.delete(e),U.delete(e),R.fetchers.delete(e)}function Oe(e){let t=W.get(e);t&&(t.abort(),W.delete(e))}function Ee(e){for(let t of e){let e=rt(Ae(t).data);R.fetchers.set(t,e)}}function je(){let e=[],t=!1;for(let n of G){let r=R.fetchers.get(n);u(r,`Expected fetcher: ${n}`),"loading"===r.state&&(G.delete(n),e.push(n),t=!0)}return Ee(e),t}function De(e){let t=[];for(let[n,r]of V)if(r<e){let e=R.fetchers.get(n);u(e,`Expected fetcher: ${n}`),"loading"===e.state&&(Oe(n),V.delete(n),t.push(n))}return Ee(t),t.length>0}function Le(e){R.blockers.delete(e),Q.delete(e)}function Me(e,t){let n=R.blockers.get(e)||oe;u("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(R.blockers);r.set(e,t),ee({blockers:r})}function $e({currentLocation:e,nextLocation:t,historyAction:n}){if(0===Q.size)return;Q.size>1&&d(!1,"A router only supports one blocker at a time");let r=Array.from(Q.entries()),[o,a]=r[r.length-1],i=R.blockers.get(o);return i&&"proceeding"===i.state?void 0:a({currentLocation:e,nextLocation:t,historyAction:n})?o:void 0}function Ye(e){let t=Ue(404,{pathname:e}),n=r||l,{matches:o,route:a}=Be(n);return{notFoundMatches:o,route:a,error:t}}function Ke(e,t){if(O){return O(e,t.map((e=>S(e,R.loaderData))))||e.key}return e.key}function Je(e,t){if(w){let n=Ke(e,t),r=w[n];if("number"==typeof r)return r}return null}function Qe(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:A(n,r,f,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:A(n,r,f,!0)}}}return{active:!1,matches:null}}async function ot(t,n,o,a){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let i=t;for(;;){let t=null==r,u=r||l,d=s;try{await e.patchRoutesOnNavigation({signal:o,path:n,matches:i,fetcherKey:a,patch:(e,t)=>{o.aborted||ve(e,t,u,d,c,!1)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{t&&!o.aborted&&(l=[...l])}if(o.aborted)return{type:"aborted"};let p=k(u,n,f);if(p)return{type:"success",matches:p};let h=A(u,n,f,!0);if(!h||i.length===h.length&&i.every(((e,t)=>e.route.id===h[t].route.id)))return{type:"success",matches:null};i=h}}return a={get basename(){return f},get future(){return m},get state(){return R},get routes(){return l},get window(){return t},initialize:function(){if(v=e.history.listen((({action:t,location:n,delta:r})=>{if(N)return N(),void(N=void 0);d(0===Q.size||null!=r,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=$e({currentLocation:R.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise((e=>{N=e}));return e.history.go(-1*r),void Me(o,{state:"blocked",location:n,proceed(){Me(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(R.blockers);e.set(o,oe),ee({blockers:e})}})}return le(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(se);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,I);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(se,JSON.stringify(n))}catch(e){d(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,I);t.addEventListener("pagehide",e),F=()=>t.removeEventListener("pagehide",e)}return R.initialized||le("POP",R.location,{initialHydration:!0}),a},subscribe:function(e){return b.add(e),()=>b.delete(e)},enableScrollRestoration:function(e,t,n){if(w=e,E=t,O=n||null,!j&&R.navigation===ne){j=!0;let e=Je(R.location,R.matches);null!=e&&ee({restoreScrollPosition:e})}return()=>{w=null,E=null,O=null}},navigate:async function t(n,r){if("number"==typeof n)return void e.history.go(n);let o=de(R.location,R.matches,f,n,r?.fromRouteId,r?.relative),{path:a,submission:i,error:c}=fe(!1,o,r),s=R.location,l=p(R.location,a,r&&r.state);l={...l,...e.history.encodeLocation(l)};let u=r&&null!=r.replace?r.replace:void 0,d="PUSH";!0===u?d="REPLACE":!1===u||null!=i&&Xe(i.formMethod)&&i.formAction===R.location.pathname+R.location.search&&(d="REPLACE");let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,m=!0===(r&&r.flushSync),v=$e({currentLocation:s,nextLocation:l,historyAction:d});v?Me(v,{state:"blocked",location:l,proceed(){Me(v,{state:"proceeding",proceed:void 0,reset:void 0,location:l}),t(n,r)},reset(){let e=new Map(R.blockers);e.set(v,oe),ee({blockers:e})}}):await le(d,l,{submission:i,pendingError:c,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:m})},fetch:async function(t,n,o,a){Oe(t);let d=!0===(a&&a.flushSync),p=r||l,h=de(R.location,R.matches,f,o,n,a?.relative),m=k(p,h,f),v=Qe(m,p,h);if(v.active&&v.matches&&(m=v.matches),!m)return void xe(t,n,Ue(404,{pathname:h}),{flushSync:d});let{path:g,submission:b,error:w}=fe(!0,h,a);if(w)return void xe(t,n,w,{flushSync:d});let x=e.unstable_getContext?await e.unstable_getContext():new y,A=!0===(a&&a.preventScrollReset);b&&Xe(b.formMethod)?await async function(t,n,o,a,d,p,h,m,v){be(),Y.delete(t);let g=R.fetchers.get(t);we(t,function(e,t){let n={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return n}(v,g),{flushSync:h});let y=new AbortController,b=Re(e.history,o,y.signal,v);if(p){let e=await ot(a,new URL(b.url).pathname,b.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void xe(t,n,e.error,{flushSync:h});if(!e.matches)return void xe(t,n,Ue(404,{pathname:o}),{flushSync:h});a=e.matches}let w=Ze(a,o);if(!w.route.action&&!w.route.lazy){let e=Ue(405,{method:v.formMethod,pathname:o,routeId:n});return void xe(t,n,e,{flushSync:h})}W.set(t,y);let x=$,A=Pe(c,s,b,a,w,i,d),S=await ge(b,A,d,t),O=S[w.route.id];if(b.signal.aborted)return void(W.get(t)===y&&W.delete(t));if(X.has(t)){if(Ge(O)||Ve(O))return void we(t,rt(void 0))}else{if(Ge(O))return W.delete(t),q>x?void we(t,rt(void 0)):(G.add(t),we(t,nt(v)),me(b,O,!1,{fetcherSubmission:v,preventScrollReset:m}));if(Ve(O))return void xe(t,n,O.error)}let E=R.navigation.location||R.location,j=Re(e.history,E,y.signal),P=r||l,T="idle"!==R.navigation.state?k(P,R.navigation.location,f):R.matches;u(T,"Didn't find any matches after fetcher action");let C=++$;V.set(t,C);let N=nt(v,O.data);R.fetchers.set(t,N);let{dsMatches:L,revalidatingFetchers:M}=pe(j,d,c,s,e.history,R,T,v,E,i,!1,B,U,X,Y,G,P,f,null!=e.patchRoutesOnNavigation,[w.route.id,O]);M.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=R.fetchers.get(t),r=nt(void 0,n?n.data:void 0);R.fetchers.set(t,r),Oe(t),e.controller&&W.set(t,e.controller)})),ee({fetchers:new Map(R.fetchers)});let I=()=>M.forEach((e=>Oe(e.key)));y.signal.addEventListener("abort",I);let{loaderResults:F,fetcherResults:z}=await ye(L,M,j,d);if(y.signal.aborted)return;if(y.signal.removeEventListener("abort",I),V.delete(t),W.delete(t),M.forEach((e=>W.delete(e.key))),R.fetchers.has(t)){let e=rt(O.data);R.fetchers.set(t,e)}let H=We(F);if(H)return me(j,H.result,!1,{preventScrollReset:m});if(H=We(z),H)return G.add(H.key),me(j,H.result,!1,{preventScrollReset:m});let{loaderData:K,errors:J}=Ie(R,T,F,void 0,M,z);De(C),"loading"===R.navigation.state&&C>q?(u(D,"Expected pending action"),_&&_.abort(),ae(R.navigation.location,{matches:T,loaderData:K,errors:J,fetchers:new Map(R.fetchers)})):(ee({errors:J,loaderData:Fe(R.loaderData,K,T,J),fetchers:new Map(R.fetchers)}),B=!1)}(t,n,g,m,x,v.active,d,A,b):(Y.set(t,{routeId:n,path:g}),await async function(t,n,r,o,a,l,u,d,f){let p=R.fetchers.get(t);we(t,nt(f,p?p.data:void 0),{flushSync:u});let h=new AbortController,m=Re(e.history,r,h.signal);if(l){let e=await ot(o,new URL(m.url).pathname,m.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void xe(t,n,e.error,{flushSync:u});if(!e.matches)return void xe(t,n,Ue(404,{pathname:r}),{flushSync:u});o=e.matches}let v=Ze(o,r);W.set(t,h);let g=$,y=Pe(c,s,m,o,v,i,a),b=await ge(m,y,a,t),w=b[v.route.id];W.get(t)===h&&W.delete(t);if(m.signal.aborted)return;if(X.has(t))return void we(t,rt(void 0));if(Ge(w))return q>g?void we(t,rt(void 0)):(G.add(t),void await me(m,w,!1,{preventScrollReset:d}));if(Ve(w))return void xe(t,n,w.error);we(t,rt(w.data))}(t,n,g,m,x,v.active,d,A,b))},revalidate:function(){Z||(Z=function(){let e,t,n=new Promise(((r,o)=>{e=async e=>{r(e);try{await n}catch(e){}},t=async e=>{o(e);try{await n}catch(e){}}}));return{promise:n,resolve:e,reject:t}}()),be(),ee({revalidation:"loading"});let e=Z.promise;return"submitting"===R.navigation.state?e:"idle"===R.navigation.state?(le(R.historyAction,R.location,{startUninterruptedRevalidation:!0}),e):(le(D||R.historyAction,R.navigation.location,{overrideNavigation:R.navigation,enableViewTransition:!0===M}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Ae,deleteFetcher:function(e){let t=(J.get(e)||0)-1;t<=0?(J.delete(e),X.add(e)):J.set(e,t),ee({fetchers:new Map(R.fetchers)})},dispose:function(){v&&v(),F&&F(),b.clear(),_&&_.abort(),R.fetchers.forEach(((e,t)=>Se(t))),R.blockers.forEach(((e,t)=>Le(t)))},getBlocker:function(e,t){let n=R.blockers.get(e)||oe;return Q.get(e)!==t&&Q.set(e,t),n},deleteBlocker:Le,patchRoutes:function(e,t,n=!1){let o=null==r;ve(e,t,r||l,s,c,n),o&&(l=[...l],ee({}))},_internalFetchControllers:W,_internalSetRoutes:function(e){s={},r=x(e,c,void 0,s)},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){ee(e)}},a}function de(e,t,n,r,o,a){let i,c;if(o){i=[];for(let e of t)if(i.push(e),e.route.id===o){c=e;break}}else i=t,c=t[t.length-1];let s=W(r||".",U(i),z(e.pathname,n)||e.pathname,"path"===a);if(null==r&&(s.search=e.search,s.hash=e.hash),(null==r||""===r||"."===r)&&c){let e=Qe(s.search);if(c.route.index&&!e)s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&e){let e=new URLSearchParams(s.search),t=e.getAll("index");e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();s.search=n?`?${n}`:""}}return"/"!==n&&(s.pathname=function({basename:e,pathname:t}){return"/"===t?e:$([e,t])}({basename:n,pathname:s.pathname})),h(s)}function fe(e,t,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:t};if(n.formMethod&&!Je(n.formMethod))return{path:t,error:Ue(405,{method:n.formMethod})};let r,o,a=()=>({path:t,error:Ue(400,{type:"invalid-body"})}),i=(n.formMethod||"get").toUpperCase(),c=$e(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!Xe(i))return a();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce(((e,[t,n])=>`${e}${t}=${n}\n`),""):String(n.body);return{path:t,submission:{formMethod:i,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!Xe(i))return a();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return a()}}}if(u("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=De(n.formData),o=n.formData;else if(n.body instanceof FormData)r=De(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=Le(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=Le(r)}catch(e){return a()}let s={formMethod:i,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(Xe(s.formMethod))return{path:t,submission:s};let l=m(t);return e&&l.search&&Qe(l.search)&&r.append("index",""),l.search=`?${r}`,{path:h(l),submission:s}}function pe(e,t,n,r,o,a,i,c,s,l,u,d,f,p,h,m,v,g,y,b){let w,x=b?Ve(b[1])?b[1].error:b[1].data:void 0,A=o.createURL(a.location),S=o.createURL(s);if(u&&a.errors){let e=Object.keys(a.errors)[0];w=i.findIndex((t=>t.route.id===e))}else if(b&&Ve(b[1])){let e=b[0];w=i.findIndex((t=>t.route.id===e))-1}let O=b?b[1].statusCode:void 0,E=O&&O>=400,j={currentUrl:A,currentParams:a.matches[0]?.params||{},nextUrl:S,nextParams:i[0].params,...c,actionResult:x,actionStatus:O},P=i.map(((o,i)=>{let{route:c}=o,s=null;if(null!=w&&i>w?s=!1:c.lazy?s=!0:null==c.loader?s=!1:u?s=he(c,a.loaderData,a.errors):function(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}(a.loaderData,a.matches[i],o)&&(s=!0),null!==s)return je(n,r,e,o,l,t,s);let f=!E&&(d||A.pathname+A.search===S.pathname+S.search||A.search!==S.search||function(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}(a.matches[i],o)),p={...j,defaultShouldRevalidate:f},h=me(o,p);return je(n,r,e,o,l,t,h,p)})),T=[];return h.forEach(((e,c)=>{if(u||!i.some((t=>t.route.id===e.routeId))||p.has(c))return;let s=a.fetchers.get(c),h=s&&"idle"!==s.state&&void 0===s.data,b=k(v,e.path,g);if(!b){if(y&&h)return;return void T.push({key:c,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null})}if(m.has(c))return;let w=Ze(b,e.path),x=new AbortController,A=Re(o,e.path,x.signal),S=null;if(f.has(c))f.delete(c),S=Pe(n,r,A,b,w,l,t);else if(h)d&&(S=Pe(n,r,A,b,w,l,t));else{let e={...j,defaultShouldRevalidate:!E&&d};me(w,e)&&(S=Pe(n,r,A,b,w,l,t,e))}S&&T.push({key:c,routeId:e.routeId,path:e.path,matches:S,match:w,request:A,controller:x})})),{dsMatches:P,revalidatingFetchers:T}}function he(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=null!=t&&e.id in t,o=null!=n&&void 0!==n[e.id];return!(!r&&o)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!o)}function me(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function ve(e,t,n,r,o,a){let i;if(e){let t=r[e];u(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),i=t.children}else i=n;let c=[],s=[];if(t.forEach((e=>{let t=i.find((t=>ge(e,t)));t?s.push({existingRoute:t,newRoute:e}):c.push(e)})),c.length>0){let t=x(c,o,[e||"_","patch",String(i?.length||"0")],r);i.push(...t)}if(a&&s.length>0)for(let e=0;e<s.length;e++){let{existingRoute:t,newRoute:n}=s[e],r=t,[a]=x([n],o,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}}function ge(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every(((e,n)=>t.children?.some((t=>ge(e,t))))))}var ye=new WeakMap,be=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(u(o,"No route found in manifest"),!o.lazy||"object"!=typeof o.lazy)return;let a=o.lazy[e];if(!a)return;let i=ye.get(o);i||(i={},ye.set(o,i));let c=i[e];if(c)return c;let s=(async()=>{let t=function(e){return b.has(e)}(e),n=void 0!==o[e]&&"hasErrorBoundary"!==e;if(t)d(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(n)d(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();null!=t&&(Object.assign(o,{[e]:t}),Object.assign(o,r(o)))}"object"==typeof o.lazy&&(o.lazy[e]=void 0,Object.values(o.lazy).every((e=>void 0===e))&&(o.lazy=void 0))})();return i[e]=s,s},we=new WeakMap;async function xe(e){let t=e.matches.filter((e=>e.shouldLoad)),n={};return(await Promise.all(t.map((e=>e.resolve())))).forEach(((e,r)=>{n[t[r].route.id]=e})),n}async function ke(e){if(!e.matches.some((e=>e.route.unstable_middleware)))return xe(e);let t=!1;return Se(e,(()=>(t=!0,xe(e))),((n,r)=>Ae(n,r,e.matches,t)))}function Ae(e,t,n,r){if(r)return{[t]:{type:"error",result:e}};{let r=He(n,n.find((e=>e.route.id===t||e.route.loader))?.route.id||t).route.id;return{[r]:{type:"error",result:e}}}}async function Se(e,t,n){let{matches:r,request:o,params:a,context:i}=e,c=r.flatMap((e=>e.route.unstable_middleware?e.route.unstable_middleware.map((t=>[e.route.id,t])):[])),s={};return await Oe({request:o,params:a,context:i},c,t,n,s),s}async function Oe(e,t,n,r,o={},a=0){let{request:i}=e;if(i.signal.aborted){if(i.signal.reason)throw i.signal.reason;throw new Error(`Request aborted without an \`AbortSignal.reason\`: ${i.method} ${i.url}`)}let c=t[a];if(!c){let e=await n();return void Object.assign(o,e)}let[s,l]=c,u=!1,d=async()=>{if(u)throw new Error("You may only call `next()` once per middleware");u=!0;try{let i=await Oe(e,t,n,r,o,a+1);Object.assign(o,i)}catch(e){let t=await r(e,s);Object.assign(o,t)}};try{let t=await l({request:e.request,params:e.params,context:e.context},d);void 0!==t&&console.warn("client middlewares are not intended to return values, the value will be ignored",t),u||await d()}catch(e){let t=await r(e,s);Object.assign(o,t)}}function Ee(e,t,n,r,o){let a=be({key:"unstable_middleware",route:r.route,manifest:t,mapRouteProperties:e}),i=function(e,t,n,r,o){let a=n[e.id];if(u(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=we.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{u("function"==typeof e.lazy,"No lazy route function found");let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(void 0===r)continue;let i=(o=e,w.has(o)),c=void 0!==a[e]&&"hasErrorBoundary"!==e;i?d(!i,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):c?d(!c,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}var o;Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return we.set(a,n),n.catch((()=>{})),{lazyRoutePromise:n,lazyHandlerPromise:n}}let i,c=Object.keys(e.lazy),s=[];for(let a of c){if(o&&o.includes(a))continue;let c=be({key:a,route:e,manifest:n,mapRouteProperties:r});c&&(s.push(c),a===t&&(i=c))}let l=s.length>0?Promise.all(s).then((()=>{})):void 0;return l?.catch((()=>{})),i?.catch((()=>{})),{lazyRoutePromise:l,lazyHandlerPromise:i}}(r.route,Xe(n.method)?"action":"loader",t,e,o);return{middleware:a,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function je(e,t,n,r,o,a,i,c=null){let s=!1,l=Ee(e,t,n,r,o);return{...r,_lazyPromises:l,shouldLoad:i,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler:e=>(s=!0,c?me(r,"boolean"==typeof e?{...c,defaultShouldRevalidate:e}:c):i),resolve:e=>s||i||e&&!Xe(n.method)&&(r.route.lazy||r.route.loader)?async function({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:o,scopedContext:a}){let i,c,s=Xe(e.method),l=s?"action":"loader",u=n=>{let r,i=new Promise(((e,t)=>r=t));c=()=>r(),e.signal.addEventListener("abort",c);let s=r=>"function"!=typeof n?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${l}" [routeId: ${t.route.id}]`)):n({request:e,params:t.params,context:a},...void 0!==r?[r]:[]),u=(async()=>{try{return{type:"data",result:await(o?o((e=>s(e))):s())}}catch(e){return{type:"error",result:e}}})();return Promise.race([u,i])};try{let o=s?t.route.action:t.route.loader;if(n||r)if(o){let e,[t]=await Promise.all([u(o).catch((t=>{e=t})),n,r]);if(void 0!==e)throw e;i=t}else{await n;let o=s?t.route.action:t.route.loader;if(!o){if("action"===l){let n=new URL(e.url),r=n.pathname+n.search;throw Ue(405,{method:e.method,pathname:r,routeId:t.route.id})}return{type:"data",result:void 0}}[i]=await Promise.all([u(o),r])}else{if(!o){let t=new URL(e.url);throw Ue(404,{pathname:t.pathname+t.search})}i=await u(o)}}catch(e){return{type:"error",result:e}}finally{c&&e.signal.removeEventListener("abort",c)}return i}({request:n,match:r,lazyHandlerPromise:l?.handler,lazyRoutePromise:l?.route,handlerOverride:e,scopedContext:a}):Promise.resolve({type:"data",result:void 0})}}function Pe(e,t,n,r,o,a,i,c=null){return r.map((r=>r.route.id!==o.route.id?{...r,shouldLoad:!1,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler:()=>!1,_lazyPromises:Ee(e,t,n,r,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:je(e,t,n,r,a,i,!0,c)))}async function Te(e,t,n,r,o,a){n.some((e=>e._lazyPromises?.middleware))&&await Promise.all(n.map((e=>e._lazyPromises?.middleware)));let i={request:t,params:n[0].params,context:o,matches:n},c=a?()=>{throw new Error("You cannot call `unstable_runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=i,o=!1;return Se(t,(()=>(o=!0,e({...t,fetcherKey:r,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}))),((e,t)=>Ae(e,t,n,o)))},s=await e({...i,fetcherKey:r,unstable_runClientMiddleware:c});try{await Promise.all(n.flatMap((e=>[e._lazyPromises?.handler,e._lazyPromises?.route])))}catch(e){}return s}async function Ce(e){let{result:t,type:n}=e;if(Ke(t)){let e;try{let n=t.headers.get("Content-Type");e=n&&/\bapplication\/json\b/.test(n)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:"error",error:e}}return"error"===n?{type:"error",error:new Y(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===n?Ye(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new Y(t.init?.status||500,void 0,t.data),statusCode:K(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:K(t)?t.status:void 0}:Ye(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function _e(e,t,n,r,o){let a=e.headers.get("Location");if(u(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!ie(a)){let i=r.slice(0,r.findIndex((e=>e.route.id===n))+1);a=de(new URL(t.url),i,o,a),e.headers.set("Location",a)}return e}function Ne(e,t,n){if(ie(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=null!=z(o.pathname,n);if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function Re(e,t,n,r){let o=e.createURL($e(t)).toString(),a={signal:n};if(r&&Xe(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),"application/json"===t?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):"text/plain"===t?a.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?a.body=De(r.formData):a.body=r.formData}return new Request(o,a)}function De(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Le(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Me(e,t,n,r=!1,o=!1){let a,i={},c=null,s=!1,l={},d=n&&Ve(n[1])?n[1].error:void 0;return e.forEach((n=>{if(!(n.route.id in t))return;let f=n.route.id,p=t[f];if(u(!Ge(p),"Cannot handle redirect results in processLoaderData"),Ve(p)){let t=p.error;if(void 0!==d&&(t=d,d=void 0),c=c||{},o)c[f]=t;else{let n=He(e,f);null==c[n.route.id]&&(c[n.route.id]=t)}r||(i[f]=le),s||(s=!0,a=K(p.error)?p.error.status:500),p.headers&&(l[f]=p.headers)}else i[f]=p.data,p.statusCode&&200!==p.statusCode&&!s&&(a=p.statusCode),p.headers&&(l[f]=p.headers)})),void 0!==d&&n&&(c={[n[0]]:d},n[2]&&(i[n[2]]=void 0)),{loaderData:i,errors:c,statusCode:a||200,loaderHeaders:l}}function Ie(e,t,n,r,o,a){let{loaderData:i,errors:c}=Me(t,n,r);return o.filter((e=>!e.matches||e.matches.some((e=>e.shouldLoad)))).forEach((t=>{let{key:n,match:r,controller:o}=t;if(o&&o.signal.aborted)return;let i=a[n];if(u(i,"Did not find corresponding fetcher result"),Ve(i)){let t=He(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:i.error}),e.fetchers.delete(n)}else if(Ge(i))u(!1,"Unhandled fetcher revalidation redirect");else{let t=rt(i.data);e.fetchers.set(n,t)}})),{loaderData:i,errors:c}}function Fe(e,t,n,r){let o=Object.entries(t).filter((([,e])=>e!==le)).reduce(((e,[t,n])=>(e[t]=n,e)),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function ze(e){return e?Ve(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function He(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 Be(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 Ue(e,{pathname:t,routeId:n,method:r,type:o,message:a}={}){let i="Unknown Server Error",c="Unknown @remix-run/router error";return 400===e?(i="Bad Request",r&&t&&n?c=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:"invalid-body"===o&&(c="Unable to encode submission body")):403===e?(i="Forbidden",c=`Route "${n}" does not match URL "${t}"`):404===e?(i="Not Found",c=`No route matches URL "${t}"`):405===e&&(i="Method Not Allowed",r&&t&&n?c=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(c=`Invalid request method "${r.toUpperCase()}"`)),new Y(e||500,i,new Error(c),!0)}function We(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(Ge(r))return{key:n,result:r}}}function $e(e){return h({..."string"==typeof e?m(e):e,hash:""})}function qe(e){return Ke(e.result)&&ee.has(e.result.status)}function Ve(e){return"error"===e.type}function Ge(e){return"redirect"===(e&&e.type)}function Ye(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Ke(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Je(e){return Z.has(e.toUpperCase())}function Xe(e){return X.has(e.toUpperCase())}function Qe(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function Ze(e,t){let n="string"==typeof t?m(t).search:t.search;if(e[e.length-1].route.index&&Qe(n||""))return e[e.length-1];let r=B(e);return r[r.length-1]}function et(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=a?{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}:void 0}function tt(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 nt(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 rt(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}var ot=o.createContext(null);ot.displayName="DataRouter";var at=o.createContext(null);at.displayName="DataRouterState";var it=o.createContext(!1);var ct=o.createContext({isTransitioning:!1});ct.displayName="ViewTransition";var st=o.createContext(new Map);st.displayName="Fetchers";var lt=o.createContext(null);lt.displayName="Await";var ut=o.createContext(null);ut.displayName="Navigation";var dt=o.createContext(null);dt.displayName="Location";var ft=o.createContext({outlet:null,matches:[],isDataRoute:!1});ft.displayName="Route";var pt=o.createContext(null);pt.displayName="RouteError";var ht=!0;function mt(){return null!=o.useContext(dt)}function vt(){return u(mt(),"useLocation() may be used only in the context of a <Router> component."),o.useContext(dt).location}var gt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function yt(e){o.useContext(ut).static||o.useLayoutEffect(e)}function bt(){let{isDataRoute:e}=o.useContext(ft);return e?function(){let{router:e}=Tt("useNavigate"),t=_t("useNavigate"),n=o.useRef(!1);return yt((()=>{n.current=!0})),o.useCallback((async(r,o={})=>{d(n.current,gt),n.current&&("number"==typeof r?e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){u(mt(),"useNavigate() may be used only in the context of a <Router> component.");let e=o.useContext(ot),{basename:t,navigator:n}=o.useContext(ut),{matches:r}=o.useContext(ft),{pathname:a}=vt(),i=JSON.stringify(U(r)),c=o.useRef(!1);return yt((()=>{c.current=!0})),o.useCallback(((r,o={})=>{if(d(c.current,gt),!c.current)return;if("number"==typeof r)return void n.go(r);let s=W(r,JSON.parse(i),a,"path"===o.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:$([t,s.pathname])),(o.replace?n.replace:n.push)(s,o.state,o)}),[t,n,i,a,e])}()}o.createContext(null);function wt(){let{matches:e}=o.useContext(ft),t=e[e.length-1];return t?t.params:{}}function xt(e,{relative:t}={}){let{matches:n}=o.useContext(ft),{pathname:r}=vt(),a=JSON.stringify(U(n));return o.useMemo((()=>W(e,JSON.parse(a),r,"path"===t)),[e,a,r,t])}function kt(e,t,n,r){u(mt(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=o.useContext(ut),{matches:i}=o.useContext(ft),c=i[i.length-1],s=c?c.params:{},l=c?c.pathname:"/",f=c?c.pathnameBase:"/",p=c&&c.route;if(ht){let e=p&&p.path||"";It(l,!p||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let h,v=vt();if(t){let e="string"==typeof t?m(t):t;u("/"===f||e.pathname?.startsWith(f),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${e.pathname}" was given in the \`location\` prop.`),h=e}else h=v;let g=h.pathname||"/",y=g;if("/"!==f){let e=f.replace(/^\//,"").split("/");y="/"+g.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=k(e,{pathname:y});ht&&(d(p||null!=b,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),d(null==b||void 0!==b[b.length-1].route.element||void 0!==b[b.length-1].route.Component||void 0!==b[b.length-1].route.lazy,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`));let w=jt(b&&b.map((e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:$([f,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:$([f,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),i,n,r);return t&&w?o.createElement(dt.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...h},navigationType:"POP"}},w):w}function At(){let e=Rt(),t=K(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},c=null;return ht&&(console.error("Error handled by React Router default ErrorBoundary:",e),c=o.createElement(o.Fragment,null,o.createElement("p",null,"💿 Hey developer 👋"),o.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",o.createElement("code",{style:i},"ErrorBoundary")," or"," ",o.createElement("code",{style:i},"errorElement")," prop on your route."))),o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),n?o.createElement("pre",{style:a},n):null,c)}var St=o.createElement(At,null),Ot=class extends o.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?o.createElement(ft.Provider,{value:this.props.routeContext},o.createElement(pt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Et({routeContext:e,match:t,children:n}){let r=o.useContext(ot);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),o.createElement(ft.Provider,{value:e},n)}function jt(e,t=[],n=null,r=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let a=e,i=n?.errors;if(null!=i){let e=a.findIndex((e=>e.route.id&&void 0!==i?.[e.route.id]));u(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,e+1))}let c=!1,s=-1;if(n)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){c=!0,a=s>=0?a.slice(0,s+1):[a[0]];break}}}return a.reduceRight(((e,r,l)=>{let u,d=!1,f=null,p=null;n&&(u=i&&r.route.id?i[r.route.id]:void 0,f=r.route.errorElement||St,c&&(s<0&&0===l?(It("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===l&&(d=!0,p=r.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,l+1)),m=()=>{let t;return t=u?f:d?p:r.route.Component?o.createElement(r.route.Component,null):r.route.element?r.route.element:e,o.createElement(Et,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===l)?o.createElement(Ot,{location:n.location,revalidation:n.revalidation,component:f,error:u,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()}),null)}function Pt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Tt(e){let t=o.useContext(ot);return u(t,Pt(e)),t}function Ct(e){let t=o.useContext(at);return u(t,Pt(e)),t}function _t(e){let t=function(e){let t=o.useContext(ft);return u(t,Pt(e)),t}(e),n=t.matches[t.matches.length-1];return u(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Nt(){let{matches:e,loaderData:t}=Ct("useMatches");return o.useMemo((()=>e.map((e=>S(e,t)))),[e,t])}function Rt(){let e=o.useContext(pt),t=Ct("useRouteError"),n=_t("useRouteError");return void 0!==e?e:t.errors?.[n]}var Dt=0;function Lt(e){let{router:t,basename:n}=Tt("useBlocker"),r=Ct("useBlocker"),[a,i]=o.useState(""),c=o.useCallback((t=>{if("function"!=typeof e)return!!e;if("/"===n)return e(t);let{currentLocation:r,nextLocation:o,historyAction:a}=t;return e({currentLocation:{...r,pathname:z(r.pathname,n)||r.pathname},nextLocation:{...o,pathname:z(o.pathname,n)||o.pathname},historyAction:a})}),[n,e]);return o.useEffect((()=>{let e=String(++Dt);return i(e),()=>t.deleteBlocker(e)}),[t]),o.useEffect((()=>{""!==a&&t.getBlocker(a,c)}),[t,a,c]),a&&r.blockers.has(a)?r.blockers.get(a):oe}var Mt={};function It(e,t,n){t||Mt[e]||(Mt[e]=!0,d(!1,n))}var Ft={};function zt(e,t){e||Ft[t]||(Ft[t]=!0,console.warn(t))}function Ht(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(ht&&e.element&&d(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:o.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(ht&&e.hydrateFallbackElement&&d(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:o.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(ht&&e.errorElement&&d(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:o.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var Bt=["HydrateFallback","hydrateFallbackElement"];function Ut(e,t){return ue({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:s({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,hydrationRouteProperties:Bt,mapRouteProperties:Ht,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation}).initialize()}var Wt=class{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}};function $t({router:e,flushSync:t}){let[n,r]=o.useState(e.state),[a,i]=o.useState(),[c,s]=o.useState({isTransitioning:!1}),[l,u]=o.useState(),[d,f]=o.useState(),[p,h]=o.useState(),m=o.useRef(new Map),v=o.useCallback(((n,{deletedFetchers:a,flushSync:c,viewTransitionOpts:p})=>{n.fetchers.forEach(((e,t)=>{void 0!==e.data&&m.current.set(t,e.data)})),a.forEach((e=>m.current.delete(e))),zt(!1===c||null!=t,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let v=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(zt(null==p||v,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),p&&v){if(t&&c){t((()=>{d&&(l&&l.resolve(),d.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:p.currentLocation,nextLocation:p.nextLocation})}));let o=e.window.document.startViewTransition((()=>{t((()=>r(n)))}));return o.finished.finally((()=>{t((()=>{u(void 0),f(void 0),i(void 0),s({isTransitioning:!1})}))})),void t((()=>f(o)))}d?(l&&l.resolve(),d.skipTransition(),h({state:n,currentLocation:p.currentLocation,nextLocation:p.nextLocation})):(i(n),s({isTransitioning:!0,flushSync:!1,currentLocation:p.currentLocation,nextLocation:p.nextLocation}))}else t&&c?t((()=>r(n))):o.startTransition((()=>r(n)))}),[e.window,t,d,l]);o.useLayoutEffect((()=>e.subscribe(v)),[e,v]),o.useEffect((()=>{c.isTransitioning&&!c.flushSync&&u(new Wt)}),[c]),o.useEffect((()=>{if(l&&a&&e.window){let t=a,n=l.promise,c=e.window.document.startViewTransition((async()=>{o.startTransition((()=>r(t))),await n}));c.finished.finally((()=>{u(void 0),f(void 0),i(void 0),s({isTransitioning:!1})})),f(c)}}),[a,l,e.window]),o.useEffect((()=>{l&&a&&n.location.key===a.location.key&&l.resolve()}),[l,d,n.location,a]),o.useEffect((()=>{!c.isTransitioning&&p&&(i(p.state),s({isTransitioning:!0,flushSync:!1,currentLocation:p.currentLocation,nextLocation:p.nextLocation}),h(void 0))}),[c.isTransitioning,p]);let g=o.useMemo((()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})})),[e]),y=e.basename||"/",b=o.useMemo((()=>({router:e,navigator:g,static:!1,basename:y})),[e,g,y]);return o.createElement(o.Fragment,null,o.createElement(ot.Provider,{value:b},o.createElement(at.Provider,{value:n},o.createElement(st.Provider,{value:m.current},o.createElement(ct.Provider,{value:c},o.createElement(Yt,{basename:y,location:n.location,navigationType:n.historyAction,navigator:g},o.createElement(qt,{routes:e.routes,future:e.future,state:n})))))),null)}var qt=o.memo((function({routes:e,future:t,state:n}){return kt(e,void 0,n,t)}));function Vt({to:e,replace:t,state:n,relative:r}){u(mt(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=o.useContext(ut);d(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=o.useContext(ft),{pathname:c}=vt(),s=bt(),l=W(e,U(i),c,"path"===r),f=JSON.stringify(l);return o.useEffect((()=>{s(JSON.parse(f),{replace:t,state:n,relative:r})}),[s,f,r,t,n]),null}function Gt(e){u(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Yt({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1}){u(!mt(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),s=o.useMemo((()=>({basename:c,navigator:a,static:i,future:{}})),[c,a,i]);"string"==typeof n&&(n=m(n));let{pathname:l="/",search:f="",hash:p="",state:h=null,key:v="default"}=n,g=o.useMemo((()=>{let e=z(l,c);return null==e?null:{location:{pathname:e,search:f,hash:p,state:h,key:v},navigationType:r}}),[c,l,f,p,h,v,r]);return d(null!=g,`<Router basename="${c}"> is not able to match the URL "${l}${f}${p}" because it does not start with the basename, so the <Router> won't render anything.`),null==g?null:o.createElement(ut.Provider,{value:s},o.createElement(dt.Provider,{children:t,value:g}))}function Kt({children:e,location:t}){return kt(Jt(e),t)}o.Component;function Jt(e,t=[]){let n=[];return o.Children.forEach(e,((e,r)=>{if(!o.isValidElement(e))return;let a=[...t,r];if(e.type===o.Fragment)return void n.push.apply(n,Jt(e.props.children,a));u(e.type===Gt,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),u(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={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,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=Jt(e.props.children,a)),n.push(i)})),n}var Xt="get",Qt="application/x-www-form-urlencoded";function Zt(e){return null!=e&&"string"==typeof e.tagName}function en(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}var tn=null;var nn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function rn(e){return null==e||nn.has(e)?e:(d(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Qt}"`),null)}function on(e,t){let n,r,o,a,i;if(function(e){return Zt(e)&&"form"===e.tagName.toLowerCase()}(e)){let i=e.getAttribute("action");r=i?z(i,t):null,n=e.getAttribute("method")||Xt,o=rn(e.getAttribute("enctype"))||Qt,a=new FormData(e)}else if(function(e){return Zt(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Zt(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||i.getAttribute("action");if(r=c?z(c,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||Xt,o=rn(e.getAttribute("formenctype"))||rn(i.getAttribute("enctype"))||Qt,a=new FormData(i,e),!function(){if(null===tn)try{new FormData(document.createElement("form"),0),tn=!1}catch(e){tn=!0}return tn}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";a.append(`${e}x`,"0"),a.append(`${e}y`,"0")}else t&&a.append(t,r)}}else{if(Zt(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Xt,r=null,o=Qt,i=e}return a&&"text/plain"===o&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis;function an(e){return{__html:e}}function cn(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function sn(e,t,n){let r="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===r.pathname?r.pathname=`_root.${n}`:t&&"/"===z(r.pathname,t)?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function ln(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}function un(e){return null!=e&&"string"==typeof e.page}function dn(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function fn(e,t,n,r,o,a){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,c=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===a?t.filter(((e,t)=>i(e,t)||c(e,t))):"data"===a?t.filter(((t,a)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(i(t,a)||c(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function pn(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o})).flat(1),[...new Set(r)];var r}function hn(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!un(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let a=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(a)||(n.add(a),e.push({key:a,link:o})),e}),[])}function mn(e,t){return"lazy"===e.mode&&!0===t}function vn(){let e=o.useContext(ot);return cn(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function gn(){let e=o.useContext(at);return cn(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var yn=o.createContext(void 0);function bn(){let e=o.useContext(yn);return cn(e,"You must render this element inside a <HydratedRouter> element"),e}function wn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function xn(e,t,n){if(n&&!On)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}yn.displayName="FrameworkContext";function kn({page:e,...t}){let{router:n}=vn(),r=o.useMemo((()=>k(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?o.createElement(Sn,{page:e,matches:r,...t}):null}function An(e){let{manifest:t,routeModules:n}=bn(),[r,a]=o.useState([]);return o.useEffect((()=>{let r=!1;return async function(e,t,n){return hn((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await ln(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(dn).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(e,t,n).then((e=>{r||a(e)})),()=>{r=!0}}),[e,t,n]),r}function Sn({page:e,matches:t,...n}){let r=vt(),{manifest:a,routeModules:i}=bn(),{basename:c}=vn(),{loaderData:s,matches:l}=gn(),u=o.useMemo((()=>fn(e,t,l,a,r,"data")),[e,t,l,a,r]),d=o.useMemo((()=>fn(e,t,l,a,r,"assets")),[e,t,l,a,r]),f=o.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,o=!1;if(t.forEach((e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some((t=>t.route.id===e.route.id))&&e.route.id in s&&i[e.route.id]?.shouldRevalidate||t.hasClientLoader?o=!0:n.add(e.route.id))})),0===n.size)return[];let l=sn(e,c,"data");return o&&n.size>0&&l.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[l.pathname+l.search]}),[c,s,r,a,u,t,e,i]),p=o.useMemo((()=>pn(d,a)),[d,a]),h=An(d);return o.createElement(o.Fragment,null,f.map((e=>o.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),p.map((e=>o.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),h.map((({key:e,link:t})=>o.createElement("link",{key:e,nonce:n.nonce,...t}))))}var On=!1;function En(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:a,routeDiscovery:i,ssr:c}=bn(),{router:s,static:l,staticContext:u}=vn(),{matches:d}=gn(),f=o.useContext(it),p=mn(i,c);a&&(a.didRenderScripts=!0);let h=xn(d,null,r);o.useEffect((()=>{0}),[]);let m=o.useMemo((()=>{if(f)return null;let r=u?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",a=l?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${p?"":`import ${JSON.stringify(t.url)}`};\n${h.map(((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];cn(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:a,clientLoaderModule:i,clientMiddlewareModule:c,hydrateFallbackModule:s,module:l}=o,u=[...a?[{module:a,varName:`${r}_clientAction`}]:[],...i?[{module:i,varName:`${r}_clientLoader`}]:[],...c?[{module:c,varName:`${r}_clientMiddleware`}]:[],...s?[{module:s,varName:`${r}_HydrateFallback`}]:[],{module:l,varName:`${r}_main`}];return 1===u.length?`import * as ${r} from ${JSON.stringify(l)};`:[u.map((e=>`import * as ${e.varName} from "${e.module}";`)).join("\n"),`const ${r} = {${u.map((e=>`...${e.varName}`)).join(",")}};`].join("\n")})).join("\n")}\n ${p?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},n){let r=new Set(n.state.matches.map((e=>e.route.id))),o=n.state.location.pathname.split("/").filter(Boolean),a=["/"];for(o.pop();o.length>0;)a.push(`/${o.join("/")}`),o.pop();a.forEach((e=>{let t=k(n.routes,e,n.basename);t&&t.forEach((e=>r.add(e.route.id)))}));let i=[...r].reduce(((e,n)=>Object.assign(e,{[n]:t.routes[n]})),{});return{...t,routes:i,sri:!!e||void 0}}(t,s),null,2)};`:""}\n window.__reactRouterRouteModules = {${h.map(((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`)).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return o.createElement(o.Fragment,null,o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:an(r),type:void 0}),o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:an(a),type:"module",async:!0}))}),[]),v=On||f?[]:function(e){return[...new Set(e)]}(t.entry.imports.concat(pn(h,t,{includeHydrateFallback:!0}))),g="object"==typeof t.sri?t.sri:{};return zt(!f,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),On||f?null:o.createElement(o.Fragment,null,"object"==typeof t.sri?o.createElement("script",{"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:g})}}):null,p?null:o.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:g[t.url],suppressHydrationWarning:!0}),o.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:g[t.entry.module],suppressHydrationWarning:!0}),v.map((t=>o.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:g[t],suppressHydrationWarning:!0}))),m)}function jn(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}o.Component;function Pn({error:e,isOutsideRemixApp:t}){console.error(e);let n,r=o.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(K(e))return o.createElement(Tn,{title:"Unhandled Thrown Response!"},o.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),ht?r:null);if(e instanceof Error)0;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);new Error(t)}return o.createElement(Tn,{title:"Application Error!",isOutsideRemixApp:t},o.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),o.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},n.stack),r)}function Tn({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:a}=bn();return a.root?.Layout&&!n?r:o.createElement("html",{lang:"en"},o.createElement("head",null,o.createElement("meta",{charSet:"utf-8"}),o.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),o.createElement("title",null,e)),o.createElement("body",null,o.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r,t?o.createElement(En,null):null)))}var Cn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Cn&&(window.__reactRouterVersion="7.8.0")}catch(e){}function _n(e,t){return ue({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:l({window:t?.window}),hydrationData:t?.hydrationData||Nn(),routes:e,mapRouteProperties:Ht,hydrationRouteProperties:Bt,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function Nn(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Rn(e.errors)}),e}function Rn(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new Y(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let o=new t(r.message);o.stack="",n[e]=o}catch(e){}}if(null==n[e]){let t=new Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}var Dn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ln=o.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:a,replace:i,state:c,target:s,to:l,preventScrollReset:f,viewTransition:p,...m},v){let g,{basename:y}=o.useContext(ut),b="string"==typeof l&&Dn.test(l),w=!1;if("string"==typeof l&&b&&(g=l,Cn))try{let e=new URL(window.location.href),t=l.startsWith("//")?new URL(e.protocol+l):new URL(l),n=z(t.pathname,y);t.origin===e.origin&&null!=n?l=n+t.search+t.hash:w=!0}catch(e){d(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=function(e,{relative:t}={}){u(mt(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=o.useContext(ut),{hash:a,pathname:i,search:c}=xt(e,{relative:t}),s=i;return"/"!==n&&(s="/"===i?n:$([n,i])),r.createHref({pathname:s,search:c,hash:a})}(l,{relative:r}),[k,A,S]=function(e,t){let n=o.useContext(yn),[r,a]=o.useState(!1),[i,c]=o.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,p=o.useRef(null);o.useEffect((()=>{if("render"===e&&c(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{c(e.isIntersecting)}))}),{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}}),[e]),o.useEffect((()=>{if(r){let e=setTimeout((()=>{c(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let h=()=>{a(!0)},m=()=>{a(!1),c(!1)};return n?"intent"!==e?[i,p,{}]:[i,p,{onFocus:wn(s,h),onBlur:wn(l,m),onMouseEnter:wn(u,h),onMouseLeave:wn(d,m),onTouchStart:wn(f,h)}]:[!1,p,{}]}(n,m),O=function(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:i,viewTransition:c}={}){let s=bt(),l=vt(),u=xt(e,{relative:i});return o.useCallback((o=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(o,t)){o.preventDefault();let t=void 0!==n?n:h(l)===h(u);s(e,{replace:t,state:r,preventScrollReset:a,relative:i,viewTransition:c})}}),[l,s,u,n,r,t,e,a,i,c])}(l,{replace:i,state:c,target:s,preventScrollReset:f,relative:r,viewTransition:p});let E=o.createElement("a",{...m,...S,href:g||x,onClick:w||a?e:function(t){e&&e(t),t.defaultPrevented||O(t)},ref:jn(v,A),target:s,"data-discover":b||"render"!==t?void 0:"true"});return k&&!b?o.createElement(o.Fragment,null,E,o.createElement(kn,{page:x})):E}));Ln.displayName="Link",o.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:a,to:i,viewTransition:c,children:s,...l},d){let f=xt(i,{relative:l.relative}),p=vt(),h=o.useContext(at),{navigator:m,basename:v}=o.useContext(ut),g=null!=h&&function(e,{relative:t}={}){let n=o.useContext(ct);u(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=zn("useViewTransitionState"),a=xt(e,{relative:t});if(!n.isTransitioning)return!1;let i=z(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=z(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=M(a.pathname,c)||null!=M(a.pathname,i)}(f)&&!0===c,y=m.encodeLocation?m.encodeLocation(f).pathname:f.pathname,b=p.pathname,w=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&v&&(w=z(w,v)||w);const x="/"!==y&&y.endsWith("/")?y.length-1:y.length;let k,A=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(x),S=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),O={isActive:A,isPending:S,isTransitioning:g},E=A?e:void 0;k="function"==typeof n?n(O):[n,A?"active":null,S?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let j="function"==typeof a?a(O):a;return o.createElement(Ln,{...l,"aria-current":E,className:k,ref:d,style:j,to:i,viewTransition:c},"function"==typeof s?s(O):s)})).displayName="NavLink";var Mn=o.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:c=Xt,action:s,onSubmit:l,relative:d,preventScrollReset:f,viewTransition:p,...m},v)=>{let g=$n(),y=function(e,{relative:t}={}){let{basename:n}=o.useContext(ut),r=o.useContext(ft);u(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...xt(e||".",{relative:t})},c=vt();if(null==e){i.search=c.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();i.search=n?`?${n}`:""}}e&&"."!==e||!a.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(i.pathname="/"===i.pathname?n:$([n,i.pathname]));return h(i)}(s,{relative:d}),b="get"===c.toLowerCase()?"get":"post",w="string"==typeof s&&Dn.test(s);return o.createElement("form",{ref:v,method:b,action:y,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,o=r?.getAttribute("formmethod")||c;g(r||e.currentTarget,{fetcherKey:t,method:o,navigate:n,replace:a,state:i,relative:d,preventScrollReset:f,viewTransition:p})},...m,"data-discover":w||"render"!==e?void 0:"true"})}));function In({getKey:e,storageKey:t,...n}){let r=o.useContext(yn),{basename:a}=o.useContext(ut),i=vt(),c=Nt();!function({getKey:e,storageKey:t}={}){let{router:n}=zn("useScrollRestoration"),{restoreScrollPosition:r,preventScrollReset:a}=Hn("useScrollRestoration"),{basename:i}=o.useContext(ut),c=vt(),s=Nt(),l=Ct("useNavigation").navigation;o.useEffect((()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"})),[]),function(e,t){let{capture:n}=t||{};o.useEffect((()=>{let t=null!=n?{capture:n}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}}),[e,n])}(o.useCallback((()=>{if("idle"===l.state){let t=Gn(c,s,i,e);Vn[t]=window.scrollY}try{sessionStorage.setItem(t||qn,JSON.stringify(Vn))}catch(e){d(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration="auto"}),[l.state,e,i,c,s,t])),"undefined"!=typeof document&&(o.useLayoutEffect((()=>{try{let e=sessionStorage.getItem(t||qn);e&&(Vn=JSON.parse(e))}catch(e){}}),[t]),o.useLayoutEffect((()=>{let t=n?.enableScrollRestoration(Vn,(()=>window.scrollY),e?(t,n)=>Gn(t,n,i,e):void 0);return()=>t&&t()}),[n,i,e]),o.useLayoutEffect((()=>{if(!1!==r)if("number"!=typeof r){try{if(c.hash){let e=document.getElementById(decodeURIComponent(c.hash.slice(1)));if(e)return void e.scrollIntoView()}}catch{d(!1,`"${c.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}!0!==a&&window.scrollTo(0,0)}else window.scrollTo(0,r)}),[c,r,a]))}({getKey:e,storageKey:t});let s=o.useMemo((()=>{if(!r||!e)return null;let t=Gn(i,c,a,e);return t!==i.key?t:null}),[]);if(!r||r.isSpaMode)return null;let l=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},"")}try{let n=JSON.parse(sessionStorage.getItem(e)||"{}")[t||window.history.state.key];"number"==typeof n&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return o.createElement("script",{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${l})(${JSON.stringify(t||qn)}, ${JSON.stringify(s)})`}})}function Fn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function zn(e){let t=o.useContext(ot);return u(t,Fn(e)),t}function Hn(e){let t=o.useContext(at);return u(t,Fn(e)),t}function Bn(e){d("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=o.useRef(en(e)),n=o.useRef(!1),r=vt(),a=o.useMemo((()=>function(e,t){let n=en(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),i=bt(),c=o.useCallback(((e,t)=>{const r=en("function"==typeof e?e(new URLSearchParams(a)):e);n.current=!0,i("?"+r,t)}),[i,a]);return[a,c]}Mn.displayName="Form",In.displayName="ScrollRestoration";var Un=0,Wn=()=>`__${String(++Un)}__`;function $n(){let{router:e}=zn("useSubmit"),{basename:t}=o.useContext(ut),n=_t("useRouteId");return o.useCallback((async(r,o={})=>{let{action:a,method:i,encType:c,formData:s,body:l}=on(r,t);if(!1===o.navigate){let t=o.fetcherKey||Wn();await e.fetch(t,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:s,body:l,formMethod:o.method||i,formEncType:o.encType||c,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:s,body:l,formMethod:o.method||i,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})}),[e,t,n])}var qn="react-router-scroll-positions",Vn={};function Gn(e,t,n,r){let o=null;return r&&(o=r("/"!==n?{...e,pathname:z(e.pathname,n)||e.pathname}:e,t)),null==o&&(o=e.key),o}},31357:(e,t,n)=>{"use strict";n.d(t,{No:()=>G,W0:()=>q,a:()=>B,uq:()=>V});var r=n(41528),o=n(1481),a=n(96331),i=n(52107);var c=function(e){function t(t){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this,(0,o.A)(n)}return(0,a.A)(t,e),t}((0,i.A)(Error));function s(e,t){return e.substr(-t.length)===t}var l=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function u(e){return"string"!=typeof e?e:e.match(l)?parseFloat(e):e}var d=function(e){return function(t,n){void 0===n&&(n="16px");var r=t,o=n;if("string"==typeof t){if(!s(t,"px"))throw new c(69,e,t);r=u(t)}if("string"==typeof n){if(!s(n,"px"))throw new c(70,e,n);o=u(n)}if("string"==typeof r)throw new c(71,t,e);if("string"==typeof o)throw new c(72,n,e);return""+r/o+e}};d("em");d("rem");function f(e){return Math.round(255*e)}function p(e,t,n){return f(e)+","+f(t)+","+f(n)}function h(e,t,n,r){if(void 0===r&&(r=p),0===t)return r(n,n,n);var o=(e%360+360)%360/60,a=(1-Math.abs(2*n-1))*t,i=a*(1-Math.abs(o%2-1)),c=0,s=0,l=0;o>=0&&o<1?(c=a,s=i):o>=1&&o<2?(c=i,s=a):o>=2&&o<3?(s=a,l=i):o>=3&&o<4?(s=i,l=a):o>=4&&o<5?(c=i,l=a):o>=5&&o<6&&(c=a,l=i);var u=n-a/2;return r(c+u,s+u,l+u)}var m={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var v=/^#[a-fA-F0-9]{6}$/,g=/^#[a-fA-F0-9]{8}$/,y=/^#[a-fA-F0-9]{3}$/,b=/^#[a-fA-F0-9]{4}$/,w=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,x=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,k=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,A=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function S(e){if("string"!=typeof e)throw new c(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return m[t]?"#"+m[t]:e}(e);if(t.match(v))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(g)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(y))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(b)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=w.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=x.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=k.exec(t);if(i){var s="rgb("+h(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",l=w.exec(s);if(!l)throw new c(4,t,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var u=A.exec(t.substring(0,50));if(u){var d="rgb("+h(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",f=w.exec(d);if(!f)throw new c(4,t,d);return{red:parseInt(""+f[1],10),green:parseInt(""+f[2],10),blue:parseInt(""+f[3],10),alpha:parseFloat(""+u[4])>1?parseFloat(""+u[4])/100:parseFloat(""+u[4])}}throw new c(5)}function O(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,a=Math.max(n,r,o),i=Math.min(n,r,o),c=(a+i)/2;if(a===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:c,alpha:e.alpha}:{hue:0,saturation:0,lightness:c};var s=a-i,l=c>.5?s/(2-a-i):s/(a+i);switch(a){case n:t=(r-o)/s+(r<o?6:0);break;case r:t=(o-n)/s+2;break;default:t=(n-r)/s+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:l,lightness:c,alpha:e.alpha}:{hue:t,saturation:l,lightness:c}}(S(e))}var E=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function j(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function P(e){return j(Math.round(255*e))}function T(e,t,n){return E("#"+P(e)+P(t)+P(n))}function C(e,t,n){return h(e,t,n,T)}function _(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return C(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return C(e.hue,e.saturation,e.lightness);throw new c(1)}function N(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?C(e,t,n):"rgba("+h(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?C(e.hue,e.saturation,e.lightness):"rgba("+h(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new c(2)}function R(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return E("#"+j(e)+j(t)+j(n));if("object"==typeof e&&void 0===t&&void 0===n)return E("#"+j(e.red)+j(e.green)+j(e.blue));throw new c(6)}function D(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=S(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?R(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?R(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new c(7)}function L(e){if("object"!=typeof e)throw new c(8);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return D(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return R(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return N(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return _(e);throw new c(8)}function M(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):M(e,t,r)}}function I(e){return M(e,e.length,[])}I((function(e,t){if("transparent"===t)return t;var n=O(t);return L((0,r.A)({},n,{hue:n.hue+parseFloat(e)}))}));function F(e,t,n){return Math.max(e,Math.min(t,n))}I((function(e,t){if("transparent"===t)return t;var n=O(t);return L((0,r.A)({},n,{lightness:F(0,1,n.lightness-parseFloat(e))}))}));I((function(e,t){if("transparent"===t)return t;var n=O(t);return L((0,r.A)({},n,{saturation:F(0,1,n.saturation-parseFloat(e))}))}));function z(e){if("transparent"===e)return 0;var t=S(e),n=Object.keys(t).map((function(e){var n=t[e]/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)})),r=n[0],o=n[1],a=n[2];return parseFloat((.2126*r+.7152*o+.0722*a).toFixed(3))}function H(e,t){var n=z(e),r=z(t);return parseFloat((n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)).toFixed(2))}var B=I((function(e,t){if("transparent"===t)return t;var n=O(t);return L((0,r.A)({},n,{lightness:F(0,1,n.lightness+parseFloat(e))}))}));var U=I((function(e,t,n){if("transparent"===t)return n;if("transparent"===n)return t;if(0===e)return n;var o=S(t),a=(0,r.A)({},o,{alpha:"number"==typeof o.alpha?o.alpha:1}),i=S(n),c=(0,r.A)({},i,{alpha:"number"==typeof i.alpha?i.alpha:1}),s=a.alpha-c.alpha,l=2*parseFloat(e)-1,u=((l*s==-1?l:l+s)/(1+l*s)+1)/2,d=1-u;return D({red:Math.floor(a.red*u+c.red*d),green:Math.floor(a.green*u+c.green*d),blue:Math.floor(a.blue*u+c.blue*d),alpha:a.alpha*parseFloat(e)+c.alpha*(1-parseFloat(e))})}));I((function(e,t){if("transparent"===t)return t;var n=S(t),o="number"==typeof n.alpha?n.alpha:1;return D((0,r.A)({},n,{alpha:F(0,1,(100*o+100*parseFloat(e))/100)}))}));var W="#000",$="#fff";function q(e,t,n,r){void 0===t&&(t=W),void 0===n&&(n=$),void 0===r&&(r=!0);var o=z(e)>.179,a=o?t:n;return!r||H(e,a)>=4.5?a:o?W:$}I((function(e,t){if("transparent"===t)return t;var n=O(t);return L((0,r.A)({},n,{saturation:F(0,1,n.saturation+parseFloat(e))}))}));I((function(e,t){return"transparent"===t?t:L((0,r.A)({},O(t),{hue:parseFloat(e)}))}));I((function(e,t){return"transparent"===t?t:L((0,r.A)({},O(t),{lightness:parseFloat(e)}))}));I((function(e,t){return"transparent"===t?t:L((0,r.A)({},O(t),{saturation:parseFloat(e)}))}));I((function(e,t){return"transparent"===t?t:U(parseFloat(e),"rgb(0, 0, 0)",t)}));var V=I((function(e,t){return"transparent"===t?t:U(parseFloat(e),"rgb(255, 255, 255)",t)}));var G=I((function(e,t){if("transparent"===t)return t;var n=S(t),o="number"==typeof n.alpha?n.alpha:1;return D((0,r.A)({},n,{alpha:F(0,1,+(100*o-100*parseFloat(e)).toFixed(2)/100)}))}))},31380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},31401:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});var r={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]}},31444:(e,t,n)=>{var r=n(55765);e.exports=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?r(e,void 0,t):[]}},31456:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});const r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},o=(e,t,n,o)=>r[e]},31540:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(26396),o=n.n(r),a=n(22056),i=n.n(a),c=n(4883),s=n.n(c),l=n(9075),u=n(74848);function d(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?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"onChange";return s().forwardRef((function(r,a){var s=r.value,d=(0,c.useState)(s),p=i()(d,2),h=p[0],m=p[1],v=(0,l.A)(h,t),g=i()(v,2),y=g[0],b=g[1],w=(0,c.useRef)(s),x=r[n];return(0,c.useEffect)((function(){h!==s&&h===y&&(m(s),w.current=s,b(s))}),[s]),(0,c.useEffect)((function(){x&&w.current!==y&&(x(y),w.current=y)}),[y,x]),(0,u.jsx)(e,f(f(f({},r),{},{value:h},o()({},n,m)),{},{ref:a}))}))}},31601:e=>{"use strict";e.exports=function(e){return e[1]}},31615:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var r=n(31401);function o(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var c=1+(1&i),s=i<2?1:3+(i>>1),l=a(t);for("H"!=l&&"k"!=l||(s=0);s-- >0;)n+="a";for(;c-- >0;)n=l+n}else n+="J"===o?"H":o}return n}function a(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,o=e.language;return"root"!==o&&(n=e.maximize().region),(r.c[n||""]||r.c[o||""]||r.c["".concat(o,"-001")]||r.c["001"])[0]}},31695:(e,t,n)=>{"use strict";n.d(t,{mb:()=>u,pJ:()=>l});var r,o,a=n(40622),i=n(4883),c=n(6442);!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(r||(r={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(o||(o={}));var s=function(e){var t=(0,c.A)(),n=e.value,r=e.children,o=(0,a.Tt)(e,["value","children"]);return r(t.formatNumberToParts(n,o))};s.displayName="FormattedNumberParts";function l(e){var t=function(t){var n=(0,c.A)(),r=t.value,o=t.children,i=(0,a.Tt)(t,["value","children"]),s="string"==typeof r?new Date(r||0):r;return o("formatDate"===e?n.formatDateToParts(s,i):n.formatTimeToParts(s,i))};return t.displayName=o[e],t}function u(e){var t=function(t){var n=(0,c.A)(),r=t.value,o=t.children,s=(0,a.Tt)(t,["value","children"]),l=n[e](r,s);if("function"==typeof o)return o(l);var u=n.textComponent||i.Fragment;return i.createElement(u,null,l)};return t.displayName=r[e],t}s.displayName="FormattedNumberParts"},31769:(e,t,n)=>{var r=n(56449),o=n(28586),a=n(61802),i=n(13222);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:a(i(e))}},31781:(e,t,n)=>{"use strict";n.d(t,{Gt:()=>k,M$:()=>O,r9:()=>A});var r=n(26396),o=n.n(r),a=n(92207),i=n.n(a),c=n(90167),s=n(38159),l=n(79253),u=n(18562),d=n(61402),f=n(72942),p=n(52259),h=n(30355),m=n(38726);function v(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 g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y=i().mark(x),b=i().mark(S),w=function(e){var t=Object.keys(e||{}).filter((function(t){return!!e[t]})).sort((function(e,t){return e.localeCompare(t)})).map((function(t){return Array.isArray(e[t])?e[t].map((function(e){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e))})).join("&"):"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))})).join("&");return t?"?".concat(t):""};function x(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e instanceof h.A)){t.next=2;break}return t.next=1,(0,c.yJ)(f.A.toaster({type:"info",title:"client.common.information",body:e.message}));case 1:t.next=3;break;case 2:throw e;case 3:case"end":return t.stop()}}),y)}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i().mark((function n(){var r,o,a,s,l,u;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,c.T1)(S,t);case 1:return n.next=2,(0,c.T1)(E,e,t);case 2:return r=n.sent,n.next=3,(0,c.T1)(j,t);case 3:if(o=n.sent,a=o.addBlockingInfoAction,s=o.removeBlockingInfoAction,n.prev=4,!a){n.next=5;break}return n.next=5,(0,c.yJ)(a);case 5:return n.next=6,(0,c.T1)(m.w,r.url,r.options,t.acceptedErrorCodes,t.acceptedStatusCodes);case 6:if(l=n.sent,!s){n.next=7;break}return n.next=7,(0,c.yJ)(s);case 7:return n.next=8,(0,c.T1)(p.OO,l,r,t,o);case 8:return l=n.sent,n.abrupt("return",l);case 9:if(n.prev=9,u=n.catch(4),!s){n.next=10;break}return n.next=10,(0,c.yJ)(s);case 10:return n.next=11,x(u);case 11:return n.abrupt("return",{});case 12:case"end":return n.stop()}}),n,null,[[4,9]])}))()}function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i().mark((function n(){var r,o;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,c.T1)(S,t);case 1:return n.next=2,(0,c.T1)(E,e,t);case 2:return r=n.sent,n.prev=3,n.next=4,(0,c.T1)(m.A,r.url,r.options,t.acceptedErrorCodes,t.acceptedStatusCodes);case 4:return n.abrupt("return",n.sent);case 5:return n.prev=5,o=n.catch(3),n.next=6,x(o);case 6:return n.abrupt("return",{});case 7:case"end":return n.stop()}}),n,null,[[3,5]])}))()}function S(e){var t,n;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(null!==(t=e.queryParams)&&void 0!==t&&t.locale){r.next=2;break}return r.next=1,(0,c.Lt)(d.A.localeSelector);case 1:n=r.sent,e.queryParams=g(g({},e.queryParams),{},{locale:n});case 2:return r.abrupt("return",e);case 3:case"end":return r.stop()}}),b)}var O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=E(e,t);return(0,m.w)(n.url,n.options,t.acceptedErrorCodes,t.acceptedStatusCodes)};function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.queryParams,r=void 0===n?{}:n,o=t.method,a=void 0===o?"GET":o,i=t.backendUrl,c=void 0===i?s.A.getBackendUrl():i,u=l.A.prepareHeaders(t),d=t.body;!d||d instanceof FormData||"string"==typeof d||(d=JSON.stringify(d));var f=g({method:a,headers:u,credentials:"include"},d?{body:d}:{}),p=s.A.getWidgetConfigKey(),h=g(g({},r),r._widget_key?{}:{_widget_key:p}),m=w(h),v=function(e,t){return t.startsWith("/")&&(t=t.substring(1)),t.startsWith("http")||t.startsWith("nice2")?l.A.prepareUrl(e,t):"".concat(e,"/nice2/rest/").concat(t)}(c,e);return{url:"".concat(v).concat(m),options:f}}function j(e){var t=e.blockingInfoTitle;return i().mark((function e(){var n,r,o,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=2;break}return e.next=1,(0,c.T1)(u.A);case 1:return n=e.sent,r=t,o=f.A.blockingInfo(n,r),a=f.A.removeBlockingInfo(n),e.abrupt("return",{addBlockingInfoAction:o,removeBlockingInfoAction:a});case 2:return e.abrupt("return",{});case 3:case"end":return e.stop()}}),e)}))()}},31800:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},31885:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}()},32082:(e,t,n)=>{"use strict";n.d(t,{_:()=>v});var r=n(71104),o=n(84543),a=n(51898),i=n(97084),c=n(84485),s=n(51819),l=n(87758);const u="midnight",d="noon",f="morning",p="afternoon",h="evening",m="night",v={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return l.C.y(e,t)},Y:function(e,t,n,r){const o=(0,c.h)(e,r),a=o>0?o:1-o;if("YY"===t){const e=a%100;return(0,s.F)(e,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):(0,s.F)(a,t.length)},R:function(e,t){const n=(0,a.p)(e);return(0,s.F)(n,t.length)},u:function(e,t){const n=e.getFullYear();return(0,s.F)(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,s.F)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,s.F)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return l.C.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return(0,s.F)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=(0,i.N)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):(0,s.F)(o,t.length)},I:function(e,t,n){const r=(0,o.s)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,s.F)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):l.C.d(e,t)},D:function(e,t,n){const o=(0,r.F)(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):(0,s.F)(o,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return(0,s.F)(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return(0,s.F)(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return(0,s.F)(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?d:0===r?u:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?h:r>=12?p:r>=4?f:m,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return l.C.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):l.C.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,s.F)(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,s.F)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):l.C.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):l.C.s(e,t)},S:function(e,t){return l.C.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return y(r);case"XXXX":case"XX":return b(r);default:return b(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return y(r);case"xxxx":case"xx":return b(r);default:return b(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+g(r,":");default:return"GMT"+b(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+g(r,":");default:return"GMT"+b(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return(0,s.F)(r,t.length)},T:function(e,t,n){return(0,s.F)(+e,t.length)}};function g(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+(0,s.F)(a,2)}function y(e,t){if(e%60==0){return(e>0?"-":"+")+(0,s.F)(Math.abs(e)/60,2)}return b(e,t)}function b(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+(0,s.F)(Math.trunc(r/60),2)+t+(0,s.F)(r%60,2)}},32180:(e,t,n)=>{"use strict";n.d(t,{Y:()=>o});var r=n(57883);const o={ordinalNumber:(0,n(20337).K)({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e)}),era:(0,r.A)({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:(0,r.A)({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,r.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,r.A)({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,r.A)({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})}},32224:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(19609);const o={millisecondsToDuration:r.ss,formatDuration:r.a3,getDateFnsLocale:r.Me,getLocalizedDateFormat:r.Rj,getLocalizedDateTimeFormat:r.ax,getLocalizedDateFormatWithoutPunctuation:r.zQ,getLocalizedDateTimeFormatWithoutPunctuation:r.yX,getTimeZone:r.O,useTwoDigitYear:r.EQ,setCurrentTime:r.hW,selectUnit:r.xb}},32370:(e,t,n)=>{"use strict";n.d(t,{f:()=>a});var r=n(80658),o=n(29407);function a(e){return!(!(0,r.$)(e)&&"number"!=typeof e||isNaN(+(0,o.a)(e)))}},32378:(e,t,n)=>{"use strict";n.d(t,{e:()=>h,r:()=>a});var r=n(72319),o=n(11511);function a(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(o.R).filter((function(e){return e.length>0}));n<r.length;n++){var a=r[n].split("/");if(0===a.length)throw new Error("Invalid number skeleton");for(var i=a[0],c=a.slice(1),s=0,l=c;s<l.length;s++){if(0===l[s].length)throw new Error("Invalid number skeleton")}t.push({stem:i,options:c})}return t}var i=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,c=/^(@+)?(\+|#+)?[rs]?$/g,s=/(\*)(0+)|(#+)(0+)|(0+)/g,l=/^(0+)$/;function u(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(c,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function d(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function f(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!l.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function p(e){var t=d(e);return t||{}}function h(e){for(var t={},n=0,o=e;n<o.length;n++){var a=o[n];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=a.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=(0,r.Cl)((0,r.Cl)((0,r.Cl)({},t),{notation:"scientific"}),a.options.reduce((function(e,t){return(0,r.Cl)((0,r.Cl)({},e),p(t))}),{}));continue;case"engineering":t=(0,r.Cl)((0,r.Cl)((0,r.Cl)({},t),{notation:"engineering"}),a.options.reduce((function(e,t){return(0,r.Cl)((0,r.Cl)({},e),p(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(a.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(s,(function(e,n,r,o,a,i){if(n)t.minimumIntegerDigits=r.length;else{if(o&&a)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(l.test(a.stem))t.minimumIntegerDigits=a.stem.length;else if(i.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(i,(function(e,n,r,o,a,i){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:a&&i?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+i.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var h=a.options[0];"w"===h?t=(0,r.Cl)((0,r.Cl)({},t),{trailingZeroDisplay:"stripIfInteger"}):h&&(t=(0,r.Cl)((0,r.Cl)({},t),u(h)))}else if(c.test(a.stem))t=(0,r.Cl)((0,r.Cl)({},t),u(a.stem));else{var m=d(a.stem);m&&(t=(0,r.Cl)((0,r.Cl)({},t),m));var v=f(a.stem);v&&(t=(0,r.Cl)((0,r.Cl)({},t),v))}}return t}},32694:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r,o=n(64116),a=n(56775),i=n(40203),c=n(74848);const s=function(e){var t=e.thumbnailUrl,n=e.alt,s=e.srcUrl,l=(e.fileName,e.caption),u=e.maxDimensionX,d=e.maxDimensionY,f=t?(0,c.jsx)("img",{alt:n,title:n,src:t}):(0,c.jsx)("div",{title:n,children:r||(r=(0,c.jsx)(o.A,{icon:"file-alt"}))});return(0,c.jsxs)(i.A,{maxDimensionX:u,maxDimensionY:d,children:[(0,c.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:s,children:f}),l&&(0,c.jsx)(a.Ay.Figcaption,{children:l})]})}},32742:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>o,Ix:()=>r.Ix,Od:()=>r.Od});var r=n(24483);const o=r.Ay},32804:(e,t,n)=>{var r=n(56110)(n(9325),"Promise");e.exports=r},32865:e=>{e.exports=function(e){return e}},33090:(e,t,n)=>{"use strict";n.d(t,{K:()=>o,s:()=>r});var r=function(){return"\n display: inline-block;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"},o=function(){return"\n hyphens: auto;\n overflow-wrap: break-word;\n white-space: normal;\n word-wrap: break-word;\n"}},33150:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(26396),o=n.n(r),a=n(4883),i=n.n(a),c=n(64116),s=n(69556),l=n(77271),u=n(1897),d=n(11653),f=n(74848);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 h(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){o()(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}const m=i().forwardRef((function(e,t){var n=e.aria,r=e.ink,o=e.label,a=e.title,i=e.icon,p=e.pending,m=e.look,v=void 0===m?l.A.look.FLAT:m,g=e.iconPosition,y=void 0===g?l.A.position.PREPEND:g,b=e.type,w=void 0===b?"button":b,x=e.iconOnly,k=e.children,A=e.labelVisibility,S=(0,u.j)().labelVisibility;return(0,f.jsxs)(d.Ay,h(h(h({ref:t},n),e),{},{ink:r||l.A.ink.BASE,"data-cy":e["data-cy"],title:a||o,labelVisibility:A||S,type:w,children:[i&&!p&&(0,f.jsx)(c.A,{icon:i}),p&&(0,f.jsx)(s.A,{ink:r||l.A.ink.BASE,look:v,position:y,size:"1em"}),!x&&o?(0,f.jsx)(d.Bd,{children:o}):k||""]}))}))},33169:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>m});var r=n(92207),o=n.n(r),a=n(90167),i=n(84847),c=n(83403),s=n(29606);function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var d=o().mark(m),f=o().mark(v),p=o().mark(g),h=function(e){return e.socket};function m(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,a.Q7)([(0,a.jP)(c.wc,y),(0,a.jP)(c.hg,v),(0,a.jP)(c.Nd,g)]);case 1:case"end":return e.stop()}}),d)}function v(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,(0,a.T1)(i.A.getOriginId);case 1:return e=t.sent,t.next=2,(0,a.T1)(s.cH,{name:"tocco",messageReceivedAction:c.bE,originId:e});case 2:case"end":return t.stop()}}),f)}function g(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,a.T1)(s.sM,"tocco");case 1:case"end":return e.stop()}}),p)}function y(e){var t=e.payload,n=t.event,r=t.data;return o().mark((function e(){var t,i,c,s,u,d;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,a.Lt)(h);case 1:t=e.sent,i=t.socketReceivers,c=l(i[n]||[]),e.prev=2,c.s();case 3:if((s=c.n()).done){e.next=5;break}return u=s.value,e.next=4,(0,a.yJ)(u(r));case 4:e.next=3;break;case 5:e.next=7;break;case 6:e.prev=6,d=e.catch(2),c.e(d);case 7:return e.prev=7,c.f(),e.finish(7);case 8:case"end":return e.stop()}}),e,null,[[2,6,7,8]])}))()}},33393:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(38684);const o={fromQueryString:r.qt,toQueryString:r.zJ}},33443:(e,t,n)=>{"use strict";function r(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}n.d(t,{o:()=>r})},33563:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(22598).A},33694:e=>{e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},34743:(e,t,n)=>{"use strict";n.d(t,{BN:()=>h,Ej:()=>v,UE:()=>g,UU:()=>m,cY:()=>p,we:()=>d});var r=n(18491),o=n(4883),a=n(81845),i="undefined"!=typeof document?o.useLayoutEffect:function(){};function c(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!c(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!c(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function s(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function l(e,t){const n=s(e);return Math.round(t*n)/n}function u(e){const t=o.useRef(e);return i((()=>{t.current=e})),t}function d(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:f,elements:{reference:p,floating:h}={},transform:m=!0,whileElementsMounted:v,open:g}=e,[y,b]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[w,x]=o.useState(d);c(w,d)||x(d);const[k,A]=o.useState(null),[S,O]=o.useState(null),E=o.useCallback((e=>{e!==C.current&&(C.current=e,A(e))}),[]),j=o.useCallback((e=>{e!==_.current&&(_.current=e,O(e))}),[]),P=p||k,T=h||S,C=o.useRef(null),_=o.useRef(null),N=o.useRef(y),R=null!=v,D=u(v),L=u(f),M=u(g),I=o.useCallback((()=>{if(!C.current||!_.current)return;const e={placement:t,strategy:n,middleware:w};L.current&&(e.platform=L.current),(0,r.rD)(C.current,_.current,e).then((e=>{const t={...e,isPositioned:!1!==M.current};F.current&&!c(N.current,t)&&(N.current=t,a.flushSync((()=>{b(t)})))}))}),[w,t,n,L,M]);i((()=>{!1===g&&N.current.isPositioned&&(N.current.isPositioned=!1,b((e=>({...e,isPositioned:!1}))))}),[g]);const F=o.useRef(!1);i((()=>(F.current=!0,()=>{F.current=!1})),[]),i((()=>{if(P&&(C.current=P),T&&(_.current=T),P&&T){if(D.current)return D.current(P,T,I);I()}}),[P,T,I,D,R]);const z=o.useMemo((()=>({reference:C,floating:_,setReference:E,setFloating:j})),[E,j]),H=o.useMemo((()=>({reference:P,floating:T})),[P,T]),B=o.useMemo((()=>{const e={position:n,left:0,top:0};if(!H.floating)return e;const t=l(H.floating,y.x),r=l(H.floating,y.y);return m?{...e,transform:"translate("+t+"px, "+r+"px)",...s(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,m,H.floating,y.x,y.y]);return o.useMemo((()=>({...y,update:I,refs:z,elements:H,floatingStyles:B})),[y,I,z,H,B])}const f=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:o}="function"==typeof e?e(t):e;return n&&(a=n,{}.hasOwnProperty.call(a,"current"))?null!=n.current?(0,r.UE)({element:n.current,padding:o}).fn(t):{}:n?(0,r.UE)({element:n,padding:o}).fn(t):{};var a}}),p=(e,t)=>({...(0,r.cY)(e),options:[e,t]}),h=(e,t)=>({...(0,r.BN)(e),options:[e,t]}),m=(e,t)=>({...(0,r.UU)(e),options:[e,t]}),v=(e,t)=>({...(0,r.Ej)(e),options:[e,t]}),g=(e,t)=>({...f(e),options:[e,t]})},34840:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},34887:(e,t,n)=>{"use strict";n.d(t,{d:()=>c});var r=n(87683),o=n(11732),a=n(89160),i=["style","type","fallback","languageDisplay"];function c(e,t,n,c){var s=e.locale,l=e.onError;Intl.DisplayNames||l(new o.IF('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',o.O4.MISSING_INTL_API));var u=(0,r.J9)(c,i);try{return t(s,u).of(n)}catch(e){l(new a.pg("Error formatting display name.",s,e))}}},34932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},34938:(e,t,n)=>{"use strict";n.d(t,{Lv:()=>u,lD:()=>d});var r,o,a=n(72189),i=n.n(a),c=n(51510),s=n(57488),l={info:"info",success:"success",error:"danger",warning:"warning"},u=function(){return(0,c.AH)(r||(r=i()(["\n background-color: "," !important;\n border-radius: ",";\n border: 1px solid ",";\n\n *,\n a:link // reset legacy styling\n {\n color: "," !important;\n }\n"])),s.t7.color("paper"),s.t7.radii("statusLabel"),s.t7.color("border"),s.t7.color("text"))},d=function(){return(0,c.AH)(o||(o=i()(["\n * {\n color: "," !important;\n }\n"])),(function(e){return function(e,t){return l[e]?t.colors.signal[l[e]]:"#ccc"}(e.type,e.theme)}))}},35095:(e,t,n)=>{"use strict";n.d(t,{MY:()=>a,r1:()=>o});var r=n(30735);function o(e){var t=(0,r.FK)(e);return function(n,r,o,a){for(var i="",c=0;c<t;c++)i+=e[c](n,r,o,a)||"";return i}}function a(e){return function(t){t.root||(t=t.return)&&e(t)}}},35212:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(26396),o=n.n(r),a=n(25615),i=n(38798),c=n(33150),s=n(5092),l=n(74848);function u(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const f=(0,i.Ay)((function(e){var t,n=e.id,r=e.onDrop,o=e.immutable,i=e.text,u=e.onChoose,f=e.intl,p=e.allowedFileTypes,h=e.additionalButtonComponent,m=e.multiple,v=void 0!==m&&m,g=(0,a.VB)({onDrop:function(e){var t=e.map((function(e){return Object.assign(e,{preview:URL.createObjectURL(e)})}));r(t)},noKeyboard:!0,useFsAccessApi:!1,disabled:o,multiple:v}),y=g.getRootProps,b=g.isDragActive,w=g.getInputProps;return(0,l.jsxs)(s.PJ,{immutable:o,"data-cy":"upload-".concat(n),children:[(0,l.jsx)(s.PZ,{children:(0,l.jsxs)(s.vv,d(d({},y()),{},{children:[b&&(0,l.jsx)(s.pI,{onDrop:function(e){return e.preventDefault()}}),(0,l.jsx)(s.L9,{children:i}),(0,l.jsx)("input",d(d({},w()),{},{accept:(null==p?void 0:p.join(", "))||""})),(0,l.jsx)(c.A,{icon:"arrow-to-top","data-cy":"btn-upload-".concat(n)})]}))}),u&&(0,l.jsx)(c.A,{onClick:function(e){u(),e.stopPropagation()},icon:"folder",label:(t="client.component.upload.browseDocs",f.formatMessage({id:t})),iconOnly:!0,"data-cy":"btn-choose-".concat(n)}),h]})}))},35301:(e,t,n)=>{"use strict";n.d(t,{J6:()=>a,PH:()=>i,RH:()=>d,Rf:()=>r,XA:()=>c,Zl:()=>s,Zy:()=>u,g0:()=>o,uO:()=>l,zP:()=>f});var r="SET_ENTITY_NAME",o="SET_FORM_BASE",a="SET_SCROLL_BEHAVIOUR",i="root/SET_APP_ID",c="root/ON_ROUTE_CHANGE",s=function(e){return{type:r,payload:{entityName:e}}},l=function(e){return{type:o,payload:{formBase:e}}},u=function(e){return{type:a,payload:{scrollBehaviour:e}}},d=function(e){return{type:i,payload:{appId:e}}},f=function(){return{type:c}}},35478:(e,t,n)=>{"use strict";n.d(t,{k:()=>a});var r=n(33443);const o=["MMM","MMMM"],a={preprocessor:(e,t)=>{if(1===e.getDate())return t;return t.some((e=>e.isToken&&o.includes(e.value)))?t.map((e=>e.isToken&&"do"===e.value?{isToken:!0,value:"d"}:e)):t},ordinalNumber:(e,t)=>{const n=Number(e),r=t?.unit;if(0===n)return"0";let o;return o=1===n?r&&["year","week","hour","minute","second"].includes(r)?"ère":"er":"ème",n+o},era:(0,r.o)({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},defaultWidth:"wide"}),quarter:(0,r.o)({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,r.o)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},defaultWidth:"wide"}),day:(0,r.o)({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:(0,r.o)({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})}},35529:(e,t,n)=>{var r=n(39344),o=n(28879),a=n(55527);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(o(e))}},35536:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(21259),o=n.n(r),a=n(26396),i=n.n(a),c=n(15199);function s(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u=i()({},c.CO,(function(e,t){var n=t.payload.key;return l(l({},e),{},{ignoredToasters:o()(new Set([].concat(o()(e.ignoredToasters),[n])))})})),d={ignoredToasters:[]};function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0,n=u[t.type];return n?n(e,t):e}},35674:(e,t,n)=>{"use strict";n.d(t,{c:()=>u,v:()=>d});var r=n(79092),o=n.n(r),a=n(92207),i=n.n(a),c=n(19461),s=n(79253),l="error",u=function(){var e=o()(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="ERROR MESSAGE: ".concat(t.message," \nSTACK: ").concat(t.stack?t.stack.substring(0,1e3):"-"),c.A.logError(n),e.next=1,f(l,n);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=o()(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c.A.logError(t),e.next=1,f(l,t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=o()(i().mark((function e(t,n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,s.A.executeRequest("log?level=".concat(t,"&message=").concat(encodeURI(n)),{method:"POST"});case 1:e.next=3;break;case 2:e.prev=2,e.catch(0);case 3:case"end":return e.stop()}}),e,null,[[0,2]])})));return function(t,n){return e.apply(this,arguments)}}()},35749:(e,t,n)=>{var r=n(81042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},35970:(e,t,n)=>{var r=n(83120);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},36094:(e,t,n)=>{"use strict";n.d(t,{CO:()=>se,Cx:()=>Y,D8:()=>ae,HM:()=>re,Jt:()=>ie,LU:()=>M,Ov:()=>L,QN:()=>D,UA:()=>I,_P:()=>J,aO:()=>K,cM:()=>ee,f2:()=>W,fW:()=>B,hc:()=>G,op:()=>Z,qj:()=>F,qq:()=>H,rN:()=>$,rS:()=>q,sU:()=>ce,s_:()=>te,tL:()=>oe});var r=n(21259),o=n.n(r),a=n(22056),i=n.n(a),c=n(26396),s=n.n(c),l=n(92207),u=n.n(l),d=n(58156),f=n.n(d),p=n(23805),h=n.n(p),m=n(23181),v=n.n(m),g=n(40860),y=n.n(g),b=n(90167),w=n(18242),x=n(80211),k=n(31781),A=u().mark(L),S=u().mark(F),O=u().mark(Y),E=u().mark(re),j=u().mark(oe),P=u().mark(ae),T=u().mark(ie),C=u().mark(ce),_=u().mark(se);function N(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 R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(e){return e};return u().mark((function a(){var i,c,s,l,d,f,p;return u().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return i=r.method,c=void 0===i?"POST":i,s=r.useSelectors,l=void 0===s||s,a.next=1,(0,b.T1)(Z,n);case 1:return d=a.sent,f=R({method:c,queryParams:R({_omitLinks:!0,_useSelectors:l},"GET"===c&&R(R({},te(d)),{},{_permissions:!0}))},"POST"===c&&{body:R(R({},d),{},{permissions:!0})}),a.next=2,(0,b.T1)(k.Gt,"entities/2.0/".concat(e,"/").concat(t),f);case 2:return p=a.sent,a.next=3,(0,b.T1)(o,p.body);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),a)}))()}function L(e,t){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={method:"GET",queryParams:{_omitLinks:!0}},r.prev=1,r.next=2,(0,b.T1)(k.Gt,"entities/2.0/".concat(e,"/").concat(t),n);case 2:return r.abrupt("return",!0);case 3:return r.prev=3,r.catch(1),r.abrupt("return",!1);case 4:case"end":return r.stop()}}),A,null,[[1,3]])}function M(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return u().mark((function o(){var a,i,c;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=f(),o.next=1,H(s()({},e,[t]),n,r);case 1:return i=o.sent,c="".concat(e,".").concat(t),o.abrupt("return",a(i,c,null));case 2:case"end":return o.stop()}}),o)}))()}function I(e,t,n){B(s()({},e,[t]),n)}function F(e,t,n,r,o){var a,i;return u().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return a={method:"POST",queryParams:{_paths:r.join(",")},body:{entityName:o,type:"ID",ids:n}},c.next=1,(0,b.T1)(k.Gt,"forms/".concat(e,"_").concat(t,"/display-expressions"),a);case 1:return i=c.sent,c.abrupt("return",i.body.displayExpressions.reduce((function(e,t){return R(R({},e),{},s()({},t.key,t.displayExpressions))}),{}));case 2:case"end":return c.stop()}}),S)}var z=function(e,t,n){var r=n?".".concat(n):"";return"".concat(e,".").concat(t).concat(r)};function H(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return u().mark((function r(){var o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=Object.entries(e).map((function(e){var n=i()(e,2),r=n[0],o=n[1];return{model:r,keys:o.filter((function(e){return void 0===w.A.getObjectCache("display",z(r,e,t))})),displays:o.map((function(e){return{key:e,display:w.A.getObjectCache("display",z(r,e,t))}})).filter((function(e){return void 0!==e.display}))}})),r.next=1,U(o,t,n);case 1:return a=r.sent,r.abrupt("return",o.reduce((function(e,t){var n=t.model,r=t.displays;return R(R({},e),{},s()({},n,R(R({},e[n]),r.reduce((function(e,t){var n=t.key,r=t.display;return R(R({},e),{},s()({},n,r))}),{}))))}),a));case 2:case"end":return r.stop()}}),r)}))()}function B(e,t){Object.entries(e).forEach((function(e){var n=i()(e,2),r=n[0];n[1].forEach((function(e){return w.A.removeObjectCache("display",z(r,e,t))}))}))}function U(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return u().mark((function r(){var o,a,c,l,d;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!((o=e.filter((function(e){return e.keys.length>0})).map((function(e){return{model:e.model,keys:e.keys}}))).length>0)){r.next=2;break}return a={method:"POST",body:{data:o},queryParams:{_ignoreFallback:n}},c=t?"/".concat(t):"",r.next=1,(0,b.T1)(k.Gt,"entities/2.0/displays".concat(c),a);case 1:return l=r.sent,d=l.body.data.reduce((function(e,t){var n=t.model,r=t.values;return R(R({},e),{},s()({},n,r.reduce((function(e,t){var n=t.key,r=t.display;return R(R({},e),{},s()({},n,r))}),{})))}),{}),Object.entries(d).forEach((function(e){var n=i()(e,2),r=n[0],o=n[1];Object.entries(o).forEach((function(e){var n=i()(e,2),o=n[0],a=n[1];w.A.addObjectCache("display",z(r,o,t),a)}))})),r.abrupt("return",d);case 2:return r.abrupt("return",{});case 3:case"end":return r.stop()}}),r)}))()}function W(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u().mark((function r(){var o,a,i,c,s,l,d;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=n.method,a=void 0===o?"POST":o,i=n.endpoint,r.next=1,(0,b.T1)(Z,t);case 1:return c=r.sent,s=(i||"entities/2.0/".concat(e))+"/count",l=R({method:a},"GET"===a?{queryParams:te(c)}:{body:c}),r.next=2,(0,b.T1)(k.Gt,s,l);case 2:return d=r.sent,r.abrupt("return",d.body.count);case 3:case"end":return r.stop()}}),r)}))()}function $(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Q;return u().mark((function a(){var i,c,s,l,d,f,p,h,m,g;return u().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=1,(0,b.T1)(x.BA);case 1:return i=a.sent,c=n.method,s=void 0===c?"POST":c,l=n.endpoint,d=n.allKeys,a.next=2,(0,b.T1)(W,e,t,n);case 2:return f=a.sent,p=d?1:Math.ceil(f/i),h=l||"entities/2.0/".concat(e).concat("POST"===s?"/search":""),m=v()(p).map((function(e){return e+1})).map((function(e){return R(R({},t),{},{page:e,limit:i})})).map(Z).map((function(e){return(0,b.T1)(V,s,d,e,h,r)})),a.next=3,(0,b.Q7)(m);case 3:return g=a.sent,a.abrupt("return",g.reduce((function(e,t){return[].concat(o()(e),o()(t))}),[]));case 4:case"end":return a.stop()}}),a)}))()}function q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Q;return u().mark((function o(){var a,i,c,s,l,d;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=n.method,i=void 0===a?"POST":a,c=n.endpoint,s=n.allKeys,o.next=1,(0,b.T1)(Z,t);case 1:return l=o.sent,d=c||"entities/2.0/".concat(e).concat("POST"===i?"/search":""),o.next=2,(0,b.T1)(V,i,s,l,d,r);case 2:return o.abrupt("return",o.sent);case 3:case"end":return o.stop()}}),o)}))()}function V(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Q;return u().mark((function a(){var i,c;return u().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return i=R({method:e,queryParams:R({_omitLinks:!0,_allKeys:t},"GET"===e&&te(n))},"POST"===e&&{body:n}),a.next=1,(0,b.T1)(k.Gt,r,i);case 1:return c=a.sent,a.next=2,(0,b.T1)(o,c.body);case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop()}}),a)}))()}function G(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return u().mark((function o(){var a,i,c,s;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(void 0===r&&(r="create"===t),a="".concat(e,"/").concat(t),void 0===w.A.getObjectCache("forms",a)||r){o.next=1;break}return o.abrupt("return",w.A.getObjectCache("forms",a));case 1:return i=R(R({},["create","search"].includes(t)?{queryParams:{_display:!0}}:{}),n&&{acceptedStatusCodes:[404]}),o.next=2,(0,b.T1)(k.Gt,"forms/".concat(a),i);case 2:if(c=o.sent,!n||404!==c.status){o.next=3;break}return w.A.addObjectCache("forms",a,null),o.abrupt("return",null);case 3:return o.next=4,(0,b.T1)(X,c.body);case 4:return s=o.sent,w.A.addObjectCache("forms",a,s),o.abrupt("return",s);case 5:case"end":return o.stop()}}),o)}))()}function Y(e){var t;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,b.T1)(k.Gt,"client/searchfilters/".concat(e));case 1:return t=n.sent,n.abrupt("return",t.body.filters);case 2:case"end":return n.stop()}}),O)}function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J;return u().mark((function n(){var r,o,a;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(r=w.A.getObjectCache("model",e))){n.next=1;break}return n.abrupt("return",r);case 1:return n.next=2,(0,b.T1)(k.Gt,"entities/".concat(e,"/model"));case 2:return o=n.sent,n.next=3,(0,b.T1)(t,o.body);case 3:return a=n.sent,w.A.addObjectCache("model",e,a),n.abrupt("return",a);case 4:case"end":return n.stop()}}),n)}))()}var J=function(e){var t={name:e.name,label:e.label,markable:e.markable,useNiceFields:e.useNiceFields,keyField:e.keyField,paths:{}};return e.fields.forEach((function(e){t.paths[e.fieldName]=R({},e)})),e.relations.forEach((function(e){t.paths[e.relationName]=R({type:"relation"},e)})),t},X=function(e){return e.form},Q=function(e){return e.data},Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.conditions,n=e.fields,r=e.form,o=e.limit,a=e.search,i=e.sorting,c=e.page,s=e.paths,l=e.where,u=e.relations,d=e.filter,f=e.keys,p=e.constriction;return R(R(R(R(R(R(R(R(R(R(R(R(R({},t?{conditions:t}:{}),Array.isArray(n)?{fields:0===n.length?"!":n}:{}),r?{form:r}:{}),o?{limit:o}:{}),a?{search:a}:{}),i?{sort:ee(i)}:{}),c&&o?{offset:(c-1)*o}:{}),s?{paths:s}:{}),l?{where:l}:{}),Array.isArray(u)?{relations:0===u.length?"!":u}:{}),d?{filter:d}:{}),f?{keys:f}:{}),p?{constriction:p}:{})},ee=function(e){return e.map((function(e){return"".concat(e.field," ").concat(e.order)})).join(", ")},te=function(e){return y()(e,(function(e,t,n){var r={};return"conditions"===n?r=ne(t):r["_"+n]=Array.isArray(t)?t.join(","):t,R(R({},e),r)}),{})},ne=function(e){return y()(e,(function(e,t,n){return R(R({},e),{},s()({},n,h()(t)&&t.value?t.value:t))}),{})};function re(){var e,t,n,r,o,a;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=1,(0,b.T1)(k.Gt,"principals");case 1:return e=i.sent,t=e.body,n=t.username,r=t.businessUnit,o=t.inWrongBusinessUnit,a={username:n,currentBusinessUnit:r,inWrongBusinessUnit:o},i.abrupt("return",a);case 2:case"end":return i.stop()}}),E)}function oe(e){var t,n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t={method:"POST",body:{selection:e}},r.next=1,(0,b.T1)(k.Gt,"client/markings",t);case 1:return n=r.sent,r.abrupt("return",n.body.markings);case 2:case"end":return r.stop()}}),j)}function ae(e,t){var n,r;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n={method:"GET"},o.next=1,(0,b.T1)(k.Gt,"client/markings/".concat(e,"/").concat(t),n);case 1:return r=o.sent,o.abrupt("return",r.body.marked);case 2:case"end":return o.stop()}}),P)}function ie(e,t,n){var r;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return r={method:"PATCH",body:{marked:n}},o.next=1,(0,b.T1)(k.Gt,"client/markings/".concat(e,"/").concat(t),r);case 1:case"end":return o.stop()}}),T)}function ce(){var e,t,n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=w.A.getLongTerm("server","locales"))){r.next=1;break}return r.abrupt("return",e);case 1:return r.next=2,(0,b.T1)(k.Gt,"locales");case 2:return t=r.sent,n=t.body.locales,w.A.addLongTerm("server","locales",n),r.abrupt("return",n);case 3:case"end":return r.stop()}}),C)}function se(){var e,t,n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=w.A.getLongTerm("server","modules"))){r.next=1;break}return r.abrupt("return",e);case 1:return r.next=2,(0,b.T1)(k.Gt,"modules");case 2:return t=r.sent,n=t.body.modules,w.A.addLongTerm("server","modules",n),r.abrupt("return",n);case 3:case"end":return r.stop()}}),_)}},36289:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},36374:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});var r=n(29407);function o(e,t,n){const o=(0,r.a)(e,n?.in);return o.setMilliseconds(t),o}},36471:(e,t,n)=>{"use strict";n.d(t,{W:()=>f,f:()=>p});var r,o,a=n(72189),i=n.n(a),c=n(51510),s=n(67940),l=n(46005),u=n(57488),d=n(26166),f=c.Ay.div.withConfig({displayName:"StyledFloatingUi"})(r||(r=i()(["\n && {\n pointer-events: none; /* prevent flickering of tooltip */\n background-color: ",";\n max-width: 400px;\n z-index: 100000010;\n padding: ",";\n\n * {\n color: ",";\n }\n\n svg.floating-arrow path {\n /* style FloatingArrow SVG */\n fill: ",";\n }\n }\n"])),u.t7.color("backgroundPopover"),(function(e){return e.rimless?"0":d.A.space(0)}),u.t7.color("textPopover"),u.t7.color("backgroundPopover")),p=c.Ay.div.withConfig({displayName:"StyledBox"})(o||(o=i()(["\n && {\n ",";\n\n &,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n "," {\n color: ",";\n overflow-wrap: break-word;\n }\n }\n"])),(function(e){return e.isPlainHtml&&(0,l.g)(e,"html")}),s.b,u.t7.color("textPopover"))},36581:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(74932).A},36800:(e,t,n)=>{var r=n(75288),o=n(64894),a=n(30361),i=n(23805);e.exports=function(e,t,n){if(!i(n))return!1;var c=typeof t;return!!("number"==c?o(n)&&a(t,n.length):"string"==c&&t in n)&&r(n[t],e)}},36944:(e,t,n)=>{var r=n(73893)("round");e.exports=r},37089:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(63821);const o=function(e,t){var n;void 0===t&&(t=!0);var o=new Promise((function(r){n=setTimeout(r,Math.min(2147483647,e),t)}));return o[r.bO]=function(){clearTimeout(n)},o}},37167:(e,t,n)=>{var r=n(4901),o=n(27301),a=n(86009),i=a&&a.isTypedArray,c=i?o(i):r;e.exports=c},37217:(e,t,n)=>{var r=n(80079),o=n(51420),a=n(90938),i=n(63605),c=n(29817),s=n(80945);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=c,l.prototype.set=s,e.exports=l},37241:(e,t,n)=>{var r=n(70695),o=n(72903),a=n(64894);e.exports=function(e){return a(e)?r(e,!0):o(e)}},37820:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},37821:(e,t,n)=>{"use strict";n.d(t,{y:()=>x});var r=n(21259),o=n.n(r),a=n(26396),i=n.n(a),c=n(20038),s=n(14644),l=n(32742),u=n(90167),d=n(29056),f=n(14672),p=n(59042),h=n(42944),m=n(61473),v=n(92699),g=n(70306),y=n(41011);function b(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 w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=function(e){var t=window.__INITIAL_STATE__||{};return e&&(t.input=e,t.app=w(w({},t.app),{},{locale:e.locale})),t}(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),r=(0,l.Ay)(),a=w(w({},e),{},{input:v.Ay,app:h.Ay,theme:g.Ay});e=(0,s.HY)(a);var i=(0,c.U1)({reducer:e,devTools:undefined,preloadedState:n,middleware:function(e){return[r]}}),b=[m.Ay,y.A].concat(o()(t||[]));if(i.allReducers=a,i.sagas=b,i.sagaMiddleware=r,i.hotReloadReducers=d.A.hotReloadReducers,b&&b.length>0){var x=f.A.createGenerator(b.map((function(e){return(0,u.Zy)(e)})));r.run(f.A.autoRestartSaga(x,null,p.A.logError))}return i}},37828:(e,t,n)=>{var r=n(9325).Uint8Array;e.exports=r},37959:(e,t,n)=>{"use strict";n.d(t,{Cq:()=>y,Ef:()=>g,HA:()=>w,P2:()=>b,wr:()=>x});var r=n(79092),o=n.n(r),a=n(92207),i=n.n(a),c=n(80299),s=n.n(c),l=n(5338),u=n(19461),d=n(59042),f=n(26289),p=n(71067),h=n(62904),m=n(20577),v=n(74848),g=function(e,t,n,r){var a=r.input,c=void 0===a?{}:a,l=r.actions,g=void 0===l?void 0:l,y=r.publicPath,b=void 0===y?void 0:y,w=r.textResourceModules,x=void 0===w?[]:w;try{var S=c.customTheme;b&&A(b),g&&k(g,n),n.dispatch((0,h.D4)());var O=c?c.locale:null,E=s()([e],x);n.dispatch((0,p.pk)(E)),n.dispatch((0,p.mW)({shouldSetupIntl:!0,locale:O})),n.dispatch((0,m.Cq)());var j=function(){var e=o()(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.dispatch((0,p.pL)(t)));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return{component:(0,v.jsx)(f.A,{store:n,content:t,theme:S}),store:n,methods:{setLocale:j}}}catch(e){try{n.dispatch(d.A.logError("Error","Error creating react application: ",e))}catch(t){u.A.logError("Error creating react application: ",e),u.A.logError("Unable to log error: ",t)}}},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"root",n=document.getElementById(t);(0,l.createRoot)(n).render(e)},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"root",n=document.getElementById(t);(0,l.createRoot)(n).unmount(),y(e,t)},w=function(e,t){window.reactRegistry&&window.reactRegistry.register(e,t)},x=function(e,t,n){return{name:e,init:t,App:n,setWebpacksPublicPath:A}},k=function(e,t){e.forEach((function(e){t.dispatch(e)}))},A=function(e){n.p=e}},38159:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(58169),o=n(44984),a=n(8062);const i={EmbedType:o.w2,isInAdminEmbedded:o.f,isInWidgetEmbedded:o.K_,embedStrategyFactory:r.A,embedStrategy:r.r,getBackendUrl:o.wE,setBackendUrl:o.Wb,getBusinessUnit:o.Zn,getRuleProvider:o.Wi,setBusinessUnit:o.ne,setRuleProvider:o.KC,getEmbedType:o.M7,setEmbedType:o.W2,getWidgetConfigKey:o.wP,setWidgetConfigKey:o.Sk,getWidgetShowcase:o.o6,setWidgetShowcase:o.YI,asInputProps:o.fG,NULL_BUSINESS_UNIT:o.wU,ALLOWED_EMBED_TYPES:o.hZ,setInputEnvs:a.T}},38329:(e,t,n)=>{var r=n(64894);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var a=n.length,i=t?a:-1,c=Object(n);(t?i--:++i<a)&&!1!==o(c[i],i,c););return n}}},38440:(e,t,n)=>{var r=n(16038),o=n(27301),a=n(86009),i=a&&a.isSet,c=i?o(i):r;e.exports=c},38684:(e,t,n)=>{"use strict";n.d(t,{qt:()=>l,zJ:()=>s});var r=n(23805),o=n.n(r),a=n(73916),i=n.n(a),c=n(86663),s=function(e){var t=i()(e,(function(e){return o()(e)?JSON.stringify(e):e}));return c.stringify(t)},l=function(e){var t=c.parse(e);return i()(t,(function(e){return u(e)?JSON.parse(e):e}))},u=function(e){if("string"!=typeof e)return!1;try{var t=JSON.parse(e);return"[object Object]"===Object.prototype.toString.call(t)}catch(e){return!1}}},38726:(e,t,n)=>{"use strict";n.d(t,{A:()=>m,w:()=>h});var r=n(26396),o=n.n(r),a=n(14672),i=n(30355);function c(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=412,u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!(e.ok||n.includes(e.status)||e.body&&t.includes(e.body.errorCode))){if(409===e.status&&e.body.information)throw new i.A(e.body.information);var r="".concat(e.statusText," ").concat(e.body?e.body.message:"");throw new Error(r)}return e},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e.json()},n=e.ok,r=e.headers,o=e.status,a={ok:n,headers:r,status:o,statusText:e.statusText};return 204===o?s(s({},a),{},{body:null}):t(e).then((function(e){return s(s({},a),{},{body:e})})).catch((function(e){return s(s({},a),{},{body:null})}))},f=function(e){return d(e,(function(e){return e.blob()}))},p=function(e){return s(s({},e),{},{referrerPolicy:"no-referrer-when-downgrade",signal:a.A.abortController.signal})};function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return r.push(l),fetch(e,p(t)).then((function(e){return d(e)})).then((function(e){return u(e,n,r)}))}function m(e,t,n,r){return fetch(e,p(t)).then((function(e){return f(e)})).then((function(e){return u(e,n,r)}))}},38798:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>f,Kq:()=>u,ob:()=>d});var r=n(40622),o=n(4146),a=n.n(o),i=n(4883),c=n(24184);var s="undefined"==typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?i.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=i.createContext(null)),l=s.Consumer,u=s.Provider,d=s;function f(e,t){var n,o=t||{},s=o.intlPropName,u=void 0===s?"intl":s,d=o.forwardRef,f=void 0!==d&&d,p=o.enforceContext,h=void 0===p||p,m=function(t){return i.createElement(l,null,(function(n){var o;h&&(0,c.HM)(n);var a=((o={})[u]=n,o);return i.createElement(e,(0,r.Cl)({},t,a,{ref:f?t.forwardedRef:null}))}))};return m.displayName="injectIntl(".concat((n=e).displayName||n.name||"Component",")"),m.WrappedComponent=e,f?a()(i.forwardRef((function(e,t){return i.createElement(m,(0,r.Cl)({},e,{forwardedRef:t}))})),e):a()(m,e)}},38816:(e,t,n)=>{var r=n(35970),o=n(56757),a=n(32865);e.exports=function(e){return a(o(e,void 0,r),e+"")}},38823:(e,t,n)=>{"use strict";n.d(t,{k:()=>a});for(var r=[],o=0;o<256;++o)r.push((o+256).toString(16).slice(1));function a(e,t=0){return(r[e[t+0]]+r[e[t+1]]+r[e[t+2]]+r[e[t+3]]+"-"+r[e[t+4]]+r[e[t+5]]+"-"+r[e[t+6]]+r[e[t+7]]+"-"+r[e[t+8]]+r[e[t+9]]+"-"+r[e[t+10]]+r[e[t+11]]+r[e[t+12]]+r[e[t+13]]+r[e[t+14]]+r[e[t+15]]).toLowerCase()}},38859:(e,t,n)=>{var r=n(53661),o=n(31380),a=n(51459);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},38925:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(6442),o=n(8604),a=n(56775),i=n(74848);const c=function(e){var t=(0,r.A)();return(0,i.jsx)(a.Ay.Time,{id:e.id,dateTime:e.value,title:t.formatDate(e.value),children:(0,i.jsx)(o.XU,{value:e.value,year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC"})})}},39014:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(54870),o=n(74848);const a=function(e){var t=e.modal,n=e.isLatest,a=e.closeModal,i=e.cancelModal;return(0,o.jsx)(r.A,{modal:t,onClose:a,onCancel:function(e){return i(e,t)},isLatest:n})}},39319:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(41250).A},39344:(e,t,n)=>{var r=n(23805),o=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},39621:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={getRunEnv:n(17056).j}},39682:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(26396),o=n.n(r),a=n(22056),i=n.n(a),c=n(2404),s=n.n(c),l=n(4883),u=n(35212),d=n(24909),f=n(52826),p=n(74848);function h(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 m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const v=function(e){var t=e.value,n=e.textResources,r=void 0===n?{}:n,o=e.onUpload,a=e.onChoose,c=e.allowedFileTypes,h=void 0===c?[]:c,v=(0,l.useRef)(t),g=(0,l.useState)({isUploading:!1,previewFile:null}),y=i()(g,2),b=y[0],w=y[1];return(0,l.useEffect)((function(){s()(v.current,t)||w({isUploading:!1,previewFile:null}),v.current=t}),[t]),null!=t&&t.binaryLink?(0,p.jsx)(f.A,m(m({},e),{},{deleteTitle:r.delete,downloadTitle:r.download})):b.isUploading?(0,p.jsx)(d.A,m({file:b.previewFile,text:r.uploading},e)):(0,p.jsx)(u.A,m(m({},e),{},{onDrop:function(e){if(1===e.length){var t=e[0];!function(e){w({isUploading:!0,previewFile:e})}(t),o(t)}},onChoose:a,allowedFileTypes:h}))}},39892:(e,t,n)=>{var r=n(83712);e.exports=function(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},40203:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r,o=n(72189),a=n.n(o),i=n(51510),c=n(26166),s=n(57488);const l=i.Ay.figure.withConfig({displayName:"StyledPreview"})(r||(r=a()(["\n && {\n vertical-align: top;\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n margin: 0; /* reset css overwrite */\n\n img {\n margin-top: ",";\n border: 1px solid ",";\n border-radius: ",";\n max-width: ",";\n max-height: ",";\n min-width: 90px; /* prevent collapse to 1px if there is no preview generated */\n }\n\n figcaption {\n text-align: center;\n }\n }\n"])),c.A.space(-2.2),s.t7.color("border"),s.t7.radii("form"),(function(e){return e.maxDimensionX||"100%"}),(function(e){return e.maxDimensionY||"100%"}))},40337:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});var r=n(29407);function o(e,t){return(0,r.a)(e,t?.in).getHours()}},40346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},40622:(e,t,n)=>{"use strict";n.d(t,{C6:()=>o,Cl:()=>a,Tt:()=>i,fX:()=>c});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;function c(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError},40658:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},40860:(e,t,n)=>{var r=n(40882),o=n(80909),a=n(15389),i=n(85558),c=n(56449);e.exports=function(e,t,n){var s=c(e)?r:i,l=arguments.length<3;return s(e,a(t,4),n,l,o)}},40882:e=>{e.exports=function(e,t,n,r){var o=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}},41011:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(92207),o=n.n(r),a=n(90167),i=n(18242),c=n(20577),s=o().mark(u),l=o().mark(d);function u(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,a.Q7)([(0,a.p8)(c.nn,d)]);case 1:case"end":return e.stop()}}),s)}function d(){var e,t;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,a.T1)(i.A.getLongTerm,"admin","theme");case 1:return e=n.sent,t=e||"light",n.next=2,(0,a.yJ)(c.kd(t));case 2:case"end":return n.stop()}}),l)}},41113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},41224:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(56775),o=n(74848);const a=function(e){return e.breakWords?(0,o.jsx)(r.Ay.P,{breakWords:!0,useTitle:e.useTitle,id:e.id,children:(t=e.value,t.split("\n").flatMap((function(e,t,n){return t+1<n.length?[e,(0,o.jsx)("br",{},t)]:e})))}):(0,o.jsx)(r.Ay.Span,{breakWords:!1,useTitle:e.useTitle,id:e.id,children:e.value.replace("/\n/g"," ")});var t}},41250:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(26396),o=n.n(r),a=n(22056),i=n.n(a),c=n(58689),s=n(34743),l=n(4883),u=n(44518),d=n(36471),f=n(74848);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 h(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){o()(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}const m=function(e){var t=e.children,n=e.content,r=e.isPlainHtml,o=void 0===r||r,a=e.rimless,p=void 0!==a&&a,m=(0,l.useState)(!1),v=i()(m,2),g=v[0],y=v[1],b=(0,l.useRef)(null),w=(0,c.we)({open:g,onOpenChange:y,middleware:[(0,s.UU)(),(0,s.BN)({padding:20}),(0,s.UE)({element:b}),(0,s.cY)(5)]}),x=w.refs,k=w.floatingStyles,A=w.context,S=(0,c.Mk)(A,{delay:{open:500,close:0}}),O=(0,c.bv)([S]),E=O.getReferenceProps,j=O.getFloatingProps;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("span",h(h({ref:x.setReference},E()),{},{children:t})),g&&n&&(0,f.jsx)(c.XF,{children:(0,f.jsxs)(d.W,h(h({ref:x.setFloating,style:k,rimless:p},j()),{},{className:u.e,children:[(0,f.jsx)(c.ie,{ref:b,context:A,className:"floating-arrow"}),(0,f.jsx)(d.f,{isPlainHtml:o,children:n})]}))})]})}},41253:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(26396),o=n.n(r),a=n(58156),i=n.n(a),c=n(47383),s=n(73329),l=n(39319),u=n(56775),d=n(74848);function f(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 p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const h=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.id,a=n||{},f=a.tooltips,h=a.loadTooltip,m=a.navigationStrategy,v=a.linkProps,g=i()(f,t.key,null);t=c.A.getOrFirst(t);var y=(0,d.jsx)(u.Ay.Span,{breakWords:r,useTitle:!g,id:o,children:t.display});return(null!=m&&m.DetailLink?(0,d.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,d.jsx)(m.DetailLink,p(p({},v),{},{entityKey:t.key,children:(0,d.jsx)(l.A,{content:g?(0,d.jsx)("div",{dangerouslySetInnerHTML:{__html:s.A.sanitizeHtml(g)}}):null,children:(0,d.jsx)("span",{onMouseOver:function(){return h&&!g&&h(t.key)},id:o,children:y})})}))}):null)||y}},41401:(e,t,n)=>{"use strict";n.d(t,{M5:()=>f,UR:()=>h,fX:()=>p,g3:()=>d,he:()=>m});var r=n(92207),o=n.n(r),a=n(90167),i=n(18242),c=n(57327),s=n(81049),l=o().mark(f),u=o().mark(p);function d(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).locale;return o().mark((function t(){var n,r,l,u,d,f,p,h,m,v,g,y,b,w,x,k;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,(0,a.T1)(c.A.fetchServerRevision);case 1:return n=t.sent,t.next=2,(0,a.T1)(s.Y$);case 2:return r=t.sent,l=r.locale,u=r.username,d=r.businessUnitId,f=e||l,p=i.A.getObjectCacheMetaInfo(),h=p.locale,m=p.businessUnitId,v=p.username,g=i.A.getLongTermMetaInfo(),y=g.revision,b=!h||h!==f,w=m!==d,x=v!==u,k=y!==n,t.abrupt("return",{invalidObjectCache:b||w||x,invalidLongTermCache:k,cache:{locale:f,businessUnitId:d,username:u,revision:n}});case 3:case"end":return t.stop()}}),t)}))()}function f(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,a.T1)(i.A.clearLongTerm);case 1:case"end":return e.stop()}}),l)}function p(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,a.T1)(i.A.clearObjectCache);case 1:case"end":return e.stop()}}),u)}function h(e){var t=e.revision;return o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,a.T1)(i.A.setLongTermMetaInfo,{revision:t});case 1:case"end":return e.stop()}}),e)}))()}function m(e){var t=e.locale,n=e.businessUnitId,r=e.username;return o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,a.T1)(i.A.setObjectCacheMetaInfo,{locale:t,businessUnitId:n,username:r});case 1:case"end":return e.stop()}}),e)}))()}},41528:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},41601:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var r=n(7277);const o={date:(0,r.k)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,r.k)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,r.k)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})}},41799:(e,t,n)=>{var r=n(37217),o=n(60270);e.exports=function(e,t,n,a){var i=n.length,c=i,s=!a;if(null==e)return!c;for(e=Object(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<c;){var u=(l=n[i])[0],d=e[u],f=l[1];if(s&&l[2]){if(void 0===d&&!(u in e))return!1}else{var p=new r;if(a)var h=a(d,f,u,e,t,p);if(!(void 0===h?o(f,d,3,a,p):h))return!1}}return!0}},41972:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},42e3:(e,t,n)=>{var r=n(63945),o=n(62429),a=n(15389),i=n(56449);e.exports=function(e,t){return function(n,c){var s=i(n)?r:o,l=t?t():{};return s(n,e,a(c,2),l)}}},42072:(e,t,n)=>{var r=n(34932),o=n(23007),a=n(56449),i=n(44394),c=n(61802),s=n(77797),l=n(13222);e.exports=function(e){return a(e)?r(e,s):i(e)?[e]:o(c(l(e)))}},42265:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(40622),o=n(87683),a=n(4883),i=n(24184),c=n(66099),s=n(38798);function l(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}const u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=(0,o.MT)(),t.state={cache:t.cache,intl:(0,c.E)(l(t.props),t.cache),prevConfig:l(t.props)},t}return(0,r.C6)(t,e),t.getDerivedStateFromProps=function(e,t){var n=t.prevConfig,r=t.cache,o=l(e);return(0,i.bN)(n,o)?null:{intl:(0,c.E)(o,r),prevConfig:o}},t.prototype.render=function(){return(0,i.HM)(this.state.intl),a.createElement(s.Kq,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=i.JF,t}(a.PureComponent)},42625:(e,t,n)=>{"use strict";n.d(t,{g:()=>r,v:()=>o});var r="tocco-util/LOG_ERROR",o=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:r,payload:{title:e,description:t,error:n,dateTime:o}}}},42824:(e,t,n)=>{var r=n(87805),o=n(93290),a=n(71961),i=n(23007),c=n(35529),s=n(72428),l=n(56449),u=n(83693),d=n(3656),f=n(1882),p=n(23805),h=n(11331),m=n(37167),v=n(14974),g=n(69884);e.exports=function(e,t,n,y,b,w,x){var k=v(e,n),A=v(t,n),S=x.get(A);if(S)r(e,n,S);else{var O=w?w(k,A,n+"",e,t,x):void 0,E=void 0===O;if(E){var j=l(A),P=!j&&d(A),T=!j&&!P&&m(A);O=A,j||P||T?l(k)?O=k:u(k)?O=i(k):P?(E=!1,O=o(A,!0)):T?(E=!1,O=a(A,!0)):O=[]:h(A)||s(A)?(O=k,s(k)?O=g(k):p(k)&&!f(k)||(O=c(A))):E=!1}E&&(x.set(A,O),b(O,A,y,w,x),x.delete(A)),r(e,n,O)}}},42832:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(77691),o=n(17872),a=n(93870),i=n(96989),c=n(74848);const s=function(e){var t=e.notification,n=e.cancelTask,s=e.navigationStrategy,l=t.result,u=t.taskProgress,d=t.downloadStream;return l?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(o.A,{notification:t}),(0,c.jsx)(a.A,{notification:t,navigationStrategy:s})]}):u?(0,c.jsx)(i.A,{notification:t,navigationStrategy:s,cancelTask:n}):d?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(o.A,{notification:t}),(0,c.jsx)(r.A,{notification:t,navigationStrategy:s})]}):(0,c.jsx)(o.A,{notification:t})}},42944:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>r});const r=n(80884).A},43104:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r,o,a,i,c,s=n(72189),l=n.n(s),u=n(51510),d=n(26166),f="250px",p=d.A.space(.25),h=(0,u.AH)(r||(r=l()(["\n /* Base grid properties */\n gap: ",";\n grid-template-columns: repeat(auto-fit, minmax(",", 1fr));\n\n /* Custom ratio override */\n ","\n\n /* Mobile layout */\n ","\n"])),p,f,(function(e){var t=e.ratio;return t&&(0,u.AH)(o||(o=l()(["\n grid-template-columns: ",";\n "])),function(e){return e?e.split(":").filter(Boolean).map((function(e){return"minmax(".concat(f,", ").concat(e,"fr)")})).join(" "):""}(t))}),(function(e){return e.containerWidth<600&&(0,u.AH)(a||(a=l()(["\n grid-template-columns: 100%;\n gap: 0;\n "])))}));const m=u.Ay.div.withConfig({displayName:"StyledLayoutContainer"})(i||(i=l()(["\n /* Base layout styles */\n display: grid;\n padding-right: ",";\n\n /* Grid column configuration */\n ","\n\n /* Height adjustment */\n ","\n"])),d.A.space(0),h,(function(e){return e.occupiesRemainingHeight&&(0,u.AH)(c||(c=l()(["\n flex: 1;\n "])))}))},43215:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(88208),o=n(74848);const a=function(e){var t=e.children,n=e.intlInitialised,a=e.cacheInitialised;return(0,o.jsx)(r.A,{required:[a,n],children:t})}},43329:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});var r=n(61501);function o(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&r._P in e?e[r._P](t):e instanceof Date?new e.constructor(t):new Date(t)}},43360:(e,t,n)=>{var r=n(93243);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},43378:(e,t,n)=>{"use strict";n.d(t,{A:()=>b,k:()=>y});var r=n(26396),o=n.n(r),a=n(22056),i=n.n(a),c=n(62193),s=n.n(c),l=n(2404),u=n.n(l),d=n(71086),f=n.n(d),p=n(4883),h=n(7311),m=n(62904);function v(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 g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y=function(e,t){return e.reduce((function(e,n){return g(g({},e),t[n]?o()({},n,t[n]):{})}),{})};const b=function(e){var t,n=e.initApp,r=e.props,o=e.packageName,a=e.externalEvents,c=void 0===a?[]:a,l=(0,p.useState)(null),d=i()(l,2),v=d[0],g=d[1],b=null==v?void 0:v.store,w=v?v.component:null,x=(null==b||null===(t=b.getState())||void 0===t?void 0:t.input)||{};return(0,p.useEffect)((function(){g(n(o,r,y(c,r)))}),[]),h.A.useDidUpdate((function(){var e,t,n,o=f()(r,(function(e,t){return!u()(e,x[t])})),a=f()(x,(function(e,t){return Object.keys(o).includes(t)}));!s()(o)&&b&&(e=o,t=a,n=Object.keys(e).map((function(t){return(0,m.zF)(t,e[t])})),n.length>0&&n.push((0,m.Ru)(e,t)),n).forEach((function(e){b.dispatch(e)}))}),[r,x]),{component:w,setApp:g,store:b}}},43407:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>a});var o=new Uint8Array(16);function a(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}},43838:(e,t,n)=>{var r=n(21791),o=n(37241);e.exports=function(e,t){return e&&r(t,o(t),e)}},43847:(e,t,n)=>{"use strict";n.d(t,{k:()=>o});var r=n(33443);const o={ordinalNumber:(e,t)=>{const n=Number(e);return String(n)},era:(0,r.o)({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:(0,r.o)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,r.o)({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:(0,r.o)({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},defaultWidth:"wide"}),dayPeriod:(0,r.o)({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})}},43913:(e,t,n)=>{"use strict";n.d(t,{Y:()=>a,g:()=>o});var r=n(12170),o=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];e&&e[t]&&e[t].apply(e,r)},a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return{}};e.sagaMiddleware.run(r.Ay,t)}},44363:(e,t,n)=>{"use strict";e.exports=n(22799)},44383:(e,t,n)=>{var r=n(76001),o=n(38816)((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},44394:(e,t,n)=>{var r=n(72552),o=n(40346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},44517:(e,t,n)=>{var r=n(76545),o=n(63950),a=n(84247),i=r&&1/a(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=i},44518:(e,t,n)=>{"use strict";n.d(t,{e:()=>r});var r="tocco-app"},44743:(e,t,n)=>{"use strict";var r,o;function a(e){return e.type===r.literal}function i(e){return e.type===r.argument}function c(e){return e.type===r.number}function s(e){return e.type===r.date}function l(e){return e.type===r.time}function u(e){return e.type===r.select}function d(e){return e.type===r.plural}function f(e){return e.type===r.pound}function p(e){return e.type===r.tag}function h(e){return!(!e||"object"!=typeof e||e.type!==o.number)}function m(e){return!(!e||"object"!=typeof e||e.type!==o.dateTime)}n.d(t,{Im:()=>i,Jp:()=>u,N1:()=>h,N6:()=>d,Qh:()=>l,Tu:()=>m,ZE:()=>r,eW:()=>a,jA:()=>f,oF:()=>c,rq:()=>o,tv:()=>s,xm:()=>p}),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(r||(r={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(o||(o={}))},44817:(e,t,n)=>{"use strict";n.d(t,{Ki:()=>f,RZ:()=>d,Yq:()=>s,fU:()=>l,mi:()=>u});var r=n(81293),o=n(89160),a=n(87683),i=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function c(e,t,n,o){var c=e.locale,s=e.formats,l=e.onError,u=e.timeZone;void 0===o&&(o={});var d=o.format,f=(0,r.Cl)((0,r.Cl)({},u&&{timeZone:u}),d&&(0,a.F3)(s,t,d,l)),p=(0,a.J9)(o,i,f);return"time"!==t||p.hour||p.minute||p.second||p.timeStyle||p.dateStyle||(p=(0,r.Cl)((0,r.Cl)({},p),{hour:"numeric",minute:"numeric"})),n(c,p)}function s(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],s=void 0===i?{}:i,l="string"==typeof a?new Date(a||0):a;try{return c(e,"date",t,s).format(l)}catch(t){e.onError(new o.pg("Error formatting date.",e.locale,t))}return String(l)}function l(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],s=void 0===i?{}:i,l="string"==typeof a?new Date(a||0):a;try{return c(e,"time",t,s).format(l)}catch(t){e.onError(new o.pg("Error formatting time.",e.locale,t))}return String(l)}function u(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],s=n[2],l=void 0===s?{}:s,u="string"==typeof a?new Date(a||0):a,d="string"==typeof i?new Date(i||0):i;try{return c(e,"dateTimeRange",t,l).formatRange(u,d)}catch(t){e.onError(new o.pg("Error formatting date time range.",e.locale,t))}return String(u)}function d(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],s=void 0===i?{}:i,l="string"==typeof a?new Date(a||0):a;try{return c(e,"date",t,s).formatToParts(l)}catch(t){e.onError(new o.pg("Error formatting date.",e.locale,t))}return[]}function f(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],s=void 0===i?{}:i,l="string"==typeof a?new Date(a||0):a;try{return c(e,"time",t,s).formatToParts(l)}catch(t){e.onError(new o.pg("Error formatting time.",e.locale,t))}return[]}},44905:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r,o=n(64116),a=n(77271),i=n(72189),c=n.n(i),s=n(51510),l=n(85431),u=n(33090),d=n(47616);const f=s.Ay.a.withConfig({displayName:"StyledLink"})(r||(r=c()(["\n ","\n ","\n\n && {\n color: ",";\n text-decoration: ",";\n\n &:hover,\n &:focus {\n text-decoration: ",";\n }\n\n &:active {\n text-decoration: ",";\n }\n }\n"])),(0,l.A)(),(function(e){return e.breakWords?(0,u.K)():(0,u.s)()}),d.A.color("text"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}));var p=n(74848);const h=function(e){var t=e.id,n=e.alt,r=e.breakWords,i=void 0===r||r,c=e.download,s=e.href,l=void 0===s?"#":s,u=e.neutral,d=e.onClick,h=e.rel,m=e.tabIndex,v=e.target,g=void 0===v?"_self":v,y=e.title,b=e.label,w=e.icon,x=e.children,k=e.useTitle,A=void 0===k||k,S=y||(i?void 0:b);return(0,p.jsxs)(f,{id:t,alt:n,breakWords:i,download:c,href:l,neutral:u,onClick:d,rel:h,tabIndex:m,target:g,title:A?S:void 0,children:[w&&(0,p.jsx)(o.A,{icon:w,position:a.A.position.PREPEND}),b||x]})}},44984:(e,t,n)=>{"use strict";n.d(t,{KC:()=>p,K_:()=>v,M7:()=>h,Sk:()=>b,W2:()=>g,Wb:()=>l,Wi:()=>f,YI:()=>x,Zn:()=>u,f:()=>m,fG:()=>k,hZ:()=>i,ne:()=>d,o6:()=>w,w2:()=>a,wE:()=>s,wP:()=>y,wU:()=>o});var r=n(19461),o="__n-u-l-l__",a={admin:"admin",legacyAdmin:"legacy-admin",widget:"widget",legacyWidget:"legacy-widget"},i=Object.values(a),c={backendUrl:void 0,businessUnit:void 0,ruleProvider:void 0,embedType:a.admin,widgetConfigKey:void 0,widgetShowcase:void 0},s=function(){return c.backendUrl||""},l=function(e){c.backendUrl=e},u=function(){return c.businessUnit},d=function(e){c.businessUnit=e},f=function(){return c.ruleProvider},p=function(e){c.ruleProvider=e},h=function(){return c.embedType},m=function(){var e=h();return[a.admin,a.legacyAdmin].includes(e)},v=function(){var e=h();return[a.widget].includes(e)},g=function(e){i.includes(e)?c.embedType=e:r.A.logError("'".concat(e,"' as embedType is not allowed. Allowed embedTypes are: ").concat(i.join(", ")))},y=function(){return c.widgetConfigKey},b=function(e){c.widgetConfigKey=e},w=function(){return c.widgetShowcase},x=function(e){c.widgetShowcase=e},k=function(){return{backendUrl:c.backendUrl,businessUnit:c.businessUnit,appContext:{embedType:c.embedType,widgetConfigKey:c.widgetConfigKey,widgetShowcase:c.widgetShowcase}}}},45051:(e,t,n)=>{var r=n(23490);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},45083:(e,t,n)=>{var r=n(1882),o=n(87296),a=n(23805),i=n(47473),c=/^\[object .+?Constructor\]$/,s=Function.prototype,l=Object.prototype,u=s.toString,d=l.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?f:c).test(i(e))}},45293:(e,t,n)=>{"use strict";n.d(t,{R:()=>i});var r=n(28167),o=n(96675);const a=[".DS_Store","Thumbs.db"];function i(e){return(0,r.sH)(this,void 0,void 0,(function*(){return c(e)&&c(e.dataTransfer)?function(e,t){return(0,r.sH)(this,void 0,void 0,(function*(){if(e.items){const n=l(e.items).filter((e=>"file"===e.kind));if("drop"!==t)return n;return s(d(yield Promise.all(n.map(u))))}return s(l(e.files).map((e=>(0,o.b)(e))))}))}(e.dataTransfer,e.type):function(e){return c(e)&&c(e.target)}(e)?function(e){return l(e.target.files).map((e=>(0,o.b)(e)))}(e):Array.isArray(e)&&e.every((e=>"getFile"in e&&"function"==typeof e.getFile))?function(e){return(0,r.sH)(this,void 0,void 0,(function*(){return(yield Promise.all(e.map((e=>e.getFile())))).map((e=>(0,o.b)(e)))}))}(e):[]}))}function c(e){return"object"==typeof e&&null!==e}function s(e){return e.filter((e=>-1===a.indexOf(e.name)))}function l(e){if(null===e)return[];const t=[];for(let n=0;n<e.length;n++){const r=e[n];t.push(r)}return t}function u(e){if("function"!=typeof e.webkitGetAsEntry)return f(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?h(t):f(e,t)}function d(e){return e.reduce(((e,t)=>[...e,...Array.isArray(t)?d(t):[t]]),[])}function f(e,t){return(0,r.sH)(this,void 0,void 0,(function*(){var n;if(globalThis.isSecureContext&&"function"==typeof e.getAsFileSystemHandle){const t=yield e.getAsFileSystemHandle();if(null===t)throw new Error(`${e} is not a File`);if(void 0!==t){const e=yield t.getFile();return e.handle=t,(0,o.b)(e)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return(0,o.b)(r,null!==(n=null==t?void 0:t.fullPath)&&void 0!==n?n:void 0)}))}function p(e){return(0,r.sH)(this,void 0,void 0,(function*(){return e.isDirectory?h(e):function(e){return(0,r.sH)(this,void 0,void 0,(function*(){return new Promise(((t,n)=>{e.file((n=>{const r=(0,o.b)(n,e.fullPath);t(r)}),(e=>{n(e)}))}))}))}(e)}))}function h(e){const t=e.createReader();return new Promise(((e,n)=>{const o=[];!function a(){t.readEntries((t=>(0,r.sH)(this,void 0,void 0,(function*(){if(t.length){const e=Promise.all(t.map(p));o.push(e),a()}else try{const t=yield Promise.all(o);e(t)}catch(e){n(e)}}))),(e=>{n(e)}))}()}))}},45695:(e,t,n)=>{"use strict";n.d(t,{Y:()=>g});var r=n(14644),o=n(29056),a=n(24292),i=n(33169),c=n(13251),s=n(87456),l=n(86421),u=n(74914),d=n(91787),f=n(30255),p=n(35536),h=n(2405),m=n(23747),v=n(64822),g=function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).withNotificationCenter,g=void 0!==n&&n;t&&o.A.injectReducers(e,{notification:(0,r.HY)({socket:p.A,toaster:m.A,center:s.A,overlay:f.A}),socket:a.A}),e.sagaMiddleware.run(c.A,t),e.sagaMiddleware.run(u.Ay,t),e.sagaMiddleware.run(d.Ay,t),e.sagaMiddleware.run(h.Ay,t),e.sagaMiddleware.run(v.Ay,t),t&&g&&e.sagaMiddleware.run(l.Ay),t&&e.sagaMiddleware.run(i.Ay)}},45891:(e,t,n)=>{var r=n(51873),o=n(72428),a=n(56449),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},46005:(e,t,n)=>{"use strict";n.d(t,{g:()=>c});var r=n(58156),o=n.n(r),a=n(26166),i=n(47616),c=function(e,t){var n="\n color: ".concat(i.A.color("text")(e),";\n font-family: ").concat(i.A.fontFamily("regular")(e),";\n font-size: ").concat(a.A.font(0)(e),";\n font-style: ","normal",";\n font-weight: ").concat(i.A.fontWeight("regular")(e),";\n line-height: ").concat(i.A.lineHeight("regular")(e),";\n\n a {\n color: ").concat(i.A.color("secondaryLight")(e),";\n\n &:hover,\n &:focus {\n color: ").concat(o()(e.theme,"colors.secondaryLight"),";\n text-decoration: underline;\n }\n\n &:active {\n color: ").concat(o()(e.theme,"colors.secondary"),";\n }\n }\n\n b,\n strong {\n font-weight: ").concat(i.A.fontWeight("bold")(e),"\n }\n\n em,\n i {\n font-style: italic;\n }\n\n u {\n text-decoration: underline;\n }\n\n h1 {font-size: ").concat(a.A.font(5)(e),";}\n h2 {font-size: ").concat(a.A.font(4)(e),";}\n h3 {font-size: ").concat(a.A.font(3)(e),";}\n h4 {font-size: ").concat(a.A.font(2)(e),";}\n h5 {font-size: ").concat(a.A.font(1)(e),";}\n h6 {font-size: ").concat(a.A.font(0)(e),";}\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-weight: ").concat(i.A.fontWeight("bold")(e),";\n margin-top: ").concat(a.A.space(0)(e),";\n margin-bottom: ").concat(a.A.space(-1)(e),";\n\n + h1,\n + h2,\n + h3,\n + h4,\n + h5,\n + h6,\n &:first-child {\n margin-top: 0;\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n p {\n margin-bottom: ").concat(a.A.space(-1)(e),";\n &:last-child {\n margin-bottom: 0;\n }\n }\n ");return"ckeditor"!==t&&(n="\n ".concat(n,"\n ol,\n ul {\n display: block;\n list-style-position: outside;\n margin: 0 0 ").concat(a.A.space(-1)(e)," 1.6rem;\n padding: 0;\n\n ol,\n ul,\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n ol li {\n list-style-type: decimal;\n }\n\n ul li {\n list-style-type: disc;\n }\n ")),n}},46326:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(27267).A},46516:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(81062);const o={downloadUrl:r.Is,openUrl:r.CZ,downloadSupportedByBrowser:r.qI,getDownloadUrl:r.y_,addParameterToURL:r.r2}},46544:(e,t,n)=>{"use strict";n.d(t,{Ne:()=>h,Vc:()=>m,i9:()=>v,qp:()=>p});var r=n(26396),o=n.n(r),a=n(85735),i=n.n(a),c=n(32224),s=n(38159),l=n(84847);function u(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={method:"GET",credentials:"include"},p=function(e){var t=function(e){if(e){if(e instanceof Headers)return e;if("object"===i()(e))return new Headers(e)}return new Headers}(e.headers),n=e.body;return t.has("Content-Type")||("string"==typeof n?t.set("Content-Type","text/plain"):n instanceof FormData||t.set("Content-Type","application/json")),t.has("X-Origin-Id")||t.set("X-Origin-Id",l.A.getOriginId()),!t.has("X-Business-Unit")&&s.A.getBusinessUnit()&&t.set("X-Business-Unit",s.A.getBusinessUnit()),t.has("X-Client")||t.set("X-Client",s.A.isInAdminEmbedded()?"client":"widget"),s.A.getRuleProvider()&&t.set("X-Rule-Provider-Id",s.A.getRuleProvider()),t.has("X-Timezone")||t.set("X-Timezone",c.A.getTimeZone()),t},h=function(e,t){return t.startsWith("/")&&(t=t.substring(1)),t.startsWith("http")?t:t.startsWith("nice2")?"".concat(e,"/").concat(t):"".concat(e,"/nice2/").concat(t)},m=function(e){var t=function(e){return d(d(d({},f),e),{},{headers:p(e)})}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=s.A.getBackendUrl(),r=h(n,e);return fetch(r,t)},v=function(e){return e.json()}},47029:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(88097);function o(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},47055:(e,t,n)=>{"use strict";n.d(t,{LT:()=>d,fY:()=>u,oV:()=>l});var r=n(4883),o=n(82064),a=n(18562),i=n(66537),c=n(53550),s=n(74848);function l(e){var t=e.title,n=e.message,o=e.okText,l=e.cancelText,u=e.onOk,d=e.onCancel,f=e.defaultAction,p=void 0===f?"submit":f,h=(0,a.A)();return(0,i.yl)(h,t,n,(function(e){var t=e.close,n=function(e){"Enter"===e.key?(e.preventDefault(),"submit"===p?u():"cancel"===p&&d(),t()):"Escape"===e.key&&(d(),t())};(0,r.useEffect)((function(){return document.addEventListener("keydown",n),function(){document.removeEventListener("keydown",n)}}),[]);var a=[{label:o,primary:"submit"===p,look:"submit"===p?"raised":"flat","data-cy":"btn-confirm-ok",callback:function(){u(),t()}},{label:l,primary:"cancel"===p,look:"cancel"===p?"raised":"flat","data-cy":"btn-confirm-cancel",callback:function(){d(),t()}}];return(0,s.jsx)(c.A,{buttons:a})}),!0,d)}function u(e){var t=e.title,n=e.message,r=e.yesText,l=e.noText,u=e.onYes,d=e.onNo,f=e.onCancel,p=(0,a.A)();return(0,i.yl)(p,t,n,(function(e){var t=e.close,n=function(){d(),t()};(0,o.L)(n);var a=[{label:r,callback:function(){u(),t()}},{label:l,primary:!0,look:"raised",callback:n}];return(0,s.jsx)(c.A,{buttons:a})}),!0,f)}function d(e){var t=e.title,n=e.message,o=e.okText,l=e.onOk,u=(0,a.A)();return(0,i.yl)(u,t,n,(function(e){var t=e.close,n=function(e){"Enter"===e.key&&(e.preventDefault(),l(),t())};(0,r.useEffect)((function(){return document.addEventListener("keydown",n),function(){document.removeEventListener("keydown",n)}}),[]);var a=[{label:o,primary:!0,look:"raised","data-cy":"btn-confirm-ok",callback:function(){l(),t()}}];return(0,s.jsx)(c.A,{buttons:a})}),!1)}},47162:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},47237:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},47383:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(98166),o=n(4394);const a={difference:n(77896).i,getOrFirst:r.Yd,adjustedHTMLString:o.H,roundDecimalPlaces:r.O5,copyToClipboard:r.lW,isDefined:r.O9}},47408:(e,t,n)=>{"use strict";n.d(t,{Bk:()=>a,GE:()=>s,MO:()=>o,XM:()=>i,hf:()=>r,pv:()=>c});var r="notification/TOASTER",o="notification/REMOVE_TOASTER",a="notification/REMOVE_TOASTER_FROM_STORE",i=function(e){return{type:r,payload:{toaster:e}}},c=function(e,t){return{type:o,payload:{key:e,manually:t}}},s=function(e){return{type:a,payload:{key:e}}}},47422:(e,t,n)=>{var r=n(31769),o=n(77797);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[o(t[n++])];return n&&n==a?e:void 0}},47473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},47509:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(22056),o=n.n(r),a=n(4883);const i=function(e,t){var n=new IntersectionObserver((function(e){o()(e,1)[0].isIntersecting&&(t(),n.disconnect())}));(0,a.useEffect)((function(){return n.observe(e.current),function(){n.disconnect()}}),[])}},47616:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(58156),o=n.n(r),a=n(28114),i=function(e){return 0===Object.keys(e).length?a.A:e};const c={color:function(e){return function(t){var n=t.theme;return o()(i(n),"colors.".concat(e))}},fontFamily:function(e){return function(t){var n=t.theme;return o()(i(n),"fontFamily.".concat(e))}},fontSize:function(e){return function(t){var n=t.theme;return o()(i(n),"fontSize.".concat(e))}},fontWeight:function(e){return function(t){var n=t.theme;return o()(i(n),"fontWeights.".concat(e))}},lineHeight:function(e){return function(t){var n=t.theme;return o()(i(n),"lineHeights.".concat(e))}},radii:function(e){return function(t){var n=t.theme;return o()(i(n),"radii.".concat(e))}},space:function(e){return function(t){var n=t.theme;return o()(i(n),"space.".concat(e))}},specificProperty:function(e){return function(t){var n=t.theme;return o()(i(n),"specificProperties.".concat(e))}}}},47978:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{A:()=>r})},48067:(e,t)=>{"use strict";t.YW=function(e,t={}){const{decode:o=decodeURIComponent,loose:a=!0,delimiter:i=n}=t,c=g(e,t),s=f(a,i),l=c.keys.map((e=>{if(o&&("+"===e.modifier||"*"===e.modifier)){const{prefix:t="",suffix:n="",separator:r=n+t}=e,a=new RegExp(s(r),"g");return e=>e.split(a).map(o)}return o||r}));return function(e){const t=c.exec(e);if(!t)return!1;const{0:n,index:r}=t,o=Object.create(null);for(let e=1;e<t.length;e++){if(void 0===t[e])continue;const n=c.keys[e-1],r=l[e-1];o[n.name]=r(t[e])}return{path:n,index:r,params:o}}};const n="/",r=e=>e,o=/^\p{XID_Continue}$/u,a="https://git.new/pathToRegexpError",i={"!":"!","@":"@",";":";",",":",","*":"*","+":"+","?":"?","{":"{","}":"}"};class c{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:n,index:r}=this.peek();throw new TypeError(`Unexpected ${n} at ${r}, expected ${e}: ${a}`)}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 s{constructor(e,t){this.tokens=e,this.delimiter=t}}function l(e,t={}){const{encodePath:l=r,delimiter:d=l(n)}=t,f=[],p=function(e){const t=[...e],n=[];let r=0;for(;r<t.length;){const e=t[r],a=i[e];if(a)n.push({type:a,index:r++,value:e});else if("\\"!==e)if(":"!==e)if("("!==e)n.push({type:"CHAR",index:r,value:t[r++]});else{const e=r++;let o=1,a="";if("?"===t[r])throw new TypeError(`Pattern cannot start with "?" at ${r}`);for(;r<t.length;)if("\\"!==t[r]){if(")"===t[r]){if(o--,0===o){r++;break}}else if("("===t[r]&&(o++,"?"!==t[r+1]))throw new TypeError(`Capturing groups are not allowed at ${r}`);a+=t[r++]}else a+=t[r++]+t[r++];if(o)throw new TypeError(`Unbalanced pattern at ${e}`);if(!a)throw new TypeError(`Missing pattern at ${e}`);n.push({type:"PATTERN",index:r,value:a})}else{let e="";for(;o.test(t[++r]);)e+=t[r];if(!e)throw new TypeError(`Missing parameter name at ${r}`);n.push({type:"NAME",index:r,value:e})}else n.push({type:"ESCAPED",index:r++,value:t[r++]})}return n.push({type:"END",index:r,value:""}),new c(n)}(e);let h=0;for(;;){const e=p.text();e&&f.push(l(e));const t=p.tryConsume("NAME"),n=p.tryConsume("PATTERN");if(t||n){f.push({name:t||String(h++),pattern:n});const e=p.peek();if("*"===e.type)throw new TypeError(`Unexpected * at ${e.index}, you probably want \`/*\` or \`{/:foo}*\`: ${a}`);continue}if(p.tryConsume("*")){f.push({name:String(h++),pattern:`(?:(?!${u(d)}).)*`,modifier:"*",separator:d});continue}if(!p.tryConsume("{")){p.consume("END");break}{const e=p.text(),t=p.tryConsume("NAME"),n=p.tryConsume("PATTERN"),r=p.text(),o=p.tryConsume(";")&&p.text();p.consume("}");const a=p.modifier();f.push({name:t||(n?String(h++):""),prefix:l(e),suffix:l(r),pattern:n,modifier:a,separator:o})}}return new s(f,d)}function u(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function d(e,t){const n=u(e);return t?`(?:${n})+(?!${n})`:n}function f(e,t){if(!e)return u;const n=new RegExp(`(?:(?!${u(t)}).)+|(.)`,"g");return e=>e.replace(n,d)}function p(e){return e.sensitive?"":"i"}function h(e,t,n,r){const o=e instanceof s?e:l(e,r),{trailing:a=!0,loose:i=!0,start:c=!0,end:d=!0,strict:p=!1}=r,h=f(i,o.delimiter);let v=c?"^":"";return v+=m(o,h,t,n,p).join(""),a&&(v+=`(?:${h(o.delimiter)}$)?`),v+=d?"$":`(?=${u(o.delimiter)}|$)`,v}function m(e,t,n,r,o){const i=`(?:(?!${u(e.delimiter)}).)+?`;let c="",s=!0;return e.tokens.map((e=>{if("string"==typeof e)return c=e,t(e);const{prefix:l="",suffix:u="",separator:d=u+l,modifier:f=""}=e,p=t(l),h=t(u);if(e.name){const m=e.pattern?`(?:${e.pattern})`:i,g=function(e,t,n){try{return new RegExp(`^${e}$`,n)}catch(e){throw new TypeError(`Invalid pattern for "${t}": ${e.message}`)}}(m,e.name,r);if(s||(s=v(g,l||c)),!s)throw new TypeError(`Ambiguous pattern for "${e.name}": ${a}`);if(s=!o||v(g,u),c="",n.push(e),"+"===f||"*"===f){const n="*"===f?"?":"",r=t(d);if(!r)throw new TypeError(`Missing separator for "${e.name}": ${a}`);if(s||(s=!o||v(g,d)),!s)throw new TypeError(`Ambiguous pattern for "${e.name}" separator: ${a}`);return s=!o,`(?:${p}(${m}(?:${r}${m})*)${h})${n}`}return`(?:${p}(${m})${h})${f}`}return`(?:${p}${h})${f}`}))}function v(e,t){return!!t&&!e.test(t)}function g(e,t={}){const n=[],r=p(t);if(Array.isArray(e)){const o=e.map((e=>h(e,n,r,t)));return Object.assign(new RegExp(o.join("|")),{keys:n})}const o=h(e,n,r,t);return Object.assign(new RegExp(o),{keys:n})}},48102:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(4883);const o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,r.useRef)(!1);(0,r.useEffect)((function(){n.current?e():n.current=!0}),t)}},48655:(e,t,n)=>{var r=n(26025);e.exports=function(e){return r(this.__data__,e)>-1}},48948:(e,t,n)=>{var r=n(21791),o=n(86375);e.exports=function(e,t){return r(e,o(e),t)}},49054:(e,t,n)=>{"use strict";n.d(t,{Kr:()=>k});
|
|
47
47
|
/*!
|
|
48
48
|
* tabbable 6.2.0
|
|
49
49
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|