tocco-admin 3.14.19 → 3.14.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +8 -0
- package/dist/{chunk-27136.ba70eeb79c0331d3a551.js → chunk-27136.794d269426533f9b6056.js} +1 -1
- package/dist/{chunk-8007.989ecf58f26f4eb9d2ce.js → chunk-8007.6c0ce5e8d499eb1e816b.js} +1 -1
- package/dist/chunk-actions.1d7dc4dfcc9d87506f9d.js +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-actions.367439801e4c903046f1.js +0 -1
package/dist/index.js
CHANGED
|
@@ -28,4 +28,4 @@ const{entries:r,setPrototypeOf:o,isFrozen:i,getPrototypeOf:a,getOwnPropertyDescr
|
|
|
28
28
|
*
|
|
29
29
|
* This source code is licensed under the MIT license found in the
|
|
30
30
|
* LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=r.useRef,c=r.useEffect,s=r.useMemo,u=r.useDebugValue},85250:(e,t,n)=>{var r=n(37217),o=n(87805),i=n(86649),a=n(42824),c=n(23805),s=n(37241),u=n(14974);e.exports=function e(t,n,l,d,p){t!==n&&i(n,(function(i,s){if(p||(p=new r),c(i))a(t,n,s,l,e,d,p);else{var f=d?d(u(t,s),i,s+"",t,n,p):void 0;void 0===f&&(f=i),o(t,s,f)}}),s)}},85431:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r,o=n(72189),i=n.n(o),a=n(6199),c=n(47616),s=n(26166);const u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,a.AH)(r||(r=i()(["\n color: ",";\n font-family: ",";\n font-size: ",";\n font-style: ",";\n font-weight: ",";\n line-height: ",";\n"])),e.color||c.A.color("text"),e.fontFamily||c.A.fontFamily("regular"),e.fontSize||s.A.font(0),e.fontStyle||"normal",e.fontWeight||c.A.fontWeight("regular"),e.lineHeight||c.A.lineHeight("regular"))}},85463:e=>{e.exports=function(e){return e!=e}},85508:(e,t,n)=>{var r=n(86151),o=n(36800),i=n(17400);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t<n?1:-1:i(a),r(t,n,a,e)}}},85558:e=>{e.exports=function(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}},85577:(e,t,n)=>{"use strict";n.d(t,{GP:()=>I});var r=n(9946),o=n(92516),i=n(2831),a=n(70228),c=n(29407);function s(e,t){const n=(0,c.a)(e,t?.in);return(0,i.m)(n,(0,a.D)(n))+1}var u=n(72794),l=n(51898),d=n(65456),p=n(84485);function f(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const m={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return f("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):f(n+1,2)},d:(e,t)=>f(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>f(e.getHours()%12||12,t.length),H:(e,t)=>f(e.getHours(),t.length),m:(e,t)=>f(e.getMinutes(),t.length),s:(e,t)=>f(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return f(Math.trunc(r*Math.pow(10,n-3)),t.length)}},h="midnight",g="noon",v="morning",y="afternoon",b="evening",w="night",x={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 m.y(e,t)},Y:function(e,t,n,r){const o=(0,p.h)(e,r),i=o>0?o:1-o;if("YY"===t){return f(i%100,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):f(i,t.length)},R:function(e,t){return f((0,l.p)(e),t.length)},u:function(e,t){return f(e.getFullYear(),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 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 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 m.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 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,d.N)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):f(o,t.length)},I:function(e,t,n){const r=(0,u.s)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):f(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):m.d(e,t)},D:function(e,t,n){const r=s(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):f(r,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(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return f(i,2);case"eo":return n.ordinalNumber(i,{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(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return f(i,t.length);case"co":return n.ordinalNumber(i,{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 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?g:0===r?h: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?b:r>=12?y:r>=4?v:w,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 m.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):m.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):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"}):f(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):m.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):m.s(e,t)},S:function(e,t){return m.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return k(r);case"XXXX":case"XX":return S(r);default:return S(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return k(r);case"xxxx":case"xx":return S(r);default:return S(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+O(r,":");default:return"GMT"+S(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+O(r,":");default:return"GMT"+S(r,":")}},t:function(e,t,n){return f(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return f(+e,t.length)}};function O(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+f(i,2)}function k(e,t){if(e%60==0){return(e>0?"-":"+")+f(Math.abs(e)/60,2)}return S(e,t)}function S(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+f(Math.trunc(r/60),2)+t+f(r%60,2)}var E=n(78668),j=n(3265),A=n(32370);const P=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,T=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_=/^'([^]*?)'?$/,D=/''/g,C=/[a-zA-Z]/;function I(e,t,n){const i=(0,o.q)(),a=n?.locale??i.locale??r.c,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,u=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,l=(0,c.a)(e,n?.in);if(!(0,A.f)(l))throw new RangeError("Invalid time value");let d=t.match(T).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,E.m[t])(e,a.formatLong)}return e})).join("").match(P).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:R(e)};if(x[t])return{isToken:!0,value:e};if(t.match(C))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));a.localize.preprocessor&&(d=a.localize.preprocessor(l,d));const p={firstWeekContainsDate:s,weekStartsOn:u,locale:a};return d.map((r=>{if(!r.isToken)return r.value;const o=r.value;(!n?.useAdditionalWeekYearTokens&&(0,j.xM)(o)||!n?.useAdditionalDayOfYearTokens&&(0,j.ef)(o))&&(0,j.Ss)(o,t,String(e));return(0,x[o[0]])(l,o,a.localize,p)})).join("")}function R(e){const t=e.match(_);return t?t[1].replace(D,"'"):e}},85735:e=>{function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t},86009:(e,t,n)=>{e=n.nmd(e);var r=n(34840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=c},86151:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,i){for(var a=-1,c=n(t((r-e)/(o||1)),0),s=Array(c);c--;)s[i?c:++a]=e,e+=o;return s}},86375:(e,t,n)=>{var r=n(14528),o=n(28879),i=n(4664),a=n(63345),c=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=c},86395:(e,t,n)=>{"use strict";n.d(t,{A:()=>pe});var r,o=n(60115),i=n(26396),a=n.n(i),c=n(22056),s=n.n(c),u=n(39892),l=n.n(u),d=n(4883),p=n.n(d),f=n(72189),m=n.n(f),h=n(6199),g=n(57488);const v=h.Ay.div.withConfig({displayName:"StyledPanel"})(r||(r=m()(["\n && {\n background-color: ",";\n border: 1px "," ",";\n border-radius: ",";\n }\n"])),g.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),g.t7.color("borderLight"),g.t7.radii("form"));var y=n(74848),b=["children","isFramed","controlledIsOpen","isOpenInitial","isToggleable","onToggle"];const w=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.controlledIsOpen,i=e.isOpenInitial,a=void 0===i||i,c=e.isToggleable,u=void 0===c||c,f=e.onToggle,m=l()(e,b),h=(0,d.useState)(a),g=s()(h,2),w=g[0],x=g[1],O="boolean"==typeof o,k=function(){u&&(O?"function"==typeof f&&f(!o):x(!w))};return(0,y.jsx)(v,{isFramed:r,"data-cy":m["data-cy"],children:p().Children.map(t,(function(e){return p().cloneElement(e,{isFramed:r,isOpen:O?o:w,isToggleable:u,toggleOpenState:k})}))})};var x,O=n(26166);const k=h.Ay.div.withConfig({displayName:"StyledPanelBody"})(x||(x=m()(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?O.A.space(-.375):0}),(function(e){return e.isOpen?"block":"none"}));var S=["children","isFramed","isOpen"];const E=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=l()(e,S);return(0,y.jsx)(k,{isFramed:n,isOpen:r,"data-cy":o["data-cy"],children:(0,y.jsx)("div",{children:t})})};const j=function(e){var t=e.initialOpenPanelIndex,n=e.children,r=(0,d.useState)(t),o=s()(r,2),i=o[0],a=o[1];return(0,y.jsx)(y.Fragment,{children:p().Children.map(n,(function(e,t){return p().cloneElement(e,{controlledIsOpen:i===t,onToggle:function(e){return function(e,t){a(!0===t?e:void 0)}(t,e)}})}))})};var A;const P=h.Ay.div.withConfig({displayName:"StyledPanelGroup"})(A||(A=m()(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),O.A.space(0),v,O.A.space(-1));function T(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 _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const D=function(e){return(0,y.jsx)(P,{children:(0,y.jsx)(j,_({},e))})};var C,I,R,M,N,L,F=n(64116),H=n(46937),B="1px",U=h.Ay.span.withConfig({displayName:"StyledIconWrapper"})(C||(C=m()(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),O.A.font(1),g.t7.color("text"),!H.A.isPrimaryTouchDevice()&&(0,h.AH)(I||(I=m()(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),g.t7.color("secondaryLight")));const V=h.Ay.div.withConfig({displayName:"StyledPanelHeader"})(R||(R=m()(["\n && {\n background-color: ",";\n display: flex;\n /* stylelint-disable declaration-block-no-redundant-longhand-properties */\n border-top-left-radius: calc("," - ",");\n border-top-right-radius: calc("," - ",");\n border-bottom-right-radius: calc("," - ",");\n border-bottom-left-radius: calc("," - ",");\n ","\n /* stylelint-enable declaration-block-no-redundant-longhand-properties */\n padding: ",";\n align-items: center;\n\n /* only apply arrow styles on non-touch devices */\n ","\n /* stylelint-disable-line rule-empty-line-before */\n > div {\n flex: 1 1 auto;\n }\n ","\n }\n"])),g.t7.color("backgroundPanelHeaderFooter"),g.t7.radii("form"),B,g.t7.radii("form"),B,g.t7.radii("form"),B,g.t7.radii("form"),B,(function(e){return e.isOpen&&(0,h.AH)(M||(M=m()(["\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n "])))}),(function(e){return e.isFramed?(0,h.AH)(N||(N=m()(["\n "," ","\n "])),O.A.space(-1.7),O.A.space(-.375)):0}),!H.A.isPrimaryTouchDevice()&&(0,h.AH)(L||(L=m()(["\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n "])),U),(function(e){return n=(t=e).theme,r=t.isOpen,o=t.isFramed,i="\n &:first-child {\n border-bottom-color: ".concat(n.colors.borderLight,";\n border-bottom-style: ").concat(o?"solid":"none",";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-color: ").concat(n.colors.borderLight,";\n border-top-style: ").concat(o?"solid":"none",";\n }\n "),r?"\n ".concat(i,"\n &:first-child {\n border-bottom-width: ").concat(B,";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-width: ").concat(B,";\n }\n "):"\n ".concat(i,"\n &:first-child {\n border-bottom-width: 0;\n }\n\n &:last-child {\n border-top-width: 0;\n }\n\n &:nth-child(3) {\n border-top-width: ").concat(B,";\n }\n ");var t,n,r,o,i}));var W=["children","isFramed","isOpen","isToggleable","showToggler","toggleOpenState","options"];const z={Body:E,Group:D,Header:function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,i=e.showToggler,a=void 0===i||i,c=e.toggleOpenState,s=e.options,u=void 0===s?{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}:s,d=l()(e,W);return(0,y.jsxs)(V,{isFramed:n,isOpen:r,onClick:c,"data-cy":d["data-cy"],children:[(0,y.jsx)("div",{children:p().Children.map(t,(function(e){return p().cloneElement(e)}))}),o&&a&&(0,y.jsx)(U,{children:(0,y.jsx)(F.A,{icon:r?"chevron-up":"chevron-down",onClick:c,title:r?u.collapseButtonText:u.unfoldButtonText})})]})},Wrapper:w};var q;const Y=h.Ay.div.withConfig({displayName:"StyledPanel"})(q||(q=m()(["\n && {\n background-color: ",";\n border: 1.5px "," ",";\n border-radius: ",";\n }\n"])),g.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),g.t7.color("borderLight"),g.t7.radii("form"));const $=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.isOpenInitial,i=void 0===o||o,a=(0,d.useState)(i),c=s()(a,2),u=c[0],l=c[1];return(0,y.jsx)(Y,{isFramed:r,children:p().Children.map(t,(function(e){return p().cloneElement(e,{isOpen:u,isToggleable:!i,isFramed:r,toggleOpenState:function(){return l(!u)}})}))})};var G,K;const J=h.Ay.div.withConfig({displayName:"StyledPanelBody"})(G||(G=m()(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?(0,h.AH)(K||(K=m()(["\n "," "," "," ","\n "])),O.A.space(-1),O.A.space(.2),O.A.space(.2),O.A.space(.2)):0}),(function(e){return e.isOpen?"block":"none"}));const X=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,y.jsx)(J,{isFramed:n,isOpen:r,children:(0,y.jsx)("div",{children:t})})};var Q;const Z=h.Ay.div.withConfig({displayName:"StyledPanelGroup"})(Q||(Q=m()(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),O.A.space(0),Y,O.A.space(-1));function ee(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 te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ne=function(e){return(0,y.jsx)(Z,{children:(0,y.jsx)(j,te({},e))})};var re,oe,ie,ae="1px",ce=h.Ay.div.withConfig({displayName:"StyledPanelHeader"})(re||(re=m()(["\n && {\n background-color: ",";\n display: flex;\n border-radius: calc("," - ",")\n calc("," - ",") 0 0;\n padding: ",";\n align-items: center;\n\n > div {\n flex: 1 1 auto;\n }\n\n * {\n font-weight: ",";\n }\n ","\n }\n"])),g.t7.color("paper"),g.t7.radii("form"),ae,g.t7.radii("form"),ae,(function(e){return e.isFramed?O.A.space(.2):0}),g.t7.fontWeight("regular"),(function(e){return n=(t=e).theme,r=t.isFramed,o="\n &:first-child {\n border-bottom-color: ".concat(n.colors.borderLight,";\n border-bottom-style: ").concat(r?"solid":"none",";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-color: ").concat(n.colors.borderLight,";\n border-top-style: ").concat(r?"solid":"none",";\n }\n "),"\n ".concat(o,"\n &:first-child {\n border-bottom-width: 0;\n }\n\n &:last-child {\n border-top-width: 0;\n }\n\n &:nth-child(3) {\n border-top-width: ").concat(ae,";\n }\n ");var t,n,r,o})),se=h.Ay.span.withConfig({displayName:"StyledIconWrapper"})(oe||(oe=m()(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),O.A.font(1),g.t7.color("text"),!H.A.isPrimaryTouchDevice()&&(0,h.AH)(ie||(ie=m()(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),g.t7.color("secondaryLight")));const ue=ce;const le={Body:X,Group:ne,Header:function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,i=e.showToggler,a=void 0===i||i,c=e.toggleOpenState,s=e.options,u=void 0===s?{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}:s;return(0,y.jsxs)(ue,{isFramed:n,isOpen:r,onClick:o?c:function(){},children:[(0,y.jsx)("div",{children:p().Children.map(t,(function(e){return p().cloneElement(e)}))}),o&&a&&(0,y.jsx)(se,{children:(0,y.jsx)(F.A,{icon:r?"chevron-up":"chevron-down",onClick:c,title:r?u.collapseButtonText:u.unfoldButtonText})})]})},Wrapper:$};var de={Body:a()(a()({},o.A.EmbedType.admin,z.Body),o.A.EmbedType.widget,le.Body),Group:a()(a()({},o.A.EmbedType.admin,z.Group),o.A.EmbedType.widget,le.Group),Header:a()(a()({},o.A.EmbedType.admin,z.Header),o.A.EmbedType.widget,le.Header),Wrapper:a()(a()({},o.A.EmbedType.admin,z.Wrapper),o.A.EmbedType.widget,le.Wrapper)};const pe={Body:o.A.embedStrategyFactory({mapping:de.Body}),Group:o.A.embedStrategyFactory({mapping:de.Group}),Header:o.A.embedStrategyFactory({mapping:de.Header}),Wrapper:o.A.embedStrategyFactory({mapping:de.Wrapper})}},86635:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof window}function o(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){return!!r()&&(e instanceof Node||e instanceof i(e).Node)}function c(e){return!!r()&&(e instanceof Element||e instanceof i(e).Element)}function s(e){return!!r()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function u(e){return!(!r()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function l(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function d(e){return["html","body","#document"].includes(o(e))}function p(e){return i(e).getComputedStyle(e)}function f(e){if("html"===o(e))return e;const t=e.assignedSlot||e.parentNode||u(e)&&e.host||function(e){var t;return null==(t=(a(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}(e);return u(t)?t.host:t}n.d(t,{$4:()=>f,L9:()=>p,Ng:()=>u,Tc:()=>l,eu:()=>d,sb:()=>s,vq:()=>c})},86649:(e,t,n)=>{var r=n(83221)();e.exports=r},87068:(e,t,n)=>{var r=n(37217),o=n(25911),i=n(21986),a=n(50689),c=n(5861),s=n(56449),u=n(3656),l=n(37167),d="[object Arguments]",p="[object Array]",f="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,h,g,v){var y=s(e),b=s(t),w=y?p:c(e),x=b?p:c(t),O=(w=w==d?f:w)==f,k=(x=x==d?f:x)==f,S=w==x;if(S&&u(e)){if(!u(t))return!1;y=!0,O=!1}if(S&&!O)return v||(v=new r),y||l(e)?o(e,t,n,h,g,v):i(e,t,w,n,h,g,v);if(!(1&n)){var E=O&&m.call(e,"__wrapped__"),j=k&&m.call(t,"__wrapped__");if(E||j){var A=E?e.value():e,P=j?t.value():t;return v||(v=new r),g(A,P,n,h,v)}}return!!S&&(v||(v=new r),a(e,t,n,h,g,v))}},87105:(e,t,n)=>{"use strict";n.d(t,{AO:()=>h,BV:()=>qt,C5:()=>Vt,Ge:()=>Pn,KP:()=>Dt,N_:()=>Cn,Ri:()=>pt,Ys:()=>An,Zp:()=>gt,bg:()=>Ft,g:()=>vt,ok:()=>Nn,pg:()=>Bt,qh:()=>Wt,zy:()=>ft});var r,o=n(4883),i=(n(16069),e=>{throw TypeError(e)}),a=(e,t,n)=>(((e,t,n)=>{t.has(e)||i("Cannot "+n)})(e,t,"read from private field"),n?n.call(e):t.get(e)),c="popstate";function s(e={}){let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:o=!1}=e;t=n.map(((e,t)=>l(e,"string"==typeof e?null:e.state,0===t?"default":void 0)));let i=s(null==r?t.length-1:r),a="POP",c=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function u(){return t[i]}function l(e,n=null,r){let o=m(t?u().pathname:"/",e,n,r);return p("/"===o.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),o}function d(e){return"string"==typeof e?e:h(e)}return{get index(){return i},get action(){return a},get location(){return u()},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?g(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){a="PUSH";let r=l(e,n);i+=1,t.splice(i,t.length,r),o&&c&&c({action:a,location:r,delta:1})},replace(e,n){a="REPLACE";let r=l(e,n);t[i]=r,o&&c&&c({action:a,location:r,delta:0})},go(e){a="POP";let n=s(i+e),r=t[n];i=n,c&&c({action:a,location:r,delta:e})},listen:e=>(c=e,()=>{c=null})}}function u(e={}){return v((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return m("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:h(t)}),null,e)}function l(e={}){return v((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=g(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),m("",{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){p("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function d(e,t){if(!1===e||null==e)throw new Error(t)}function p(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 m(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?g(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 g(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:i=!1}=r,a=o.history,s="POP",u=null,l=p();function p(){return(a.state||{idx:null}).idx}function g(){s="POP";let e=p(),t=null==e?null:e-l;l=e,u&&u({action:s,location:y.location,delta:t})}function v(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"==typeof e?e:h(e);return n=n.replace(/ $/,"%20"),d(t,`No window.location.(origin|href) available to create URL for href: ${n}`),new URL(n,t)}null==l&&(l=0,a.replaceState({...a.state,idx:l},""));let y={get action(){return s},get location(){return e(o,a)},listen(e){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(c,g),u=e,()=>{o.removeEventListener(c,g),u=null}},createHref:e=>t(o,e),createURL:v,encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let r=m(y.location,e,t);n&&n(r,e),l=p()+1;let c=f(r,l),d=y.createHref(r);try{a.pushState(c,"",d)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(d)}i&&u&&u({action:s,location:y.location,delta:1})},replace:function(e,t){s="REPLACE";let r=m(y.location,e,t);n&&n(r,e),l=p();let o=f(r,l),c=y.createHref(r);a.replaceState(o,"",c),i&&u&&u({action:s,location:y.location,delta:0})},go:e=>a.go(e)};return y}var y=class{constructor(e){var t,n,o;if(t=this,n=r,o=new Map,n.has(t)?i("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(a(this,r).has(e))return a(this,r).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw new Error("No value found for context")}set(e,t){a(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={}){return e.map(((e,o)=>{let i=[...n,String(o)],a="string"==typeof e.id?e.id:i.join("-");if(d(!0!==e.index||!e.children,"Cannot specify children on an index route"),d(!r[a],`Found a route id collision on id "${a}". Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let n={...e,...t(e),id:a};return r[a]=n,n}{let n={...e,...t(e),id:a,children:void 0};return r[a]=n,e.children&&(n.children=x(e.children,t,i,r)),n}}))}function O(e,t,n="/"){return k(e,t,n,!1)}function k(e,t,n,r){let o=F(("string"==typeof t?g(t):t).pathname||"/",n);if(null==o)return null;let i=E(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let e=0;null==a&&e<i.length;++e){let t=L(o);a=M(i[e],t,r)}return a}function S(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function E(e,t=[],n=[],r=""){let o=(e,o,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(d(a.relativePath.startsWith(r),`Absolute route path "${a.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),a.relativePath=a.relativePath.slice(r.length));let c=W([r,a.relativePath]),s=n.concat(a);e.children&&e.children.length>0&&(d(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),E(e.children,t,s,c)),(null!=e.path||e.index)&&t.push({path:c,score:R(c,e.index),routesMeta:s})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of j(e.path))o(e,t,n);else o(e,t)})),t}function j(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=j(r.join("/")),c=[];return c.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&c.push(...a),c.map((t=>e.startsWith("/")&&""===t?"/":t))}var A=/^:[\w-]+$/,P=3,T=2,_=1,D=10,C=-2,I=e=>"*"===e;function R(e,t){let n=e.split("/"),r=n.length;return n.some(I)&&(r+=C),t&&(r+=T),n.filter((e=>!I(e))).reduce(((e,t)=>e+(A.test(t)?P:""===t?_:D)),r)}function M(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",a=[];for(let e=0;e<r.length;++e){let c=r[e],s=e===r.length-1,u="/"===i?t:t.slice(i.length)||"/",l=N({path:c.relativePath,caseSensitive:c.caseSensitive,end:s},u),d=c.route;if(!l&&s&&n&&!r[r.length-1].route.index&&(l=N({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},u)),!l)return null;Object.assign(o,l.params),a.push({params:o,pathname:W([i,l.pathname]),pathnameBase:z(W([i,l.pathnameBase])),route:d}),"/"!==l.pathnameBase&&(i=W([i,l.pathnameBase]))}return a}function N(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){p("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let i=new RegExp(o,t?void 0:"i");return[i,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=c[r]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const o=c[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function L(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return p(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function F(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}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 V(e,t,n,r=!1){let o;"string"==typeof e?o=g(e):(o={...e},d(!o.pathname||!o.pathname.includes("?"),H("?","pathname","search",o)),d(!o.pathname||!o.pathname.includes("#"),H("#","pathname","hash",o)),d(!o.search||!o.search.includes("#"),H("#","search","hash",o)));let i,a=""===e||""===o.pathname,c=a?"/":o.pathname;if(null==c)i=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("/")}i=e>=0?t[e]:"/"}let s=function(e,t="/"){let{pathname:n,search:r="",hash:o=""}="string"==typeof e?g(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:q(r),hash:Y(o)}}(o,i),u=c&&"/"!==c&&c.endsWith("/"),l=(a||"."===c)&&n.endsWith("/");return s.pathname.endsWith("/")||!u&&!l||(s.pathname+="/"),s}var W=e=>e.join("/").replace(/\/\/+/g,"/"),z=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),q=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Y=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var $=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 G(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var K=["POST","PUT","PATCH","DELETE"],J=new Set(K),X=["GET",...K],Q=new Set(X),Z=new Set([301,302,303,307,308]),ee=new Set([307,308]),te={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ne={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},re={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},oe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ie=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ae="remix-router-transitions",ce=Symbol("ResetLoaderData");function se(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;d(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r,o,i,a=e.mapRouteProperties||ie,c={},s=x(e.routes,a,void 0,c),u=e.basename||"/",l=e.dataStrategy||Se,f={unstable_middleware:!1,...e.future},h=null,g=new Set,v=null,b=null,w=null,E=null!=e.hydrationData,j=O(s,e.history.location,u),A=!1,P=null;if(null==j&&!e.patchRoutesOnNavigation){let t=Be(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=He(s);j=n,P={[r.id]:t}}if(j&&!e.hydrationData){Ge(j,s,e.history.location.pathname).active&&(j=null)}if(j)if(j.some((e=>e.route.lazy)))o=!1;else if(j.some((e=>e.route.loader))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=j.findIndex((e=>void 0!==n[e.route.id]));o=j.slice(0,e+1).every((e=>!fe(e.route,t,n)))}else o=j.every((e=>!fe(e.route,t,n)))}else o=!0;else{o=!1,j=[];let t=Ge(null,s,e.history.location.pathname);t.active&&t.matches&&(A=!0,j=t.matches)}let T,_,D={historyAction:e.history.action,location:e.history.location,matches:j,initialized:o,navigation:te,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||P,fetchers:new Map,blockers:new Map},C="POP",I=!1,R=!1,M=new Map,N=null,L=!1,H=!1,B=new Set,U=new Map,V=0,W=-1,z=new Map,q=new Set,Y=new Map,$=new Map,K=new Set,J=new Map,X=null;function Q(e,t={}){D={...D,...e};let n=[],r=[];D.fetchers.forEach(((e,t)=>{"idle"===e.state&&(K.has(t)?n.push(t):r.push(t))})),K.forEach((e=>{D.fetchers.has(e)||U.has(e)||n.push(e)})),[...g].forEach((e=>e(D,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>xe(e))),r.forEach((e=>D.fetchers.delete(e)))}function Z(t,n,{flushSync:o}={}){let i,a=null!=D.actionData&&null!=D.navigation.formMethod&&Ke(D.navigation.formMethod)&&"loading"===D.navigation.state&&!0!==t.state?._isRedirect;i=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:a?D.actionData:null;let c=n.loaderData?Ne(D.loaderData,n.loaderData,n.matches||[],n.errors):D.loaderData,u=D.blockers;u.size>0&&(u=new Map(u),u.forEach(((e,t)=>u.set(t,re))));let l,d=!0===I||null!=D.navigation.formMethod&&Ke(D.navigation.formMethod)&&!0!==t.state?._isRedirect;if(r&&(s=r,r=void 0),L||"POP"===C||("PUSH"===C?e.history.push(t,t.state):"REPLACE"===C&&e.history.replace(t,t.state)),"POP"===C){let e=M.get(D.location.pathname);e&&e.has(t.pathname)?l={currentLocation:D.location,nextLocation:t}:M.has(t.pathname)&&(l={currentLocation:t,nextLocation:D.location})}else if(R){let e=M.get(D.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),M.set(D.location.pathname,e)),l={currentLocation:D.location,nextLocation:t}}Q({...n,actionData:i,loaderData:c,historyAction:C,location:t,initialized:!0,navigation:te,revalidation:"idle",restoreScrollPosition:$e(t,n.matches||D.matches),preventScrollReset:d,blockers:u},{viewTransitionOpts:l,flushSync:!0===o}),C="POP",I=!1,R=!1,L=!1,H=!1,X?.resolve(),X=null}async function ce(t,n,o){T&&T.abort(),T=null,C=t,L=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(v&&w){let n=Ye(e,t);v[n]=w()}}(D.location,D.matches),I=!0===(o&&o.preventScrollReset),R=!0===(o&&o.enableViewTransition);let i=r||s,a=o&&o.overrideNavigation,c=o?.initialHydration&&D.matches&&D.matches.length>0&&!A?D.matches:O(i,n,u),l=!0===(o&&o.flushSync);if(c&&D.initialized&&!H&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(D.location,n)&&!(o&&o.submission&&Ke(o.submission.formMethod)))return void Z(n,{matches:c},{flushSync:l});let d=Ge(c,i,n.pathname);if(d.active&&d.matches&&(c=d.matches),!c){let{error:e,notFoundMatches:t,route:r}=Ve(n.pathname);return void Z(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:l})}T=new AbortController;let p,f=De(e.history,n,T.signal,o&&o.submission),m=new y(e.unstable_getContext?await e.unstable_getContext():void 0);if(o&&o.pendingError)p=[Fe(c).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&Ke(o.submission.formMethod)){let t=await async function(e,t,n,r,o,i,a={}){ve();let c,s=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(Q({navigation:s},{flushSync:!0===a.flushSync}),i){let n=await Je(r,t.pathname,e.signal);if("aborted"===n.type)return{shortCircuited:!0};if("error"===n.type){let e=Fe(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}=Ve(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:n}]}}r=n.matches}let l=Xe(r,t);if(l.route.action||l.route.lazy){let t=await me("action",e,[l],r,o,null);if(c=t[l.route.id],!c)for(let e of r)if(t[e.route.id]){c=t[e.route.id];break}if(e.signal.aborted)return{shortCircuited:!0}}else c={type:"error",error:Be(405,{method:e.method,pathname:t.pathname,routeId:l.route.id})};if(qe(c)){let t;if(a&&null!=a.replace)t=a.replace;else{t=_e(c.response.headers.get("Location"),new URL(e.url),u)===D.location.pathname+D.location.search}return await de(e,c,!0,{submission:n,replace:t}),{shortCircuited:!0}}if(ze(c)){let e=Fe(r,l.route.id);return!0!==(a&&a.replace)&&(C="PUSH"),{matches:r,pendingActionResult:[e.route.id,c]}}return{matches:r,pendingActionResult:[l.route.id,c]}}(f,n,o.submission,c,m,d.active,{replace:o.replace,flushSync:l});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(ze(r)&&G(r.error)&&404===r.error.status)return T=null,void Z(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}c=t.matches||c,p=t.pendingActionResult,a=Ze(n,o.submission),l=!1,d.active=!1,f=De(e.history,f.url,f.signal)}let{shortCircuited:h,matches:g,loaderData:b,errors:x}=await async function(t,n,o,i,a,c,l,d,p,f,m,h){let g=c||Ze(n,l),v=l||d||Qe(g),y=!L&&!f;if(a){if(y){let e=se(h);Q({navigation:g,...void 0!==e?{actionData:e}:{}},{flushSync:m})}let e=await Je(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Fe(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=Ve(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let b=r||s,[w,x]=pe(e.history,D,o,v,n,!0===f,H,B,K,Y,q,b,u,h);if(W=++V,0===w.length&&0===x.length){let e=Ee();return Z(n,{matches:o,loaderData:{},errors:h&&ze(h[1])?{[h[0]]:h[1].error}:null,...Le(h),...e?{fetchers:new Map(D.fetchers)}:{}},{flushSync:m}),{shortCircuited:!0}}if(y){let e={};if(!a){e.navigation=g;let t=se(h);void 0!==t&&(e.actionData=t)}x.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=D.fetchers.get(e.key),n=et(void 0,t?t.data:void 0);D.fetchers.set(e.key,n)})),new Map(D.fetchers)}(x)),Q(e,{flushSync:m})}x.forEach((e=>{Oe(e.key),e.controller&&U.set(e.key,e.controller)}));let O=()=>x.forEach((e=>Oe(e.key)));T&&T.signal.addEventListener("abort",O);let{loaderResults:k,fetcherResults:S}=await he(o,w,x,t,i);if(t.signal.aborted)return{shortCircuited:!0};T&&T.signal.removeEventListener("abort",O);x.forEach((e=>U.delete(e.key)));let E=Ue(k);if(E)return await de(t,E.result,!0,{replace:p}),{shortCircuited:!0};if(E=Ue(S),E)return q.add(E.key),await de(t,E.result,!0,{replace:p}),{shortCircuited:!0};let{loaderData:j,errors:A}=Me(D,o,k,h,x,S);f&&D.errors&&(A={...D.errors,...A});let P=Ee(),_=je(W),C=P||_||x.length>0;return{matches:o,loaderData:j,errors:A,...C?{fetchers:new Map(D.fetchers)}:{}}}(f,n,c,m,d.active,a,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,l,p);h||(T=null,Z(n,{matches:g||c,...Le(p),loaderData:b,errors:x}))}function se(e){return e&&!ze(e[1])?{[e[0]]:e[1].data}:D.actionData?0===Object.keys(D.actionData).length?null:D.actionData:void 0}async function de(r,o,i,{submission:a,fetcherSubmission:c,preventScrollReset:s,replace:l}={}){o.response.headers.has("X-Remix-Revalidate")&&(H=!0);let p=o.response.headers.get("Location");d(p,"Expected a Location header on the redirect Response"),p=_e(p,new URL(r.url),u);let f=m(D.location,p,{_isRedirect:!0});if(n){let n=!1;if(o.response.headers.has("X-Remix-Reload-Document"))n=!0;else if(oe.test(p)){const r=e.history.createURL(p);n=r.origin!==t.location.origin||null==F(r.pathname,u)}if(n)return void(l?t.location.replace(p):t.location.assign(p))}T=null;let h=!0===l||o.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:g,formAction:v,formEncType:y}=D.navigation;!a&&!c&&g&&v&&y&&(a=Qe(D.navigation));let b=a||c;if(ee.has(o.response.status)&&b&&Ke(b.formMethod))await ce(h,f,{submission:{...b,formAction:p},preventScrollReset:s||I,enableViewTransition:i?R:void 0});else{let e=Ze(f,a);await ce(h,f,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:s||I,enableViewTransition:i?R:void 0})}}async function me(e,t,n,r,o,i){let s,d={};try{s=await Ae(l,e,t,n,r,i,c,a,o)}catch(e){return n.forEach((t=>{d[t.route.id]={type:"error",error:e}})),d}for(let[e,n]of Object.entries(s))if(We(n)){let o=n.result;d[e]={type:"redirect",response:Te(o,t,e,r,u)}}else d[e]=await Pe(n);return d}async function he(t,n,r,o,i){let a=me("loader",o,n,t,i,null),c=Promise.all(r.map((async t=>{if(t.matches&&t.match&&t.controller){let n=(await me("loader",De(e.history,t.path,t.controller.signal),[t.match],t.matches,i,t.key))[t.match.route.id];return{[t.key]:n}}return Promise.resolve({[t.key]:{type:"error",error:Be(404,{pathname:t.path})}})})));return{loaderResults:await a,fetcherResults:(await c).reduce(((e,t)=>Object.assign(e,t)),{})}}function ve(){H=!0,Y.forEach(((e,t)=>{U.has(t)&&B.add(t),Oe(t)}))}function ye(e,t,n={}){D.fetchers.set(e,t),Q({fetchers:new Map(D.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function be(e,t,n,r={}){let o=Fe(D.matches,t);xe(e),Q({errors:{[o.route.id]:n},fetchers:new Map(D.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function we(e){return $.set(e,($.get(e)||0)+1),K.has(e)&&K.delete(e),D.fetchers.get(e)||ne}function xe(e){let t=D.fetchers.get(e);!U.has(e)||t&&"loading"===t.state&&z.has(e)||Oe(e),Y.delete(e),z.delete(e),q.delete(e),K.delete(e),B.delete(e),D.fetchers.delete(e)}function Oe(e){let t=U.get(e);t&&(t.abort(),U.delete(e))}function ke(e){for(let t of e){let e=tt(we(t).data);D.fetchers.set(t,e)}}function Ee(){let e=[],t=!1;for(let n of q){let r=D.fetchers.get(n);d(r,`Expected fetcher: ${n}`),"loading"===r.state&&(q.delete(n),e.push(n),t=!0)}return ke(e),t}function je(e){let t=[];for(let[n,r]of z)if(r<e){let e=D.fetchers.get(n);d(e,`Expected fetcher: ${n}`),"loading"===e.state&&(Oe(n),z.delete(n),t.push(n))}return ke(t),t.length>0}function Ce(e){D.blockers.delete(e),J.delete(e)}function Ie(e,t){let n=D.blockers.get(e)||re;d("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(D.blockers);r.set(e,t),Q({blockers:r})}function Re({currentLocation:e,nextLocation:t,historyAction:n}){if(0===J.size)return;J.size>1&&p(!1,"A router only supports one blocker at a time");let r=Array.from(J.entries()),[o,i]=r[r.length-1],a=D.blockers.get(o);return a&&"proceeding"===a.state?void 0:i({currentLocation:e,nextLocation:t,historyAction:n})?o:void 0}function Ve(e){let t=Be(404,{pathname:e}),n=r||s,{matches:o,route:i}=He(n);return{notFoundMatches:o,route:i,error:t}}function Ye(e,t){if(b){return b(e,t.map((e=>S(e,D.loaderData))))||e.key}return e.key}function $e(e,t){if(v){let n=Ye(e,t),r=v[n];if("number"==typeof r)return r}return null}function Ge(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:k(n,r,u,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:k(n,r,u,!0)}}}return{active:!1,matches:null}}async function Je(t,n,o,i){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let l=t;for(;;){let t=null==r,d=r||s,p=c;try{await e.patchRoutesOnNavigation({signal:o,path:n,matches:l,fetcherKey:i,patch:(e,t)=>{o.aborted||ge(e,t,d,p,a)}})}catch(e){return{type:"error",error:e,partialMatches:l}}finally{t&&!o.aborted&&(s=[...s])}if(o.aborted)return{type:"aborted"};let f=O(d,n,u);if(f)return{type:"success",matches:f};let m=k(d,n,u,!0);if(!m||l.length===m.length&&l.every(((e,t)=>e.route.id===m[t].route.id)))return{type:"success",matches:null};l=m}}return i={get basename(){return u},get future(){return f},get state(){return D},get routes(){return s},get window(){return t},initialize:function(){if(h=e.history.listen((({action:t,location:n,delta:r})=>{if(_)return _(),void(_=void 0);p(0===J.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=Re({currentLocation:D.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise((e=>{_=e}));return e.history.go(-1*r),void Ie(o,{state:"blocked",location:n,proceed(){Ie(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(D.blockers);e.set(o,re),Q({blockers:e})}})}return ce(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(ae);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,M);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(ae,JSON.stringify(n))}catch(e){p(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,M);t.addEventListener("pagehide",e),N=()=>t.removeEventListener("pagehide",e)}return D.initialized||ce("POP",D.location,{initialHydration:!0}),i},subscribe:function(e){return g.add(e),()=>g.delete(e)},enableScrollRestoration:function(e,t,n){if(v=e,w=t,b=n||null,!E&&D.navigation===te){E=!0;let e=$e(D.location,D.matches);null!=e&&Q({restoreScrollPosition:e})}return()=>{v=null,w=null,b=null}},navigate:async function t(n,r){if("number"==typeof n)return void e.history.go(n);let o=ue(D.location,D.matches,u,n,r?.fromRouteId,r?.relative),{path:i,submission:a,error:c}=le(!1,o,r),s=D.location,l=m(D.location,i,r&&r.state);l={...l,...e.history.encodeLocation(l)};let d=r&&null!=r.replace?r.replace:void 0,p="PUSH";!0===d?p="REPLACE":!1===d||null!=a&&Ke(a.formMethod)&&a.formAction===D.location.pathname+D.location.search&&(p="REPLACE");let f=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,h=!0===(r&&r.flushSync),g=Re({currentLocation:s,nextLocation:l,historyAction:p});g?Ie(g,{state:"blocked",location:l,proceed(){Ie(g,{state:"proceeding",proceed:void 0,reset:void 0,location:l}),t(n,r)},reset(){let e=new Map(D.blockers);e.set(g,re),Q({blockers:e})}}):await ce(p,l,{submission:a,pendingError:c,preventScrollReset:f,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:h})},fetch:async function(t,n,o,i){Oe(t);let a=!0===(i&&i.flushSync),c=r||s,l=ue(D.location,D.matches,u,o,n,i?.relative),p=O(c,l,u),f=Ge(p,c,l);if(f.active&&f.matches&&(p=f.matches),!p)return void be(t,n,Be(404,{pathname:l}),{flushSync:a});let{path:m,submission:h,error:g}=le(!0,l,i);if(g)return void be(t,n,g,{flushSync:a});let v=Xe(p,m),b=new y(e.unstable_getContext?await e.unstable_getContext():void 0),w=!0===(i&&i.preventScrollReset);h&&Ke(h.formMethod)?await async function(t,n,o,i,a,c,l,p,f,m){function h(e){if(!e.route.action&&!e.route.lazy){let e=Be(405,{method:m.formMethod,pathname:o,routeId:n});return be(t,n,e,{flushSync:p}),!0}return!1}if(ve(),Y.delete(t),!l&&h(i))return;let g=D.fetchers.get(t);ye(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}(m,g),{flushSync:p});let v=new AbortController,y=De(e.history,o,v.signal,m);if(l){let e=await Je(a,o,y.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void be(t,n,e.error,{flushSync:p});if(!e.matches)return void be(t,n,Be(404,{pathname:o}),{flushSync:p});if(h(i=Xe(a=e.matches,o)))return}U.set(t,v);let b=V,w=await me("action",y,[i],a,c,t),x=w[i.route.id];if(y.signal.aborted)return void(U.get(t)===v&&U.delete(t));if(K.has(t)){if(qe(x)||ze(x))return void ye(t,tt(void 0))}else{if(qe(x))return U.delete(t),W>b?void ye(t,tt(void 0)):(q.add(t),ye(t,et(m)),de(y,x,!1,{fetcherSubmission:m,preventScrollReset:f}));if(ze(x))return void be(t,n,x.error)}let k=D.navigation.location||D.location,S=De(e.history,k,v.signal),E=r||s,j="idle"!==D.navigation.state?O(E,D.navigation.location,u):D.matches;d(j,"Didn't find any matches after fetcher action");let A=++V;z.set(t,A);let P=et(m,x.data);D.fetchers.set(t,P);let[_,I]=pe(e.history,D,j,m,k,!1,H,B,K,Y,q,E,u,[i.route.id,x]);I.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=D.fetchers.get(t),r=et(void 0,n?n.data:void 0);D.fetchers.set(t,r),Oe(t),e.controller&&U.set(t,e.controller)})),Q({fetchers:new Map(D.fetchers)});let R=()=>I.forEach((e=>Oe(e.key)));v.signal.addEventListener("abort",R);let{loaderResults:M,fetcherResults:N}=await he(j,_,I,S,c);if(v.signal.aborted)return;v.signal.removeEventListener("abort",R),z.delete(t),U.delete(t),I.forEach((e=>U.delete(e.key)));let L=Ue(M);if(L)return de(S,L.result,!1,{preventScrollReset:f});if(L=Ue(N),L)return q.add(L.key),de(S,L.result,!1,{preventScrollReset:f});let{loaderData:F,errors:$}=Me(D,j,M,void 0,I,N);if(D.fetchers.has(t)){let e=tt(x.data);D.fetchers.set(t,e)}je(A),"loading"===D.navigation.state&&A>W?(d(C,"Expected pending action"),T&&T.abort(),Z(D.navigation.location,{matches:j,loaderData:F,errors:$,fetchers:new Map(D.fetchers)})):(Q({errors:$,loaderData:Ne(D.loaderData,F,j,$),fetchers:new Map(D.fetchers)}),H=!1)}(t,n,m,v,p,b,f.active,a,w,h):(Y.set(t,{routeId:n,path:m}),await async function(t,n,r,o,i,a,c,s,u,l){let d=D.fetchers.get(t);ye(t,et(l,d?d.data:void 0),{flushSync:s});let p=new AbortController,f=De(e.history,r,p.signal);if(c){let e=await Je(i,r,f.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void be(t,n,e.error,{flushSync:s});if(!e.matches)return void be(t,n,Be(404,{pathname:r}),{flushSync:s});o=Xe(i=e.matches,r)}U.set(t,p);let m=V,h=await me("loader",f,[o],i,a,t),g=h[o.route.id];U.get(t)===p&&U.delete(t);if(f.signal.aborted)return;if(K.has(t))return void ye(t,tt(void 0));if(qe(g))return W>m?void ye(t,tt(void 0)):(q.add(t),void await de(f,g,!1,{preventScrollReset:u}));if(ze(g))return void be(t,n,g.error);ye(t,tt(g.data))}(t,n,m,v,p,b,f.active,a,w,h))},revalidate:function(){X||(X=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}}()),ve(),Q({revalidation:"loading"});let e=X.promise;return"submitting"===D.navigation.state?e:"idle"===D.navigation.state?(ce(D.historyAction,D.location,{startUninterruptedRevalidation:!0}),e):(ce(C||D.historyAction,D.navigation.location,{overrideNavigation:D.navigation,enableViewTransition:!0===R}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:we,deleteFetcher:function(e){let t=($.get(e)||0)-1;t<=0?($.delete(e),K.add(e)):$.set(e,t),Q({fetchers:new Map(D.fetchers)})},dispose:function(){h&&h(),N&&N(),g.clear(),T&&T.abort(),D.fetchers.forEach(((e,t)=>xe(t))),D.blockers.forEach(((e,t)=>Ce(t)))},getBlocker:function(e,t){let n=D.blockers.get(e)||re;return J.get(e)!==t&&J.set(e,t),n},deleteBlocker:Ce,patchRoutes:function(e,t){let n=null==r;ge(e,t,r||s,c,a),n&&(s=[...s],Q({}))},_internalFetchControllers:U,_internalSetRoutes:function(e){c={},r=x(e,a,void 0,c)}},i}function ue(e,t,n,r,o,i){let a,c;if(o){a=[];for(let e of t)if(a.push(e),e.route.id===o){c=e;break}}else a=t,c=t[t.length-1];let s=V(r||".",U(a),F(e.pathname,n)||e.pathname,"path"===i);if(null==r&&(s.search=e.search,s.hash=e.hash),(null==r||""===r||"."===r)&&c){let e=Je(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="/"===s.pathname?n:W([n,s.pathname])),h(s)}function le(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&&!Ge(n.formMethod))return{path:t,error:Be(405,{method:n.formMethod})};let r,o,i=()=>({path:t,error:Be(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),c=Ve(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!Ke(a))return i();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:a,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!Ke(a))return i();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:a,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return i()}}}if(d("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=Ce(n.formData),o=n.formData;else if(n.body instanceof FormData)r=Ce(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=Ie(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=Ie(r)}catch(e){return i()}let s={formMethod:a,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(Ke(s.formMethod))return{path:t,submission:s};let u=g(t);return e&&u.search&&Je(u.search)&&r.append("index",""),u.search=`?${r}`,{path:h(u),submission:s}}function de(e,t,n=!1){let r=e.findIndex((e=>e.route.id===t));return r>=0?e.slice(0,n?r+1:r):e}function pe(e,t,n,r,o,i,a,c,s,u,l,d,p,f){let m=f?ze(f[1])?f[1].error:f[1].data:void 0,h=e.createURL(t.location),g=e.createURL(o),v=n;i&&t.errors?v=de(n,Object.keys(t.errors)[0],!0):f&&ze(f[1])&&(v=de(n,f[0]));let y=f?f[1].statusCode:void 0,b=y&&y>=400,w=v.filter(((e,n)=>{let{route:o}=e;if(o.lazy)return!0;if(null==o.loader)return!1;if(i)return fe(o,t.loaderData,t.errors);if(function(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}(t.loaderData,t.matches[n],e))return!0;let c=t.matches[n],s=e;return he(e,{currentUrl:h,currentParams:c.params,nextUrl:g,nextParams:s.params,...r,actionResult:m,actionStatus:y,defaultShouldRevalidate:!b&&(a||h.pathname+h.search===g.pathname+g.search||h.search!==g.search||me(c,s))})})),x=[];return u.forEach(((e,o)=>{if(i||!n.some((t=>t.route.id===e.routeId))||s.has(o))return;let u=O(d,e.path,p);if(!u)return void x.push({key:o,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let f=t.fetchers.get(o),v=Xe(u,e.path),w=!1;l.has(o)?w=!1:c.has(o)?(c.delete(o),w=!0):w=f&&"idle"!==f.state&&void 0===f.data?a:he(v,{currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params,...r,actionResult:m,actionStatus:y,defaultShouldRevalidate:!b&&a}),w&&x.push({key:o,routeId:e.routeId,path:e.path,matches:u,match:v,controller:new AbortController})})),[w,x]}function fe(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=null!=t&&void 0!==t[e.id],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){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function he(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function ge(e,t,n,r,o){let i;if(e){let t=r[e];d(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),i=t.children}else i=n;let a=x(t.filter((e=>!i.some((t=>ve(e,t))))),o,[e||"_","patch",String(i?.length||"0")],r);i.push(...a)}function ve(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=>ve(e,t))))))}var ye=new WeakMap,be=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(d(o,"No route found in manifest"),!o.lazy||"object"!=typeof o.lazy)return;let i=o.lazy[e];if(!i)return;let a=ye.get(o);a||(a={},ye.set(o,a));let c=a[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)p(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),a[e]=Promise.resolve();else if(n)p(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await i();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 a[e]=s,s},we=new WeakMap;function xe(e){return void 0!==e}function Oe(e,t,n){let r=e.map((({route:e})=>{if("object"==typeof e.lazy&&e.lazy.unstable_middleware)return be({key:"unstable_middleware",route:e,manifest:t,mapRouteProperties:n})})).filter(xe);return r.length>0?Promise.all(r):void 0}async function ke(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 Se(e){return e.matches.some((e=>e.route.unstable_middleware))?Ee(e,!1,(()=>ke(e)),((e,t)=>({[t]:{type:"error",result:e}}))):ke(e)}async function Ee(e,t,n,r){let{matches:o,request:i,params:a,context:c}=e,s={handlerResult:void 0};try{let e=o.flatMap((e=>e.route.unstable_middleware?e.route.unstable_middleware.map((t=>[e.route.id,t])):[])),r=await je({request:i,params:a,context:c},e,t,s,n);return t?r:s.handlerResult}catch(e){if(!s.middlewareError)throw e;let n=await r(s.middlewareError.error,s.middlewareError.routeId);return t||!s.handlerResult?n:Object.assign(s.handlerResult,n)}}async function je(e,t,n,r,o,i=0){let{request:a}=e;if(a.signal.aborted){if(a.signal.reason)throw a.signal.reason;throw new Error(`Request aborted without an \`AbortSignal.reason\`: ${a.method} ${a.url}`)}let c=t[i];if(!c)return r.handlerResult=await o(),r.handlerResult;let s,[u,l]=c,d=!1,p=async()=>{if(d)throw new Error("You may only call `next()` once per middleware");d=!0;let a=await je(e,t,n,r,o,i+1);if(n)return s=a,s};try{let t=await l({request:e.request,params:e.params,context:e.context},p);return d?void 0===t?s:t:p()}catch(e){throw r.middlewareError?r.middlewareError.error!==e&&(r.middlewareError={routeId:u,error:e}):r.middlewareError={routeId:u,error:e},e}}async function Ae(e,t,n,r,o,i,a,c,s){let u=Oe(o,a,c),l=o.map((e=>function(e,t,n,r){let o=n[e.id];if(d(o,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=we.get(o);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{d("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 a=(i=e,w.has(i)),c=void 0!==o[e]&&"hasErrorBoundary"!==e;a?p(!a,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):c?p(!c,`Route "${o.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 i;Object.assign(o,n),Object.assign(o,{...r(o),lazy:void 0})})();return we.set(o,n),{lazyRoutePromise:n,lazyHandlerPromise:n}}let i,a=Object.keys(e.lazy),c=[];for(let o of a){let a=be({key:o,route:e,manifest:n,mapRouteProperties:r});a&&(c.push(a),o===t&&(i=a))}return{lazyRoutePromise:Promise.all(c).then((()=>{})),lazyHandlerPromise:i}}(e.route,t,a,c)));u&&await u;let f=o.map(((e,o)=>{let{lazyRoutePromise:i,lazyHandlerPromise:a}=l[o],c=r.some((t=>t.route.id===e.route.id));return{...e,shouldLoad:c,resolve:async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(c=!0),c?async function({type:e,request:t,match:n,lazyHandlerPromise:r,lazyRoutePromise:o,handlerOverride:i,scopedContext:a}){let c,s,u=r=>{let o,c=new Promise(((e,t)=>o=t));s=()=>o(),t.signal.addEventListener("abort",s);let u=o=>"function"!=typeof r?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${e}" [routeId: ${n.route.id}]`)):r({request:t,params:n.params,context:a},...void 0!==o?[o]:[]),l=(async()=>{try{return{type:"data",result:await(i?i((e=>u(e))):u())}}catch(e){return{type:"error",result:e}}})();return Promise.race([l,c])};try{let i=n.route[e];if(r||o)if(i){let e,[t]=await Promise.all([u(i).catch((t=>{e=t})),r,o]);if(void 0!==e)throw e;c=t}else{if(await r,i=n.route[e],!i){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw Be(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:"data",result:void 0}}[c]=await Promise.all([u(i),o])}else{if(!i){let e=new URL(t.url);throw Be(404,{pathname:e.pathname+e.search})}c=await u(i)}}catch(e){return{type:"error",result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return c}({type:t,request:n,match:e,lazyHandlerPromise:a,lazyRoutePromise:i,handlerOverride:r,scopedContext:s}):Promise.resolve({type:"data",result:void 0}))}})),m=await e({matches:f,request:n,params:o[0].params,fetcherKey:i,context:s}),h=l.flatMap((e=>Object.values(e).filter(xe)));try{await Promise.all(h)}catch(e){}return m}async function Pe(e){let{result:t,type:n}=e;if($e(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 $(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 $(t.init?.status||500,void 0,t.data),statusCode:G(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:G(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 Te(e,t,n,r,o){let i=e.headers.get("Location");if(d(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!oe.test(i)){let a=r.slice(0,r.findIndex((e=>e.route.id===n))+1);i=ue(new URL(t.url),a,o,i),e.headers.set("Location",i)}return e}function _e(e,t,n){if(oe.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=null!=F(o.pathname,n);if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function De(e,t,n,r){let o=e.createURL(Ve(t)).toString(),i={signal:n};if(r&&Ke(r.formMethod)){let{formMethod:e,formEncType:t}=r;i.method=e.toUpperCase(),"application/json"===t?(i.headers=new Headers({"Content-Type":t}),i.body=JSON.stringify(r.json)):"text/plain"===t?i.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?i.body=Ce(r.formData):i.body=r.formData}return new Request(o,i)}function Ce(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Ie(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Re(e,t,n,r=!1,o=!1){let i,a={},c=null,s=!1,u={},l=n&&ze(n[1])?n[1].error:void 0;return e.forEach((n=>{if(!(n.route.id in t))return;let p=n.route.id,f=t[p];if(d(!qe(f),"Cannot handle redirect results in processLoaderData"),ze(f)){let t=f.error;if(void 0!==l&&(t=l,l=void 0),c=c||{},o)c[p]=t;else{let n=Fe(e,p);null==c[n.route.id]&&(c[n.route.id]=t)}r||(a[p]=ce),s||(s=!0,i=G(f.error)?f.error.status:500),f.headers&&(u[p]=f.headers)}else a[p]=f.data,f.statusCode&&200!==f.statusCode&&!s&&(i=f.statusCode),f.headers&&(u[p]=f.headers)})),void 0!==l&&n&&(c={[n[0]]:l},a[n[0]]=void 0),{loaderData:a,errors:c,statusCode:i||200,loaderHeaders:u}}function Me(e,t,n,r,o,i){let{loaderData:a,errors:c}=Re(t,n,r);return o.forEach((t=>{let{key:n,match:r,controller:o}=t,a=i[n];if(d(a,"Did not find corresponding fetcher result"),!o||!o.signal.aborted)if(ze(a)){let t=Fe(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:a.error}),e.fetchers.delete(n)}else if(qe(a))d(!1,"Unhandled fetcher revalidation redirect");else{let t=tt(a.data);e.fetchers.set(n,t)}})),{loaderData:a,errors:c}}function Ne(e,t,n,r){let o=Object.entries(t).filter((([,e])=>e!==ce)).reduce(((e,[t,n])=>(e[t]=n,e)),{});for(let i of n){let n=i.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&i.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function Le(e){return e?ze(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Fe(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 He(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 Be(e,{pathname:t,routeId:n,method:r,type:o,message:i}={}){let a="Unknown Server Error",c="Unknown @remix-run/router error";return 400===e?(a="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?(a="Forbidden",c=`Route "${n}" does not match URL "${t}"`):404===e?(a="Not Found",c=`No route matches URL "${t}"`):405===e&&(a="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 $(e||500,a,new Error(c),!0)}function Ue(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(qe(r))return{key:n,result:r}}}function Ve(e){return h({..."string"==typeof e?g(e):e,hash:""})}function We(e){return $e(e.result)&&Z.has(e.result.status)}function ze(e){return"error"===e.type}function qe(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 $e(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Ge(e){return Q.has(e.toUpperCase())}function Ke(e){return J.has(e.toUpperCase())}function Je(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function Xe(e,t){let n="string"==typeof t?g(t).search:t.search;if(e[e.length-1].route.index&&Je(n||""))return e[e.length-1];let r=B(e);return r[r.length-1]}function Qe(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=i?{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0}:void 0!==a?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}:void 0}function Ze(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 et(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 tt(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 nt=o.createContext(null);nt.displayName="DataRouter";var rt=o.createContext(null);rt.displayName="DataRouterState";var ot=o.createContext({isTransitioning:!1});ot.displayName="ViewTransition";var it=o.createContext(new Map);it.displayName="Fetchers";var at=o.createContext(null);at.displayName="Await";var ct=o.createContext(null);ct.displayName="Navigation";var st=o.createContext(null);st.displayName="Location";var ut=o.createContext({outlet:null,matches:[],isDataRoute:!1});ut.displayName="Route";var lt=o.createContext(null);lt.displayName="RouteError";var dt=!0;function pt(){return null!=o.useContext(st)}function ft(){return d(pt(),"useLocation() may be used only in the context of a <Router> component."),o.useContext(st).location}var mt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ht(e){o.useContext(ct).static||o.useLayoutEffect(e)}function gt(){let{isDataRoute:e}=o.useContext(ut);return e?function(){let{router:e}=jt("useNavigate"),t=Pt("useNavigate"),n=o.useRef(!1);return ht((()=>{n.current=!0})),o.useCallback((async(r,o={})=>{p(n.current,mt),n.current&&("number"==typeof r?e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){d(pt(),"useNavigate() may be used only in the context of a <Router> component.");let e=o.useContext(nt),{basename:t,navigator:n}=o.useContext(ct),{matches:r}=o.useContext(ut),{pathname:i}=ft(),a=JSON.stringify(U(r)),c=o.useRef(!1);return ht((()=>{c.current=!0})),o.useCallback(((r,o={})=>{if(p(c.current,mt),!c.current)return;if("number"==typeof r)return void n.go(r);let s=V(r,JSON.parse(a),i,"path"===o.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:W([t,s.pathname])),(o.replace?n.replace:n.push)(s,o.state,o)}),[t,n,a,i,e])}()}o.createContext(null);function vt(){let{matches:e}=o.useContext(ut),t=e[e.length-1];return t?t.params:{}}function yt(e,{relative:t}={}){let{matches:n}=o.useContext(ut),{pathname:r}=ft(),i=JSON.stringify(U(n));return o.useMemo((()=>V(e,JSON.parse(i),r,"path"===t)),[e,i,r,t])}function bt(e,t,n,r){d(pt(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i,static:a}=o.useContext(ct),{matches:c}=o.useContext(ut),s=c[c.length-1],u=s?s.params:{},l=s?s.pathname:"/",f=s?s.pathnameBase:"/",m=s&&s.route;if(dt){let e=m&&m.path||"";It(l,!m||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=ft();if(t){let e="string"==typeof t?g(t):t;d("/"===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 y=h.pathname||"/",b=y;if("/"!==f){let e=f.replace(/^\//,"").split("/");b="/"+y.replace(/^\//,"").split("/").slice(e.length).join("/")}let w=!a&&n&&n.matches&&n.matches.length>0?n.matches:O(e,{pathname:b});dt&&(p(m||null!=w,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),p(null==w||void 0!==w[w.length-1].route.element||void 0!==w[w.length-1].route.Component||void 0!==w[w.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 x=St(w&&w.map((e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:W([f,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:W([f,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),c,n,r);return t&&x?o.createElement(st.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...h},navigationType:"POP"}},x):x}function wt(){let e=Tt(),t=G(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)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},c=null;return dt&&(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:a},"ErrorBoundary")," or"," ",o.createElement("code",{style:a},"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:i},n):null,c)}var xt=o.createElement(wt,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(ut.Provider,{value:this.props.routeContext},o.createElement(lt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function kt({routeContext:e,match:t,children:n}){let r=o.useContext(nt);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),o.createElement(ut.Provider,{value:e},n)}function St(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 i=e,a=n?.errors;if(null!=a){let e=i.findIndex((e=>e.route.id&&void 0!==a?.[e.route.id]));d(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let c=!1,s=-1;if(n)for(let e=0;e<i.length;e++){let t=i[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,i=s>=0?i.slice(0,s+1):[i[0]];break}}}return i.reduceRight(((e,r,u)=>{let l,d=!1,p=null,f=null;n&&(l=a&&r.route.id?a[r.route.id]:void 0,p=r.route.errorElement||xt,c&&(s<0&&0===u?(It("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,f=null):s===u&&(d=!0,f=r.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,u+1)),h=()=>{let t;return t=l?p:d?f:r.route.Component?o.createElement(r.route.Component,null):r.route.element?r.route.element:e,o.createElement(kt,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===u)?o.createElement(Ot,{location:n.location,revalidation:n.revalidation,component:p,error:l,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()}),null)}function Et(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function jt(e){let t=o.useContext(nt);return d(t,Et(e)),t}function At(e){let t=o.useContext(rt);return d(t,Et(e)),t}function Pt(e){let t=function(e){let t=o.useContext(ut);return d(t,Et(e)),t}(e),n=t.matches[t.matches.length-1];return d(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Tt(){let e=o.useContext(lt),t=At("useRouteError"),n=Pt("useRouteError");return void 0!==e?e:t.errors?.[n]}var _t=0;function Dt(e){let{router:t,basename:n}=jt("useBlocker"),r=At("useBlocker"),[i,a]=o.useState(""),c=o.useCallback((t=>{if("function"!=typeof e)return!!e;if("/"===n)return e(t);let{currentLocation:r,nextLocation:o,historyAction:i}=t;return e({currentLocation:{...r,pathname:F(r.pathname,n)||r.pathname},nextLocation:{...o,pathname:F(o.pathname,n)||o.pathname},historyAction:i})}),[n,e]);return o.useEffect((()=>{let e=String(++_t);return a(e),()=>t.deleteBlocker(e)}),[t]),o.useEffect((()=>{""!==i&&t.getBlocker(i,c)}),[t,i,c]),i&&r.blockers.has(i)?r.blockers.get(i):re}var Ct={};function It(e,t,n){t||Ct[e]||(Ct[e]=!0,p(!1,n))}var Rt={};function Mt(e,t){e||Rt[t]||(Rt[t]=!0,console.warn(t))}var Nt=!0;function Lt(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(Nt&&e.element&&p(!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&&(Nt&&e.hydrateFallbackElement&&p(!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&&(Nt&&e.errorElement&&p(!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}function Ft(e,t){return se({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:s({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,mapRouteProperties:Lt,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation}).initialize()}var Ht=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 Bt({router:e,flushSync:t}){let[n,r]=o.useState(e.state),[i,a]=o.useState(),[c,s]=o.useState({isTransitioning:!1}),[u,l]=o.useState(),[d,p]=o.useState(),[f,m]=o.useState(),h=o.useRef(new Map),g=o.useCallback(((n,{deletedFetchers:i,flushSync:c,viewTransitionOpts:f})=>{n.fetchers.forEach(((e,t)=>{void 0!==e.data&&h.current.set(t,e.data)})),i.forEach((e=>h.current.delete(e))),Mt(!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 g=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(Mt(null==f||g,"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."),f&&g){if(t&&c){t((()=>{d&&(u&&u.resolve(),d.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:f.currentLocation,nextLocation:f.nextLocation})}));let o=e.window.document.startViewTransition((()=>{t((()=>r(n)))}));return o.finished.finally((()=>{t((()=>{l(void 0),p(void 0),a(void 0),s({isTransitioning:!1})}))})),void t((()=>p(o)))}d?(u&&u.resolve(),d.skipTransition(),m({state:n,currentLocation:f.currentLocation,nextLocation:f.nextLocation})):(a(n),s({isTransitioning:!0,flushSync:!1,currentLocation:f.currentLocation,nextLocation:f.nextLocation}))}else t&&c?t((()=>r(n))):o.startTransition((()=>r(n)))}),[e.window,t,d,u]);o.useLayoutEffect((()=>e.subscribe(g)),[e,g]),o.useEffect((()=>{c.isTransitioning&&!c.flushSync&&l(new Ht)}),[c]),o.useEffect((()=>{if(u&&i&&e.window){let t=i,n=u.promise,c=e.window.document.startViewTransition((async()=>{o.startTransition((()=>r(t))),await n}));c.finished.finally((()=>{l(void 0),p(void 0),a(void 0),s({isTransitioning:!1})})),p(c)}}),[i,u,e.window]),o.useEffect((()=>{u&&i&&n.location.key===i.location.key&&u.resolve()}),[u,d,n.location,i]),o.useEffect((()=>{!c.isTransitioning&&f&&(a(f.state),s({isTransitioning:!0,flushSync:!1,currentLocation:f.currentLocation,nextLocation:f.nextLocation}),m(void 0))}),[c.isTransitioning,f]);let v=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:v,static:!1,basename:y})),[e,v,y]);return o.createElement(o.Fragment,null,o.createElement(nt.Provider,{value:b},o.createElement(rt.Provider,{value:n},o.createElement(it.Provider,{value:h.current},o.createElement(ot.Provider,{value:c},o.createElement(zt,{basename:y,location:n.location,navigationType:n.historyAction,navigator:v},o.createElement(Ut,{routes:e.routes,future:e.future,state:n})))))),null)}var Ut=o.memo((function({routes:e,future:t,state:n}){return bt(e,void 0,n,t)}));function Vt({to:e,replace:t,state:n,relative:r}){d(pt(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=o.useContext(ct);p(!i,"<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:a}=o.useContext(ut),{pathname:c}=ft(),s=gt(),u=V(e,U(a),c,"path"===r),l=JSON.stringify(u);return o.useEffect((()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})}),[s,l,r,t,n]),null}function Wt(e){d(!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 zt({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:a=!1}){d(!pt(),"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:i,static:a,future:{}})),[c,i,a]);"string"==typeof n&&(n=g(n));let{pathname:u="/",search:l="",hash:f="",state:m=null,key:h="default"}=n,v=o.useMemo((()=>{let e=F(u,c);return null==e?null:{location:{pathname:e,search:l,hash:f,state:m,key:h},navigationType:r}}),[c,u,l,f,m,h,r]);return p(null!=v,`<Router basename="${c}"> is not able to match the URL "${u}${l}${f}" because it does not start with the basename, so the <Router> won't render anything.`),null==v?null:o.createElement(ct.Provider,{value:s},o.createElement(st.Provider,{children:t,value:v}))}function qt({children:e,location:t}){return bt(Yt(e),t)}o.Component;function Yt(e,t=[]){let n=[];return o.Children.forEach(e,((e,r)=>{if(!o.isValidElement(e))return;let i=[...t,r];if(e.type===o.Fragment)return void n.push.apply(n,Yt(e.props.children,i));d(e.type===Wt,`[${"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>`),d(!e.props.index||!e.props.children,"An index route cannot have child routes.");let a={id:e.props.id||i.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&&(a.children=Yt(e.props.children,i)),n.push(a)})),n}var $t="get",Gt="application/x-www-form-urlencoded";function Kt(e){return null!=e&&"string"==typeof e.tagName}function Jt(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 Xt=null;var Qt=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Zt(e){return null==e||Qt.has(e)?e:(p(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Gt}"`),null)}function en(e,t){let n,r,o,i,a;if(function(e){return Kt(e)&&"form"===e.tagName.toLowerCase()}(e)){let a=e.getAttribute("action");r=a?F(a,t):null,n=e.getAttribute("method")||$t,o=Zt(e.getAttribute("enctype"))||Gt,i=new FormData(e)}else if(function(e){return Kt(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Kt(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||a.getAttribute("action");if(r=c?F(c,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||$t,o=Zt(e.getAttribute("formenctype"))||Zt(a.getAttribute("enctype"))||Gt,i=new FormData(a,e),!function(){if(null===Xt)try{new FormData(document.createElement("form"),0),Xt=!1}catch(e){Xt=!0}return Xt}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";i.append(`${e}x`,"0"),i.append(`${e}y`,"0")}else t&&i.append(t,r)}}else{if(Kt(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=$t,r=null,o=Gt,a=e}return i&&"text/plain"===o&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}function tn(e,t){if(!1===e||null==e)throw new Error(t)}async function nn(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 rn(e){return null!=e&&"string"==typeof e.page}function on(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 an(e,t,n,r,o,i){let a=(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"===i?t.filter(((e,t)=>a(e,t)||c(e,t))):"data"===i?t.filter(((t,i)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(a(t,i)||c(t,i))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 cn(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 sn(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!rn(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let i=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(i)||(n.add(i),e.push({key:i,link:o})),e}),[])}function un(e){return{__html:e}}Symbol("SingleFetchRedirect");function ln(e,t){let n="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===n.pathname?n.pathname="_root.data":t&&"/"===F(n.pathname,t)?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}o.Component;function dn({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://remix.run/guides/errors for more information."\n );\n '}});if(G(e))return o.createElement(pn,{title:"Unhandled Thrown Response!"},o.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),r);if(e instanceof Error)0;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);new Error(t)}return o.createElement(pn,{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 pn({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:i}=vn();return i.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(Sn,null):null)))}function fn(e){return!0===e}function mn(){let e=o.useContext(nt);return tn(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function hn(){let e=o.useContext(rt);return tn(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var gn=o.createContext(void 0);function vn(){let e=o.useContext(gn);return tn(e,"You must render this element inside a <HydratedRouter> element"),e}function yn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function bn(e,t,n){if(n&&!kn)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}function wn({page:e,...t}){let{router:n}=mn(),r=o.useMemo((()=>O(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?o.createElement(On,{page:e,matches:r,...t}):null}function xn(e){let{manifest:t,routeModules:n}=vn(),[r,i]=o.useState([]);return o.useEffect((()=>{let r=!1;return async function(e,t,n){return sn((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await nn(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(on).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||i(e)})),()=>{r=!0}}),[e,t,n]),r}function On({page:e,matches:t,...n}){let r=ft(),{manifest:i,routeModules:a}=vn(),{basename:c}=mn(),{loaderData:s,matches:u}=hn(),l=o.useMemo((()=>an(e,t,u,i,r,"data")),[e,t,u,i,r]),d=o.useMemo((()=>an(e,t,u,i,r,"assets")),[e,t,u,i,r]),p=o.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,o=!1;if(t.forEach((e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!l.some((t=>t.route.id===e.route.id))&&e.route.id in s&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?o=!0:n.add(e.route.id))})),0===n.size)return[];let u=ln(e,c);return o&&n.size>0&&u.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[u.pathname+u.search]}),[c,s,r,i,l,t,e,a]),f=o.useMemo((()=>cn(d,i)),[d,i]),m=xn(d);return o.createElement(o.Fragment,null,p.map((e=>o.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),f.map((e=>o.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),m.map((({key:e,link:t})=>o.createElement("link",{key:e,...t}))))}gn.displayName="FrameworkContext";var kn=!1;function Sn(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,ssr:i,renderMeta:a}=vn(),{router:c,static:s,staticContext:u}=mn(),{matches:l}=hn(),d=fn(i);a&&(a.didRenderScripts=!0);let p=bn(l,null,r);o.useEffect((()=>{0}),[]);let f=o.useMemo((()=>{let r=u?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",i=s?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${d?"":`import ${JSON.stringify(t.url)}`};\n${p.map(((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];tn(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:i,clientLoaderModule:a,clientMiddlewareModule:c,hydrateFallbackModule:s,module:u}=o,l=[...i?[{module:i,varName:`${r}_clientAction`}]:[],...a?[{module:a,varName:`${r}_clientLoader`}]:[],...c?[{module:c,varName:`${r}_clientMiddleware`}]:[],...s?[{module:s,varName:`${r}_HydrateFallback`}]:[],{module:u,varName:`${r}_main`}];return 1===l.length?`import * as ${r} from ${JSON.stringify(u)};`:[l.map((e=>`import * as ${e.varName} from "${e.module}";`)).join("\n"),`const ${r} = {${l.map((e=>`...${e.varName}`)).join(",")}};`].join("\n")})).join("\n")}\n ${d?`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),i=["/"];for(o.pop();o.length>0;)i.push(`/${o.join("/")}`),o.pop();i.forEach((e=>{let t=O(n.routes,e,n.basename);t&&t.forEach((e=>r.add(e.route.id)))}));let a=[...r].reduce(((e,n)=>Object.assign(e,{[n]:t.routes[n]})),{});return{...t,routes:a,sri:!!e||void 0}}(t,c),null,2)};`:""}\n window.__reactRouterRouteModules = {${p.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:un(r),type:void 0}),o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:un(i),type:"module",async:!0}))}),[]),m=kn?[]:function(e){return[...new Set(e)]}(t.entry.imports.concat(cn(p,t,{includeHydrateFallback:!0}))),h="object"==typeof t.sri?t.sri:{};return kn?null:o.createElement(o.Fragment,null,"object"==typeof t.sri?o.createElement("script",{"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:h})}}):null,d?null:o.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:h[t.url],suppressHydrationWarning:!0}),o.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:h[t.entry.module],suppressHydrationWarning:!0}),m.map((t=>o.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:h[t],suppressHydrationWarning:!0}))),f)}function En(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}var jn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{jn&&(window.__reactRouterVersion="7.5.0")}catch(e){}function An(e,t){return se({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:u({window:t?.window}),hydrationData:t?.hydrationData||Tn(),routes:e,mapRouteProperties:Lt,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function Pn(e,t){return se({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:l({window:t?.window}),hydrationData:t?.hydrationData||Tn(),routes:e,mapRouteProperties:Lt,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function Tn(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:_n(e.errors)}),e}function _n(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 $(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,Cn=o.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:i,replace:a,state:c,target:s,to:u,preventScrollReset:l,viewTransition:f,...m},g){let v,{basename:y}=o.useContext(ct),b="string"==typeof u&&Dn.test(u),w=!1;if("string"==typeof u&&b&&(v=u,jn))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),n=F(t.pathname,y);t.origin===e.origin&&null!=n?u=n+t.search+t.hash:w=!0}catch(e){p(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=function(e,{relative:t}={}){d(pt(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=o.useContext(ct),{hash:i,pathname:a,search:c}=yt(e,{relative:t}),s=a;return"/"!==n&&(s="/"===a?n:W([n,a])),r.createHref({pathname:s,search:c,hash:i})}(u,{relative:r}),[O,k,S]=function(e,t){let n=o.useContext(gn),[r,i]=o.useState(!1),[a,c]=o.useState(!1),{onFocus:s,onBlur:u,onMouseEnter:l,onMouseLeave:d,onTouchStart:p}=t,f=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 f.current&&e.observe(f.current),()=>{e.disconnect()}}}),[e]),o.useEffect((()=>{if(r){let e=setTimeout((()=>{c(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let m=()=>{i(!0)},h=()=>{i(!1),c(!1)};return n?"intent"!==e?[a,f,{}]:[a,f,{onFocus:yn(s,m),onBlur:yn(u,h),onMouseEnter:yn(l,m),onMouseLeave:yn(d,h),onTouchStart:yn(p,m)}]:[!1,f,{}]}(n,m),E=function(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:a,viewTransition:c}={}){let s=gt(),u=ft(),l=yt(e,{relative:a});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(u)===h(l);s(e,{replace:t,state:r,preventScrollReset:i,relative:a,viewTransition:c})}}),[u,s,l,n,r,t,e,i,a,c])}(u,{replace:a,state:c,target:s,preventScrollReset:l,relative:r,viewTransition:f});let j=o.createElement("a",{...m,...S,href:v||x,onClick:w||i?e:function(t){e&&e(t),t.defaultPrevented||E(t)},ref:En(g,k),target:s,"data-discover":b||"render"!==t?void 0:"true"});return O&&!b?o.createElement(o.Fragment,null,j,o.createElement(wn,{page:x})):j}));Cn.displayName="Link",o.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:i,to:a,viewTransition:c,children:s,...u},l){let p=yt(a,{relative:u.relative}),f=ft(),m=o.useContext(rt),{navigator:h,basename:g}=o.useContext(ct),v=null!=m&&function(e,t={}){let n=o.useContext(ot);d(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Mn("useViewTransitionState"),i=yt(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=F(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=F(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=N(i.pathname,c)||null!=N(i.pathname,a)}(p)&&!0===c,y=h.encodeLocation?h.encodeLocation(p).pathname:p.pathname,b=f.pathname,w=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&g&&(w=F(w,g)||w);const x="/"!==y&&y.endsWith("/")?y.length-1:y.length;let O,k=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(x),S=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),E={isActive:k,isPending:S,isTransitioning:v},j=k?e:void 0;O="function"==typeof n?n(E):[n,k?"active":null,S?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let A="function"==typeof i?i(E):i;return o.createElement(Cn,{...u,"aria-current":j,className:O,ref:l,style:A,to:a,viewTransition:c},"function"==typeof s?s(E):s)})).displayName="NavLink";var In=o.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:c=$t,action:s,onSubmit:u,relative:l,preventScrollReset:p,viewTransition:f,...m},g)=>{let v=Hn(),y=function(e,{relative:t}={}){let{basename:n}=o.useContext(ct),r=o.useContext(ut);d(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),a={...yt(e||".",{relative:t})},c=ft();if(null==e){a.search=c.search;let e=new URLSearchParams(a.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();a.search=n?`?${n}`:""}}e&&"."!==e||!i.route.index||(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(a.pathname="/"===a.pathname?n:W([n,a.pathname]));return h(a)}(s,{relative:l}),b="get"===c.toLowerCase()?"get":"post",w="string"==typeof s&&Dn.test(s);return o.createElement("form",{ref:g,method:b,action:y,onSubmit:r?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,o=r?.getAttribute("formmethod")||c;v(r||e.currentTarget,{fetcherKey:t,method:o,navigate:n,replace:i,state:a,relative:l,preventScrollReset:p,viewTransition:f})},...m,"data-discover":w||"render"!==e?void 0:"true"})}));function Rn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Mn(e){let t=o.useContext(nt);return d(t,Rn(e)),t}function Nn(e){p("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(Jt(e)),n=o.useRef(!1),r=ft(),i=o.useMemo((()=>function(e,t){let n=Jt(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]),a=gt(),c=o.useCallback(((e,t)=>{const r=Jt("function"==typeof e?e(i):e);n.current=!0,a("?"+r,t)}),[a,i]);return[i,c]}In.displayName="Form";var Ln=0,Fn=()=>`__${String(++Ln)}__`;function Hn(){let{router:e}=Mn("useSubmit"),{basename:t}=o.useContext(ct),n=Pt("useRouteId");return o.useCallback((async(r,o={})=>{let{action:i,method:a,encType:c,formData:s,body:u}=en(r,t);if(!1===o.navigate){let t=o.fetcherKey||Fn();await e.fetch(t,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||a,formEncType:o.encType||c,flushSync:o.flushSync})}else await e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||a,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})}),[e,t,n])}new TextEncoder},87296:(e,t,n)=>{var r,o=n(55481),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},87424:(e,t,n)=>{"use strict";t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(4883)),o=s(n(87695)),i=s(n(59321)),a=s(n(13486)),c=n(36462);function s(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}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 p(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){y(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}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e){return function(){var t,n=g(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()){var r=g(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return h(e)}(this,t)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(){return!0},w="suggestions-revealed",x="input-focused",O="input-changed",k="escape-pressed",S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(u,e);var t,n,o,s=m(u);function u(e){var t,n=e.alwaysRenderSuggestions;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),y(h(t=s.call(this)),"onDocumentMouseDown",(function(e){t.justClickedOnSuggestionsContainer=!1;for(var n=e.detail&&e.detail.target||e.target;null!==n&&n!==document;){if(n.getAttribute&&null!==n.getAttribute("data-suggestion-index"))return;if(n===t.suggestionsContainer)return void(t.justClickedOnSuggestionsContainer=!0);n=n.parentNode}})),y(h(t),"storeAutowhateverRef",(function(e){null!==e&&(t.autowhatever=e)})),y(h(t),"onSuggestionMouseEnter",(function(e,n){var r=n.sectionIndex,o=n.itemIndex;t.updateHighlightedSuggestion(r,o),e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!0),t.justMouseEntered=!0,setTimeout((function(){t.justMouseEntered=!1}))})),y(h(t),"highlightFirstSuggestion",(function(){t.updateHighlightedSuggestion(t.props.multiSection?0:null,0)})),y(h(t),"onDocumentMouseUp",(function(){t.pressedSuggestion&&!t.justSelectedSuggestion&&t.input.focus(),t.pressedSuggestion=null})),y(h(t),"onSuggestionMouseDown",(function(e){t.justSelectedSuggestion||(t.justSelectedSuggestion=!0,t.pressedSuggestion=e.target)})),y(h(t),"onSuggestionsClearRequested",(function(){var e=t.props.onSuggestionsClearRequested;e&&e()})),y(h(t),"onSuggestionSelected",(function(e,n){var r=t.props,o=r.alwaysRenderSuggestions,i=r.onSuggestionSelected,a=r.onSuggestionsFetchRequested;i&&i(e,n);var c=t.props.shouldKeepSuggestionsOnSelect(n.suggestion);o||c?a({value:n.suggestionValue,reason:"suggestion-selected"}):t.onSuggestionsClearRequested(),t.resetHighlightedSuggestion()})),y(h(t),"onSuggestionClick",(function(e){var n=t.props,r=n.alwaysRenderSuggestions,o=n.focusInputOnSuggestionClick,i=t.getSuggestionIndices(t.findSuggestionElement(e.target)),a=i.sectionIndex,c=i.suggestionIndex,s=t.getSuggestion(a,c),u=t.props.getSuggestionValue(s);t.maybeCallOnChange(e,u,"click"),t.onSuggestionSelected(e,{suggestion:s,suggestionValue:u,suggestionIndex:c,sectionIndex:a,method:"click"});var l=t.props.shouldKeepSuggestionsOnSelect(s);r||l||t.closeSuggestions(),!0===o?t.input.focus():t.onBlur(),setTimeout((function(){t.justSelectedSuggestion=!1}))})),y(h(t),"onBlur",(function(){var e=t.props,n=e.inputProps,r=e.shouldRenderSuggestions,o=n.value,i=n.onBlur,a=t.getHighlightedSuggestion(),c=r(o,"input-blurred");t.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!c}),i&&i(t.blurEvent,{highlightedSuggestion:a})})),y(h(t),"onSuggestionMouseLeave",(function(e){t.resetHighlightedSuggestion(!1),t.justSelectedSuggestion&&e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!1)})),y(h(t),"onSuggestionTouchStart",(function(){t.justSelectedSuggestion=!0})),y(h(t),"onSuggestionTouchMove",(function(){t.justSelectedSuggestion=!1,t.pressedSuggestion=null,t.input.focus()})),y(h(t),"itemProps",(function(e){return{"data-section-index":e.sectionIndex,"data-suggestion-index":e.itemIndex,onMouseEnter:t.onSuggestionMouseEnter,onMouseLeave:t.onSuggestionMouseLeave,onMouseDown:t.onSuggestionMouseDown,onTouchStart:t.onSuggestionTouchStart,onTouchMove:t.onSuggestionTouchMove,onClick:t.onSuggestionClick}})),y(h(t),"renderSuggestionsContainer",(function(e){var n=e.containerProps,r=e.children;return(0,t.props.renderSuggestionsContainer)({containerProps:n,children:r,query:t.getQuery()})})),t.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},t.justPressedUpDown=!1,t.justMouseEntered=!1,t.pressedSuggestion=null,t}return t=u,n=[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=0===this.state.highlightedSuggestionIndex&&this.props.highlightFirstSuggestion&&!e.highlightFirstSuggestion;(0,i.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered?this.highlightFirstSuggestion():t&&this.resetHighlightedSuggestion():this.willRenderSuggestions(e,"suggestions-updated")?(this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions(),t&&this.resetHighlightedSuggestion()):this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.suggestions,o=n.onSuggestionHighlighted,a=n.highlightFirstSuggestion;if(!(0,i.default)(r,e.suggestions)&&r.length>0&&a)this.highlightFirstSuggestion();else if(o){var c=this.getHighlightedSuggestion();c!=t.highlightedSuggestion&&o({suggestion:c})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var r=this;this.setState((function(o){var i=o.valueBeforeUpDown;return null===t?i=null:null===i&&void 0!==n&&(i=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:r.getSuggestion(e,t),valueBeforeUpDown:i}}))}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState((function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}}))}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,r=n.suggestions,o=n.multiSection,i=n.getSectionSuggestions;return o?i(r[e])[t]:r[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"==typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(t.getAttribute&&null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,n){var r=this.props.inputProps,o=r.value,i=r.onChange;t!==o&&i(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e,t){var n=e.suggestions,r=e.inputProps,o=e.shouldRenderSuggestions,i=r.value;return n.length>0&&o(i,t)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,o=t.renderInputComponent,i=t.onSuggestionsFetchRequested,s=t.renderSuggestion,u=t.inputProps,l=t.multiSection,d=t.renderSectionTitle,f=t.id,m=t.getSectionSuggestions,h=t.theme,g=t.getSuggestionValue,v=t.alwaysRenderSuggestions,y=t.highlightFirstSuggestion,S=t.containerProps,E=this.state,j=E.isFocused,A=E.isCollapsed,P=E.highlightedSectionIndex,T=E.highlightedSuggestionIndex,_=E.valueBeforeUpDown,D=v?b:this.props.shouldRenderSuggestions,C=u.value,I=u.onFocus,R=u.onKeyDown,M=this.willRenderSuggestions(this.props,"render"),N=v||j&&!A&&M,L=N?n:[],F=p({},u,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=D(C,x);e.setState({isFocused:!0,isCollapsed:!n}),I&&I(t),n&&i({value:C,reason:x})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,r=D(n,O);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(p({},y?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!r})),r?i({value:n,reason:O}):e.onSuggestionsClearRequested()},onKeyDown:function(t,r){var o=t.keyCode;switch(o){case 40:case 38:if(A)D(C,w)&&(i({value:C,reason:w}),e.revealSuggestions(),t.preventDefault());else if(n.length>0){var a,c=r.newHighlightedSectionIndex,s=r.newHighlightedItemIndex;a=null===s?null===_?C:_:e.getSuggestionValueByIndex(c,s),e.updateHighlightedSuggestion(c,s,C),e.maybeCallOnChange(t,a,40===o?"down":"up"),t.preventDefault()}e.justPressedUpDown=!0,setTimeout((function(){e.justPressedUpDown=!1}));break;case 13:if(229===t.keyCode)break;var u=e.getHighlightedSuggestion();if(N&&!v&&e.closeSuggestions(),null!=u){t.preventDefault();var l=g(u);e.maybeCallOnChange(t,l,"enter"),e.onSuggestionSelected(t,{suggestion:u,suggestionValue:l,suggestionIndex:T,sectionIndex:P,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout((function(){e.justSelectedSuggestion=!1}))}break;case 27:N&&t.preventDefault();var d=N&&!v;null===_?d||(e.maybeCallOnChange(t,"","escape"),D("",k)?i({value:"",reason:k}):e.onSuggestionsClearRequested()):e.maybeCallOnChange(t,_,"escape"),d?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}R&&R(t)}}),H={query:this.getQuery()};return r.default.createElement(a.default,{multiSection:l,items:L,renderInputComponent:o,renderItemsContainer:this.renderSuggestionsContainer,renderItem:s,renderItemData:H,renderSectionTitle:d,getSectionItems:m,highlightedSectionIndex:P,highlightedItemIndex:T,containerProps:S,inputProps:F,itemProps:this.itemProps,theme:(0,c.mapToAutowhateverTheme)(h),id:f,ref:this.storeAutowhateverRef})}}],n&&f(t.prototype,n),o&&f(t,o),u}(r.Component);t.default=S,y(S,"propTypes",{suggestions:o.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){var n=e[t];if("function"!=typeof n)throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!=typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},shouldKeepSuggestionsOnSelect:o.default.func,onSuggestionSelected:o.default.func,onSuggestionHighlighted:o.default.func,renderInputComponent:o.default.func,renderSuggestionsContainer:o.default.func,getSuggestionValue:o.default.func.isRequired,renderSuggestion:o.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n)throw new Error("'inputProps' must be passed.");if(!Object.prototype.hasOwnProperty.call(n,"value"))throw new Error("'inputProps' must have 'value'.");if(!Object.prototype.hasOwnProperty.call(n,"onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:o.default.func,alwaysRenderSuggestions:o.default.bool,multiSection:o.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:o.default.bool,highlightFirstSuggestion:o.default.bool,theme:o.default.object,id:o.default.string,containerProps:o.default.object}),y(S,"defaultProps",{renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return r.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,shouldKeepSuggestionsOnSelect:function(){return!1},focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:c.defaultTheme,id:"1",containerProps:{}})},87683:(e,t,n)=>{"use strict";n.d(t,{F3:()=>f,GT:()=>p,J9:()=>s,JF:()=>u,MT:()=>l,V1:()=>c});var r=n(81293),o=n(54819),i=n(62587),a=n(89160);function c(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}function s(e,t,n){return void 0===n&&(n={}),t.reduce((function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t}),{})}var u={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){0},onWarn:function(e){0}};function l(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function d(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function p(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,a=Intl.DisplayNames,c=(0,o.B)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{cache:d(e.dateTime),strategy:o.W.variadic}),s=(0,o.B)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{cache:d(e.number),strategy:o.W.variadic}),u=(0,o.B)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{cache:d(e.pluralRules),strategy:o.W.variadic});return{getDateTimeFormat:c,getNumberFormat:s,getMessageFormat:(0,o.B)((function(e,t,n,o){return new i.S(e,t,n,(0,r.Cl)({formatters:{getNumberFormat:s,getDateTimeFormat:c,getPluralRules:u}},o||{}))}),{cache:d(e.message),strategy:o.W.variadic}),getRelativeTimeFormat:(0,o.B)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,(0,r.fX)([void 0],e,!1)))}),{cache:d(e.relativeTime),strategy:o.W.variadic}),getPluralRules:u,getListFormat:(0,o.B)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,(0,r.fX)([void 0],e,!1)))}),{cache:d(e.list),strategy:o.W.variadic}),getDisplayNames:(0,o.B)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(a.bind.apply(a,(0,r.fX)([void 0],e,!1)))}),{cache:d(e.displayNames),strategy:o.W.variadic})}}function f(e,t,n,r){var o,i=e&&e[t];if(i&&(o=i[n]),o)return o;r(new a.OC("No ".concat(t," format named: ").concat(n)))}},87695:(e,t,n)=>{e.exports=n(915)()},87730:(e,t,n)=>{var r=n(29172),o=n(27301),i=n(86009),a=i&&i.isMap,c=a?o(a):r;e.exports=c},87805:(e,t,n)=>{var r=n(43360),o=n(75288);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},87978:(e,t,n)=>{var r=n(60270),o=n(58156),i=n(80631),a=n(28586),c=n(30756),s=n(89578),u=n(77797);e.exports=function(e,t){return a(e)&&c(t)?s(u(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},88097:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:()=>r})},88208:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r,o=n(22056),i=n.n(o),a=n(4883),c=n(69556),s=n(56375),u=n(7647),l=n(74848);const d=function(e){var t=e.promises,n=e.required,o=e.children,d=e.loadingText,p=e.className,f=(0,a.useState)(!1),m=i()(f,2),h=m[0],g=m[1],v=(0,a.useState)(!0),y=i()(v,2),b=y[0],w=y[1];(0,a.useEffect)((function(){return t&&Promise.all(t).then((function(){var e;e=!0,b&&g(e)})),function(){w(!1)}}),[]);var x=n&&Array.isArray(n)?!n.some((function(e){return!e})):!!t&&h;return(0,l.jsx)(u.A,{className:p,children:x?o:(0,l.jsxs)(u.i,{children:[r||(r=(0,l.jsx)(c.A,{size:"30px"},"loading-spinner")),d&&(0,l.jsx)(s.Ay.Span,{children:d},"loadingText")]})})}},88963:(e,t,n)=>{"use strict";function r(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function i(e){var t;return null==(t=(a(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function a(e){return e instanceof Node||e instanceof o(e).Node}function c(e){return e instanceof Element||e instanceof o(e).Element}function s(e){return e instanceof HTMLElement||e instanceof o(e).HTMLElement}function u(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}function l(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=v(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function d(e){return["table","td","th"].includes(r(e))}function p(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function f(e){const t=h(),n=c(e)?v(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function m(e){let t=b(e);for(;s(t)&&!g(t);){if(f(t))return t;if(p(t))return null;t=b(t)}return null}function h(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function g(e){return["html","body","#document"].includes(r(e))}function v(e){return o(e).getComputedStyle(e)}function y(e){return c(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function b(e){if("html"===r(e))return e;const t=e.assignedSlot||e.parentNode||u(e)&&e.host||i(e);return u(t)?t.host:t}function w(e){const t=b(e);return g(t)?e.ownerDocument?e.ownerDocument.body:e.body:s(t)&&l(t)?t:w(t)}function x(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=w(e),a=i===(null==(r=e.ownerDocument)?void 0:r.body),c=o(i);return a?t.concat(c,c.visualViewport||[],l(i)?i:[],c.frameElement&&n?x(c.frameElement):[]):t.concat(i,x(i,[],n))}n.d(t,{$4:()=>b,CP:()=>y,L9:()=>v,Lv:()=>d,Tc:()=>h,Tf:()=>p,ZU:()=>l,ep:()=>i,eu:()=>g,gJ:()=>m,mq:()=>r,sQ:()=>f,sb:()=>s,v9:()=>x,vq:()=>c,zk:()=>o})},88984:(e,t,n)=>{var r=n(55527),o=n(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},89160:(e,t,n)=>{"use strict";n.d(t,{Ho:()=>l,OC:()=>a,hr:()=>s,pg:()=>u,sb:()=>d,uo:()=>c});var r,o=n(81293);!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(r||(r={}));var i=function(e){function t(n,r,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return(i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return(0,o.C6)(t,e),t}(Error),a=function(e){function t(t,n){return e.call(this,r.UNSUPPORTED_FORMATTER,t,n)||this}return(0,o.C6)(t,e),t}(i),c=function(e){function t(t,n){return e.call(this,r.INVALID_CONFIG,t,n)||this}return(0,o.C6)(t,e),t}(i),s=function(e){function t(t,n){return e.call(this,r.MISSING_DATA,t,n)||this}return(0,o.C6)(t,e),t}(i),u=function(e){function t(t,n,o){var i=e.call(this,r.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(n,"\n"),o)||this;return i.locale=n,i}return(0,o.C6)(t,e),t}(i),l=function(e){function t(t,n,r,o){var i=e.call(this,"".concat(t,"\nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description,"\n"),n,o)||this;return i.descriptor=r,i.locale=n,i}return(0,o.C6)(t,e),t}(u),d=function(e){function t(t,n){var o=e.call(this,r.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map((function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)})).join(),")"):"id"," as fallback."))||this;return o.descriptor=t,o}return(0,o.C6)(t,e),t}(i)},89347:(e,t,n)=>{"use strict";n.d(t,{L:()=>i,v:()=>o});var r=n(57416),o=function(e){return!!e&&Object.values(r.A).indexOf(e)>=0},i=function(e,t){return!e||!t||t.includes(e)}},89578:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},89935:e=>{e.exports=function(){return!1}},90125:(e,t,n)=>{"use strict";n.d(t,{A:()=>pt});var r=n(26396),o=n.n(r),i=n(58156),a=n.n(i),c=n(61487),s=n(21259),u=n.n(s),l=function(e,t){return e.split(".").reduce((function(e,t){var n=e[e.length-1];return[].concat(u()(e),[n?"".concat(n,".").concat(t):t])}),[]).map((function(e){return"paths.".concat(e.split(".").join(".value.paths.")).split(".")})).map((function(e){return a()(t,e)}))};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 p(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 f={hasValue:function(e){var t=e.formValues,n=e.formField.locationMapping;return!!t[(0,c.I)(n.street)]},getValue:function(e){var t=e.formField,n=e.formData,r=t.locationMapping;return{street:n.formValues[(0,c.I)(r.street)]}},hideIfEmptyValue:function(){return!0},getEvents:function(e){var t=e.formField,n=e.formName,r=e.formData,o=e.events,i=t.locationMapping||{};return p(p({},o),{},{onChange:function(e){for(var o in i)if(i[o]&&void 0!==e[o]){var a=null!==e[o]?e[o]:"";r.changeFieldValue(n,i[o],a)}var c=e.street;if(r.changeFieldValue(n,t.id,p({},void 0!==c?{street:c||""}:{})),t.postcodeCityField){var s=e.postcode,u=e.city;r.changeFieldValue(n,t.postcodeCityField,p(p({},void 0!==s?{postcode:s||""}:{}),void 0!==u?{city:u||""}:{}))}},onBlur:function(){r.touchField(n,t.id)}})},dataContainerProps:function(e){var t=e.formField,n=e.formName;return{locations:[t.id],formValues:{formName:n,fields:t.locationMapping?Object.values(t.locationMapping).map((function(e){return(0,c.I)(e)})):{}}}},getOptions:function(e){var t=e.formField,n=e.formData;return{fetchSuggestions:function(e,r){return n.loadLocationsSuggestions(t.id,e,r,a()(t,"countries"))},validateLocation:function(e,r){return n.validateLocation(t.id,e,a()(t,"countries"),r)},isLoading:a()(n,["locations",t.id,"isLoading"],!1),suggestions:a()(n,["locations",t.id,"suggestions"],null),mapButtonTitle:n.intl.formatMessage({id:"client.component.location.mapButtonTitle"}),locationValues:Object.keys(t.locationMapping||{}).reduce((function(e,r){return p(p({},e),{},o()({},r,n.formValues[(0,c.I)(t.locationMapping[r])]))}),{})}},getMandatoryValidation:function(e){var t,n=e.formField,r=n.locationMapping,o=null===(t=n.siblings.find((function(e){return e.id===r.street})))||void 0===t?void 0:t.validation;return null==o?void 0:o.mandatory},isReadOnly:function(e){var t=e.formField,n=e.entity,r=t.locationMapping,o=l(r.street,n).slice(-1)[0];return!1===(null==o?void 0:o.writable)}},m={fixLabel:function(){return!0}},h={getOptions:function(e){var t=e.formData;return{trueLabel:t.intl.formatMessage({id:"client.common.yes"}),falseLabel:t.intl.formatMessage({id:"client.common.no"})}},hasValue:function(e){var t=e.value;return!0===t||!1===t}};var g=function(e,t){return{entityModel:e.model,key:e.key,field:t}},v=function(e,t){if(e.implicitModelField&&t.formValues){var n=e.implicitModelField,r=n.indexOf(".");return r>-1?function(e,t,n){var r=e.substring(0,t),o=e.substring(t+1),i=n.formValues[r];if(i){if(!Array.isArray(i))return g(i,o);if(1===i.length)return g(i[0],o)}return null}(n,r,t):t.formValues[n]}return e.implicitModel},y=function(e){if(e.implicitModelField){var t=e.implicitModelField,n=t.indexOf(".");return n>-1?[t.substring(0,n)]:[t]}return[]};const b={fixLabel:function(){return!0},getOptions:function(e){var t=e.formField,n=e.formData;return{mode:t.mode,implicitModel:v(t,n)}},dataContainerProps:function(e){var t=e.formField;return{formValues:{formName:e.formName,fields:y(t)}}}};var w=function(e){if(!e||isNaN(e))return null;var t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return[t,(n>9?"":"0")+n,(r>9?"":"0")+r].join("-")};const x={getOptions:function(){return{datePickerOptions:{dateToValue:w}}}},O={getOptions:function(e){var t=e.entityField;if("long"===(null==t?void 0:t.type))return{datePickerOptions:{valueToDate:function(e){var t=e?new Date(e):null;return isNaN(t)?null:t},dateToValue:function(e){return e?e.getTime():null}}}}},k={getOptions:function(e){var t=e.formField;return{postPointDigits:a()(t,"validation.decimalDigits.postPointDigits",null),prePointDigits:a()(t,"validation.decimalDigits.prePointDigits",null),minValue:a()(t,"validation.numberRange.fromIncluding",null),maxValue:a()(t,"validation.numberRange.toIncluding",null),allowNegative:!0}}};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 E(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){o()(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}const j={getOptions:function(e){var t=e.formField,n=e.formName,r=e.formData;return E(E({upload:function(e,o){r.uploadDocument(n,t.id,e,o)}},r.chooseDocument?{choose:function(e){return r.chooseDocument(r.setDocument,n,t.id,{multiSelection:!1,allowedFileTypes:t.allowedFileTypes},e)}}:{}),{},{uploadText:r.intl.formatMessage({id:"client.component.upload.upload"}),uploadingText:r.intl.formatMessage({id:"client.component.upload.uploading"}),downloadText:r.intl.formatMessage({id:"client.component.upload.downloadTitle"}),deleteText:r.intl.formatMessage({id:"client.component.upload.deleteTitle"}),allowedFileTypes:t.allowedFileTypes})},fixLabel:function(){return!0}};var A=function(e){return!e.validation||!e.validation.numberRange||"number"!=typeof e.validation.numberRange.fromIncluding||e.validation.numberRange.fromIncluding<0};const P={getOptions:function(e){var t=e.formField,n=e.formData;return{hoursLabel:n.intl.formatMessage({id:"client.component.duration.hoursLabel"}),minutesLabel:n.intl.formatMessage({id:"client.component.duration.minutesLabel"}),secondsLabel:n.intl.formatMessage({id:"client.component.duration.secondsLabel"}),allowNegative:A(t)}}};function T(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 _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const D={dataContainerProps:function(e){var t=e.formField,n=e.formName;return{locations:[t.id],formValues:{formName:n,fields:[t.id]}}},getValue:function(e){var t=e.formField,n=e.formData.formValues[t.id];return _(_({},n),null!=n&&n.distance?{}:{distance:10})},getOptions:function(e){var t=e.formField,n=e.formData;return{latitudeField:t.latitudeField,longitudeField:t.longitudeField,noResultsText:n.intl.formatMessage({id:"client.component.geosearch.noResultsText"}),emptySearchText:n.intl.formatMessage({id:"client.component.geosearch.emptySearchText"}),kmSuffixText:n.intl.formatMessage({id:"client.component.geosearch.km"}),suggestions:a()(n,["locations",t.id,"suggestions"],[]),isLoading:a()(n,["locations",t.id,"isLoading"],!1),fetchSuggestions:function(e,r){e?n.loadLocationsSuggestions(t.id,e,r,a()(t,"countries")):n.setLocationSuggestions(t.id,[])}}}};var C=function(e){if(!["email_editor","correspondence_editor"].includes(e))return{removeButtons:["Font","FontSize","TextColor"]}};const I={fixLabel:function(){return!0},getOptions:function(e){var t,n=e.formField;return t=n.htmlconfig,{defaultLinkTarget:["terms_editor"].includes(t)?"_blank":"notSet",ckEditorConfig:C(t)}}},R={getOptions:function(e){var t=e.formField;return{minValue:a()(t,"validation.numberRange.fromIncluding",null),maxValue:a()(t,"validation.numberRange.toIncluding",null)}}};function M(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 N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const L={hasValue:function(e){var t=e.formValues,n=e.formField.locationMapping;return!(!t[(0,c.I)(n.city)]&&!t[(0,c.I)(n.postcode)])},hideIfEmptyValue:function(){return!0},getValue:function(e){var t=e.formField,n=e.formData,r=t.locationMapping;return{postcode:n.formValues[(0,c.I)(r.postcode)],city:n.formValues[(0,c.I)(r.city)]}},getEvents:function(e){var t=e.formField,n=e.formName,r=e.formData,o=e.events,i=t.locationMapping||{};return N(N({},o),{},{onChange:function(e){for(var o in i)if(i[o]&&void 0!==e[o]&&"street"!==o){var a=null!==e[o]?e[o]:"";r.changeFieldValue(n,i[o],a)}var c=e.postcode,s=e.city;r.changeFieldValue(n,t.id,N(N({},void 0!==c?{postcode:c||""}:{}),void 0!==s?{city:s||""}:{}))},onBlur:function(){r.touchField(n,t.id)}})},dataContainerProps:function(e){var t=e.formField,n=e.formName;return{locations:[t.id],formValues:{formName:n,fields:t.locationMapping?Object.values(t.locationMapping).map((function(e){return(0,c.I)(e)})):{}}}},getOptions:function(e){var t=e.formField,n=e.formData;return{fetchSuggestions:function(e,r){return n.loadLocationsSuggestions(t.id,e,r,a()(t,"countries"))},validateLocation:function(e,r){return n.validateLocation(t.id,e,a()(t,"countries"),r)},isLoading:a()(n,["locations",t.id,"isLoading"],!1),suggestions:a()(n,["locations",t.id,"suggestions"],null),mapButtonTitle:n.intl.formatMessage({id:"client.component.location.mapButtonTitle"}),locationValues:Object.keys(t.locationMapping||{}).reduce((function(e,r){return N(N({},e),{},o()({},r,n.formValues[(0,c.I)(t.locationMapping[r])]))}),{})}},getMandatoryValidation:function(e){var t,n,r=e.formField,o=r.locationMapping,i=null===(t=r.siblings.find((function(e){return e.id===o.city})))||void 0===t?void 0:t.validation,a=null===(n=r.siblings.find((function(e){return e.id===o.postcode})))||void 0===n?void 0:n.validation;return(null==i?void 0:i.mandatory)||(null==a?void 0:a.mandatory)},isReadOnly:function(e){var t=e.formField,n=e.entity,r=t.locationMapping,o=l(r.city,n).slice(-1)[0],i=l(r.postcode,n).slice(-1)[0];return!1===(null==o?void 0:o.writable)||!1===(null==i?void 0:i.writable)}},F={getOptions:function(e){var t=e.formField;return{postPointDigits:a()(t,"validation.decimalDigits.postPointDigits",2),prePointDigits:a()(t,"validation.decimalDigits.prePointDigits",null),minValue:a()(t,"validation.numberRange.fromIncluding",null),maxValue:a()(t,"validation.numberRange.toIncluding",null),allowNegative:!0,fixedDecimalScale:!0}}},H={getOptions:function(e){var t=e.formField;return{prePointDigits:a()(t,"validation.decimalDigits.prePointDigits",null),postPointDigits:a()(t,"validation.decimalDigits.postPointDigits",null),minValue:a()(t,"validation.numberRange.fromIncluding",null),maxValue:a()(t,"validation.numberRange.toIncluding",null),allowNegative:!0}}},B={getOptions:function(e){var t=e.formField;return{prePointDigits:a()(t,"validation.decimalDigits.prePointDigits",null),postPointDigits:a()(t,"validation.decimalDigits.postPointDigits",null),minValue:a()(t,"validation.numberRange.fromIncluding",null),maxValue:a()(t,"validation.numberRange.toIncluding",null),allowNegative:!1,suffix:"%"}}},U={getOptions:function(e){var t=e.formField;return{customPhoneRegex:a()(t,"validation.phone.customRegex",null),defaultCountry:a()(t,"validation.phone.defaultRegion",null)}}};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 W(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}const z={getOptions:function(e){var t=e.formField,n=e.formName,r=e.formData;return W(W({upload:function(e,o){r.uploadDocuments(n,t.id,e,o)}},r.chooseDocument?{choose:function(e,o){return r.chooseDocument(r.setDocuments,n,t.id,{multiSelection:!0,allowedFileTypes:t.allowedFileTypes,rootNodes:o},e)}}:{}),{},{allowedFileTypes:t.allowedFileTypes,entityDocsOptions:t.entityDocsOptions})},fixLabel:function(){return!0}};var q=n(39892),Y=n.n(q),$=n(60115),G=n(74848),K=["entityKey","children"];function J(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 X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Q=50,Z=25,ee=function(e){return e.filter(Boolean).join(" and ")},te=function(e){return e&&Array.isArray(e)&&0!==e.length?"not KEYS(".concat(e.map((function(e){return e.key})).join(", "),")"):void 0},ne=function(e,t){return t.relationName&&a()(e,["entityModel","paths",t.relationName,"createPermission"],!1)&&a()(e,["entityModel","paths",t.relationName,"useRemoteFieldNewButton"],!0)},re=function(e,t){return null===e?null:X(X({},e),{},{display:a()(t,["relationEntitiesDefaultDisplays",e.model,e.key],null==e?void 0:e.display)})};const oe={dataContainerProps:function(e){var t=e.formField;return{relationEntities:[t.id],tooltips:[t.targetEntity],navigationStrategy:!0}},getOptions:function(e){var t=e.formField,n=e.formName,r=e.formData;return{options:a()(r,["relationEntities",t.id,"data"],[]),moreOptionsAvailable:a()(r,["relationEntities",t.id,"moreEntitiesAvailable"],!1),isLoading:a()(r,["relationEntities",t.id,"isLoading"],!1),fetchOptions:function(e){r.loadRelationEntities(t.id,t.targetEntity,{forceReload:!0,limit:t.itemCount||Z,formBase:t.formBase,formName:t.formName,where:ee([t.condition,te(e)]),loadRemoteFieldConfiguration:!0,constriction:t.constriction,optionDisplay:t.optionDisplay})},searchOptions:function(e,n){r.loadRelationEntities(t.id,t.targetEntity,{searchTerm:e,limit:t.itemCount||Q,forceReload:!0,formBase:t.formBase,formName:t.formName,where:ee([t.condition,te(n)]),loadRemoteFieldConfiguration:!0,constriction:t.constriction,optionDisplay:t.optionDisplay})},openDocsTreeSearch:t.displayDocsTree?function(e){return r.openDocsTreeSearch(n,t,e)}:void 0,openAdvancedSearch:!1===t.displayAdvancedSearch?void 0:function(e,o){return r.openAdvancedSearch(n,t,e,o)},tooltips:a()(r.tooltips,t.targetEntity,null),loadTooltip:function(e){return r.loadTooltip(t.targetEntity,e)},noResultsText:r.intl.formatMessage({id:"client.component.remoteselect.noResultsText"}),moreOptionsAvailableText:r.intl.formatMessage({id:"client.component.remoteselect.moreOptionsAvailableText"}),DetailLink:r.navigationStrategy&&r.navigationStrategy.DetailLink?function(e){var n=e.entityKey,o=e.children,i=Y()(e,K);return(0,G.jsx)(r.navigationStrategy.DetailLink,X(X({entityName:t.targetEntity,entityKey:n},i),{},{children:o}))}:null,createPermission:ne(r,t)&&($.A.isInWidgetEmbedded()?a()(t,"displayCreateButtonWidget",!1):a()(t,"displayCreateButton",!0)),openRemoteCreate:function(e){return r.openRemoteCreate(t,n,e)}}},getEvents:function(e){var t=e.events,n=e.formData;return X(X({},t),{},{onChange:function(e){var r=Array.isArray(e)?e.map((function(e){return re(e,n)})):re(e,n);null==t||t.onChange(r)}})}},ie={dataContainerProps:function(e){var t=e.formField;return{relationEntities:[t.id],tooltips:[t.targetEntity]}},getOptions:function(e){var t=e.formField,n=e.formData,r=null==t?void 0:t.options;return{options:a()(n,["relationEntities",t.id,"data"])||r||[],isLoading:a()(n,["relationEntities",t.id,"isLoading"],!1),tooltips:a()(n,["tooltips",t.targetEntity],null),loadTooltip:function(e){return null==n?void 0:n.loadTooltip(t.targetEntity,e)},noResultsText:null==n?void 0:n.intl.formatMessage({id:"client.component.remoteselect.noResultsText"}),fetchOptions:function(){t.targetEntity&&(null==n||n.loadRelationEntities(t.id,t.targetEntity,{forceReload:!1,constriction:t.constriction,where:t.condition,optionDisplay:t.optionDisplay}))}}}};function ae(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 ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function se(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 ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var le={address:f,binary:j,boolean:m,choice:{hasValue:function(e){return e.value.options.filter((function(e){return e.checked})).length>0},hideIfEmptyValue:function(){return!1},getOptions:function(e){var t=e.formField;return{selectionType:t.selectionType,renderHtmlInOptions:t.renderHtmlInOptions}}},code:b,counter:H,"data-amount":H,datetime:O,date:x,birthdate:x,"pulldown-date":x,decimal:k,document:j,double:k,duration:P,geosearch:D,format:{getOptions:function(e){var t=e.formField,n=t.prefix,r=t.blocks,o=t.delimiters,i=t.numericOnly,a=t.showDelimiterLazy,c=t.saveUnformatted,s=t.forceCase;return{prefix:n,blocks:r,delimiters:o,numericOnly:i,delimiterLazyShow:a,saveUnformatted:c,uppercase:"upper"===s,lowercase:"lower"===s}}},html:I,image:j,integer:R,location:L,long:R,moneyamount:F,marking:m,"multi-remote-field":oe,"multi-select-box":ie,"named-upload":j,number:H,phone:U,"pseudo-select":{hasValue:function(e){return e.value.options.filter((function(e){return e.selected})).length>0},hideIfEmptyValue:function(){return!1},getOptions:function(e){return{isMulti:e.formField.isMulti}}},"pseudo-multi-document":z,"search-filter":{dataContainerProps:function(e){return{searchFilters:[e.formField.model]}},getOptions:function(e){var t=e.formField,n=e.formData;return{isMulti:t.multiple,options:a()(n.searchFilters,t.model,null),fetchOptions:function(){return n.loadSearchFilters(t.model,t.group)},noResultsText:n.intl.formatMessage({id:"client.component.searchfilter.noResultsText"})}}},"single-remote-field":oe,"single-select-box":ie,sorting:H,terms:{getOptions:function(e){var t,n=e.formData,r=e.formField;return{terms:null===(t=n.terms)||void 0===t?void 0:t[r.type],loadTerms:function(){return n.loadTerms(r.type)}}},getEvents:function(e){var t=e.events,n=e.formData,r=e.formName,o=e.formField;return ce(ce({},t),{},{onChange:function(e){e&&!e.checked?n.changePristineFieldValue(r,o.id||o.path,e):t.onChange(e)}})}},percent:B,upload:j},de=ue({},le);const pe={editable:le,readOnly:ue({},le),list:de,search:ue(ue({},le),{},{boolean:h,marking:h})};var fe=n(73082),me=n(90179),he=n.n(me),ge=n(4883),ve=n(39264),ye=n(64116),be=n(92705),we=n(48854),xe=n(6463),Oe=n(16172),ke=n(85577);function Se(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 Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var je="yyyy-MM-dd",Ae=function(e){return(0,be.u)(e,je)?(0,we.qg)(e,je,new Date):(0,be.u)(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||(0,be.u)(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?(0,xe.o)(new Date(e)):null};const Pe={datetime:{type:"date",toRange:function(e){return{from:e?Ae(e).toISOString():null,to:e?(0,Oe.f)(Ae(e),1).toISOString():null,isRangeValue:!0}},fromRange:function(e){return null!=e&&e.from?(0,ke.GP)(new Date(e.from),je):null!=e&&e.to?(0,ke.GP)(new Date(e.to),je):null},getToOptions:function(e,t){return Ee(Ee({},e),{},{datePickerOptions:Ee({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return Ee(Ee({},e),{},{datePickerOptions:Ee({maxDate:t},null==e?void 0:e.datePickerOptions)})}},date:{getToOptions:function(e,t){return Ee(Ee({},e),{},{datePickerOptions:Ee({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return Ee(Ee({},e),{},{datePickerOptions:Ee({maxDate:t},null==e?void 0:e.datePickerOptions)})}}};var Te,_e,De,Ce,Ie,Re,Me=n(72189),Ne=n.n(Me),Le=n(6199),Fe=n(50098),He=n(26166),Be=n(57488),Ue=Le.Ay.div.withConfig({displayName:"StyledIconWrapper"})(Te||(Te=Ne()(["\n font-size: ",";\n color: ",";\n"])),He.A.font(-2.7),Be.t7.color("text")),Ve=Le.Ay.div.withConfig({displayName:"StyledRange"})(_e||(_e=Ne()(["\n display: flex;\n align-items: baseline;\n width: 100%;\n"]))),We=Le.Ay.div.withConfig({displayName:"StyledInput"})(De||(De=Ne()(["\n flex: 1;\n display: flex;\n flex-direction: column;\n\n ","\n"])),(function(e){return"row"===e.direction&&(0,Le.AH)(Ce||(Ce=Ne()(["\n flex-direction: row;\n gap: ",";\n align-items: center;\n\n * {\n font-size: ",";\n }\n "])),He.A.space(-.5),He.A.font(-.52))})),ze=(0,Le.Ay)(Fe.A).withConfig({displayName:"StyledBall"})(Ie||(Ie=Ne()(["\n align-self: start;\n position: relative;\n top: ","px;\n"])),(function(e){return e.isAdmin?"2.5":"8"}));function qe(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 Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const $e=function(e){var t=e.value,n=e.events,r=e.readOnly,o=e.type,i=e.options,a=e.fromText,c=e.toText,s=Pe[o],u=(null==t?void 0:t.isRangeValue)||!1,l=(0,ge.useRef)(t);l.current=t;var d,p,f=(0,ge.useMemo)((function(){return Ye(Ye({},n),{},{onChange:n.onChange})}),[n]),m={onChange:function(e){n.onChange(Ye(Ye({},l.current),{},{to:e}))}},h={onChange:function(e){n.onChange(Ye(Ye({},l.current),{},{from:e}))}},g=(null==s?void 0:s.type)||o,v=$.A.isInAdminEmbedded(),y=$.A.isInWidgetEmbedded(),b=(0,G.jsx)(ve.A,Ye(Ye({type:g},he()(e,["type"])),{},{events:f})),w=(0,G.jsxs)(We,{direction:y?"row":"column",children:[(0,G.jsx)(ve.A,Ye(Ye({},e),{},{options:(d=i,p=null==t?void 0:t.to,null!=s&&s.getFromOptions?s.getFromOptions(d,p):d),value:(null==t?void 0:t.from)||null,events:h,placeholder:a})),Re||(Re=(0,G.jsx)(Ue,{children:(0,G.jsx)(ye.A,{icon:"horizontal-rule"})})),(0,G.jsx)(ve.A,Ye(Ye({},e),{},{options:function(e,t){return null!=s&&s.getToOptions?s.getToOptions(e,t):e}(i,null==t?void 0:t.from),value:(null==t?void 0:t.to)||null,events:m,placeholder:c}))]});return(0,G.jsxs)(Ve,{children:[u?w:b,(0,G.jsx)(ze,{isAdmin:v,disabled:r,icon:u?"square-minus":"square-plus",onClick:function(){var e=u?function(e){return null!=s&&s.fromRange?s.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(t):function(e){return null!=s&&s.toRange?s.toRange(e):{from:e,to:e,isRangeValue:!0}}(t);n.onChange(e)}})]})};function Ge(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 Ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Je=function(e){var t,n=e.componentType,r=e.mappingType,o=e.range,i=e.formField,a=void 0===i?{}:i,c=e.entityField,s=e.formName,u=e.value,l=e.info,d=e.events,p=e.formData,f=a.dataType||a.componentType||n,m=null===(t=pe[r||"editable"])||void 0===t?void 0:t[f],h=function(e,t,n,r,o){return null!=e&&e.getOptions?e.getOptions({formField:t,formName:n,formData:r,entityField:o}):{}}(m,a,s,p,c),g=function(e,t,n,r,o,i){return null!=e&&e.getValue?e.getValue({formField:t,formName:n,formData:r,entityField:o,value:i}):i}(m,a,s,p,c,u),v=function(e,t,n,r,o,i){return null!=e&&e.getEvents?e.getEvents({formField:t,formName:n,formData:r,entityField:o,events:i}):i}(m,a,s,p,c,d),y=o?$e:ve.A;return(0,G.jsx)(y,Ke(Ke({type:n,events:v,value:g,options:h},l),o&&{fromText:p.intl.formatMessage({id:"client.component.range.from"}),toText:p.intl.formatMessage({id:"client.component.range.to"})}))};const Xe=function(e,t){return function(n){return(0,G.jsx)(Je,Ke({componentType:e,range:t},n))}};var Qe=n(30840);const Ze={dataContainerProps:function(){return{tooltips:["Resource"],navigationStrategy:!0}},getOptions:function(e){var t=e.formData;return t?{downloadText:t.intl.formatMessage({id:"client.component.upload.downloadTitle"}),tooltips:a()(t.tooltips,"Resource",null),loadTooltip:function(e){return t.loadTooltip("Resource",e)}}:{}}},et={dataContainerProps:function(e){return{tooltips:[e.formField.targetEntity],navigationStrategy:!0}},getOptions:function(e){var t=e.formField,n=e.formData;return{tooltips:a()(n.tooltips,t.targetEntity,null),loadTooltip:function(e){return n.loadTooltip(t.targetEntity,e)},navigationStrategy:n.navigationStrategy,linkProps:{entityName:t.targetEntity}}}},tt={binary:Ze,document:Ze,image:Ze,display:{getOptions:function(e){var t=e.formField;return{escapeHtml:Boolean(t.escapeHtml)}}},"multi-remote-field":et,"single-remote-field":et,description:{getOptions:function(e){var t=e.formField;return{mode:t.mode,title:t.title}},getValue:function(e){return e.formField.text}},number:{getOptions:function(e){var t=e.formField;return{postPointDigits:a()(t,"validation.decimalDigits.postPointDigits",null)}}},moneyamount:{getOptions:function(e){var t=e.formField;return{postPointDigits:a()(t,"validation.decimalDigits.postPointDigits",2)}}},percent:{getValue:function(e){var t=e.value;return t?t/100:t},getOptions:function(e){var t=e.formField;return{postPointDigits:a()(t,"validation.decimalDigits.postPointDigits",null)}}}};function nt(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 rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ot=function(e){var t=e.componentType,n=e.formField,r=e.value,o=e.formData,i=e.key,a=e.breakWords,c=e.useTitle,s=e.info,u=n.dataType||n.componentType,l=tt[u],d=function(e,t,n){return null!=e&&e.getOptions?e.getOptions({formField:t,formData:n}):{}}(l,n,o),p=function(e,t,n,r){return null!=e&&e.getValue?e.getValue({formField:t,formData:n,value:r}):r}(l,n,o,r);return(0,G.jsx)(Qe.A,rt({type:t,value:p,options:d,breakWords:a,useTitle:c},s),i)};const it=function(e){return function(t){return(0,G.jsx)(ot,rt(rt({},t),{},{componentType:e}))}};function at(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 ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var st={address:Xe("address"),binary:Xe("document"),birthdate:Xe("date"),boolean:Xe("boolean"),char:Xe("string"),choice:Xe("choice"),code:Xe("code"),count:Xe("string"),counter:Xe("integer"),createts:Xe("datetime"),createuser:Xe("string"),"compressed-text":Xe("text"),date:Xe("date"),datetime:Xe("datetime"),decimal:Xe("number"),display:it("html"),description:it("description"),document:Xe("document"),double:Xe("number"),duration:Xe("duration"),email:Xe("email"),format:Xe("format"),"fulltext-search":Xe("string"),html:Xe("html"),image:Xe("document"),identifier:Xe("string"),integer:Xe("integer"),ipaddress:Xe("string"),latitude:Xe("string"),location:Xe("location"),login:Xe("string"),long:Xe("integer"),longitude:Xe("string"),marking:Xe("boolean"),moneyamount:Xe("number"),"multi-remote-field":Xe("multi-remote"),"multi-select-box":Xe("multi-select"),"named-upload":Xe("document"),percent:Xe("number"),phone:Xe("phone"),postcode:Xe("string"),"pseudo-select":Xe("pseudo-select"),"pseudo-multi-document":Xe("pseudo-multi-document"),"pulldown-date":Xe("date"),"search-filter":Xe("search-filter"),serial:Xe("string"),"single-remote-field":Xe("remote"),"single-select-box":Xe("single-select"),sorting:Xe("integer"),string:Xe("string"),terms:Xe("terms"),text:Xe("text"),"text-area":Xe("text"),time:Xe("time"),updatets:Xe("datetime"),updateuser:Xe("string"),upload:Xe("document"),url:Xe("url"),uuid:Xe("string"),version:Xe("integer")},ut={address:Xe("address"),binary:it("document"),birthdate:it("date"),boolean:it("boolean"),code:it("text"),char:it("string"),choice:Xe("choice"),counter:it("integer"),createuser:it("string"),createts:it("datetime"),"compressed-text":it("text"),"data-amount":it("number"),date:it("date"),datetime:it("datetime"),decimal:it("number"),display:it("html"),description:it("description"),duration:it("duration"),document:it("document"),double:it("number"),email:it("email"),format:Xe("format"),html:it("html"),image:it("image"),ipaddress:it("string"),identifier:it("string"),latitude:it("string"),location:Xe("location"),login:it("string"),long:it("integer"),longitude:it("string"),moneyamount:it("number"),"multi-remote-field":it("multi-remote"),"multi-select-box":it("multi-select"),"named-upload":it("document"),integer:it("integer"),percent:it("percent"),phone:it("phone"),postcode:it("string"),"pseudo-select":Xe("pseudo-select"),"pulldown-date":it("date"),remote:it("remote"),"search-filter":it("search-filter"),serial:it("string"),"single-remote-field":it("remote"),"single-select-box":it("single-select"),sorting:it("integer"),string:it("string"),terms:Xe("terms"),text:it("text"),"text-area":it("text"),time:it("time"),updatets:it("datetime"),updateuser:it("string"),upload:it("document"),url:it("url"),uuid:it("string"),version:it("integer")};const lt={editable:st,readOnly:ut,list:ct(ct({},ut),{},{binary:it("document-compact"),document:it("document-compact"),image:it("document-compact")}),search:ct(ct({},st),{},{url:Xe("string"),text:Xe("string"),geosearch:Xe("geosearch"),html:Xe("string"),birthdate:Xe("date",!0),code:it("text",!0),date:Xe("date",!0),updatets:Xe("datetime",!0),createts:Xe("datetime",!0),datetime:Xe("datetime",!0),moneyamount:Xe("number",!0),percent:Xe("number",!0),long:Xe("integer",!0),integer:Xe("integer",!0),decimal:Xe("number",!0),counter:Xe("integer",!0),time:Xe("time",!0),boolean:Xe("boolean-select"),marking:Xe("boolean-select")})};var dt;const pt={factory:function(e,t){return lt[e]&<[e][t]?lt[e][t]:(fe.A.log("Unable to display field: unknown mapping type combination (".concat(e," / ").concat(t,")")),function(){return dt||(dt=(0,G.jsx)("span",{}))})},editableComponentConfigs:pe,formattedComponentConfigs:tt,getPathEntityFields:l}},90179:(e,t,n)=>{var r=n(34932),o=n(9999),i=n(19931),a=n(31769),c=n(21791),s=n(53138),u=n(38816),l=n(83349),d=u((function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,(function(t){return t=a(t,e),u||(u=t.length>1),t})),c(e,l(e),n),u&&(n=o(n,7,s));for(var d=t.length;d--;)i(n,t[d]);return n}));e.exports=d},90181:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},90289:(e,t,n)=>{var r=n(12651);e.exports=function(e){return r(this,e).get(e)}},90938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},91033:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},91344:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(4069);const o=(i=r.A,a=i.getIn,function(e,t){return function(n){var r=t||function(e){return a(e,"form")};return a(r(n),e+".initial")}});var i,a},92207:(e,t,n)=>{e.exports=n(7452)},92271:(e,t,n)=>{var r=n(21791),o=n(4664);e.exports=function(e,t){return r(e,o(e),t)}},92516:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});let r={};function o(){return r}},92705:(e,t,n)=>{"use strict";n.d(t,{u:()=>i});var r=n(32370),o=n(48854);function i(e,t,n){return(0,r.f)((0,o.qg)(e,t,new Date,n))}},92960:(e,t,n)=>{"use strict";n.d(t,{ZE:()=>i,Im:()=>s,tv:()=>l,Tu:()=>v,eW:()=>c,oF:()=>u,N1:()=>g,N6:()=>f,jA:()=>m,Jp:()=>p,xm:()=>h,Qh:()=>d,qg:()=>ce});var r=function(){return r=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},r.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var o,i,a;function c(e){return e.type===i.literal}function s(e){return e.type===i.argument}function u(e){return e.type===i.number}function l(e){return e.type===i.date}function d(e){return e.type===i.time}function p(e){return e.type===i.select}function f(e){return e.type===i.plural}function m(e){return e.type===i.pound}function h(e){return e.type===i.tag}function g(e){return!(!e||"object"!=typeof e||e.type!==a.number)}function v(e){return!(!e||"object"!=typeof e||e.type!==a.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(o||(o={})),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"}(i||(i={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(a||(a={}));var y=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,b=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function w(e){var t={};return e.replace(b,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var x=function(){return x=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},x.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var O=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var k=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,S=/^(@+)?(\+|#+)?[rs]?$/g,E=/(\*)(0+)|(#+)(0+)|(0+)/g,j=/^(0+)$/;function A(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(S,(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 P(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 T(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)),!j.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function _(e){var t=P(e);return t||{}}function D(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.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=o.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=x(x(x({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return x(x({},e),_(t))}),{}));continue;case"engineering":t=x(x(x({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return x(x({},e),_(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(o.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(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(E,(function(e,n,r,o,i,a){if(n)t.minimumIntegerDigits=r.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(j.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(k.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(k,(function(e,n,r,o,i,a){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var i=o.options[0];"w"===i?t=x(x({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=x(x({},t),A(i)))}else if(S.test(o.stem))t=x(x({},t),A(o.stem));else{var a=P(o.stem);a&&(t=x(x({},t),a));var c=T(o.stem);c&&(t=x(x({},t),c))}}return t}var C,I={"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"]};function R(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,r=e.language;return"root"!==r&&(n=e.maximize().region),(I[n||""]||I[r||""]||I["".concat(r,"-001")]||I["001"])[0]}var M=new RegExp("^".concat(y.source,"*")),N=new RegExp("".concat(y.source,"*$"));function L(e,t){return{start:e,end:t}}var F=!!String.prototype.startsWith&&"_a".startsWith("a",1),H=!!String.fromCodePoint,B=!!Object.fromEntries,U=!!String.prototype.codePointAt,V=!!String.prototype.trimStart,W=!!String.prototype.trimEnd,z=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},q=!0;try{q="a"===(null===(C=Z("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===C?void 0:C[0])}catch(e){q=!1}var Y,$=F?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},G=H?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,i=0;o>i;){if((n=e[i++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},K=B?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o[0],a=o[1];t[i]=a}return t},J=U?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},X=V?function(e){return e.trimStart()}:function(e){return e.replace(M,"")},Q=W?function(e){return e.trimEnd()}:function(e){return e.replace(N,"")};function Z(e,t){return new RegExp(e,t)}if(q){var ee=Z("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Y=function(e,t){var n;return ee.lastIndex=t,null!==(n=ee.exec(e)[1])&&void 0!==n?n:""}}else Y=function(e,t){for(var n=[];;){var r=J(e,t);if(void 0===r||oe(r)||ie(r))break;n.push(r),t+=r>=65536?2:1}return G.apply(void 0,n)};var te=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var a=this.char();if(123===a){if((c=this.parseArgument(e,n)).err)return c;r.push(c.val)}else{if(125===a&&e>0)break;if(35!==a||"plural"!==t&&"selectordinal"!==t){if(60===a&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(o.UNMATCHED_CLOSING_TAG,L(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&ne(this.peek()||0)){if((c=this.parseTag(e,t)).err)return c;r.push(c.val)}else{var c;if((c=this.parseLiteral(e,t)).err)return c;r.push(c.val)}}else{var s=this.clonePosition();this.bump(),r.push({type:i.pound,location:L(s,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:i.literal,value:"<".concat(r,"/>"),location:L(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(e+1,t,!0);if(a.err)return a;var c=a.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ne(this.char()))return this.error(o.INVALID_TAG,L(s,this.clonePosition()));var u=this.clonePosition();return r!==this.parseTagName()?this.error(o.UNMATCHED_CLOSING_TAG,L(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:i.tag,value:r,children:c,location:L(n,this.clonePosition())},err:null}:this.error(o.INVALID_TAG,L(s,this.clonePosition())))}return this.error(o.UNCLOSED_TAG,L(n,this.clonePosition()))}return this.error(o.INVALID_TAG,L(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&re(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{var a=this.tryParseUnquoted(e,t);if(a)r+=a;else{var c=this.tryParseLeftAngleBracket();if(!c)break;r+=c}}}var s=L(n,this.clonePosition());return{val:{type:i.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ne(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return G.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),G(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(o.EXPECT_ARGUMENT_CLOSING_BRACE,L(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(o.EMPTY_ARGUMENT,L(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(o.MALFORMED_ARGUMENT,L(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(o.EXPECT_ARGUMENT_CLOSING_BRACE,L(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:i.argument,value:r,location:L(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(o.EXPECT_ARGUMENT_CLOSING_BRACE,L(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(o.MALFORMED_ARGUMENT,L(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Y(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:L(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,c){var s,u=this.clonePosition(),l=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(l){case"":return this.error(o.EXPECT_ARGUMENT_TYPE,L(u,d));case"number":case"date":case"time":this.bumpSpace();var p=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition();if((O=this.parseSimpleArgStyleIfPossible()).err)return O;if(0===(v=Q(O.val)).length)return this.error(o.EXPECT_ARGUMENT_STYLE,L(this.clonePosition(),this.clonePosition()));p={style:v,styleLocation:L(f,this.clonePosition())}}if((k=this.tryParseArgumentClose(c)).err)return k;var m=L(c,this.clonePosition());if(p&&$(null==p?void 0:p.style,"::",0)){var h=X(p.style.slice(2));if("number"===l)return(O=this.parseNumberSkeletonFromString(h,p.styleLocation)).err?O:{val:{type:i.number,value:n,location:m,style:O.val},err:null};if(0===h.length)return this.error(o.EXPECT_DATE_TIME_SKELETON,m);var g=h;this.locale&&(g=function(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 a=1+(1&i),c=i<2?1:3+(i>>1),s=R(t);for("H"!=s&&"k"!=s||(c=0);c-- >0;)n+="a";for(;a-- >0;)n=s+n}else n+="J"===o?"H":o}return n}(h,this.locale));var v={type:a.dateTime,pattern:g,location:p.styleLocation,parsedOptions:this.shouldParseSkeletons?w(g):{}};return{val:{type:"date"===l?i.date:i.time,value:n,location:m,style:v},err:null}}return{val:{type:"number"===l?i.number:"date"===l?i.date:i.time,value:n,location:m,style:null!==(s=null==p?void 0:p.style)&&void 0!==s?s:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(o.EXPECT_SELECT_ARGUMENT_OPTIONS,L(y,r({},y)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),x=0;if("select"!==l&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,L(this.clonePosition(),this.clonePosition()));var O;if(this.bumpSpace(),(O=this.tryParseDecimalInteger(o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,o.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return O;this.bumpSpace(),b=this.parseIdentifierIfPossible(),x=O.val}var k,S=this.tryParsePluralOrSelectOptions(e,l,t,b);if(S.err)return S;if((k=this.tryParseArgumentClose(c)).err)return k;var E=L(c,this.clonePosition());return"select"===l?{val:{type:i.select,value:n,options:K(S.val),location:E},err:null}:{val:{type:i.plural,value:n,options:K(S.val),offset:x,pluralType:"plural"===l?"cardinal":"ordinal",location:E},err:null};default:return this.error(o.INVALID_ARGUMENT_TYPE,L(u,d))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(o.EXPECT_ARGUMENT_CLOSING_BRACE,L(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(o.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,L(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(O).filter((function(e){return e.length>0}));n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],a=o.slice(1),c=0,s=a;c<s.length;c++)if(0===s[c].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:a})}return t}(e)}catch(e){return this.error(o.INVALID_NUMBER_SKELETON,t)}return{val:{type:a.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?D(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,a=!1,c=[],s=new Set,u=r.value,l=r.location;;){if(0===u.length){var d=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var p=this.tryParseDecimalInteger(o.EXPECT_PLURAL_ARGUMENT_SELECTOR,o.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;l=L(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}if(s.has(u))return this.error("select"===t?o.DUPLICATE_SELECT_ARGUMENT_SELECTOR:o.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===u&&(a=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?o.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:o.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,L(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(e+1,t,n);if(m.err)return m;var h=this.tryParseArgumentClose(f);if(h.err)return h;c.push([u,{value:m.val,location:L(f,this.clonePosition())}]),s.add(u),this.bumpSpace(),u=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===c.length?this.error("select"===t?o.EXPECT_SELECT_ARGUMENT_SELECTOR:o.EXPECT_PLURAL_ARGUMENT_SELECTOR,L(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(o.MISSING_OTHER_CLAUSE,L(this.clonePosition(),this.clonePosition())):{val:c,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var c=L(r,this.clonePosition());return o?z(i*=n)?{val:i,err:null}:this.error(t,c):this.error(e,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=J(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if($(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&oe(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function ne(e){return e>=97&&e<=122||e>=65&&e<=90}function re(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function oe(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function ie(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function ae(e){e.forEach((function(e){if(delete e.location,p(e)||f(e))for(var t in e.options)delete e.options[t].location,ae(e.options[t].value);else u(e)&&g(e.style)||(l(e)||d(e))&&v(e.style)?delete e.style.location:h(e)&&ae(e.children)}))}function ce(e,t){void 0===t&&(t={}),t=r({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new te(e,t).parse();if(n.err){var i=SyntaxError(o[n.err.kind]);throw i.location=n.err.location,i.originalMessage=n.err.message,i}return(null==t?void 0:t.captureLocation)||ae(n.val),n.val}},93243:(e,t,n)=>{var r=n(56110),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},93290:(e,t,n)=>{e=n.nmd(e);var r=n(9325),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,c=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=c?c(n):new e.constructor(n);return e.copy(r),r}},93564:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var r,o=n(72189),i=n.n(o),a=n(6199).Ay.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=i()([""])))},93575:(e,t,n)=>{"use strict";n.d(t,{Tu:()=>d,WV:()=>u,rV:()=>l,xH:()=>p});var r=n(21259),o=n.n(r),i=n(26396),a=n.n(i);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){a()(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 u=Object.freeze({MODULES:"modules",COMPLETE:"complete",SETTINGS:"settings",SYSTEM:"system"}),l=function(e,t){var n=e?".".concat(e):"";return"admintree".concat(n,".").concat(t,".collapsed")},d=function(e,t,n){return e&&0!==e.length?e.reduce((function(e,r){var o=r.name,i=r.children&&r.children.length>0,c=t?"".concat(t,"."):"",u=d(r.children||[],"".concat(c).concat(o),n),p=l(t,o);return s(s(s({},e),u),i?a()({},p,n):{})}),{}):{}},p=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=e.map((function(e){var o=(n[e.menuType]||{}).filterAttributes,i=function(e,n){return t?n.find((function(n){return e[n]&&e[n].toLowerCase().includes(null==t?void 0:t.toLowerCase())})):void 0}(e,void 0===o?[]:o),a=Boolean(i),c=p(e.children||[],t,n,r+1,a);return s(s({},e),{},{matchingAttribute:i,children:c,level:r,isExactMatch:a&&e[i].toLowerCase()===(null==t?void 0:t.toLowerCase())})})).filter((function(e){var n;return!t||e.matchingAttribute||(null===(n=e.children)||void 0===n?void 0:n.length)>0||i}));return t&&a.sort((function(e,t){var n;return null===(n=e.label)||void 0===n?void 0:n.localeCompare(t.label)})),[].concat(o()(a.filter((function(e){return e.isExactMatch}))),o()(a.filter((function(e){return!e.isExactMatch}))))}},93600:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r,o=n(26396),i=n.n(o),a=n(58156),c=n.n(a),s=n(73082),u=n(90125),l=n(444),d=n(4883),p=n.n(d),f=n(21259),m=n.n(f),h=n(56375),g=n(74848);const v=function(){return r||(r=(0,g.jsx)(h.Ay.Span,{breakWords:!1,children:"; "}))};var y=["multi-select-box","multi-remote-field","search-filter","pseudo-multi-document"],b=function(e,t){return Array.isArray(e)&&!y.includes(t)},w=function(e){return e.reduce((function(e,t,n){return[].concat(m()(e),m()(e.length>0?[(0,g.jsx)(v,{},"sep".concat(n))]:[]),[t])}),[])};const x=function(e){var t=e.fieldMappingType,n=e.formName,r=e.formField,o=e.entityField,i=e.value,a=e.info,c=e.events,s=e.formData,l=r.dataType||r.componentType,p=(0,d.useMemo)((function(){return u.A.factory(t,l)}),[t,l]);return b(i,r.dataType)?w(i.map((function(e,i){return(0,g.jsx)(p,{formField:r,entityField:o,formName:n,mappingType:t,value:e,info:a,events:c,formData:s},"valueField-"+r.id+i)}))):(0,g.jsx)(p,{formField:r,entityField:o,formName:n,mappingType:t,value:i,info:a,events:c,formData:s})};var O=n(2493);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const E=function(e){var t=e.typeEditable,n=e.value,r=e.formData,o=e.formField,i=e.dirty,a=e.error,c=e.children,s=(null==t?void 0:t.hasValue)?t.hasValue({formValues:r.formValues,formField:o,value:n}):null!=n&&!1!==n&&(void 0===n.length||n.length>0);return(0,g.jsx)(O.A,S(S({},e),{},{dirty:r.isDirty||i,error:r.errors||a,hasValue:s,children:p().cloneElement(c,{formData:r})}))};var j;function A(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?A(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var T=["display","description"];const _={FormField:function(e){var t=e.fieldMappingType,n=e.data,r=e.resources,o=void 0===r?{}:r;try{var i,a,d=n.formDefinitionField,p=n.entityField,f=n.entity,m=n.id,h=n.value,v=n.dirty,y=n.touched,w=n.events,O=n.error,k=n.submitting,S=n.parentReadOnly,A=n.formName,_=n.entityModel,D=n.mode,C=n.labelPosition,I=d.componentType,R=d.dataType,M=d.readonly,N=S||M||k||!c()(p,"writable",!0),L=function(e,t,n,r){return!!r||!!T.includes(t)||!!b(e,n)}(h,I,R,S),F=d.dataType||d.componentType,H=null===(i=u.A.editableComponentConfigs[t])||void 0===i?void 0:i[F];"create"!==D&&H&&H.isReadOnly&&(N=N||H.isReadOnly({formField:d,entity:f})),H&&H.dataContainerProps&&(a=H.dataContainerProps({formField:d,formName:A}));var B=c()(d,"validation.mandatory",!1);H&&H.getMandatoryValidation&&(B=H.getMandatoryValidation({formField:d})||!1);var U=!N&&B&&"search"!==D,V=H&&H.fixLabel&&H.fixLabel();return(0,g.jsx)(l.A.FormDataContainer,P(P({entityModel:_},a),{},{children:(0,g.jsx)(E,{typeEditable:H,dirty:v,error:O,value:h,id:m,immutable:N||T.includes(I),isDisplay:L,label:d.label,mandatory:U,mandatoryTitle:o.mandatoryTitle,touched:y,fixLabel:V,formField:d,labelPosition:d.labelPosition||C,children:(0,g.jsx)(x,{fieldMappingType:L?"readOnly":t,formName:A,formField:d,entityField:p,value:h,info:{id:m,readOnly:N,mandatory:U},events:w})},m)}))}catch(e){return s.A.logError("Error creating formField",e),j||(j=(0,g.jsx)("span",{}))}},MultipleFieldsSeparator:v,isMultipleFields:b,enhanceMultipleFieldsWithSeparators:w}},93610:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default,e.exports.default=t.default},93663:(e,t,n)=>{var r=n(41799),o=n(10776),i=n(89578);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},93736:(e,t,n)=>{var r=n(51873),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},94200:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={defaultTheme:{name:"default",colors:{paper:"#fff",primary:"#b22a31",primaryLight:"#d13e45",secondary:"#263e5b",secondaryLight:"#347da9",secondaryLighter:"#4fade5",text:"#000",textLight:"#595959",textLighter:"#8c8c8c",textDisabled:"#bcbcbc",textLabel:"#121212",textToaster:"#fcfcfc",textPopover:"#fcfcfc",backgroundBody:"#dee6ed",backgroundBreadcrumbs:"#dee6ed",backgroundPopover:"#424242",backgroundItemHover:"#e6e6e6",backgroundItemSelected:"#ccc",backgroundItemLastOpened:"#B9B9B9",backgroundTableEvenRow:"#f2f2f2",backgroundTableTiles:"#f2f2f2",backgroundScrollbar:"#999",backgroundScrollbarHover:"#808080",backgroundPanelHeaderFooter:"#f2f2f2",backgroundTypographyCode:"#e6e6e6",backgroundToccoCircleProduction:"#b22a31",backgroundToccoCircleTest:"#263e5b",backgroundBurgerMenuBars:"#fff",backgroundMultiValue:"#e6e6e6",backgroundUploadArea:"#f2f2f2",backgroundUploadOverlay:"#0000ff1a",backgroundConflict:"#f2f2f2",hoverInteractiveIcon:"#263e5b",loadingSpinner:"#000",breadcrumbsActive:"#b22a31",border:"#ccc",borderTable:"#ccc",borderLight:"#ededed",borderSelect:"#027cc1",signal:{danger:"#961b1b",dangerLight:"#e77c7c",info:"#027cc1",infoLight:"#78cdfe",success:"#337f37",successLight:"#91d395",warning:"#ec8a00",warningLight:"#ffd7a0",neutral:"#dee6ed"}},fontFamily:{monospace:"Ubuntu Mono, monospace",regular:"Ubuntu, sans-serif",url:"https://fonts.googleapis.com/css?family=Ubuntu+Mono:300,500|Ubuntu:300,500&display=swap"},fontSize:{base:1.3,factor:1.1},fontWeights:{regular:300,bold:500},lineHeights:{dense:1,light:1.2,regular:1.4},radii:{statusLabel:"8px",button:"13px",buttonLarge:"25px",form:0,dashboard:0,modal:0,toaster:"8px",menu:0,small:"4px"},space:{base:1.3,factor:2},specificProperties:{actionBarStickyTopPosition:0},codeEditorTheme:"textmate",diffViewerDarkTheme:!1,diffViewer:{codeFoldGutterBackground:"#e6e6e6",codeFoldBackground:"#f2f2f2",gutterBackground:"#f2f2f2",diffViewerTitleBackground:"#fff",diffViewerTitleBorderColor:"#fff",emptyLineBackground:"#fcfcfc",addedBackground:"#cbffce",addedColor:"#24292e",removedBackground:"#ffbfbf",removedColor:"#24292e",wordAddedBackground:"#91d395",wordRemovedBackground:"#e77c7c",addedGutterBackground:"#91d395",removedGutterBackground:"#e77c7c"}},darkTheme:{name:"dark",colors:{paper:"#212330",primary:"#b22a31",primaryLight:"#d13e45",secondary:"#6eafff",secondaryLight:"#82baff",secondaryLighter:"#9ECAFF",text:"#dfdfdf",textLight:"#bdbdbd",textLighter:"#818181",textDisabled:"#7a7a7a",textLabel:"#121212",textToaster:"#000",textPopover:"#fff",backgroundBody:"#2C2F41",backgroundBreadcrumbs:"#2C2F41",backgroundPopover:"#757575",backgroundItemHover:"#444",backgroundItemSelected:"#565656",backgroundItemLastOpened:"#636363",backgroundTableEvenRow:"#2f2f2f",backgroundTableTiles:"#2f2f2f",backgroundScrollbar:"#444",backgroundScrollbarHover:"#666",backgroundPanelHeaderFooter:"#444",backgroundTypographyCode:"#444",backgroundToccoCircleProduction:"#b22a31",backgroundToccoCircleTest:"#263e5b",backgroundBurgerMenuBars:"#fff",backgroundMultiValue:"#6e6e6e",backgroundUploadArea:"#2d2d2d",backgroundUploadOverlay:"#0000ff1a",backgroundConflict:"#2d2d2d",hoverInteractiveIcon:"#fff",loadingSpinner:"#cccccc",breadcrumbsActive:"#82baff",border:"#666",borderTable:"#666",borderLight:"#444",borderSelect:"#4fade5",signal:{danger:"#d74444",dangerLight:"#f18888",info:"#4fade5",infoLight:"#9ce6ff",success:"#4DAC54",successLight:"#72c172",warning:"#ec8a00",warningLight:"#ffcc84",neutral:"#CECECE"}},fontFamily:{monospace:"Ubuntu Mono, monospace",regular:"Ubuntu, sans-serif",url:"https://fonts.googleapis.com/css?family=Ubuntu+Mono:300,500|Ubuntu:300,500&display=swap"},fontSize:{base:1.3,factor:1.1},fontWeights:{regular:300,bold:500},lineHeights:{dense:1,light:1.2,regular:1.4},radii:{statusLabel:"8px",button:"13px",buttonLarge:"25px",form:0,dashboard:0,modal:0,toaster:"8px",menu:0,small:"4px"},space:{base:1.3,factor:2},specificProperties:{actionBarStickyTopPosition:0},codeEditorTheme:"dracula",diffViewerDarkTheme:!0,diffViewer:{diffViewerBackground:"#212330",codeFoldGutterBackground:"#444",codeFoldBackground:"#2f2f2f",gutterBackground:"#2f2f2f",diffViewerTitleBackground:"#212330",diffViewerTitleBorderColor:"#212330",emptyLineBackground:"#2f2f2f",diffViewerColor:"#dfdfdf",addedBackground:"#217a28",addedColor:"#dfdfdf",removedBackground:"#b92e2e",removedColor:"#dfdfdf",wordAddedBackground:"#35913c",wordRemovedBackground:"#d74444",addedGutterBackground:"#35913c",removedGutterBackground:"#d74444"}}}},94394:(e,t,n)=>{var r=n(43360),o=n(42e3),i=Object.prototype.hasOwnProperty,a=o((function(e,t,n){i.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=a},94674:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(26396),o=n.n(r),i=n(22056),a=n.n(i),c=n(36376),s=n(34743),u=n(80938),l=n(4883),d=n(81845),p=n(12450),f=n(62764),m=n(99978),h=n(64116),g=n(5975),v=n(8634),y=n(74848);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){o()(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}const x=function(e){var t=e.onOpen,n=e.children,r=e.onClick,o=e.buttonProps,i=e.label,b=e.icon,x=(0,l.useState)(null),O=a()(x,2),k=O[0],S=O[1],E=(0,l.useState)(!1),j=a()(E,2),A=j[0],P=j[1],T=(0,l.useState)(!1),_=a()(T,2),D=_[0],C=_[1],I=function(){P(!A),t&&!D&&(t(),C(!0))},R=function(){P(!1)},M=A?"chevron-up":"chevron-down",N=(0,c.we)({open:A,onOpenChange:P,placement:"bottom-start",middleware:[(0,s.cY)(5),(0,s.UU)(),(0,s.Ej)({apply:function(e){var t=e.availableHeight;(0,d.flushSync)((function(){return S(t-15)}))}})],whileElementsMounted:u.ll}),L=N.refs,F=N.floatingStyles,H=N.context,B=(0,c.kp)(H),U=(0,c.s9)(H),V=(0,c.bv)([B,U]),W=V.getReferenceProps,z=V.getFloatingProps;return r?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(p.A,w(w({ref:L.setReference},W()),{},{children:[(0,y.jsx)(f.A,w(w({},o||{}),{},{onClick:r,label:i,"data-cy":e["data-cy"],icon:b})),(0,y.jsx)(v.qn,w(w({icon:M,onClick:I},o||{}),{},{"data-cy":"btn-buttonmenu-open"}))]})),A&&(0,y.jsx)(m.A,{floatingStyles:w(w({},F),{},{maxHeight:k}),getFloatingProps:z,refs:L,isOpen:A,onClose:R,children:n})]}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(f.A,w(w(w({"data-cy":e["data-cy"]},o||{}),{},{ref:L.setReference},W()),{},{onClick:I,icon:b,children:[(0,y.jsx)(g.Bd,{children:i}),(0,y.jsx)(v.o0,{children:(0,y.jsx)(h.A,{icon:M})})]})),A&&(0,y.jsx)(m.A,{floatingStyles:w(w({},F),{},{maxHeight:k}),getFloatingProps:z,refs:L,isOpen:A,onClose:R,children:n})]})}},95950:(e,t,n)=>{var r=n(70695),o=n(88984),i=n(64894);e.exports=function(e){return i(e)?r(e):o(e)}},96131:(e,t,n)=>{var r=n(2523),o=n(85463),i=n(76959);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},96372:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},96374:(e,t,n)=>{var r=n(23490);e.exports=function(e){if(Array.isArray(e))return r(e)}},96424:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(26396),o=n.n(r),i=n(22056),a=n.n(i),c=n(4883),s=n.n(c);function u(e,t){var n=(0,c.useState)(e),r=a()(n,2),o=r[0],i=r[1];return(0,c.useEffect)((function(){var n=setTimeout((function(){i(e)}),t);return function(){clearTimeout(n)}}),[e,t]),[o,i]}var l=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 p(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 f=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,i){var s=r.value,d=(0,c.useState)(s),f=a()(d,2),m=f[0],h=f[1],g=u(m,t),v=a()(g,2),y=v[0],b=v[1],w=(0,c.useRef)(s),x=r[n];return(0,c.useEffect)((function(){m!==s&&m===y&&(h(s),w.current=s,b(s))}),[s]),(0,c.useEffect)((function(){x&&w.current!==y&&(x(y),w.current=y)}),[y,x]),(0,l.jsx)(e,p(p(p({},r),{},{value:m},o()({},n,h)),{},{ref:i}))}))};var m=n(81570);const h={useAutofocus:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return(0,c.useEffect)((function(){if(!t.disabled&&e.current&&!(0,m.i)()){if(t.selectFulltextFields){var n=e.current.querySelector('input[id$="txtFulltext"]:not([disabled])');if(n)return void n.focus()}var r=e.current.querySelector('input[type="text"]:not([disabled]), input[type="search"]:not([disabled]), textarea:not([disabled])');r&&setTimeout((function(){r.focus()}),0)}}),n)},useDebounce:u,Debouncer:f,useUserActive:function(e){var t=(0,c.useRef)(null),n=(0,c.useState)(null),r=a()(n,2),o=r[0],i=r[1],s=(0,c.useCallback)((function(){o>0&&(t.current=setTimeout((function(){e()}),o))}),[o,e]),u=(0,c.useCallback)((function(){t.current&&clearTimeout(t.current)}),[]);return(0,c.useEffect)((function(){return u(),window.addEventListener("mousemove",s,{once:!0}),window.addEventListener("touchstart",s,{once:!0}),function(){u()}}),[u,s]),[i,u,s]},usePrevious:function(e){var t=(0,c.useRef)();return(0,c.useEffect)((function(){t.current=e}),[e]),t.current},useDidUpdate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,c.useRef)(!1);(0,c.useEffect)((function(){n.current?e():n.current=!0}),t)},useResizeObserver:function(){var e=(0,c.useState)(),t=a()(e,2),n=t[0],r=t[1],o=(0,c.useRef)(),i=(0,c.useCallback)((function(e){if(Array.isArray(e)){var t=e[0];r(t.contentRect)}}),[]),s=(0,c.useCallback)((function(e){e&&(o.current=new ResizeObserver((function(e){return i(e)})),o.current.observe(e))}),[i]);return(0,c.useEffect)((function(){return function(){o.current&&(o.current.disconnect(),o.current=null)}}),[]),[s,n]}}},97420:(e,t,n)=>{var r=n(47422),o=n(73170),i=n(31769);e.exports=function(e,t,n){for(var a=-1,c=t.length,s={};++a<c;){var u=t[a],l=r(e,u);n(l,u)&&o(s,i(u,e),l)}return s}},97699:(e,t,n)=>{"use strict";n.d(t,{A:()=>de});var r,o,i="tocco-util/LOG_ERROR",a=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:i,payload:{title:e,description:t,error:n,dateTime:r}}},c=n(38798),s=n(71468),u=n(82274),l=n.n(u),d=n(65044),p=n.n(d),f=n(65611),m=n.n(f),h=n(18337),g=n.n(h),v=n(56994),y=n.n(v),b=n(4883),w=n(58065),x=n(72189),O=n.n(x),k=n(6199),S=n(85431),E=n(57488),j=n(26166),A=k.Ay.div.withConfig({displayName:"StyledWrapper"})(r||(r=O()(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,S.A)(),(function(e){return e.theme.colors.signal.danger}),E.t7.color("paper"),j.A.space(-.5)),P=n(74848);const T=function(){return o||(o=(0,P.jsx)(A,{children:(0,P.jsx)(w.A,{id:"client.component.errorBoundary.text"})}))};var _;function D(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(D=function(){return!!e})()}var C=function(e){function t(e){var n;return l()(this,t),(n=function(e,t,n){return t=g()(t),m()(e,D()?Reflect.construct(t,n||[],g()(e).constructor):t.apply(e,n))}(this,t,[e])).state={hasError:!1,error:null},n}return y()(t,e),p()(t,[{key:"componentDidCatch",value:function(e){var t=this.props,n=t.logError,r=t.intl;n(r.formatMessage({id:"client.component.errorBoundary.notificationTitle"}),r.formatMessage({id:"client.component.errorBoundary.notificationDescription"}),e)}},{key:"render",value:function(){return this.state.hasError?_||(_=(0,P.jsx)(T,{})):this.props.children||null}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}])}(b.Component);const I=C;var R={logError:a};const M=(0,s.Ng)(null,R)((0,c.Ay)(I));var N=n(98671),L=n(21259),F=n.n(L),H=n(26396),B=n.n(H);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 V(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){B()(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 W=B()({},i,(function(e,t){var n=t.payload,r=n.title,o=n.description,i=n.error,a=n.dateTime;return V(V({},e),{},{messages:[{title:r,description:o,error:i,dateTime:a}].concat(F()(e.messages)).slice(0,100)})})),z={messages:[]};function q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z,t=arguments.length>1?arguments[1]:void 0,n=W[t.type];return n?n(e,t):e}var Y=n(92207),$=n.n(Y),G=n(43786),K=n(6730),J=n(73082),X=$().mark(Q);function Q(e,t,n){return $().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,G.T1)(J.A.logError,"".concat(e,": \n").concat(t,"\n"),n);case 2:case"end":return r.stop()}}),X)}var Z=n(10822),ee=$().mark(te);function te(e,t,n){var r;return $().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,G.T1)(Z.A.toaster,{type:"error",title:e,body:t});case 2:return r=n.sent,n.next=5,(0,G.yJ)(r);case 5:case"end":return n.stop()}}),ee)}var ne=n(28186),re=$().mark(oe);function oe(e,t,n){return $().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,G.T1)(ne.A.logException,n);case 2:case"end":return e.stop()}}),re)}const ie={console:Q,notification:te,remote:oe};var ae=$().mark(se),ce=$().mark(le);function se(e,t){return $().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e){n.next=5;break}return n.next=3,(0,G.jP)(i,ue,t);case 3:n.next=7;break;case 5:return n.next=7,(0,G.jP)(i,le);case 7:case"end":return n.stop()}}),ae)}function ue(e,t){var n=t.payload;return $().mark((function t(){var r,o,i;return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.title,o=n.description,i=n.error,t.next=3,(0,G.Q7)(e.map((function(e){return(0,G.T1)(ie[e],r,o,i)})));case 3:case"end":return t.stop()}}),t)}))()}function le(e){return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,G.yJ)(K.A.emitAction(e));case 2:case"end":return t.stop()}}),ce)}const de={logError:a,addToStore:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t&&N.A.injectReducers(e,{errorLogging:q}),e.sagaMiddleware.run(se,t,n)},ErrorBoundary:M}},97825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},97932:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(4883)),o=c(n(87695)),i=c(n(21572)),a=c(n(81438));function c(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function l(){return l=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},l.apply(this,arguments)}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 p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e){return function(){var t,n=h(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()){var r=h(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return m(e)}(this,t)}}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(s,e);var t,n,o,c=f(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return v(m(e=c.call.apply(c,[this].concat(n))),"storeHighlightedItemReference",(function(t){e.props.onHighlightedItemChange(null===t?null:t.item)})),e}return t=s,n=[{key:"shouldComponentUpdate",value:function(e){return(0,a.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,o=t.itemProps,a=t.renderItem,c=t.renderItemData,s=t.sectionIndex,u=t.highlightedItemIndex,p=t.getItemId,f=t.theme,m=t.keyPrefix,h=null===s?m:"".concat(m,"section-").concat(s,"-"),g="function"==typeof o;return r.default.createElement("ul",l({role:"listbox"},f("".concat(h,"items-list"),"itemsList")),n.map((function(t,n){var m=0===n,y=n===u,b="".concat(h,"item-").concat(n),w=g?o({sectionIndex:s,itemIndex:n}):o,x=function(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){v(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}({id:p(s,n),"aria-selected":y},f(b,"item",m&&"itemFirst",y&&"itemHighlighted"),{},w);return y&&(x.ref=e.storeHighlightedItemReference),r.default.createElement(i.default,l({},x,{sectionIndex:s,isHighlighted:y,itemIndex:n,item:t,renderItem:a,renderItemData:c}))})))}}],n&&p(t.prototype,n),o&&p(t,o),s}(r.Component);t.default=y,v(y,"propTypes",{items:o.default.array.isRequired,itemProps:o.default.oneOfType([o.default.object,o.default.func]),renderItem:o.default.func.isRequired,renderItemData:o.default.object.isRequired,sectionIndex:o.default.number,highlightedItemIndex:o.default.number,onHighlightedItemChange:o.default.func.isRequired,getItemId:o.default.func.isRequired,theme:o.default.func.isRequired,keyPrefix:o.default.string.isRequired}),v(y,"defaultProps",{sectionIndex:null})},98166:(e,t,n)=>{"use strict";n.d(t,{O5:()=>o,O9:()=>a,Yd:()=>r,lW:()=>i});var r=function(e){return e&&Array.isArray(e)?e.length>0?e[0]:[]:e},o=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},i=function(e){return navigator.clipboard?navigator.clipboard.writeText(e):Promise.reject(new Error("navigator.clipboard API not available"))},a=function(e){return null!=e}},98671:(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var r=n(26396),o=n.n(r),i=n(63560),a=n.n(i);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}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 l(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 d=n(66245),p=n.n(d),f=n(44383),m=n.n(f),h=n(14644);function g(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y=function(e,t){var n=v(v({},e.allReducers),t),r=(0,h.HY)(n);e.replaceReducer(r),e.dispatch({type:"replaceReducer"}),e.allReducers=n};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,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 x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const O={addToObjectReducer:function(e,t,n){return function(r,i){var c=i.payload,u=c[e],l=c[t],d=s({},r),p=s(s({},r[n]),{},o()({},u,l));return a()(d,n,p),d}},singleTransferReducer:function(e,t){return function(n,r){var i=r.payload[e],c=function(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){o()(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}({},n);return a()(c,t?t+"."+e:e,i),c}},mappingTransferReducer:function(e,t){return function(n,r){var i=r.payload[e];return l(l({},n),{},o()({},t,i))}},injectReducers:function(e,t){var n=p()(Object.keys(t),Object.keys(e.allReducers));if(n.length>0){var r=v(v({},e.allReducers),m()(t,n));y(e,r)}},hotReloadReducers:y,toggleReducer:function(e){return function(t){return x(x({},t),{},o()({},e,!t[e]))}}}},99208:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(26396),o=n.n(r),i=n(85735),a=n.n(i),c=n(81792),s=n(60115),u=n(19383);function l(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?l(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p={method:"GET",credentials:"include"},f=function(e){var t=function(e){if(e){if(e instanceof Headers)return e;if("object"===a()(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",u.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},m=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)};const h={prepareHeaders:f,prepareUrl:m,executeRequest:function(e){var t=function(e){return d(d(d({},p),e),{},{headers:f(e)})}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=s.A.getBackendUrl(),r=m(n,e);return fetch(r,t)},extractBody:function(e){return e.json()}}},99374:(e,t,n)=>{var r=n(54128),o=n(23805),i=n(44394),a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=c.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},99978:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(26396),o=n.n(r),i=n(36376),a=n(4883),c=n.n(a),s=n(44518),u=n(8634),l=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 p(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 f=function(e){var t=e.floatingStyles,n=e.getFloatingProps,r=e.refs,o=e.isOpen,a=e.onClose,d=e.children;return o?(0,l.jsx)(u.X7,{children:d&&o&&(0,l.jsx)(i.XF,{children:(0,l.jsx)(u.WB,p(p({ref:r.setFloating,style:t},n()),{},{className:s.e,children:c().Children.map(d,(function(e){return e&&c().cloneElement(e,{onClose:a})}))}))})}):null}}},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=a,s.amdD=function(){throw new Error("define cannot be used indirect")},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);s.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,s.d(o,i),o},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,n)=>(s.f[n](e,t),t)),[])),s.u=e=>"chunk-"+({4672:"phone-formatter",36916:"vendor-icons",49222:"vendor-libphonenumber-js",54236:"actions",54310:"vendor-fontawesome",61556:"docs-actions",71262:"html-editor",83722:"code-editor"}[e]||e)+"."+{311:"3a2ef75736f020823621",662:"1e071783464625383e06",850:"7b50ccc456ce0d3f691c",996:"eeb94974c5f352591e56",1207:"954ba428494ddad76aa2",1216:"8d87154ddf7acd7d314e",1221:"cc0851018d102b415e48",1234:"70831f512a53a8165313",1325:"85c256911af5f9601123",1361:"22ddea6c529cb70f8a72",1496:"e3f50a20d72ebf28467e",1655:"27eb9bdfb254163b399b",1702:"89213ec1ccb26d0f4e93",1766:"a4f2beda1b6506f727ed",2045:"9911db2852a14f00ea4c",2070:"391bbc0c82bcc0341fb2",2451:"def110be1926bdb25dae",2540:"029b81d412c14127ea28",2586:"ba7033c70c79e44930a0",2682:"8010aa4d68674e40caca",3082:"0882c1f38f3554a7902e",3459:"6de3dd8792695d15d49d",4139:"942d36ab3cf73f4cb016",4490:"0b1707d0ae14ee9e2081",4672:"9b68500db8b6e528d3b2",5243:"2d27818a25f756d61239",5318:"349510267268bf9a32b0",5438:"4712bedde082a2d70749",5575:"7dd3ad4d5c38ba50ae68",5817:"4cfd4d6d86e495c09e97",6041:"d2bcc7429c00fe07fde0",6147:"3f6315abc1c70575c151",6396:"5428cb2b91eb2b3cadc4",6644:"2f2891d33d657f6e331a",6893:"5bfe3fc282ff9319dfbe",7313:"ba3d8ea43b02b1c0abf6",7625:"ed30dbac12e13b990b01",7668:"80a8c69dedc9733a9e4c",7743:"7282f9c3d18be78ab2fd",7802:"e69e9566cb793f546130",7989:"3c3da3dbe144ca92a363",8007:"989ecf58f26f4eb9d2ce",8171:"116d75164da513412385",8504:"4c915b92b2090faa635b",8676:"bc4072f84a710e8525f2",8818:"3d101c8ddfd3166fac41",8992:"c7bab3c8c4dc2374f47c",9017:"2de1ea241ea6c5df0cc7",9561:"f88bf32564a10aaad678",9603:"d7159316057e1974e985",9753:"0555726f00ecd1e17401",10012:"681629f07022aed251d5",10472:"d918e4b82cf106f1104c",10499:"f4e23d482ed3b573c2c1",10655:"ca0023b02d3b19fdffe7",10910:"4d19dc906ee393584c75",10927:"c2769b2cac971eebbcf7",11211:"c8c66707bc7f67555a74",11239:"931af64854892c38ac68",11281:"7a33daee4bda0df4cd47",11788:"0c93e11a7f2346d98025",11842:"0afdbbc6b39ebad435b0",13081:"584816abda676718811f",13093:"9b5e36e92ecf40520bbc",13124:"0bfc9a2b52e5e14f6428",13419:"bcf05700ca13391b1991",13452:"6d7e811ff1da432dbdc8",13622:"9aa25a6d665e9cef6ea5",14291:"02163e9969b5e0a5cdec",14527:"ab19f6738abd561a5b56",14663:"5c151b04de5071a18a41",14879:"8dc4d6c8e17b3b044395",14973:"c023d1f7f8558c4851a6",15028:"8351b3924428d689ea8e",15197:"d347bed7cd56fbc3cc16",15692:"353533ddb94de458d6dd",15802:"a14d0994f1878d93b02b",15898:"5ef8c3fc581f658e951d",16334:"44c9b1cb89999e648990",17e3:"2120e21d6507bf980ab3",17076:"e6aaf79e89e468444fba",17247:"5a809b901732c9cc13dd",17380:"b08fce7f8b22622cf0e0",18334:"9cf700323e3105dd78fa",18410:"db9a27f907b62af3ea2e",18849:"9fe1d6f6c74045df7b0a",19217:"dc5c774a1191eec9aa7c",19249:"ca4985816a168248bd16",19557:"3bbb84f09d7bede451b6",19588:"34fb1a6be75f571e53f6",19786:"8f4b6a51ee2a0e1b6fe4",19956:"7b88f7abd11773784ef1",20009:"23612b9eec9f1eece2de",20047:"2ffb92a7cbc98b72c42f",20132:"f1b8ad36bc61dadcab6d",20360:"220d25e354a8a86644d5",20454:"361f71fbeef63542bc95",20592:"7f4fcbbc0399b4275e93",20659:"a7a096dc82933eca2563",21137:"6547441fe72ccb52c982",21323:"1968ace91543594a8a24",21843:"35e0fa6ef22976f83818",21901:"017a7d851206927981ed",22030:"94cfb84c510d3a83f526",22584:"1f23384c966a11069676",22981:"3b1d961092c96aceb1c4",23097:"281903005fdc00e37d6a",23257:"aee6d43f61eed26ff5f2",23407:"0476c98875a81eecd3d0",24364:"7f2184db39674b2ec4fa",24499:"829bbf8d3ace43810fcc",24522:"7e5209692391c3ec9426",24854:"8023d60d6f762afca5a9",25181:"33623dc429615558c11e",25395:"7c31380e172f57c95904",25501:"118c6adabbd11418203a",25637:"425c3baddfadf100d01c",26051:"7c917d20c16bc6155f1d",26332:"4a1e1acf725e1e2e9749",26528:"96b7fe032872005880f9",26605:"113f3085bf13afb6d7c1",26820:"80118a4f794f2950b990",27136:"ba70eeb79c0331d3a551",27211:"d35dd350a83dda301284",27230:"533297fc00aa159ccc7f",28507:"87576738767ca98ffeb6",28586:"527d3c09d0baa976c9cd",28734:"ddc0ee5d5d57f9faec28",28797:"942e725bf18dedece04d",29067:"2a7b079be04dd8161f13",29072:"9ed41e42c500d3dc5514",29369:"57ff827b0723b157b5be",29435:"f3967e8ad52d48a61cbc",29694:"2f6ac0921ea1f61db1bf",29755:"0a432a407c58935ea8f1",29861:"f1c97b00b39cdb6f4429",29954:"a92bcb3f1ea6f83233a9",30470:"fe5fd56b2156e5f54263",30486:"54a0daff8be3e87f90f3",30766:"91f893495b23a85b6a57",30897:"f66ebafd4afd4132fa8e",31001:"7276b3071c35a98ffe28",31131:"e184463b776e5cbedabe",31255:"6dfc5e9ee00fa2ccc549",31570:"7ebb3e0cb03d7b728af9",31600:"f05bf28a1ce0bb919ea5",31723:"dbf28bf65ee1c27b8624",31835:"1ce49e5d1e5e7a106f0c",32123:"7b7375f0740ab042bdb6",32499:"76402651f6fe823e633c",32521:"454218afaa268f223667",32725:"7ab53a80eda627ae55e3",33204:"18bf0281536cb4775ea5",33227:"9f07a6af3b58d4cf6089",33366:"87586827bd89c54c869d",33537:"f0c37505014cfef7b4bf",33688:"85552e80eb7ad2395251",34048:"4b07dcf0f11cc5a56611",34163:"ac01856de5629ed15eb0",34675:"ca3ee8b1c6a373525d0c",34817:"d1e681fa4ada1f557f6c",34869:"977387e8de02c3149979",34916:"26d27f667613fff61dc5",35173:"9e01cdb034a598432421",36032:"25945f3c4b3091f7f451",36086:"9e8a5968e615cdfd5a19",36627:"b2c590ab0ff396fd5d8f",36763:"fb693e3a051f85a55b32",36788:"fcf0977a7415e9e71b80",36916:"9884f01eecc1bf5178ba",37210:"bd735e2c0d30481995f7",37551:"e421ace50123ffb37df6",37633:"0de211c766b758cacc75",37856:"42db9dc75b482a88eb23",37887:"28387b752a85f2342804",38223:"d777d8eff15b0e246bf7",38297:"53a3453f50c57f814243",38470:"ecae061476b0e315341b",38506:"23188d1407d62002da0c",38749:"791f429a7dd726d5db8c",38848:"a0c89acdaa449fd5d5c6",38909:"e374a04c0bbbc859c276",38918:"b14815ad2e5929c7ea57",39417:"ac6da3a0ae0841797829",39669:"22db06884f46ff736616",39797:"44d69571d175ff7d934a",40426:"5aaf0307e7c01dd4fead",40975:"b32faf7cefa89711975e",41056:"32e735d8677c33a2f235",41170:"dda08589a6dc51ac9672",41293:"6e41355f4ffe30f4bc9d",42049:"ae0ea12584df5bade656",42206:"4dd35db825678d78a840",42482:"23d41595a5615c02823f",43158:"80349ed69548e5e8f29e",43317:"2b2b71e0a7ce1e200323",43425:"12c797f0f18fd88e8326",43500:"64d799f9bef79afe9a9f",43636:"15757d370a80043bd9fa",44286:"3d2abf322e7d23ad4942",44330:"7ada5240ab4e77617f12",44417:"9cd6f008cdb35612fd68",44586:"53760a50317e665533a9",44753:"10813f4e18505e06b29a",44788:"1ba45f53a89cfa042d05",45010:"ef78245616d4a96c032b",45011:"bf8408a8b8decaff1bbd",45029:"731061e01816fb5a005c",45202:"40640cd294d732611671",45209:"164cf2112e30620fdfa5",45587:"981a050830f2a7503193",45601:"c2d11d42305306255d6e",45631:"2490d52e38f19d9baba9",45734:"8e398d792368597fc30f",45814:"cacb7a4c6359bd51d0f4",46116:"f8580c6e6dced0fac25f",46167:"293395302ceddb0a3ecf",46503:"53326e832b78ac480308",46623:"7502d50cced63b196e1b",46811:"808a78165bd80680b0a9",47026:"2040fd22c81251889b54",47075:"cd95df2f4fd6919591d7",47145:"80f640e8642e0149809b",47281:"09faee27b855d920f1aa",47387:"100c37fdfd90a9754fa9",47507:"41022024eb727ec2a330",47694:"cd0519cf27fefe66b9fc",47968:"b850caf98700c1ef5564",48077:"593fdf29f58ee3d107ff",48320:"13716925af6c9f6aa5ac",48331:"5c3881cb354c608b40c2",48575:"1b9cfe5bee1cd42866ab",48640:"5db1f23f2cb5e6e4f329",49159:"5725dbfd67fcdd23d4d0",49222:"eb92160cac2fe8a168fb",49343:"3a39bb51106de075bb71",49372:"57b29097f52ede453ed3",49392:"3dee3590bc62dc59e6f2",49808:"97d69316a2358ce390eb",50117:"fbe12eb28c49acfbb2ff",50152:"b0137d67132c8d88e59c",51004:"36292cf61a4c0a04b2dd",51057:"77004ea88466e20bfe9f",51150:"300f722cbd02d50520a4",51183:"6bc8ec96463bf5829b36",51199:"becad7852da81675aa1b",51287:"99cd21c80adf259158d6",51289:"ab56e128f00d690db781",51678:"6a77f142bdc14fe8db9c",51958:"2f968c972ad48359c9cd",52103:"915297731eab9f30f608",52602:"f702b6cf595373d4faab",53103:"aef3b226a24fa2624d34",53610:"6b849567a5ecdf065333",53611:"1d87e6788f2c44ccd03f",53840:"be4cc89950dc9e04f301",54176:"84228c858fa601872055",54236:"367439801e4c903046f1",54310:"66966c364b84240317e6",54958:"955d74aa5587bc530930",55009:"fbd2cd9985a10aa9db56",55113:"f1df89f6ebf973e4aa42",55208:"a6edaabb19145672f68d",55263:"6900754f2ffc9816634f",55348:"574868161eb9ea0ce5ec",55677:"e00724bd7aaab362e111",55980:"8a5fbceb24bda09c63d3",56470:"f6dfa7591038df14046f",56742:"12deb026ddb0ba4044e8",56746:"82816c46476ad83b4bc9",57e3:"955755098aa9bb479825",57031:"2db499cc388ff688a518",57108:"a141b0f236bc84c74003",57186:"7ac39db15ee07b994be4",57217:"7289b4a2c001197b9ae1",57546:"8755d3a06d5496d1795e",57592:"803aaf88ff61f4dcb293",57936:"b1ce8c253b721c569e88",58045:"22807a07bd25e6bfe81e",58082:"2c6f3d39fab808278d99",58135:"262b2921455d6b54e1b4",58292:"f753bb52d6704f8275a3",58382:"48be7b63f3020c70bb5d",58424:"e4f8fc94386f68832afa",58444:"a011bfbcd5fc00f68326",58457:"9c179299059a351e6224",58485:"8f0138e369e31128bb60",58972:"d91795fcd48537ae4070",59287:"919ad8337742a2b2a402",59364:"dd6e47bc4f804f219005",59479:"7f95c54ef3c0ddc94a78",59517:"06209bd5d4d6e621b00b",59544:"4734a9f3feedb93e01c2",60240:"0cd5a939f3b4a92db1b9",60395:"90c0537985f4d0c0a4a1",60526:"582b52284473901cdbc4",60824:"1b1d49a578670e77b724",60871:"f259a9e96e50cb2cf339",61060:"f90d182f754925e67baa",61079:"e69dfcb1ca239cabcb8f",61305:"93d74f8dc8551da10209",61507:"94b02aac5cdeb93e7f3a",61532:"4be7324e3655c84a96b4",61556:"3c268ed6891e0492822f",61594:"8e0391442ec85609c630",61742:"bbc1a625877506d60a85",61777:"72b4beb92f17231ea529",62115:"c535b08f49d7ff8d454b",62308:"596ae36c54c9ace68c58",62429:"f2733a8df1ca4b6e818d",62459:"c126fb66c0b8851288c6",62575:"c31172e41e8d3660e4a5",62632:"d5a660f398a00e2db536",62797:"99693542a40b5e5a2d52",63112:"a058ba878b432d880d27",63135:"2800ccc6e0d504ca1bce",63419:"79b3922c21004e30052f",63471:"1d969c30e1dee77d0e37",63489:"57511351c4025767aa96",63767:"bb5f8bab385649f77dff",63780:"35b44d5022d72c5b7d59",64025:"f43ac98659c5886a501f",64108:"05e85d5ac8089d51bb32",64190:"f2fc85b287029e2b79a5",64309:"75b784230d3bd6a31b14",64420:"dcbde7d3971882d733bd",64442:"d88eb55dbfa019dbb752",64570:"bfade853a3a92ff6551f",64660:"9d56a90389b3f7510880",65111:"bb0fda6c10b56786f675",65320:"db5d2c82716407c43bfe",65408:"96eff9f94e048ef131a5",65559:"44a654ced109ca389843",66181:"5d20a89a6c7f7a8435be",66448:"bc520e0603ebd17affeb",66565:"8879572db0eea43a6696",66656:"d9f54160cb0d1284d3f6",66796:"ee58c1684f3d00caf5b5",66885:"e6c230a6047e06b898ba",67015:"14d2f4dca6b16526be6e",67278:"efa726e456b618c3cf0c",67705:"844e42cd73029cd34fef",67744:"c3d217c5af236f1db3fa",67772:"2ef79cfa64af0268a19f",68389:"7eb1997a1a05503f02f3",68648:"9bfaebf229c0f9afa0f7",69073:"a930fe2470ae53ed55bc",69170:"cfd8a4ec6ab8c7591de9",69502:"33195742797d324720e6",69687:"e2ef53ac1e97d2339186",69776:"c2d63994ed4e7def7c72",69884:"84b183c91a24a169692a",69975:"478a63dc800d40b77cd3",70174:"8986bccd3752fb33bae3",70316:"ce4d339e9c66c07c7eed",70471:"5853e84d9cb16b1fbdc5",70997:"32f791fd89dc094e5929",71075:"4d6c54c00115f9ddae79",71262:"49ccc493157789ab9f99",71306:"06a4757228eaa78f58d1",71496:"7bb246c281d24a51827c",71657:"90002034e2e28e12ed53",72246:"fb2a8c0b6c0c5e692e9c",72283:"ca6a38ddc46cccd5c351",72376:"b9840353ded1ee0bac81",72456:"71da7b4a9da344a7af06",72496:"9f0750ff8e1373a8ad95",72823:"1a58ab859ec09449f4cb",72887:"204649df728648ba2a6a",73031:"4a973cd383c371dfa727",73120:"a383a6c6b7f2ba0fb912",73226:"627c6d6f452c9173417e",73330:"162893379c87ccf8e1ce",73477:"2d96da2db70fe8cca256",73781:"ab22c0e4acc1a9f635b1",74142:"8134575ee8033d0d5818",74413:"f7c40e409fce63be4a39",75042:"9c813e24dbd917d31549",75263:"4c3dd57be807f0025175",76235:"6bc4170b37969185b7b4",76254:"aa87aa5a0e553ad0cb04",76283:"5afbfaa464f3eb983b92",76397:"f35fec99dc22185905b6",76667:"29e260160bae0b9aad50",77385:"369d59b1318cf5125ebd",77406:"f77dde20a62bde21ee0e",77623:"e76b069231ae8b330db6",77968:"16e402731e77a08091e8",78056:"640908669eac70f2fc53",78155:"26937279a598a2bd8d69",78720:"7b507cbfe0ede955179e",79172:"d3bd9f7c7ebc721213e9",79258:"c4ef504721f242cfcb61",79289:"70e6071470847bae9a31",79340:"803b6c303b5e7dbb63cc",79625:"5310c4a381689a905aa5",79685:"f2db0104f205efbbfbc7",79699:"c47bad9cf306f00d3c73",79869:"fc1f3bb839cdbaaab9d9",80008:"ed02f343a65a413c5981",80262:"05e64731efcef82f8089",80270:"d175e4d805532aaeff2a",80335:"e44089a42406707d0d0f",80566:"3acb620c6536fa42447b",80569:"9e95cc4b5e1216abfe1a",80638:"23518dd395ea0b33067d",80902:"a1a1b60f38e445324a5d",81328:"4cb9a0b5c94ad3a714af",81450:"5c8eab7700f765220539",81534:"77f839e25d6abcd77e4e",81852:"388b3dfd12654fe198aa",82067:"b5dc4f446afe590d44a6",82327:"691e75ff22bb1fd0e89d",82422:"49546a599b8b228e41dc",82544:"38added7ad525488d31c",82555:"e71afe31775804dc3f34",82628:"321887ed0f208ac74639",82954:"a2056aaebf296320cd5e",83136:"0b89ba08940efcb00a0f",83282:"af389f9a7b1cf146a721",83369:"7574994db99a85f602b1",83722:"7ea0451a21272efa6c61",84350:"a9ccc14627850607cd28",84506:"21be843f674d10f745bb",84556:"e7872e400a18139c42c6",84567:"9ff7e36609f0b8fc94e0",84625:"5af4f2ac9d6ea52c9464",85085:"11dcff78881bee6262f4",85477:"0c79727d0ad801ea1d44",85481:"26a7654f5996452fd171",85749:"6c86675b40cc1649c07d",86006:"0f919efba8791dc17dad",86187:"225da38e9899149daa23",86902:"bcf9b5d24a38bc4623df",86952:"2a2efb6f5bad9a9acc66",87268:"68d38d5445a0fbe51103",87406:"dbe9d5605a3bc1d8c103",87624:"b1b39d69911d86b86f3d",87632:"2fe33d123d7d8688f029",87772:"4c4a2ab7e5844adcb038",87826:"8a9d5ff7f21207557dda",87842:"a1cd91f0de3d32b25893",87874:"ecc43441285d2ae6d953",88408:"ab4f1c053c05128c04eb",88533:"f7f5e149269ec82af27d",88628:"239abc616c8332257514",89179:"59a3726e238744b2f699",89426:"094e1df111c8e363a138",89476:"bf87a94bd66d3b907efa",89609:"961e0033b10f7c4d0fdc",89673:"b1f89df666359af596ae",89695:"86466e6d47fad005e408",90008:"6fb9f49edd393eb32f55",90316:"726e3dde730b856d63d0",90616:"4a29badf27a5a2720aec",90667:"a94b2cb7375deac068c7",90721:"44b4277d7df2d90139b7",90724:"f8ccd3cda072537b713c",90731:"5ada414ab8131c5c9fa2",90830:"ddc4757b3c5500e25cd5",90846:"e4765c75a7e2d75a4e69",91201:"8c43abfdca7b1ace73a7",91316:"011e6f2096a685726084",91344:"e4ca993c6d3ac1aca4eb",91841:"70cd33fa32656dfc3f30",91858:"ac096e13a125f48eab48",91951:"2cf78b0ce2c31d369305",92012:"637c240ad5662ac71a96",92174:"349ba31c6042c1d5cdb3",92361:"0c196016cc5a5286b8ac",92657:"9ba0a4393cc854cb5fbc",92789:"18eceaf4258787453001",93102:"85a9253ca296563887ce",93171:"c470aca7488102c434bd",93236:"66f7cf10bfd81b3ba9f4",93534:"36fa887f36c9a1fa5f19",93537:"9b5cfc3c007ed8b2236a",93985:"6ca0a1012a2e3657a4db",94194:"239e99b807f59fb69db2",94224:"6f81600dfe7134a86977",94424:"d3ec714914266d7ae87a",94443:"9617d0dd889d72c4fa34",94565:"aef29a349d369280a676",95399:"87303d04bee824f67da0",95814:"afd3ecd049bd3c8ab4ef",95883:"e1a9d31c4f9cbec53a4b",96145:"5af028f33b1e44517aa2",96193:"92d6e53f49f90f272d0d",96199:"2ce474b3e396e86d969c",96332:"ceaff69ccef2bfa98a10",96679:"e00a6fafcd4cfbe74b4c",96809:"8dcd182216eedf8bba70",96934:"17edb001c8c6f99e4ef3",97230:"c9360a7a610974e4bb76",97359:"3b0d0ca0780621579966",97665:"ddae33102bde60ed0fde",97940:"0d800fef59aaa88c308f",98153:"1770b75d99509053bf7d",98423:"f14f11f691fd4fdd8524",98769:"c24cb8e0e4a45432066e",98996:"ebf4cb9179dd157b1e86",99010:"49d66211709234560704",99148:"4a4e04718f3adcadfd36",99623:"5430d6491833ea2858e7",99651:"52a801e5130ee3f7846b"}[e]+".js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},i="tocco-admin:",s.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var a,c;if(void 0!==n)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+n){a=d;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var p=(t,n)=>{a.onerror=a.onload=null,clearTimeout(f);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),c&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.p="/",(()=>{var e={38792:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=s.p+s.u(t),a=new Error;s.l(i,(n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,c]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);if(c)c(s)}for(t&&t(n);u<i.length;u++)o=i[u],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=this.webpackChunktocco_admin=this.webpackChunktocco_admin||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),s.nc=void 0;var u={};return(()=>{"use strict";s.r(u),s.d(u,{default:()=>St});var e=s(5556),t=s.n(e),n=s(4883),r=s.n(n),o=s(81845),i=s.n(o),a=s(6730),c=s(68887),l=s(63061),d=s(97699),p=s(12199),f=s(42851),m=s(18601),h=s(10822),g=s(29255),v=s(17678),y=s(92207),b=s.n(y),w=s(43786),x=s(26396),O=s.n(x),k=s(98671),S=s(24096);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var A=O()(O()(O()(O()(O()(O()(O()(O()({},S.Se,k.A.singleTransferReducer("menuOpen")),S.GN,k.A.singleTransferReducer("modulesMenuTree")),S.yD,k.A.singleTransferReducer("settingsMenuTree")),S.Kz,k.A.singleTransferReducer("systemMenuTree")),S.kl,k.A.singleTransferReducer("completeMenuTree")),S.w,(function(e){return j(j({},e),{},{menuOpen:!e.menuOpen})})),S.cv,k.A.singleTransferReducer("activeMenuTab")),S.Qw,(function(e,t){var n=t.payload.activeMenuTab;return j(j({},e),{},{menuOpen:e.activeMenuTab!==n||!e.menuOpen})})),P={menuOpen:!1,entities:[],activeMenuTab:"modules"};var T=s(70661),_=s(93575),D=s(74978),C=b().mark(F),I=b().mark(H),R=b().mark(V),M=b().mark(z),N=function(e){return e.navigation},L="admin.activeMenu";function F(e){var t;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,w.T1)(T.A.requestSaga,"client/menus/".concat(e));case 2:return t=n.sent,n.abrupt("return",t.body.menuItems);case 4:case"end":return n.stop()}}),C)}function H(){var e,t,n,r;return b().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,w.T1)(F,"modules");case 2:return e=o.sent,o.next=5,(0,w.yJ)(S.lF(e));case 5:return o.next=7,(0,w.T1)(F,"settings");case 7:return t=o.sent,o.next=10,(0,w.yJ)(S.J8(t));case 10:return o.next=12,(0,w.T1)(F,"system");case 12:return n=o.sent,o.next=15,(0,w.yJ)(S.BA(n));case 15:return o.next=17,(0,w.T1)(F,"all");case 17:return r=o.sent,o.next=20,(0,w.yJ)(S.$Y(r));case 20:case"end":return o.stop()}}),I)}function B(e){var t=e.payload.userPreferences;return b().mark((function e(){var n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t[L])){e.next=4;break}return e.next=4,(0,w.yJ)(S.Tr(n));case 4:case"end":return e.stop()}}),e)}))()}function U(e){var t=e.payload.activeMenuTab;return b().mark((function e(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.yJ)((0,D.bM)(O()({},L,t)));case 2:case"end":return e.stop()}}),e)}))()}function V(e){var t,n,r,o,i;return b().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,w.Lt)(N);case 2:if(t=a.sent,n=t.settingsMenuTree,r=t.modulesMenuTree,o=t.systemMenuTree,i=t.completeMenuTree,e!==_.WV.MODULES){a.next=9;break}return a.abrupt("return",r);case 9:if(e!==_.WV.SETTINGS){a.next=11;break}return a.abrupt("return",n);case 11:if(e!==_.WV.SYSTEM){a.next=13;break}return a.abrupt("return",o);case 13:if(e!==_.WV.COMPLETE){a.next=15;break}return a.abrupt("return",i);case 15:return a.abrupt("return",null);case 16:case"end":return a.stop()}}),R)}function W(e){var t=e.payload.menuTab;return b().mark((function e(){var n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.T1)(V,t);case 2:if(n=e.sent,!((null==n?void 0:n.length)>0)){e.next=9;break}return e.next=7,(0,w.yJ)(S.YV(t));case 7:return e.next=9,(0,w.yJ)(S.Tr(t));case 9:case"end":return e.stop()}}),e)}))()}function z(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q7)([(0,w.p8)(S.OZ,H),(0,w.sg)(500,S.cv,U),(0,w.p8)(D.CF,B),(0,w.p8)(S.KY,W)]);case 2:case"end":return e.stop()}}),M)}var q=b().mark(Y);function Y(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q7)([(0,w.Zy)(z)]);case 2:case"end":return e.stop()}}),q)}const $=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P,t=arguments.length>1?arguments[1]:void 0,n=A[t.type];return n?n(e,t):e};function G(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 K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var J=O()(O()(O()(O()({},D.PP,k.A.singleTransferReducer("serverSettings")),D.oB,k.A.singleTransferReducer("isLoading")),D.CF,k.A.singleTransferReducer("userPreferences")),D.lz,(function(e,t){var n=t.payload;return K(K({},e),{},{userPreferences:K(K({},e.userPreferences),n.preferences)})})),X={isLoading:!0,serverSettings:{},userPreferences:{}};var Q=s(58065),Z=s(79859),ee=s(76419),te=s(22056),ne=s.n(te);function re(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 oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ie,ae,ce,se,ue=function(e){return Object.entries(e).reduce((function(e,t){var n=ne()(t,2),r=n[0],o=n[1];return oe(oe({},e),{},O()({},r,function(e){switch(e){case"true":return!0;case"false":return!1;default:return e}}(o)))}),{})},le=s(74848),de=b().mark(ve),pe=b().mark(we),fe=b().mark(xe);function me(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 he(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ge="admin.theme";function ve(){var e,t,n,r,o;return b().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,w.yJ)(D.F6(!0));case 2:return i.next=4,(0,w.T1)(T.A.fetchServerSettings);case 4:return e=i.sent,i.next=7,(0,w.yJ)(D.Ve(e));case 7:return i.next=9,(0,w.T1)(T.A.fetchUserPreferences,"admin.*");case 9:return t=i.sent,i.next=12,(0,w.T1)(ue,t);case 12:return n=i.sent,i.next=15,(0,w.T1)(T.A.fetchUserPreferences,"admintree.*");case 15:return r=i.sent,i.next=18,(0,w.T1)(ue,r);case 18:return o=i.sent,i.next=21,(0,w.yJ)(D.A2(he(he({},o),n)));case 21:return i.next=23,(0,w.yJ)(D.F6(!1));case 23:case"end":return i.stop()}}),de)}function ye(e){var t=e.payload.preferences;return b().mark((function e(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.T1)(T.A.savePreferences,t);case 2:case"end":return e.stop()}}),e)}))()}function be(e){var t=e.payload.userPreferences;return b().mark((function e(){var n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t[ge])){e.next=8;break}return e.next=4,(0,w.T1)(ee.A.addLongTerm,"admin","theme",n);case 4:return e.next=6,(0,w.yJ)(c.A.setThemeType(n));case 6:e.next=12;break;case 8:return e.next=10,(0,w.T1)(ee.A.removeLongTerm,"admin","theme");case 10:return e.next=12,(0,w.yJ)(c.A.initThemeType());case 12:case"end":return e.stop()}}),e)}))()}function we(){var e,t,n;return b().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,w.T1)(Z.Ix);case 2:return e=r.sent,t=function(){return e.put(!0)},n=function(){return e.put(!1)},r.next=7,(0,w.yJ)(h.A.confirm(ie||(ie=(0,le.jsx)(Q.A,{id:"client.admin.menu.resetPreferences.title"})),ae||(ae=(0,le.jsx)(Q.A,{id:"client.admin.menu.resetPreferences.question"})),ce||(ce=(0,le.jsx)(Q.A,{id:"client.common.ok"})),se||(se=(0,le.jsx)(Q.A,{id:"client.common.cancel"})),t,n));case 7:return r.next=9,(0,w.s)(e);case 9:if(!r.sent){r.next=19;break}return r.next=13,(0,w.T1)(T.A.resetAllPreferences);case 13:return r.next=15,(0,w.T1)(ee.A.removeLongTerm,"admin","theme");case 15:return r.next=17,(0,w.yJ)(c.A.initThemeType());case 17:return r.next=19,(0,w.yJ)(h.A.toaster({type:"success",title:"client.admin.menu.resetPreferences.success"}));case 19:case"end":return r.stop()}}),pe)}function xe(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q7)([(0,w.p8)(D.U3,ve),(0,w.p8)(D.lz,ye),(0,w.p8)(D.CF,be),(0,w.p8)(D.fE,we)]);case 2:case"end":return e.stop()}}),fe)}var Oe=b().mark(ke);function ke(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q7)([(0,w.Zy)(xe)]);case 2:case"end":return e.stop()}}),Oe)}const Se=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X,t=arguments.length>1?arguments[1]:void 0,n=J[t.type];return n?n(e,t):e};var Ee=s(27948),je=O()(O()(O()(O()(O()(O()(O()({},Ee.mW,k.A.singleTransferReducer("username")),Ee.XA,k.A.singleTransferReducer("currentBusinessUnit")),Ee.E_,k.A.singleTransferReducer("businessUnits")),Ee.tb,k.A.singleTransferReducer("ssoAvailable")),Ee.ZW,k.A.singleTransferReducer("pendingChanges")),Ee.tP,k.A.singleTransferReducer("hasOutlookAddInModule")),Ee.zI,k.A.singleTransferReducer("inWrongBusinessUnit")),Ae={username:"",currentBusinessUnit:{label:"",id:""},businessUnits:[],ssoAvailable:!1,pendingChanges:!1,hasOutlookAddInModule:!1,inWrongBusinessUnit:void 0};var Pe=s(18987),Te=s(25204),_e=b().mark(Ce),De=b().mark(Ie);function Ce(){var e,t;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,w.T1)(T.A.fetchModules);case 2:if(e=n.sent,e.includes("nice.optional.sso")){n.next=6;break}return n.abrupt("return",!1);case 6:return n.next=8,(0,w.T1)(T.A.fetchEntityCount,"Openid_provider",{where:"active == true"});case 8:return t=n.sent,n.abrupt("return",t>0);case 10:case"end":return n.stop()}}),_e)}function Ie(){var e,t;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(void 0===(e=ee.A.getLongTerm("server","ssoAvailable"))){n.next=5;break}return n.abrupt("return",e);case 5:return n.next=7,(0,w.T1)(Ce);case 7:return t=n.sent,ee.A.addLongTerm("server","ssoAvailable",t),n.abrupt("return",t);case 10:case"end":return n.stop()}}),De)}var Re=s(27399),Me=b().mark(Je),Ne=b().mark(Xe),Le=b().mark(Qe),Fe=b().mark(Ze),He=b().mark(et),Be=b().mark(nt),Ue=b().mark(ot),Ve=b().mark(it),We=b().mark(at),ze=b().mark(st),qe=b().mark(ut),Ye=b().mark(lt),$e=function(e){return e.session},Ge=function(e){return e.input},Ke=function(e){return e.app};function Je(e){var t,n,r,o;return b().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e/2*60*1e3,i.next=3,(0,w.T1)(m.A.doSessionRequest);case 3:return n=i.sent,r=n.success,o=n.adminAllowed,i.next=8,(0,w.yJ)(m.A.setLoggedIn(r));case 8:return i.next=10,(0,w.yJ)(m.A.setAdminAllowed(o));case 10:return i.next=12,(0,w.T1)(Xe,t);case 12:return i.next=14,(0,w.T1)(Je,e);case 14:case"end":return i.stop()}}),Me)}function Xe(e){return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,w.cb)(e);case 2:case"end":return t.stop()}}),Ne)}function Qe(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.T1)(m.A.doRequest,"logout",{method:"POST"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),Le)}function Ze(){var e,t;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,w.Lt)(Ge);case 2:e=n.sent,t=e.baseRoute,window.location.href=t||"/";case 5:case"end":return n.stop()}}),Fe)}function et(){var e,t,n,r;return b().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,w.Lt)(Ke);case 2:return e=o.sent,t=e.textResourceModules,o.next=6,(0,w.T1)(c.A.getUserLocale);case 6:return n=o.sent,o.next=9,(0,w.T1)(c.A.getChangeLocaleAction,t,n);case 9:return r=o.sent,o.next=12,(0,w.yJ)(r);case 12:case"end":return o.stop()}}),He)}function tt(e){var t=e.payload;return b().mark((function e(){var n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.sessionTimeout,e.next=3,(0,w.T1)(et);case 3:return e.next=5,(0,w.yJ)(m.A.setAdminAllowed(void 0));case 5:return e.next=7,(0,w.yJ)(m.A.setLoggedIn(!0));case 7:return e.next=9,(0,w.yJ)(h.A.connectSocket());case 9:return e.next=11,(0,w.T1)(Je,n);case 11:case"end":return e.stop()}}),e)}))()}function nt(e){var t;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,w.T1)(Z.Ix);case 2:return t=n.sent,n.next=5,(0,w.yJ)(h.A.modal("navigation-pending-changes","client.admin.confirmTouchedFormTitle",e,(function(e){var n=e.close;return(0,le.jsx)(Re.A,{onYes:function(){n(),t.put("yes")},onNo:function(){n(),t.put("no")}})}),!0,(function(){return t.put("no")})));case 5:return n.next=7,(0,w.s)(t);case 7:return n.abrupt("return",n.sent);case 8:case"end":return n.stop()}}),Be)}function rt(e){var t=e.payload;return b().mark((function e(){var n,r;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.message,r=t.confirmCallback,e.next=3,(0,w.T1)(nt,n);case 3:if("yes"!==e.sent){e.next=9;break}return e.next=7,(0,w.T1)(r,!0);case 7:e.next=11;break;case 9:return e.next=11,(0,w.T1)(r,!1);case 11:case"end":return e.stop()}}),e)}))()}function ot(){var e;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,w.Lt)($e);case 2:if(e=t.sent,!e.pendingChanges){t.next=10;break}return t.next=7,(0,w.T1)(nt,"client.admin.confirmTouchedFormLogout");case 7:if("yes"===t.sent){t.next=10;break}return t.abrupt("return");case 10:return t.next=12,(0,w.T1)(Pe.A.remove,Te.v);case 12:return t.next=14,(0,w.T1)(Qe);case 14:return t.next=16,(0,w.yJ)(m.A.setLoggedIn(!1));case 16:return t.next=18,(0,w.yJ)(h.A.closeSocket());case 18:return t.next=20,(0,w.T1)(Ze);case 20:case"end":return t.stop()}}),Ue)}function it(){var e,t,n,r;return b().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,w.T1)(T.A.fetchPrincipal);case 2:return e=o.sent,t=e.username,n=e.currentBusinessUnit,r=e.inWrongBusinessUnit,o.next=8,(0,w.yJ)(Ee.P(t));case 8:return o.next=10,(0,w.yJ)(Ee.Ml(n));case 10:return o.next=12,(0,w.yJ)(Ee.xI(r));case 12:case"end":return o.stop()}}),Ve)}function at(){var e;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,w.T1)(T.A.requestSaga,"principals/businessunits");case 2:return e=t.sent,t.next=5,(0,w.yJ)(Ee.Qp(e.body.data));case 5:case"end":return t.stop()}}),We)}function ct(e){var t=e.payload.businessUnitId;return b().mark((function e(){var n,r,o;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Lt)($e);case 2:return n=e.sent,r=n.username,o="principals/".concat(r,"/businessunit"),e.next=7,(0,w.T1)(T.A.requestSaga,o,{method:"PUT",body:{businessUnit:t}});case 7:return e.next=9,(0,w.T1)(c.A.reinitialiseCache);case 9:location.reload();case 10:case"end":return e.stop()}}),e)}))()}function st(){var e;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,w.T1)(Ie);case 2:return e=t.sent,t.next=5,(0,w.yJ)(Ee.d4(e));case 5:case"end":return t.stop()}}),ze)}function ut(){var e,t;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,w.T1)(T.A.fetchModules);case 2:return e=n.sent,t=e.includes("nice.optional.officeintegration"),n.next=6,(0,w.yJ)(Ee.Wm(t));case 6:case"end":return n.stop()}}),qe)}function lt(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q7)([(0,w.p8)(Ee.hO,tt),(0,w.p8)(Ee.tZ,ot),(0,w.p8)(Ee.AZ,it),(0,w.p8)(Ee.Cm,at),(0,w.p8)(Ee.zu,ct),(0,w.p8)(Ee.Ff,st),(0,w.p8)(Ee.sR,rt),(0,w.p8)(Ee.$H,ut)]);case 2:case"end":return e.stop()}}),Ye)}var dt=b().mark(pt);function pt(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q7)([(0,w.Zy)(lt)]);case 2:case"end":return e.stop()}}),dt)}const ft={session:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ae,t=arguments.length>1?arguments[1]:void 0,n=je[t.type];return n?n(e,t):e},navigation:$,preferences:Se};var mt=[pt,Y,ke],ht=s(35693);const gt=[{ctrl:!0,alt:!0,code:"KeyM",actions:[(0,S.ad)("modules")],global:!0},{ctrl:!0,alt:!0,code:"KeyN",actions:[(0,S.ad)("settings")],global:!0},{ctrl:!0,alt:!0,code:"KeyO",actions:[(0,S.ad)("complete")],global:!0},{ctrl:!0,alt:!0,code:"KeyK",actions:[(0,S.ad)("system")],global:!0}];var vt,yt,bt="admin",wt=r().lazy((function(){return Promise.all([s.e(10927),s.e(45601),s.e(79172),s.e(13419),s.e(27136),s.e(8007)]).then(s.bind(s,1314))})),xt=function(){return vt||(vt=(0,le.jsx)(le.Fragment,{children:(0,le.jsx)(n.Suspense,{fallback:"",children:(0,le.jsx)(wt,{})})}))},Ot=function(e,t,n,o){window.reactRegistry&&window.reactRegistry.setReact&&window.reactRegistry.setReact(r(),i());var s=yt||(yt=(0,le.jsx)(xt,{})),u=c.A.createStore(ft,mt,t,bt);return p.A.addToStore(u,(function(){return{}})),a.A.addToStore(u),l.A.addToStore(u,(function(){return{appComponent:ht.A,formApp:v.A}})),l.A.dynamicActionsAddToStore(u),d.A.addToStore(u,!0,["console","remote","notification"]),h.A.addToStore(u,!0,{withNotificationCenter:!0}),m.A.addToStore(u),f.A.addToStore(u,gt),g.A.addToStore(u),c.A.createApp(bt,s,u,{input:t,events:n,actions:[],publicPath:o,textResourceModules:["component","common","actions","login","sso-login","entity-browser","entity-list","entity-detail","dashboard","docs-browser","entities",bt]})};c.A.registerAppInRegistry(bt,Ot);var kt=function(e){return c.A.useApp({initApp:Ot,props:e,packageName:bt}).component};kt.propTypes={baseRoute:t().string,memoryHistory:t().bool};const St=kt})(),u})()));
|
|
31
|
+
*/var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=r.useRef,c=r.useEffect,s=r.useMemo,u=r.useDebugValue},85250:(e,t,n)=>{var r=n(37217),o=n(87805),i=n(86649),a=n(42824),c=n(23805),s=n(37241),u=n(14974);e.exports=function e(t,n,l,d,p){t!==n&&i(n,(function(i,s){if(p||(p=new r),c(i))a(t,n,s,l,e,d,p);else{var f=d?d(u(t,s),i,s+"",t,n,p):void 0;void 0===f&&(f=i),o(t,s,f)}}),s)}},85431:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r,o=n(72189),i=n.n(o),a=n(6199),c=n(47616),s=n(26166);const u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,a.AH)(r||(r=i()(["\n color: ",";\n font-family: ",";\n font-size: ",";\n font-style: ",";\n font-weight: ",";\n line-height: ",";\n"])),e.color||c.A.color("text"),e.fontFamily||c.A.fontFamily("regular"),e.fontSize||s.A.font(0),e.fontStyle||"normal",e.fontWeight||c.A.fontWeight("regular"),e.lineHeight||c.A.lineHeight("regular"))}},85463:e=>{e.exports=function(e){return e!=e}},85508:(e,t,n)=>{var r=n(86151),o=n(36800),i=n(17400);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t<n?1:-1:i(a),r(t,n,a,e)}}},85558:e=>{e.exports=function(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}},85577:(e,t,n)=>{"use strict";n.d(t,{GP:()=>I});var r=n(9946),o=n(92516),i=n(2831),a=n(70228),c=n(29407);function s(e,t){const n=(0,c.a)(e,t?.in);return(0,i.m)(n,(0,a.D)(n))+1}var u=n(72794),l=n(51898),d=n(65456),p=n(84485);function f(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const m={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return f("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):f(n+1,2)},d:(e,t)=>f(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>f(e.getHours()%12||12,t.length),H:(e,t)=>f(e.getHours(),t.length),m:(e,t)=>f(e.getMinutes(),t.length),s:(e,t)=>f(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return f(Math.trunc(r*Math.pow(10,n-3)),t.length)}},h="midnight",g="noon",v="morning",y="afternoon",b="evening",w="night",x={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 m.y(e,t)},Y:function(e,t,n,r){const o=(0,p.h)(e,r),i=o>0?o:1-o;if("YY"===t){return f(i%100,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):f(i,t.length)},R:function(e,t){return f((0,l.p)(e),t.length)},u:function(e,t){return f(e.getFullYear(),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 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 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 m.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 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,d.N)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):f(o,t.length)},I:function(e,t,n){const r=(0,u.s)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):f(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):m.d(e,t)},D:function(e,t,n){const r=s(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):f(r,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(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return f(i,2);case"eo":return n.ordinalNumber(i,{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(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return f(i,t.length);case"co":return n.ordinalNumber(i,{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 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?g:0===r?h: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?b:r>=12?y:r>=4?v:w,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 m.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):m.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):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"}):f(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):m.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):m.s(e,t)},S:function(e,t){return m.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return k(r);case"XXXX":case"XX":return S(r);default:return S(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return k(r);case"xxxx":case"xx":return S(r);default:return S(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+O(r,":");default:return"GMT"+S(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+O(r,":");default:return"GMT"+S(r,":")}},t:function(e,t,n){return f(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return f(+e,t.length)}};function O(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+f(i,2)}function k(e,t){if(e%60==0){return(e>0?"-":"+")+f(Math.abs(e)/60,2)}return S(e,t)}function S(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+f(Math.trunc(r/60),2)+t+f(r%60,2)}var E=n(78668),j=n(3265),A=n(32370);const P=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,T=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_=/^'([^]*?)'?$/,D=/''/g,C=/[a-zA-Z]/;function I(e,t,n){const i=(0,o.q)(),a=n?.locale??i.locale??r.c,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,u=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,l=(0,c.a)(e,n?.in);if(!(0,A.f)(l))throw new RangeError("Invalid time value");let d=t.match(T).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,E.m[t])(e,a.formatLong)}return e})).join("").match(P).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:R(e)};if(x[t])return{isToken:!0,value:e};if(t.match(C))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));a.localize.preprocessor&&(d=a.localize.preprocessor(l,d));const p={firstWeekContainsDate:s,weekStartsOn:u,locale:a};return d.map((r=>{if(!r.isToken)return r.value;const o=r.value;(!n?.useAdditionalWeekYearTokens&&(0,j.xM)(o)||!n?.useAdditionalDayOfYearTokens&&(0,j.ef)(o))&&(0,j.Ss)(o,t,String(e));return(0,x[o[0]])(l,o,a.localize,p)})).join("")}function R(e){const t=e.match(_);return t?t[1].replace(D,"'"):e}},85735:e=>{function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t},86009:(e,t,n)=>{e=n.nmd(e);var r=n(34840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=c},86151:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,i){for(var a=-1,c=n(t((r-e)/(o||1)),0),s=Array(c);c--;)s[i?c:++a]=e,e+=o;return s}},86375:(e,t,n)=>{var r=n(14528),o=n(28879),i=n(4664),a=n(63345),c=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=c},86395:(e,t,n)=>{"use strict";n.d(t,{A:()=>pe});var r,o=n(60115),i=n(26396),a=n.n(i),c=n(22056),s=n.n(c),u=n(39892),l=n.n(u),d=n(4883),p=n.n(d),f=n(72189),m=n.n(f),h=n(6199),g=n(57488);const v=h.Ay.div.withConfig({displayName:"StyledPanel"})(r||(r=m()(["\n && {\n background-color: ",";\n border: 1px "," ",";\n border-radius: ",";\n }\n"])),g.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),g.t7.color("borderLight"),g.t7.radii("form"));var y=n(74848),b=["children","isFramed","controlledIsOpen","isOpenInitial","isToggleable","onToggle"];const w=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.controlledIsOpen,i=e.isOpenInitial,a=void 0===i||i,c=e.isToggleable,u=void 0===c||c,f=e.onToggle,m=l()(e,b),h=(0,d.useState)(a),g=s()(h,2),w=g[0],x=g[1],O="boolean"==typeof o,k=function(){u&&(O?"function"==typeof f&&f(!o):x(!w))};return(0,y.jsx)(v,{isFramed:r,"data-cy":m["data-cy"],children:p().Children.map(t,(function(e){return p().cloneElement(e,{isFramed:r,isOpen:O?o:w,isToggleable:u,toggleOpenState:k})}))})};var x,O=n(26166);const k=h.Ay.div.withConfig({displayName:"StyledPanelBody"})(x||(x=m()(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?O.A.space(-.375):0}),(function(e){return e.isOpen?"block":"none"}));var S=["children","isFramed","isOpen"];const E=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=l()(e,S);return(0,y.jsx)(k,{isFramed:n,isOpen:r,"data-cy":o["data-cy"],children:(0,y.jsx)("div",{children:t})})};const j=function(e){var t=e.initialOpenPanelIndex,n=e.children,r=(0,d.useState)(t),o=s()(r,2),i=o[0],a=o[1];return(0,y.jsx)(y.Fragment,{children:p().Children.map(n,(function(e,t){return p().cloneElement(e,{controlledIsOpen:i===t,onToggle:function(e){return function(e,t){a(!0===t?e:void 0)}(t,e)}})}))})};var A;const P=h.Ay.div.withConfig({displayName:"StyledPanelGroup"})(A||(A=m()(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),O.A.space(0),v,O.A.space(-1));function T(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 _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const D=function(e){return(0,y.jsx)(P,{children:(0,y.jsx)(j,_({},e))})};var C,I,R,M,N,L,F=n(64116),H=n(46937),B="1px",U=h.Ay.span.withConfig({displayName:"StyledIconWrapper"})(C||(C=m()(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),O.A.font(1),g.t7.color("text"),!H.A.isPrimaryTouchDevice()&&(0,h.AH)(I||(I=m()(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),g.t7.color("secondaryLight")));const V=h.Ay.div.withConfig({displayName:"StyledPanelHeader"})(R||(R=m()(["\n && {\n background-color: ",";\n display: flex;\n /* stylelint-disable declaration-block-no-redundant-longhand-properties */\n border-top-left-radius: calc("," - ",");\n border-top-right-radius: calc("," - ",");\n border-bottom-right-radius: calc("," - ",");\n border-bottom-left-radius: calc("," - ",");\n ","\n /* stylelint-enable declaration-block-no-redundant-longhand-properties */\n padding: ",";\n align-items: center;\n\n /* only apply arrow styles on non-touch devices */\n ","\n /* stylelint-disable-line rule-empty-line-before */\n > div {\n flex: 1 1 auto;\n }\n ","\n }\n"])),g.t7.color("backgroundPanelHeaderFooter"),g.t7.radii("form"),B,g.t7.radii("form"),B,g.t7.radii("form"),B,g.t7.radii("form"),B,(function(e){return e.isOpen&&(0,h.AH)(M||(M=m()(["\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n "])))}),(function(e){return e.isFramed?(0,h.AH)(N||(N=m()(["\n "," ","\n "])),O.A.space(-1.7),O.A.space(-.375)):0}),!H.A.isPrimaryTouchDevice()&&(0,h.AH)(L||(L=m()(["\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n "])),U),(function(e){return n=(t=e).theme,r=t.isOpen,o=t.isFramed,i="\n &:first-child {\n border-bottom-color: ".concat(n.colors.borderLight,";\n border-bottom-style: ").concat(o?"solid":"none",";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-color: ").concat(n.colors.borderLight,";\n border-top-style: ").concat(o?"solid":"none",";\n }\n "),r?"\n ".concat(i,"\n &:first-child {\n border-bottom-width: ").concat(B,";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-width: ").concat(B,";\n }\n "):"\n ".concat(i,"\n &:first-child {\n border-bottom-width: 0;\n }\n\n &:last-child {\n border-top-width: 0;\n }\n\n &:nth-child(3) {\n border-top-width: ").concat(B,";\n }\n ");var t,n,r,o,i}));var W=["children","isFramed","isOpen","isToggleable","showToggler","toggleOpenState","options"];const z={Body:E,Group:D,Header:function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,i=e.showToggler,a=void 0===i||i,c=e.toggleOpenState,s=e.options,u=void 0===s?{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}:s,d=l()(e,W);return(0,y.jsxs)(V,{isFramed:n,isOpen:r,onClick:c,"data-cy":d["data-cy"],children:[(0,y.jsx)("div",{children:p().Children.map(t,(function(e){return p().cloneElement(e)}))}),o&&a&&(0,y.jsx)(U,{children:(0,y.jsx)(F.A,{icon:r?"chevron-up":"chevron-down",onClick:c,title:r?u.collapseButtonText:u.unfoldButtonText})})]})},Wrapper:w};var q;const Y=h.Ay.div.withConfig({displayName:"StyledPanel"})(q||(q=m()(["\n && {\n background-color: ",";\n border: 1.5px "," ",";\n border-radius: ",";\n }\n"])),g.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),g.t7.color("borderLight"),g.t7.radii("form"));const $=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.isOpenInitial,i=void 0===o||o,a=(0,d.useState)(i),c=s()(a,2),u=c[0],l=c[1];return(0,y.jsx)(Y,{isFramed:r,children:p().Children.map(t,(function(e){return p().cloneElement(e,{isOpen:u,isToggleable:!i,isFramed:r,toggleOpenState:function(){return l(!u)}})}))})};var G,K;const J=h.Ay.div.withConfig({displayName:"StyledPanelBody"})(G||(G=m()(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?(0,h.AH)(K||(K=m()(["\n "," "," "," ","\n "])),O.A.space(-1),O.A.space(.2),O.A.space(.2),O.A.space(.2)):0}),(function(e){return e.isOpen?"block":"none"}));const X=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,y.jsx)(J,{isFramed:n,isOpen:r,children:(0,y.jsx)("div",{children:t})})};var Q;const Z=h.Ay.div.withConfig({displayName:"StyledPanelGroup"})(Q||(Q=m()(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),O.A.space(0),Y,O.A.space(-1));function ee(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 te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ne=function(e){return(0,y.jsx)(Z,{children:(0,y.jsx)(j,te({},e))})};var re,oe,ie,ae="1px",ce=h.Ay.div.withConfig({displayName:"StyledPanelHeader"})(re||(re=m()(["\n && {\n background-color: ",";\n display: flex;\n border-radius: calc("," - ",")\n calc("," - ",") 0 0;\n padding: ",";\n align-items: center;\n\n > div {\n flex: 1 1 auto;\n }\n\n * {\n font-weight: ",";\n }\n ","\n }\n"])),g.t7.color("paper"),g.t7.radii("form"),ae,g.t7.radii("form"),ae,(function(e){return e.isFramed?O.A.space(.2):0}),g.t7.fontWeight("regular"),(function(e){return n=(t=e).theme,r=t.isFramed,o="\n &:first-child {\n border-bottom-color: ".concat(n.colors.borderLight,";\n border-bottom-style: ").concat(r?"solid":"none",";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-color: ").concat(n.colors.borderLight,";\n border-top-style: ").concat(r?"solid":"none",";\n }\n "),"\n ".concat(o,"\n &:first-child {\n border-bottom-width: 0;\n }\n\n &:last-child {\n border-top-width: 0;\n }\n\n &:nth-child(3) {\n border-top-width: ").concat(ae,";\n }\n ");var t,n,r,o})),se=h.Ay.span.withConfig({displayName:"StyledIconWrapper"})(oe||(oe=m()(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),O.A.font(1),g.t7.color("text"),!H.A.isPrimaryTouchDevice()&&(0,h.AH)(ie||(ie=m()(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),g.t7.color("secondaryLight")));const ue=ce;const le={Body:X,Group:ne,Header:function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,i=e.showToggler,a=void 0===i||i,c=e.toggleOpenState,s=e.options,u=void 0===s?{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}:s;return(0,y.jsxs)(ue,{isFramed:n,isOpen:r,onClick:o?c:function(){},children:[(0,y.jsx)("div",{children:p().Children.map(t,(function(e){return p().cloneElement(e)}))}),o&&a&&(0,y.jsx)(se,{children:(0,y.jsx)(F.A,{icon:r?"chevron-up":"chevron-down",onClick:c,title:r?u.collapseButtonText:u.unfoldButtonText})})]})},Wrapper:$};var de={Body:a()(a()({},o.A.EmbedType.admin,z.Body),o.A.EmbedType.widget,le.Body),Group:a()(a()({},o.A.EmbedType.admin,z.Group),o.A.EmbedType.widget,le.Group),Header:a()(a()({},o.A.EmbedType.admin,z.Header),o.A.EmbedType.widget,le.Header),Wrapper:a()(a()({},o.A.EmbedType.admin,z.Wrapper),o.A.EmbedType.widget,le.Wrapper)};const pe={Body:o.A.embedStrategyFactory({mapping:de.Body}),Group:o.A.embedStrategyFactory({mapping:de.Group}),Header:o.A.embedStrategyFactory({mapping:de.Header}),Wrapper:o.A.embedStrategyFactory({mapping:de.Wrapper})}},86635:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof window}function o(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){return!!r()&&(e instanceof Node||e instanceof i(e).Node)}function c(e){return!!r()&&(e instanceof Element||e instanceof i(e).Element)}function s(e){return!!r()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function u(e){return!(!r()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function l(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function d(e){return["html","body","#document"].includes(o(e))}function p(e){return i(e).getComputedStyle(e)}function f(e){if("html"===o(e))return e;const t=e.assignedSlot||e.parentNode||u(e)&&e.host||function(e){var t;return null==(t=(a(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}(e);return u(t)?t.host:t}n.d(t,{$4:()=>f,L9:()=>p,Ng:()=>u,Tc:()=>l,eu:()=>d,sb:()=>s,vq:()=>c})},86649:(e,t,n)=>{var r=n(83221)();e.exports=r},87068:(e,t,n)=>{var r=n(37217),o=n(25911),i=n(21986),a=n(50689),c=n(5861),s=n(56449),u=n(3656),l=n(37167),d="[object Arguments]",p="[object Array]",f="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,h,g,v){var y=s(e),b=s(t),w=y?p:c(e),x=b?p:c(t),O=(w=w==d?f:w)==f,k=(x=x==d?f:x)==f,S=w==x;if(S&&u(e)){if(!u(t))return!1;y=!0,O=!1}if(S&&!O)return v||(v=new r),y||l(e)?o(e,t,n,h,g,v):i(e,t,w,n,h,g,v);if(!(1&n)){var E=O&&m.call(e,"__wrapped__"),j=k&&m.call(t,"__wrapped__");if(E||j){var A=E?e.value():e,P=j?t.value():t;return v||(v=new r),g(A,P,n,h,v)}}return!!S&&(v||(v=new r),a(e,t,n,h,g,v))}},87105:(e,t,n)=>{"use strict";n.d(t,{AO:()=>h,BV:()=>qt,C5:()=>Vt,Ge:()=>Pn,KP:()=>Dt,N_:()=>Cn,Ri:()=>pt,Ys:()=>An,Zp:()=>gt,bg:()=>Ft,g:()=>vt,ok:()=>Nn,pg:()=>Bt,qh:()=>Wt,zy:()=>ft});var r,o=n(4883),i=(n(16069),e=>{throw TypeError(e)}),a=(e,t,n)=>(((e,t,n)=>{t.has(e)||i("Cannot "+n)})(e,t,"read from private field"),n?n.call(e):t.get(e)),c="popstate";function s(e={}){let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:o=!1}=e;t=n.map(((e,t)=>l(e,"string"==typeof e?null:e.state,0===t?"default":void 0)));let i=s(null==r?t.length-1:r),a="POP",c=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function u(){return t[i]}function l(e,n=null,r){let o=m(t?u().pathname:"/",e,n,r);return p("/"===o.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),o}function d(e){return"string"==typeof e?e:h(e)}return{get index(){return i},get action(){return a},get location(){return u()},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?g(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){a="PUSH";let r=l(e,n);i+=1,t.splice(i,t.length,r),o&&c&&c({action:a,location:r,delta:1})},replace(e,n){a="REPLACE";let r=l(e,n);t[i]=r,o&&c&&c({action:a,location:r,delta:0})},go(e){a="POP";let n=s(i+e),r=t[n];i=n,c&&c({action:a,location:r,delta:e})},listen:e=>(c=e,()=>{c=null})}}function u(e={}){return v((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return m("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:h(t)}),null,e)}function l(e={}){return v((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=g(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),m("",{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){p("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function d(e,t){if(!1===e||null==e)throw new Error(t)}function p(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 m(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?g(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 g(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:i=!1}=r,a=o.history,s="POP",u=null,l=p();function p(){return(a.state||{idx:null}).idx}function g(){s="POP";let e=p(),t=null==e?null:e-l;l=e,u&&u({action:s,location:y.location,delta:t})}function v(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"==typeof e?e:h(e);return n=n.replace(/ $/,"%20"),d(t,`No window.location.(origin|href) available to create URL for href: ${n}`),new URL(n,t)}null==l&&(l=0,a.replaceState({...a.state,idx:l},""));let y={get action(){return s},get location(){return e(o,a)},listen(e){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(c,g),u=e,()=>{o.removeEventListener(c,g),u=null}},createHref:e=>t(o,e),createURL:v,encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let r=m(y.location,e,t);n&&n(r,e),l=p()+1;let c=f(r,l),d=y.createHref(r);try{a.pushState(c,"",d)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(d)}i&&u&&u({action:s,location:y.location,delta:1})},replace:function(e,t){s="REPLACE";let r=m(y.location,e,t);n&&n(r,e),l=p();let o=f(r,l),c=y.createHref(r);a.replaceState(o,"",c),i&&u&&u({action:s,location:y.location,delta:0})},go:e=>a.go(e)};return y}var y=class{constructor(e){var t,n,o;if(t=this,n=r,o=new Map,n.has(t)?i("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(a(this,r).has(e))return a(this,r).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw new Error("No value found for context")}set(e,t){a(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={}){return e.map(((e,o)=>{let i=[...n,String(o)],a="string"==typeof e.id?e.id:i.join("-");if(d(!0!==e.index||!e.children,"Cannot specify children on an index route"),d(!r[a],`Found a route id collision on id "${a}". Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let n={...e,...t(e),id:a};return r[a]=n,n}{let n={...e,...t(e),id:a,children:void 0};return r[a]=n,e.children&&(n.children=x(e.children,t,i,r)),n}}))}function O(e,t,n="/"){return k(e,t,n,!1)}function k(e,t,n,r){let o=F(("string"==typeof t?g(t):t).pathname||"/",n);if(null==o)return null;let i=E(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let e=0;null==a&&e<i.length;++e){let t=L(o);a=M(i[e],t,r)}return a}function S(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function E(e,t=[],n=[],r=""){let o=(e,o,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(d(a.relativePath.startsWith(r),`Absolute route path "${a.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),a.relativePath=a.relativePath.slice(r.length));let c=W([r,a.relativePath]),s=n.concat(a);e.children&&e.children.length>0&&(d(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),E(e.children,t,s,c)),(null!=e.path||e.index)&&t.push({path:c,score:R(c,e.index),routesMeta:s})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of j(e.path))o(e,t,n);else o(e,t)})),t}function j(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=j(r.join("/")),c=[];return c.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&c.push(...a),c.map((t=>e.startsWith("/")&&""===t?"/":t))}var A=/^:[\w-]+$/,P=3,T=2,_=1,D=10,C=-2,I=e=>"*"===e;function R(e,t){let n=e.split("/"),r=n.length;return n.some(I)&&(r+=C),t&&(r+=T),n.filter((e=>!I(e))).reduce(((e,t)=>e+(A.test(t)?P:""===t?_:D)),r)}function M(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",a=[];for(let e=0;e<r.length;++e){let c=r[e],s=e===r.length-1,u="/"===i?t:t.slice(i.length)||"/",l=N({path:c.relativePath,caseSensitive:c.caseSensitive,end:s},u),d=c.route;if(!l&&s&&n&&!r[r.length-1].route.index&&(l=N({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},u)),!l)return null;Object.assign(o,l.params),a.push({params:o,pathname:W([i,l.pathname]),pathnameBase:z(W([i,l.pathnameBase])),route:d}),"/"!==l.pathnameBase&&(i=W([i,l.pathnameBase]))}return a}function N(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){p("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let i=new RegExp(o,t?void 0:"i");return[i,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=c[r]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const o=c[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function L(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return p(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function F(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}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 V(e,t,n,r=!1){let o;"string"==typeof e?o=g(e):(o={...e},d(!o.pathname||!o.pathname.includes("?"),H("?","pathname","search",o)),d(!o.pathname||!o.pathname.includes("#"),H("#","pathname","hash",o)),d(!o.search||!o.search.includes("#"),H("#","search","hash",o)));let i,a=""===e||""===o.pathname,c=a?"/":o.pathname;if(null==c)i=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("/")}i=e>=0?t[e]:"/"}let s=function(e,t="/"){let{pathname:n,search:r="",hash:o=""}="string"==typeof e?g(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:q(r),hash:Y(o)}}(o,i),u=c&&"/"!==c&&c.endsWith("/"),l=(a||"."===c)&&n.endsWith("/");return s.pathname.endsWith("/")||!u&&!l||(s.pathname+="/"),s}var W=e=>e.join("/").replace(/\/\/+/g,"/"),z=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),q=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Y=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var $=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 G(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var K=["POST","PUT","PATCH","DELETE"],J=new Set(K),X=["GET",...K],Q=new Set(X),Z=new Set([301,302,303,307,308]),ee=new Set([307,308]),te={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ne={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},re={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},oe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ie=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ae="remix-router-transitions",ce=Symbol("ResetLoaderData");function se(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;d(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r,o,i,a=e.mapRouteProperties||ie,c={},s=x(e.routes,a,void 0,c),u=e.basename||"/",l=e.dataStrategy||Se,f={unstable_middleware:!1,...e.future},h=null,g=new Set,v=null,b=null,w=null,E=null!=e.hydrationData,j=O(s,e.history.location,u),A=!1,P=null;if(null==j&&!e.patchRoutesOnNavigation){let t=Be(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=He(s);j=n,P={[r.id]:t}}if(j&&!e.hydrationData){Ge(j,s,e.history.location.pathname).active&&(j=null)}if(j)if(j.some((e=>e.route.lazy)))o=!1;else if(j.some((e=>e.route.loader))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=j.findIndex((e=>void 0!==n[e.route.id]));o=j.slice(0,e+1).every((e=>!fe(e.route,t,n)))}else o=j.every((e=>!fe(e.route,t,n)))}else o=!0;else{o=!1,j=[];let t=Ge(null,s,e.history.location.pathname);t.active&&t.matches&&(A=!0,j=t.matches)}let T,_,D={historyAction:e.history.action,location:e.history.location,matches:j,initialized:o,navigation:te,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||P,fetchers:new Map,blockers:new Map},C="POP",I=!1,R=!1,M=new Map,N=null,L=!1,H=!1,B=new Set,U=new Map,V=0,W=-1,z=new Map,q=new Set,Y=new Map,$=new Map,K=new Set,J=new Map,X=null;function Q(e,t={}){D={...D,...e};let n=[],r=[];D.fetchers.forEach(((e,t)=>{"idle"===e.state&&(K.has(t)?n.push(t):r.push(t))})),K.forEach((e=>{D.fetchers.has(e)||U.has(e)||n.push(e)})),[...g].forEach((e=>e(D,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>xe(e))),r.forEach((e=>D.fetchers.delete(e)))}function Z(t,n,{flushSync:o}={}){let i,a=null!=D.actionData&&null!=D.navigation.formMethod&&Ke(D.navigation.formMethod)&&"loading"===D.navigation.state&&!0!==t.state?._isRedirect;i=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:a?D.actionData:null;let c=n.loaderData?Ne(D.loaderData,n.loaderData,n.matches||[],n.errors):D.loaderData,u=D.blockers;u.size>0&&(u=new Map(u),u.forEach(((e,t)=>u.set(t,re))));let l,d=!0===I||null!=D.navigation.formMethod&&Ke(D.navigation.formMethod)&&!0!==t.state?._isRedirect;if(r&&(s=r,r=void 0),L||"POP"===C||("PUSH"===C?e.history.push(t,t.state):"REPLACE"===C&&e.history.replace(t,t.state)),"POP"===C){let e=M.get(D.location.pathname);e&&e.has(t.pathname)?l={currentLocation:D.location,nextLocation:t}:M.has(t.pathname)&&(l={currentLocation:t,nextLocation:D.location})}else if(R){let e=M.get(D.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),M.set(D.location.pathname,e)),l={currentLocation:D.location,nextLocation:t}}Q({...n,actionData:i,loaderData:c,historyAction:C,location:t,initialized:!0,navigation:te,revalidation:"idle",restoreScrollPosition:$e(t,n.matches||D.matches),preventScrollReset:d,blockers:u},{viewTransitionOpts:l,flushSync:!0===o}),C="POP",I=!1,R=!1,L=!1,H=!1,X?.resolve(),X=null}async function ce(t,n,o){T&&T.abort(),T=null,C=t,L=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(v&&w){let n=Ye(e,t);v[n]=w()}}(D.location,D.matches),I=!0===(o&&o.preventScrollReset),R=!0===(o&&o.enableViewTransition);let i=r||s,a=o&&o.overrideNavigation,c=o?.initialHydration&&D.matches&&D.matches.length>0&&!A?D.matches:O(i,n,u),l=!0===(o&&o.flushSync);if(c&&D.initialized&&!H&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(D.location,n)&&!(o&&o.submission&&Ke(o.submission.formMethod)))return void Z(n,{matches:c},{flushSync:l});let d=Ge(c,i,n.pathname);if(d.active&&d.matches&&(c=d.matches),!c){let{error:e,notFoundMatches:t,route:r}=Ve(n.pathname);return void Z(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:l})}T=new AbortController;let p,f=De(e.history,n,T.signal,o&&o.submission),m=new y(e.unstable_getContext?await e.unstable_getContext():void 0);if(o&&o.pendingError)p=[Fe(c).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&Ke(o.submission.formMethod)){let t=await async function(e,t,n,r,o,i,a={}){ve();let c,s=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(Q({navigation:s},{flushSync:!0===a.flushSync}),i){let n=await Je(r,t.pathname,e.signal);if("aborted"===n.type)return{shortCircuited:!0};if("error"===n.type){let e=Fe(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}=Ve(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:n}]}}r=n.matches}let l=Xe(r,t);if(l.route.action||l.route.lazy){let t=await me("action",e,[l],r,o,null);if(c=t[l.route.id],!c)for(let e of r)if(t[e.route.id]){c=t[e.route.id];break}if(e.signal.aborted)return{shortCircuited:!0}}else c={type:"error",error:Be(405,{method:e.method,pathname:t.pathname,routeId:l.route.id})};if(qe(c)){let t;if(a&&null!=a.replace)t=a.replace;else{t=_e(c.response.headers.get("Location"),new URL(e.url),u)===D.location.pathname+D.location.search}return await de(e,c,!0,{submission:n,replace:t}),{shortCircuited:!0}}if(ze(c)){let e=Fe(r,l.route.id);return!0!==(a&&a.replace)&&(C="PUSH"),{matches:r,pendingActionResult:[e.route.id,c]}}return{matches:r,pendingActionResult:[l.route.id,c]}}(f,n,o.submission,c,m,d.active,{replace:o.replace,flushSync:l});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(ze(r)&&G(r.error)&&404===r.error.status)return T=null,void Z(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}c=t.matches||c,p=t.pendingActionResult,a=Ze(n,o.submission),l=!1,d.active=!1,f=De(e.history,f.url,f.signal)}let{shortCircuited:h,matches:g,loaderData:b,errors:x}=await async function(t,n,o,i,a,c,l,d,p,f,m,h){let g=c||Ze(n,l),v=l||d||Qe(g),y=!L&&!f;if(a){if(y){let e=se(h);Q({navigation:g,...void 0!==e?{actionData:e}:{}},{flushSync:m})}let e=await Je(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Fe(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=Ve(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let b=r||s,[w,x]=pe(e.history,D,o,v,n,!0===f,H,B,K,Y,q,b,u,h);if(W=++V,0===w.length&&0===x.length){let e=Ee();return Z(n,{matches:o,loaderData:{},errors:h&&ze(h[1])?{[h[0]]:h[1].error}:null,...Le(h),...e?{fetchers:new Map(D.fetchers)}:{}},{flushSync:m}),{shortCircuited:!0}}if(y){let e={};if(!a){e.navigation=g;let t=se(h);void 0!==t&&(e.actionData=t)}x.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=D.fetchers.get(e.key),n=et(void 0,t?t.data:void 0);D.fetchers.set(e.key,n)})),new Map(D.fetchers)}(x)),Q(e,{flushSync:m})}x.forEach((e=>{Oe(e.key),e.controller&&U.set(e.key,e.controller)}));let O=()=>x.forEach((e=>Oe(e.key)));T&&T.signal.addEventListener("abort",O);let{loaderResults:k,fetcherResults:S}=await he(o,w,x,t,i);if(t.signal.aborted)return{shortCircuited:!0};T&&T.signal.removeEventListener("abort",O);x.forEach((e=>U.delete(e.key)));let E=Ue(k);if(E)return await de(t,E.result,!0,{replace:p}),{shortCircuited:!0};if(E=Ue(S),E)return q.add(E.key),await de(t,E.result,!0,{replace:p}),{shortCircuited:!0};let{loaderData:j,errors:A}=Me(D,o,k,h,x,S);f&&D.errors&&(A={...D.errors,...A});let P=Ee(),_=je(W),C=P||_||x.length>0;return{matches:o,loaderData:j,errors:A,...C?{fetchers:new Map(D.fetchers)}:{}}}(f,n,c,m,d.active,a,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,l,p);h||(T=null,Z(n,{matches:g||c,...Le(p),loaderData:b,errors:x}))}function se(e){return e&&!ze(e[1])?{[e[0]]:e[1].data}:D.actionData?0===Object.keys(D.actionData).length?null:D.actionData:void 0}async function de(r,o,i,{submission:a,fetcherSubmission:c,preventScrollReset:s,replace:l}={}){o.response.headers.has("X-Remix-Revalidate")&&(H=!0);let p=o.response.headers.get("Location");d(p,"Expected a Location header on the redirect Response"),p=_e(p,new URL(r.url),u);let f=m(D.location,p,{_isRedirect:!0});if(n){let n=!1;if(o.response.headers.has("X-Remix-Reload-Document"))n=!0;else if(oe.test(p)){const r=e.history.createURL(p);n=r.origin!==t.location.origin||null==F(r.pathname,u)}if(n)return void(l?t.location.replace(p):t.location.assign(p))}T=null;let h=!0===l||o.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:g,formAction:v,formEncType:y}=D.navigation;!a&&!c&&g&&v&&y&&(a=Qe(D.navigation));let b=a||c;if(ee.has(o.response.status)&&b&&Ke(b.formMethod))await ce(h,f,{submission:{...b,formAction:p},preventScrollReset:s||I,enableViewTransition:i?R:void 0});else{let e=Ze(f,a);await ce(h,f,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:s||I,enableViewTransition:i?R:void 0})}}async function me(e,t,n,r,o,i){let s,d={};try{s=await Ae(l,e,t,n,r,i,c,a,o)}catch(e){return n.forEach((t=>{d[t.route.id]={type:"error",error:e}})),d}for(let[e,n]of Object.entries(s))if(We(n)){let o=n.result;d[e]={type:"redirect",response:Te(o,t,e,r,u)}}else d[e]=await Pe(n);return d}async function he(t,n,r,o,i){let a=me("loader",o,n,t,i,null),c=Promise.all(r.map((async t=>{if(t.matches&&t.match&&t.controller){let n=(await me("loader",De(e.history,t.path,t.controller.signal),[t.match],t.matches,i,t.key))[t.match.route.id];return{[t.key]:n}}return Promise.resolve({[t.key]:{type:"error",error:Be(404,{pathname:t.path})}})})));return{loaderResults:await a,fetcherResults:(await c).reduce(((e,t)=>Object.assign(e,t)),{})}}function ve(){H=!0,Y.forEach(((e,t)=>{U.has(t)&&B.add(t),Oe(t)}))}function ye(e,t,n={}){D.fetchers.set(e,t),Q({fetchers:new Map(D.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function be(e,t,n,r={}){let o=Fe(D.matches,t);xe(e),Q({errors:{[o.route.id]:n},fetchers:new Map(D.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function we(e){return $.set(e,($.get(e)||0)+1),K.has(e)&&K.delete(e),D.fetchers.get(e)||ne}function xe(e){let t=D.fetchers.get(e);!U.has(e)||t&&"loading"===t.state&&z.has(e)||Oe(e),Y.delete(e),z.delete(e),q.delete(e),K.delete(e),B.delete(e),D.fetchers.delete(e)}function Oe(e){let t=U.get(e);t&&(t.abort(),U.delete(e))}function ke(e){for(let t of e){let e=tt(we(t).data);D.fetchers.set(t,e)}}function Ee(){let e=[],t=!1;for(let n of q){let r=D.fetchers.get(n);d(r,`Expected fetcher: ${n}`),"loading"===r.state&&(q.delete(n),e.push(n),t=!0)}return ke(e),t}function je(e){let t=[];for(let[n,r]of z)if(r<e){let e=D.fetchers.get(n);d(e,`Expected fetcher: ${n}`),"loading"===e.state&&(Oe(n),z.delete(n),t.push(n))}return ke(t),t.length>0}function Ce(e){D.blockers.delete(e),J.delete(e)}function Ie(e,t){let n=D.blockers.get(e)||re;d("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(D.blockers);r.set(e,t),Q({blockers:r})}function Re({currentLocation:e,nextLocation:t,historyAction:n}){if(0===J.size)return;J.size>1&&p(!1,"A router only supports one blocker at a time");let r=Array.from(J.entries()),[o,i]=r[r.length-1],a=D.blockers.get(o);return a&&"proceeding"===a.state?void 0:i({currentLocation:e,nextLocation:t,historyAction:n})?o:void 0}function Ve(e){let t=Be(404,{pathname:e}),n=r||s,{matches:o,route:i}=He(n);return{notFoundMatches:o,route:i,error:t}}function Ye(e,t){if(b){return b(e,t.map((e=>S(e,D.loaderData))))||e.key}return e.key}function $e(e,t){if(v){let n=Ye(e,t),r=v[n];if("number"==typeof r)return r}return null}function Ge(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:k(n,r,u,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:k(n,r,u,!0)}}}return{active:!1,matches:null}}async function Je(t,n,o,i){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let l=t;for(;;){let t=null==r,d=r||s,p=c;try{await e.patchRoutesOnNavigation({signal:o,path:n,matches:l,fetcherKey:i,patch:(e,t)=>{o.aborted||ge(e,t,d,p,a)}})}catch(e){return{type:"error",error:e,partialMatches:l}}finally{t&&!o.aborted&&(s=[...s])}if(o.aborted)return{type:"aborted"};let f=O(d,n,u);if(f)return{type:"success",matches:f};let m=k(d,n,u,!0);if(!m||l.length===m.length&&l.every(((e,t)=>e.route.id===m[t].route.id)))return{type:"success",matches:null};l=m}}return i={get basename(){return u},get future(){return f},get state(){return D},get routes(){return s},get window(){return t},initialize:function(){if(h=e.history.listen((({action:t,location:n,delta:r})=>{if(_)return _(),void(_=void 0);p(0===J.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=Re({currentLocation:D.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise((e=>{_=e}));return e.history.go(-1*r),void Ie(o,{state:"blocked",location:n,proceed(){Ie(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(D.blockers);e.set(o,re),Q({blockers:e})}})}return ce(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(ae);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,M);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(ae,JSON.stringify(n))}catch(e){p(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,M);t.addEventListener("pagehide",e),N=()=>t.removeEventListener("pagehide",e)}return D.initialized||ce("POP",D.location,{initialHydration:!0}),i},subscribe:function(e){return g.add(e),()=>g.delete(e)},enableScrollRestoration:function(e,t,n){if(v=e,w=t,b=n||null,!E&&D.navigation===te){E=!0;let e=$e(D.location,D.matches);null!=e&&Q({restoreScrollPosition:e})}return()=>{v=null,w=null,b=null}},navigate:async function t(n,r){if("number"==typeof n)return void e.history.go(n);let o=ue(D.location,D.matches,u,n,r?.fromRouteId,r?.relative),{path:i,submission:a,error:c}=le(!1,o,r),s=D.location,l=m(D.location,i,r&&r.state);l={...l,...e.history.encodeLocation(l)};let d=r&&null!=r.replace?r.replace:void 0,p="PUSH";!0===d?p="REPLACE":!1===d||null!=a&&Ke(a.formMethod)&&a.formAction===D.location.pathname+D.location.search&&(p="REPLACE");let f=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,h=!0===(r&&r.flushSync),g=Re({currentLocation:s,nextLocation:l,historyAction:p});g?Ie(g,{state:"blocked",location:l,proceed(){Ie(g,{state:"proceeding",proceed:void 0,reset:void 0,location:l}),t(n,r)},reset(){let e=new Map(D.blockers);e.set(g,re),Q({blockers:e})}}):await ce(p,l,{submission:a,pendingError:c,preventScrollReset:f,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:h})},fetch:async function(t,n,o,i){Oe(t);let a=!0===(i&&i.flushSync),c=r||s,l=ue(D.location,D.matches,u,o,n,i?.relative),p=O(c,l,u),f=Ge(p,c,l);if(f.active&&f.matches&&(p=f.matches),!p)return void be(t,n,Be(404,{pathname:l}),{flushSync:a});let{path:m,submission:h,error:g}=le(!0,l,i);if(g)return void be(t,n,g,{flushSync:a});let v=Xe(p,m),b=new y(e.unstable_getContext?await e.unstable_getContext():void 0),w=!0===(i&&i.preventScrollReset);h&&Ke(h.formMethod)?await async function(t,n,o,i,a,c,l,p,f,m){function h(e){if(!e.route.action&&!e.route.lazy){let e=Be(405,{method:m.formMethod,pathname:o,routeId:n});return be(t,n,e,{flushSync:p}),!0}return!1}if(ve(),Y.delete(t),!l&&h(i))return;let g=D.fetchers.get(t);ye(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}(m,g),{flushSync:p});let v=new AbortController,y=De(e.history,o,v.signal,m);if(l){let e=await Je(a,o,y.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void be(t,n,e.error,{flushSync:p});if(!e.matches)return void be(t,n,Be(404,{pathname:o}),{flushSync:p});if(h(i=Xe(a=e.matches,o)))return}U.set(t,v);let b=V,w=await me("action",y,[i],a,c,t),x=w[i.route.id];if(y.signal.aborted)return void(U.get(t)===v&&U.delete(t));if(K.has(t)){if(qe(x)||ze(x))return void ye(t,tt(void 0))}else{if(qe(x))return U.delete(t),W>b?void ye(t,tt(void 0)):(q.add(t),ye(t,et(m)),de(y,x,!1,{fetcherSubmission:m,preventScrollReset:f}));if(ze(x))return void be(t,n,x.error)}let k=D.navigation.location||D.location,S=De(e.history,k,v.signal),E=r||s,j="idle"!==D.navigation.state?O(E,D.navigation.location,u):D.matches;d(j,"Didn't find any matches after fetcher action");let A=++V;z.set(t,A);let P=et(m,x.data);D.fetchers.set(t,P);let[_,I]=pe(e.history,D,j,m,k,!1,H,B,K,Y,q,E,u,[i.route.id,x]);I.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=D.fetchers.get(t),r=et(void 0,n?n.data:void 0);D.fetchers.set(t,r),Oe(t),e.controller&&U.set(t,e.controller)})),Q({fetchers:new Map(D.fetchers)});let R=()=>I.forEach((e=>Oe(e.key)));v.signal.addEventListener("abort",R);let{loaderResults:M,fetcherResults:N}=await he(j,_,I,S,c);if(v.signal.aborted)return;v.signal.removeEventListener("abort",R),z.delete(t),U.delete(t),I.forEach((e=>U.delete(e.key)));let L=Ue(M);if(L)return de(S,L.result,!1,{preventScrollReset:f});if(L=Ue(N),L)return q.add(L.key),de(S,L.result,!1,{preventScrollReset:f});let{loaderData:F,errors:$}=Me(D,j,M,void 0,I,N);if(D.fetchers.has(t)){let e=tt(x.data);D.fetchers.set(t,e)}je(A),"loading"===D.navigation.state&&A>W?(d(C,"Expected pending action"),T&&T.abort(),Z(D.navigation.location,{matches:j,loaderData:F,errors:$,fetchers:new Map(D.fetchers)})):(Q({errors:$,loaderData:Ne(D.loaderData,F,j,$),fetchers:new Map(D.fetchers)}),H=!1)}(t,n,m,v,p,b,f.active,a,w,h):(Y.set(t,{routeId:n,path:m}),await async function(t,n,r,o,i,a,c,s,u,l){let d=D.fetchers.get(t);ye(t,et(l,d?d.data:void 0),{flushSync:s});let p=new AbortController,f=De(e.history,r,p.signal);if(c){let e=await Je(i,r,f.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void be(t,n,e.error,{flushSync:s});if(!e.matches)return void be(t,n,Be(404,{pathname:r}),{flushSync:s});o=Xe(i=e.matches,r)}U.set(t,p);let m=V,h=await me("loader",f,[o],i,a,t),g=h[o.route.id];U.get(t)===p&&U.delete(t);if(f.signal.aborted)return;if(K.has(t))return void ye(t,tt(void 0));if(qe(g))return W>m?void ye(t,tt(void 0)):(q.add(t),void await de(f,g,!1,{preventScrollReset:u}));if(ze(g))return void be(t,n,g.error);ye(t,tt(g.data))}(t,n,m,v,p,b,f.active,a,w,h))},revalidate:function(){X||(X=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}}()),ve(),Q({revalidation:"loading"});let e=X.promise;return"submitting"===D.navigation.state?e:"idle"===D.navigation.state?(ce(D.historyAction,D.location,{startUninterruptedRevalidation:!0}),e):(ce(C||D.historyAction,D.navigation.location,{overrideNavigation:D.navigation,enableViewTransition:!0===R}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:we,deleteFetcher:function(e){let t=($.get(e)||0)-1;t<=0?($.delete(e),K.add(e)):$.set(e,t),Q({fetchers:new Map(D.fetchers)})},dispose:function(){h&&h(),N&&N(),g.clear(),T&&T.abort(),D.fetchers.forEach(((e,t)=>xe(t))),D.blockers.forEach(((e,t)=>Ce(t)))},getBlocker:function(e,t){let n=D.blockers.get(e)||re;return J.get(e)!==t&&J.set(e,t),n},deleteBlocker:Ce,patchRoutes:function(e,t){let n=null==r;ge(e,t,r||s,c,a),n&&(s=[...s],Q({}))},_internalFetchControllers:U,_internalSetRoutes:function(e){c={},r=x(e,a,void 0,c)}},i}function ue(e,t,n,r,o,i){let a,c;if(o){a=[];for(let e of t)if(a.push(e),e.route.id===o){c=e;break}}else a=t,c=t[t.length-1];let s=V(r||".",U(a),F(e.pathname,n)||e.pathname,"path"===i);if(null==r&&(s.search=e.search,s.hash=e.hash),(null==r||""===r||"."===r)&&c){let e=Je(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="/"===s.pathname?n:W([n,s.pathname])),h(s)}function le(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&&!Ge(n.formMethod))return{path:t,error:Be(405,{method:n.formMethod})};let r,o,i=()=>({path:t,error:Be(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),c=Ve(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!Ke(a))return i();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:a,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!Ke(a))return i();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:a,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return i()}}}if(d("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=Ce(n.formData),o=n.formData;else if(n.body instanceof FormData)r=Ce(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=Ie(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=Ie(r)}catch(e){return i()}let s={formMethod:a,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(Ke(s.formMethod))return{path:t,submission:s};let u=g(t);return e&&u.search&&Je(u.search)&&r.append("index",""),u.search=`?${r}`,{path:h(u),submission:s}}function de(e,t,n=!1){let r=e.findIndex((e=>e.route.id===t));return r>=0?e.slice(0,n?r+1:r):e}function pe(e,t,n,r,o,i,a,c,s,u,l,d,p,f){let m=f?ze(f[1])?f[1].error:f[1].data:void 0,h=e.createURL(t.location),g=e.createURL(o),v=n;i&&t.errors?v=de(n,Object.keys(t.errors)[0],!0):f&&ze(f[1])&&(v=de(n,f[0]));let y=f?f[1].statusCode:void 0,b=y&&y>=400,w=v.filter(((e,n)=>{let{route:o}=e;if(o.lazy)return!0;if(null==o.loader)return!1;if(i)return fe(o,t.loaderData,t.errors);if(function(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}(t.loaderData,t.matches[n],e))return!0;let c=t.matches[n],s=e;return he(e,{currentUrl:h,currentParams:c.params,nextUrl:g,nextParams:s.params,...r,actionResult:m,actionStatus:y,defaultShouldRevalidate:!b&&(a||h.pathname+h.search===g.pathname+g.search||h.search!==g.search||me(c,s))})})),x=[];return u.forEach(((e,o)=>{if(i||!n.some((t=>t.route.id===e.routeId))||s.has(o))return;let u=O(d,e.path,p);if(!u)return void x.push({key:o,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let f=t.fetchers.get(o),v=Xe(u,e.path),w=!1;l.has(o)?w=!1:c.has(o)?(c.delete(o),w=!0):w=f&&"idle"!==f.state&&void 0===f.data?a:he(v,{currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params,...r,actionResult:m,actionStatus:y,defaultShouldRevalidate:!b&&a}),w&&x.push({key:o,routeId:e.routeId,path:e.path,matches:u,match:v,controller:new AbortController})})),[w,x]}function fe(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=null!=t&&void 0!==t[e.id],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){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function he(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function ge(e,t,n,r,o){let i;if(e){let t=r[e];d(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),i=t.children}else i=n;let a=x(t.filter((e=>!i.some((t=>ve(e,t))))),o,[e||"_","patch",String(i?.length||"0")],r);i.push(...a)}function ve(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=>ve(e,t))))))}var ye=new WeakMap,be=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(d(o,"No route found in manifest"),!o.lazy||"object"!=typeof o.lazy)return;let i=o.lazy[e];if(!i)return;let a=ye.get(o);a||(a={},ye.set(o,a));let c=a[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)p(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),a[e]=Promise.resolve();else if(n)p(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await i();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 a[e]=s,s},we=new WeakMap;function xe(e){return void 0!==e}function Oe(e,t,n){let r=e.map((({route:e})=>{if("object"==typeof e.lazy&&e.lazy.unstable_middleware)return be({key:"unstable_middleware",route:e,manifest:t,mapRouteProperties:n})})).filter(xe);return r.length>0?Promise.all(r):void 0}async function ke(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 Se(e){return e.matches.some((e=>e.route.unstable_middleware))?Ee(e,!1,(()=>ke(e)),((e,t)=>({[t]:{type:"error",result:e}}))):ke(e)}async function Ee(e,t,n,r){let{matches:o,request:i,params:a,context:c}=e,s={handlerResult:void 0};try{let e=o.flatMap((e=>e.route.unstable_middleware?e.route.unstable_middleware.map((t=>[e.route.id,t])):[])),r=await je({request:i,params:a,context:c},e,t,s,n);return t?r:s.handlerResult}catch(e){if(!s.middlewareError)throw e;let n=await r(s.middlewareError.error,s.middlewareError.routeId);return t||!s.handlerResult?n:Object.assign(s.handlerResult,n)}}async function je(e,t,n,r,o,i=0){let{request:a}=e;if(a.signal.aborted){if(a.signal.reason)throw a.signal.reason;throw new Error(`Request aborted without an \`AbortSignal.reason\`: ${a.method} ${a.url}`)}let c=t[i];if(!c)return r.handlerResult=await o(),r.handlerResult;let s,[u,l]=c,d=!1,p=async()=>{if(d)throw new Error("You may only call `next()` once per middleware");d=!0;let a=await je(e,t,n,r,o,i+1);if(n)return s=a,s};try{let t=await l({request:e.request,params:e.params,context:e.context},p);return d?void 0===t?s:t:p()}catch(e){throw r.middlewareError?r.middlewareError.error!==e&&(r.middlewareError={routeId:u,error:e}):r.middlewareError={routeId:u,error:e},e}}async function Ae(e,t,n,r,o,i,a,c,s){let u=Oe(o,a,c),l=o.map((e=>function(e,t,n,r){let o=n[e.id];if(d(o,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=we.get(o);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{d("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 a=(i=e,w.has(i)),c=void 0!==o[e]&&"hasErrorBoundary"!==e;a?p(!a,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):c?p(!c,`Route "${o.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 i;Object.assign(o,n),Object.assign(o,{...r(o),lazy:void 0})})();return we.set(o,n),{lazyRoutePromise:n,lazyHandlerPromise:n}}let i,a=Object.keys(e.lazy),c=[];for(let o of a){let a=be({key:o,route:e,manifest:n,mapRouteProperties:r});a&&(c.push(a),o===t&&(i=a))}return{lazyRoutePromise:Promise.all(c).then((()=>{})),lazyHandlerPromise:i}}(e.route,t,a,c)));u&&await u;let f=o.map(((e,o)=>{let{lazyRoutePromise:i,lazyHandlerPromise:a}=l[o],c=r.some((t=>t.route.id===e.route.id));return{...e,shouldLoad:c,resolve:async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(c=!0),c?async function({type:e,request:t,match:n,lazyHandlerPromise:r,lazyRoutePromise:o,handlerOverride:i,scopedContext:a}){let c,s,u=r=>{let o,c=new Promise(((e,t)=>o=t));s=()=>o(),t.signal.addEventListener("abort",s);let u=o=>"function"!=typeof r?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${e}" [routeId: ${n.route.id}]`)):r({request:t,params:n.params,context:a},...void 0!==o?[o]:[]),l=(async()=>{try{return{type:"data",result:await(i?i((e=>u(e))):u())}}catch(e){return{type:"error",result:e}}})();return Promise.race([l,c])};try{let i=n.route[e];if(r||o)if(i){let e,[t]=await Promise.all([u(i).catch((t=>{e=t})),r,o]);if(void 0!==e)throw e;c=t}else{if(await r,i=n.route[e],!i){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw Be(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:"data",result:void 0}}[c]=await Promise.all([u(i),o])}else{if(!i){let e=new URL(t.url);throw Be(404,{pathname:e.pathname+e.search})}c=await u(i)}}catch(e){return{type:"error",result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return c}({type:t,request:n,match:e,lazyHandlerPromise:a,lazyRoutePromise:i,handlerOverride:r,scopedContext:s}):Promise.resolve({type:"data",result:void 0}))}})),m=await e({matches:f,request:n,params:o[0].params,fetcherKey:i,context:s}),h=l.flatMap((e=>Object.values(e).filter(xe)));try{await Promise.all(h)}catch(e){}return m}async function Pe(e){let{result:t,type:n}=e;if($e(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 $(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 $(t.init?.status||500,void 0,t.data),statusCode:G(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:G(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 Te(e,t,n,r,o){let i=e.headers.get("Location");if(d(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!oe.test(i)){let a=r.slice(0,r.findIndex((e=>e.route.id===n))+1);i=ue(new URL(t.url),a,o,i),e.headers.set("Location",i)}return e}function _e(e,t,n){if(oe.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=null!=F(o.pathname,n);if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function De(e,t,n,r){let o=e.createURL(Ve(t)).toString(),i={signal:n};if(r&&Ke(r.formMethod)){let{formMethod:e,formEncType:t}=r;i.method=e.toUpperCase(),"application/json"===t?(i.headers=new Headers({"Content-Type":t}),i.body=JSON.stringify(r.json)):"text/plain"===t?i.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?i.body=Ce(r.formData):i.body=r.formData}return new Request(o,i)}function Ce(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Ie(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Re(e,t,n,r=!1,o=!1){let i,a={},c=null,s=!1,u={},l=n&&ze(n[1])?n[1].error:void 0;return e.forEach((n=>{if(!(n.route.id in t))return;let p=n.route.id,f=t[p];if(d(!qe(f),"Cannot handle redirect results in processLoaderData"),ze(f)){let t=f.error;if(void 0!==l&&(t=l,l=void 0),c=c||{},o)c[p]=t;else{let n=Fe(e,p);null==c[n.route.id]&&(c[n.route.id]=t)}r||(a[p]=ce),s||(s=!0,i=G(f.error)?f.error.status:500),f.headers&&(u[p]=f.headers)}else a[p]=f.data,f.statusCode&&200!==f.statusCode&&!s&&(i=f.statusCode),f.headers&&(u[p]=f.headers)})),void 0!==l&&n&&(c={[n[0]]:l},a[n[0]]=void 0),{loaderData:a,errors:c,statusCode:i||200,loaderHeaders:u}}function Me(e,t,n,r,o,i){let{loaderData:a,errors:c}=Re(t,n,r);return o.forEach((t=>{let{key:n,match:r,controller:o}=t,a=i[n];if(d(a,"Did not find corresponding fetcher result"),!o||!o.signal.aborted)if(ze(a)){let t=Fe(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:a.error}),e.fetchers.delete(n)}else if(qe(a))d(!1,"Unhandled fetcher revalidation redirect");else{let t=tt(a.data);e.fetchers.set(n,t)}})),{loaderData:a,errors:c}}function Ne(e,t,n,r){let o=Object.entries(t).filter((([,e])=>e!==ce)).reduce(((e,[t,n])=>(e[t]=n,e)),{});for(let i of n){let n=i.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&i.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function Le(e){return e?ze(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Fe(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 He(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 Be(e,{pathname:t,routeId:n,method:r,type:o,message:i}={}){let a="Unknown Server Error",c="Unknown @remix-run/router error";return 400===e?(a="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?(a="Forbidden",c=`Route "${n}" does not match URL "${t}"`):404===e?(a="Not Found",c=`No route matches URL "${t}"`):405===e&&(a="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 $(e||500,a,new Error(c),!0)}function Ue(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(qe(r))return{key:n,result:r}}}function Ve(e){return h({..."string"==typeof e?g(e):e,hash:""})}function We(e){return $e(e.result)&&Z.has(e.result.status)}function ze(e){return"error"===e.type}function qe(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 $e(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Ge(e){return Q.has(e.toUpperCase())}function Ke(e){return J.has(e.toUpperCase())}function Je(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function Xe(e,t){let n="string"==typeof t?g(t).search:t.search;if(e[e.length-1].route.index&&Je(n||""))return e[e.length-1];let r=B(e);return r[r.length-1]}function Qe(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=i?{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0}:void 0!==a?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}:void 0}function Ze(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 et(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 tt(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 nt=o.createContext(null);nt.displayName="DataRouter";var rt=o.createContext(null);rt.displayName="DataRouterState";var ot=o.createContext({isTransitioning:!1});ot.displayName="ViewTransition";var it=o.createContext(new Map);it.displayName="Fetchers";var at=o.createContext(null);at.displayName="Await";var ct=o.createContext(null);ct.displayName="Navigation";var st=o.createContext(null);st.displayName="Location";var ut=o.createContext({outlet:null,matches:[],isDataRoute:!1});ut.displayName="Route";var lt=o.createContext(null);lt.displayName="RouteError";var dt=!0;function pt(){return null!=o.useContext(st)}function ft(){return d(pt(),"useLocation() may be used only in the context of a <Router> component."),o.useContext(st).location}var mt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ht(e){o.useContext(ct).static||o.useLayoutEffect(e)}function gt(){let{isDataRoute:e}=o.useContext(ut);return e?function(){let{router:e}=jt("useNavigate"),t=Pt("useNavigate"),n=o.useRef(!1);return ht((()=>{n.current=!0})),o.useCallback((async(r,o={})=>{p(n.current,mt),n.current&&("number"==typeof r?e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){d(pt(),"useNavigate() may be used only in the context of a <Router> component.");let e=o.useContext(nt),{basename:t,navigator:n}=o.useContext(ct),{matches:r}=o.useContext(ut),{pathname:i}=ft(),a=JSON.stringify(U(r)),c=o.useRef(!1);return ht((()=>{c.current=!0})),o.useCallback(((r,o={})=>{if(p(c.current,mt),!c.current)return;if("number"==typeof r)return void n.go(r);let s=V(r,JSON.parse(a),i,"path"===o.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:W([t,s.pathname])),(o.replace?n.replace:n.push)(s,o.state,o)}),[t,n,a,i,e])}()}o.createContext(null);function vt(){let{matches:e}=o.useContext(ut),t=e[e.length-1];return t?t.params:{}}function yt(e,{relative:t}={}){let{matches:n}=o.useContext(ut),{pathname:r}=ft(),i=JSON.stringify(U(n));return o.useMemo((()=>V(e,JSON.parse(i),r,"path"===t)),[e,i,r,t])}function bt(e,t,n,r){d(pt(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i,static:a}=o.useContext(ct),{matches:c}=o.useContext(ut),s=c[c.length-1],u=s?s.params:{},l=s?s.pathname:"/",f=s?s.pathnameBase:"/",m=s&&s.route;if(dt){let e=m&&m.path||"";It(l,!m||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=ft();if(t){let e="string"==typeof t?g(t):t;d("/"===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 y=h.pathname||"/",b=y;if("/"!==f){let e=f.replace(/^\//,"").split("/");b="/"+y.replace(/^\//,"").split("/").slice(e.length).join("/")}let w=!a&&n&&n.matches&&n.matches.length>0?n.matches:O(e,{pathname:b});dt&&(p(m||null!=w,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),p(null==w||void 0!==w[w.length-1].route.element||void 0!==w[w.length-1].route.Component||void 0!==w[w.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 x=St(w&&w.map((e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:W([f,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:W([f,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),c,n,r);return t&&x?o.createElement(st.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...h},navigationType:"POP"}},x):x}function wt(){let e=Tt(),t=G(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)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},c=null;return dt&&(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:a},"ErrorBoundary")," or"," ",o.createElement("code",{style:a},"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:i},n):null,c)}var xt=o.createElement(wt,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(ut.Provider,{value:this.props.routeContext},o.createElement(lt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function kt({routeContext:e,match:t,children:n}){let r=o.useContext(nt);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),o.createElement(ut.Provider,{value:e},n)}function St(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 i=e,a=n?.errors;if(null!=a){let e=i.findIndex((e=>e.route.id&&void 0!==a?.[e.route.id]));d(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let c=!1,s=-1;if(n)for(let e=0;e<i.length;e++){let t=i[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,i=s>=0?i.slice(0,s+1):[i[0]];break}}}return i.reduceRight(((e,r,u)=>{let l,d=!1,p=null,f=null;n&&(l=a&&r.route.id?a[r.route.id]:void 0,p=r.route.errorElement||xt,c&&(s<0&&0===u?(It("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,f=null):s===u&&(d=!0,f=r.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,u+1)),h=()=>{let t;return t=l?p:d?f:r.route.Component?o.createElement(r.route.Component,null):r.route.element?r.route.element:e,o.createElement(kt,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===u)?o.createElement(Ot,{location:n.location,revalidation:n.revalidation,component:p,error:l,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()}),null)}function Et(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function jt(e){let t=o.useContext(nt);return d(t,Et(e)),t}function At(e){let t=o.useContext(rt);return d(t,Et(e)),t}function Pt(e){let t=function(e){let t=o.useContext(ut);return d(t,Et(e)),t}(e),n=t.matches[t.matches.length-1];return d(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Tt(){let e=o.useContext(lt),t=At("useRouteError"),n=Pt("useRouteError");return void 0!==e?e:t.errors?.[n]}var _t=0;function Dt(e){let{router:t,basename:n}=jt("useBlocker"),r=At("useBlocker"),[i,a]=o.useState(""),c=o.useCallback((t=>{if("function"!=typeof e)return!!e;if("/"===n)return e(t);let{currentLocation:r,nextLocation:o,historyAction:i}=t;return e({currentLocation:{...r,pathname:F(r.pathname,n)||r.pathname},nextLocation:{...o,pathname:F(o.pathname,n)||o.pathname},historyAction:i})}),[n,e]);return o.useEffect((()=>{let e=String(++_t);return a(e),()=>t.deleteBlocker(e)}),[t]),o.useEffect((()=>{""!==i&&t.getBlocker(i,c)}),[t,i,c]),i&&r.blockers.has(i)?r.blockers.get(i):re}var Ct={};function It(e,t,n){t||Ct[e]||(Ct[e]=!0,p(!1,n))}var Rt={};function Mt(e,t){e||Rt[t]||(Rt[t]=!0,console.warn(t))}var Nt=!0;function Lt(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(Nt&&e.element&&p(!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&&(Nt&&e.hydrateFallbackElement&&p(!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&&(Nt&&e.errorElement&&p(!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}function Ft(e,t){return se({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:s({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,mapRouteProperties:Lt,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation}).initialize()}var Ht=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 Bt({router:e,flushSync:t}){let[n,r]=o.useState(e.state),[i,a]=o.useState(),[c,s]=o.useState({isTransitioning:!1}),[u,l]=o.useState(),[d,p]=o.useState(),[f,m]=o.useState(),h=o.useRef(new Map),g=o.useCallback(((n,{deletedFetchers:i,flushSync:c,viewTransitionOpts:f})=>{n.fetchers.forEach(((e,t)=>{void 0!==e.data&&h.current.set(t,e.data)})),i.forEach((e=>h.current.delete(e))),Mt(!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 g=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(Mt(null==f||g,"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."),f&&g){if(t&&c){t((()=>{d&&(u&&u.resolve(),d.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:f.currentLocation,nextLocation:f.nextLocation})}));let o=e.window.document.startViewTransition((()=>{t((()=>r(n)))}));return o.finished.finally((()=>{t((()=>{l(void 0),p(void 0),a(void 0),s({isTransitioning:!1})}))})),void t((()=>p(o)))}d?(u&&u.resolve(),d.skipTransition(),m({state:n,currentLocation:f.currentLocation,nextLocation:f.nextLocation})):(a(n),s({isTransitioning:!0,flushSync:!1,currentLocation:f.currentLocation,nextLocation:f.nextLocation}))}else t&&c?t((()=>r(n))):o.startTransition((()=>r(n)))}),[e.window,t,d,u]);o.useLayoutEffect((()=>e.subscribe(g)),[e,g]),o.useEffect((()=>{c.isTransitioning&&!c.flushSync&&l(new Ht)}),[c]),o.useEffect((()=>{if(u&&i&&e.window){let t=i,n=u.promise,c=e.window.document.startViewTransition((async()=>{o.startTransition((()=>r(t))),await n}));c.finished.finally((()=>{l(void 0),p(void 0),a(void 0),s({isTransitioning:!1})})),p(c)}}),[i,u,e.window]),o.useEffect((()=>{u&&i&&n.location.key===i.location.key&&u.resolve()}),[u,d,n.location,i]),o.useEffect((()=>{!c.isTransitioning&&f&&(a(f.state),s({isTransitioning:!0,flushSync:!1,currentLocation:f.currentLocation,nextLocation:f.nextLocation}),m(void 0))}),[c.isTransitioning,f]);let v=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:v,static:!1,basename:y})),[e,v,y]);return o.createElement(o.Fragment,null,o.createElement(nt.Provider,{value:b},o.createElement(rt.Provider,{value:n},o.createElement(it.Provider,{value:h.current},o.createElement(ot.Provider,{value:c},o.createElement(zt,{basename:y,location:n.location,navigationType:n.historyAction,navigator:v},o.createElement(Ut,{routes:e.routes,future:e.future,state:n})))))),null)}var Ut=o.memo((function({routes:e,future:t,state:n}){return bt(e,void 0,n,t)}));function Vt({to:e,replace:t,state:n,relative:r}){d(pt(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=o.useContext(ct);p(!i,"<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:a}=o.useContext(ut),{pathname:c}=ft(),s=gt(),u=V(e,U(a),c,"path"===r),l=JSON.stringify(u);return o.useEffect((()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})}),[s,l,r,t,n]),null}function Wt(e){d(!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 zt({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:a=!1}){d(!pt(),"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:i,static:a,future:{}})),[c,i,a]);"string"==typeof n&&(n=g(n));let{pathname:u="/",search:l="",hash:f="",state:m=null,key:h="default"}=n,v=o.useMemo((()=>{let e=F(u,c);return null==e?null:{location:{pathname:e,search:l,hash:f,state:m,key:h},navigationType:r}}),[c,u,l,f,m,h,r]);return p(null!=v,`<Router basename="${c}"> is not able to match the URL "${u}${l}${f}" because it does not start with the basename, so the <Router> won't render anything.`),null==v?null:o.createElement(ct.Provider,{value:s},o.createElement(st.Provider,{children:t,value:v}))}function qt({children:e,location:t}){return bt(Yt(e),t)}o.Component;function Yt(e,t=[]){let n=[];return o.Children.forEach(e,((e,r)=>{if(!o.isValidElement(e))return;let i=[...t,r];if(e.type===o.Fragment)return void n.push.apply(n,Yt(e.props.children,i));d(e.type===Wt,`[${"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>`),d(!e.props.index||!e.props.children,"An index route cannot have child routes.");let a={id:e.props.id||i.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&&(a.children=Yt(e.props.children,i)),n.push(a)})),n}var $t="get",Gt="application/x-www-form-urlencoded";function Kt(e){return null!=e&&"string"==typeof e.tagName}function Jt(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 Xt=null;var Qt=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Zt(e){return null==e||Qt.has(e)?e:(p(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Gt}"`),null)}function en(e,t){let n,r,o,i,a;if(function(e){return Kt(e)&&"form"===e.tagName.toLowerCase()}(e)){let a=e.getAttribute("action");r=a?F(a,t):null,n=e.getAttribute("method")||$t,o=Zt(e.getAttribute("enctype"))||Gt,i=new FormData(e)}else if(function(e){return Kt(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Kt(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||a.getAttribute("action");if(r=c?F(c,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||$t,o=Zt(e.getAttribute("formenctype"))||Zt(a.getAttribute("enctype"))||Gt,i=new FormData(a,e),!function(){if(null===Xt)try{new FormData(document.createElement("form"),0),Xt=!1}catch(e){Xt=!0}return Xt}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";i.append(`${e}x`,"0"),i.append(`${e}y`,"0")}else t&&i.append(t,r)}}else{if(Kt(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=$t,r=null,o=Gt,a=e}return i&&"text/plain"===o&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}function tn(e,t){if(!1===e||null==e)throw new Error(t)}async function nn(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 rn(e){return null!=e&&"string"==typeof e.page}function on(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 an(e,t,n,r,o,i){let a=(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"===i?t.filter(((e,t)=>a(e,t)||c(e,t))):"data"===i?t.filter(((t,i)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(a(t,i)||c(t,i))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 cn(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 sn(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!rn(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let i=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(i)||(n.add(i),e.push({key:i,link:o})),e}),[])}function un(e){return{__html:e}}Symbol("SingleFetchRedirect");function ln(e,t){let n="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===n.pathname?n.pathname="_root.data":t&&"/"===F(n.pathname,t)?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}o.Component;function dn({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://remix.run/guides/errors for more information."\n );\n '}});if(G(e))return o.createElement(pn,{title:"Unhandled Thrown Response!"},o.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),r);if(e instanceof Error)0;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);new Error(t)}return o.createElement(pn,{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 pn({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:i}=vn();return i.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(Sn,null):null)))}function fn(e){return!0===e}function mn(){let e=o.useContext(nt);return tn(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function hn(){let e=o.useContext(rt);return tn(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var gn=o.createContext(void 0);function vn(){let e=o.useContext(gn);return tn(e,"You must render this element inside a <HydratedRouter> element"),e}function yn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function bn(e,t,n){if(n&&!kn)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}function wn({page:e,...t}){let{router:n}=mn(),r=o.useMemo((()=>O(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?o.createElement(On,{page:e,matches:r,...t}):null}function xn(e){let{manifest:t,routeModules:n}=vn(),[r,i]=o.useState([]);return o.useEffect((()=>{let r=!1;return async function(e,t,n){return sn((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await nn(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(on).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||i(e)})),()=>{r=!0}}),[e,t,n]),r}function On({page:e,matches:t,...n}){let r=ft(),{manifest:i,routeModules:a}=vn(),{basename:c}=mn(),{loaderData:s,matches:u}=hn(),l=o.useMemo((()=>an(e,t,u,i,r,"data")),[e,t,u,i,r]),d=o.useMemo((()=>an(e,t,u,i,r,"assets")),[e,t,u,i,r]),p=o.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,o=!1;if(t.forEach((e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!l.some((t=>t.route.id===e.route.id))&&e.route.id in s&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?o=!0:n.add(e.route.id))})),0===n.size)return[];let u=ln(e,c);return o&&n.size>0&&u.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[u.pathname+u.search]}),[c,s,r,i,l,t,e,a]),f=o.useMemo((()=>cn(d,i)),[d,i]),m=xn(d);return o.createElement(o.Fragment,null,p.map((e=>o.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),f.map((e=>o.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),m.map((({key:e,link:t})=>o.createElement("link",{key:e,...t}))))}gn.displayName="FrameworkContext";var kn=!1;function Sn(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,ssr:i,renderMeta:a}=vn(),{router:c,static:s,staticContext:u}=mn(),{matches:l}=hn(),d=fn(i);a&&(a.didRenderScripts=!0);let p=bn(l,null,r);o.useEffect((()=>{0}),[]);let f=o.useMemo((()=>{let r=u?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",i=s?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${d?"":`import ${JSON.stringify(t.url)}`};\n${p.map(((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];tn(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:i,clientLoaderModule:a,clientMiddlewareModule:c,hydrateFallbackModule:s,module:u}=o,l=[...i?[{module:i,varName:`${r}_clientAction`}]:[],...a?[{module:a,varName:`${r}_clientLoader`}]:[],...c?[{module:c,varName:`${r}_clientMiddleware`}]:[],...s?[{module:s,varName:`${r}_HydrateFallback`}]:[],{module:u,varName:`${r}_main`}];return 1===l.length?`import * as ${r} from ${JSON.stringify(u)};`:[l.map((e=>`import * as ${e.varName} from "${e.module}";`)).join("\n"),`const ${r} = {${l.map((e=>`...${e.varName}`)).join(",")}};`].join("\n")})).join("\n")}\n ${d?`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),i=["/"];for(o.pop();o.length>0;)i.push(`/${o.join("/")}`),o.pop();i.forEach((e=>{let t=O(n.routes,e,n.basename);t&&t.forEach((e=>r.add(e.route.id)))}));let a=[...r].reduce(((e,n)=>Object.assign(e,{[n]:t.routes[n]})),{});return{...t,routes:a,sri:!!e||void 0}}(t,c),null,2)};`:""}\n window.__reactRouterRouteModules = {${p.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:un(r),type:void 0}),o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:un(i),type:"module",async:!0}))}),[]),m=kn?[]:function(e){return[...new Set(e)]}(t.entry.imports.concat(cn(p,t,{includeHydrateFallback:!0}))),h="object"==typeof t.sri?t.sri:{};return kn?null:o.createElement(o.Fragment,null,"object"==typeof t.sri?o.createElement("script",{"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:h})}}):null,d?null:o.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:h[t.url],suppressHydrationWarning:!0}),o.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:h[t.entry.module],suppressHydrationWarning:!0}),m.map((t=>o.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:h[t],suppressHydrationWarning:!0}))),f)}function En(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}var jn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{jn&&(window.__reactRouterVersion="7.5.0")}catch(e){}function An(e,t){return se({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:u({window:t?.window}),hydrationData:t?.hydrationData||Tn(),routes:e,mapRouteProperties:Lt,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function Pn(e,t){return se({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:l({window:t?.window}),hydrationData:t?.hydrationData||Tn(),routes:e,mapRouteProperties:Lt,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function Tn(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:_n(e.errors)}),e}function _n(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 $(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,Cn=o.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:i,replace:a,state:c,target:s,to:u,preventScrollReset:l,viewTransition:f,...m},g){let v,{basename:y}=o.useContext(ct),b="string"==typeof u&&Dn.test(u),w=!1;if("string"==typeof u&&b&&(v=u,jn))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),n=F(t.pathname,y);t.origin===e.origin&&null!=n?u=n+t.search+t.hash:w=!0}catch(e){p(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=function(e,{relative:t}={}){d(pt(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=o.useContext(ct),{hash:i,pathname:a,search:c}=yt(e,{relative:t}),s=a;return"/"!==n&&(s="/"===a?n:W([n,a])),r.createHref({pathname:s,search:c,hash:i})}(u,{relative:r}),[O,k,S]=function(e,t){let n=o.useContext(gn),[r,i]=o.useState(!1),[a,c]=o.useState(!1),{onFocus:s,onBlur:u,onMouseEnter:l,onMouseLeave:d,onTouchStart:p}=t,f=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 f.current&&e.observe(f.current),()=>{e.disconnect()}}}),[e]),o.useEffect((()=>{if(r){let e=setTimeout((()=>{c(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let m=()=>{i(!0)},h=()=>{i(!1),c(!1)};return n?"intent"!==e?[a,f,{}]:[a,f,{onFocus:yn(s,m),onBlur:yn(u,h),onMouseEnter:yn(l,m),onMouseLeave:yn(d,h),onTouchStart:yn(p,m)}]:[!1,f,{}]}(n,m),E=function(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:a,viewTransition:c}={}){let s=gt(),u=ft(),l=yt(e,{relative:a});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(u)===h(l);s(e,{replace:t,state:r,preventScrollReset:i,relative:a,viewTransition:c})}}),[u,s,l,n,r,t,e,i,a,c])}(u,{replace:a,state:c,target:s,preventScrollReset:l,relative:r,viewTransition:f});let j=o.createElement("a",{...m,...S,href:v||x,onClick:w||i?e:function(t){e&&e(t),t.defaultPrevented||E(t)},ref:En(g,k),target:s,"data-discover":b||"render"!==t?void 0:"true"});return O&&!b?o.createElement(o.Fragment,null,j,o.createElement(wn,{page:x})):j}));Cn.displayName="Link",o.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:i,to:a,viewTransition:c,children:s,...u},l){let p=yt(a,{relative:u.relative}),f=ft(),m=o.useContext(rt),{navigator:h,basename:g}=o.useContext(ct),v=null!=m&&function(e,t={}){let n=o.useContext(ot);d(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Mn("useViewTransitionState"),i=yt(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=F(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=F(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=N(i.pathname,c)||null!=N(i.pathname,a)}(p)&&!0===c,y=h.encodeLocation?h.encodeLocation(p).pathname:p.pathname,b=f.pathname,w=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&g&&(w=F(w,g)||w);const x="/"!==y&&y.endsWith("/")?y.length-1:y.length;let O,k=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(x),S=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),E={isActive:k,isPending:S,isTransitioning:v},j=k?e:void 0;O="function"==typeof n?n(E):[n,k?"active":null,S?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let A="function"==typeof i?i(E):i;return o.createElement(Cn,{...u,"aria-current":j,className:O,ref:l,style:A,to:a,viewTransition:c},"function"==typeof s?s(E):s)})).displayName="NavLink";var In=o.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:c=$t,action:s,onSubmit:u,relative:l,preventScrollReset:p,viewTransition:f,...m},g)=>{let v=Hn(),y=function(e,{relative:t}={}){let{basename:n}=o.useContext(ct),r=o.useContext(ut);d(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),a={...yt(e||".",{relative:t})},c=ft();if(null==e){a.search=c.search;let e=new URLSearchParams(a.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();a.search=n?`?${n}`:""}}e&&"."!==e||!i.route.index||(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(a.pathname="/"===a.pathname?n:W([n,a.pathname]));return h(a)}(s,{relative:l}),b="get"===c.toLowerCase()?"get":"post",w="string"==typeof s&&Dn.test(s);return o.createElement("form",{ref:g,method:b,action:y,onSubmit:r?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,o=r?.getAttribute("formmethod")||c;v(r||e.currentTarget,{fetcherKey:t,method:o,navigate:n,replace:i,state:a,relative:l,preventScrollReset:p,viewTransition:f})},...m,"data-discover":w||"render"!==e?void 0:"true"})}));function Rn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Mn(e){let t=o.useContext(nt);return d(t,Rn(e)),t}function Nn(e){p("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(Jt(e)),n=o.useRef(!1),r=ft(),i=o.useMemo((()=>function(e,t){let n=Jt(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]),a=gt(),c=o.useCallback(((e,t)=>{const r=Jt("function"==typeof e?e(i):e);n.current=!0,a("?"+r,t)}),[a,i]);return[i,c]}In.displayName="Form";var Ln=0,Fn=()=>`__${String(++Ln)}__`;function Hn(){let{router:e}=Mn("useSubmit"),{basename:t}=o.useContext(ct),n=Pt("useRouteId");return o.useCallback((async(r,o={})=>{let{action:i,method:a,encType:c,formData:s,body:u}=en(r,t);if(!1===o.navigate){let t=o.fetcherKey||Fn();await e.fetch(t,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||a,formEncType:o.encType||c,flushSync:o.flushSync})}else await e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||a,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})}),[e,t,n])}new TextEncoder},87296:(e,t,n)=>{var r,o=n(55481),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},87424:(e,t,n)=>{"use strict";t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(4883)),o=s(n(87695)),i=s(n(59321)),a=s(n(13486)),c=n(36462);function s(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}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 p(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){y(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}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e){return function(){var t,n=g(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()){var r=g(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return h(e)}(this,t)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(){return!0},w="suggestions-revealed",x="input-focused",O="input-changed",k="escape-pressed",S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(u,e);var t,n,o,s=m(u);function u(e){var t,n=e.alwaysRenderSuggestions;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),y(h(t=s.call(this)),"onDocumentMouseDown",(function(e){t.justClickedOnSuggestionsContainer=!1;for(var n=e.detail&&e.detail.target||e.target;null!==n&&n!==document;){if(n.getAttribute&&null!==n.getAttribute("data-suggestion-index"))return;if(n===t.suggestionsContainer)return void(t.justClickedOnSuggestionsContainer=!0);n=n.parentNode}})),y(h(t),"storeAutowhateverRef",(function(e){null!==e&&(t.autowhatever=e)})),y(h(t),"onSuggestionMouseEnter",(function(e,n){var r=n.sectionIndex,o=n.itemIndex;t.updateHighlightedSuggestion(r,o),e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!0),t.justMouseEntered=!0,setTimeout((function(){t.justMouseEntered=!1}))})),y(h(t),"highlightFirstSuggestion",(function(){t.updateHighlightedSuggestion(t.props.multiSection?0:null,0)})),y(h(t),"onDocumentMouseUp",(function(){t.pressedSuggestion&&!t.justSelectedSuggestion&&t.input.focus(),t.pressedSuggestion=null})),y(h(t),"onSuggestionMouseDown",(function(e){t.justSelectedSuggestion||(t.justSelectedSuggestion=!0,t.pressedSuggestion=e.target)})),y(h(t),"onSuggestionsClearRequested",(function(){var e=t.props.onSuggestionsClearRequested;e&&e()})),y(h(t),"onSuggestionSelected",(function(e,n){var r=t.props,o=r.alwaysRenderSuggestions,i=r.onSuggestionSelected,a=r.onSuggestionsFetchRequested;i&&i(e,n);var c=t.props.shouldKeepSuggestionsOnSelect(n.suggestion);o||c?a({value:n.suggestionValue,reason:"suggestion-selected"}):t.onSuggestionsClearRequested(),t.resetHighlightedSuggestion()})),y(h(t),"onSuggestionClick",(function(e){var n=t.props,r=n.alwaysRenderSuggestions,o=n.focusInputOnSuggestionClick,i=t.getSuggestionIndices(t.findSuggestionElement(e.target)),a=i.sectionIndex,c=i.suggestionIndex,s=t.getSuggestion(a,c),u=t.props.getSuggestionValue(s);t.maybeCallOnChange(e,u,"click"),t.onSuggestionSelected(e,{suggestion:s,suggestionValue:u,suggestionIndex:c,sectionIndex:a,method:"click"});var l=t.props.shouldKeepSuggestionsOnSelect(s);r||l||t.closeSuggestions(),!0===o?t.input.focus():t.onBlur(),setTimeout((function(){t.justSelectedSuggestion=!1}))})),y(h(t),"onBlur",(function(){var e=t.props,n=e.inputProps,r=e.shouldRenderSuggestions,o=n.value,i=n.onBlur,a=t.getHighlightedSuggestion(),c=r(o,"input-blurred");t.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!c}),i&&i(t.blurEvent,{highlightedSuggestion:a})})),y(h(t),"onSuggestionMouseLeave",(function(e){t.resetHighlightedSuggestion(!1),t.justSelectedSuggestion&&e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!1)})),y(h(t),"onSuggestionTouchStart",(function(){t.justSelectedSuggestion=!0})),y(h(t),"onSuggestionTouchMove",(function(){t.justSelectedSuggestion=!1,t.pressedSuggestion=null,t.input.focus()})),y(h(t),"itemProps",(function(e){return{"data-section-index":e.sectionIndex,"data-suggestion-index":e.itemIndex,onMouseEnter:t.onSuggestionMouseEnter,onMouseLeave:t.onSuggestionMouseLeave,onMouseDown:t.onSuggestionMouseDown,onTouchStart:t.onSuggestionTouchStart,onTouchMove:t.onSuggestionTouchMove,onClick:t.onSuggestionClick}})),y(h(t),"renderSuggestionsContainer",(function(e){var n=e.containerProps,r=e.children;return(0,t.props.renderSuggestionsContainer)({containerProps:n,children:r,query:t.getQuery()})})),t.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},t.justPressedUpDown=!1,t.justMouseEntered=!1,t.pressedSuggestion=null,t}return t=u,n=[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=0===this.state.highlightedSuggestionIndex&&this.props.highlightFirstSuggestion&&!e.highlightFirstSuggestion;(0,i.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered?this.highlightFirstSuggestion():t&&this.resetHighlightedSuggestion():this.willRenderSuggestions(e,"suggestions-updated")?(this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions(),t&&this.resetHighlightedSuggestion()):this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.suggestions,o=n.onSuggestionHighlighted,a=n.highlightFirstSuggestion;if(!(0,i.default)(r,e.suggestions)&&r.length>0&&a)this.highlightFirstSuggestion();else if(o){var c=this.getHighlightedSuggestion();c!=t.highlightedSuggestion&&o({suggestion:c})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var r=this;this.setState((function(o){var i=o.valueBeforeUpDown;return null===t?i=null:null===i&&void 0!==n&&(i=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:r.getSuggestion(e,t),valueBeforeUpDown:i}}))}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState((function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}}))}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,r=n.suggestions,o=n.multiSection,i=n.getSectionSuggestions;return o?i(r[e])[t]:r[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"==typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(t.getAttribute&&null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,n){var r=this.props.inputProps,o=r.value,i=r.onChange;t!==o&&i(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e,t){var n=e.suggestions,r=e.inputProps,o=e.shouldRenderSuggestions,i=r.value;return n.length>0&&o(i,t)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,o=t.renderInputComponent,i=t.onSuggestionsFetchRequested,s=t.renderSuggestion,u=t.inputProps,l=t.multiSection,d=t.renderSectionTitle,f=t.id,m=t.getSectionSuggestions,h=t.theme,g=t.getSuggestionValue,v=t.alwaysRenderSuggestions,y=t.highlightFirstSuggestion,S=t.containerProps,E=this.state,j=E.isFocused,A=E.isCollapsed,P=E.highlightedSectionIndex,T=E.highlightedSuggestionIndex,_=E.valueBeforeUpDown,D=v?b:this.props.shouldRenderSuggestions,C=u.value,I=u.onFocus,R=u.onKeyDown,M=this.willRenderSuggestions(this.props,"render"),N=v||j&&!A&&M,L=N?n:[],F=p({},u,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=D(C,x);e.setState({isFocused:!0,isCollapsed:!n}),I&&I(t),n&&i({value:C,reason:x})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,r=D(n,O);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(p({},y?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!r})),r?i({value:n,reason:O}):e.onSuggestionsClearRequested()},onKeyDown:function(t,r){var o=t.keyCode;switch(o){case 40:case 38:if(A)D(C,w)&&(i({value:C,reason:w}),e.revealSuggestions(),t.preventDefault());else if(n.length>0){var a,c=r.newHighlightedSectionIndex,s=r.newHighlightedItemIndex;a=null===s?null===_?C:_:e.getSuggestionValueByIndex(c,s),e.updateHighlightedSuggestion(c,s,C),e.maybeCallOnChange(t,a,40===o?"down":"up"),t.preventDefault()}e.justPressedUpDown=!0,setTimeout((function(){e.justPressedUpDown=!1}));break;case 13:if(229===t.keyCode)break;var u=e.getHighlightedSuggestion();if(N&&!v&&e.closeSuggestions(),null!=u){t.preventDefault();var l=g(u);e.maybeCallOnChange(t,l,"enter"),e.onSuggestionSelected(t,{suggestion:u,suggestionValue:l,suggestionIndex:T,sectionIndex:P,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout((function(){e.justSelectedSuggestion=!1}))}break;case 27:N&&t.preventDefault();var d=N&&!v;null===_?d||(e.maybeCallOnChange(t,"","escape"),D("",k)?i({value:"",reason:k}):e.onSuggestionsClearRequested()):e.maybeCallOnChange(t,_,"escape"),d?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}R&&R(t)}}),H={query:this.getQuery()};return r.default.createElement(a.default,{multiSection:l,items:L,renderInputComponent:o,renderItemsContainer:this.renderSuggestionsContainer,renderItem:s,renderItemData:H,renderSectionTitle:d,getSectionItems:m,highlightedSectionIndex:P,highlightedItemIndex:T,containerProps:S,inputProps:F,itemProps:this.itemProps,theme:(0,c.mapToAutowhateverTheme)(h),id:f,ref:this.storeAutowhateverRef})}}],n&&f(t.prototype,n),o&&f(t,o),u}(r.Component);t.default=S,y(S,"propTypes",{suggestions:o.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){var n=e[t];if("function"!=typeof n)throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!=typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},shouldKeepSuggestionsOnSelect:o.default.func,onSuggestionSelected:o.default.func,onSuggestionHighlighted:o.default.func,renderInputComponent:o.default.func,renderSuggestionsContainer:o.default.func,getSuggestionValue:o.default.func.isRequired,renderSuggestion:o.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n)throw new Error("'inputProps' must be passed.");if(!Object.prototype.hasOwnProperty.call(n,"value"))throw new Error("'inputProps' must have 'value'.");if(!Object.prototype.hasOwnProperty.call(n,"onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:o.default.func,alwaysRenderSuggestions:o.default.bool,multiSection:o.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:o.default.bool,highlightFirstSuggestion:o.default.bool,theme:o.default.object,id:o.default.string,containerProps:o.default.object}),y(S,"defaultProps",{renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return r.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,shouldKeepSuggestionsOnSelect:function(){return!1},focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:c.defaultTheme,id:"1",containerProps:{}})},87683:(e,t,n)=>{"use strict";n.d(t,{F3:()=>f,GT:()=>p,J9:()=>s,JF:()=>u,MT:()=>l,V1:()=>c});var r=n(81293),o=n(54819),i=n(62587),a=n(89160);function c(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}function s(e,t,n){return void 0===n&&(n={}),t.reduce((function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t}),{})}var u={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){0},onWarn:function(e){0}};function l(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function d(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function p(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,a=Intl.DisplayNames,c=(0,o.B)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{cache:d(e.dateTime),strategy:o.W.variadic}),s=(0,o.B)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{cache:d(e.number),strategy:o.W.variadic}),u=(0,o.B)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{cache:d(e.pluralRules),strategy:o.W.variadic});return{getDateTimeFormat:c,getNumberFormat:s,getMessageFormat:(0,o.B)((function(e,t,n,o){return new i.S(e,t,n,(0,r.Cl)({formatters:{getNumberFormat:s,getDateTimeFormat:c,getPluralRules:u}},o||{}))}),{cache:d(e.message),strategy:o.W.variadic}),getRelativeTimeFormat:(0,o.B)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,(0,r.fX)([void 0],e,!1)))}),{cache:d(e.relativeTime),strategy:o.W.variadic}),getPluralRules:u,getListFormat:(0,o.B)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,(0,r.fX)([void 0],e,!1)))}),{cache:d(e.list),strategy:o.W.variadic}),getDisplayNames:(0,o.B)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(a.bind.apply(a,(0,r.fX)([void 0],e,!1)))}),{cache:d(e.displayNames),strategy:o.W.variadic})}}function f(e,t,n,r){var o,i=e&&e[t];if(i&&(o=i[n]),o)return o;r(new a.OC("No ".concat(t," format named: ").concat(n)))}},87695:(e,t,n)=>{e.exports=n(915)()},87730:(e,t,n)=>{var r=n(29172),o=n(27301),i=n(86009),a=i&&i.isMap,c=a?o(a):r;e.exports=c},87805:(e,t,n)=>{var r=n(43360),o=n(75288);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},87978:(e,t,n)=>{var r=n(60270),o=n(58156),i=n(80631),a=n(28586),c=n(30756),s=n(89578),u=n(77797);e.exports=function(e,t){return a(e)&&c(t)?s(u(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},88097:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:()=>r})},88208:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r,o=n(22056),i=n.n(o),a=n(4883),c=n(69556),s=n(56375),u=n(7647),l=n(74848);const d=function(e){var t=e.promises,n=e.required,o=e.children,d=e.loadingText,p=e.className,f=(0,a.useState)(!1),m=i()(f,2),h=m[0],g=m[1],v=(0,a.useState)(!0),y=i()(v,2),b=y[0],w=y[1];(0,a.useEffect)((function(){return t&&Promise.all(t).then((function(){var e;e=!0,b&&g(e)})),function(){w(!1)}}),[]);var x=n&&Array.isArray(n)?!n.some((function(e){return!e})):!!t&&h;return(0,l.jsx)(u.A,{className:p,children:x?o:(0,l.jsxs)(u.i,{children:[r||(r=(0,l.jsx)(c.A,{size:"30px"},"loading-spinner")),d&&(0,l.jsx)(s.Ay.Span,{children:d},"loadingText")]})})}},88963:(e,t,n)=>{"use strict";function r(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function i(e){var t;return null==(t=(a(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function a(e){return e instanceof Node||e instanceof o(e).Node}function c(e){return e instanceof Element||e instanceof o(e).Element}function s(e){return e instanceof HTMLElement||e instanceof o(e).HTMLElement}function u(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}function l(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=v(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function d(e){return["table","td","th"].includes(r(e))}function p(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function f(e){const t=h(),n=c(e)?v(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function m(e){let t=b(e);for(;s(t)&&!g(t);){if(f(t))return t;if(p(t))return null;t=b(t)}return null}function h(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function g(e){return["html","body","#document"].includes(r(e))}function v(e){return o(e).getComputedStyle(e)}function y(e){return c(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function b(e){if("html"===r(e))return e;const t=e.assignedSlot||e.parentNode||u(e)&&e.host||i(e);return u(t)?t.host:t}function w(e){const t=b(e);return g(t)?e.ownerDocument?e.ownerDocument.body:e.body:s(t)&&l(t)?t:w(t)}function x(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=w(e),a=i===(null==(r=e.ownerDocument)?void 0:r.body),c=o(i);return a?t.concat(c,c.visualViewport||[],l(i)?i:[],c.frameElement&&n?x(c.frameElement):[]):t.concat(i,x(i,[],n))}n.d(t,{$4:()=>b,CP:()=>y,L9:()=>v,Lv:()=>d,Tc:()=>h,Tf:()=>p,ZU:()=>l,ep:()=>i,eu:()=>g,gJ:()=>m,mq:()=>r,sQ:()=>f,sb:()=>s,v9:()=>x,vq:()=>c,zk:()=>o})},88984:(e,t,n)=>{var r=n(55527),o=n(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},89160:(e,t,n)=>{"use strict";n.d(t,{Ho:()=>l,OC:()=>a,hr:()=>s,pg:()=>u,sb:()=>d,uo:()=>c});var r,o=n(81293);!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(r||(r={}));var i=function(e){function t(n,r,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return(i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return(0,o.C6)(t,e),t}(Error),a=function(e){function t(t,n){return e.call(this,r.UNSUPPORTED_FORMATTER,t,n)||this}return(0,o.C6)(t,e),t}(i),c=function(e){function t(t,n){return e.call(this,r.INVALID_CONFIG,t,n)||this}return(0,o.C6)(t,e),t}(i),s=function(e){function t(t,n){return e.call(this,r.MISSING_DATA,t,n)||this}return(0,o.C6)(t,e),t}(i),u=function(e){function t(t,n,o){var i=e.call(this,r.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(n,"\n"),o)||this;return i.locale=n,i}return(0,o.C6)(t,e),t}(i),l=function(e){function t(t,n,r,o){var i=e.call(this,"".concat(t,"\nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description,"\n"),n,o)||this;return i.descriptor=r,i.locale=n,i}return(0,o.C6)(t,e),t}(u),d=function(e){function t(t,n){var o=e.call(this,r.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map((function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)})).join(),")"):"id"," as fallback."))||this;return o.descriptor=t,o}return(0,o.C6)(t,e),t}(i)},89347:(e,t,n)=>{"use strict";n.d(t,{L:()=>i,v:()=>o});var r=n(57416),o=function(e){return!!e&&Object.values(r.A).indexOf(e)>=0},i=function(e,t){return!e||!t||t.includes(e)}},89578:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},89935:e=>{e.exports=function(){return!1}},90125:(e,t,n)=>{"use strict";n.d(t,{A:()=>pt});var r=n(26396),o=n.n(r),i=n(58156),a=n.n(i),c=n(61487),s=n(21259),u=n.n(s),l=function(e,t){return e.split(".").reduce((function(e,t){var n=e[e.length-1];return[].concat(u()(e),[n?"".concat(n,".").concat(t):t])}),[]).map((function(e){return"paths.".concat(e.split(".").join(".value.paths.")).split(".")})).map((function(e){return a()(t,e)}))};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 p(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 f={hasValue:function(e){var t=e.formValues,n=e.formField.locationMapping;return!!t[(0,c.I)(n.street)]},getValue:function(e){var t=e.formField,n=e.formData,r=t.locationMapping;return{street:n.formValues[(0,c.I)(r.street)]}},hideIfEmptyValue:function(){return!0},getEvents:function(e){var t=e.formField,n=e.formName,r=e.formData,o=e.events,i=t.locationMapping||{};return p(p({},o),{},{onChange:function(e){for(var o in i)if(i[o]&&void 0!==e[o]){var a=null!==e[o]?e[o]:"";r.changeFieldValue(n,i[o],a)}var c=e.street;if(r.changeFieldValue(n,t.id,p({},void 0!==c?{street:c||""}:{})),t.postcodeCityField){var s=e.postcode,u=e.city;r.changeFieldValue(n,t.postcodeCityField,p(p({},void 0!==s?{postcode:s||""}:{}),void 0!==u?{city:u||""}:{}))}},onBlur:function(){r.touchField(n,t.id)}})},dataContainerProps:function(e){var t=e.formField,n=e.formName;return{locations:[t.id],formValues:{formName:n,fields:t.locationMapping?Object.values(t.locationMapping).map((function(e){return(0,c.I)(e)})):{}}}},getOptions:function(e){var t=e.formField,n=e.formData;return{fetchSuggestions:function(e,r){return n.loadLocationsSuggestions(t.id,e,r,a()(t,"countries"))},validateLocation:function(e,r){return n.validateLocation(t.id,e,a()(t,"countries"),r)},isLoading:a()(n,["locations",t.id,"isLoading"],!1),suggestions:a()(n,["locations",t.id,"suggestions"],null),mapButtonTitle:n.intl.formatMessage({id:"client.component.location.mapButtonTitle"}),locationValues:Object.keys(t.locationMapping||{}).reduce((function(e,r){return p(p({},e),{},o()({},r,n.formValues[(0,c.I)(t.locationMapping[r])]))}),{})}},getMandatoryValidation:function(e){var t,n=e.formField,r=n.locationMapping,o=null===(t=n.siblings.find((function(e){return e.id===r.street})))||void 0===t?void 0:t.validation;return null==o?void 0:o.mandatory},isReadOnly:function(e){var t=e.formField,n=e.entity,r=t.locationMapping,o=l(r.street,n).slice(-1)[0];return!1===(null==o?void 0:o.writable)}},m={fixLabel:function(){return!0}},h={getOptions:function(e){var t=e.formData;return{trueLabel:t.intl.formatMessage({id:"client.common.yes"}),falseLabel:t.intl.formatMessage({id:"client.common.no"})}},hasValue:function(e){var t=e.value;return!0===t||!1===t}};var g=function(e,t){return{entityModel:e.model,key:e.key,field:t}},v=function(e,t){if(e.implicitModelField&&t.formValues){var n=e.implicitModelField,r=n.indexOf(".");return r>-1?function(e,t,n){var r=e.substring(0,t),o=e.substring(t+1),i=n.formValues[r];if(i){if(!Array.isArray(i))return g(i,o);if(1===i.length)return g(i[0],o)}return null}(n,r,t):t.formValues[n]}return e.implicitModel},y=function(e){if(e.implicitModelField){var t=e.implicitModelField,n=t.indexOf(".");return n>-1?[t.substring(0,n)]:[t]}return[]};const b={fixLabel:function(){return!0},getOptions:function(e){var t=e.formField,n=e.formData;return{mode:t.mode,implicitModel:v(t,n)}},dataContainerProps:function(e){var t=e.formField;return{formValues:{formName:e.formName,fields:y(t)}}}};var w=function(e){if(!e||isNaN(e))return null;var t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return[t,(n>9?"":"0")+n,(r>9?"":"0")+r].join("-")};const x={getOptions:function(){return{datePickerOptions:{dateToValue:w}}}},O={getOptions:function(e){var t=e.entityField;if("long"===(null==t?void 0:t.type))return{datePickerOptions:{valueToDate:function(e){var t=e?new Date(e):null;return isNaN(t)?null:t},dateToValue:function(e){return e?e.getTime():null}}}}},k={getOptions:function(e){var t=e.formField;return{postPointDigits:a()(t,"validation.decimalDigits.postPointDigits",null),prePointDigits:a()(t,"validation.decimalDigits.prePointDigits",null),minValue:a()(t,"validation.numberRange.fromIncluding",null),maxValue:a()(t,"validation.numberRange.toIncluding",null),allowNegative:!0}}};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 E(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){o()(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}const j={getOptions:function(e){var t=e.formField,n=e.formName,r=e.formData;return E(E({upload:function(e,o){r.uploadDocument(n,t.id,e,o)}},r.chooseDocument?{choose:function(e){return r.chooseDocument(r.setDocument,n,t.id,{multiSelection:!1,allowedFileTypes:t.allowedFileTypes},e)}}:{}),{},{uploadText:r.intl.formatMessage({id:"client.component.upload.upload"}),uploadingText:r.intl.formatMessage({id:"client.component.upload.uploading"}),downloadText:r.intl.formatMessage({id:"client.component.upload.downloadTitle"}),deleteText:r.intl.formatMessage({id:"client.component.upload.deleteTitle"}),allowedFileTypes:t.allowedFileTypes})},fixLabel:function(){return!0}};var A=function(e){return!e.validation||!e.validation.numberRange||"number"!=typeof e.validation.numberRange.fromIncluding||e.validation.numberRange.fromIncluding<0};const P={getOptions:function(e){var t=e.formField,n=e.formData;return{hoursLabel:n.intl.formatMessage({id:"client.component.duration.hoursLabel"}),minutesLabel:n.intl.formatMessage({id:"client.component.duration.minutesLabel"}),secondsLabel:n.intl.formatMessage({id:"client.component.duration.secondsLabel"}),allowNegative:A(t)}}};function T(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 _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const D={dataContainerProps:function(e){var t=e.formField,n=e.formName;return{locations:[t.id],formValues:{formName:n,fields:[t.id]}}},getValue:function(e){var t=e.formField,n=e.formData.formValues[t.id];return _(_({},n),null!=n&&n.distance?{}:{distance:10})},getOptions:function(e){var t=e.formField,n=e.formData;return{latitudeField:t.latitudeField,longitudeField:t.longitudeField,noResultsText:n.intl.formatMessage({id:"client.component.geosearch.noResultsText"}),emptySearchText:n.intl.formatMessage({id:"client.component.geosearch.emptySearchText"}),kmSuffixText:n.intl.formatMessage({id:"client.component.geosearch.km"}),suggestions:a()(n,["locations",t.id,"suggestions"],[]),isLoading:a()(n,["locations",t.id,"isLoading"],!1),fetchSuggestions:function(e,r){e?n.loadLocationsSuggestions(t.id,e,r,a()(t,"countries")):n.setLocationSuggestions(t.id,[])}}}};var C=function(e){if(!["email_editor","correspondence_editor"].includes(e))return{removeButtons:["Font","FontSize","TextColor"]}};const I={fixLabel:function(){return!0},getOptions:function(e){var t,n=e.formField;return t=n.htmlconfig,{defaultLinkTarget:["terms_editor"].includes(t)?"_blank":"notSet",ckEditorConfig:C(t)}}},R={getOptions:function(e){var t=e.formField;return{minValue:a()(t,"validation.numberRange.fromIncluding",null),maxValue:a()(t,"validation.numberRange.toIncluding",null)}}};function M(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 N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const L={hasValue:function(e){var t=e.formValues,n=e.formField.locationMapping;return!(!t[(0,c.I)(n.city)]&&!t[(0,c.I)(n.postcode)])},hideIfEmptyValue:function(){return!0},getValue:function(e){var t=e.formField,n=e.formData,r=t.locationMapping;return{postcode:n.formValues[(0,c.I)(r.postcode)],city:n.formValues[(0,c.I)(r.city)]}},getEvents:function(e){var t=e.formField,n=e.formName,r=e.formData,o=e.events,i=t.locationMapping||{};return N(N({},o),{},{onChange:function(e){for(var o in i)if(i[o]&&void 0!==e[o]&&"street"!==o){var a=null!==e[o]?e[o]:"";r.changeFieldValue(n,i[o],a)}var c=e.postcode,s=e.city;r.changeFieldValue(n,t.id,N(N({},void 0!==c?{postcode:c||""}:{}),void 0!==s?{city:s||""}:{}))},onBlur:function(){r.touchField(n,t.id)}})},dataContainerProps:function(e){var t=e.formField,n=e.formName;return{locations:[t.id],formValues:{formName:n,fields:t.locationMapping?Object.values(t.locationMapping).map((function(e){return(0,c.I)(e)})):{}}}},getOptions:function(e){var t=e.formField,n=e.formData;return{fetchSuggestions:function(e,r){return n.loadLocationsSuggestions(t.id,e,r,a()(t,"countries"))},validateLocation:function(e,r){return n.validateLocation(t.id,e,a()(t,"countries"),r)},isLoading:a()(n,["locations",t.id,"isLoading"],!1),suggestions:a()(n,["locations",t.id,"suggestions"],null),mapButtonTitle:n.intl.formatMessage({id:"client.component.location.mapButtonTitle"}),locationValues:Object.keys(t.locationMapping||{}).reduce((function(e,r){return N(N({},e),{},o()({},r,n.formValues[(0,c.I)(t.locationMapping[r])]))}),{})}},getMandatoryValidation:function(e){var t,n,r=e.formField,o=r.locationMapping,i=null===(t=r.siblings.find((function(e){return e.id===o.city})))||void 0===t?void 0:t.validation,a=null===(n=r.siblings.find((function(e){return e.id===o.postcode})))||void 0===n?void 0:n.validation;return(null==i?void 0:i.mandatory)||(null==a?void 0:a.mandatory)},isReadOnly:function(e){var t=e.formField,n=e.entity,r=t.locationMapping,o=l(r.city,n).slice(-1)[0],i=l(r.postcode,n).slice(-1)[0];return!1===(null==o?void 0:o.writable)||!1===(null==i?void 0:i.writable)}},F={getOptions:function(e){var t=e.formField;return{postPointDigits:a()(t,"validation.decimalDigits.postPointDigits",2),prePointDigits:a()(t,"validation.decimalDigits.prePointDigits",null),minValue:a()(t,"validation.numberRange.fromIncluding",null),maxValue:a()(t,"validation.numberRange.toIncluding",null),allowNegative:!0,fixedDecimalScale:!0}}},H={getOptions:function(e){var t=e.formField;return{prePointDigits:a()(t,"validation.decimalDigits.prePointDigits",null),postPointDigits:a()(t,"validation.decimalDigits.postPointDigits",null),minValue:a()(t,"validation.numberRange.fromIncluding",null),maxValue:a()(t,"validation.numberRange.toIncluding",null),allowNegative:!0}}},B={getOptions:function(e){var t=e.formField;return{prePointDigits:a()(t,"validation.decimalDigits.prePointDigits",null),postPointDigits:a()(t,"validation.decimalDigits.postPointDigits",null),minValue:a()(t,"validation.numberRange.fromIncluding",null),maxValue:a()(t,"validation.numberRange.toIncluding",null),allowNegative:!1,suffix:"%"}}},U={getOptions:function(e){var t=e.formField;return{customPhoneRegex:a()(t,"validation.phone.customRegex",null),defaultCountry:a()(t,"validation.phone.defaultRegion",null)}}};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 W(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}const z={getOptions:function(e){var t=e.formField,n=e.formName,r=e.formData;return W(W({upload:function(e,o){r.uploadDocuments(n,t.id,e,o)}},r.chooseDocument?{choose:function(e,o){return r.chooseDocument(r.setDocuments,n,t.id,{multiSelection:!0,allowedFileTypes:t.allowedFileTypes,rootNodes:o},e)}}:{}),{},{allowedFileTypes:t.allowedFileTypes,entityDocsOptions:t.entityDocsOptions})},fixLabel:function(){return!0}};var q=n(39892),Y=n.n(q),$=n(60115),G=n(74848),K=["entityKey","children"];function J(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 X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Q=50,Z=25,ee=function(e){return e.filter(Boolean).join(" and ")},te=function(e){return e&&Array.isArray(e)&&0!==e.length?"not KEYS(".concat(e.map((function(e){return e.key})).join(", "),")"):void 0},ne=function(e,t){return t.relationName&&a()(e,["entityModel","paths",t.relationName,"createPermission"],!1)&&a()(e,["entityModel","paths",t.relationName,"useRemoteFieldNewButton"],!0)},re=function(e,t){return null===e?null:X(X({},e),{},{display:a()(t,["relationEntitiesDefaultDisplays",e.model,e.key],null==e?void 0:e.display)})};const oe={dataContainerProps:function(e){var t=e.formField;return{relationEntities:[t.id],tooltips:[t.targetEntity],navigationStrategy:!0}},getOptions:function(e){var t=e.formField,n=e.formName,r=e.formData;return{options:a()(r,["relationEntities",t.id,"data"],[]),moreOptionsAvailable:a()(r,["relationEntities",t.id,"moreEntitiesAvailable"],!1),isLoading:a()(r,["relationEntities",t.id,"isLoading"],!1),fetchOptions:function(e){r.loadRelationEntities(t.id,t.targetEntity,{forceReload:!0,limit:t.itemCount||Z,formBase:t.formBase,formName:t.formName,where:ee([t.condition,te(e)]),loadRemoteFieldConfiguration:!0,constriction:t.constriction,optionDisplay:t.optionDisplay})},searchOptions:function(e,n){r.loadRelationEntities(t.id,t.targetEntity,{searchTerm:e,limit:t.itemCount||Q,forceReload:!0,formBase:t.formBase,formName:t.formName,where:ee([t.condition,te(n)]),loadRemoteFieldConfiguration:!0,constriction:t.constriction,optionDisplay:t.optionDisplay})},openDocsTreeSearch:t.displayDocsTree?function(e){return r.openDocsTreeSearch(n,t,e)}:void 0,openAdvancedSearch:!1===t.displayAdvancedSearch?void 0:function(e,o){return r.openAdvancedSearch(n,t,e,o)},tooltips:a()(r.tooltips,t.targetEntity,null),loadTooltip:function(e){return r.loadTooltip(t.targetEntity,e)},noResultsText:r.intl.formatMessage({id:"client.component.remoteselect.noResultsText"}),moreOptionsAvailableText:r.intl.formatMessage({id:"client.component.remoteselect.moreOptionsAvailableText"}),DetailLink:r.navigationStrategy&&r.navigationStrategy.DetailLink?function(e){var n=e.entityKey,o=e.children,i=Y()(e,K);return(0,G.jsx)(r.navigationStrategy.DetailLink,X(X({entityName:t.targetEntity,entityKey:n},i),{},{children:o}))}:null,createPermission:ne(r,t)&&($.A.isInWidgetEmbedded()?a()(t,"displayCreateButtonWidget",!1):a()(t,"displayCreateButton",!0)),openRemoteCreate:function(e){return r.openRemoteCreate(t,n,e)}}},getEvents:function(e){var t=e.events,n=e.formData;return X(X({},t),{},{onChange:function(e){var r=Array.isArray(e)?e.map((function(e){return re(e,n)})):re(e,n);null==t||t.onChange(r)}})}},ie={dataContainerProps:function(e){var t=e.formField;return{relationEntities:[t.id],tooltips:[t.targetEntity]}},getOptions:function(e){var t=e.formField,n=e.formData,r=null==t?void 0:t.options;return{options:a()(n,["relationEntities",t.id,"data"])||r||[],isLoading:a()(n,["relationEntities",t.id,"isLoading"],!1),tooltips:a()(n,["tooltips",t.targetEntity],null),loadTooltip:function(e){return null==n?void 0:n.loadTooltip(t.targetEntity,e)},noResultsText:null==n?void 0:n.intl.formatMessage({id:"client.component.remoteselect.noResultsText"}),fetchOptions:function(){t.targetEntity&&(null==n||n.loadRelationEntities(t.id,t.targetEntity,{forceReload:!1,constriction:t.constriction,where:t.condition,optionDisplay:t.optionDisplay}))}}}};function ae(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 ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function se(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 ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var le={address:f,binary:j,boolean:m,choice:{hasValue:function(e){return e.value.options.filter((function(e){return e.checked})).length>0},hideIfEmptyValue:function(){return!1},getOptions:function(e){var t=e.formField;return{selectionType:t.selectionType,renderHtmlInOptions:t.renderHtmlInOptions}}},code:b,counter:H,"data-amount":H,datetime:O,date:x,birthdate:x,"pulldown-date":x,decimal:k,document:j,double:k,duration:P,geosearch:D,format:{getOptions:function(e){var t=e.formField,n=t.prefix,r=t.blocks,o=t.delimiters,i=t.numericOnly,a=t.showDelimiterLazy,c=t.saveUnformatted,s=t.forceCase;return{prefix:n,blocks:r,delimiters:o,numericOnly:i,delimiterLazyShow:a,saveUnformatted:c,uppercase:"upper"===s,lowercase:"lower"===s}}},html:I,image:j,integer:R,location:L,long:R,moneyamount:F,marking:m,"multi-remote-field":oe,"multi-select-box":ie,"named-upload":j,number:H,phone:U,"pseudo-select":{hasValue:function(e){return e.value.options.filter((function(e){return e.selected})).length>0},hideIfEmptyValue:function(){return!1},getOptions:function(e){return{isMulti:e.formField.isMulti}}},"pseudo-multi-document":z,"search-filter":{dataContainerProps:function(e){return{searchFilters:[e.formField.model]}},getOptions:function(e){var t=e.formField,n=e.formData;return{isMulti:t.multiple,options:a()(n.searchFilters,t.model,null),fetchOptions:function(){return n.loadSearchFilters(t.model,t.group)},noResultsText:n.intl.formatMessage({id:"client.component.searchfilter.noResultsText"})}}},"single-remote-field":oe,"single-select-box":ie,sorting:H,terms:{getOptions:function(e){var t,n=e.formData,r=e.formField;return{terms:null===(t=n.terms)||void 0===t?void 0:t[r.type],loadTerms:function(){return n.loadTerms(r.type)}}},getEvents:function(e){var t=e.events,n=e.formData,r=e.formName,o=e.formField;return ce(ce({},t),{},{onChange:function(e){e&&!e.checked?n.changePristineFieldValue(r,o.id||o.path,e):t.onChange(e)}})}},percent:B,upload:j},de=ue({},le);const pe={editable:le,readOnly:ue({},le),list:de,search:ue(ue({},le),{},{boolean:h,marking:h})};var fe=n(73082),me=n(90179),he=n.n(me),ge=n(4883),ve=n(39264),ye=n(64116),be=n(92705),we=n(48854),xe=n(6463),Oe=n(16172),ke=n(85577);function Se(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 Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var je="yyyy-MM-dd",Ae=function(e){return(0,be.u)(e,je)?(0,we.qg)(e,je,new Date):(0,be.u)(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||(0,be.u)(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?(0,xe.o)(new Date(e)):null};const Pe={datetime:{type:"date",toRange:function(e){return{from:e?Ae(e).toISOString():null,to:e?(0,Oe.f)(Ae(e),1).toISOString():null,isRangeValue:!0}},fromRange:function(e){return null!=e&&e.from?(0,ke.GP)(new Date(e.from),je):null!=e&&e.to?(0,ke.GP)(new Date(e.to),je):null},getToOptions:function(e,t){return Ee(Ee({},e),{},{datePickerOptions:Ee({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return Ee(Ee({},e),{},{datePickerOptions:Ee({maxDate:t},null==e?void 0:e.datePickerOptions)})}},date:{getToOptions:function(e,t){return Ee(Ee({},e),{},{datePickerOptions:Ee({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return Ee(Ee({},e),{},{datePickerOptions:Ee({maxDate:t},null==e?void 0:e.datePickerOptions)})}}};var Te,_e,De,Ce,Ie,Re,Me=n(72189),Ne=n.n(Me),Le=n(6199),Fe=n(50098),He=n(26166),Be=n(57488),Ue=Le.Ay.div.withConfig({displayName:"StyledIconWrapper"})(Te||(Te=Ne()(["\n font-size: ",";\n color: ",";\n"])),He.A.font(-2.7),Be.t7.color("text")),Ve=Le.Ay.div.withConfig({displayName:"StyledRange"})(_e||(_e=Ne()(["\n display: flex;\n align-items: baseline;\n width: 100%;\n"]))),We=Le.Ay.div.withConfig({displayName:"StyledInput"})(De||(De=Ne()(["\n flex: 1;\n display: flex;\n flex-direction: column;\n\n ","\n"])),(function(e){return"row"===e.direction&&(0,Le.AH)(Ce||(Ce=Ne()(["\n flex-direction: row;\n gap: ",";\n align-items: center;\n\n * {\n font-size: ",";\n }\n "])),He.A.space(-.5),He.A.font(-.52))})),ze=(0,Le.Ay)(Fe.A).withConfig({displayName:"StyledBall"})(Ie||(Ie=Ne()(["\n align-self: start;\n position: relative;\n top: ","px;\n"])),(function(e){return e.isAdmin?"2.5":"8"}));function qe(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 Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const $e=function(e){var t=e.value,n=e.events,r=e.readOnly,o=e.type,i=e.options,a=e.fromText,c=e.toText,s=Pe[o],u=(null==t?void 0:t.isRangeValue)||!1,l=(0,ge.useRef)(t);l.current=t;var d,p,f=(0,ge.useMemo)((function(){return Ye(Ye({},n),{},{onChange:n.onChange})}),[n]),m={onChange:function(e){n.onChange(Ye(Ye({},l.current),{},{to:e}))}},h={onChange:function(e){n.onChange(Ye(Ye({},l.current),{},{from:e}))}},g=(null==s?void 0:s.type)||o,v=$.A.isInAdminEmbedded(),y=$.A.isInWidgetEmbedded(),b=(0,G.jsx)(ve.A,Ye(Ye({type:g},he()(e,["type"])),{},{events:f})),w=(0,G.jsxs)(We,{direction:y?"row":"column",children:[(0,G.jsx)(ve.A,Ye(Ye({},e),{},{options:(d=i,p=null==t?void 0:t.to,null!=s&&s.getFromOptions?s.getFromOptions(d,p):d),value:(null==t?void 0:t.from)||null,events:h,placeholder:a})),Re||(Re=(0,G.jsx)(Ue,{children:(0,G.jsx)(ye.A,{icon:"horizontal-rule"})})),(0,G.jsx)(ve.A,Ye(Ye({},e),{},{options:function(e,t){return null!=s&&s.getToOptions?s.getToOptions(e,t):e}(i,null==t?void 0:t.from),value:(null==t?void 0:t.to)||null,events:m,placeholder:c}))]});return(0,G.jsxs)(Ve,{children:[u?w:b,(0,G.jsx)(ze,{isAdmin:v,disabled:r,icon:u?"square-minus":"square-plus",onClick:function(){var e=u?function(e){return null!=s&&s.fromRange?s.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(t):function(e){return null!=s&&s.toRange?s.toRange(e):{from:e,to:e,isRangeValue:!0}}(t);n.onChange(e)}})]})};function Ge(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 Ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Je=function(e){var t,n=e.componentType,r=e.mappingType,o=e.range,i=e.formField,a=void 0===i?{}:i,c=e.entityField,s=e.formName,u=e.value,l=e.info,d=e.events,p=e.formData,f=a.dataType||a.componentType||n,m=null===(t=pe[r||"editable"])||void 0===t?void 0:t[f],h=function(e,t,n,r,o){return null!=e&&e.getOptions?e.getOptions({formField:t,formName:n,formData:r,entityField:o}):{}}(m,a,s,p,c),g=function(e,t,n,r,o,i){return null!=e&&e.getValue?e.getValue({formField:t,formName:n,formData:r,entityField:o,value:i}):i}(m,a,s,p,c,u),v=function(e,t,n,r,o,i){return null!=e&&e.getEvents?e.getEvents({formField:t,formName:n,formData:r,entityField:o,events:i}):i}(m,a,s,p,c,d),y=o?$e:ve.A;return(0,G.jsx)(y,Ke(Ke({type:n,events:v,value:g,options:h},l),o&&{fromText:p.intl.formatMessage({id:"client.component.range.from"}),toText:p.intl.formatMessage({id:"client.component.range.to"})}))};const Xe=function(e,t){return function(n){return(0,G.jsx)(Je,Ke({componentType:e,range:t},n))}};var Qe=n(30840);const Ze={dataContainerProps:function(){return{tooltips:["Resource"],navigationStrategy:!0}},getOptions:function(e){var t=e.formData;return t?{downloadText:t.intl.formatMessage({id:"client.component.upload.downloadTitle"}),tooltips:a()(t.tooltips,"Resource",null),loadTooltip:function(e){return t.loadTooltip("Resource",e)}}:{}}},et={dataContainerProps:function(e){return{tooltips:[e.formField.targetEntity],navigationStrategy:!0}},getOptions:function(e){var t=e.formField,n=e.formData;return{tooltips:a()(n.tooltips,t.targetEntity,null),loadTooltip:function(e){return n.loadTooltip(t.targetEntity,e)},navigationStrategy:n.navigationStrategy,linkProps:{entityName:t.targetEntity}}}},tt={binary:Ze,document:Ze,image:Ze,display:{getOptions:function(e){var t=e.formField;return{escapeHtml:Boolean(t.escapeHtml)}}},"multi-remote-field":et,"single-remote-field":et,description:{getOptions:function(e){var t=e.formField;return{mode:t.mode,title:t.title}},getValue:function(e){return e.formField.text}},number:{getOptions:function(e){var t=e.formField;return{postPointDigits:a()(t,"validation.decimalDigits.postPointDigits",null)}}},moneyamount:{getOptions:function(e){var t=e.formField;return{postPointDigits:a()(t,"validation.decimalDigits.postPointDigits",2)}}},percent:{getValue:function(e){var t=e.value;return t?t/100:t},getOptions:function(e){var t=e.formField;return{postPointDigits:a()(t,"validation.decimalDigits.postPointDigits",null)}}}};function nt(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 rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ot=function(e){var t=e.componentType,n=e.formField,r=e.value,o=e.formData,i=e.key,a=e.breakWords,c=e.useTitle,s=e.info,u=n.dataType||n.componentType,l=tt[u],d=function(e,t,n){return null!=e&&e.getOptions?e.getOptions({formField:t,formData:n}):{}}(l,n,o),p=function(e,t,n,r){return null!=e&&e.getValue?e.getValue({formField:t,formData:n,value:r}):r}(l,n,o,r);return(0,G.jsx)(Qe.A,rt({type:t,value:p,options:d,breakWords:a,useTitle:c},s),i)};const it=function(e){return function(t){return(0,G.jsx)(ot,rt(rt({},t),{},{componentType:e}))}};function at(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 ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var st={address:Xe("address"),binary:Xe("document"),birthdate:Xe("date"),boolean:Xe("boolean"),char:Xe("string"),choice:Xe("choice"),code:Xe("code"),count:Xe("string"),counter:Xe("integer"),createts:Xe("datetime"),createuser:Xe("string"),"compressed-text":Xe("text"),date:Xe("date"),datetime:Xe("datetime"),decimal:Xe("number"),display:it("html"),description:it("description"),document:Xe("document"),double:Xe("number"),duration:Xe("duration"),email:Xe("email"),format:Xe("format"),"fulltext-search":Xe("string"),html:Xe("html"),image:Xe("document"),identifier:Xe("string"),integer:Xe("integer"),ipaddress:Xe("string"),latitude:Xe("string"),location:Xe("location"),login:Xe("string"),long:Xe("integer"),longitude:Xe("string"),marking:Xe("boolean"),moneyamount:Xe("number"),"multi-remote-field":Xe("multi-remote"),"multi-select-box":Xe("multi-select"),"named-upload":Xe("document"),percent:Xe("number"),phone:Xe("phone"),postcode:Xe("string"),"pseudo-select":Xe("pseudo-select"),"pseudo-multi-document":Xe("pseudo-multi-document"),"pulldown-date":Xe("date"),"search-filter":Xe("search-filter"),serial:Xe("string"),"single-remote-field":Xe("remote"),"single-select-box":Xe("single-select"),sorting:Xe("integer"),string:Xe("string"),terms:Xe("terms"),text:Xe("text"),"text-area":Xe("text"),time:Xe("time"),updatets:Xe("datetime"),updateuser:Xe("string"),upload:Xe("document"),url:Xe("url"),uuid:Xe("string"),version:Xe("integer")},ut={address:Xe("address"),binary:it("document"),birthdate:it("date"),boolean:it("boolean"),code:it("text"),char:it("string"),choice:Xe("choice"),counter:it("integer"),createuser:it("string"),createts:it("datetime"),"compressed-text":it("text"),"data-amount":it("number"),date:it("date"),datetime:it("datetime"),decimal:it("number"),display:it("html"),description:it("description"),duration:it("duration"),document:it("document"),double:it("number"),email:it("email"),format:Xe("format"),html:it("html"),image:it("image"),ipaddress:it("string"),identifier:it("string"),latitude:it("string"),location:Xe("location"),login:it("string"),long:it("integer"),longitude:it("string"),moneyamount:it("number"),"multi-remote-field":it("multi-remote"),"multi-select-box":it("multi-select"),"named-upload":it("document"),integer:it("integer"),percent:it("percent"),phone:it("phone"),postcode:it("string"),"pseudo-select":Xe("pseudo-select"),"pulldown-date":it("date"),remote:it("remote"),"search-filter":it("search-filter"),serial:it("string"),"single-remote-field":it("remote"),"single-select-box":it("single-select"),sorting:it("integer"),string:it("string"),terms:Xe("terms"),text:it("text"),"text-area":it("text"),time:it("time"),updatets:it("datetime"),updateuser:it("string"),upload:it("document"),url:it("url"),uuid:it("string"),version:it("integer")};const lt={editable:st,readOnly:ut,list:ct(ct({},ut),{},{binary:it("document-compact"),document:it("document-compact"),image:it("document-compact")}),search:ct(ct({},st),{},{url:Xe("string"),text:Xe("string"),geosearch:Xe("geosearch"),html:Xe("string"),birthdate:Xe("date",!0),code:it("text",!0),date:Xe("date",!0),updatets:Xe("datetime",!0),createts:Xe("datetime",!0),datetime:Xe("datetime",!0),moneyamount:Xe("number",!0),percent:Xe("number",!0),long:Xe("integer",!0),integer:Xe("integer",!0),decimal:Xe("number",!0),counter:Xe("integer",!0),time:Xe("time",!0),boolean:Xe("boolean-select"),marking:Xe("boolean-select")})};var dt;const pt={factory:function(e,t){return lt[e]&<[e][t]?lt[e][t]:(fe.A.log("Unable to display field: unknown mapping type combination (".concat(e," / ").concat(t,")")),function(){return dt||(dt=(0,G.jsx)("span",{}))})},editableComponentConfigs:pe,formattedComponentConfigs:tt,getPathEntityFields:l}},90179:(e,t,n)=>{var r=n(34932),o=n(9999),i=n(19931),a=n(31769),c=n(21791),s=n(53138),u=n(38816),l=n(83349),d=u((function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,(function(t){return t=a(t,e),u||(u=t.length>1),t})),c(e,l(e),n),u&&(n=o(n,7,s));for(var d=t.length;d--;)i(n,t[d]);return n}));e.exports=d},90181:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},90289:(e,t,n)=>{var r=n(12651);e.exports=function(e){return r(this,e).get(e)}},90938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},91033:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},91344:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(4069);const o=(i=r.A,a=i.getIn,function(e,t){return function(n){var r=t||function(e){return a(e,"form")};return a(r(n),e+".initial")}});var i,a},92207:(e,t,n)=>{e.exports=n(7452)},92271:(e,t,n)=>{var r=n(21791),o=n(4664);e.exports=function(e,t){return r(e,o(e),t)}},92516:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});let r={};function o(){return r}},92705:(e,t,n)=>{"use strict";n.d(t,{u:()=>i});var r=n(32370),o=n(48854);function i(e,t,n){return(0,r.f)((0,o.qg)(e,t,new Date,n))}},92960:(e,t,n)=>{"use strict";n.d(t,{ZE:()=>i,Im:()=>s,tv:()=>l,Tu:()=>v,eW:()=>c,oF:()=>u,N1:()=>g,N6:()=>f,jA:()=>m,Jp:()=>p,xm:()=>h,Qh:()=>d,qg:()=>ce});var r=function(){return r=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},r.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var o,i,a;function c(e){return e.type===i.literal}function s(e){return e.type===i.argument}function u(e){return e.type===i.number}function l(e){return e.type===i.date}function d(e){return e.type===i.time}function p(e){return e.type===i.select}function f(e){return e.type===i.plural}function m(e){return e.type===i.pound}function h(e){return e.type===i.tag}function g(e){return!(!e||"object"!=typeof e||e.type!==a.number)}function v(e){return!(!e||"object"!=typeof e||e.type!==a.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(o||(o={})),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"}(i||(i={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(a||(a={}));var y=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,b=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function w(e){var t={};return e.replace(b,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var x=function(){return x=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},x.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var O=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var k=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,S=/^(@+)?(\+|#+)?[rs]?$/g,E=/(\*)(0+)|(#+)(0+)|(0+)/g,j=/^(0+)$/;function A(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(S,(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 P(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 T(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)),!j.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function _(e){var t=P(e);return t||{}}function D(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.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=o.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=x(x(x({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return x(x({},e),_(t))}),{}));continue;case"engineering":t=x(x(x({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return x(x({},e),_(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(o.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(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(E,(function(e,n,r,o,i,a){if(n)t.minimumIntegerDigits=r.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(j.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(k.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(k,(function(e,n,r,o,i,a){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var i=o.options[0];"w"===i?t=x(x({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=x(x({},t),A(i)))}else if(S.test(o.stem))t=x(x({},t),A(o.stem));else{var a=P(o.stem);a&&(t=x(x({},t),a));var c=T(o.stem);c&&(t=x(x({},t),c))}}return t}var C,I={"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"]};function R(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,r=e.language;return"root"!==r&&(n=e.maximize().region),(I[n||""]||I[r||""]||I["".concat(r,"-001")]||I["001"])[0]}var M=new RegExp("^".concat(y.source,"*")),N=new RegExp("".concat(y.source,"*$"));function L(e,t){return{start:e,end:t}}var F=!!String.prototype.startsWith&&"_a".startsWith("a",1),H=!!String.fromCodePoint,B=!!Object.fromEntries,U=!!String.prototype.codePointAt,V=!!String.prototype.trimStart,W=!!String.prototype.trimEnd,z=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},q=!0;try{q="a"===(null===(C=Z("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===C?void 0:C[0])}catch(e){q=!1}var Y,$=F?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},G=H?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,i=0;o>i;){if((n=e[i++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},K=B?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o[0],a=o[1];t[i]=a}return t},J=U?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},X=V?function(e){return e.trimStart()}:function(e){return e.replace(M,"")},Q=W?function(e){return e.trimEnd()}:function(e){return e.replace(N,"")};function Z(e,t){return new RegExp(e,t)}if(q){var ee=Z("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Y=function(e,t){var n;return ee.lastIndex=t,null!==(n=ee.exec(e)[1])&&void 0!==n?n:""}}else Y=function(e,t){for(var n=[];;){var r=J(e,t);if(void 0===r||oe(r)||ie(r))break;n.push(r),t+=r>=65536?2:1}return G.apply(void 0,n)};var te=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var a=this.char();if(123===a){if((c=this.parseArgument(e,n)).err)return c;r.push(c.val)}else{if(125===a&&e>0)break;if(35!==a||"plural"!==t&&"selectordinal"!==t){if(60===a&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(o.UNMATCHED_CLOSING_TAG,L(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&ne(this.peek()||0)){if((c=this.parseTag(e,t)).err)return c;r.push(c.val)}else{var c;if((c=this.parseLiteral(e,t)).err)return c;r.push(c.val)}}else{var s=this.clonePosition();this.bump(),r.push({type:i.pound,location:L(s,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:i.literal,value:"<".concat(r,"/>"),location:L(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(e+1,t,!0);if(a.err)return a;var c=a.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ne(this.char()))return this.error(o.INVALID_TAG,L(s,this.clonePosition()));var u=this.clonePosition();return r!==this.parseTagName()?this.error(o.UNMATCHED_CLOSING_TAG,L(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:i.tag,value:r,children:c,location:L(n,this.clonePosition())},err:null}:this.error(o.INVALID_TAG,L(s,this.clonePosition())))}return this.error(o.UNCLOSED_TAG,L(n,this.clonePosition()))}return this.error(o.INVALID_TAG,L(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&re(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{var a=this.tryParseUnquoted(e,t);if(a)r+=a;else{var c=this.tryParseLeftAngleBracket();if(!c)break;r+=c}}}var s=L(n,this.clonePosition());return{val:{type:i.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ne(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return G.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),G(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(o.EXPECT_ARGUMENT_CLOSING_BRACE,L(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(o.EMPTY_ARGUMENT,L(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(o.MALFORMED_ARGUMENT,L(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(o.EXPECT_ARGUMENT_CLOSING_BRACE,L(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:i.argument,value:r,location:L(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(o.EXPECT_ARGUMENT_CLOSING_BRACE,L(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(o.MALFORMED_ARGUMENT,L(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Y(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:L(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,c){var s,u=this.clonePosition(),l=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(l){case"":return this.error(o.EXPECT_ARGUMENT_TYPE,L(u,d));case"number":case"date":case"time":this.bumpSpace();var p=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition();if((O=this.parseSimpleArgStyleIfPossible()).err)return O;if(0===(v=Q(O.val)).length)return this.error(o.EXPECT_ARGUMENT_STYLE,L(this.clonePosition(),this.clonePosition()));p={style:v,styleLocation:L(f,this.clonePosition())}}if((k=this.tryParseArgumentClose(c)).err)return k;var m=L(c,this.clonePosition());if(p&&$(null==p?void 0:p.style,"::",0)){var h=X(p.style.slice(2));if("number"===l)return(O=this.parseNumberSkeletonFromString(h,p.styleLocation)).err?O:{val:{type:i.number,value:n,location:m,style:O.val},err:null};if(0===h.length)return this.error(o.EXPECT_DATE_TIME_SKELETON,m);var g=h;this.locale&&(g=function(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 a=1+(1&i),c=i<2?1:3+(i>>1),s=R(t);for("H"!=s&&"k"!=s||(c=0);c-- >0;)n+="a";for(;a-- >0;)n=s+n}else n+="J"===o?"H":o}return n}(h,this.locale));var v={type:a.dateTime,pattern:g,location:p.styleLocation,parsedOptions:this.shouldParseSkeletons?w(g):{}};return{val:{type:"date"===l?i.date:i.time,value:n,location:m,style:v},err:null}}return{val:{type:"number"===l?i.number:"date"===l?i.date:i.time,value:n,location:m,style:null!==(s=null==p?void 0:p.style)&&void 0!==s?s:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(o.EXPECT_SELECT_ARGUMENT_OPTIONS,L(y,r({},y)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),x=0;if("select"!==l&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,L(this.clonePosition(),this.clonePosition()));var O;if(this.bumpSpace(),(O=this.tryParseDecimalInteger(o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,o.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return O;this.bumpSpace(),b=this.parseIdentifierIfPossible(),x=O.val}var k,S=this.tryParsePluralOrSelectOptions(e,l,t,b);if(S.err)return S;if((k=this.tryParseArgumentClose(c)).err)return k;var E=L(c,this.clonePosition());return"select"===l?{val:{type:i.select,value:n,options:K(S.val),location:E},err:null}:{val:{type:i.plural,value:n,options:K(S.val),offset:x,pluralType:"plural"===l?"cardinal":"ordinal",location:E},err:null};default:return this.error(o.INVALID_ARGUMENT_TYPE,L(u,d))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(o.EXPECT_ARGUMENT_CLOSING_BRACE,L(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(o.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,L(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(O).filter((function(e){return e.length>0}));n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],a=o.slice(1),c=0,s=a;c<s.length;c++)if(0===s[c].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:a})}return t}(e)}catch(e){return this.error(o.INVALID_NUMBER_SKELETON,t)}return{val:{type:a.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?D(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,a=!1,c=[],s=new Set,u=r.value,l=r.location;;){if(0===u.length){var d=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var p=this.tryParseDecimalInteger(o.EXPECT_PLURAL_ARGUMENT_SELECTOR,o.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;l=L(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}if(s.has(u))return this.error("select"===t?o.DUPLICATE_SELECT_ARGUMENT_SELECTOR:o.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===u&&(a=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?o.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:o.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,L(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(e+1,t,n);if(m.err)return m;var h=this.tryParseArgumentClose(f);if(h.err)return h;c.push([u,{value:m.val,location:L(f,this.clonePosition())}]),s.add(u),this.bumpSpace(),u=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===c.length?this.error("select"===t?o.EXPECT_SELECT_ARGUMENT_SELECTOR:o.EXPECT_PLURAL_ARGUMENT_SELECTOR,L(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(o.MISSING_OTHER_CLAUSE,L(this.clonePosition(),this.clonePosition())):{val:c,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var c=L(r,this.clonePosition());return o?z(i*=n)?{val:i,err:null}:this.error(t,c):this.error(e,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=J(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if($(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&oe(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function ne(e){return e>=97&&e<=122||e>=65&&e<=90}function re(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function oe(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function ie(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function ae(e){e.forEach((function(e){if(delete e.location,p(e)||f(e))for(var t in e.options)delete e.options[t].location,ae(e.options[t].value);else u(e)&&g(e.style)||(l(e)||d(e))&&v(e.style)?delete e.style.location:h(e)&&ae(e.children)}))}function ce(e,t){void 0===t&&(t={}),t=r({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new te(e,t).parse();if(n.err){var i=SyntaxError(o[n.err.kind]);throw i.location=n.err.location,i.originalMessage=n.err.message,i}return(null==t?void 0:t.captureLocation)||ae(n.val),n.val}},93243:(e,t,n)=>{var r=n(56110),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},93290:(e,t,n)=>{e=n.nmd(e);var r=n(9325),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,c=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=c?c(n):new e.constructor(n);return e.copy(r),r}},93564:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var r,o=n(72189),i=n.n(o),a=n(6199).Ay.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=i()([""])))},93575:(e,t,n)=>{"use strict";n.d(t,{Tu:()=>d,WV:()=>u,rV:()=>l,xH:()=>p});var r=n(21259),o=n.n(r),i=n(26396),a=n.n(i);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){a()(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 u=Object.freeze({MODULES:"modules",COMPLETE:"complete",SETTINGS:"settings",SYSTEM:"system"}),l=function(e,t){var n=e?".".concat(e):"";return"admintree".concat(n,".").concat(t,".collapsed")},d=function(e,t,n){return e&&0!==e.length?e.reduce((function(e,r){var o=r.name,i=r.children&&r.children.length>0,c=t?"".concat(t,"."):"",u=d(r.children||[],"".concat(c).concat(o),n),p=l(t,o);return s(s(s({},e),u),i?a()({},p,n):{})}),{}):{}},p=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=e.map((function(e){var o=(n[e.menuType]||{}).filterAttributes,i=function(e,n){return t?n.find((function(n){return e[n]&&e[n].toLowerCase().includes(null==t?void 0:t.toLowerCase())})):void 0}(e,void 0===o?[]:o),a=Boolean(i),c=p(e.children||[],t,n,r+1,a);return s(s({},e),{},{matchingAttribute:i,children:c,level:r,isExactMatch:a&&e[i].toLowerCase()===(null==t?void 0:t.toLowerCase())})})).filter((function(e){var n;return!t||e.matchingAttribute||(null===(n=e.children)||void 0===n?void 0:n.length)>0||i}));return t&&a.sort((function(e,t){var n;return null===(n=e.label)||void 0===n?void 0:n.localeCompare(t.label)})),[].concat(o()(a.filter((function(e){return e.isExactMatch}))),o()(a.filter((function(e){return!e.isExactMatch}))))}},93600:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r,o=n(26396),i=n.n(o),a=n(58156),c=n.n(a),s=n(73082),u=n(90125),l=n(444),d=n(4883),p=n.n(d),f=n(21259),m=n.n(f),h=n(56375),g=n(74848);const v=function(){return r||(r=(0,g.jsx)(h.Ay.Span,{breakWords:!1,children:"; "}))};var y=["multi-select-box","multi-remote-field","search-filter","pseudo-multi-document"],b=function(e,t){return Array.isArray(e)&&!y.includes(t)},w=function(e){return e.reduce((function(e,t,n){return[].concat(m()(e),m()(e.length>0?[(0,g.jsx)(v,{},"sep".concat(n))]:[]),[t])}),[])};const x=function(e){var t=e.fieldMappingType,n=e.formName,r=e.formField,o=e.entityField,i=e.value,a=e.info,c=e.events,s=e.formData,l=r.dataType||r.componentType,p=(0,d.useMemo)((function(){return u.A.factory(t,l)}),[t,l]);return b(i,r.dataType)?w(i.map((function(e,i){return(0,g.jsx)(p,{formField:r,entityField:o,formName:n,mappingType:t,value:e,info:a,events:c,formData:s},"valueField-"+r.id+i)}))):(0,g.jsx)(p,{formField:r,entityField:o,formName:n,mappingType:t,value:i,info:a,events:c,formData:s})};var O=n(2493);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const E=function(e){var t=e.typeEditable,n=e.value,r=e.formData,o=e.formField,i=e.dirty,a=e.error,c=e.children,s=(null==t?void 0:t.hasValue)?t.hasValue({formValues:r.formValues,formField:o,value:n}):null!=n&&!1!==n&&(void 0===n.length||n.length>0);return(0,g.jsx)(O.A,S(S({},e),{},{dirty:r.isDirty||i,error:r.errors||a,hasValue:s,children:p().cloneElement(c,{formData:r})}))};var j;function A(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?A(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var T=["display","description"];const _={FormField:function(e){var t=e.fieldMappingType,n=e.data,r=e.resources,o=void 0===r?{}:r;try{var i,a,d=n.formDefinitionField,p=n.entityField,f=n.entity,m=n.id,h=n.value,v=n.dirty,y=n.touched,w=n.events,O=n.error,k=n.submitting,S=n.parentReadOnly,A=n.formName,_=n.entityModel,D=n.mode,C=n.labelPosition,I=d.componentType,R=d.dataType,M=d.readonly,N=S||M||k||!c()(p,"writable",!0),L=function(e,t,n,r){return!!r||!!T.includes(t)||!!b(e,n)}(h,I,R,S),F=d.dataType||d.componentType,H=null===(i=u.A.editableComponentConfigs[t])||void 0===i?void 0:i[F];"create"!==D&&H&&H.isReadOnly&&(N=N||H.isReadOnly({formField:d,entity:f})),H&&H.dataContainerProps&&(a=H.dataContainerProps({formField:d,formName:A}));var B=c()(d,"validation.mandatory",!1);H&&H.getMandatoryValidation&&(B=H.getMandatoryValidation({formField:d})||!1);var U=!N&&B&&"search"!==D,V=H&&H.fixLabel&&H.fixLabel();return(0,g.jsx)(l.A.FormDataContainer,P(P({entityModel:_},a),{},{children:(0,g.jsx)(E,{typeEditable:H,dirty:v,error:O,value:h,id:m,immutable:N||T.includes(I),isDisplay:L,label:d.label,mandatory:U,mandatoryTitle:o.mandatoryTitle,touched:y,fixLabel:V,formField:d,labelPosition:d.labelPosition||C,children:(0,g.jsx)(x,{fieldMappingType:L?"readOnly":t,formName:A,formField:d,entityField:p,value:h,info:{id:m,readOnly:N,mandatory:U},events:w})},m)}))}catch(e){return s.A.logError("Error creating formField",e),j||(j=(0,g.jsx)("span",{}))}},MultipleFieldsSeparator:v,isMultipleFields:b,enhanceMultipleFieldsWithSeparators:w}},93610:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default,e.exports.default=t.default},93663:(e,t,n)=>{var r=n(41799),o=n(10776),i=n(89578);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},93736:(e,t,n)=>{var r=n(51873),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},94200:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={defaultTheme:{name:"default",colors:{paper:"#fff",primary:"#b22a31",primaryLight:"#d13e45",secondary:"#263e5b",secondaryLight:"#347da9",secondaryLighter:"#4fade5",text:"#000",textLight:"#595959",textLighter:"#8c8c8c",textDisabled:"#bcbcbc",textLabel:"#121212",textToaster:"#fcfcfc",textPopover:"#fcfcfc",backgroundBody:"#dee6ed",backgroundBreadcrumbs:"#dee6ed",backgroundPopover:"#424242",backgroundItemHover:"#e6e6e6",backgroundItemSelected:"#ccc",backgroundItemLastOpened:"#B9B9B9",backgroundTableEvenRow:"#f2f2f2",backgroundTableTiles:"#f2f2f2",backgroundScrollbar:"#999",backgroundScrollbarHover:"#808080",backgroundPanelHeaderFooter:"#f2f2f2",backgroundTypographyCode:"#e6e6e6",backgroundToccoCircleProduction:"#b22a31",backgroundToccoCircleTest:"#263e5b",backgroundBurgerMenuBars:"#fff",backgroundMultiValue:"#e6e6e6",backgroundUploadArea:"#f2f2f2",backgroundUploadOverlay:"#0000ff1a",backgroundConflict:"#f2f2f2",hoverInteractiveIcon:"#263e5b",loadingSpinner:"#000",breadcrumbsActive:"#b22a31",border:"#ccc",borderTable:"#ccc",borderLight:"#ededed",borderSelect:"#027cc1",signal:{danger:"#961b1b",dangerLight:"#e77c7c",info:"#027cc1",infoLight:"#78cdfe",success:"#337f37",successLight:"#91d395",warning:"#ec8a00",warningLight:"#ffd7a0",neutral:"#dee6ed"}},fontFamily:{monospace:"Ubuntu Mono, monospace",regular:"Ubuntu, sans-serif",url:"https://fonts.googleapis.com/css?family=Ubuntu+Mono:300,500|Ubuntu:300,500&display=swap"},fontSize:{base:1.3,factor:1.1},fontWeights:{regular:300,bold:500},lineHeights:{dense:1,light:1.2,regular:1.4},radii:{statusLabel:"8px",button:"13px",buttonLarge:"25px",form:0,dashboard:0,modal:0,toaster:"8px",menu:0,small:"4px"},space:{base:1.3,factor:2},specificProperties:{actionBarStickyTopPosition:0},codeEditorTheme:"textmate",diffViewerDarkTheme:!1,diffViewer:{codeFoldGutterBackground:"#e6e6e6",codeFoldBackground:"#f2f2f2",gutterBackground:"#f2f2f2",diffViewerTitleBackground:"#fff",diffViewerTitleBorderColor:"#fff",emptyLineBackground:"#fcfcfc",addedBackground:"#cbffce",addedColor:"#24292e",removedBackground:"#ffbfbf",removedColor:"#24292e",wordAddedBackground:"#91d395",wordRemovedBackground:"#e77c7c",addedGutterBackground:"#91d395",removedGutterBackground:"#e77c7c"}},darkTheme:{name:"dark",colors:{paper:"#212330",primary:"#b22a31",primaryLight:"#d13e45",secondary:"#6eafff",secondaryLight:"#82baff",secondaryLighter:"#9ECAFF",text:"#dfdfdf",textLight:"#bdbdbd",textLighter:"#818181",textDisabled:"#7a7a7a",textLabel:"#121212",textToaster:"#000",textPopover:"#fff",backgroundBody:"#2C2F41",backgroundBreadcrumbs:"#2C2F41",backgroundPopover:"#757575",backgroundItemHover:"#444",backgroundItemSelected:"#565656",backgroundItemLastOpened:"#636363",backgroundTableEvenRow:"#2f2f2f",backgroundTableTiles:"#2f2f2f",backgroundScrollbar:"#444",backgroundScrollbarHover:"#666",backgroundPanelHeaderFooter:"#444",backgroundTypographyCode:"#444",backgroundToccoCircleProduction:"#b22a31",backgroundToccoCircleTest:"#263e5b",backgroundBurgerMenuBars:"#fff",backgroundMultiValue:"#6e6e6e",backgroundUploadArea:"#2d2d2d",backgroundUploadOverlay:"#0000ff1a",backgroundConflict:"#2d2d2d",hoverInteractiveIcon:"#fff",loadingSpinner:"#cccccc",breadcrumbsActive:"#82baff",border:"#666",borderTable:"#666",borderLight:"#444",borderSelect:"#4fade5",signal:{danger:"#d74444",dangerLight:"#f18888",info:"#4fade5",infoLight:"#9ce6ff",success:"#4DAC54",successLight:"#72c172",warning:"#ec8a00",warningLight:"#ffcc84",neutral:"#CECECE"}},fontFamily:{monospace:"Ubuntu Mono, monospace",regular:"Ubuntu, sans-serif",url:"https://fonts.googleapis.com/css?family=Ubuntu+Mono:300,500|Ubuntu:300,500&display=swap"},fontSize:{base:1.3,factor:1.1},fontWeights:{regular:300,bold:500},lineHeights:{dense:1,light:1.2,regular:1.4},radii:{statusLabel:"8px",button:"13px",buttonLarge:"25px",form:0,dashboard:0,modal:0,toaster:"8px",menu:0,small:"4px"},space:{base:1.3,factor:2},specificProperties:{actionBarStickyTopPosition:0},codeEditorTheme:"dracula",diffViewerDarkTheme:!0,diffViewer:{diffViewerBackground:"#212330",codeFoldGutterBackground:"#444",codeFoldBackground:"#2f2f2f",gutterBackground:"#2f2f2f",diffViewerTitleBackground:"#212330",diffViewerTitleBorderColor:"#212330",emptyLineBackground:"#2f2f2f",diffViewerColor:"#dfdfdf",addedBackground:"#217a28",addedColor:"#dfdfdf",removedBackground:"#b92e2e",removedColor:"#dfdfdf",wordAddedBackground:"#35913c",wordRemovedBackground:"#d74444",addedGutterBackground:"#35913c",removedGutterBackground:"#d74444"}}}},94394:(e,t,n)=>{var r=n(43360),o=n(42e3),i=Object.prototype.hasOwnProperty,a=o((function(e,t,n){i.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=a},94674:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(26396),o=n.n(r),i=n(22056),a=n.n(i),c=n(36376),s=n(34743),u=n(80938),l=n(4883),d=n(81845),p=n(12450),f=n(62764),m=n(99978),h=n(64116),g=n(5975),v=n(8634),y=n(74848);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){o()(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}const x=function(e){var t=e.onOpen,n=e.children,r=e.onClick,o=e.buttonProps,i=e.label,b=e.icon,x=(0,l.useState)(null),O=a()(x,2),k=O[0],S=O[1],E=(0,l.useState)(!1),j=a()(E,2),A=j[0],P=j[1],T=(0,l.useState)(!1),_=a()(T,2),D=_[0],C=_[1],I=function(){P(!A),t&&!D&&(t(),C(!0))},R=function(){P(!1)},M=A?"chevron-up":"chevron-down",N=(0,c.we)({open:A,onOpenChange:P,placement:"bottom-start",middleware:[(0,s.cY)(5),(0,s.UU)(),(0,s.Ej)({apply:function(e){var t=e.availableHeight;(0,d.flushSync)((function(){return S(t-15)}))}})],whileElementsMounted:u.ll}),L=N.refs,F=N.floatingStyles,H=N.context,B=(0,c.kp)(H),U=(0,c.s9)(H),V=(0,c.bv)([B,U]),W=V.getReferenceProps,z=V.getFloatingProps;return r?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(p.A,w(w({ref:L.setReference},W()),{},{children:[(0,y.jsx)(f.A,w(w({},o||{}),{},{onClick:r,label:i,"data-cy":e["data-cy"],icon:b})),(0,y.jsx)(v.qn,w(w({icon:M,onClick:I},o||{}),{},{"data-cy":"btn-buttonmenu-open"}))]})),A&&(0,y.jsx)(m.A,{floatingStyles:w(w({},F),{},{maxHeight:k}),getFloatingProps:z,refs:L,isOpen:A,onClose:R,children:n})]}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(f.A,w(w(w({"data-cy":e["data-cy"]},o||{}),{},{ref:L.setReference},W()),{},{onClick:I,icon:b,children:[(0,y.jsx)(g.Bd,{children:i}),(0,y.jsx)(v.o0,{children:(0,y.jsx)(h.A,{icon:M})})]})),A&&(0,y.jsx)(m.A,{floatingStyles:w(w({},F),{},{maxHeight:k}),getFloatingProps:z,refs:L,isOpen:A,onClose:R,children:n})]})}},95950:(e,t,n)=>{var r=n(70695),o=n(88984),i=n(64894);e.exports=function(e){return i(e)?r(e):o(e)}},96131:(e,t,n)=>{var r=n(2523),o=n(85463),i=n(76959);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},96372:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},96374:(e,t,n)=>{var r=n(23490);e.exports=function(e){if(Array.isArray(e))return r(e)}},96424:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(26396),o=n.n(r),i=n(22056),a=n.n(i),c=n(4883),s=n.n(c);function u(e,t){var n=(0,c.useState)(e),r=a()(n,2),o=r[0],i=r[1];return(0,c.useEffect)((function(){var n=setTimeout((function(){i(e)}),t);return function(){clearTimeout(n)}}),[e,t]),[o,i]}var l=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 p(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 f=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,i){var s=r.value,d=(0,c.useState)(s),f=a()(d,2),m=f[0],h=f[1],g=u(m,t),v=a()(g,2),y=v[0],b=v[1],w=(0,c.useRef)(s),x=r[n];return(0,c.useEffect)((function(){m!==s&&m===y&&(h(s),w.current=s,b(s))}),[s]),(0,c.useEffect)((function(){x&&w.current!==y&&(x(y),w.current=y)}),[y,x]),(0,l.jsx)(e,p(p(p({},r),{},{value:m},o()({},n,h)),{},{ref:i}))}))};var m=n(81570);const h={useAutofocus:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return(0,c.useEffect)((function(){if(!t.disabled&&e.current&&!(0,m.i)()){if(t.selectFulltextFields){var n=e.current.querySelector('input[id$="txtFulltext"]:not([disabled])');if(n)return void n.focus()}var r=e.current.querySelector('input[type="text"]:not([disabled]), input[type="search"]:not([disabled]), textarea:not([disabled])');r&&setTimeout((function(){r.focus()}),0)}}),n)},useDebounce:u,Debouncer:f,useUserActive:function(e){var t=(0,c.useRef)(null),n=(0,c.useState)(null),r=a()(n,2),o=r[0],i=r[1],s=(0,c.useCallback)((function(){o>0&&(t.current=setTimeout((function(){e()}),o))}),[o,e]),u=(0,c.useCallback)((function(){t.current&&clearTimeout(t.current)}),[]);return(0,c.useEffect)((function(){return u(),window.addEventListener("mousemove",s,{once:!0}),window.addEventListener("touchstart",s,{once:!0}),function(){u()}}),[u,s]),[i,u,s]},usePrevious:function(e){var t=(0,c.useRef)();return(0,c.useEffect)((function(){t.current=e}),[e]),t.current},useDidUpdate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,c.useRef)(!1);(0,c.useEffect)((function(){n.current?e():n.current=!0}),t)},useResizeObserver:function(){var e=(0,c.useState)(),t=a()(e,2),n=t[0],r=t[1],o=(0,c.useRef)(),i=(0,c.useCallback)((function(e){if(Array.isArray(e)){var t=e[0];r(t.contentRect)}}),[]),s=(0,c.useCallback)((function(e){e&&(o.current=new ResizeObserver((function(e){return i(e)})),o.current.observe(e))}),[i]);return(0,c.useEffect)((function(){return function(){o.current&&(o.current.disconnect(),o.current=null)}}),[]),[s,n]}}},97420:(e,t,n)=>{var r=n(47422),o=n(73170),i=n(31769);e.exports=function(e,t,n){for(var a=-1,c=t.length,s={};++a<c;){var u=t[a],l=r(e,u);n(l,u)&&o(s,i(u,e),l)}return s}},97699:(e,t,n)=>{"use strict";n.d(t,{A:()=>de});var r,o,i="tocco-util/LOG_ERROR",a=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:i,payload:{title:e,description:t,error:n,dateTime:r}}},c=n(38798),s=n(71468),u=n(82274),l=n.n(u),d=n(65044),p=n.n(d),f=n(65611),m=n.n(f),h=n(18337),g=n.n(h),v=n(56994),y=n.n(v),b=n(4883),w=n(58065),x=n(72189),O=n.n(x),k=n(6199),S=n(85431),E=n(57488),j=n(26166),A=k.Ay.div.withConfig({displayName:"StyledWrapper"})(r||(r=O()(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,S.A)(),(function(e){return e.theme.colors.signal.danger}),E.t7.color("paper"),j.A.space(-.5)),P=n(74848);const T=function(){return o||(o=(0,P.jsx)(A,{children:(0,P.jsx)(w.A,{id:"client.component.errorBoundary.text"})}))};var _;function D(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(D=function(){return!!e})()}var C=function(e){function t(e){var n;return l()(this,t),(n=function(e,t,n){return t=g()(t),m()(e,D()?Reflect.construct(t,n||[],g()(e).constructor):t.apply(e,n))}(this,t,[e])).state={hasError:!1,error:null},n}return y()(t,e),p()(t,[{key:"componentDidCatch",value:function(e){var t=this.props,n=t.logError,r=t.intl;n(r.formatMessage({id:"client.component.errorBoundary.notificationTitle"}),r.formatMessage({id:"client.component.errorBoundary.notificationDescription"}),e)}},{key:"render",value:function(){return this.state.hasError?_||(_=(0,P.jsx)(T,{})):this.props.children||null}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}])}(b.Component);const I=C;var R={logError:a};const M=(0,s.Ng)(null,R)((0,c.Ay)(I));var N=n(98671),L=n(21259),F=n.n(L),H=n(26396),B=n.n(H);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 V(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){B()(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 W=B()({},i,(function(e,t){var n=t.payload,r=n.title,o=n.description,i=n.error,a=n.dateTime;return V(V({},e),{},{messages:[{title:r,description:o,error:i,dateTime:a}].concat(F()(e.messages)).slice(0,100)})})),z={messages:[]};function q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z,t=arguments.length>1?arguments[1]:void 0,n=W[t.type];return n?n(e,t):e}var Y=n(92207),$=n.n(Y),G=n(43786),K=n(6730),J=n(73082),X=$().mark(Q);function Q(e,t,n){return $().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,G.T1)(J.A.logError,"".concat(e,": \n").concat(t,"\n"),n);case 2:case"end":return r.stop()}}),X)}var Z=n(10822),ee=$().mark(te);function te(e,t,n){var r;return $().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,G.T1)(Z.A.toaster,{type:"error",title:e,body:t});case 2:return r=n.sent,n.next=5,(0,G.yJ)(r);case 5:case"end":return n.stop()}}),ee)}var ne=n(28186),re=$().mark(oe);function oe(e,t,n){return $().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,G.T1)(ne.A.logException,n);case 2:case"end":return e.stop()}}),re)}const ie={console:Q,notification:te,remote:oe};var ae=$().mark(se),ce=$().mark(le);function se(e,t){return $().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e){n.next=5;break}return n.next=3,(0,G.jP)(i,ue,t);case 3:n.next=7;break;case 5:return n.next=7,(0,G.jP)(i,le);case 7:case"end":return n.stop()}}),ae)}function ue(e,t){var n=t.payload;return $().mark((function t(){var r,o,i;return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.title,o=n.description,i=n.error,t.next=3,(0,G.Q7)(e.map((function(e){return(0,G.T1)(ie[e],r,o,i)})));case 3:case"end":return t.stop()}}),t)}))()}function le(e){return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,G.yJ)(K.A.emitAction(e));case 2:case"end":return t.stop()}}),ce)}const de={logError:a,addToStore:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t&&N.A.injectReducers(e,{errorLogging:q}),e.sagaMiddleware.run(se,t,n)},ErrorBoundary:M}},97825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},97932:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(4883)),o=c(n(87695)),i=c(n(21572)),a=c(n(81438));function c(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function l(){return l=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},l.apply(this,arguments)}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 p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e){return function(){var t,n=h(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()){var r=h(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return m(e)}(this,t)}}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(s,e);var t,n,o,c=f(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return v(m(e=c.call.apply(c,[this].concat(n))),"storeHighlightedItemReference",(function(t){e.props.onHighlightedItemChange(null===t?null:t.item)})),e}return t=s,n=[{key:"shouldComponentUpdate",value:function(e){return(0,a.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,o=t.itemProps,a=t.renderItem,c=t.renderItemData,s=t.sectionIndex,u=t.highlightedItemIndex,p=t.getItemId,f=t.theme,m=t.keyPrefix,h=null===s?m:"".concat(m,"section-").concat(s,"-"),g="function"==typeof o;return r.default.createElement("ul",l({role:"listbox"},f("".concat(h,"items-list"),"itemsList")),n.map((function(t,n){var m=0===n,y=n===u,b="".concat(h,"item-").concat(n),w=g?o({sectionIndex:s,itemIndex:n}):o,x=function(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){v(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}({id:p(s,n),"aria-selected":y},f(b,"item",m&&"itemFirst",y&&"itemHighlighted"),{},w);return y&&(x.ref=e.storeHighlightedItemReference),r.default.createElement(i.default,l({},x,{sectionIndex:s,isHighlighted:y,itemIndex:n,item:t,renderItem:a,renderItemData:c}))})))}}],n&&p(t.prototype,n),o&&p(t,o),s}(r.Component);t.default=y,v(y,"propTypes",{items:o.default.array.isRequired,itemProps:o.default.oneOfType([o.default.object,o.default.func]),renderItem:o.default.func.isRequired,renderItemData:o.default.object.isRequired,sectionIndex:o.default.number,highlightedItemIndex:o.default.number,onHighlightedItemChange:o.default.func.isRequired,getItemId:o.default.func.isRequired,theme:o.default.func.isRequired,keyPrefix:o.default.string.isRequired}),v(y,"defaultProps",{sectionIndex:null})},98166:(e,t,n)=>{"use strict";n.d(t,{O5:()=>o,O9:()=>a,Yd:()=>r,lW:()=>i});var r=function(e){return e&&Array.isArray(e)?e.length>0?e[0]:[]:e},o=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},i=function(e){return navigator.clipboard?navigator.clipboard.writeText(e):Promise.reject(new Error("navigator.clipboard API not available"))},a=function(e){return null!=e}},98671:(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var r=n(26396),o=n.n(r),i=n(63560),a=n.n(i);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}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 l(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 d=n(66245),p=n.n(d),f=n(44383),m=n.n(f),h=n(14644);function g(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y=function(e,t){var n=v(v({},e.allReducers),t),r=(0,h.HY)(n);e.replaceReducer(r),e.dispatch({type:"replaceReducer"}),e.allReducers=n};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,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 x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const O={addToObjectReducer:function(e,t,n){return function(r,i){var c=i.payload,u=c[e],l=c[t],d=s({},r),p=s(s({},r[n]),{},o()({},u,l));return a()(d,n,p),d}},singleTransferReducer:function(e,t){return function(n,r){var i=r.payload[e],c=function(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){o()(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}({},n);return a()(c,t?t+"."+e:e,i),c}},mappingTransferReducer:function(e,t){return function(n,r){var i=r.payload[e];return l(l({},n),{},o()({},t,i))}},injectReducers:function(e,t){var n=p()(Object.keys(t),Object.keys(e.allReducers));if(n.length>0){var r=v(v({},e.allReducers),m()(t,n));y(e,r)}},hotReloadReducers:y,toggleReducer:function(e){return function(t){return x(x({},t),{},o()({},e,!t[e]))}}}},99208:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(26396),o=n.n(r),i=n(85735),a=n.n(i),c=n(81792),s=n(60115),u=n(19383);function l(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?l(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p={method:"GET",credentials:"include"},f=function(e){var t=function(e){if(e){if(e instanceof Headers)return e;if("object"===a()(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",u.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},m=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)};const h={prepareHeaders:f,prepareUrl:m,executeRequest:function(e){var t=function(e){return d(d(d({},p),e),{},{headers:f(e)})}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=s.A.getBackendUrl(),r=m(n,e);return fetch(r,t)},extractBody:function(e){return e.json()}}},99374:(e,t,n)=>{var r=n(54128),o=n(23805),i=n(44394),a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=c.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},99978:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(26396),o=n.n(r),i=n(36376),a=n(4883),c=n.n(a),s=n(44518),u=n(8634),l=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 p(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 f=function(e){var t=e.floatingStyles,n=e.getFloatingProps,r=e.refs,o=e.isOpen,a=e.onClose,d=e.children;return o?(0,l.jsx)(u.X7,{children:d&&o&&(0,l.jsx)(i.XF,{children:(0,l.jsx)(u.WB,p(p({ref:r.setFloating,style:t},n()),{},{className:s.e,children:c().Children.map(d,(function(e){return e&&c().cloneElement(e,{onClose:a})}))}))})}):null}}},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=a,s.amdD=function(){throw new Error("define cannot be used indirect")},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);s.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,s.d(o,i),o},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,n)=>(s.f[n](e,t),t)),[])),s.u=e=>"chunk-"+({4672:"phone-formatter",36916:"vendor-icons",49222:"vendor-libphonenumber-js",54236:"actions",54310:"vendor-fontawesome",61556:"docs-actions",71262:"html-editor",83722:"code-editor"}[e]||e)+"."+{311:"3a2ef75736f020823621",662:"1e071783464625383e06",850:"7b50ccc456ce0d3f691c",996:"eeb94974c5f352591e56",1207:"954ba428494ddad76aa2",1216:"8d87154ddf7acd7d314e",1221:"cc0851018d102b415e48",1234:"70831f512a53a8165313",1325:"85c256911af5f9601123",1361:"22ddea6c529cb70f8a72",1496:"e3f50a20d72ebf28467e",1655:"27eb9bdfb254163b399b",1702:"89213ec1ccb26d0f4e93",1766:"a4f2beda1b6506f727ed",2045:"9911db2852a14f00ea4c",2070:"391bbc0c82bcc0341fb2",2451:"def110be1926bdb25dae",2540:"029b81d412c14127ea28",2586:"ba7033c70c79e44930a0",2682:"8010aa4d68674e40caca",3082:"0882c1f38f3554a7902e",3459:"6de3dd8792695d15d49d",4139:"942d36ab3cf73f4cb016",4490:"0b1707d0ae14ee9e2081",4672:"9b68500db8b6e528d3b2",5243:"2d27818a25f756d61239",5318:"349510267268bf9a32b0",5438:"4712bedde082a2d70749",5575:"7dd3ad4d5c38ba50ae68",5817:"4cfd4d6d86e495c09e97",6041:"d2bcc7429c00fe07fde0",6147:"3f6315abc1c70575c151",6396:"5428cb2b91eb2b3cadc4",6644:"2f2891d33d657f6e331a",6893:"5bfe3fc282ff9319dfbe",7313:"ba3d8ea43b02b1c0abf6",7625:"ed30dbac12e13b990b01",7668:"80a8c69dedc9733a9e4c",7743:"7282f9c3d18be78ab2fd",7802:"e69e9566cb793f546130",7989:"3c3da3dbe144ca92a363",8007:"6c0ce5e8d499eb1e816b",8171:"116d75164da513412385",8504:"4c915b92b2090faa635b",8676:"bc4072f84a710e8525f2",8818:"3d101c8ddfd3166fac41",8992:"c7bab3c8c4dc2374f47c",9017:"2de1ea241ea6c5df0cc7",9561:"f88bf32564a10aaad678",9603:"d7159316057e1974e985",9753:"0555726f00ecd1e17401",10012:"681629f07022aed251d5",10472:"d918e4b82cf106f1104c",10499:"f4e23d482ed3b573c2c1",10655:"ca0023b02d3b19fdffe7",10910:"4d19dc906ee393584c75",10927:"c2769b2cac971eebbcf7",11211:"c8c66707bc7f67555a74",11239:"931af64854892c38ac68",11281:"7a33daee4bda0df4cd47",11788:"0c93e11a7f2346d98025",11842:"0afdbbc6b39ebad435b0",13081:"584816abda676718811f",13093:"9b5e36e92ecf40520bbc",13124:"0bfc9a2b52e5e14f6428",13419:"bcf05700ca13391b1991",13452:"6d7e811ff1da432dbdc8",13622:"9aa25a6d665e9cef6ea5",14291:"02163e9969b5e0a5cdec",14527:"ab19f6738abd561a5b56",14663:"5c151b04de5071a18a41",14879:"8dc4d6c8e17b3b044395",14973:"c023d1f7f8558c4851a6",15028:"8351b3924428d689ea8e",15197:"d347bed7cd56fbc3cc16",15692:"353533ddb94de458d6dd",15802:"a14d0994f1878d93b02b",15898:"5ef8c3fc581f658e951d",16334:"44c9b1cb89999e648990",17e3:"2120e21d6507bf980ab3",17076:"e6aaf79e89e468444fba",17247:"5a809b901732c9cc13dd",17380:"b08fce7f8b22622cf0e0",18334:"9cf700323e3105dd78fa",18410:"db9a27f907b62af3ea2e",18849:"9fe1d6f6c74045df7b0a",19217:"dc5c774a1191eec9aa7c",19249:"ca4985816a168248bd16",19557:"3bbb84f09d7bede451b6",19588:"34fb1a6be75f571e53f6",19786:"8f4b6a51ee2a0e1b6fe4",19956:"7b88f7abd11773784ef1",20009:"23612b9eec9f1eece2de",20047:"2ffb92a7cbc98b72c42f",20132:"f1b8ad36bc61dadcab6d",20360:"220d25e354a8a86644d5",20454:"361f71fbeef63542bc95",20592:"7f4fcbbc0399b4275e93",20659:"a7a096dc82933eca2563",21137:"6547441fe72ccb52c982",21323:"1968ace91543594a8a24",21843:"35e0fa6ef22976f83818",21901:"017a7d851206927981ed",22030:"94cfb84c510d3a83f526",22584:"1f23384c966a11069676",22981:"3b1d961092c96aceb1c4",23097:"281903005fdc00e37d6a",23257:"aee6d43f61eed26ff5f2",23407:"0476c98875a81eecd3d0",24364:"7f2184db39674b2ec4fa",24499:"829bbf8d3ace43810fcc",24522:"7e5209692391c3ec9426",24854:"8023d60d6f762afca5a9",25181:"33623dc429615558c11e",25395:"7c31380e172f57c95904",25501:"118c6adabbd11418203a",25637:"425c3baddfadf100d01c",26051:"7c917d20c16bc6155f1d",26332:"4a1e1acf725e1e2e9749",26528:"96b7fe032872005880f9",26605:"113f3085bf13afb6d7c1",26820:"80118a4f794f2950b990",27136:"794d269426533f9b6056",27211:"d35dd350a83dda301284",27230:"533297fc00aa159ccc7f",28507:"87576738767ca98ffeb6",28586:"527d3c09d0baa976c9cd",28734:"ddc0ee5d5d57f9faec28",28797:"942e725bf18dedece04d",29067:"2a7b079be04dd8161f13",29072:"9ed41e42c500d3dc5514",29369:"57ff827b0723b157b5be",29435:"f3967e8ad52d48a61cbc",29694:"2f6ac0921ea1f61db1bf",29755:"0a432a407c58935ea8f1",29861:"f1c97b00b39cdb6f4429",29954:"a92bcb3f1ea6f83233a9",30470:"fe5fd56b2156e5f54263",30486:"54a0daff8be3e87f90f3",30766:"91f893495b23a85b6a57",30897:"f66ebafd4afd4132fa8e",31001:"7276b3071c35a98ffe28",31131:"e184463b776e5cbedabe",31255:"6dfc5e9ee00fa2ccc549",31570:"7ebb3e0cb03d7b728af9",31600:"f05bf28a1ce0bb919ea5",31723:"dbf28bf65ee1c27b8624",31835:"1ce49e5d1e5e7a106f0c",32123:"7b7375f0740ab042bdb6",32499:"76402651f6fe823e633c",32521:"454218afaa268f223667",32725:"7ab53a80eda627ae55e3",33204:"18bf0281536cb4775ea5",33227:"9f07a6af3b58d4cf6089",33366:"87586827bd89c54c869d",33537:"f0c37505014cfef7b4bf",33688:"85552e80eb7ad2395251",34048:"4b07dcf0f11cc5a56611",34163:"ac01856de5629ed15eb0",34675:"ca3ee8b1c6a373525d0c",34817:"d1e681fa4ada1f557f6c",34869:"977387e8de02c3149979",34916:"26d27f667613fff61dc5",35173:"9e01cdb034a598432421",36032:"25945f3c4b3091f7f451",36086:"9e8a5968e615cdfd5a19",36627:"b2c590ab0ff396fd5d8f",36763:"fb693e3a051f85a55b32",36788:"fcf0977a7415e9e71b80",36916:"9884f01eecc1bf5178ba",37210:"bd735e2c0d30481995f7",37551:"e421ace50123ffb37df6",37633:"0de211c766b758cacc75",37856:"42db9dc75b482a88eb23",37887:"28387b752a85f2342804",38223:"d777d8eff15b0e246bf7",38297:"53a3453f50c57f814243",38470:"ecae061476b0e315341b",38506:"23188d1407d62002da0c",38749:"791f429a7dd726d5db8c",38848:"a0c89acdaa449fd5d5c6",38909:"e374a04c0bbbc859c276",38918:"b14815ad2e5929c7ea57",39417:"ac6da3a0ae0841797829",39669:"22db06884f46ff736616",39797:"44d69571d175ff7d934a",40426:"5aaf0307e7c01dd4fead",40975:"b32faf7cefa89711975e",41056:"32e735d8677c33a2f235",41170:"dda08589a6dc51ac9672",41293:"6e41355f4ffe30f4bc9d",42049:"ae0ea12584df5bade656",42206:"4dd35db825678d78a840",42482:"23d41595a5615c02823f",43158:"80349ed69548e5e8f29e",43317:"2b2b71e0a7ce1e200323",43425:"12c797f0f18fd88e8326",43500:"64d799f9bef79afe9a9f",43636:"15757d370a80043bd9fa",44286:"3d2abf322e7d23ad4942",44330:"7ada5240ab4e77617f12",44417:"9cd6f008cdb35612fd68",44586:"53760a50317e665533a9",44753:"10813f4e18505e06b29a",44788:"1ba45f53a89cfa042d05",45010:"ef78245616d4a96c032b",45011:"bf8408a8b8decaff1bbd",45029:"731061e01816fb5a005c",45202:"40640cd294d732611671",45209:"164cf2112e30620fdfa5",45587:"981a050830f2a7503193",45601:"c2d11d42305306255d6e",45631:"2490d52e38f19d9baba9",45734:"8e398d792368597fc30f",45814:"cacb7a4c6359bd51d0f4",46116:"f8580c6e6dced0fac25f",46167:"293395302ceddb0a3ecf",46503:"53326e832b78ac480308",46623:"7502d50cced63b196e1b",46811:"808a78165bd80680b0a9",47026:"2040fd22c81251889b54",47075:"cd95df2f4fd6919591d7",47145:"80f640e8642e0149809b",47281:"09faee27b855d920f1aa",47387:"100c37fdfd90a9754fa9",47507:"41022024eb727ec2a330",47694:"cd0519cf27fefe66b9fc",47968:"b850caf98700c1ef5564",48077:"593fdf29f58ee3d107ff",48320:"13716925af6c9f6aa5ac",48331:"5c3881cb354c608b40c2",48575:"1b9cfe5bee1cd42866ab",48640:"5db1f23f2cb5e6e4f329",49159:"5725dbfd67fcdd23d4d0",49222:"eb92160cac2fe8a168fb",49343:"3a39bb51106de075bb71",49372:"57b29097f52ede453ed3",49392:"3dee3590bc62dc59e6f2",49808:"97d69316a2358ce390eb",50117:"fbe12eb28c49acfbb2ff",50152:"b0137d67132c8d88e59c",51004:"36292cf61a4c0a04b2dd",51057:"77004ea88466e20bfe9f",51150:"300f722cbd02d50520a4",51183:"6bc8ec96463bf5829b36",51199:"becad7852da81675aa1b",51287:"99cd21c80adf259158d6",51289:"ab56e128f00d690db781",51678:"6a77f142bdc14fe8db9c",51958:"2f968c972ad48359c9cd",52103:"915297731eab9f30f608",52602:"f702b6cf595373d4faab",53103:"aef3b226a24fa2624d34",53610:"6b849567a5ecdf065333",53611:"1d87e6788f2c44ccd03f",53840:"be4cc89950dc9e04f301",54176:"84228c858fa601872055",54236:"1d7dc4dfcc9d87506f9d",54310:"66966c364b84240317e6",54958:"955d74aa5587bc530930",55009:"fbd2cd9985a10aa9db56",55113:"f1df89f6ebf973e4aa42",55208:"a6edaabb19145672f68d",55263:"6900754f2ffc9816634f",55348:"574868161eb9ea0ce5ec",55677:"e00724bd7aaab362e111",55980:"8a5fbceb24bda09c63d3",56470:"f6dfa7591038df14046f",56742:"12deb026ddb0ba4044e8",56746:"82816c46476ad83b4bc9",57e3:"955755098aa9bb479825",57031:"2db499cc388ff688a518",57108:"a141b0f236bc84c74003",57186:"7ac39db15ee07b994be4",57217:"7289b4a2c001197b9ae1",57546:"8755d3a06d5496d1795e",57592:"803aaf88ff61f4dcb293",57936:"b1ce8c253b721c569e88",58045:"22807a07bd25e6bfe81e",58082:"2c6f3d39fab808278d99",58135:"262b2921455d6b54e1b4",58292:"f753bb52d6704f8275a3",58382:"48be7b63f3020c70bb5d",58424:"e4f8fc94386f68832afa",58444:"a011bfbcd5fc00f68326",58457:"9c179299059a351e6224",58485:"8f0138e369e31128bb60",58972:"d91795fcd48537ae4070",59287:"919ad8337742a2b2a402",59364:"dd6e47bc4f804f219005",59479:"7f95c54ef3c0ddc94a78",59517:"06209bd5d4d6e621b00b",59544:"4734a9f3feedb93e01c2",60240:"0cd5a939f3b4a92db1b9",60395:"90c0537985f4d0c0a4a1",60526:"582b52284473901cdbc4",60824:"1b1d49a578670e77b724",60871:"f259a9e96e50cb2cf339",61060:"f90d182f754925e67baa",61079:"e69dfcb1ca239cabcb8f",61305:"93d74f8dc8551da10209",61507:"94b02aac5cdeb93e7f3a",61532:"4be7324e3655c84a96b4",61556:"3c268ed6891e0492822f",61594:"8e0391442ec85609c630",61742:"bbc1a625877506d60a85",61777:"72b4beb92f17231ea529",62115:"c535b08f49d7ff8d454b",62308:"596ae36c54c9ace68c58",62429:"f2733a8df1ca4b6e818d",62459:"c126fb66c0b8851288c6",62575:"c31172e41e8d3660e4a5",62632:"d5a660f398a00e2db536",62797:"99693542a40b5e5a2d52",63112:"a058ba878b432d880d27",63135:"2800ccc6e0d504ca1bce",63419:"79b3922c21004e30052f",63471:"1d969c30e1dee77d0e37",63489:"57511351c4025767aa96",63767:"bb5f8bab385649f77dff",63780:"35b44d5022d72c5b7d59",64025:"f43ac98659c5886a501f",64108:"05e85d5ac8089d51bb32",64190:"f2fc85b287029e2b79a5",64309:"75b784230d3bd6a31b14",64420:"dcbde7d3971882d733bd",64442:"d88eb55dbfa019dbb752",64570:"bfade853a3a92ff6551f",64660:"9d56a90389b3f7510880",65111:"bb0fda6c10b56786f675",65320:"db5d2c82716407c43bfe",65408:"96eff9f94e048ef131a5",65559:"44a654ced109ca389843",66181:"5d20a89a6c7f7a8435be",66448:"bc520e0603ebd17affeb",66565:"8879572db0eea43a6696",66656:"d9f54160cb0d1284d3f6",66796:"ee58c1684f3d00caf5b5",66885:"e6c230a6047e06b898ba",67015:"14d2f4dca6b16526be6e",67278:"efa726e456b618c3cf0c",67705:"844e42cd73029cd34fef",67744:"c3d217c5af236f1db3fa",67772:"2ef79cfa64af0268a19f",68389:"7eb1997a1a05503f02f3",68648:"9bfaebf229c0f9afa0f7",69073:"a930fe2470ae53ed55bc",69170:"cfd8a4ec6ab8c7591de9",69502:"33195742797d324720e6",69687:"e2ef53ac1e97d2339186",69776:"c2d63994ed4e7def7c72",69884:"84b183c91a24a169692a",69975:"478a63dc800d40b77cd3",70174:"8986bccd3752fb33bae3",70316:"ce4d339e9c66c07c7eed",70471:"5853e84d9cb16b1fbdc5",70997:"32f791fd89dc094e5929",71075:"4d6c54c00115f9ddae79",71262:"49ccc493157789ab9f99",71306:"06a4757228eaa78f58d1",71496:"7bb246c281d24a51827c",71657:"90002034e2e28e12ed53",72246:"fb2a8c0b6c0c5e692e9c",72283:"ca6a38ddc46cccd5c351",72376:"b9840353ded1ee0bac81",72456:"71da7b4a9da344a7af06",72496:"9f0750ff8e1373a8ad95",72823:"1a58ab859ec09449f4cb",72887:"204649df728648ba2a6a",73031:"4a973cd383c371dfa727",73120:"a383a6c6b7f2ba0fb912",73226:"627c6d6f452c9173417e",73330:"162893379c87ccf8e1ce",73477:"2d96da2db70fe8cca256",73781:"ab22c0e4acc1a9f635b1",74142:"8134575ee8033d0d5818",74413:"f7c40e409fce63be4a39",75042:"9c813e24dbd917d31549",75263:"4c3dd57be807f0025175",76235:"6bc4170b37969185b7b4",76254:"aa87aa5a0e553ad0cb04",76283:"5afbfaa464f3eb983b92",76397:"f35fec99dc22185905b6",76667:"29e260160bae0b9aad50",77385:"369d59b1318cf5125ebd",77406:"f77dde20a62bde21ee0e",77623:"e76b069231ae8b330db6",77968:"16e402731e77a08091e8",78056:"640908669eac70f2fc53",78155:"26937279a598a2bd8d69",78720:"7b507cbfe0ede955179e",79172:"d3bd9f7c7ebc721213e9",79258:"c4ef504721f242cfcb61",79289:"70e6071470847bae9a31",79340:"803b6c303b5e7dbb63cc",79625:"5310c4a381689a905aa5",79685:"f2db0104f205efbbfbc7",79699:"c47bad9cf306f00d3c73",79869:"fc1f3bb839cdbaaab9d9",80008:"ed02f343a65a413c5981",80262:"05e64731efcef82f8089",80270:"d175e4d805532aaeff2a",80335:"e44089a42406707d0d0f",80566:"3acb620c6536fa42447b",80569:"9e95cc4b5e1216abfe1a",80638:"23518dd395ea0b33067d",80902:"a1a1b60f38e445324a5d",81328:"4cb9a0b5c94ad3a714af",81450:"5c8eab7700f765220539",81534:"77f839e25d6abcd77e4e",81852:"388b3dfd12654fe198aa",82067:"b5dc4f446afe590d44a6",82327:"691e75ff22bb1fd0e89d",82422:"49546a599b8b228e41dc",82544:"38added7ad525488d31c",82555:"e71afe31775804dc3f34",82628:"321887ed0f208ac74639",82954:"a2056aaebf296320cd5e",83136:"0b89ba08940efcb00a0f",83282:"af389f9a7b1cf146a721",83369:"7574994db99a85f602b1",83722:"7ea0451a21272efa6c61",84350:"a9ccc14627850607cd28",84506:"21be843f674d10f745bb",84556:"e7872e400a18139c42c6",84567:"9ff7e36609f0b8fc94e0",84625:"5af4f2ac9d6ea52c9464",85085:"11dcff78881bee6262f4",85477:"0c79727d0ad801ea1d44",85481:"26a7654f5996452fd171",85749:"6c86675b40cc1649c07d",86006:"0f919efba8791dc17dad",86187:"225da38e9899149daa23",86902:"bcf9b5d24a38bc4623df",86952:"2a2efb6f5bad9a9acc66",87268:"68d38d5445a0fbe51103",87406:"dbe9d5605a3bc1d8c103",87624:"b1b39d69911d86b86f3d",87632:"2fe33d123d7d8688f029",87772:"4c4a2ab7e5844adcb038",87826:"8a9d5ff7f21207557dda",87842:"a1cd91f0de3d32b25893",87874:"ecc43441285d2ae6d953",88408:"ab4f1c053c05128c04eb",88533:"f7f5e149269ec82af27d",88628:"239abc616c8332257514",89179:"59a3726e238744b2f699",89426:"094e1df111c8e363a138",89476:"bf87a94bd66d3b907efa",89609:"961e0033b10f7c4d0fdc",89673:"b1f89df666359af596ae",89695:"86466e6d47fad005e408",90008:"6fb9f49edd393eb32f55",90316:"726e3dde730b856d63d0",90616:"4a29badf27a5a2720aec",90667:"a94b2cb7375deac068c7",90721:"44b4277d7df2d90139b7",90724:"f8ccd3cda072537b713c",90731:"5ada414ab8131c5c9fa2",90830:"ddc4757b3c5500e25cd5",90846:"e4765c75a7e2d75a4e69",91201:"8c43abfdca7b1ace73a7",91316:"011e6f2096a685726084",91344:"e4ca993c6d3ac1aca4eb",91841:"70cd33fa32656dfc3f30",91858:"ac096e13a125f48eab48",91951:"2cf78b0ce2c31d369305",92012:"637c240ad5662ac71a96",92174:"349ba31c6042c1d5cdb3",92361:"0c196016cc5a5286b8ac",92657:"9ba0a4393cc854cb5fbc",92789:"18eceaf4258787453001",93102:"85a9253ca296563887ce",93171:"c470aca7488102c434bd",93236:"66f7cf10bfd81b3ba9f4",93534:"36fa887f36c9a1fa5f19",93537:"9b5cfc3c007ed8b2236a",93985:"6ca0a1012a2e3657a4db",94194:"239e99b807f59fb69db2",94224:"6f81600dfe7134a86977",94424:"d3ec714914266d7ae87a",94443:"9617d0dd889d72c4fa34",94565:"aef29a349d369280a676",95399:"87303d04bee824f67da0",95814:"afd3ecd049bd3c8ab4ef",95883:"e1a9d31c4f9cbec53a4b",96145:"5af028f33b1e44517aa2",96193:"92d6e53f49f90f272d0d",96199:"2ce474b3e396e86d969c",96332:"ceaff69ccef2bfa98a10",96679:"e00a6fafcd4cfbe74b4c",96809:"8dcd182216eedf8bba70",96934:"17edb001c8c6f99e4ef3",97230:"c9360a7a610974e4bb76",97359:"3b0d0ca0780621579966",97665:"ddae33102bde60ed0fde",97940:"0d800fef59aaa88c308f",98153:"1770b75d99509053bf7d",98423:"f14f11f691fd4fdd8524",98769:"c24cb8e0e4a45432066e",98996:"ebf4cb9179dd157b1e86",99010:"49d66211709234560704",99148:"4a4e04718f3adcadfd36",99623:"5430d6491833ea2858e7",99651:"52a801e5130ee3f7846b"}[e]+".js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},i="tocco-admin:",s.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var a,c;if(void 0!==n)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+n){a=d;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var p=(t,n)=>{a.onerror=a.onload=null,clearTimeout(f);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),c&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.p="/",(()=>{var e={38792:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=s.p+s.u(t),a=new Error;s.l(i,(n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,c]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);if(c)c(s)}for(t&&t(n);u<i.length;u++)o=i[u],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=this.webpackChunktocco_admin=this.webpackChunktocco_admin||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),s.nc=void 0;var u={};return(()=>{"use strict";s.r(u),s.d(u,{default:()=>St});var e=s(5556),t=s.n(e),n=s(4883),r=s.n(n),o=s(81845),i=s.n(o),a=s(6730),c=s(68887),l=s(63061),d=s(97699),p=s(12199),f=s(42851),m=s(18601),h=s(10822),g=s(29255),v=s(17678),y=s(92207),b=s.n(y),w=s(43786),x=s(26396),O=s.n(x),k=s(98671),S=s(24096);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var A=O()(O()(O()(O()(O()(O()(O()(O()({},S.Se,k.A.singleTransferReducer("menuOpen")),S.GN,k.A.singleTransferReducer("modulesMenuTree")),S.yD,k.A.singleTransferReducer("settingsMenuTree")),S.Kz,k.A.singleTransferReducer("systemMenuTree")),S.kl,k.A.singleTransferReducer("completeMenuTree")),S.w,(function(e){return j(j({},e),{},{menuOpen:!e.menuOpen})})),S.cv,k.A.singleTransferReducer("activeMenuTab")),S.Qw,(function(e,t){var n=t.payload.activeMenuTab;return j(j({},e),{},{menuOpen:e.activeMenuTab!==n||!e.menuOpen})})),P={menuOpen:!1,entities:[],activeMenuTab:"modules"};var T=s(70661),_=s(93575),D=s(74978),C=b().mark(F),I=b().mark(H),R=b().mark(V),M=b().mark(z),N=function(e){return e.navigation},L="admin.activeMenu";function F(e){var t;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,w.T1)(T.A.requestSaga,"client/menus/".concat(e));case 2:return t=n.sent,n.abrupt("return",t.body.menuItems);case 4:case"end":return n.stop()}}),C)}function H(){var e,t,n,r;return b().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,w.T1)(F,"modules");case 2:return e=o.sent,o.next=5,(0,w.yJ)(S.lF(e));case 5:return o.next=7,(0,w.T1)(F,"settings");case 7:return t=o.sent,o.next=10,(0,w.yJ)(S.J8(t));case 10:return o.next=12,(0,w.T1)(F,"system");case 12:return n=o.sent,o.next=15,(0,w.yJ)(S.BA(n));case 15:return o.next=17,(0,w.T1)(F,"all");case 17:return r=o.sent,o.next=20,(0,w.yJ)(S.$Y(r));case 20:case"end":return o.stop()}}),I)}function B(e){var t=e.payload.userPreferences;return b().mark((function e(){var n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t[L])){e.next=4;break}return e.next=4,(0,w.yJ)(S.Tr(n));case 4:case"end":return e.stop()}}),e)}))()}function U(e){var t=e.payload.activeMenuTab;return b().mark((function e(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.yJ)((0,D.bM)(O()({},L,t)));case 2:case"end":return e.stop()}}),e)}))()}function V(e){var t,n,r,o,i;return b().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,w.Lt)(N);case 2:if(t=a.sent,n=t.settingsMenuTree,r=t.modulesMenuTree,o=t.systemMenuTree,i=t.completeMenuTree,e!==_.WV.MODULES){a.next=9;break}return a.abrupt("return",r);case 9:if(e!==_.WV.SETTINGS){a.next=11;break}return a.abrupt("return",n);case 11:if(e!==_.WV.SYSTEM){a.next=13;break}return a.abrupt("return",o);case 13:if(e!==_.WV.COMPLETE){a.next=15;break}return a.abrupt("return",i);case 15:return a.abrupt("return",null);case 16:case"end":return a.stop()}}),R)}function W(e){var t=e.payload.menuTab;return b().mark((function e(){var n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.T1)(V,t);case 2:if(n=e.sent,!((null==n?void 0:n.length)>0)){e.next=9;break}return e.next=7,(0,w.yJ)(S.YV(t));case 7:return e.next=9,(0,w.yJ)(S.Tr(t));case 9:case"end":return e.stop()}}),e)}))()}function z(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q7)([(0,w.p8)(S.OZ,H),(0,w.sg)(500,S.cv,U),(0,w.p8)(D.CF,B),(0,w.p8)(S.KY,W)]);case 2:case"end":return e.stop()}}),M)}var q=b().mark(Y);function Y(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q7)([(0,w.Zy)(z)]);case 2:case"end":return e.stop()}}),q)}const $=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P,t=arguments.length>1?arguments[1]:void 0,n=A[t.type];return n?n(e,t):e};function G(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 K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var J=O()(O()(O()(O()({},D.PP,k.A.singleTransferReducer("serverSettings")),D.oB,k.A.singleTransferReducer("isLoading")),D.CF,k.A.singleTransferReducer("userPreferences")),D.lz,(function(e,t){var n=t.payload;return K(K({},e),{},{userPreferences:K(K({},e.userPreferences),n.preferences)})})),X={isLoading:!0,serverSettings:{},userPreferences:{}};var Q=s(58065),Z=s(79859),ee=s(76419),te=s(22056),ne=s.n(te);function re(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 oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ie,ae,ce,se,ue=function(e){return Object.entries(e).reduce((function(e,t){var n=ne()(t,2),r=n[0],o=n[1];return oe(oe({},e),{},O()({},r,function(e){switch(e){case"true":return!0;case"false":return!1;default:return e}}(o)))}),{})},le=s(74848),de=b().mark(ve),pe=b().mark(we),fe=b().mark(xe);function me(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 he(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ge="admin.theme";function ve(){var e,t,n,r,o;return b().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,w.yJ)(D.F6(!0));case 2:return i.next=4,(0,w.T1)(T.A.fetchServerSettings);case 4:return e=i.sent,i.next=7,(0,w.yJ)(D.Ve(e));case 7:return i.next=9,(0,w.T1)(T.A.fetchUserPreferences,"admin.*");case 9:return t=i.sent,i.next=12,(0,w.T1)(ue,t);case 12:return n=i.sent,i.next=15,(0,w.T1)(T.A.fetchUserPreferences,"admintree.*");case 15:return r=i.sent,i.next=18,(0,w.T1)(ue,r);case 18:return o=i.sent,i.next=21,(0,w.yJ)(D.A2(he(he({},o),n)));case 21:return i.next=23,(0,w.yJ)(D.F6(!1));case 23:case"end":return i.stop()}}),de)}function ye(e){var t=e.payload.preferences;return b().mark((function e(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.T1)(T.A.savePreferences,t);case 2:case"end":return e.stop()}}),e)}))()}function be(e){var t=e.payload.userPreferences;return b().mark((function e(){var n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t[ge])){e.next=8;break}return e.next=4,(0,w.T1)(ee.A.addLongTerm,"admin","theme",n);case 4:return e.next=6,(0,w.yJ)(c.A.setThemeType(n));case 6:e.next=12;break;case 8:return e.next=10,(0,w.T1)(ee.A.removeLongTerm,"admin","theme");case 10:return e.next=12,(0,w.yJ)(c.A.initThemeType());case 12:case"end":return e.stop()}}),e)}))()}function we(){var e,t,n;return b().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,w.T1)(Z.Ix);case 2:return e=r.sent,t=function(){return e.put(!0)},n=function(){return e.put(!1)},r.next=7,(0,w.yJ)(h.A.confirm(ie||(ie=(0,le.jsx)(Q.A,{id:"client.admin.menu.resetPreferences.title"})),ae||(ae=(0,le.jsx)(Q.A,{id:"client.admin.menu.resetPreferences.question"})),ce||(ce=(0,le.jsx)(Q.A,{id:"client.common.ok"})),se||(se=(0,le.jsx)(Q.A,{id:"client.common.cancel"})),t,n));case 7:return r.next=9,(0,w.s)(e);case 9:if(!r.sent){r.next=19;break}return r.next=13,(0,w.T1)(T.A.resetAllPreferences);case 13:return r.next=15,(0,w.T1)(ee.A.removeLongTerm,"admin","theme");case 15:return r.next=17,(0,w.yJ)(c.A.initThemeType());case 17:return r.next=19,(0,w.yJ)(h.A.toaster({type:"success",title:"client.admin.menu.resetPreferences.success"}));case 19:case"end":return r.stop()}}),pe)}function xe(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q7)([(0,w.p8)(D.U3,ve),(0,w.p8)(D.lz,ye),(0,w.p8)(D.CF,be),(0,w.p8)(D.fE,we)]);case 2:case"end":return e.stop()}}),fe)}var Oe=b().mark(ke);function ke(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q7)([(0,w.Zy)(xe)]);case 2:case"end":return e.stop()}}),Oe)}const Se=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X,t=arguments.length>1?arguments[1]:void 0,n=J[t.type];return n?n(e,t):e};var Ee=s(27948),je=O()(O()(O()(O()(O()(O()(O()({},Ee.mW,k.A.singleTransferReducer("username")),Ee.XA,k.A.singleTransferReducer("currentBusinessUnit")),Ee.E_,k.A.singleTransferReducer("businessUnits")),Ee.tb,k.A.singleTransferReducer("ssoAvailable")),Ee.ZW,k.A.singleTransferReducer("pendingChanges")),Ee.tP,k.A.singleTransferReducer("hasOutlookAddInModule")),Ee.zI,k.A.singleTransferReducer("inWrongBusinessUnit")),Ae={username:"",currentBusinessUnit:{label:"",id:""},businessUnits:[],ssoAvailable:!1,pendingChanges:!1,hasOutlookAddInModule:!1,inWrongBusinessUnit:void 0};var Pe=s(18987),Te=s(25204),_e=b().mark(Ce),De=b().mark(Ie);function Ce(){var e,t;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,w.T1)(T.A.fetchModules);case 2:if(e=n.sent,e.includes("nice.optional.sso")){n.next=6;break}return n.abrupt("return",!1);case 6:return n.next=8,(0,w.T1)(T.A.fetchEntityCount,"Openid_provider",{where:"active == true"});case 8:return t=n.sent,n.abrupt("return",t>0);case 10:case"end":return n.stop()}}),_e)}function Ie(){var e,t;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(void 0===(e=ee.A.getLongTerm("server","ssoAvailable"))){n.next=5;break}return n.abrupt("return",e);case 5:return n.next=7,(0,w.T1)(Ce);case 7:return t=n.sent,ee.A.addLongTerm("server","ssoAvailable",t),n.abrupt("return",t);case 10:case"end":return n.stop()}}),De)}var Re=s(27399),Me=b().mark(Je),Ne=b().mark(Xe),Le=b().mark(Qe),Fe=b().mark(Ze),He=b().mark(et),Be=b().mark(nt),Ue=b().mark(ot),Ve=b().mark(it),We=b().mark(at),ze=b().mark(st),qe=b().mark(ut),Ye=b().mark(lt),$e=function(e){return e.session},Ge=function(e){return e.input},Ke=function(e){return e.app};function Je(e){var t,n,r,o;return b().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e/2*60*1e3,i.next=3,(0,w.T1)(m.A.doSessionRequest);case 3:return n=i.sent,r=n.success,o=n.adminAllowed,i.next=8,(0,w.yJ)(m.A.setLoggedIn(r));case 8:return i.next=10,(0,w.yJ)(m.A.setAdminAllowed(o));case 10:return i.next=12,(0,w.T1)(Xe,t);case 12:return i.next=14,(0,w.T1)(Je,e);case 14:case"end":return i.stop()}}),Me)}function Xe(e){return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,w.cb)(e);case 2:case"end":return t.stop()}}),Ne)}function Qe(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.T1)(m.A.doRequest,"logout",{method:"POST"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),Le)}function Ze(){var e,t;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,w.Lt)(Ge);case 2:e=n.sent,t=e.baseRoute,window.location.href=t||"/";case 5:case"end":return n.stop()}}),Fe)}function et(){var e,t,n,r;return b().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,w.Lt)(Ke);case 2:return e=o.sent,t=e.textResourceModules,o.next=6,(0,w.T1)(c.A.getUserLocale);case 6:return n=o.sent,o.next=9,(0,w.T1)(c.A.getChangeLocaleAction,t,n);case 9:return r=o.sent,o.next=12,(0,w.yJ)(r);case 12:case"end":return o.stop()}}),He)}function tt(e){var t=e.payload;return b().mark((function e(){var n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.sessionTimeout,e.next=3,(0,w.T1)(et);case 3:return e.next=5,(0,w.yJ)(m.A.setAdminAllowed(void 0));case 5:return e.next=7,(0,w.yJ)(m.A.setLoggedIn(!0));case 7:return e.next=9,(0,w.yJ)(h.A.connectSocket());case 9:return e.next=11,(0,w.T1)(Je,n);case 11:case"end":return e.stop()}}),e)}))()}function nt(e){var t;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,w.T1)(Z.Ix);case 2:return t=n.sent,n.next=5,(0,w.yJ)(h.A.modal("navigation-pending-changes","client.admin.confirmTouchedFormTitle",e,(function(e){var n=e.close;return(0,le.jsx)(Re.A,{onYes:function(){n(),t.put("yes")},onNo:function(){n(),t.put("no")}})}),!0,(function(){return t.put("no")})));case 5:return n.next=7,(0,w.s)(t);case 7:return n.abrupt("return",n.sent);case 8:case"end":return n.stop()}}),Be)}function rt(e){var t=e.payload;return b().mark((function e(){var n,r;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.message,r=t.confirmCallback,e.next=3,(0,w.T1)(nt,n);case 3:if("yes"!==e.sent){e.next=9;break}return e.next=7,(0,w.T1)(r,!0);case 7:e.next=11;break;case 9:return e.next=11,(0,w.T1)(r,!1);case 11:case"end":return e.stop()}}),e)}))()}function ot(){var e;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,w.Lt)($e);case 2:if(e=t.sent,!e.pendingChanges){t.next=10;break}return t.next=7,(0,w.T1)(nt,"client.admin.confirmTouchedFormLogout");case 7:if("yes"===t.sent){t.next=10;break}return t.abrupt("return");case 10:return t.next=12,(0,w.T1)(Pe.A.remove,Te.v);case 12:return t.next=14,(0,w.T1)(Qe);case 14:return t.next=16,(0,w.yJ)(m.A.setLoggedIn(!1));case 16:return t.next=18,(0,w.yJ)(h.A.closeSocket());case 18:return t.next=20,(0,w.T1)(Ze);case 20:case"end":return t.stop()}}),Ue)}function it(){var e,t,n,r;return b().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,w.T1)(T.A.fetchPrincipal);case 2:return e=o.sent,t=e.username,n=e.currentBusinessUnit,r=e.inWrongBusinessUnit,o.next=8,(0,w.yJ)(Ee.P(t));case 8:return o.next=10,(0,w.yJ)(Ee.Ml(n));case 10:return o.next=12,(0,w.yJ)(Ee.xI(r));case 12:case"end":return o.stop()}}),Ve)}function at(){var e;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,w.T1)(T.A.requestSaga,"principals/businessunits");case 2:return e=t.sent,t.next=5,(0,w.yJ)(Ee.Qp(e.body.data));case 5:case"end":return t.stop()}}),We)}function ct(e){var t=e.payload.businessUnitId;return b().mark((function e(){var n,r,o;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Lt)($e);case 2:return n=e.sent,r=n.username,o="principals/".concat(r,"/businessunit"),e.next=7,(0,w.T1)(T.A.requestSaga,o,{method:"PUT",body:{businessUnit:t}});case 7:return e.next=9,(0,w.T1)(c.A.reinitialiseCache);case 9:location.reload();case 10:case"end":return e.stop()}}),e)}))()}function st(){var e;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,w.T1)(Ie);case 2:return e=t.sent,t.next=5,(0,w.yJ)(Ee.d4(e));case 5:case"end":return t.stop()}}),ze)}function ut(){var e,t;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,w.T1)(T.A.fetchModules);case 2:return e=n.sent,t=e.includes("nice.optional.officeintegration"),n.next=6,(0,w.yJ)(Ee.Wm(t));case 6:case"end":return n.stop()}}),qe)}function lt(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q7)([(0,w.p8)(Ee.hO,tt),(0,w.p8)(Ee.tZ,ot),(0,w.p8)(Ee.AZ,it),(0,w.p8)(Ee.Cm,at),(0,w.p8)(Ee.zu,ct),(0,w.p8)(Ee.Ff,st),(0,w.p8)(Ee.sR,rt),(0,w.p8)(Ee.$H,ut)]);case 2:case"end":return e.stop()}}),Ye)}var dt=b().mark(pt);function pt(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q7)([(0,w.Zy)(lt)]);case 2:case"end":return e.stop()}}),dt)}const ft={session:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ae,t=arguments.length>1?arguments[1]:void 0,n=je[t.type];return n?n(e,t):e},navigation:$,preferences:Se};var mt=[pt,Y,ke],ht=s(35693);const gt=[{ctrl:!0,alt:!0,code:"KeyM",actions:[(0,S.ad)("modules")],global:!0},{ctrl:!0,alt:!0,code:"KeyN",actions:[(0,S.ad)("settings")],global:!0},{ctrl:!0,alt:!0,code:"KeyO",actions:[(0,S.ad)("complete")],global:!0},{ctrl:!0,alt:!0,code:"KeyK",actions:[(0,S.ad)("system")],global:!0}];var vt,yt,bt="admin",wt=r().lazy((function(){return Promise.all([s.e(10927),s.e(45601),s.e(79172),s.e(13419),s.e(27136),s.e(8007)]).then(s.bind(s,1314))})),xt=function(){return vt||(vt=(0,le.jsx)(le.Fragment,{children:(0,le.jsx)(n.Suspense,{fallback:"",children:(0,le.jsx)(wt,{})})}))},Ot=function(e,t,n,o){window.reactRegistry&&window.reactRegistry.setReact&&window.reactRegistry.setReact(r(),i());var s=yt||(yt=(0,le.jsx)(xt,{})),u=c.A.createStore(ft,mt,t,bt);return p.A.addToStore(u,(function(){return{}})),a.A.addToStore(u),l.A.addToStore(u,(function(){return{appComponent:ht.A,formApp:v.A}})),l.A.dynamicActionsAddToStore(u),d.A.addToStore(u,!0,["console","remote","notification"]),h.A.addToStore(u,!0,{withNotificationCenter:!0}),m.A.addToStore(u),f.A.addToStore(u,gt),g.A.addToStore(u),c.A.createApp(bt,s,u,{input:t,events:n,actions:[],publicPath:o,textResourceModules:["component","common","actions","login","sso-login","entity-browser","entity-list","entity-detail","dashboard","docs-browser","entities",bt]})};c.A.registerAppInRegistry(bt,Ot);var kt=function(e){return c.A.useApp({initApp:Ot,props:e,packageName:bt}).component};kt.propTypes={baseRoute:t().string,memoryHistory:t().bool};const St=kt})(),u})()));
|