tocco-legacy-bundle 3.13.18 → 3.13.19

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.
@@ -75,7 +75,7 @@ var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hre
75
75
  *
76
76
  * This source code is licensed under the MIT license found in the
77
77
  * LICENSE file in the root directory of this source tree.
78
- */var r=n(4883);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useSyncExternalStore,i=r.useRef,s=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var d=i(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c((function(){function e(e){if(!s){if(s=!0,a=e,e=r(e),void 0!==l&&f.hasValue){var t=f.value;if(l(t,e))return i=t}return i=e}if(t=i,o(a,e))return t;var n=r(e);return void 0!==l&&l(t,n)?t:(a=e,i=n)}var a,i,s=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,l]);var p=a(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),u(p),p}},78418:(e,t,n)=>{"use strict";e.exports=n(77154)},93419:(e,t,n)=>{"use strict";n.d(t,{v4:()=>x});const r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;const o=function(e){return"string"==typeof e&&r.test(e)};const a=function(e){if(!o(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};for(var i=[],s=0;s<256;++s)i.push((s+256).toString(16).slice(1));function c(e,t=0){return(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase()}var u,l=new Uint8Array(16);function d(){if(!u&&!(u="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return u(l)}function f(e,t,n){function r(e,r,o,i){var s;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=a(r)),16!==(null===(s=r)||void 0===s?void 0:s.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+e.length);if(u.set(r),u.set(e,r.length),(u=n(u))[6]=15&u[6]|t,u[8]=63&u[8]|128,o){i=i||0;for(var l=0;l<16;++l)o[i+l]=u[l];return o}return c(u)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function p(e){return 14+(e+64>>>9<<4)+1}function h(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function m(e,t,n,r,o,a){return h((i=h(h(t,e),h(r,a)))<<(s=o)|i>>>32-s,n);var i,s}function g(e,t,n,r,o,a,i){return m(t&n|~t&r,e,t,o,a,i)}function y(e,t,n,r,o,a,i){return m(t&r|n&~r,e,t,o,a,i)}function v(e,t,n,r,o,a,i){return m(t^n^r,e,t,o,a,i)}function b(e,t,n,r,o,a,i){return m(n^(t|~r),e,t,o,a,i)}const w=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",o=0;o<n;o+=8){var a=e[o>>5]>>>o%32&255,i=parseInt(r.charAt(a>>>4&15)+r.charAt(15&a),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[p(t)-1]=t;for(var n=1732584193,r=-271733879,o=-1732584194,a=271733878,i=0;i<e.length;i+=16){var s=n,c=r,u=o,l=a;n=g(n,r,o,a,e[i],7,-680876936),a=g(a,n,r,o,e[i+1],12,-389564586),o=g(o,a,n,r,e[i+2],17,606105819),r=g(r,o,a,n,e[i+3],22,-1044525330),n=g(n,r,o,a,e[i+4],7,-176418897),a=g(a,n,r,o,e[i+5],12,1200080426),o=g(o,a,n,r,e[i+6],17,-1473231341),r=g(r,o,a,n,e[i+7],22,-45705983),n=g(n,r,o,a,e[i+8],7,1770035416),a=g(a,n,r,o,e[i+9],12,-1958414417),o=g(o,a,n,r,e[i+10],17,-42063),r=g(r,o,a,n,e[i+11],22,-1990404162),n=g(n,r,o,a,e[i+12],7,1804603682),a=g(a,n,r,o,e[i+13],12,-40341101),o=g(o,a,n,r,e[i+14],17,-1502002290),n=y(n,r=g(r,o,a,n,e[i+15],22,1236535329),o,a,e[i+1],5,-165796510),a=y(a,n,r,o,e[i+6],9,-1069501632),o=y(o,a,n,r,e[i+11],14,643717713),r=y(r,o,a,n,e[i],20,-373897302),n=y(n,r,o,a,e[i+5],5,-701558691),a=y(a,n,r,o,e[i+10],9,38016083),o=y(o,a,n,r,e[i+15],14,-660478335),r=y(r,o,a,n,e[i+4],20,-405537848),n=y(n,r,o,a,e[i+9],5,568446438),a=y(a,n,r,o,e[i+14],9,-1019803690),o=y(o,a,n,r,e[i+3],14,-187363961),r=y(r,o,a,n,e[i+8],20,1163531501),n=y(n,r,o,a,e[i+13],5,-1444681467),a=y(a,n,r,o,e[i+2],9,-51403784),o=y(o,a,n,r,e[i+7],14,1735328473),n=v(n,r=y(r,o,a,n,e[i+12],20,-1926607734),o,a,e[i+5],4,-378558),a=v(a,n,r,o,e[i+8],11,-2022574463),o=v(o,a,n,r,e[i+11],16,1839030562),r=v(r,o,a,n,e[i+14],23,-35309556),n=v(n,r,o,a,e[i+1],4,-1530992060),a=v(a,n,r,o,e[i+4],11,1272893353),o=v(o,a,n,r,e[i+7],16,-155497632),r=v(r,o,a,n,e[i+10],23,-1094730640),n=v(n,r,o,a,e[i+13],4,681279174),a=v(a,n,r,o,e[i],11,-358537222),o=v(o,a,n,r,e[i+3],16,-722521979),r=v(r,o,a,n,e[i+6],23,76029189),n=v(n,r,o,a,e[i+9],4,-640364487),a=v(a,n,r,o,e[i+12],11,-421815835),o=v(o,a,n,r,e[i+15],16,530742520),n=b(n,r=v(r,o,a,n,e[i+2],23,-995338651),o,a,e[i],6,-198630844),a=b(a,n,r,o,e[i+7],10,1126891415),o=b(o,a,n,r,e[i+14],15,-1416354905),r=b(r,o,a,n,e[i+5],21,-57434055),n=b(n,r,o,a,e[i+12],6,1700485571),a=b(a,n,r,o,e[i+3],10,-1894986606),o=b(o,a,n,r,e[i+10],15,-1051523),r=b(r,o,a,n,e[i+1],21,-2054922799),n=b(n,r,o,a,e[i+8],6,1873313359),a=b(a,n,r,o,e[i+15],10,-30611744),o=b(o,a,n,r,e[i+6],15,-1560198380),r=b(r,o,a,n,e[i+13],21,1309151649),n=b(n,r,o,a,e[i+4],6,-145523070),a=b(a,n,r,o,e[i+11],10,-1120210379),o=b(o,a,n,r,e[i+2],15,718787259),r=b(r,o,a,n,e[i+9],21,-343485551),n=h(n,s),r=h(r,c),o=h(o,u),a=h(a,l)}return[n,r,o,a]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(p(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))};f("v3",48,w);const O={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};const x=function(e,t,n){if(O.randomUUID&&!t&&!e)return O.randomUUID();var r=(e=e||{}).random||(e.rng||d)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return c(r)};function k(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function S(e,t){return e<<t|e>>>32-t}const E=function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var a=e.length/4+2,i=Math.ceil(a/16),s=new Array(i),c=0;c<i;++c){for(var u=new Uint32Array(16),l=0;l<16;++l)u[l]=e[64*c+4*l]<<24|e[64*c+4*l+1]<<16|e[64*c+4*l+2]<<8|e[64*c+4*l+3];s[c]=u}s[i-1][14]=8*(e.length-1)/Math.pow(2,32),s[i-1][14]=Math.floor(s[i-1][14]),s[i-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<i;++d){for(var f=new Uint32Array(80),p=0;p<16;++p)f[p]=s[d][p];for(var h=16;h<80;++h)f[h]=S(f[h-3]^f[h-8]^f[h-14]^f[h-16],1);for(var m=n[0],g=n[1],y=n[2],v=n[3],b=n[4],w=0;w<80;++w){var O=Math.floor(w/20),x=S(m,5)+k(O,g,y,v)+b+t[O]+f[w]>>>0;b=v,v=y,y=S(g,30)>>>0,g=m,m=x}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+y>>>0,n[3]=n[3]+v>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]};f("v5",80,E)},4883:e=>{"use strict";e.exports=t},81845:t=>{"use strict";t.exports=e},22847:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},56868:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},37372:(e,t,n)=>{"use strict";var r=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of i(t))!c.call(e,s)&&s!==n&&o(e,s,{get:()=>t[s],enumerable:!(r=a(t,s))||r.enumerable});return e},l=(e,t,n)=>(n=null!=e?r(s(e)):{},u(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(d,{Provider:()=>be,ReactReduxContext:()=>v,batch:()=>Se,connect:()=>ve,createDispatchHook:()=>xe,createSelectorHook:()=>S,createStoreHook:()=>we,shallowEqual:()=>te,useDispatch:()=>ke,useSelector:()=>E,useStore:()=>Oe}),e.exports=(e=>u(o({},"__esModule",{value:!0}),e))(d);var f=l(n(4883)),p=n(78418),h=l(n(4883)),m="default"in h?h.default:h,g=Symbol.for("react-redux-context"),y=typeof globalThis<"u"?globalThis:{};var v=function(){if(!m.createContext)return{};let e=y[g]??(y[g]=new Map),t=e.get(m.createContext);return t||(t=m.createContext(null),e.set(m.createContext,t)),t}(),b=()=>{throw new Error("uSES not initialized!")};function w(e=v){return function(){return m.useContext(e)}}var O=w(),x=b,k=(e,t)=>e===t;function S(e=v){let t=e===v?O:w(e),n=(e,n={})=>{let{equalityFn:r=k,devModeChecks:o={}}="function"==typeof n?{equalityFn:n}:n,{store:a,subscription:i,getServerState:s,stabilityCheck:c,identityFunctionCheck:u}=t(),l=(m.useRef(!0),m.useCallback({[e.name]:t=>e(t)}[e.name],[e,c,o.stabilityCheck])),d=x(i.addNestedSub,a.getState,s||a.getState,l,r);return m.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var E=S(),P=Symbol.for("react.element"),j=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),M=Symbol.for("react.context"),A=Symbol.for("react.server_context"),I=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),H=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),I),W=L;function B(e){return function(e){if("object"==typeof e&&null!==e){let t=e.$$typeof;switch(t){case P:{let n=e.type;switch(n){case _:case C:case D:case N:case R:return n;default:{let e=n&&n.$$typeof;switch(e){case A:case M:case I:case F:case L:case T:return e;default:return t}}}}case j:return t}}}(e)===L}function U(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:a,areStatePropsEqual:i}){let s,c,u,l,d,f=!1;function p(f,p){let h=!a(p,c),m=!o(f,s,p,c);return s=f,c=p,h&&m?(u=e(s,c),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):h?(e.dependsOnOwnProps&&(u=e(s,c)),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):m?function(){let t=e(s,c),r=!i(t,u);return u=t,r&&(d=n(u,l,c)),d}():d}return function(o,a){return f?p(o,a):function(o,a){return s=o,c=a,u=e(s,c),l=t(r,c),d=n(u,l,c),f=!0,d}(o,a)}}function Y(e){return function(t){let n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function z(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function V(e,t){return function(t,{displayName:n}){let r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=z(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=z(o),o=r(t,n)),o},r}}function q(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function G(e,t,n){return{...n,...e,...t}}function K(e){e()}var $={notify(){},get:()=>[]};function X(e,t){let n,r=$,o=0,a=!1;function i(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){K((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||null===e||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=$)}let u={addNestedSub:function(e){s();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return a},trySubscribe:function(){a||(a=!0,s())},tryUnsubscribe:function(){a&&(a=!1,c())},getListeners:()=>r};return u}var Q=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Z=typeof navigator<"u"&&"ReactNative"===navigator.product,J=Q||Z?m.useLayoutEffect:m.useEffect;function ee(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function te(e,t){if(ee(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!ee(e[n[r]],t[n[r]]))return!1;return!0}var ne={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},re={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},oe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ae={[H]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[W]:oe};function ie(e){return B(e)?oe:ae[e.$$typeof]||ne}var se=Object.defineProperty,ce=Object.getOwnPropertyNames,ue=Object.getOwnPropertySymbols,le=Object.getOwnPropertyDescriptor,de=Object.getPrototypeOf,fe=Object.prototype;function pe(e,t){if("string"!=typeof t){if(fe){let n=de(t);n&&n!==fe&&pe(e,n)}let n=ce(t);ue&&(n=n.concat(ue(t)));let r=ie(e),o=ie(t);for(let a=0;a<n.length;++a){let i=n[a];if(!(re[i]||o&&o[i]||r&&r[i])){let n=le(t,i);try{se(e,i,n)}catch{}}}}return e}var he=b,me=[null,null];function ge(e,t,n,r,o,a){e.current=r,n.current=!1,o.current&&(o.current=null,a())}function ye(e,t){return e===t}var ve=function(e,t,n,{pure:r,areStatesEqual:o=ye,areOwnPropsEqual:a=te,areStatePropsEqual:i=te,areMergedPropsEqual:s=te,forwardRef:c=!1,context:u=v}={}){let l=u,d=function(e){return e?"function"==typeof e?V(e):q(e,"mapStateToProps"):Y((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?Y((t=>function(e,t){let n={};for(let r in e){let o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?V(e):q(e,"mapDispatchToProps"):Y((e=>({dispatch:e})))}(t),p=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,a=!1;return function(t,n,i){let s=e(t,n,i);return a?r(s,o)||(o=s):(a=!0,o=s),o}}}(e):q(e,"mergeProps"):()=>G}(n),h=!!e;return e=>{let t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:o,areStatePropsEqual:i,areOwnPropsEqual:a,areMergedPropsEqual:s};function u(t){let[n,o,a]=m.useMemo((()=>{let{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),i=m.useMemo((()=>l),[n,l]),s=m.useContext(i),c=!!t.store&&!!t.store.getState&&!!t.store.dispatch,u=!!s&&!!s.store,d=c?t.store:s.store,f=u?s.getServerState:d.getState,p=m.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return U(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[g,y]=m.useMemo((()=>{if(!h)return me;let e=X(d,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,s]),v=m.useMemo((()=>c?s:{...s,subscription:g}),[c,s,g]),b=m.useRef(void 0),w=m.useRef(a),O=m.useRef(void 0),x=m.useRef(!1),k=m.useRef(!1),S=m.useRef(void 0);J((()=>(k.current=!0,()=>{k.current=!1})),[]);let E,P=m.useMemo((()=>()=>O.current&&a===w.current?O.current:p(d.getState(),a)),[d,a]),j=m.useMemo((()=>e=>g?function(e,t,n,r,o,a,i,s,c,u,l){if(!e)return()=>{};let d=!1,f=null,p=()=>{if(d||!s.current)return;let e,n,p=t.getState();try{e=r(p,o.current)}catch(e){n=e,f=e}n||(f=null),e===a.current?i.current||u():(a.current=e,c.current=e,i.current=!0,l())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(h,d,g,p,w,b,x,k,O,y,e):()=>{}),[g]);!function(e,t,n){J((()=>e(...t)),n)}(ge,[w,b,x,a,O,y]);try{E=he(j,P,f?()=>p(f(),a):P)}catch(e){throw S.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${S.current.stack}\n\n`),e}J((()=>{S.current=void 0,O.current=void 0,b.current=E}));let _=m.useMemo((()=>m.createElement(e,{...E,ref:o})),[o,e,E]);return m.useMemo((()=>h?m.createElement(i.Provider,{value:v},_):_),[i,_,v])}let g=m.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=n,c){let t=m.forwardRef((function(e,t){return m.createElement(g,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,pe(t,e)}return pe(g,e)}};var be=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:a="once"}){let i=m.useMemo((()=>{let t=X(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:a}}),[e,r,o,a]),s=m.useMemo((()=>e.getState()),[e]);return J((()=>{let{subscription:t}=i;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[i,s]),m.createElement((t||v).Provider,{value:i},n)};function we(e=v){let t=e===v?O:w(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var Oe=we();function xe(e=v){let t=e===v?Oe:we(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var ke=xe(),Se=K;(e=>{x=e})(p.useSyncExternalStoreWithSelector),(e=>{he=e})(f.useSyncExternalStore)},4865:(e,t,n)=>{"use strict";n.d(t,{UE:()=>We,RK:()=>Le,ll:()=>de,rD:()=>xe,__:()=>fe,UU:()=>Ne,v9:()=>X,jD:()=>Fe,mG:()=>He,ER:()=>Ie,cY:()=>Me,iD:()=>le,BN:()=>Ae,Ej:()=>Re,we:()=>Ce});const r=["top","right","bottom","left"],o=["start","end"],a=r.reduce(((e,t)=>e.concat(t,t+"-"+o[0],t+"-"+o[1])),[]),i=Math.min,s=Math.max,c=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),u={start:"end",end:"start"};function l(e,t,n){return s(e,i(t,n))}function d(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function g(e){return["top","bottom"].includes(f(e))?"y":"x"}function y(e){return h(g(e))}function v(e,t,n){void 0===n&&(n=!1);const r=p(e),o=y(e),a=m(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=w(i)),[i,w(i)]}function b(e){return e.replace(/start|end/g,(e=>u[e]))}function w(e){return e.replace(/left|right|bottom|top/g,(e=>c[e]))}function O(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function x(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function k(e,t,n){let{reference:r,floating:o}=e;const a=g(t),i=y(t),s=m(i),c=f(t),u="y"===a,l=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let v;switch(c){case"top":v={x:l,y:r.y-o.height};break;case"bottom":v={x:l,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:d};break;case"left":v={x:r.x-o.width,y:d};break;default:v={x:r.x,y:r.y}}switch(p(t)){case"start":v[i]-=h*(n&&u?-1:1);break;case"end":v[i]+=h*(n&&u?-1:1)}return v}async function S(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=d(t,e),m=O(h),g=s[p?"floating"===f?"reference":"floating":f],y=x(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(g)))||n?g:g.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:l,strategy:c})),v="floating"===f?{...i.floating,x:r,y:o}:i.reference,b=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),w=await(null==a.isElement?void 0:a.isElement(b))&&await(null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},k=x(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:c}):v);return{top:(y.top-k.top+m.top)/w.y,bottom:(k.bottom-y.bottom+m.bottom)/w.y,left:(y.left-k.left+m.left)/w.x,right:(k.right-y.right+m.right)/w.x}}function E(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function P(e){return r.some((t=>e[t]>=0))}function j(e){const t=i(...e.map((e=>e.left))),n=i(...e.map((e=>e.top)));return{x:t,y:n,width:s(...e.map((e=>e.right)))-t,height:s(...e.map((e=>e.bottom)))-n}}const _=Math.min,D=Math.max,C=Math.round,T=Math.floor,M=e=>({x:e,y:e});function A(e){return R(e)?(e.nodeName||"").toLowerCase():"#document"}function I(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function N(e){var t;return null==(t=(R(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function R(e){return e instanceof Node||e instanceof I(e).Node}function L(e){return e instanceof Element||e instanceof I(e).Element}function F(e){return e instanceof HTMLElement||e instanceof I(e).HTMLElement}function H(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof I(e).ShadowRoot)}function W(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function B(e){return["table","td","th"].includes(A(e))}function U(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Y(e){const t=z(),n=L(e)?q(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 z(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function V(e){return["html","body","#document"].includes(A(e))}function q(e){return I(e).getComputedStyle(e)}function G(e){return L(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function K(e){if("html"===A(e))return e;const t=e.assignedSlot||e.parentNode||H(e)&&e.host||N(e);return H(t)?t.host:t}function $(e){const t=K(e);return V(t)?e.ownerDocument?e.ownerDocument.body:e.body:F(t)&&W(t)?t:$(t)}function X(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=$(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=I(o);return a?t.concat(i,i.visualViewport||[],W(o)?o:[],i.frameElement&&n?X(i.frameElement):[]):t.concat(o,X(o,[],n))}function Q(e){const t=q(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=F(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=C(n)!==a||C(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Z(e){return L(e)?e:e.contextElement}function J(e){const t=Z(e);if(!F(t))return M(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Q(t);let i=(a?C(n.width):n.width)/r,s=(a?C(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const ee=M(0);function te(e){const t=I(e);return z()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ee}function ne(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=Z(e);let i=M(1);t&&(r?L(r)&&(i=J(r)):i=J(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==I(e))&&t}(a,n,r)?te(a):M(0);let c=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,l=o.width/i.x,d=o.height/i.y;if(a){const e=I(a),t=r&&L(r)?I(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=J(o),t=o.getBoundingClientRect(),r=q(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,l*=e.x,d*=e.y,c+=a,u+=i,n=I(o),o=n.frameElement}}return x({width:l,height:d,x:c,y:u})}function re(e){return ne(N(e)).left+G(e).scrollLeft}function oe(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=I(e),r=N(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const e=z();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=N(e),n=G(e),r=e.ownerDocument.body,o=D(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=D(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+re(e);const s=-n.scrollTop;return"rtl"===q(r).direction&&(i+=D(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}(N(e));else if(L(t))r=function(e,t){const n=ne(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=F(e)?J(e):M(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=te(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return x(r)}function ae(e,t){const n=K(e);return!(n===t||!L(n)||V(n))&&("fixed"===q(n).position||ae(n,t))}function ie(e,t,n){const r=F(t),o=N(t),a="fixed"===n,i=ne(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=M(0);if(r||!r&&!a)if(("body"!==A(t)||W(o))&&(s=G(t)),r){const e=ne(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=re(o));return{x:i.left+s.scrollLeft-c.x,y:i.top+s.scrollTop-c.y,width:i.width,height:i.height}}function se(e){return"static"===q(e).position}function ce(e,t){return F(e)&&"fixed"!==q(e).position?t?t(e):e.offsetParent:null}function ue(e,t){const n=I(e);if(U(e))return n;if(!F(e)){let t=K(e);for(;t&&!V(t);){if(L(t)&&!se(t))return t;t=K(t)}return n}let r=ce(e,t);for(;r&&B(r)&&se(r);)r=ce(r,t);return r&&V(r)&&se(r)&&!Y(r)?n:r||function(e){let t=K(e);for(;F(t)&&!V(t);){if(Y(t))return t;if(U(t))return null;t=K(t)}return null}(e)||n}const le={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=N(r),s=!!t&&U(t.floating);if(r===i||s&&a)return n;let c={scrollLeft:0,scrollTop:0},u=M(1);const l=M(0),d=F(r);if((d||!d&&!a)&&(("body"!==A(r)||W(i))&&(c=G(r)),F(r))){const e=ne(r);u=J(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+l.x,y:n.y*u.y-c.scrollTop*u.y+l.y}},getDocumentElement:N,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?U(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=X(e,[],!1).filter((e=>L(e)&&"body"!==A(e))),o=null;const a="fixed"===q(e).position;let i=a?K(e):e;for(;L(i)&&!V(i);){const t=q(i),n=Y(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||W(i)&&!n&&ae(e,i))?r=r.filter((e=>e!==i)):o=t,i=K(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],s=a.reduce(((e,n)=>{const r=oe(t,n,o);return e.top=D(r.top,e.top),e.right=_(r.right,e.right),e.bottom=_(r.bottom,e.bottom),e.left=D(r.left,e.left),e}),oe(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ue,getElementRects:async function(e){const t=this.getOffsetParent||ue,n=this.getDimensions,r=await n(e.floating);return{reference:ie(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Q(e);return{width:t,height:n}},getScale:J,isElement:L,isRTL:function(e){return"rtl"===q(e).direction}};function de(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=Z(e),l=o||a?[...u?X(u):[],...X(t)]:[];l.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=u&&s?function(e,t){let n,r=null;const o=N(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),a();const{left:u,top:l,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-T(l)+"px "+-T(o.clientWidth-(u+d))+"px "+-T(o.clientHeight-(l+f))+"px "+-T(u)+"px",threshold:D(0,_(1,c))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==c){if(!h)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),a}(u,n):null;let f,p=-1,h=null;i&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),u&&!c&&h.observe(u),h.observe(t));let m=c?ne(e):null;return c&&function t(){const r=ne(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(f)}}const fe=S,pe=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=f(n),s=p(n),c="y"===g(n),u=["left","top"].includes(i)?-1:1,l=a&&c?-1:1,h=d(t,e);let{mainAxis:m,crossAxis:y,alignmentAxis:v}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return s&&"number"==typeof v&&(y="end"===s?-1*v:v),c?{x:y*l,y:m*u}:{x:m*u,y:y*l}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},he=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o;const{rects:i,middlewareData:s,placement:c,platform:u,elements:l}=t,{crossAxis:h=!1,alignment:m,allowedPlacements:g=a,autoAlignment:y=!0,...w}=d(e,t),O=void 0!==m||g===a?function(e,t,n){return(e?[...n.filter((t=>p(t)===e)),...n.filter((t=>p(t)!==e))]:n.filter((e=>f(e)===e))).filter((n=>!e||p(n)===e||!!t&&b(n)!==n))}(m||null,y,g):g,x=await S(t,w),k=(null==(n=s.autoPlacement)?void 0:n.index)||0,E=O[k];if(null==E)return{};const P=v(E,i,await(null==u.isRTL?void 0:u.isRTL(l.floating)));if(c!==E)return{reset:{placement:O[0]}};const j=[x[f(E)],x[P[0]],x[P[1]]],_=[...(null==(r=s.autoPlacement)?void 0:r.overflows)||[],{placement:E,overflows:j}],D=O[k+1];if(D)return{data:{index:k+1,overflows:_},reset:{placement:D}};const C=_.map((e=>{const t=p(e.placement);return[e.placement,t&&h?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),T=(null==(o=C.filter((e=>e[2].slice(0,p(e[0])?2:3).every((e=>e<=0))))[0])?void 0:o[0])||C[0][0];return T!==c?{data:{index:k+1,overflows:_},reset:{placement:T}}:{}}}},me=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=d(e,t),u={x:n,y:r},p=await S(t,c),m=g(f(o)),y=h(m);let v=u[y],b=u[m];if(a){const e="y"===y?"bottom":"right";v=l(v+p["y"===y?"top":"left"],v,v-p[e])}if(i){const e="y"===m?"bottom":"right";b=l(b+p["y"===m?"top":"left"],b,b-p[e])}const w=s.fn({...t,[y]:v,[m]:b});return{...w,data:{x:w.x-n,y:w.y-r}}}}},ge=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:l=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:O=!0,...x}=d(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const k=f(o),E=f(s)===s,P=await(null==c.isRTL?void 0:c.isRTL(u.floating)),j=m||(E||!O?[w(s)]:function(e){const t=w(e);return[b(e),t,b(t)]}(s));m||"none"===y||j.push(...function(e,t,n,r){const o=p(e);let a=function(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}(f(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(b)))),a}(s,O,y,P));const _=[s,...j],D=await S(t,x),C=[];let T=(null==(r=a.flip)?void 0:r.overflows)||[];if(l&&C.push(D[k]),h){const e=v(o,i,P);C.push(D[e[0]],D[e[1]])}if(T=[...T,{placement:o,overflows:C}],!C.every((e=>e<=0))){var M,A;const e=((null==(M=a.flip)?void 0:M.index)||0)+1,t=_[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(A=T.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(g){case"bestFit":{var I;const e=null==(I=T.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:I[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},ye=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:c=(()=>{}),...u}=d(e,t),l=await S(t,u),h=f(n),m=p(n),y="y"===g(n),{width:v,height:b}=r.floating;let w,O;"top"===h||"bottom"===h?(w=h,O=m===(await(null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(O=h,w="end"===m?"top":"bottom");const x=b-l[w],k=v-l[O],E=!t.middlewareData.shift;let P=x,j=k;if(y){const e=v-l.left-l.right;j=m||E?i(k,e):e}else{const e=b-l.top-l.bottom;P=m||E?i(x,e):e}if(E&&!m){const e=s(l.left,0),t=s(l.right,0),n=s(l.top,0),r=s(l.bottom,0);y?j=v-2*(0!==e||0!==t?e+t:s(l.left,l.right)):P=b-2*(0!==n||0!==r?n+r:s(l.top,l.bottom))}await c({...t,availableWidth:j,availableHeight:P});const _=await o.getDimensions(a.floating);return v!==_.width||b!==_.height?{reset:{rects:!0}}:{}}}},ve=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=d(e,t);switch(r){case"referenceHidden":{const e=E(await S(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:P(e)}}}case"escaped":{const e=E(await S(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:P(e)}}}default:return{}}}}},be=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:c,middlewareData:u}=t,{element:f,padding:h=0}=d(e,t)||{};if(null==f)return{};const g=O(h),v={x:n,y:r},b=y(o),w=m(b),x=await s.getDimensions(f),k="y"===b,S=k?"top":"left",E=k?"bottom":"right",P=k?"clientHeight":"clientWidth",j=a.reference[w]+a.reference[b]-v[b]-a.floating[w],_=v[b]-a.reference[b],D=await(null==s.getOffsetParent?void 0:s.getOffsetParent(f));let C=D?D[P]:0;C&&await(null==s.isElement?void 0:s.isElement(D))||(C=c.floating[P]||a.floating[w]);const T=j/2-_/2,M=C/2-x[w]/2-1,A=i(g[S],M),I=i(g[E],M),N=A,R=C-x[w]-I,L=C/2-x[w]/2+T,F=l(N,L,R),H=!u.arrow&&null!=p(o)&&L!==F&&a.reference[w]/2-(L<N?A:I)-x[w]/2<0,W=H?L<N?L-N:L-R:0;return{[b]:v[b]+W,data:{[b]:F,centerOffset:L-F-W,...H&&{alignmentOffset:W}},reset:H}}}),we=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:a,strategy:c}=t,{padding:u=2,x:l,y:p}=d(e,t),h=Array.from(await(null==a.getClientRects?void 0:a.getClientRects(r.reference))||[]),m=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let r=null;for(let e=0;e<t.length;e++){const o=t[e];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map((e=>x(j(e))))}(h),y=x(j(h)),v=O(u);const b=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===m.length&&m[0].left>m[1].right&&null!=l&&null!=p)return m.find((e=>l>e.left-v.left&&l<e.right+v.right&&p>e.top-v.top&&p<e.bottom+v.bottom))||y;if(m.length>=2){if("y"===g(n)){const e=m[0],t=m[m.length-1],r="top"===f(n),o=e.top,a=t.bottom,i=r?e.left:t.left,s=r?e.right:t.right;return{top:o,bottom:a,left:i,right:s,width:s-i,height:a-o,x:i,y:o}}const e="left"===f(n),t=s(...m.map((e=>e.right))),r=i(...m.map((e=>e.left))),o=m.filter((n=>e?n.left===r:n.right===t)),a=o[0].top,c=o[o.length-1].bottom;return{top:a,bottom:c,left:r,right:t,width:t-r,height:c-a,x:r,y:a}}return y}},floating:r.floating,strategy:c});return o.reference.x!==b.reference.x||o.reference.y!==b.reference.y||o.reference.width!==b.reference.width||o.reference.height!==b.reference.height?{reset:{rects:b}}:{}}}},Oe=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=d(e,t),l={x:n,y:r},p=g(o),m=h(p);let y=l[m],v=l[p];const b=d(s,t),w="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(c){const e="y"===m?"height":"width",t=a.reference[m]-a.floating[e]+w.mainAxis,n=a.reference[m]+a.reference[e]-w.mainAxis;y<t?y=t:y>n&&(y=n)}if(u){var O,x;const e="y"===m?"width":"height",t=["top","left"].includes(f(o)),n=a.reference[p]-a.floating[e]+(t&&(null==(O=i.offset)?void 0:O[p])||0)+(t?0:w.crossAxis),r=a.reference[p]+a.reference[e]+(t?0:(null==(x=i.offset)?void 0:x[p])||0)-(t?w.crossAxis:0);v<n?v=n:v>r&&(v=r)}return{[m]:y,[p]:v}}}},xe=(e,t,n)=>{const r=new Map,o={platform:le,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),c=await(null==i.isRTL?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:d}=k(u,r,c),f=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:a,fn:m}=s[n],{x:g,y,data:v,reset:b}=await m({x:l,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:i,elements:{reference:e,floating:t}});l=null!=g?g:l,d=null!=y?y:d,p={...p,[a]:{...p[a],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:l,y:d}=k(u,f,c))),n=-1)}return{x:l,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:a})};var ke=n(4883),Se=n(81845),Ee="undefined"!=typeof document?ke.useLayoutEffect:ke.useEffect;function Pe(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Pe(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Pe(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function je(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _e(e,t){const n=je(e);return Math.round(t*n)/n}function De(e){const t=ke.useRef(e);return Ee((()=>{t.current=e})),t}function Ce(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[l,d]=ke.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=ke.useState(r);Pe(f,r)||p(r);const[h,m]=ke.useState(null),[g,y]=ke.useState(null),v=ke.useCallback((e=>{e!==x.current&&(x.current=e,m(e))}),[]),b=ke.useCallback((e=>{e!==k.current&&(k.current=e,y(e))}),[]),w=a||h,O=i||g,x=ke.useRef(null),k=ke.useRef(null),S=ke.useRef(l),E=null!=c,P=De(c),j=De(o),_=De(u),D=ke.useCallback((()=>{if(!x.current||!k.current)return;const e={placement:t,strategy:n,middleware:f};j.current&&(e.platform=j.current),xe(x.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==_.current};C.current&&!Pe(S.current,t)&&(S.current=t,Se.flushSync((()=>{d(t)})))}))}),[f,t,n,j,_]);Ee((()=>{!1===u&&S.current.isPositioned&&(S.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[u]);const C=ke.useRef(!1);Ee((()=>(C.current=!0,()=>{C.current=!1})),[]),Ee((()=>{if(w&&(x.current=w),O&&(k.current=O),w&&O){if(P.current)return P.current(w,O,D);D()}}),[w,O,D,P,E]);const T=ke.useMemo((()=>({reference:x,floating:k,setReference:v,setFloating:b})),[v,b]),M=ke.useMemo((()=>({reference:w,floating:O})),[w,O]),A=ke.useMemo((()=>{const e={position:n,left:0,top:0};if(!M.floating)return e;const t=_e(M.floating,l.x),r=_e(M.floating,l.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...je(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,M.floating,l.x,l.y]);return ke.useMemo((()=>({...l,update:D,refs:T,elements:M,floatingStyles:A})),[l,D,T,M,A])}const Te=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?be({element:n.current,padding:r}).fn(t):{}:n?be({element:n,padding:r}).fn(t):{};var o}}),Me=(e,t)=>({...pe(e),options:[e,t]}),Ae=(e,t)=>({...me(e),options:[e,t]}),Ie=(e,t)=>({...Oe(e),options:[e,t]}),Ne=(e,t)=>({...ge(e),options:[e,t]}),Re=(e,t)=>({...ye(e),options:[e,t]}),Le=(e,t)=>({...he(e),options:[e,t]}),Fe=(e,t)=>({...ve(e),options:[e,t]}),He=(e,t)=>({...we(e),options:[e,t]}),We=(e,t)=>({...Te(e),options:[e,t]})},66984:(e,t,n)=>{"use strict";n.d(t,{$t:()=>s,$u:()=>w,EW:()=>v,F2:()=>y,Go:()=>p,O_:()=>h,Pg:()=>u,RS:()=>o,WZ:()=>x,YE:()=>g,YF:()=>c,cX:()=>f,gR:()=>a,jo:()=>O,nr:()=>l,tZ:()=>m,uo:()=>i});var r=n(86635);function o(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function a(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,r.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function i(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function s(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function c(e){return!(0!==e.mozInputSource||!e.isTrusted)||(d()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function u(e){return!s().includes("jsdom/")&&(!d()&&0===e.width&&0===e.height||d()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function l(){return/apple/i.test(navigator.vendor)}function d(){const e=/android/i;return e.test(i())||e.test(s())}function f(){return i().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function p(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function h(e){return"nativeEvent"in e}function m(e){return e.matches("html,body")}function g(e){return(null==e?void 0:e.ownerDocument)||document}function y(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function v(e){return"composedPath"in e?e.composedPath()[0]:e.target}const b="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function w(e){return(0,r.sb)(e)&&e.matches(b)}function O(e){e.preventDefault(),e.stopPropagation()}function x(e){return!!e&&("combobox"===e.getAttribute("role")&&w(e))}},86635:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof window}function o(e){return i(e)?(e.nodeName||"").toLowerCase():"#document"}function a(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function i(e){return!!r()&&(e instanceof Node||e instanceof a(e).Node)}function s(e){return!!r()&&(e instanceof Element||e instanceof a(e).Element)}function c(e){return!!r()&&(e instanceof HTMLElement||e instanceof a(e).HTMLElement)}function u(e){return!(!r()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof a(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 f(e){return a(e).getComputedStyle(e)}function p(e){if("html"===o(e))return e;const t=e.assignedSlot||e.parentNode||u(e)&&e.host||function(e){var t;return null==(t=(i(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}(e);return u(t)?t.host:t}n.d(t,{$4:()=>p,L9:()=>f,Ng:()=>u,Tc:()=>l,eu:()=>d,mq:()=>o,sb:()=>c,vq:()=>s,zk:()=>a})},97193:(e,t,n)=>{"use strict";n.d(t,{LI:()=>o,RI:()=>a,T9:()=>r,_3:()=>i});Math.min;const r=Math.max,o=Math.round,a=Math.floor;function i(e,t){return"function"==typeof e?e(t):e}},51819:(e,t,n)=>{"use strict";function r(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}n.d(t,{F:()=>r})},10510:(e,t,n)=>{"use strict";n.d(t,{q:()=>r.c});var r=n(9946)},92516:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});let r={};function o(){return r}},87758:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var r=n(51819);const o={y(e,t){const n=e.getFullYear(),o=n>0?n:1-n;return(0,r.F)("yy"===t?o%100:o,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):(0,r.F)(n+1,2)},d:(e,t)=>(0,r.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)=>(0,r.F)(e.getHours()%12||12,t.length),H:(e,t)=>(0,r.F)(e.getHours(),t.length),m:(e,t)=>(0,r.F)(e.getMinutes(),t.length),s:(e,t)=>(0,r.F)(e.getSeconds(),t.length),S(e,t){const n=t.length,o=e.getMilliseconds(),a=Math.trunc(o*Math.pow(10,n-3));return(0,r.F)(a,t.length)}}},78668:(e,t,n)=>{"use strict";n.d(t,{m:()=>a});const r=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},o=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},a={p:o,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],a=n[1],i=n[2];if(!i)return r(e,t);let s;switch(a){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"})}return s.replace("{{date}}",r(a,t)).replace("{{time}}",o(i,t))}}},1108:(e,t,n)=>{"use strict";n.d(t,{G:()=>o});var r=n(29407);function o(e){const t=(0,r.a)(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}},5305:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});var r=n(43329);function o(e,...t){const n=r.w.bind(null,e||t.find((e=>"object"==typeof e)));return t.map(n)}},3265:(e,t,n)=>{"use strict";n.d(t,{Ss:()=>c,ef:()=>i,xM:()=>s});const r=/^D+$/,o=/^Y+$/,a=["D","DD","YY","YYYY"];function i(e){return r.test(e)}function s(e){return o.test(e)}function c(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),a.includes(e))throw new RangeError(r)}},61501:(e,t,n)=>{"use strict";n.d(t,{Cg:()=>a,_P:()=>c,_m:()=>s,my:()=>r,s0:()=>i,w4:()=>o});Math.pow(10,8);const r=6048e5,o=864e5,a=6e4,i=36e5,s=1e3,c=Symbol.for("constructDateFrom")},43329:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});var r=n(61501);function o(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&r._P in e?e[r._P](t):e instanceof Date?new e.constructor(t):new Date(t)}},2831:(e,t,n)=>{"use strict";n.d(t,{m:()=>s});var r=n(1108),o=n(5305),a=n(61501),i=n(6463);function s(e,t,n){const[s,c]=(0,o.x)(n?.in,e,t),u=(0,i.o)(s),l=(0,i.o)(c),d=+u-(0,r.G)(u),f=+l-(0,r.G)(l);return Math.round((d-f)/a.w4)}},11968:(e,t,n)=>{"use strict";n.d(t,{GP:()=>T});var r=n(10510),o=n(92516),a=n(71104),i=n(84543),s=n(51898),c=n(97084),u=n(84485),l=n(51819),d=n(87758);const f="midnight",p="noon",h="morning",m="afternoon",g="evening",y="night",v={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return d.C.y(e,t)},Y:function(e,t,n,r){const o=(0,u.h)(e,r),a=o>0?o:1-o;if("YY"===t){const e=a%100;return(0,l.F)(e,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):(0,l.F)(a,t.length)},R:function(e,t){const n=(0,s.p)(e);return(0,l.F)(n,t.length)},u:function(e,t){const n=e.getFullYear();return(0,l.F)(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,l.F)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,l.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 d.C.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return(0,l.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,c.N)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):(0,l.F)(o,t.length)},I:function(e,t,n){const r=(0,i.s)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,l.F)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):d.C.d(e,t)},D:function(e,t,n){const r=(0,a.F)(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):(0,l.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(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return(0,l.F)(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return(0,l.F)(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return(0,l.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?p:0===r?f: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?g:r>=12?m:r>=4?h:y,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 d.C.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):d.C.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,l.F)(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,l.F)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):d.C.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):d.C.s(e,t)},S:function(e,t){return d.C.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return w(r);case"XXXX":case"XX":return O(r);default:return O(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return w(r);case"xxxx":case"xx":return O(r);default:return O(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+b(r,":");default:return"GMT"+O(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+b(r,":");default:return"GMT"+O(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return(0,l.F)(r,t.length)},T:function(e,t,n){return(0,l.F)(+e,t.length)}};function b(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+(0,l.F)(a,2)}function w(e,t){if(e%60==0){return(e>0?"-":"+")+(0,l.F)(Math.abs(e)/60,2)}return O(e,t)}function O(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+(0,l.F)(Math.trunc(r/60),2)+t+(0,l.F)(r%60,2)}var x=n(78668),k=n(3265),S=n(32370),E=n(29407);const P=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,j=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_=/^'([^]*?)'?$/,D=/''/g,C=/[a-zA-Z]/;function T(e,t,n){const a=(0,o.q)(),i=n?.locale??a.locale??r.q,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,c=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,u=(0,E.a)(e,n?.in);if(!(0,S.f)(u))throw new RangeError("Invalid time value");let l=t.match(j).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,x.m[t])(e,i.formatLong)}return e})).join("").match(P).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:M(e)};if(v[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}}));i.localize.preprocessor&&(l=i.localize.preprocessor(u,l));const d={firstWeekContainsDate:s,weekStartsOn:c,locale:i};return l.map((r=>{if(!r.isToken)return r.value;const o=r.value;(!n?.useAdditionalWeekYearTokens&&(0,k.xM)(o)||!n?.useAdditionalDayOfYearTokens&&(0,k.ef)(o))&&(0,k.Ss)(o,t,String(e));return(0,v[o[0]])(u,o,i.localize,d)})).join("")}function M(e){const t=e.match(_);return t?t[1].replace(D,"'"):e}},71104:(e,t,n)=>{"use strict";n.d(t,{F:()=>i});var r=n(2831),o=n(70228),a=n(29407);function i(e,t){const n=(0,a.a)(e,t?.in);return(0,r.m)(n,(0,o.D)(n))+1}},84543:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});var r=n(61501),o=n(22008),a=n(30569),i=n(29407);function s(e,t){const n=(0,i.a)(e,t?.in),s=+(0,o.b)(n)-+(0,a.w)(n);return Math.round(s/r.my)+1}},51898:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var r=n(43329),o=n(22008),a=n(29407);function i(e,t){const n=(0,a.a)(e,t?.in),i=n.getFullYear(),s=(0,r.w)(n,0);s.setFullYear(i+1,0,4),s.setHours(0,0,0,0);const c=(0,o.b)(s),u=(0,r.w)(n,0);u.setFullYear(i,0,4),u.setHours(0,0,0,0);const l=(0,o.b)(u);return n.getTime()>=c.getTime()?i+1:n.getTime()>=l.getTime()?i:i-1}},97084:(e,t,n)=>{"use strict";n.d(t,{N:()=>s});var r=n(61501),o=n(80337),a=n(73576),i=n(29407);function s(e,t){const n=(0,i.a)(e,t?.in),s=+(0,o.k)(n,t)-+(0,a.b)(n,t);return Math.round(s/r.my)+1}},84485:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r=n(92516),o=n(43329),a=n(80337),i=n(29407);function s(e,t){const n=(0,i.a)(e,t?.in),s=n.getFullYear(),c=(0,r.q)(),u=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??c.firstWeekContainsDate??c.locale?.options?.firstWeekContainsDate??1,l=(0,o.w)(t?.in||e,0);l.setFullYear(s+1,0,u),l.setHours(0,0,0,0);const d=(0,a.k)(l,t),f=(0,o.w)(t?.in||e,0);f.setFullYear(s,0,u),f.setHours(0,0,0,0);const p=(0,a.k)(f,t);return+n>=+d?s+1:+n>=+p?s:s-1}},91947:(e,t,n)=>{"use strict";n.d(t,{fij:()=>a,GPZ:()=>p.GP,qZx:()=>g,Osm:()=>b,SyE:()=>w,uv4:()=>ke,qgA:()=>xe,Hle:()=>Se,avh:()=>Ae,$7z:()=>Ie,glI:()=>Ne,gtt:()=>Re,ol1:()=>s.o});var r=n(43329),o=n(29407);function a(e,t,n){const a=(0,o.a)(e,n?.in);return isNaN(t)?(0,r.w)(n?.in||e,NaN):t?(a.setDate(a.getDate()+t),a):a}var i=n(61501);n(51898),n(2831),n(30569);n(5305);var s=n(6463);var c=n(32370);var u=n(1108),l=n(22008);var d=n(80337);n(70228);var f=n(92516);var p=n(11968),h=n(10510);n(51819);n(71104);function m(){return Object.assign({},(0,f.q)())}function g(e,t){return(0,o.a)(e,t?.in).getHours()}function y(e,t){const n=(0,o.a)(e,t?.in).getDay();return 0===n?7:n}var v=n(84543);function b(e,t){return(0,o.a)(e,t?.in).getMinutes()}function w(e){return(0,o.a)(e).getSeconds()}var O=n(97084);var x=n(84485);n(80658);var k=n(78668),S=n(3265);function E(e,t){const n=function(e){return"function"==typeof e&&e.prototype?.constructor===e}(t)?new t(0):(0,r.w)(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}class P{subPriority=0;validate(e,t){return!0}}class j extends P{constructor(e,t,n,r,o){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,o&&(this.subPriority=o)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}class _ extends P{priority=10;subPriority=-1;constructor(e,t){super(),this.context=e||(e=>(0,r.w)(t,e))}set(e,t){return t.timestampIsSet?e:(0,r.w)(e,E(e,this.context))}}class D{run(e,t,n,r){const o=this.parse(e,t,n,r);return o?{setter:new j(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(e,t,n){return!0}}const C=/^(1[0-2]|0?\d)/,T=/^(3[0-1]|[0-2]?\d)/,M=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,A=/^(5[0-3]|[0-4]?\d)/,I=/^(2[0-3]|[0-1]?\d)/,N=/^(2[0-4]|[0-1]?\d)/,R=/^(1[0-1]|0?\d)/,L=/^(1[0-2]|0?\d)/,F=/^[0-5]?\d/,H=/^[0-5]?\d/,W=/^\d/,B=/^\d{1,2}/,U=/^\d{1,3}/,Y=/^\d{1,4}/,z=/^-?\d+/,V=/^-?\d/,q=/^-?\d{1,2}/,G=/^-?\d{1,3}/,K=/^-?\d{1,4}/,$=/^([+-])(\d{2})(\d{2})?|Z/,X=/^([+-])(\d{2})(\d{2})|Z/,Q=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Z=/^([+-])(\d{2}):(\d{2})|Z/,J=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function ee(e,t){return e?{value:t(e.value),rest:e.rest}:e}function te(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function ne(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const r="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:r*(o*i.s0+a*i.Cg+s*i._m),rest:t.slice(n[0].length)}}function re(e){return te(z,e)}function oe(e,t){switch(e){case 1:return te(W,t);case 2:return te(B,t);case 3:return te(U,t);case 4:return te(Y,t);default:return te(new RegExp("^\\d{1,"+e+"}"),t)}}function ae(e,t){switch(e){case 1:return te(V,t);case 2:return te(q,t);case 3:return te(G,t);case 4:return te(K,t);default:return te(new RegExp("^-?\\d{1,"+e+"}"),t)}}function ie(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function se(e,t){const n=t>0,r=n?t:1-t;let o;if(r<=50)o=e||100;else{const t=r+50;o=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?o:1-o}function ce(e){return e%400==0||e%4==0&&e%100!=0}function ue(e,t,n){const r=(0,o.a)(e,n?.in),a=(0,O.N)(r,n)-t;return r.setDate(r.getDate()-7*a),(0,o.a)(r,n?.in)}function le(e,t,n){const r=(0,o.a)(e,n?.in),a=(0,v.s)(r,n)-t;return r.setDate(r.getDate()-7*a),r}const de=[31,28,31,30,31,30,31,31,30,31,30,31],fe=[31,29,31,30,31,30,31,31,30,31,30,31];function pe(e,t,n){const r=(0,f.q)(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=(0,o.a)(e,n?.in),c=s.getDay(),u=7-i;return a(s,t<0||t>6?t-(c+u)%7:((t%7+7)%7+u)%7-(c+u)%7,n)}function he(e,t,n){const r=(0,o.a)(e,n?.in);return a(r,t-y(r,n),n)}const me={G:new class extends D{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},y:new class extends D{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return ee(oe(4,e),r);case"yo":return ee(n.ordinalNumber(e,{unit:"year"}),r);default:return ee(oe(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const r=e.getFullYear();if(n.isTwoDigitYear){const t=se(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const o="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}},Y:new class extends D{priority=130;parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return ee(oe(4,e),r);case"Yo":return ee(n.ordinalNumber(e,{unit:"year"}),r);default:return ee(oe(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const o=(0,x.h)(e,r);if(n.isTwoDigitYear){const t=se(n.year,o);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,d.k)(e,r)}const a="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(a,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,d.k)(e,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends D{priority=130;parse(e,t){return ae("R"===t?4:t.length,e)}set(e,t,n){const o=(0,r.w)(e,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),(0,l.b)(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends D{priority=130;parse(e,t){return ae("u"===t?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends D{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return oe(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends D{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return oe(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends D{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"M":return ee(te(C,e),r);case"MM":return ee(oe(2,e),r);case"Mo":return ee(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},L:new class extends D{priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"L":return ee(te(C,e),r);case"LL":return ee(oe(2,e),r);case"Lo":return ee(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends D{priority=100;parse(e,t,n){switch(t){case"w":return te(A,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return oe(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return(0,d.k)(ue(e,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends D{priority=100;parse(e,t,n){switch(t){case"I":return te(A,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return oe(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return(0,l.b)(le(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends D{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return te(T,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return oe(t.length,e)}}validate(e,t){const n=ce(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=fe[r]:t>=1&&t<=de[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends D{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return te(M,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return oe(t.length,e)}}validate(e,t){return ce(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends D{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=pe(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends D{priority=90;parse(e,t,n,r){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return ee(oe(t.length,e),o);case"eo":return ee(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=pe(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends D{priority=90;parse(e,t,n,r){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return ee(oe(t.length,e),o);case"co":return ee(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=pe(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends D{priority=90;parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return oe(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return ee(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return ee(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return ee(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return ee(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=he(e,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends D{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(ie(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends D{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(ie(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends D{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(ie(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends D{priority=70;parse(e,t,n){switch(t){case"h":return te(L,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return oe(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},H:new class extends D{priority=70;parse(e,t,n){switch(t){case"H":return te(I,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return oe(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends D{priority=70;parse(e,t,n){switch(t){case"K":return te(R,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return oe(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},k:new class extends D{priority=70;parse(e,t,n){switch(t){case"k":return te(N,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return oe(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends D{priority=60;parse(e,t,n){switch(t){case"m":return te(F,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return oe(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]},s:new class extends D{priority=50;parse(e,t,n){switch(t){case"s":return te(H,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return oe(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]},S:new class extends D{priority=30;parse(e,t){return ee(oe(t.length,e),(e=>Math.trunc(e*Math.pow(10,3-t.length))))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]},X:new class extends D{priority=10;parse(e,t){switch(t){case"X":return ne($,e);case"XX":return ne(X,e);case"XXXX":return ne(Q,e);case"XXXXX":return ne(J,e);default:return ne(Z,e)}}set(e,t,n){return t.timestampIsSet?e:(0,r.w)(e,e.getTime()-(0,u.G)(e)-n)}incompatibleTokens=["t","T","x"]},x:new class extends D{priority=10;parse(e,t){switch(t){case"x":return ne($,e);case"xx":return ne(X,e);case"xxxx":return ne(Q,e);case"xxxxx":return ne(J,e);default:return ne(Z,e)}}set(e,t,n){return t.timestampIsSet?e:(0,r.w)(e,e.getTime()-(0,u.G)(e)-n)}incompatibleTokens=["t","T","X"]},t:new class extends D{priority=40;parse(e){return re(e)}set(e,t,n){return[(0,r.w)(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends D{priority=20;parse(e){return re(e)}set(e,t,n){return[(0,r.w)(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},ge=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ye=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ve=/^'([^]*?)'?$/,be=/''/g,we=/\S/,Oe=/[a-zA-Z]/;function xe(e,t,n,a){const i=()=>(0,r.w)(a?.in||n,NaN),s=m(),c=a?.locale??s.locale??h.q,u=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,l=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0;if(!t)return e?i():(0,o.a)(n,a?.in);const d={firstWeekContainsDate:u,weekStartsOn:l,locale:c},f=[new _(a?.in,n)],p=t.match(ye).map((e=>{const t=e[0];if(t in k.m){return(0,k.m[t])(e,c.formatLong)}return e})).join("").match(ge),g=[];for(let n of p){!a?.useAdditionalWeekYearTokens&&(0,S.xM)(n)&&(0,S.Ss)(n,t,e),!a?.useAdditionalDayOfYearTokens&&(0,S.ef)(n)&&(0,S.Ss)(n,t,e);const r=n[0],o=me[r];if(o){const{incompatibleTokens:t}=o;if(Array.isArray(t)){const e=g.find((e=>t.includes(e.token)||e.token===r));if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${n}\` at the same time`)}else if("*"===o.incompatibleTokens&&g.length>0)throw new RangeError(`The format string mustn't contain \`${n}\` and any other token at the same time`);g.push({token:r,fullToken:n});const a=o.run(e,n,c.match,d);if(!a)return i();f.push(a.setter),e=a.rest}else{if(r.match(Oe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");if("''"===n?n="'":"'"===r&&(n=n.match(ve)[1].replace(be,"'")),0!==e.indexOf(n))return i();e=e.slice(n.length)}}if(e.length>0&&we.test(e))return i();const y=f.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>f.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let v=(0,o.a)(n,a?.in);if(isNaN(+v))return i();const b={};for(const e of y){if(!e.validate(v,d))return i();const t=e.set(v,b,d);Array.isArray(t)?(v=t[0],Object.assign(b,t[1])):v=t}return v}function ke(e,t,n){return(0,c.f)(xe(e,t,new Date,n))}n(90096);n(87758);function Se(e,t){const n=()=>(0,r.w)(t?.in,NaN),a=t?.additionalDigits??2,s=function(e){const t={},n=e.split(Ee.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Ee.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Ee.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=Ee.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let c;if(s.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}(s.date,a);c=function(e,t){if(null===t)return new Date(NaN);const n=e.match(Pe);if(!n)return new Date(NaN);const r=!!n[4],o=De(n[1]),a=De(n[2])-1,i=De(n[3]),s=De(n[4]),c=De(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,c)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}(t,s,c):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Te[t]||(Me(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(Me(e)?366:365)}(t,o)?(e.setUTCFullYear(t,a,Math.max(o,i)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!c||isNaN(+c))return n();const u=+c;let l,d=0;if(s.time&&(d=function(e){const t=e.match(je);if(!t)return NaN;const n=Ce(t[1]),r=Ce(t[2]),o=Ce(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o))return NaN;return n*i.s0+r*i.Cg+1e3*o}(s.time),isNaN(d)))return n();if(!s.timezone){const e=new Date(u+d),n=(0,o.a)(0,t?.in);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}return l=function(e){if("Z"===e)return 0;const t=e.match(_e);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return n*(r*i.s0+o*i.Cg)}(s.timezone),isNaN(l)?n():(0,o.a)(u+d+l,t?.in)}const Ee={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Pe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,je=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,_e=/^([+-])(\d{2})(?::?(\d{2}))?$/;function De(e){return e?parseInt(e):1}function Ce(e){return e&&parseFloat(e.replace(",","."))||0}const Te=[31,null,31,30,31,30,31,31,30,31,30,31];function Me(e){return e%400==0||e%4==0&&e%100!=0}function Ae(e,t,n){const r=(0,o.a)(e,n?.in);return r.setHours(t),r}function Ie(e,t,n){const r=(0,o.a)(e,n?.in);return r.setMilliseconds(t),r}function Ne(e,t,n){const r=(0,o.a)(e,n?.in);return r.setMinutes(t),r}function Re(e,t,n){const r=(0,o.a)(e,n?.in);return r.setSeconds(t),r}n(73576)},80658:(e,t,n)=>{"use strict";function r(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}n.d(t,{$:()=>r})},90096:(e,t,n)=>{"use strict";n.d(t,{R:()=>a});var r=n(5305),o=n(80337);function a(e,t,n){const[a,i]=(0,r.x)(n?.in,e,t);return+(0,o.k)(a,n)==+(0,o.k)(i,n)}},32370:(e,t,n)=>{"use strict";n.d(t,{f:()=>a});var r=n(80658),o=n(29407);function a(e){return!(!(0,r.$)(e)&&"number"!=typeof e||isNaN(+(0,o.a)(e)))}},7277:(e,t,n)=>{"use strict";function r(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}n.d(t,{k:()=>r})},33443:(e,t,n)=>{"use strict";function r(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}n.d(t,{o:()=>r})},57883:(e,t,n)=>{"use strict";function r(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(e=>e.test(i))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(i)));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;return{value:u,rest:t.slice(i.length)}}}n.d(t,{A:()=>r})},20337:(e,t,n)=>{"use strict";function r(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;return{value:i,rest:t.slice(o.length)}}}n.d(t,{K:()=>r})},9946:(e,t,n)=>{"use strict";n.d(t,{c:()=>l});const r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};var o=n(7277);const a={date:(0,o.k)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,o.k)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,o.k)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},i={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};var s=n(33443);const c={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,s.o)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,s.o)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,s.o)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,s.o)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,s.o)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};var u=n(57883);const l={code:"en-US",formatDistance:(e,t,n)=>{let o;const a=r[e];return o="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o},formatLong:a,formatRelative:(e,t,n,r)=>i[e],localize:c,match:{ordinalNumber:(0,n(20337).K)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,u.A)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,u.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,u.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,u.A)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,u.A)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},6463:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});var r=n(29407);function o(e,t){const n=(0,r.a)(e,t?.in);return n.setHours(0,0,0,0),n}},22008:(e,t,n)=>{"use strict";n.d(t,{b:()=>o});var r=n(80337);function o(e,t){return(0,r.k)(e,{...t,weekStartsOn:1})}},30569:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var r=n(43329),o=n(51898),a=n(22008);function i(e,t){const n=(0,o.p)(e,t),i=(0,r.w)(t?.in||e,0);return i.setFullYear(n,0,4),i.setHours(0,0,0,0),(0,a.b)(i)}},80337:(e,t,n)=>{"use strict";n.d(t,{k:()=>a});var r=n(92516),o=n(29407);function a(e,t){const n=(0,r.q)(),a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=(0,o.a)(e,t?.in),s=i.getDay(),c=(s<a?7:0)+s-a;return i.setDate(i.getDate()-c),i.setHours(0,0,0,0),i}},73576:(e,t,n)=>{"use strict";n.d(t,{b:()=>s});var r=n(92516),o=n(43329),a=n(84485),i=n(80337);function s(e,t){const n=(0,r.q)(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,c=(0,a.h)(e,t),u=(0,o.w)(t?.in||e,0);u.setFullYear(c,0,s),u.setHours(0,0,0,0);return(0,i.k)(u,t)}},70228:(e,t,n)=>{"use strict";n.d(t,{D:()=>o});var r=n(29407);function o(e,t){const n=(0,r.a)(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}},29407:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var r=n(43329);function o(e,t){return(0,r.w)(t||e,e)}}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,c),n.loaded=!0,n.exports}c.m=i,c.amdD=function(){throw new Error("define cannot be used indirect")},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.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);c.r(o);var a={};n=n||[null,r({}),r([]),r(r)];for(var i=2&t&&e;"object"==typeof i&&!~n.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,c.d(o,a),o},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,n)=>(c.f[n](e,t),t)),[])),c.u=e=>"chunk-"+({222:"vendor-libphonenumber-js",262:"html-editor",310:"vendor-fontawesome",672:"phone-formatter",722:"code-editor",916:"vendor-icons"}[e]||e)+"."+{103:"f24ccba6509df0300e73",222:"0de1600e4af4d0ae32d3",262:"8ad6747cce730a73dd63",264:"2cef2ef88153e99892c2",310:"72c23e27d9e2f49a3814",672:"e6ffa6e7fb3d26ee06fb",722:"ff4db6f56b773db48894",770:"d0651a15c9eef8d63fae",916:"add8c79ff7f990d82444"}[e]+".js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},a="tocco-:",c.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var i,s;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")==a+n){i=d;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,c.nc&&i.setAttribute("nonce",c.nc),i.setAttribute("data-webpack",a+n),i.src=e),o[e]=[t];var f=(t,n)=>{i.onerror=i.onload=null,clearTimeout(p);var r=o[e];if(delete o[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),s&&document.head.appendChild(i)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),c.p="/",(()=>{var e={458:0};c.f.j=(t,n)=>{var r=c.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=c.p+c.u(t),i=new Error;c.l(a,(n=>{if(c.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,r[1](i)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,i,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in i)c.o(i,r)&&(c.m[r]=i[r]);if(s)s(c)}for(t&&t(n);u<a.length;u++)o=a[u],c.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),c.nc=void 0;return(()=>{"use strict";var e=c(79092),t=c.n(e),n=c(92207),r=c.n(n),o=c(80299),a=c.n(o),i=c(5338),s=c(73082),u="tocco-util/LOG_ERROR",l=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:u,payload:{title:e,description:t,error:n,dateTime:r}}},d=c(31004),f=c(4883),p=c.t(f,2),h=c.n(f),m=c(78418),g=f,y=Symbol.for("react-redux-context"),v="undefined"!=typeof globalThis?globalThis:{};function b(){if(!g.createContext)return{};const e=v[y]??(v[y]=new Map);let t=e.get(g.createContext);return t||(t=g.createContext(null),e.set(g.createContext,t)),t}var w=b(),O=()=>{throw new Error("uSES not initialized!")};var x=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),_=Symbol.for("react.context"),D=Symbol.for("react.server_context"),C=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),N=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),C),R=A;function L(e){if("object"==typeof e&&null!==e){const t=e.$$typeof;switch(t){case x:{const n=e.type;switch(n){case S:case P:case E:case T:case M:return n;default:{const e=n&&n.$$typeof;switch(e){case D:case _:case C:case I:case A:case j:return e;default:return t}}}}case k:return t}}}function F(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:a,areStatePropsEqual:i}){let s,c,u,l,d,f=!1;function p(f,p){const h=!a(p,c),m=!o(f,s,p,c);return s=f,c=p,h&&m?(u=e(s,c),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):h?(e.dependsOnOwnProps&&(u=e(s,c)),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):m?function(){const t=e(s,c),r=!i(t,u);return u=t,r&&(d=n(u,l,c)),d}():d}return function(o,a){return f?p(o,a):(s=o,c=a,u=e(s,c),l=t(r,c),d=n(u,l,c),f=!0,d)}}function H(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function W(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function B(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=W(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=W(o),o=r(t,n)),o},r}}function U(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function Y(e,t,n){return{...n,...e,...t}}function z(e){e()}var V={notify(){},get:()=>[]};function q(e,t){let n,r=V,o=0,a=!1;function i(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){z((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=V)}const u={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return a},trySubscribe:function(){a||(a=!0,s())},tryUnsubscribe:function(){a&&(a=!1,c())},getListeners:()=>r};return u}var G=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),K="undefined"!=typeof navigator&&"ReactNative"===navigator.product,$=G||K?g.useLayoutEffect:g.useEffect;function X(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Q(e,t){if(X(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!X(e[n[r]],t[n[r]]))return!1;return!0}var Z={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},J={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ee={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},te={[N]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[R]:ee};function ne(e){return function(e){return L(e)===A}(e)?ee:te[e.$$typeof]||Z}var re=Object.defineProperty,oe=Object.getOwnPropertyNames,ae=Object.getOwnPropertySymbols,ie=Object.getOwnPropertyDescriptor,se=Object.getPrototypeOf,ce=Object.prototype;function ue(e,t){if("string"!=typeof t){if(ce){const n=se(t);n&&n!==ce&&ue(e,n)}let n=oe(t);ae&&(n=n.concat(ae(t)));const r=ne(e),o=ne(t);for(let a=0;a<n.length;++a){const i=n[a];if(!(J[i]||o&&o[i]||r&&r[i])){const n=ie(t,i);try{re(e,i,n)}catch(e){}}}}return e}var le=O,de=[null,null];function fe(e,t,n,r,o,a){e.current=r,n.current=!1,o.current&&(o.current=null,a())}function pe(e,t){return e===t}var he=function(e,t,n,{pure:r,areStatesEqual:o=pe,areOwnPropsEqual:a=Q,areStatePropsEqual:i=Q,areMergedPropsEqual:s=Q,forwardRef:c=!1,context:u=w}={}){const l=u,d=function(e){return e?"function"==typeof e?B(e):U(e,"mapStateToProps"):H((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?H((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?B(e):U(e,"mapDispatchToProps"):H((e=>({dispatch:e})))}(t),p=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,a=!1;return function(t,n,i){const s=e(t,n,i);return a?r(s,o)||(o=s):(a=!0,o=s),o}}}(e):U(e,"mergeProps"):()=>Y}(n),h=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:o,areStatePropsEqual:i,areOwnPropsEqual:a,areMergedPropsEqual:s};function u(t){const[n,o,a]=g.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),i=g.useMemo((()=>l),[n,l]),s=g.useContext(i),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(s)&&Boolean(s.store);const d=c?t.store:s.store,f=u?s.getServerState:d.getState,p=g.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return F(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[m,y]=g.useMemo((()=>{if(!h)return de;const e=q(d,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,s]),v=g.useMemo((()=>c?s:{...s,subscription:m}),[c,s,m]),b=g.useRef(void 0),w=g.useRef(a),O=g.useRef(void 0),x=g.useRef(!1),k=g.useRef(!1),S=g.useRef(void 0);$((()=>(k.current=!0,()=>{k.current=!1})),[]);const E=g.useMemo((()=>()=>O.current&&a===w.current?O.current:p(d.getState(),a)),[d,a]),P=g.useMemo((()=>e=>m?function(e,t,n,r,o,a,i,s,c,u,l){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!s.current)return;const e=t.getState();let n,p;try{n=r(e,o.current)}catch(e){p=e,f=e}p||(f=null),n===a.current?i.current||u():(a.current=n,c.current=n,i.current=!0,l())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(h,d,m,p,w,b,x,k,O,y,e):()=>{}),[m]);var j,_,D;let C;j=fe,_=[w,b,x,a,O,y],$((()=>j(..._)),D);try{C=le(P,E,f?()=>p(f(),a):E)}catch(e){throw S.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${S.current.stack}\n\n`),e}$((()=>{S.current=void 0,O.current=void 0,b.current=C}));const T=g.useMemo((()=>g.createElement(e,{...C,ref:o})),[o,e,C]);return g.useMemo((()=>h?g.createElement(i.Provider,{value:v},T):T),[i,T,v])}const m=g.memo(u);if(m.WrappedComponent=e,m.displayName=u.displayName=n,c){const t=g.forwardRef((function(e,t){return g.createElement(m,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,ue(t,e)}return ue(m,e)}};var me=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:a="once"}){const i=g.useMemo((()=>{const t=q(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:a}}),[e,r,o,a]),s=g.useMemo((()=>e.getState()),[e]);$((()=>{const{subscription:t}=i;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[i,s]);const c=t||w;return g.createElement(c.Provider,{value:i},n)};var ge;ge=m.useSyncExternalStoreWithSelector,(e=>{le=e})(f.useSyncExternalStore);var ye=c(82274),ve=c.n(ye),be=c(65044),we=c.n(be),Oe=c(65611),xe=c.n(Oe),ke=c(18337),Se=c.n(ke),Ee=c(56994),Pe=c.n(Ee),je=c(5556),_e=c.n(je),De=c(72189),Ce=c.n(De),Te=c(92648),Me=c(96346),Ae=c(91907);const Ie=function(e){return(0,Ae.A)(e)};const Ne={shouldForwardProp:function(e,t){return"string"!=typeof t||Ie(e)},isPropValid:Ie};var Re,Le,Fe=c(17656),He=(0,Me.AH)(Re||(Re=Ce()(["\n ","\n color: ",";\n\n * {\n color: ",";\n text-decoration: ",";\n }\n\n &:hover,\n &:hover *,\n &:focus,\n &:focus * {\n text-decoration: ",";\n }\n\n &:active,\n &:active * {\n text-decoration: ",";\n }\n"])),(0,Fe.Ed)(),Fe.w4.color("text"),Fe.w4.color("text"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}));const We=(0,Me.Ay)(Te.N_).withConfig({shouldForwardProp:function(e){return Ne.isPropValid(e)||"state"===e}})(Le||(Le=Ce()(["\n &:link,\n &:visited {\n color: ","; /* nice2 reset */\n }\n ","\n"])),Fe.t7.color("text"),He);var Be,Ue=c(26396),Ye=c.n(Ue),ze=c(39892),Ve=c.n(ze),qe=c(47850),Ge=c(74848);function Ke(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?Ke(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xe=(0,f.lazy)((function(){return c.e(770).then(c.bind(c,68389))}));const Qe=function(e){return(0,Ge.jsx)(f.Suspense,{fallback:Be||(Be=(0,Ge.jsx)(h().Fragment,{})),children:(0,Ge.jsx)(Xe,$e({},e))})};var Ze=c(22056),Je=c.n(Ze);function et(e,t){var n=(0,f.useState)(e),r=Je()(n,2),o=r[0],a=r[1];return(0,f.useEffect)((function(){var n=setTimeout((function(){a(e)}),t);return function(){clearTimeout(n)}}),[e,t]),[o,a]}function tt(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 nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const rt=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 h().forwardRef((function(r,o){var a=r.value,i=(0,f.useState)(a),s=Je()(i,2),c=s[0],u=s[1],l=et(c,t),d=Je()(l,2),p=d[0],h=d[1],m=(0,f.useRef)(a),g=r[n];return(0,f.useEffect)((function(){c!==a&&c===p&&(u(a),m.current=a,h(a))}),[a]),(0,f.useEffect)((function(){g&&m.current!==p&&(g(p),m.current=p)}),[p,g]),(0,Ge.jsx)(e,nt(nt(nt({},r),{},{value:c},Ye()({},n,u)),{},{ref:o}))}))};var ot=function(){return"matchMedia"in window&&window.matchMedia("(pointer: coarse)").matches};const at=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,f.useEffect)((function(){if(!t.disabled&&e.current&&!ot()){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)};const it=function(){var e=(0,f.useState)(),t=Je()(e,2),n=t[0],r=t[1],o=(0,f.useRef)(),a=(0,f.useCallback)((function(e){if(Array.isArray(e)){var t=e[0];r(t.contentRect)}}),[]),i=(0,f.useCallback)((function(e){e&&(o.current=new ResizeObserver((function(e){return a(e)})),o.current.observe(e))}),[a]);return(0,f.useEffect)((function(){return function(){o.current&&(o.current.disconnect(),o.current=null)}}),[]),[i,n]};const st={useAutofocus:at,useDebounce:et,Debouncer:rt,useUserActive:function(e){var t=(0,f.useRef)(null),n=(0,f.useState)(null),r=Je()(n,2),o=r[0],a=r[1],i=(0,f.useCallback)((function(){o>0&&(t.current=setTimeout((function(){e()}),o))}),[o,e]),s=(0,f.useCallback)((function(){t.current&&clearTimeout(t.current)}),[]);return(0,f.useEffect)((function(){return s(),window.addEventListener("mousemove",i,{once:!0}),window.addEventListener("touchstart",i,{once:!0}),function(){s()}}),[s,i]),[a,s,i]},usePrevious:function(e){var t=(0,f.useRef)();return(0,f.useEffect)((function(){t.current=e}),[e]),t.current},useDidUpdate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,f.useRef)(!1);(0,f.useEffect)((function(){n.current?e():n.current=!0}),t)},useResizeObserver:it};var ct="hidden",ut="responsive",lt={labelVisibility:ut},dt=h().createContext(lt);var ft,pt,ht,mt,gt,yt,vt,bt=(0,Me.AH)(mt||(mt=Ce()(["\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n text-align: center;\n vertical-align: middle;\n white-space: nowrap;\n border: none;\n border-radius: ",";\n margin-right: ",";\n padding: "," ",";\n cursor: pointer;\n ","\n ","\n ","\n ","\n ","\n\n & > span:first-child {\n margin-left: 0;\n }\n ","\n"])),Fe.w4.radii("button"),Fe.hs.space(-1.38),Fe.hs.space(-2.1),Fe.hs.space(0),(0,Fe.Ed)(),(function(e){return e.withoutBackground?(0,Me.AH)(ht||(ht=Ce()(["\n background: transparent;\n"]))):(0,Fe.x5)(e)}),(function(e){return function(e){var t=e.dense,n=e.theme;return t?(0,Me.AH)(ft||(ft=Ce()(["\n line-height: ",";\n padding: "," ",";\n "])),Fe.w4.lineHeight("dense")({theme:n}),Fe.hs.space(-3.5)({theme:n}),Fe.hs.space(-1.5)({theme:n})):null}(e)}),(function(e){return n=(t=e).iconOnly,r=t.removePadding,n||r?(0,Me.AH)(pt||(pt=Ce()(["\n padding: 0;\n margin: 0;\n "]))):null;var t,n,r}),(function(e){return function(e){var t=e.icon,n=e.pending,r=e.iconPosition;if(t||n)return r===Fe.xX.position.APPEND?"\n > span {\n order: -1;\n margin-right: .5rem;\n }\n ":"\n > span {\n margin-left: .5rem;\n }\n "}(e)}),(function(e){var t=e.icon,n=e.labelVisibility,r="\n ".concat(wt," {\n display: none;\n }\n ");return t&&n===ct?r:t&&n===ut&&"\n @media screen and (max-width: 1024px) {\n ".concat(r,"\n }\n ")})),wt=Me.Ay.span.withConfig({displayName:"StyledLabelWrapper"})(gt||(gt=Ce()([""]))),Ot=Me.Ay.button.withConfig({displayName:"StyledButton"})(yt||(yt=Ce()(["\n ","\n"])),bt);Me.Ay.div.withConfig({displayName:"StyledStickyButtonWrapper"})(vt||(vt=Ce()(["\n position: sticky;\n bottom: 0;\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: ",";\n z-index: 1;\n\n ",":last-child {\n margin-right: 0;\n }\n"])),Fe.hs.space(0),Fe.t7.color("paper"),(function(e){return"LEFT"===e.position?"flex-start":"flex-end"}),Ot);const xt=Ot;function kt(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 St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Et=h().forwardRef((function(e,t){var n=e.aria,r=e.ink,o=e.label,a=e.icon,i=e.pending,s=e.look,c=void 0===s?Fe.xX.look.FLAT:s,u=e.iconPosition,l=void 0===u?Fe.xX.position.PREPEND:u,d=e.type,p=void 0===d?"button":d,h=e.iconOnly,m=e.children,g=(0,f.useContext)(dt).labelVisibility;return(0,Ge.jsxs)(xt,St(St(St({ref:t},n),e),{},{ink:r||Fe.xX.ink.BASE,"data-cy":e["data-cy"],title:o,labelVisibility:g,type:p,children:[a&&!i&&(0,Ge.jsx)(qe.A,{icon:a}),i&&(0,Ge.jsx)(Qe,{ink:r||Fe.xX.ink.BASE,look:c,position:l,size:"1em"}),!h&&o?(0,Ge.jsx)(wt,{children:o}):m||"​"]}))}));var Pt;(0,Me.Ay)(Te.N_).withConfig({shouldForwardProp:Ne.isPropValid}).withConfig({displayName:"StyledRouterLinkButton"})(Pt||(Pt=Ce()(["\n text-decoration: none;\n\n &:visited {\n color: ","; /* nice2 reset */\n }\n\n &:hover,\n &:focus {\n text-decoration: none; /* nice2 reset */\n }\n ","\n"])),Fe.t7.color("text"),bt);var jt,_t;const Dt=Me.Ay.button.withConfig({displayName:"StyledButton"})(_t||(_t=Ce()(["\n ","\n ","\n ","\n cursor: pointer;\n"])),(0,Fe.Ed)(),Fe.x5,(function(){return(0,Me.AH)(jt||(jt=Ce()(["\n border-radius: 50%;\n justify-content: center;\n align-items: center;\n padding: ",";\n\n /* ensure that width has at least the size of height */\n min-width: calc(\n 1rem * "," * "," + 2.4 * ","\n );\n box-sizing: border-box;\n"])),Fe.hs.space(-3),Fe.w4.fontSize("base"),Fe.w4.lineHeight("regular"),Fe.hs.space(-3))}));function Ct(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 Tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mt=h().forwardRef((function(e,t){return(0,Ge.jsx)(Dt,Tt(Tt({ref:t,type:"button"},e),{},{children:(0,Ge.jsx)(qe.A,{icon:e.icon})}))}));Mt.propTypes={disabled:_e().bool,icon:_e().string.isRequired,ink:Fe.xX.inkPropTypes,look:_e().oneOf([Fe.xX.look.FLAT,Fe.xX.look.RAISED]),onClick:_e().func,title:_e().string,tabIndex:_e().number,"data-cy":_e().string};const At=Mt;var It,Nt,Rt,Lt,Ft=c(21259),Ht=c.n(Ft),Wt=c(49859),Bt=c.n(Wt),Ut=c(52098),Yt=c.n(Ut),zt=c(30115),Vt=c.n(zt),qt=c(45228),Gt=c.n(qt),Kt="bodyAttributes",$t="htmlAttributes",Xt="titleAttributes",Qt={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},Zt=(Object.keys(Qt).map((function(e){return Qt[e]})),"charset"),Jt="cssText",en="href",tn="http-equiv",nn="innerHTML",rn="itemprop",on="name",an="property",sn="rel",cn="src",un="target",ln={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},dn="defaultTitle",fn="defer",pn="encodeSpecialCharacters",hn="onChangeClientState",mn="titleTemplate",gn=Object.keys(ln).reduce((function(e,t){return e[ln[t]]=t,e}),{}),yn=[Qt.NOSCRIPT,Qt.SCRIPT,Qt.STYLE],vn="data-react-helmet",bn="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},wn=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),On=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},xn=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},kn=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},Sn=function(e){var t=Dn(e,Qt.TITLE),n=Dn(e,mn);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=Dn(e,dn);return t||r||void 0},En=function(e){return Dn(e,hn)||function(){}},Pn=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return On({},e,t)}),{})},jn=function(e,t){return t.filter((function(e){return void 0!==e[Qt.BASE]})).map((function(e){return e[Qt.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var a=r[o].toLowerCase();if(-1!==e.indexOf(a)&&n[a])return t.concat(n)}return t}),[])},_n=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&In("Helmet: "+e+' should be of type "Array". Instead found type "'+bn(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,a=Object.keys(e),i=0;i<a.length;i++){var s=a[i],c=s.toLowerCase();-1===t.indexOf(c)||n===sn&&"canonical"===e[n].toLowerCase()||c===sn&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(s)||s!==nn&&s!==Jt&&s!==rn||(n=s)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][u]&&(o[n][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var a=Object.keys(o),i=0;i<a.length;i++){var s=a[i],c=Gt()({},r[s],o[s]);r[s]=c}return e}),[]).reverse()},Dn=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},Cn=(It=Date.now(),function(e){var t=Date.now();t-It>16?(It=t,e(t)):setTimeout((function(){Cn(e)}),0)}),Tn=function(e){return clearTimeout(e)},Mn="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Cn:c.g.requestAnimationFrame||Cn,An="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Tn:c.g.cancelAnimationFrame||Tn,In=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},Nn=null,Rn=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,a=e.linkTags,i=e.metaTags,s=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,d=e.title,f=e.titleAttributes;Hn(Qt.BODY,r),Hn(Qt.HTML,o),Fn(d,f);var p={baseTag:Wn(Qt.BASE,n),linkTags:Wn(Qt.LINK,a),metaTags:Wn(Qt.META,i),noscriptTags:Wn(Qt.NOSCRIPT,s),scriptTags:Wn(Qt.SCRIPT,u),styleTags:Wn(Qt.STYLE,l)},h={},m={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(m[e]=p[e].oldTags)})),t&&t(),c(e,h,m)},Ln=function(e){return Array.isArray(e)?e.join(""):e},Fn=function(e,t){void 0!==e&&document.title!==e&&(document.title=Ln(e)),Hn(Qt.TITLE,t)},Hn=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(vn),o=r?r.split(","):[],a=[].concat(o),i=Object.keys(t),s=0;s<i.length;s++){var c=i[s],u=t[c]||"";n.getAttribute(c)!==u&&n.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=a.indexOf(c);-1!==l&&a.splice(l,1)}for(var d=a.length-1;d>=0;d--)n.removeAttribute(a[d]);o.length===a.length?n.removeAttribute(vn):n.getAttribute(vn)!==i.join(",")&&n.setAttribute(vn,i.join(","))}},Wn=function(e,t){var n=document.head||document.querySelector(Qt.HEAD),r=n.querySelectorAll(e+"["+vn+"]"),o=Array.prototype.slice.call(r),a=[],i=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===nn)n.innerHTML=t.innerHTML;else if(r===Jt)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(vn,"true"),o.some((function(e,t){return i=t,n.isEqualNode(e)}))?o.splice(i,1):a.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:a}},Bn=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},Un=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[ln[n]||n]=e[n],t}),t)},Yn=function(e,t,n){switch(e){case Qt.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[vn]=!0,o=Un(n,r),[h().createElement(Qt.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=Bn(n),a=Ln(t);return o?"<"+e+" "+vn+'="true" '+o+">"+kn(a,r)+"</"+e+">":"<"+e+" "+vn+'="true">'+kn(a,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case Kt:case $t:return{toComponent:function(){return Un(t)},toString:function(){return Bn(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[vn]=!0,r);return Object.keys(t).forEach((function(e){var n=ln[e]||e;if(n===nn||n===Jt){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),h().createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===nn||e===Jt)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+kn(r[t],n)+'"';return e?e+" "+o:o}),""),a=r.innerHTML||r.cssText||"",i=-1===yn.indexOf(e);return t+"<"+e+" "+vn+'="true" '+o+(i?"/>":">"+a+"</"+e+">")}),"")}(e,t,n)}}}},zn=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,a=e.linkTags,i=e.metaTags,s=e.noscriptTags,c=e.scriptTags,u=e.styleTags,l=e.title,d=void 0===l?"":l,f=e.titleAttributes;return{base:Yn(Qt.BASE,t,r),bodyAttributes:Yn(Kt,n,r),htmlAttributes:Yn($t,o,r),link:Yn(Qt.LINK,a,r),meta:Yn(Qt.META,i,r),noscript:Yn(Qt.NOSCRIPT,s,r),script:Yn(Qt.SCRIPT,c,r),style:Yn(Qt.STYLE,u,r),title:Yn(Qt.TITLE,{title:d,titleAttributes:f},r)}},Vn=Yt()((function(e){return{baseTag:jn([en,un],e),bodyAttributes:Pn(Kt,e),defer:Dn(e,fn),encode:Dn(e,pn),htmlAttributes:Pn($t,e),linkTags:_n(Qt.LINK,[sn,en],e),metaTags:_n(Qt.META,[on,Zt,tn,an,rn],e),noscriptTags:_n(Qt.NOSCRIPT,[nn],e),onChangeClientState:En(e),scriptTags:_n(Qt.SCRIPT,[cn,nn],e),styleTags:_n(Qt.STYLE,[Jt],e),title:Sn(e),titleAttributes:Pn(Xt,e)}}),(function(e){Nn&&An(Nn),e.defer?Nn=Mn((function(){Rn(e,(function(){Nn=null}))})):(Rn(e),Nn=null)}),zn)((function(){return null})),qn=(Nt=Vn,Lt=Rt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!Vt()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case Qt.SCRIPT:case Qt.NOSCRIPT:return{innerHTML:t};case Qt.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,a=e.nestedChildren;return On({},r,((t={})[n.type]=[].concat(r[n.type]||[],[On({},o,this.mapNestedChildrenToProps(n,a))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,a=e.newChildProps,i=e.nestedChildren;switch(r.type){case Qt.TITLE:return On({},o,((t={})[r.type]=i,t.titleAttributes=On({},a),t));case Qt.BODY:return On({},o,{bodyAttributes:On({},a)});case Qt.HTML:return On({},o,{htmlAttributes:On({},a)})}return On({},o,((n={})[r.type]=On({},a),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=On({},t);return Object.keys(e).forEach((function(t){var r;n=On({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return h().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,a=o.children,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[gn[n]||n]=e[n],t}),t)}(xn(o,["children"]));switch(n.warnOnInvalidChildren(e,a),e.type){case Qt.LINK:case Qt.META:case Qt.NOSCRIPT:case Qt.SCRIPT:case Qt.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:i,nestedChildren:a});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:i,nestedChildren:a})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=xn(e,["children"]),r=On({},n);return t&&(r=this.mapChildrenToProps(t,r)),h().createElement(Nt,r)},wn(t,null,[{key:"canUseDOM",set:function(e){Nt.canUseDOM=e}}]),t}(h().Component),Rt.propTypes={base:Bt().object,bodyAttributes:Bt().object,children:Bt().oneOfType([Bt().arrayOf(Bt().node),Bt().node]),defaultTitle:Bt().string,defer:Bt().bool,encodeSpecialCharacters:Bt().bool,htmlAttributes:Bt().object,link:Bt().arrayOf(Bt().object),meta:Bt().arrayOf(Bt().object),noscript:Bt().arrayOf(Bt().object),onChangeClientState:Bt().func,script:Bt().arrayOf(Bt().object),style:Bt().arrayOf(Bt().object),title:Bt().string,titleAttributes:Bt().object,titleTemplate:Bt().string},Rt.defaultProps={defer:!0,encodeSpecialCharacters:!0},Rt.peek=Nt.peek,Rt.rewind=function(){var e=Nt.rewind();return e||(e=zn({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},Lt);qn.renderStatic=qn.rewind;var Gn=c(98166),Kn=c(85735),$n=c.n(Kn),Xn=c(2404),Qn=c.n(Xn),Zn=c(69752),Jn=c.n(Zn),er=function(e){return"object"===$n()(e)&&null!==e},tr=function(e,t){return Jn()(e,(function(e,n,r){Qn()(n,t[r])||(e[r]=er(n)&&er(t[r])?tr(n,t[r]):n)}))};const nr={difference:tr,getOrFirst:Gn.Yd,adjustedHTMLString:function(e){return e?e.replace(/&shy;/g,""):e},roundDecimalPlaces:Gn.O5,copyToClipboard:Gn.lW,isDefined:Gn.O9};var rr=c(42838),or=c.n(rr),ar=["border","border-spacing","padding","margin","text-align","width"];or().addHook("afterSanitizeAttributes",(function(e){if(e&&!(e instanceof SVGElement)&&"function"==typeof e.hasAttribute&&e.hasAttribute("style")){var t=function(e){return ar.map((function(t){var n=e[t];return n&&"string"==typeof n&&!function(e){return/\w\(/.test(e)}(n)?"".concat(t,":").concat(n,";"):null})).filter(Boolean).join("")}(e.style);t?e.setAttribute("style",t):e.removeAttribute("style")}return e}));const ir=function(e){return e?or().sanitize(e,{FORBID_TAGS:["style"],ADD_ATTR:["target"]}):e},sr={sanitizeHtml:ir};var cr=c(60284),ur={error:"exclamation-circle",home:"house-blank"},lr=function(e){return ur[e]||e};const dr=function(e){var t=e.type;return t&&"record"!==t?(0,Ge.jsx)(qe.A,{icon:lr(t)}):null};var fr,pr,hr,mr,gr,yr,vr=["component"],br=Me.Ay.div.withConfig({displayName:"StyledBreadcrumbs"})(fr||(fr=Ce()(["\n background-color: ",";\n padding: "," ",";\n position: relative;\n z-index: 2; /* higher than StyledTether to prevent cover on scroll */\n"])),(function(e){return e.backgroundColor||Fe.w4.color("backgroundBreadcrumbs")(e)}),Fe.hs.space(-.7),Fe.hs.space(.39)),wr=(0,Me.Ay)((function(e){var t=e.component,n=Ve()(e,vr);return h().cloneElement(t,n)})).withConfig({displayName:"StyledBreadcrumbsLink"})(pr||(pr=Ce()(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n cursor: pointer;\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n }\n\n &:hover,\n &:hover * {\n color: ",";\n }\n\n &:focus,\n &:active,\n &:focus *,\n &:active * {\n color: ",";\n }\n"])),Fe.w4.fontWeight("bold"),(function(e){return e.active&&Fe.w4.color("breadcrumbsActive")}),Fe.w4.fontWeight("bold"),(function(e){return e.active&&Fe.w4.color("breadcrumbsActive")}),Fe.w4.color("secondaryLight"),Fe.w4.color("breadcrumbsActive")),Or=Me.Ay.span.withConfig({displayName:"StyledBreadcrumbsTitle"})(hr||(hr=Ce()(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n }\n\n &:active * {\n color: ",";\n }\n"])),Fe.w4.fontWeight("bold"),(function(e){return e.active&&Fe.w4.color("breadcrumbsActive")}),Fe.w4.fontWeight("bold"),(function(e){return e.active&&Fe.w4.color("breadcrumbsActive")}),Fe.w4.color("breadcrumbsActive")),xr=(0,Me.Ay)(cr.oY).withConfig({displayName:"StyledBreadcrumbSeparator"})(mr||(mr=Ce()(["\n margin-left: ",";\n margin-right: ",";\n"])),Fe.hs.space(-2),Fe.hs.space(-2)),kr=Me.Ay.span.withConfig({displayName:"StyledBreadcrumbWrapper"})(gr||(gr=Ce()(["\n "," {\n margin-right: ",";\n }\n"])),qe.i,Fe.hs.space(-1));function Sr(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 Er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Pr=function(e){var t,n=e.pathPrefix,r=void 0===n?"":n,o=e.breadcrumb,a=e.isLast,i=e.onClick,s=e.linkComp,c=o.display||"",u=a?Or:wr,l=a&&{active:"true"},d=void 0!==o.path?{to:"".concat(r,"/").concat(o.path),state:o.state}:{},f=s?(0,Ge.jsx)(s,{}):yr||(yr=(0,Ge.jsx)(We,{}));return(0,Ge.jsx)(cr.Ay.Span,{children:(0,Ge.jsx)(kr,{children:(0,Ge.jsxs)(u,Er(Er(Er({neutral:!0},l),d),{},{onClick:(t=o,function(){i&&!1!==t.clickable&&i(t)}),component:f,children:[(0,Ge.jsx)(dr,{type:o.type}),(0,Ge.jsx)("span",{"data-cy":"breadcrumb-item",dangerouslySetInnerHTML:{__html:sr.sanitizeHtml(c)}})]}))})})};var jr;const _r=function(){return jr||(jr=(0,Ge.jsx)(xr,{breakWords:!0,children:(0,Ge.jsx)(qe.A,{icon:"chevron-right"})}))};var Dr,Cr=function(e){return e.title||e.display},Tr=function(e,t){if(!e||0===e.length)return"Tocco";var n=e.at(-1),r="";switch(n.type){case"create":r="".concat(Cr(n)," - ").concat(t);break;case"detail":r=e.slice(e.length-2).map(Cr).join(" - ");break;default:r=Cr(n)}return nr.adjustedHTMLString(r)},Mr={type:"home",title:"Tocco",display:"Home",path:""};const Ar=function(e){var t=e.intl,n=e.pathPrefix,r=void 0===n?"":n,o=e.breadcrumbsInfo,a=void 0===o?[]:o,i=e.currentView,s=e.backgroundColor,c=e.onClick,u=e.linkComp,l=e.updateDocumentTitle,d=e.showToccoHome,f=[].concat(Ht()(a),Ht()(i?[i]:[]));if(0===f.length)return null;var p,h=f.map((function(e,t){return(0,Ge.jsx)(Pr,{pathPrefix:r,breadcrumb:e,isLast:t===f.length-1,linkComp:u,onClick:c},"breadcrumbItem-".concat(t))})).reduce((function(e,t,n){return[].concat(Ht()(e),[t,(0,Ge.jsx)(_r,{},"icon".concat(n))])}),[]).slice(0,-1);return(0,Ge.jsxs)(br,{backgroundColor:s,children:[l?(0,Ge.jsx)(qn,{defer:!1,children:(0,Ge.jsx)("title",{children:Tr(f,(p="client.component.breadcrumbs.createTitle",t.formatMessage({id:p})))})}):null,(0,Ge.jsxs)(Ge.Fragment,{children:[d&&(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsx)(Pr,{pathPrefix:"",breadcrumb:Mr,isLast:0===f.length,linkComp:u,onClick:c}),Dr||(Dr=(0,Ge.jsx)(_r,{}))]})," ",h]})]})};(0,d.injectIntl)(Ar);var Ir,Nr,Rr=Me.Ay.div.withConfig({displayName:"StyledWrapper"})(Ir||(Ir=Ce()(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,Fe.Ed)(),(function(e){return e.theme.colors.signal.danger}),Fe.t7.color("paper"),Fe.hs.space(-.5));const Lr=function(){return Nr||(Nr=(0,Ge.jsx)(Rr,{children:(0,Ge.jsx)(d.FormattedMessage,{id:"client.component.errorBoundary.text"})}))};var Fr;const Hr=Me.Ay.div.withConfig({displayName:"StyledButtonGroup"})(Fr||(Fr=Ce()(["\n display: flex;\n\n &&& > "," {\n &:not(:first-child) {\n margin-left: -1px;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n &:not(:last-child) {\n margin-right: 0;\n border-right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n"])),xt);var Wr=h().forwardRef((function(e,t){return(0,Ge.jsx)(Hr,{ref:t,children:e.children})}));Wr.propTypes={children:_e().node};const Br=Wr;var Ur=c(90179),Yr=c.n(Ur),zr=c(62193),Vr=c.n(zr),qr=c(66984),Gr=(c(97193),c(86635)),Kr=c(49054),$r=c(81845),Xr=c.n($r),Qr=c(4865);const Zr={...p},Jr=Zr.useInsertionEffect||(e=>e());function eo(e){const t=f.useRef((()=>{0}));return Jr((()=>{t.current=e})),f.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}const to="ArrowUp",no="ArrowDown",ro="ArrowLeft",oo="ArrowRight";var ao="undefined"!=typeof document?f.useLayoutEffect:f.useEffect;const io=[ro,oo],so=[to,no];function co(){return co=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},co.apply(this,arguments)}let uo=!1,lo=0;const fo=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+lo++;const po=Zr.useId||function(){const[e,t]=f.useState((()=>uo?fo():void 0));return ao((()=>{null==e&&t(fo())}),[]),f.useEffect((()=>{uo=!0}),[]),e};const ho=f.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:a}},width:i=14,height:s=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:l,stroke:d,d:p,style:{transform:h,...m}={},...g}=e;const y=po(),[v,b]=f.useState(!1);if(ao((()=>{if(!r)return;"rtl"===(0,Gr.L9)(r).direction&&b(!0)}),[r]),!r)return null;const[w,O]=n.split("-"),x="top"===w||"bottom"===w;let k=l;(x&&null!=a&&a.x||!x&&null!=a&&a.y)&&(k=null);const S=2*u,E=S/2,P=i/2*(c/-8+1),j=s/2*c/4,_=!!p,D=k&&"end"===O?"bottom":"top";let C=k&&"end"===O?"right":"left";k&&v&&(C="end"===O?"left":"right");const T=null!=(null==o?void 0:o.x)?k||o.x:"",M=null!=(null==o?void 0:o.y)?k||o.y:"",A=p||"M0,0 H"+i+" L"+(i-P)+","+(s-j)+" Q"+i/2+","+s+" "+P+","+(s-j)+" Z",I={top:_?"rotate(180deg)":"",left:_?"rotate(90deg)":"rotate(-90deg)",bottom:_?"":"rotate(180deg)",right:_?"rotate(-90deg)":"rotate(90deg)"}[w];return f.createElement("svg",co({},g,{"aria-hidden":!0,ref:t,width:_?i:i+S,height:i,viewBox:"0 0 "+i+" "+(s>i?s:i),style:{position:"absolute",pointerEvents:"none",[C]:T,[D]:M,[w]:x||_?"100%":"calc(100% - "+S/2+"px)",transform:[I,h].filter((e=>!!e)).join(" "),...m}}),S>0&&f.createElement("path",{clipPath:"url(#"+y+")",fill:"none",stroke:d,strokeWidth:S+(p?0:1),d:A}),f.createElement("path",{stroke:S&&!p?g.fill:"none",d:A}),f.createElement("clipPath",{id:y},f.createElement("rect",{x:-E,y:E*(_?-1:1),width:i+S,height:i})))}));function mo(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}const go=f.createContext(null),yo=f.createContext(null),vo=()=>{var e;return(null==(e=f.useContext(go))?void 0:e.id)||null},bo=()=>f.useContext(yo);function wo(e){return"data-floating-ui-"+e}function Oo(e){const t=(0,f.useRef)(e);return ao((()=>{t.current=e})),t}const xo=wo("safe-polygon");function ko(e,t,n){return n&&!(0,qr.Go)(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}const So=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Eo(e,t){const n=(0,Kr.Kr)(e,So());"prev"===t&&n.reverse();const r=n.indexOf((0,qr.RS)((0,qr.YE)(e)));return n.slice(r+1)[0]}function Po(){return Eo(document.body,"next")}function jo(){return Eo(document.body,"prev")}function _o(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!(0,qr.gR)(n,r)}function Do(e){(0,Kr.Kr)(e,So()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Co(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const To={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Mo(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const Ao=f.forwardRef((function(e,t){const[n,r]=f.useState();ao((()=>((0,qr.nr)()&&r("button"),document.addEventListener("keydown",Mo),()=>{document.removeEventListener("keydown",Mo)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[wo("focus-guard")]:"",style:To};return f.createElement("span",co({},e,o))})),Io=f.createContext(null),No=wo("portal");function Ro(e){const{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e,a=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=po(),o=Lo(),[a,i]=f.useState(null),s=f.useRef(null);return ao((()=>()=>{null==a||a.remove(),queueMicrotask((()=>{s.current=null}))}),[a]),ao((()=>{if(!r)return;if(s.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(No,""),e.appendChild(n),s.current=n,i(n)}),[t,r]),ao((()=>{if(!r)return;if(s.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!(0,Gr.vq)(e)&&(e=e.current),e=e||document.body;let a=null;t&&(a=document.createElement("div"),a.id=t,e.appendChild(a));const c=document.createElement("div");c.id=r,c.setAttribute(No,""),e=a||e,e.appendChild(c),s.current=c,i(c)}),[t,n,r,o]),a}({id:n,root:r}),[i,s]=f.useState(null),c=f.useRef(null),u=f.useRef(null),l=f.useRef(null),d=f.useRef(null),p=null==i?void 0:i.modal,h=null==i?void 0:i.open,m=!!i&&!i.modal&&i.open&&o&&!(!r&&!a);return f.useEffect((()=>{if(a&&o&&!p)return a.addEventListener("focusin",e,!0),a.addEventListener("focusout",e,!0),()=>{a.removeEventListener("focusin",e,!0),a.removeEventListener("focusout",e,!0)};function e(e){if(a&&_o(e)){("focusin"===e.type?Co:Do)(a)}}}),[a,o,p]),f.useEffect((()=>{a&&(h||Co(a))}),[h,a]),f.createElement(Io.Provider,{value:f.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:l,afterInsideRef:d,portalNode:a,setFocusManagerState:s})),[o,a])},m&&a&&f.createElement(Ao,{"data-type":"outside",ref:c,onFocus:e=>{if(_o(e,a)){var t;null==(t=l.current)||t.focus()}else{const e=jo()||(null==i?void 0:i.refs.domReference.current);null==e||e.focus()}}}),m&&a&&f.createElement("span",{"aria-owns":a.id,style:To}),a&&$r.createPortal(t,a),m&&a&&f.createElement(Ao,{"data-type":"outside",ref:u,onFocus:e=>{if(_o(e,a)){var t;null==(t=d.current)||t.focus()}else{const t=Po()||(null==i?void 0:i.refs.domReference.current);null==t||t.focus(),(null==i?void 0:i.closeOnFocusOut)&&(null==i||i.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const Lo=()=>f.useContext(Io),Fo="data-floating-ui-focusable";function Ho(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=po(),a=f.useRef({}),[i]=f.useState((()=>mo())),s=null!=vo(),[c,u]=f.useState(r.reference),l=eo(((e,t,r)=>{a.current.openEvent=e?t:void 0,i.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),d=f.useMemo((()=>({setPositionReference:u})),[]),p=f.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return f.useMemo((()=>({dataRef:a,open:t,onOpenChange:l,elements:p,events:i,floatingId:o,refs:d})),[t,l,p,i,o,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[a,i]=f.useState(null),[s,c]=f.useState(null),u=(null==o?void 0:o.reference)||a,l=f.useRef(null),d=bo();ao((()=>{u&&(l.current=u)}),[u]);const p=(0,Qr.we)({...e,elements:{...o,...s&&{reference:s}}}),h=f.useCallback((e=>{const t=(0,Gr.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),p.refs.setReference(t)}),[p.refs]),m=f.useCallback((e=>{((0,Gr.vq)(e)||null===e)&&(l.current=e,i(e)),((0,Gr.vq)(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!(0,Gr.vq)(e))&&p.refs.setReference(e)}),[p.refs]),g=f.useMemo((()=>({...p.refs,setReference:m,setPositionReference:h,domReference:l})),[p.refs,m,h]),y=f.useMemo((()=>({...p.elements,domReference:u})),[p.elements,u]),v=f.useMemo((()=>({...p,...r,refs:g,elements:y,nodeId:t})),[p,g,y,t,r]);return ao((()=>{r.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),f.useMemo((()=>({...p,context:v,refs:g,elements:y})),[p,g,y,v])}const Wo="active",Bo="selected";function Uo(e,t,n){const r=new Map,o="item"===n;let a=e;if(o&&e){const{[Wo]:t,[Bo]:n,...r}=e;a=r}return{..."floating"===n&&{tabIndex:-1,[Fo]:""},...a,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,a]=t;var i;o&&[Wo,Bo].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof a&&(null==(i=r.get(n))||i.push(a),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=a)})),e):e),{})}}var Yo="tocco-app",zo=c(85072),Vo=c.n(zo),qo=c(97825),Go=c.n(qo),Ko=c(77659),$o=c.n(Ko),Xo=c(55056),Qo=c.n(Xo),Zo=c(10540),Jo=c.n(Zo),ea=c(41113),ta=c.n(ea),na=c(2063),ra={};ra.styleTagTransform=ta(),ra.setAttributes=Qo(),ra.insert=$o().bind(null,"head"),ra.domAPI=Go(),ra.insertStyleElement=Jo();Vo()(na.A,ra);na.A&&na.A.locals&&na.A.locals;var oa,aa=c(59386),ia=c.n(aa),sa=Me.Ay.span.withConfig({displayName:"StyledChildrenWrapper"})(oa||(oa=Ce()(["\n cursor: pointer;\n user-select: none;\n"]))),ca=h().forwardRef((function(e,t){var n=e.children,r=e.onOpen;return(0,Ge.jsx)(sa,{onClick:r,ref:t,children:n})}));ca.propTypes={children:_e().any,onOpen:_e().func};const ua=ca;var la=c(91947),da=c(37576),fa=function(){(0,aa.registerLocale)("en",da.A.getDateFnsLocale("en")),(0,aa.registerLocale)("en-US",da.A.getDateFnsLocale("en")),(0,aa.registerLocale)("de-CH",da.A.getDateFnsLocale("de-CH")),(0,aa.registerLocale)("de-DE",da.A.getDateFnsLocale("de-DE")),(0,aa.registerLocale)("de",da.A.getDateFnsLocale("de")),(0,aa.registerLocale)("fr",da.A.getDateFnsLocale("fr")),(0,aa.registerLocale)("fr-CH",da.A.getDateFnsLocale("fr")),(0,aa.registerLocale)("it",da.A.getDateFnsLocale("it")),(0,aa.registerLocale)("it-CH",da.A.getDateFnsLocale("it")),(0,aa.setDefaultLocale)("de")};fa();(0,Me.SL)((0,d.injectIntl)((function(e){var t,n=e.children,r=e.value,o=e.onChange,a=e.intl,i=a.locale,s=(0,f.useRef)(null),c=(0,f.useState)(!1),u=Je()(c,2),l=u[0],d=u[1],p=function(e){var t,n;(d(e),null!==(t=s.current)&&void 0!==t&&t.setPreSelection)&&(null===(n=s.current)||void 0===n||n.setPreSelection(r))};return(0,Ge.jsx)(ia(),{ref:s,selected:r,preSelection:null,onChange:o,showTimeInput:!1,dateFormat:"P",showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,open:l,onFocus:function(){p(!0)},onClickOutside:function(){p(!1)},locale:i,enableTabLoop:!1,customInput:(0,Ge.jsx)(ua,{onOpen:function(){p(!0)},children:n}),todayButton:(t="client.component.datePicker.todayLabel",a.formatMessage({id:t}))})})));var pa,ha,ma,ga,ya=Fe.t7.color("secondaryLight"),va=Fe.t7.color("paper"),ba=Fe.t7.color("text"),wa=Fe.t7.color("secondary"),Oa=Fe.t7.radii("form"),xa=(0,Me.DU)(pa||(pa=Ce()(["\n .react-datepicker-popper {\n && {\n /* higher than StyledHolder and very high value to prevent other elements blocking it when implemented as a widget */\n z-index: 9100;\n margin: 0;\n }\n }\n\n .react-datepicker-wrapper {\n width: 100%;\n\n .react-datepicker__input-container {\n "," {\n color: ",";\n }\n }\n }\n\n .react-datepicker.react-datepicker .react-datepicker__time-container--with-today-button,\n .react-datepicker.react-datepicker .react-datepicker__time-container .react-datepicker__time {\n border-radius: "," !important;\n height: 100%;\n }\n\n .react-datepicker {\n && {\n * {\n box-sizing: content-box; /* prevent box-sizing problems in widgets */\n }\n border-radius: ",";\n border: 1px solid ",";\n background-color: ",";\n ","\n\n .react-datepicker__header {\n ","\n border-radius: 0;\n background-color: ",";\n padding-bottom: 0;\n border-top-left-radius: ",";\n border-top-right-radius: ",";\n }\n\n .react-datepicker__navigation {\n top: 3px;\n }\n\n .react-datepicker__navigation--previous,\n .react-datepicker__navigation--next {\n margin-top: ",";\n }\n ","\n\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow,\n .react-datepicker__navigation-icon:before {\n border-color: "," !important;\n border-width: 1.5px 1.5px 0 0;\n }\n\n .react-datepicker__month-read-view--selected-month,\n .react-datepicker__year-read-view--selected-year {\n font-size: ",";\n font-weight: ",";\n }\n\n .react-datepicker__current-month {\n ","\n }\n\n .react-datepicker__day-name {\n color: ",";\n font-size: ",";\n }\n\n .react-datepicker__day,\n .react-datepicker__day-name {\n border: 1px solid transparent;\n padding: ",";\n outline: none;\n }\n\n .react-datepicker__day.react-datepicker__day--selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\n color: #fff; /* static in all themes */\n\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n }\n\n .react-datepicker__day--keyboard-selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\n }\n\n .react-datepicker__day--today,\n .react-datepicker__month-text--today,\n .react-datepicker__quarter-text--today,\n .react-datepicker__year-text--today {\n border-radius: 50%;\n border-color: ",";\n }\n\n .react-datepicker__today-button {\n ","\n background-color: ",";\n border-top: 0;\n padding-bottom: ",";\n padding-top: 0;\n\n &:hover > button {\n background-color: ",";\n }\n\n &:last-child {\n border-radius: ",";\n }\n }\n\n .react-datepicker__input-time-container {\n display: flex;\n justify-content: center;\n margin: 5px 0;\n align-items: baseline;\n gap: ",";\n background-color: ",";\n\n .react-datepicker-time__input {\n margin: 0;\n\n input {\n width: 80px;\n border: 1px solid ",";\n border-radius: ",";\n text-align: center;\n margin-top: ",";\n margin-bottom: ",";\n }\n }\n }\n\n .react-datepicker-time__header {\n font-size: ",";\n color: ",";\n font-weight: ",";\n padding-bottom: ",";\n }\n\n /* TODO fix stylelint error - https://toccoag.atlassian.net/browse/TOCDEV-9208 */\n /* stylelint-disable-next-line no-duplicate-selectors */\n .react-datepicker__time-container--with-today-button,\n .react-datepicker__time-container .react-datepicker__time {\n border-radius: 0;\n }\n\n .react-datepicker__header__dropdown.react-datepicker__header__dropdown--scroll {\n width: 250px;\n margin: 8px auto;\n display: grid;\n grid-template-columns: 140px 70px;\n }\n\n .react-datepicker__month-read-view,\n .react-datepicker__year-read-view {\n color: ",";\n visibility: visible !important;\n }\n\n .react-datepicker__year-option,\n .react-datepicker__month-option,\n .react-datepicker__month-year-option {\n font-size: ",";\n }\n\n .react-datepicker__year-option:first-of-type,\n .react-datepicker__month-option:first-of-type,\n .react-datepicker__month-year-option:first-of-type,\n .react-datepicker__year-option:last-of-type,\n .react-datepicker__month-option:last-of-type,\n .react-datepicker__month-year-option:last-of-type {\n border-radius: 0;\n }\n\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow {\n top: 8px;\n right: 0;\n width: 5px;\n height: 5px;\n\n /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n right: -8px;\n }\n }\n\n .react-datepicker__year-dropdown-container--select,\n .react-datepicker__month-dropdown-container--select,\n .react-datepicker__month-year-dropdown-container--select,\n .react-datepicker__year-dropdown-container--scroll,\n .react-datepicker__month-dropdown-container--scroll,\n .react-datepicker__month-year-dropdown-container--scroll {\n margin: 0 2px;\n }\n\n .react-datepicker__year-read-view--down-arrow {\n right: -4px;\n\n /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n right: 3px;\n }\n }\n\n .react-datepicker__day-names {\n margin-bottom: 0;\n }\n\n .react-datepicker__day,\n .react-datepicker__month-text,\n .react-datepicker__quarter-text,\n .react-datepicker__year-text {\n color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n border-radius: 50%;\n color: #fff;\n }\n }\n\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box {\n height: 100%;\n border-radius: ",";\n background-color: ",";\n\n ul.react-datepicker__time-list {\n height: 100% !important;\n\n & li.react-datepicker__time-list-item {\n height: auto;\n }\n\n & li.react-datepicker__time-list-item:hover {\n background-color: ",";\n }\n\n & li.react-datepicker__time-list-item--selected {\n background-color: ",";\n }\n }\n }\n\n .react-datepicker__year-dropdown {\n left: 40%;\n top: 45px;\n }\n\n .react-datepicker__navigation--years-upcoming:before {\n border-width: 1.5px 1.5px 0 0;\n border-color: ",";\n border-style: solid;\n content: '';\n display: block;\n position: absolute;\n top: 8px;\n left: 12px;\n height: 5px;\n width: 5px;\n transform: rotate(-45deg);\n }\n\n .react-datepicker__navigation--years-previous:before {\n border-width: 1.5px 1.5px 0 0;\n border-color: ",";\n border-style: solid;\n content: '';\n display: block;\n position: absolute;\n top: 6px;\n left: 12px;\n height: 5px;\n width: 5px;\n transform: rotate(135deg);\n }\n\n .react-datepicker__year-dropdown,\n .react-datepicker__month-dropdown,\n .react-datepicker__month-year-dropdown {\n background-color: ",";\n border-radius: 0;\n border-color: ",";\n box-shadow: 0 0 5px rgb(0 0 0 / 30%);\n }\n\n .react-datepicker__year-option:hover,\n .react-datepicker__month-option:hover,\n .react-datepicker__month-year-option:hover {\n background-color: ",";\n }\n\n .react-datepicker__month-option--selected {\n left: 10px;\n }\n\n .react-datepicker__day--outside-month {\n color: ",";\n }\n\n .react-datepicker__time-container--with-today-button {\n border-color: ",";\n border-radius: ",";\n right: -88px;\n top: -0.5px;\n }\n\n .react-datepicker__header--time {\n display: none;\n }\n }\n }\n"])),qe.i,ba,Fe.t7.radii("form"),Oa,ya,va,(0,Fe.Ed)(),(0,Fe.Ed)(),ya,Oa,Oa,Fe.hs.space(-.6),"\n .react-datepicker__current-month.react-datepicker__current-month--hasYearDropdown.react-datepicker__current-month--hasMonthDropdown {\n // Avoid showing the month and year a second time when it has month and year dropdowns.\n display: none;\n }\n",va,Fe.hs.font(1),Fe.t7.fontWeight("bold"),(0,Fe.Ed)({fontWeight:Fe.t7.fontWeight("bold")}),va,Fe.hs.font(-2),Fe.hs.space(-1.8),wa,wa,wa,ya,ya,ya,wa,(0,Fe.Ed)(),va,Fe.hs.space(-.5),Fe.t7.color("backgroundItemHover"),Oa,Fe.hs.space(-.5),va,Fe.t7.color("border"),Fe.t7.radii("form"),Fe.hs.space(-1),Fe.hs.space(-1),Fe.hs.font(1),va,Fe.t7.fontWeight("bold"),Fe.hs.space(-1),va,Fe.hs.font(0),ba,ya,ya,Fe.t7.radii("form"),va,ya,wa,ba,ba,va,ya,Fe.t7.color("backgroundItemHover"),Fe.t7.color("textDisabled"),Fe.t7.color("border"),Fe.t7.radii("form")),ka=(0,Me.DU)(ha||(ha=Ce()(["\n /****** Global text colors *****/\n \n /* usages: display expressions, freemarker, html content, icon styling, template snippets, ... */\n .text-success {\n color: ",";\n }\n\n .text-info {\n color: ",";\n }\n\n .text-warning {\n color: ",";\n }\n\n .text-danger {\n color: ",";\n }\n\n .text-muted {\n color: ",";\n }\n\n /***** Global text colors *****/\n\n /***** Template Snippets ******/\n\n /* light_cellrenderer */\n .light_cellrenderer {\n font-size: 1.6rem;\n display: inline-block;\n min-width: 1.7rem;\n }\n\n /***** Template Snippets *****/\n"])),Fe.t7.color("signal.success"),Fe.t7.color("signal.info"),Fe.t7.color("signal.warning"),Fe.t7.color("signal.danger"),Fe.t7.color("textDisabled")),Sa=(0,Me.DU)(ma||(ma=Ce()(["\n /* Chrome, Edge, and Safari */\n ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n }\n\n /* Firefox */\n * {\n scrollbar-color: "," transparent; /* Firefox workaround */\n scrollbar-width: thin;\n }\n"])),Fe.t7.color("backgroundScrollbar"),Fe.t7.color("backgroundScrollbarHover"),Fe.t7.color("backgroundScrollbar"));const Ea=function(){return ga||(ga=(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsx)(ka,{}),(0,Ge.jsx)(xa,{}),(0,Ge.jsx)(Sa,{})]}))};var Pa,ja,_a,Da,Ca,Ta=Me.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Pa||(Pa=Ce()(["\n color: ",";\n font-size: ",";\n margin-left: -",";\n"])),Fe.t7.color("text"),Fe.hs.font(1),Fe.hs.space(-2)),Ma=(0,Me.AH)(ja||(ja=Ce()(["\n display: inline-block;\n color: ","; /* nice2 reset */\n line-height: ","; /* nice2 reset */\n text-align: left; /* nice2 reset */\n vertical-align: unset; /* nice2 reset */\n font-size: 100% !important; /* nice2 reset */\n font-weight: "," !important; /* nice2 reset */\n padding: "," "," !important; /* nice2 reset */\n white-space: normal !important; /* nice2 reset */\n border-radius: ",";\n"])),Fe.t7.color("text"),Fe.t7.lineHeight("regular"),Fe.t7.fontWeight("regular"),Fe.hs.space(-3),Fe.hs.space(-1.5),Fe.t7.radii("statusLabel")),Aa=(0,Me.Ay)(cr.oY).withConfig({displayName:"StyledHtmlFormatter"})(_a||(_a=Ce()(["\n &&& {\n ","\n margin: 0 0 ",";\n\n svg {\n margin-right: ",";\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n\n .label {\n ","\n }\n\n .label-danger {\n background-color: "," !important; /* nice2 reset */\n color: ",";\n }\n\n .label-info {\n background-color: "," !important; /* nice2 reset */\n color: ",";\n }\n\n .label-warning {\n background-color: "," !important; /* nice2 reset */\n color: ",";\n }\n\n .label-success {\n background-color: "," !important; /* nice2 reset */\n color: ",";\n }\n\n .label-neutral {\n ","\n background-color: "," !important; /* nice2 reset */\n color: ",";\n }\n\n .label-status {\n border-radius: ",";\n padding: "," ",";\n\n &.filled {\n color: ",";\n background-color: ",";\n }\n }\n\n .label-attention {\n background-color: "," !important; /* nice2 reset */\n padding: "," "," !important;\n\n a {\n text-decoration: underline;\n color: #000; /* same color in all themes */\n }\n }\n }\n"])),(function(e){return(0,cr.gv)(e,"html")}),Fe.hs.space(-1),Fe.hs.space(-1.5),Ma,Fe.t7.color("signal.dangerLight"),Fe.t7.color("textLabel"),Fe.t7.color("signal.infoLight"),Fe.t7.color("textLabel"),Fe.t7.color("signal.warningLight"),Fe.t7.color("textLabel"),Fe.t7.color("signal.successLight"),Fe.t7.color("textLabel"),Ma,Fe.t7.color("signal.dangerLight"),Fe.t7.color("textLabel"),Fe.t7.radii("statusLabel"),Fe.hs.space(-2.1),Fe.hs.space(0),Fe.t7.color("paper"),Fe.t7.color("signal.info"),Fe.t7.color("signal.warningLight"),Fe.hs.space(-1.5),Fe.hs.space(.5)),Ia=Me.Ay.div.withConfig({displayName:"StyledFloatingUi"})(Da||(Da=Ce()(["\n && {\n pointer-events: none; /* prevent flickering of tooltip */\n background-color: ",";\n max-width: 400px;\n z-index: 100000010;\n padding: ",";\n\n * {\n color: ",";\n }\n\n svg path {\n /* style FloatingArrow SVG */\n fill: ",";\n }\n }\n"])),Fe.t7.color("backgroundPopover"),(function(e){return e.rimless?"0":Fe.hs.space(0)}),Fe.t7.color("textPopover"),Fe.t7.color("backgroundPopover")),Na=Me.Ay.div.withConfig({displayName:"StyledBox"})(Ca||(Ca=Ce()(["\n && {\n ",";\n\n &,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n "," {\n color: ",";\n overflow-wrap: break-word;\n }\n }\n"])),(function(e){return e.isPlainHtml&&(0,cr.gv)(e,"html")}),Aa,Fe.t7.color("textPopover"));function Ra(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 La(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ra(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ra(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Fa=function(e){var t=e.children,n=e.content,r=e.isPlainHtml,o=void 0===r||r,a=e.rimless,i=void 0!==a&&a,s=(0,f.useState)(!1),c=Je()(s,2),u=c[0],l=c[1],d=(0,f.useRef)(null),p=Ho({open:u,onOpenChange:l,middleware:[(0,Qr.UU)(),(0,Qr.BN)({padding:20}),(0,Qr.UE)({element:d}),(0,Qr.cY)(5)]}),h=p.refs,m=p.floatingStyles,g=p.context,y=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:a,elements:i}=e,{enabled:s=!0,delay:c=0,handleClose:u=null,mouseOnly:l=!1,restMs:d=0,move:p=!0}=t,h=bo(),m=vo(),g=Oo(u),y=Oo(c),v=Oo(n),b=f.useRef(),w=f.useRef(-1),O=f.useRef(),x=f.useRef(-1),k=f.useRef(!0),S=f.useRef(!1),E=f.useRef((()=>{})),P=f.useRef(!1),j=f.useCallback((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);f.useEffect((()=>{if(s)return a.on("openchange",e),()=>{a.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(w.current),clearTimeout(x.current),k.current=!0,P.current=!1)}}),[s,a]),f.useEffect((()=>{if(!s)return;if(!g.current)return;if(!n)return;function e(e){j()&&r(!1,e,"hover")}const t=(0,qr.YE)(i.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[i.floating,n,r,s,g,j]);const _=f.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=ko(y.current,"close",b.current);o&&!O.current?(clearTimeout(w.current),w.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(w.current),r(!1,e,n))}),[y,r]),D=eo((()=>{E.current(),O.current=void 0})),C=eo((()=>{if(S.current){const e=(0,qr.YE)(i.floating).body;e.style.pointerEvents="",e.removeAttribute(xo),S.current=!1}}));f.useEffect((()=>{if(s&&(0,Gr.vq)(i.domReference)){var e;const t=i.domReference;return n&&t.addEventListener("mouseleave",u),null==(e=i.floating)||e.addEventListener("mouseleave",u),p&&t.addEventListener("mousemove",a,{once:!0}),t.addEventListener("mouseenter",a),t.addEventListener("mouseleave",c),()=>{var e;n&&t.removeEventListener("mouseleave",u),null==(e=i.floating)||e.removeEventListener("mouseleave",u),p&&t.removeEventListener("mousemove",a),t.removeEventListener("mouseenter",a),t.removeEventListener("mouseleave",c)}}function t(){return!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)}function a(e){if(clearTimeout(w.current),k.current=!1,l&&!(0,qr.Go)(b.current)||d>0&&!ko(y.current,"open"))return;const t=ko(y.current,"open",b.current);t?w.current=window.setTimeout((()=>{v.current||r(!0,e,"hover")}),t):r(!0,e,"hover")}function c(e){if(t())return;E.current();const r=(0,qr.YE)(i.floating);if(clearTimeout(x.current),P.current=!1,g.current&&o.current.floatingContext){n||clearTimeout(w.current),O.current=g.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){C(),D(),_(e,!0,"safe-polygon")}});const t=O.current;return r.addEventListener("mousemove",t),void(E.current=()=>{r.removeEventListener("mousemove",t)})}("touch"!==b.current||!(0,qr.gR)(i.floating,e.relatedTarget))&&_(e)}function u(e){t()||o.current.floatingContext&&(null==g.current||g.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){C(),D(),_(e)}})(e))}}),[i,s,e,l,d,p,_,D,C,r,n,v,h,y,g,o]),ao((()=>{var e;if(s&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&j()){S.current=!0;const e=i.floating;if((0,Gr.vq)(i.domReference)&&e){var t;const n=(0,qr.YE)(i.floating).body;n.setAttribute(xo,"");const r=i.domReference,o=null==h||null==(t=h.nodesRef.current.find((e=>e.id===m)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[s,n,m,i,h,g,j]),ao((()=>{n||(b.current=void 0,P.current=!1,D(),C())}),[n,D,C]),f.useEffect((()=>()=>{D(),clearTimeout(w.current),clearTimeout(x.current),C()}),[s,i.domReference,D,C]);const T=f.useMemo((()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){k.current||v.current||r(!0,t,"hover")}l&&!(0,qr.Go)(b.current)||n||0===d||P.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(x.current),"touch"===b.current?o():(P.current=!0,x.current=window.setTimeout(o,d)))}}}),[l,r,n,v,d]),M=f.useMemo((()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){_(e.nativeEvent,!1)}})),[_]);return f.useMemo((()=>s?{reference:T,floating:M}:{}),[s,T,M])}(g,{delay:{open:500,close:0}}),v=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=f.useCallback((t=>Uo(t,e,"reference")),t),a=f.useCallback((t=>Uo(t,e,"floating")),n),i=f.useCallback((t=>Uo(t,e,"item")),r);return f.useMemo((()=>({getReferenceProps:o,getFloatingProps:a,getItemProps:i})),[o,a,i])}([y]),b=v.getReferenceProps,w=v.getFloatingProps;return(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsx)("span",La(La({ref:h.setReference},b()),{},{children:t})),u&&n&&(0,Ge.jsx)(Ro,{children:(0,Ge.jsxs)(Ia,La(La({ref:h.setFloating,style:m,rimless:i},w()),{},{className:Yo,children:[(0,Ge.jsx)(ho,{ref:d,context:g}),(0,Ge.jsx)(Na,{isPlainHtml:o,children:n})]}))})]})},Ha=Fa;var Wa=c(62243),Ba=c.n(Wa),Ua=c(36193),Ya=c.n(Ua),za=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},Va=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},qa={outline:"none"},Ga=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=Va(this,e.call.apply(e,[this].concat(a))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=h().createRef(),r._onFocusIn=function(){r._isMounted&&r._lastBlurEvent&&r.isInsideNode(r.ref.current,r._lastBlurEvent.target)&&!r.isInsideNode(r.ref.current,document.activeElement)&&r.setState({focused:!1},(function(){document.removeEventListener("focusin",r._onFocusIn),r.props.onBlur(r._lastBlurEvent)}))},r.onFocus=function(e){var t=r.props.onFocus;r.state.focused||r.setState({focused:!0},(function(){document.addEventListener("focusin",r._onFocusIn),t(e)}))},r.onBlur=function(e){e.persist(),r._lastBlurEvent=e},r.isInsideNode=function(e,t){return null!=e&&e.contains(t)},Va(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){null!=document&&document.querySelector("body").setAttribute("tabindex","-1"),this._isMounted=!0},t.prototype.componentWillUnmount=function(){this._isMounted=!1,document.removeEventListener("focusin",this._onFocusIn)},t.prototype.focus=function(){var e=this.ref.current;null!=e&&"function"==typeof e.focus&&e.focus()},t.prototype.render=function(){var e=this.props.children,t=this.state.focused,n={onFocus:this.onFocus,onBlur:this.onBlur};return"function"==typeof e?h().cloneElement(e({focused:t,getRef:this.ref}),n):h().createElement("div",za({ref:this.ref,style:qa},n),e)},t}(h().Component);Ga.propTypes={children:Ya().oneOfType([Ya().node,Ya().func]).isRequired,onBlur:Ya().func,onFocus:Ya().func},Ga.defaultProps={onBlur:function(){},onFocus:function(){}};const Ka=Ga;var $a,Xa,Qa,Za,Ja,ei,ti,ni,ri,oi=c(88357),ai=(0,Me.AH)($a||($a=Ce()(["\n align-items: center;\n cursor: ",";\n display: flex;\n width: 100%;\n"])),(function(e){return e.immutable&&"text"})),ii=Me.Ay.label.withConfig({displayName:"StyledEditableWrapper"})(Xa||(Xa=Ce()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),ai),si=(0,Me.AH)(Qa||(Qa=Ce()(["\n background-color: transparent;\n border: 0;\n cursor: ",";\n flex-grow: 1;\n min-height: ",";\n min-width: 0;\n outline: 0;\n padding: 0;\n ","\n\n &::-ms-clear {\n display: none;\n }\n\n &::-webkit-clear-button {\n display: none;\n }\n\n &::-webkit-inner-spin-button {\n display: none;\n }\n\n &[type='number'] {\n appearance: textfield;\n }\n\n &[type='search'] {\n appearance: none;\n }\n\n &:disabled {\n -webkit-text-fill-color: ","; /* Safari fix */\n opacity: 1; /* iOS fix */\n }\n\n /* remove indicators */\n &[type='date'],\n &[type='datetime-local'],\n &[type='month'],\n &[type='time'],\n &[type='week'] {\n appearance: none;\n display: flex;\n\n /* reset margin on smaller screens */\n ::-webkit-date-and-time-value {\n ","\n }\n }\n\n /* allow pointer event only on touch devices */\n @media (pointer: coarse) {\n pointer-events: ",";\n }\n"])),(function(e){return e.immutable&&"text"}),(function(e){return e.immutable?"0":"2.6rem"}),(function(){return(0,Fe.Ed)({color:Fe.t7.color("text")})}),Fe.t7.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),ci=(0,Me.AH)(Za||(Za=Ce()(["\n display: flex;\n align-items: center;\n"]))),ui=Me.Ay.div.withConfig({displayName:"StyledEditableControl"})(Ja||(Ja=Ce()(["\n &&& {\n ","\n }\n"])),ci),li=Me.Ay.span.withConfig({displayName:"StyledEditableValue"})(ei||(ei=Ce()(["\n width: 100%;\n\n && {\n [type='url'] + .input-group-addon > a {\n color: inherit; /* reset bootstrap default */\n }\n\n [type='tel'] + .input-group-addon > a {\n color: inherit; /* reset bootstrap default */\n }\n\n .date-edit {\n .input-group-addon {\n cursor: pointer;\n }\n\n input {\n z-index: 0;\n }\n\n &.disabled {\n input {\n cursor: text;\n }\n }\n\n .right-addon {\n position: relative;\n }\n\n .right-addon input {\n padding-right: 30px;\n }\n\n .reset {\n position: absolute;\n padding-right: 10px;\n padding-top: 5px;\n right: 0;\n color: #999;\n font-size: 18px;\n font-style: normal;\n cursor: pointer;\n }\n\n .reset:hover {\n color: ",";\n }\n }\n }\n"])),Fe.t7.color("signal.danger")),di=function(e){return-1*Math.abs(e)},fi=function(e){var t=[e.street,e.postcode,e.city,e.country].filter(Boolean).map((function(e){var t="object"===$n()(e)&&e.display?e.display:e;return encodeURIComponent(t)})).join("+");return"".concat("https://www.google.com/maps/search/?api=1&query=").concat(t)},pi=c(58156),hi=c.n(pi),mi=Me.Ay.div.withConfig({displayName:"StyledLocationEdit"})(ti||(ti=Ce()(["\n && {\n ","\n position: relative;\n\n div {\n :nth-of-type(1) {\n flex: 0 0 13ch;\n margin-right: ",";\n }\n\n :nth-of-type(2) {\n flex: 1 1 auto;\n }\n }\n\n > span {\n flex: 0 0 auto;\n margin-right: ",";\n color: ",";\n }\n\n "," {\n margin-left: auto;\n }\n\n .react-autosuggest__input {\n ","\n width: 100%;\n }\n\n .react-autosuggest__suggestions-container--open {\n width: calc(100% + 17.5px);\n background-color: ",";\n box-shadow: 0 0 6px ",";\n border: 1px solid ",";\n bottom: -9px;\n left: -10px;\n max-height: 300px;\n overflow-y: auto;\n position: absolute;\n transform: translateY(100%);\n z-index: 2; /* higher than StyledIndicatorsContainerWrapper */\n }\n\n .react-autosuggest__suggestions-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .react-autosuggest__suggestion {\n cursor: pointer;\n padding: 8px 12px;\n }\n\n .react-autosuggest__suggestion--highlighted {\n background-color: ",";\n }\n }\n"])),ai,Fe.hs.space(-2),Fe.hs.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?hi()(n,"colors.textDisabled"):hi()(n,"colors.text")}),ui,si,Fe.t7.color("paper"),Fe.t7.color("signal.info"),Fe.t7.color("secondaryLight"),Fe.t7.color("backgroundItemHover")),gi=(0,Me.Ay)(mi).withConfig({displayName:"StyledAddressEdit"})(ni||(ni=Ce()(["\n && {\n div {\n :nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n }\n"])));function yi(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 vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yi(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const bi=function(e){var t,n=e.onChange,r=e.options,o=e.value,a=e.id,i=e.immutable,s=e.name,c=function(e){return function(t){return t[e]}},u=function(e){var t=e.street,n=e.houseNr;return n?"".concat(t," ").concat(n):t},l=function(e){var t=e.street,n=e.state,r=e.country,o=e.postcode,a=e.city;if(!t)return null;var i=u(e),s=n?"- ".concat(n):"",c=r?"/ ".concat(r.display):"";return(0,Ge.jsxs)(cr.Ay.Span,{children:[i,", ",o," ",a," ",s," ",c]})},d=function(e,t){var o=t.suggestion;!0===o.validationRequired?r.validateLocation(o,n):n(o)},f=function(e){var t=e.value,n=r.locationValues.country,o={street:t};r.fetchSuggestions(o,n)},p={id:a,value:o&&o.street?u(o):"",onChange:(t="street",function(e,r){var a=r.newValue;n(vi(vi({},o),{},Ye()({},t,a)))}),disabled:i};return(0,Ge.jsx)(Ka,{children:function(e){var t,n,o,a,u=e.getRef;return(0,Ge.jsxs)(gi,{immutable:i,name:s,ref:u,children:[(0,Ge.jsx)(Ba(),{suggestions:r.suggestions||[],onSuggestionsFetchRequested:f,getSuggestionValue:c("street"),renderSuggestion:l,onSuggestionsClearRequested:function(){},inputProps:p,onSuggestionSelected:d,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(0,Ge.jsxs)(ui,{children:[r.isLoading&&(ri||(ri=(0,Ge.jsx)(Qe,{size:"1.8rem"}))),(t=r.locationValues,n=t.street,o=t.city,a=t.postcode,Boolean(n&&(o||a))&&(0,Ge.jsx)(oi.Ay,{href:fi(r.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:r.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};var wi=c(69843),Oi=c.n(wi),xi=c(7350),ki=c.n(xi);function Si(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ei(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 Pi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ei(Object(n),!0).forEach((function(t){Si(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ei(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ji(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _i(e,t){if(e){if("string"==typeof e)return ji(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ji(e,t):void 0}}function Di(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||_i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ci(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ti=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Mi(){return Mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mi.apply(this,arguments)}function Ai(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 Ii(e,t){return Ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ii(e,t)}function Ni(e){return Ni=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ni(e)}function Ri(e){return Ri="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},Ri(e)}function Li(e,t){if(t&&("object"===Ri(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Fi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ni(e);if(t){var o=Ni(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Li(this,n)}}function Hi(e){return function(e){if(Array.isArray(e))return ji(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Wi=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Bi="-ms-",Ui="-moz-",Yi="-webkit-",zi="comm",Vi="rule",qi="decl",Gi="@keyframes",Ki=Math.abs,$i=String.fromCharCode,Xi=Object.assign;function Qi(e){return e.trim()}function Zi(e,t,n){return e.replace(t,n)}function Ji(e,t){return e.indexOf(t)}function es(e,t){return 0|e.charCodeAt(t)}function ts(e,t,n){return e.slice(t,n)}function ns(e){return e.length}function rs(e){return e.length}function os(e,t){return t.push(e),e}var as=1,is=1,ss=0,cs=0,us=0,ls="";function ds(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:as,column:is,length:i,return:""}}function fs(e,t){return Xi(ds("",null,null,"",null,null,0),e,{length:-e.length},t)}function ps(){return us=cs>0?es(ls,--cs):0,is--,10===us&&(is=1,as--),us}function hs(){return us=cs<ss?es(ls,cs++):0,is++,10===us&&(is=1,as++),us}function ms(){return es(ls,cs)}function gs(){return cs}function ys(e,t){return ts(ls,e,t)}function vs(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function bs(e){return as=is=1,ss=ns(ls=e),cs=0,[]}function ws(e){return ls="",e}function Os(e){return Qi(ys(cs-1,Ss(91===e?e+2:40===e?e+1:e)))}function xs(e){for(;(us=ms())&&us<33;)hs();return vs(e)>2||vs(us)>3?"":" "}function ks(e,t){for(;--t&&hs()&&!(us<48||us>102||us>57&&us<65||us>70&&us<97););return ys(e,gs()+(t<6&&32==ms()&&32==hs()))}function Ss(e){for(;hs();)switch(us){case e:return cs;case 34:case 39:34!==e&&39!==e&&Ss(us);break;case 40:41===e&&Ss(e);break;case 92:hs()}return cs}function Es(e,t){for(;hs()&&e+us!==57&&(e+us!==84||47!==ms()););return"/*"+ys(t,cs-1)+"*"+$i(47===e?e:hs())}function Ps(e){for(;!vs(ms());)hs();return ys(e,cs)}function js(e){return ws(_s("",null,null,null,[""],e=bs(e),0,[0],e))}function _s(e,t,n,r,o,a,i,s,c){for(var u=0,l=0,d=i,f=0,p=0,h=0,m=1,g=1,y=1,v=0,b="",w=o,O=a,x=r,k=b;g;)switch(h=v,v=hs()){case 40:if(108!=h&&58==es(k,d-1)){-1!=Ji(k+=Zi(Os(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=Os(v);break;case 9:case 10:case 13:case 32:k+=xs(h);break;case 92:k+=ks(gs()-1,7);continue;case 47:switch(ms()){case 42:case 47:os(Cs(Es(hs(),gs()),t,n),c);break;default:k+="/"}break;case 123*m:s[u++]=ns(k)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+l:p>0&&ns(k)-d&&os(p>32?Ts(k+";",r,n,d-1):Ts(Zi(k," ","")+";",r,n,d-2),c);break;case 59:k+=";";default:if(os(x=Ds(k,t,n,u,l,o,s,b,w=[],O=[],d),a),123===v)if(0===l)_s(k,t,x,x,w,a,d,s,O);else switch(99===f&&110===es(k,3)?100:f){case 100:case 109:case 115:_s(e,x,x,r&&os(Ds(e,x,x,0,0,o,s,b,o,w=[],d),O),o,O,d,s,r?w:O);break;default:_s(k,x,x,x,[""],O,0,s,O)}}u=l=p=0,m=y=1,b=k="",d=i;break;case 58:d=1+ns(k),p=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==ps())continue;switch(k+=$i(v),v*m){case 38:y=l>0?1:(k+="\f",-1);break;case 44:s[u++]=(ns(k)-1)*y,y=1;break;case 64:45===ms()&&(k+=Os(hs())),f=ms(),l=d=ns(b=k+=Ps(gs())),v++;break;case 45:45===h&&2==ns(k)&&(m=0)}}return a}function Ds(e,t,n,r,o,a,i,s,c,u,l){for(var d=o-1,f=0===o?a:[""],p=rs(f),h=0,m=0,g=0;h<r;++h)for(var y=0,v=ts(e,d+1,d=Ki(m=i[h])),b=e;y<p;++y)(b=Qi(m>0?f[y]+" "+v:Zi(v,/&\f/g,f[y])))&&(c[g++]=b);return ds(e,t,n,0===o?Vi:s,c,u,l)}function Cs(e,t,n){return ds(e,t,n,zi,$i(us),ts(e,2,-2),0)}function Ts(e,t,n,r){return ds(e,t,n,qi,ts(e,0,r),ts(e,r+1,-1),r)}function Ms(e,t){for(var n="",r=rs(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function As(e,t,n,r){switch(e.type){case"@import":case qi:return e.return=e.return||e.value;case zi:return"";case Gi:return e.return=e.value+"{"+Ms(e.children,r)+"}";case Vi:e.value=e.props.join(",")}return ns(n=Ms(e.children,r))?e.return=e.value+"{"+n+"}":""}var Is=function(e,t,n){for(var r=0,o=0;r=o,o=ms(),38===r&&12===o&&(t[n]=1),!vs(o);)hs();return ys(e,cs)},Ns=function(e,t){return ws(function(e,t){var n=-1,r=44;do{switch(vs(r)){case 0:38===r&&12===ms()&&(t[n]=1),e[n]+=Is(cs-1,t,n);break;case 2:e[n]+=Os(r);break;case 4:if(44===r){e[++n]=58===ms()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=$i(r)}}while(r=hs());return e}(bs(e),t))},Rs=new WeakMap,Ls=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Rs.get(n))&&!r){Rs.set(e,!0);for(var o=[],a=Ns(t,o),i=n.props,s=0,c=0;s<a.length;s++)for(var u=0;u<i.length;u++,c++)e.props[c]=o[s]?a[s].replace(/&\f/g,i[u]):i[u]+" "+a[s]}}},Fs=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Hs(e,t){switch(function(e,t){return 45^es(e,0)?(((t<<2^es(e,0))<<2^es(e,1))<<2^es(e,2))<<2^es(e,3):0}(e,t)){case 5103:return Yi+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Yi+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Yi+e+Ui+e+Bi+e+e;case 6828:case 4268:return Yi+e+Bi+e+e;case 6165:return Yi+e+Bi+"flex-"+e+e;case 5187:return Yi+e+Zi(e,/(\w+).+(:[^]+)/,Yi+"box-$1$2"+Bi+"flex-$1$2")+e;case 5443:return Yi+e+Bi+"flex-item-"+Zi(e,/flex-|-self/,"")+e;case 4675:return Yi+e+Bi+"flex-line-pack"+Zi(e,/align-content|flex-|-self/,"")+e;case 5548:return Yi+e+Bi+Zi(e,"shrink","negative")+e;case 5292:return Yi+e+Bi+Zi(e,"basis","preferred-size")+e;case 6060:return Yi+"box-"+Zi(e,"-grow","")+Yi+e+Bi+Zi(e,"grow","positive")+e;case 4554:return Yi+Zi(e,/([^-])(transform)/g,"$1"+Yi+"$2")+e;case 6187:return Zi(Zi(Zi(e,/(zoom-|grab)/,Yi+"$1"),/(image-set)/,Yi+"$1"),e,"")+e;case 5495:case 3959:return Zi(e,/(image-set\([^]*)/,Yi+"$1$`$1");case 4968:return Zi(Zi(e,/(.+:)(flex-)?(.*)/,Yi+"box-pack:$3"+Bi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Yi+e+e;case 4095:case 3583:case 4068:case 2532:return Zi(e,/(.+)-inline(.+)/,Yi+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ns(e)-1-t>6)switch(es(e,t+1)){case 109:if(45!==es(e,t+4))break;case 102:return Zi(e,/(.+:)(.+)-([^]+)/,"$1"+Yi+"$2-$3$1"+Ui+(108==es(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ji(e,"stretch")?Hs(Zi(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==es(e,t+1))break;case 6444:switch(es(e,ns(e)-3-(~Ji(e,"!important")&&10))){case 107:return Zi(e,":",":"+Yi)+e;case 101:return Zi(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Yi+(45===es(e,14)?"inline-":"")+"box$3$1"+Yi+"$2$3$1"+Bi+"$2box$3")+e}break;case 5936:switch(es(e,t+11)){case 114:return Yi+e+Bi+Zi(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Yi+e+Bi+Zi(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Yi+e+Bi+Zi(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Yi+e+Bi+e+e}return e}var Ws=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case qi:e.return=Hs(e.value,e.length);break;case Gi:return Ms([fs(e,{value:Zi(e.value,"@","@"+Yi)})],r);case Vi:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ms([fs(e,{props:[Zi(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ms([fs(e,{props:[Zi(t,/:(plac\w+)/,":"+Yi+"input-$1")]}),fs(e,{props:[Zi(t,/:(plac\w+)/,":-moz-$1")]}),fs(e,{props:[Zi(t,/:(plac\w+)/,Bi+"input-$1")]})],r)}return""}))}}];const Bs=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||Ws;var o,a,i={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)}));var c,u,l,d,f=[As,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[Ls,Fs].concat(r,f),l=rs(u),function(e,t,n,r){for(var o="",a=0;a<l;a++)o+=u[a](e,t,n,r)||"";return o});a=function(e,t,n,r){c=n,function(e){Ms(js(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Wi({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return h.sheet.hydrate(s),h};var Us=c(4146),Ys=c.n(Us);var zs=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};const Vs=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};const qs={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};const Gs=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}};var Ks=/[A-Z]|^ms/g,$s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xs=function(e){return 45===e.charCodeAt(1)},Qs=function(e){return null!=e&&"boolean"!=typeof e},Zs=Gs((function(e){return Xs(e)?e:e.replace(Ks,"-$&").toLowerCase()})),Js=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace($s,(function(e,t,n){return tc={name:t,styles:n,next:tc},t}))}return 1===qs[e]||Xs(e)||"number"!=typeof t||0===t?t:t+"px"};function ec(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return tc={name:n.name,styles:n.styles,next:tc},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)tc={name:r.name,styles:r.styles,next:tc},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ec(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":Qs(i)&&(r+=Zs(a)+":"+Js(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=ec(e,t,i);switch(a){case"animation":case"animationName":r+=Zs(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var c=0;c<i.length;c++)Qs(i[c])&&(r+=Zs(a)+":"+Js(a,i[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=tc,a=n(e);return tc=o,ec(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var tc,nc=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var rc=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";tc=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=ec(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=ec(n,t,e[i]),r&&(o+=a[i]);nc.lastIndex=0;for(var s,c="";null!==(s=nc.exec(o));)c+="-"+s[1];return{name:Vs(o)+c,styles:o,next:tc}},oc=!!f.useInsertionEffect&&f.useInsertionEffect,ac=oc||function(e){return e()},ic={}.hasOwnProperty,sc=(0,f.createContext)("undefined"!=typeof HTMLElement?Bs({key:"css"}):null);sc.Provider;var cc=function(e){return(0,f.forwardRef)((function(t,n){var r=(0,f.useContext)(sc);return e(t,r,n)}))},uc=(0,f.createContext)({});var lc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",dc=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;zs(t,n,r);ac((function(){return function(e,t,n){zs(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)}));return null},fc=cc((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[lc],a=[r],i="";"string"==typeof e.className?i=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var s=rc(a,void 0,(0,f.useContext)(uc));i+=t.key+"-"+s.name;var c={};for(var u in e)ic.call(e,u)&&"css"!==u&&u!==lc&&(c[u]=e[u]);return c.ref=n,c.className=i,(0,f.createElement)(f.Fragment,null,(0,f.createElement)(dc,{cache:t,serialized:s,isStringTag:"string"==typeof o}),(0,f.createElement)(o,c))}));var pc=function(e,t){var n=arguments;if(null==t||!ic.call(t,"css"))return f.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=fc,o[1]=function(e,t){var n={};for(var r in t)ic.call(t,r)&&(n[r]=t[r]);return n[lc]=e,n}(e,t);for(var a=2;a<r;a++)o[a]=n[a];return f.createElement.apply(null,o)};function hc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return rc(t)}Math.min,Math.max;const mc=["top","right","bottom","left"];mc.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function gc(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function yc(e){if(null==e)return window;if(!gc(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function vc(e){return yc(e).getComputedStyle(e)}function bc(e){return gc(e)?"":e?(e.nodeName||"").toLowerCase():""}function wc(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function Oc(e){return e instanceof yc(e).HTMLElement}function xc(e){return e instanceof yc(e).Element}function kc(e){return"undefined"!=typeof ShadowRoot&&(e instanceof yc(e).ShadowRoot||e instanceof ShadowRoot)}function Sc(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=vc(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ec(){return!/^((?!chrome|android).)*safari/i.test(wc())}function Pc(e){return["html","body","#document"].includes(bc(e))}Math.min,Math.max;const jc=Math.round;function _c(e,t,n){var r,o,a,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let c=1,u=1;t&&Oc(e)&&(c=e.offsetWidth>0&&jc(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&jc(s.height)/e.offsetHeight||1);const l=xc(e)?yc(e):window,d=!Ec()&&n,f=(s.left+(d&&null!=(r=null==(o=l.visualViewport)?void 0:o.offsetLeft)?r:0))/c,p=(s.top+(d&&null!=(a=null==(i=l.visualViewport)?void 0:i.offsetTop)?a:0))/u,h=s.width/c,m=s.height/u;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function Dc(e){return(t=e,(t instanceof yc(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function Cc(e){if("html"===bc(e))return e;const t=e.assignedSlot||e.parentNode||(kc(e)?e.host:null)||Dc(e);return kc(t)?t.host:t}function Tc(e){const t=Cc(e);return Pc(t)?e.ownerDocument.body:Oc(t)&&Sc(t)?t:Tc(t)}function Mc(e,t){var n;void 0===t&&(t=[]);const r=Tc(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=yc(r),i=o?[a].concat(a.visualViewport||[],Sc(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(Mc(i))}const Ac=f.useLayoutEffect;var Ic=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Nc=function(){};function Rc(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Lc(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=[].concat(r);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&a.push("".concat(Rc(e,i)));return a.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Fc=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===Ri(e)&&null!==e?[e]:[];var t},Hc=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Pi({},Ci(e,Ic))},Wc=function(e,t,n){var r=e.cx,o=e.getStyles,a=e.getClassNames,i=e.className;return{css:o(t,e),className:r(null!=n?n:{},a(t,e),i)}};function Bc(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Uc(e){return Bc(e)?window.pageYOffset:e.scrollTop}function Yc(e,t){Bc(e)?window.scrollTo(0,t):e.scrollTop=t}function zc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Nc,o=Uc(e),a=t-o,i=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(i+=10,o,a,n);Yc(e,s),i<n?window.requestAnimationFrame(t):r(e)}()}function Vc(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Yc(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Yc(e,Math.max(t.offsetTop-o,0))}function qc(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Gc=!1,Kc={get passive(){return Gc=!0}},$c="undefined"!=typeof window?window:{};$c.addEventListener&&$c.removeEventListener&&($c.addEventListener("p",Nc,Kc),$c.removeEventListener("p",Nc,!1));var Xc=Gc;function Qc(e){return null!=e}function Zc(e,t,n){return e?t:n}var Jc=["children","innerProps"],eu=["children","innerProps"];function tu(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,s=e.controlHeight,c=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var l,d=c.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,h=f.height,m=f.top,g=n.offsetParent.getBoundingClientRect().top,y=i?window.innerHeight:Bc(l=c)?window.innerHeight:l.clientHeight,v=Uc(c),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),O=g-w,x=y-m,k=O+v,S=d-v-m,E=p-y+v+b,P=v+m-w,j=160;switch(o){case"auto":case"bottom":if(x>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!i)return a&&zc(c,E,j),{placement:"bottom",maxHeight:t};if(!i&&S>=r||i&&x>=r)return a&&zc(c,E,j),{placement:"bottom",maxHeight:i?x-b:S-b};if("auto"===o||i){var _=t,D=i?O:k;return D>=r&&(_=Math.min(D-b-s,t)),{placement:"top",maxHeight:_}}if("bottom"===o)return a&&Yc(c,E),{placement:"bottom",maxHeight:t};break;case"top":if(O>=h)return{placement:"top",maxHeight:t};if(k>=h&&!i)return a&&zc(c,P,j),{placement:"top",maxHeight:t};if(!i&&k>=r||i&&O>=r){var C=t;return(!i&&k>=r||i&&O>=r)&&(C=i?O-w:k-w),a&&zc(c,P,j),{placement:"top",maxHeight:C}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var nu,ru=function(e){return"auto"===e?"bottom":e},ou=(0,f.createContext)(null),au=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,a=e.menuPosition,i=e.menuShouldScrollIntoView,s=e.theme,c=((0,f.useContext)(ou)||{}).setPortalPlacement,u=(0,f.useRef)(null),l=Di((0,f.useState)(r),2),d=l[0],p=l[1],h=Di((0,f.useState)(null),2),m=h[0],g=h[1],y=s.spacing.controlHeight;return Ac((function(){var e=u.current;if(e){var t="fixed"===a,s=tu({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:i&&!t,isFixedPosition:t,controlHeight:y});p(s.maxHeight),g(s.placement),null==c||c(s.placement)}}),[r,o,a,i,n,c,y]),t({ref:u,placerProps:Pi(Pi({},e),{},{placement:m||ru(o),maxHeight:d})})},iu=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return pc("div",Mi({},Wc(e,"menu",{menu:!0}),{ref:n},r),t)},su=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Pi({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},cu=su,uu=su,lu=["size"],du=["innerProps","isRtl","size"];var fu,pu,hu={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},mu=function(e){var t=e.size,n=Ci(e,lu);return pc("svg",Mi({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:hu},n))},gu=function(e){return pc(mu,Mi({size:20},e),pc("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},yu=function(e){return pc(mu,Mi({size:20},e),pc("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},vu=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return Pi({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*o,":hover":{color:n?a.neutral80:a.neutral40}})},bu=vu,wu=vu,Ou=function(){var e=hc.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(nu||(fu=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],pu||(pu=fu.slice(0)),nu=Object.freeze(Object.defineProperties(fu,{raw:{value:Object.freeze(pu)}})))),xu=function(e){var t=e.delay,n=e.offset;return pc("span",{css:hc({animation:"".concat(Ou," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ku=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,a=e.innerProps,i=e.menuIsOpen;return pc("div",Mi({ref:o},Wc(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":i}),a,{"aria-disabled":n||void 0}),t)},Su=["data"],Eu=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,a=e.Heading,i=e.headingProps,s=e.innerProps,c=e.label,u=e.theme,l=e.selectProps;return pc("div",Mi({},Wc(e,"group",{group:!0}),s),pc(a,Mi({},i,{selectProps:l,theme:u,getStyles:r,getClassNames:o,cx:n}),c),pc("div",null,t))},Pu=["innerRef","isDisabled","isHidden","inputClassName"],ju={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},_u={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Pi({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ju)},Du=function(e){return Pi({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},ju)},Cu=function(e){var t=e.cx,n=e.value,r=Hc(e),o=r.innerRef,a=r.isDisabled,i=r.isHidden,s=r.inputClassName,c=Ci(r,Pu);return pc("div",Mi({},Wc(e,"input",{"input-container":!0}),{"data-value":n||""}),pc("input",Mi({className:t({input:!0},s),ref:o,style:Du(i),disabled:a},c)))},Tu=function(e){var t=e.children,n=e.innerProps;return pc("div",n,t)};var Mu=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,a=e.isDisabled,i=e.removeProps,s=e.selectProps,c=n.Container,u=n.Label,l=n.Remove;return pc(c,{data:r,innerProps:Pi(Pi({},Wc(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:s},pc(u,{data:r,innerProps:Pi({},Wc(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),pc(l,{data:r,innerProps:Pi(Pi({},Wc(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},i),selectProps:s}))},Au=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.innerRef,i=e.innerProps;return pc("div",Mi({},Wc(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:a,"aria-disabled":n},i),t)},Iu=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return pc("div",Mi({},Wc(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},Nu={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return pc("div",Mi({},Wc(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||pc(gu,null))},Control:ku,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return pc("div",Mi({},Wc(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||pc(yu,null))},DownChevron:yu,CrossIcon:gu,Group:Eu,GroupHeading:function(e){var t=Hc(e);t.data;var n=Ci(t,Su);return pc("div",Mi({},Wc(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return pc("div",Mi({},Wc(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return pc("span",Mi({},t,Wc(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:Cu,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,a=Ci(e,du);return pc("div",Mi({},Wc(Pi(Pi({},a),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),pc(xu,{delay:0,offset:n}),pc(xu,{delay:160,offset:!0}),pc(xu,{delay:320,offset:!n}))},Menu:iu,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return pc("div",Mi({},Wc(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,a=e.menuPlacement,i=e.menuPosition,s=(0,f.useRef)(null),c=(0,f.useRef)(null),u=Di((0,f.useState)(ru(a)),2),l=u[0],d=u[1],p=(0,f.useMemo)((function(){return{setPortalPlacement:d}}),[]),h=Di((0,f.useState)(null),2),m=h[0],g=h[1],y=(0,f.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===i?0:window.pageYOffset,n=e[l]+t;n===(null==m?void 0:m.offset)&&e.left===(null==m?void 0:m.rect.left)&&e.width===(null==m?void 0:m.rect.width)||g({offset:n,rect:e})}}),[r,i,l,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);Ac((function(){y()}),[y]);var v=(0,f.useCallback)((function(){"function"==typeof c.current&&(c.current(),c.current=null),r&&s.current&&(c.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=!0,animationFrame:s=!1}=r,c=o&&!s,u=c||a?[...xc(e)?Mc(e):e.contextElement?Mc(e.contextElement):[],...Mc(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));let l,d=null;if(i){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),xc(e)&&!s&&d.observe(e),xc(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?_c(e):null;return s&&function t(){const r=_c(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{c&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(l)}}(r,s.current,y,{elementResize:"ResizeObserver"in window}))}),[r,y]);Ac((function(){v()}),[v]);var b=(0,f.useCallback)((function(e){s.current=e,v()}),[v]);if(!t&&"fixed"!==i||!m)return null;var w=pc("div",Mi({ref:b},Wc(Pi(Pi({},e),{},{offset:m.offset,position:i,rect:m.rect}),"menuPortal",{"menu-portal":!0}),o),n);return pc(ou.Provider,{value:p},t?(0,$r.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=Ci(e,eu);return pc("div",Mi({},Wc(Pi(Pi({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=Ci(e,Jc);return pc("div",Mi({},Wc(Pi(Pi({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Mu,MultiValueContainer:Tu,MultiValueLabel:Tu,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return pc("div",Mi({role:"button"},n),t||pc(gu,{size:14}))},Option:Au,Placeholder:function(e){var t=e.children,n=e.innerProps;return pc("div",Mi({},Wc(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return pc("div",Mi({},Wc(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:Iu,ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return pc("div",Mi({},Wc(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Ru=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Lu(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||Ru(r)&&Ru(o)))return!1;var r,o;return!0}for(var Fu={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Hu=function(e){return pc("span",Mi({css:Fu},e))},Wu={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,a=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=void 0===o?"":o,i=e.selectValue,s=e.isDisabled,c=e.isSelected,u=e.isAppleDevice,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(a," focused, ").concat(l(i,n),".");if("menu"===t&&u){var d=s?" disabled":"",f="".concat(c?" selected":"").concat(d);return"".concat(a).concat(f,", ").concat(l(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Bu=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=e.selectValue,s=e.selectProps,c=e.id,u=e.isAppleDevice,l=s.ariaLiveMessages,d=s.getOptionLabel,p=s.inputValue,h=s.isMulti,m=s.isOptionDisabled,g=s.isSearchable,y=s.menuIsOpen,v=s.options,b=s.screenReaderStatus,w=s.tabSelectsValue,O=s.isLoading,x=s["aria-label"],k=s["aria-live"],S=(0,f.useMemo)((function(){return Pi(Pi({},Wu),l||{})}),[l]),E=(0,f.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.options,a=t.removedValue,s=t.removedValues,c=t.value,u=a||r||(e=c,Array.isArray(e)?null:e),l=u?d(u):"",f=o||s||void 0,p=f?f.map(d):[],h=Pi({isDisabled:u&&m(u,i),label:l,labels:p},t);n=S.onChange(h)}return n}),[t,S,m,i,d]),P=(0,f.useMemo)((function(){var e="",t=n||r,a=!!(n&&i&&i.includes(n));if(t&&S.onFocus){var s={focused:t,label:d(t),isDisabled:m(t,i),isSelected:a,options:o,context:t===n?"menu":"value",selectValue:i,isAppleDevice:u};e=S.onFocus(s)}return e}),[n,r,d,m,S,o,i,u]),j=(0,f.useMemo)((function(){var e="";if(y&&v.length&&!O&&S.onFilter){var t=b({count:o.length});e=S.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,y,S,v,b,O]),_="initial-input-focus"===(null==t?void 0:t.action),D=(0,f.useMemo)((function(){var e="";if(S.guidance){var t=r?"value":y?"menu":"input";e=S.guidance({"aria-label":x,context:t,isDisabled:n&&m(n,i),isMulti:h,isSearchable:g,tabSelectsValue:w,isInitialFocus:_})}return e}),[x,n,r,h,m,g,y,S,i,w,_]),C=pc(f.Fragment,null,pc("span",{id:"aria-selection"},E),pc("span",{id:"aria-focused"},P),pc("span",{id:"aria-results"},j),pc("span",{id:"aria-guidance"},D));return pc(f.Fragment,null,pc(Hu,{id:c},_&&C),pc(Hu,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!_&&C))},Uu=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Yu=new RegExp("["+Uu.map((function(e){return e.letters})).join("")+"]","g"),zu={},Vu=0;Vu<Uu.length;Vu++)for(var qu=Uu[Vu],Gu=0;Gu<qu.letters.length;Gu++)zu[qu.letters[Gu]]=qu.base;var Ku=function(e){return e.replace(Yu,(function(e){return zu[e]}))},$u=function(e,t){void 0===t&&(t=Lu);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}(Ku),Xu=function(e){return e.replace(/^\s+|\s+$/g,"")},Qu=function(e){return"".concat(e.label," ").concat(e.value)},Zu=["innerRef"];function Ju(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=Di(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=Di(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(Ci(e,Zu),"onExited","in","enter","exit","appear");return pc("input",Mi({ref:t},n,{css:hc({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var el=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var tl=["boxSizing","height","overflow","paddingRight","position"],nl={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function rl(e){e.preventDefault()}function ol(e){e.stopPropagation()}function al(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function il(){return"ontouchstart"in window||navigator.maxTouchPoints}var sl=!("undefined"==typeof window||!window.document||!window.document.createElement),cl=0,ul={capture:!1,passive:!1};var ll=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},dl={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function fl(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=(0,f.useRef)(!1),s=(0,f.useRef)(!1),c=(0,f.useRef)(0),u=(0,f.useRef)(null),l=(0,f.useCallback)((function(e,t){if(null!==u.current){var c=u.current,l=c.scrollTop,d=c.scrollHeight,f=c.clientHeight,p=u.current,h=t>0,m=d-f-l,g=!1;m>t&&i.current&&(r&&r(e),i.current=!1),h&&s.current&&(a&&a(e),s.current=!1),h&&t>m?(n&&!i.current&&n(e),p.scrollTop=d,g=!0,i.current=!0):!h&&-t>l&&(o&&!s.current&&o(e),p.scrollTop=0,g=!0,s.current=!0),g&&el(e)}}),[n,r,o,a]),d=(0,f.useCallback)((function(e){l(e,e.deltaY)}),[l]),p=(0,f.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),h=(0,f.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;l(e,t)}),[l]),m=(0,f.useCallback)((function(e){if(e){var t=!!Xc&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",h,t)}}),[h,p,d]),g=(0,f.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",h,!1))}),[h,p,d]);return(0,f.useEffect)((function(){if(t){var e=u.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,f.useRef)({}),a=(0,f.useRef)(null),i=(0,f.useCallback)((function(e){if(sl){var t=document.body,n=t&&t.style;if(r&&tl.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&cl<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,s=window.innerWidth-i+a||0;Object.keys(nl).forEach((function(e){var t=nl[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&il()&&(t.addEventListener("touchmove",rl,ul),e&&(e.addEventListener("touchstart",al,ul),e.addEventListener("touchmove",ol,ul))),cl+=1}}),[r]),s=(0,f.useCallback)((function(e){if(sl){var t=document.body,n=t&&t.style;cl=Math.max(cl-1,0),r&&cl<1&&tl.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&il()&&(t.removeEventListener("touchmove",rl,ul),e&&(e.removeEventListener("touchstart",al,ul),e.removeEventListener("touchmove",ol,ul)))}}),[r]);return(0,f.useEffect)((function(){if(t){var e=a.current;return i(e),function(){s(e)}}}),[t,i,s]),function(e){a.current=e}}({isEnabled:n});return pc(f.Fragment,null,n&&pc("div",{onClick:ll,css:dl}),t((function(e){o(e),a(e)})))}var pl={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},hl=function(e){var t=e.name,n=e.onFocus;return pc("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:pl,value:"",onChange:function(){}})};function ml(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function gl(){return ml(/^Mac/i)}function yl(){return ml(/^iPhone/i)||ml(/^iPad/i)||gl()&&navigator.maxTouchPoints>1}var vl={clearIndicator:wu,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,a=o.colors,i=o.borderRadius;return Pi({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},dropdownIndicator:bu,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return Pi({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return Pi({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,a=o.spacing,i=o.colors;return Pi(Pi({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},_u),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,a=o.colors,i=o.spacing.baseUnit;return Pi({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i})},loadingMessage:uu,menu:function(e,t){var n,r=e.placement,o=e.theme,a=o.borderRadius,i=o.spacing,s=o.colors;return Pi((Si(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Si(n,"position","absolute"),Si(n,"width","100%"),Si(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:i.menuGutter,marginTop:i.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Pi({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors;return Pi({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,a=e.cropWithEllipsis;return Pi({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors,i=e.isFocused;return Pi({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:i?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:cu,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.theme,i=a.spacing,s=a.colors;return Pi({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return Pi({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,a=r.colors;return Pi({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,a=e.selectProps.controlShouldRenderValue;return Pi({alignItems:"center",display:r&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var bl,wl={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Ol={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:qc(),captureMenuScroll:!qc(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Pi({ignoreCase:!0,ignoreAccents:!0,stringify:Qu,trim:!0,matchFrom:"any"},bl),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,s=n.matchFrom,c=i?Xu(t):t,u=i?Xu(a(e)):a(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=$u(c),u=Ku(u)),"start"===s?u.substr(0,c.length)===c:u.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function xl(e,t,n,r){return{type:"option",data:t,isDisabled:Cl(e,t,n),isSelected:Tl(e,t,n),label:_l(e,t),value:Dl(e,t),index:r}}function kl(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return xl(e,n,t,r)})).filter((function(t){return Pl(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=xl(e,n,t,r);return Pl(e,a)?a:void 0})).filter(Qc)}function Sl(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Hi(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function El(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,Hi(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function Pl(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,s=t.value;return(!Al(e)||!a)&&Ml(e,{label:i,value:s,data:o},r)}var jl=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},_l=function(e,t){return e.getOptionLabel(t)},Dl=function(e,t){return e.getOptionValue(t)};function Cl(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Tl(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Dl(e,t);return n.some((function(t){return Dl(e,t)===r}))}function Ml(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Al=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Il=1,Nl=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ii(e,t)}(a,e);var t,n,r,o=Fi(a);function a(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=gl()||yl(),t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,a=o.closeMenuOnSelect,i=o.isMulti,s=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),a&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=n.name,i=t.state.selectValue,s=o&&t.isOptionSelected(e,i),c=t.isOptionDisabled(e,i);if(s){var u=t.getOptionValue(e);t.setValue(i.filter((function(e){return t.getOptionValue(e)!==u})),"deselect-option",e)}else{if(c)return void t.ariaOnChange(e,{action:"select-option",option:e,name:a});o?t.setValue([].concat(Hi(i),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),a=r.filter((function(e){return t.getOptionValue(e)!==o})),i=Zc(n,a,a[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Zc(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),a=Zc(e,o,o[0]||null);r&&t.onChange(a,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return jl(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return El(kl(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Lc.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return _l(t.props,e)},t.getOptionValue=function(e){return Dl(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=vl[e](n,r);o.boxSizing="border-box";var a=t.props.styles[e];return a?a(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Pi(Pi({},Nu),e.components);var e},t.buildCategorizedOptions=function(){return kl(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Sl(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:Pi({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Bc(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return Al(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,i=n.inputValue,s=n.isClearable,c=n.isDisabled,u=n.menuIsOpen,l=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,p=t.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(c||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!d||!h||f&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):s&&a&&t.clearValue();break;case" ":if(i)return;if(!u){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++Il),t.state.selectValue=Fc(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),i=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[i],t.state.focusedOptionId=jl(n,r[i])}return t}return t=a,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Vc(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Vc(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var s=a.indexOf(r[0]);s>-1&&(i=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i],focusedOptionId:this.getFocusedOptionId(a[i])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(wl):Pi(Pi({},wl),this.props.theme):wl}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,s=this.props,c=s.isMulti,u=s.isRtl,l=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:c,isRtl:u,options:l,selectOption:a,selectProps:s,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Cl(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Tl(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Ml(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,i=e.form,s=e.menuIsOpen,c=e.required,u=this.getComponents().Input,l=this.state,d=l.inputIsHidden,p=l.ariaSelection,h=this.commonProps,m=r||this.getElementId("input"),g=Pi(Pi(Pi({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?f.createElement(u,Mi({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:i,type:"text",value:o},g)):f.createElement(Ju,Mi({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Nc,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:i,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,s=t.Placeholder,c=this.commonProps,u=this.props,l=u.controlShouldRenderValue,d=u.isDisabled,p=u.isMulti,h=u.inputValue,m=u.placeholder,g=this.state,y=g.selectValue,v=g.focusedValue,b=g.isFocused;if(!this.hasValue()||!l)return h?null:f.createElement(s,Mi({},c,{key:"placeholder",isDisabled:d,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return y.map((function(t,i){var s=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return f.createElement(n,Mi({},c,{components:{Container:r,Label:o,Remove:a},isFocused:s,isDisabled:d,key:u,index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var w=y[0];return f.createElement(i,Mi({},c,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return f.createElement(e,Mi({},t,{innerProps:i,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;return e&&o?f.createElement(e,Mi({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return f.createElement(n,Mi({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return f.createElement(e,Mi({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,i=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,l=this.commonProps,d=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,m=p.inputValue,g=p.isLoading,y=p.loadingMessage,v=p.minMenuHeight,b=p.maxMenuHeight,w=p.menuIsOpen,O=p.menuPlacement,x=p.menuPosition,k=p.menuPortalTarget,S=p.menuShouldBlockScroll,E=p.menuShouldScrollIntoView,P=p.noOptionsMessage,j=p.onMenuScrollToTop,_=p.onMenuScrollToBottom;if(!w)return null;var D,C=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,i=t.isSelected,s=t.label,c=t.value,p=d===o,h=a?void 0:function(){return e.onOptionHover(o)},m=a?void 0:function(){return e.selectOption(o)},g="".concat(e.getElementId("option"),"-").concat(n),y={id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:i};return f.createElement(u,Mi({},l,{innerProps:y,data:o,isDisabled:a,isSelected:i,key:g,label:s,type:r,value:c,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())D=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,a=t.options,i=t.index,s="".concat(e.getElementId("group"),"-").concat(i),c="".concat(s,"-heading");return f.createElement(n,Mi({},l,{key:s,data:o,options:a,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return C(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return C(t,"".concat(t.index))}));else if(g){var T=y({inputValue:m});if(null===T)return null;D=f.createElement(s,l,T)}else{var M=P({inputValue:m});if(null===M)return null;D=f.createElement(c,l,M)}var A={minMenuHeight:v,maxMenuHeight:b,menuPlacement:O,menuPosition:x,menuShouldScrollIntoView:E},I=f.createElement(au,Mi({},l,A),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,s=r.maxHeight;return f.createElement(o,Mi({},l,A,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:i}),f.createElement(fl,{captureEnabled:h,onTopArrive:j,onBottomArrive:_,lockEnabled:S},(function(t){return f.createElement(a,Mi({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":l.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:s,focusedOption:d}),D)})))}));return k||"fixed"===x?f.createElement(i,Mi({},l,{appendTo:k,controlElement:this.controlRef,menuPlacement:O,menuPosition:x}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=t.required,s=this.state.selectValue;if(i&&!this.hasValue()&&!r)return f.createElement(hl,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(o){if(n){var c=s.map((function(t){return e.getOptionValue(t)})).join(n);return f.createElement("input",{name:a,type:"hidden",value:c})}var u=s.length>0?s.map((function(t,n){return f.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):f.createElement("input",{name:a,type:"hidden",value:""});return f.createElement("div",null,u)}var l=s[0]?this.getOptionValue(s[0]):"";return f.createElement("input",{name:a,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.isFocused,i=t.selectValue,s=this.getFocusableOptions();return f.createElement(Bu,Mi({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:a,selectValue:i,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,i=a.className,s=a.id,c=a.isDisabled,u=a.menuIsOpen,l=this.state.isFocused,d=this.commonProps=this.getCommonProps();return f.createElement(r,Mi({},d,{className:i,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:l}),this.renderLiveRegion(),f.createElement(t,Mi({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:l,menuIsOpen:u}),f.createElement(o,Mi({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),f.createElement(n,Mi({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,s=t.prevWasFocused,c=t.instancePrefix,u=e.options,l=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=Fc(l),m={};if(n&&(l!==n.value||u!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return Sl(kl(e,t))}(e,h):[],y=d?El(kl(e,h),"".concat(c,"-option")):[],v=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:b,focusedOptionId:jl(y,b),focusableOptionsWithIds:y,focusedValue:v,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},O=a,x=i&&s;return i&&!x&&(O={value:Zc(p,h,h[0]||null),options:h,action:"initial-input-focus"},x=!s),"initial-input-focus"===(null==a?void 0:a.action)&&(O=null),Pi(Pi(Pi({},m),w),{},{prevProps:e,ariaSelection:O,prevWasFocused:x})}}],n&&Ai(t.prototype,n),r&&Ai(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(f.Component);Nl.defaultProps=Ol;var Rl=(0,f.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,a=e.defaultValue,i=void 0===a?null:a,s=e.inputValue,c=e.menuIsOpen,u=e.onChange,l=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,h=e.value,m=Ci(e,Ti),g=Di((0,f.useState)(void 0!==s?s:n),2),y=g[0],v=g[1],b=Di((0,f.useState)(void 0!==c?c:o),2),w=b[0],O=b[1],x=Di((0,f.useState)(void 0!==h?h:i),2),k=x[0],S=x[1],E=(0,f.useCallback)((function(e,t){"function"==typeof u&&u(e,t),S(e)}),[u]),P=(0,f.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),v(void 0!==n?n:e)}),[l]),j=(0,f.useCallback)((function(){"function"==typeof p&&p(),O(!0)}),[p]),_=(0,f.useCallback)((function(){"function"==typeof d&&d(),O(!1)}),[d]),D=void 0!==s?s:y,C=void 0!==c?c:w,T=void 0!==h?h:k;return Pi(Pi({},m),{},{inputValue:D,menuIsOpen:C,onChange:E,onInputChange:P,onMenuClose:_,onMenuOpen:j,value:T})}(e);return f.createElement(Nl,Mi({ref:t},n))})),Ll=Rl;const Fl=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)},Hl=ot;function Wl(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 Bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wl(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ul=(0,d.injectIntl)((function(e){var t;return(0,Ge.jsx)("span",Bl(Bl({},e.innerProps),{},{children:(0,Ge.jsx)(At,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t})),"data-cy":"btn-clear"})}))}));var Yl=c(2418);function zl(){return zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zl.apply(this,arguments)}const Vl=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class ql extends f.Component{constructor(...e){super(...e),this._targetNode=f.createRef(),this._elementNode=f.createRef(),this._elementParentNode=null,this._tetherInstance=null}componentDidMount(){this._createContainer(),this.forceUpdate()}componentDidUpdate(e){if(e.renderElementTag===this.props.renderElementTag&&e.renderElementTo===this.props.renderElementTo||this._createContainer(),this._elementParentNode&&e.className!==this.props.className){const t=(e.className||"").split(" ").filter((e=>e.length>0)),n=(this.props.className||"").split(" ").filter((e=>e.length>0));this._elementParentNode.classList.remove(...t),this._elementParentNode.classList.add(...n)}this._update()}componentWillUnmount(){this._destroy()}getTetherInstance(){return this._tetherInstance}disable(){var e;null==(e=this._tetherInstance)||e.disable()}enable(){var e;null==(e=this._tetherInstance)||e.enable()}on(e,t,n){this._tetherInstance.on(e,t,n)}once(e,t,n){this._tetherInstance.once(e,t,n)}off(e,t){this._tetherInstance.off(e,t)}position(){var e;null==(e=this._tetherInstance)||e.position()}_runRenders(){let e="function"==typeof this.props.renderTarget?this.props.renderTarget(this._targetNode):null,t="function"==typeof this.props.renderElement?this.props.renderElement(this._elementNode):null;return(0,f.isValidElement)(e)||(e=null),(0,f.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new Yl(e),this._registerEventListeners()}_destroyTetherInstance(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}_registerEventListeners(){this.on("update",((...e)=>this.props.onUpdate&&this.props.onUpdate.apply(this,e))),this.on("repositioned",((...e)=>this.props.onRepositioned&&this.props.onRepositioned.apply(this,e)))}get _renderNode(){const{renderElementTo:e}=this.props;return"string"==typeof e?document.querySelector(e):e||document.body}_destroy(){this._destroyTetherInstance(),this._removeContainer()}_createContainer(){this._removeContainer();const{renderElementTag:e="div",className:t}=this.props;this._elementParentNode=document.createElement(e),this._elementParentNode.className=t||""}_addContainerToDOM(){this._elementParentNode&&this._renderNode&&this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.append(this._elementParentNode)}_removeContainer(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.remove()}_update(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}_updateTether(){var e;const t=this.props,{id:n,style:r}=t,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(t,Vl),a=zl({target:this._targetNode.current,element:this._elementParentNode},o),i=n||"";if(this._elementParentNode&&this._elementParentNode.id!==i&&(this._elementParentNode.id=i),this._elementParentNode&&r){const e=this._elementParentNode.style;for(const t in r)if(e[t]!==r[t]){let n=r[t];n&&(e[t]=n)}}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(a):this._createTetherInstance(a),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?f.createElement(f.Fragment,null,e,t&&this._elementParentNode&&$r.createPortal(t,this._elementParentNode)):null}}var Gl,Kl,$l,Xl,Ql,Zl,Jl,ed,td,nd,rd,od,ad;function id(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 sd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?id(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):id(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cd=Me.Ay.span.withConfig({displayName:"StyledClickableWrapper"})(Gl||(Gl=Ce()(["\n pointer-events: auto;\n cursor: pointer;\n"]))),ud=Me.Ay.div.withConfig({displayName:"StyledReactSelectOuterWrapper"})(Kl||(Kl=Ce()(["\n outline-style: none;\n cursor: ",";\n"])),(function(e){return e.immutable&&"text"})),ld=Me.Ay.div.withConfig({displayName:"StyledReactSelectInnerWrapper"})($l||($l=Ce()(["\n outline-style: none;\n"]))),dd=Me.Ay.div.withConfig({displayName:"StyledIndicatorsContainerWrapper"})(Xl||(Xl=Ce()(["\n position: relative;\n z-index: 1;\n background-color: ",";\n border-radius: ",";\n ",";\n"])),Fe.t7.color("paper"),Fe.t7.radii("form"),(function(e){return e.isTopAligned&&(0,Me.AH)(Ql||(Ql=Ce()(["\n position: absolute;\n right: 0;\n top: 0;\n "])))})),fd=(0,Me.Ay)(ql).withConfig({displayName:"StyledTether"})(Zl||(Zl=Ce()(["\n && {\n z-index: 1;\n }\n"]))),pd=(Me.Ay.div.withConfig({displayName:"StyledNonTether"})(Jl||(Jl=Ce()(["\n position: absolute;\n padding-bottom: ",";\n z-index: 2; /* higher than StyledTether and StyledIndicatorsContainerWrapper */\n"])),Fe.hs.space(1.5)),(0,Me.Ay)(Nu.Menu).attrs((function(e){return{theme:e.selectTheme}})).withConfig({displayName:"StyledMenu"})(ed||(ed=Ce()(["\n && {\n margin: 8px 0 8px -10px;\n width: calc(","px + 20px);\n position: relative;\n\n .tether-target-attached-top & {\n transform: translateY(-","px);\n }\n }\n"])),(function(e){return e.wrapperWidth}),(function(e){return e.wrapperHeight+6}))),hd=Me.Ay.div.withConfig({displayName:"StyledMoreOptionsAvailable"})(td||(td=Ce()(["\n && {\n ","\n cursor: default;\n padding: "," ",";\n }\n"])),(0,Fe.Ed)({color:Fe.t7.color("signal.info"),lineHeight:"normal"}),Fe.hs.space(-.5),Fe.hs.space(-.2)),md=Me.Ay.div.withConfig({displayName:"StyledSingleValueWrapper"})(nd||(nd=Ce()(["\n overflow-x: hidden;\n position: relative;\n color: ",";\n"])),(function(e){return e.isDisabled?Fe.t7.color("text"):"inherit"})),gd=Me.Ay.div.withConfig({displayName:"StyledDropdownIndicatorWrapper"})(rd||(rd=Ce()(["\n && {\n position: relative;\n width: 25px;\n height: 25px;\n display: flex;\n align-items: center;\n }\n"]))),yd=Me.Ay.div.withConfig({displayName:"StyledMultiValueWrapper"})(od||(od=Ce()(["\n overflow: hidden;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n"]))),vd=Me.Ay.span.withConfig({displayName:"StyledMultiValueLabelWrapper"})(ad||(ad=Ce()(["\n overflow: hidden;\n text-overflow: ellipsis;\n"]))),bd=function(e){var t=e.colors.paper,n=e.colors.backgroundItemHover,r=e.colors.backgroundItemSelected,o=e.colors.text,a=e.colors.borderSelect,i=e.colors.textDisabled,s=e.radii.form,c=Fe.hs.space(-1)({theme:e}),u=Fe.hs.space(-2)({theme:e}),l={color:o,fontFamily:e.fontFamily.regular,fontSize:"".concat(e.fontSize.base,"rem"),fontWeight:e.fontWeights.regular,lineHeight:e.lineHeights.regular},d=function(e){return e.isMulti&&(e.selectProps.hasAdvancedSearch||e.selectProps.hasDocsTreeSearch)},f=function(t){return sd(sd({},t),{},{color:e.colors.signal.info,cursor:"default",textAlign:"left"})};return{container:function(e,t){return sd(sd(sd({},e),l),{},{outline:0})},control:function(e,t){return sd(sd({},e),{},{backgroundColor:"transparent",borderWidth:0,boxShadow:null,minHeight:0,flexWrap:"nowrap",position:"relative",display:d(t)?"block":e.display})},noOptionsMessage:f,loadingMessage:f,option:function(o,a){var i=t;return a.isSelected?i=r:a.isFocused&&(i=n),sd(sd({},o),{},{color:e.colors.text,backgroundColor:i,cursor:"pointer",":active":{backgroundColor:a.isSelected?r:n}})},indicatorsContainer:function(e,t){return sd(sd({},e),{},{alignSelf:"flex-end","> *":{padding:"0 !important;"}})},input:function(e,t){var n=50;return t.selectProps.hasDocsTreeSearch&&(n+=25),t.selectProps.hasAdvancedSearch&&(n+=25),t.selectProps.hasCreatePermission&&(n+=25),sd(sd(sd({},e),{},{minHeight:t.isDisabled?"0":"2.6rem",paddingTop:t.isDisabled?"0":"2px",paddingBottom:t.isDisabled?"0":"2px"},d(t)?{width:"calc(100% - ".concat(n,"px)")}:{}),{},{overflow:"hidden",margin:"0",color:o})},menu:function(t,n){return{backgroundColor:e.colors.paper,boxShadow:"0 0 6px ".concat(a),borderRadius:s}},menuList:function(t,n){return sd(sd(sd({},t),l),{},{border:"1px solid ".concat(a),borderRadius:s,padding:"0",backgroundColor:e.colors.paper})},multiValue:function(t,n){return sd(sd({},t),{},{borderRadius:s,margin:"".concat(c," ").concat(u," 0 0"),backgroundColor:e.colors.backgroundMultiValue,justifyContent:"space-between"},d(n)&&!n.isDisabled?{width:"100%",maxWidth:"300px"}:{})},multiValueLabel:function(e,t){return sd(sd({},e),{},{borderRadius:s,color:o,fontSize:"inherit",lineHeight:1.8})},multiValueRemove:function(e,t){return sd(sd({},e),{},{borderRadius:0,color:o,display:t.isDisabled?"none":"flex",":hover":sd(sd({},e[":hover"]),{},{color:o,backgroundColor:r,cursor:"pointer"})})},singleValue:function(e,t){return sd(sd({},e),{},{color:t.isDisabled?i:o,margin:0,whiteSpace:"wrap"})},valueContainer:function(e,t){return sd(sd({},e),{},{padding:0,margin:0,minHeight:t.isDisabled?"0":"2.6rem"})}}};function wd(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 Od(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wd(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const xd=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,Ge.jsx)(Nu.DropdownIndicator,Od(Od({},e),{},{children:(0,Ge.jsx)(gd,{children:(0,Ge.jsx)(At,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};_e().shape({key:_e().any.isRequired,display:_e().string});var kd,Sd,Ed;function Pd(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 jd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pd(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _d=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},Dd=function(e,t){return function(n){n.stopPropagation(),e(t)}},Cd=function(e,t){return function(n){n.stopPropagation(),e(t)}},Td=function(e){e.stopPropagation()};const Md=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,a=t.isDisabled,i=t.hasDocsTreeSearch,s=t.hasAdvancedSearch,c=t.createPermission,u=t.value,l=t.isMulti,d=t.inputValue,f=l&&(s||i);return(0,Ge.jsx)(dd,{isTopAligned:f,children:(0,Ge.jsxs)(Nu.IndicatorsContainer,jd(jd({},e),{},{children:[e.children,n&&!a&&(0,Ge.jsx)("span",{onTouchEnd:Td,onMouseDown:Dd(n,u),children:kd||(kd=(0,Ge.jsx)(At,{icon:"folder",tabIndex:-1,"data-cy":"btn-docsTreeSearch"}))}),r&&!a&&(0,Ge.jsx)("span",{onTouchEnd:Td,onMouseDown:_d(r,d,u),children:Sd||(Sd=(0,Ge.jsx)(At,{icon:"search",tabIndex:-1,"data-cy":"btn-advancedSearch"}))}),c&&!a&&(0,Ge.jsx)("span",{onTouchEnd:Td,onMouseDown:Cd(o,u),children:Ed||(Ed=(0,Ge.jsx)(At,{icon:"plus",tabIndex:-1,"data-cy":"btn-remoteCreate"}))})]}))})};var Ad;const Id=function(){return Ad||(Ad=(0,Ge.jsx)("span",{children:(0,Ge.jsx)(Qe,{size:"1.8rem"})}))};function Nd(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 Rd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nd(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ld=function(e){var t=e.selectProps,n=e.children,r=e.theme;return(0,Ge.jsx)(fd,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,Ge.jsx)("div",{ref:e})},renderElement:function(o){return(0,Ge.jsx)("div",{ref:o,className:Yo,children:(0,Ge.jsx)(pd,Rd(Rd({},Yr()(e,["innerRef","theme"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,selectTheme:r,children:n}))})}})};function Fd(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 Hd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fd(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Wd=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,Ge.jsxs)(Nu.MenuList,Hd(Hd({},e),{},{className:"MenuList",children:[n,r&&(0,Ge.jsx)(hd,{children:o})]}))};const Bd=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,a=o.tooltips,i=o.loadTooltip,s=o.DetailLink,c=hi()(a,t.key,null),u=(0,Ge.jsx)("span",{style:n.css,children:r}),l=s?(0,Ge.jsx)(cd,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,Ge.jsx)(s,{entityKey:t.key,tabIndex:-1,children:(0,Ge.jsx)(Ha,{content:c?(0,Ge.jsx)("div",{dangerouslySetInnerHTML:{__html:sr.sanitizeHtml(c)}}):null,children:(0,Ge.jsx)("span",{onMouseOver:function(){return i&&!c&&i(t.key)},children:u})})})}):u;return(0,Ge.jsx)(vd,{children:l})};var Ud=c(85015),Yd=c.n(Ud),zd=c(42194),Vd=c.n(zd);function qd(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 Gd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qd(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kd=["linkComp"],$d=function(e,t){var n=nr.difference(e,t),r=Vd()(Yr()(n,Kd),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},Xd=(0,f.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&Yd()(n)?(0,Ge.jsx)(cd,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,Ge.jsx)(t,{entityKey:n,children:r})}):r}),$d);Xd.propTypes={children:_e().node,entityKey:_e().any,linkComp:_e().func};const Qd=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,a=n.tooltips,i=n.loadTooltip,s=n.DetailLink,c=hi()(a,t.key,null);return(0,Ge.jsx)(Nu.SingleValue,Gd(Gd({},e),{},{children:(0,Ge.jsx)(md,{onMouseOver:function(){return i&&!c&&i(t.key)},isDisabled:r,children:(0,Ge.jsx)(Ha,{content:c?(0,Ge.jsx)("div",{dangerouslySetInnerHTML:{__html:sr.sanitizeHtml(c)}}):null,children:(0,Ge.jsx)(Xd,{linkComp:s,entityKey:t.key,children:o})})})}))};function Zd(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}var Jd=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const ef=function(e){var t=e.selectProps,n=e.hasValue,r=e.children,o=t.isMulti,a=t.hasAdvancedSearch,i=t.hasDocsTreeSearch,s=t.isDisabled;if(!(o&&(a||i)))return(0,Ge.jsx)(Nu.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zd(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var c=f.Children.map(r,(function(e){return Jd(e)?e:null})),u=f.Children.map(r,(function(e){return Jd(e)?null:e})),l=s&&n;return(0,Ge.jsxs)(Ge.Fragment,{children:[!l&&(0,Ge.jsx)(Ge.Fragment,{children:c}),(0,Ge.jsx)(yd,{children:u})]})};function tf(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 nf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tf(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const rf=(0,Me.SL)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,a=e.isMulti,i=e.loadTooltip,s=e.moreOptionsAvailable,c=e.moreOptionsAvailableText,u=e.noResultsText,l=e.noResultsComp,d=e.onChange,p=e.openDocsTreeSearch,h=e.openAdvancedSearch,m=e.options,g=e.searchOptions,y=e.theme,v=e.tooltips,b=e.value,w=e.DetailLink,O=e.createPermission,x=e.openRemoteCreate,k=(0,f.useRef)(null),S=(0,f.useRef)(null),E=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientWidth)||300},P=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientHeight)||35},j=(0,f.useState)(E()),_=Je()(j,2),D=_[0],C=_[1],T=(0,f.useState)(P()),M=Je()(T,2),A=M[0],I=M[1],N=(0,f.useState)(!1),R=Je()(N,2),L=R[0],F=R[1],H=function(e){t&&t(e)},W=(0,f.useCallback)(g||function(){},[]),B=(0,f.useCallback)(ki()(W,800,{trailing:!0}),[]),U=Boolean(h),Y=Boolean(p),z=Boolean(O),V=Boolean(g)||!Hl();return(0,Ge.jsx)(ud,{tabIndex:"-1",id:n,onFocus:function(){k.current.focus(),setTimeout((function(){C(E()),I(P())}),0)},children:(0,Ge.jsx)(ld,{ref:S,children:(0,Ge.jsx)(Ll,nf(nf({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:D,wrapperHeight:A,components:{ClearIndicator:Ul,LoadingIndicator:Id,DropdownIndicator:xd,IndicatorsContainer:Md,IndicatorSeparator:null,Menu:Ld,MenuList:Wd,MultiValueLabel:Bd,SingleValue:Qd,ValueContainer:ef},noOptionsMessage:function(e){return u||("function"==typeof l?(0,Ge.jsx)(l,nf({},e)):" - ")},isMulti:a,closeMenuOnSelect:!a,isSearchable:V},g?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,tabSelectsValue:!1,value:b||null,onChange:function(e){d(e),H(e)},onInputChange:function(e,t){var n=t.action;g&&e&&B(e,b),""===e&&"input-change"===n&&H(b)},options:Ht()(m||[]),onKeyDown:function(e){"Enter"===e.key&&L&&(e.stopPropagation(),k.current&&null===k.current.focusedOptionRef&&e.preventDefault())},isLoading:o,isDisabled:r,ref:k,onMenuOpen:function(){H(b),F(!0)},onMenuClose:function(){F(!1)},styles:bd(y),loadTooltip:i,tooltips:v,DetailLink:w,hasDocsTreeSearch:Y,openDocsTreeSearch:p,hasAdvancedSearch:U,openAdvancedSearch:h,moreOptionsAvailable:s,moreOptionsAvailableText:c,blurInputOnSelect:!1,hasCreatePermission:z,createPermission:O,openRemoteCreate:x,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const of=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.options,a=o.trueLabel,i=o.falseLabel,s=e.onChange;return(0,Ge.jsx)(rf,{id:t,immutable:n,isMulti:!1,onChange:function(e){return s(e?e.key:null)},value:Oi()(r)?r:{key:r,display:r?a:i},openMenuOnClick:!0,options:[{key:!0,display:a},{key:!1,display:i}]})};var af,sf=Me.Ay.div.withConfig({displayName:"StyledBoolEdit"})(af||(af=Ce()(["\n margin: 5px 0;\n"])));const cf=function(e){return(0,Ge.jsx)(sf,{children:(0,Ge.jsx)("input",{type:"checkbox",checked:e.value||!1,name:e.name,onChange:function(t){e.onChange&&e.onChange(t.target.checked)},id:e.id,disabled:e.immutable})})};const uf=function(e){return e.breakWords?(0,Ge.jsx)(cr.Ay.P,{breakWords:!0,useTitle:e.useTitle,id:e.id,children:(t=e.value,t.split("\n").flatMap((function(e,t,n){return t+1<n.length?[e,(0,Ge.jsx)("br",{},t)]:e})))}):(0,Ge.jsx)(cr.Ay.Span,{breakWords:!1,useTitle:e.useTitle,id:e.id,children:e.value.replace("/\n/g"," ")});var t};function lf(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}var df,ff,pf=function(e){var t=e.id,n=e.value,r=e.breakWords,o=e.className,a=e.options;return(void 0===a?{}:a).escapeHtml?(0,Ge.jsx)(uf,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lf(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e)):(0,Ge.jsx)(Aa,{id:t,dangerouslySetInnerHTML:{__html:sr.sanitizeHtml(n)},breakWords:r,className:o})},hf=Me.Ay.div.withConfig({displayName:"StyledOption"})(df||(df=Ce()(["\n margin: "," 0;\n display: flex;\n align-items: center;\n gap: ",";\n\n input {\n margin: 0;\n }\n"])),Fe.hs.space(-1),Fe.hs.space(-1.5)),mf=Me.Ay.span.withConfig({displayName:"StyledLabel"})(ff||(ff=Ce()(["\n ","\n display: flex;\n gap: ",";\n align-items: center;\n"])),(0,Fe.Ed)(),Fe.hs.space(-1.5));function gf(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 yf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gf(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vf={single:"radio",multiple:"checkbox"},bf={single:{checked:!1},multiple:{}},wf=function(e,t){return t?(0,Ge.jsx)(pf,{value:e}):e},Of=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.labelComponent,a=e.checked,i=e.immutable,s=e.hideCheckbox,c=e.selectionType,u=e.renderHtmlInOptions,l=e.handleChange;return(0,Ge.jsxs)(hf,{children:[!s&&(0,Ge.jsx)("input",{name:t,type:vf[c],checked:a||!1,onChange:l,id:n,disabled:i,"data-cy":"choice-answer-option-".concat(n)}),(0,Ge.jsx)(mf,{children:o||wf(r,u)})]})};const xf=function(e){var t=e.onChange,n=e.value,r=e.options,o=e.id,a=e.immutable,i=function(e){if(t){var o=n.options.map((function(t){return yf(yf({},t),t.id===e.target.id?{checked:e.target.checked}:bf[r.selectionType])}));t({options:o})}};return(0,Ge.jsx)(Ge.Fragment,{children:n.options.map((function(e){return(0,Ge.jsx)(Of,{groupName:o,id:e.id,label:e.label,labelComponent:e.labelComponent,checked:e.checked,immutable:a||e.immutable,hideCheckbox:e.hideCheckbox,selectionType:r.selectionType,renderHtmlInOptions:r.renderHtmlInOptions,handleChange:i},e.id)}))})};c(98639);function kf(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 Sf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kf(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ef=(0,f.lazy)((function(){return Promise.all([c.e(264),c.e(722)]).then(c.bind(c,65066))}));const Pf=function(e){return(0,Ge.jsx)(f.Suspense,{fallback:(t=e.value,(0,Ge.jsx)("div",{children:(0,Ge.jsx)("p",{children:t})})),children:(0,Ge.jsx)(Ef,Sf({},e))});var t};var jf,_f=Me.Ay.div.withConfig({displayName:"StyledEditorWrapper"})(jf||(jf=Ce()(["\n margin-top: ",";\n"])),Fe.hs.space(-1.5));const Df=(0,Me.SL)(st.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options,a=e.id,i=e.theme;return(0,Ge.jsx)(_f,{children:(0,Ge.jsx)(Pf,{value:t,id:a,onChange:n,autoFocusOnMount:o.autoFocusOnMount,mode:o.mode,theme:i.codeEditorTheme,showGutter:!0,editorOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,minLines:5,maxLines:50,readOnly:r,wrap:!0,indentedSoftWrap:!1},implicitModel:o.implicitModel})})})));var Cf,Tf,Mf,Af=Me.Ay.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(Cf||(Cf=Ce()(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),If=Me.Ay.div.withConfig({displayName:"StyledDatePickerWrapper"})(Tf||(Tf=Ce()(["\n &&&& {\n ","\n & .react-datepicker__input-container {\n & input {\n ","\n width: calc(100% - 5px);\n }\n }\n\n & .react-datepicker {\n & .react-datepicker__today-button {\n ","\n }\n }\n }\n"])),ai,si,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),Nf=Me.Ay.input.withConfig({displayName:"StyledTimeInput"})(Mf||(Mf=Ce()(["\n &&&& {\n ","\n }\n"])),si),Rf="react-datepicker-time__input",Lf="react-datepicker__day",Ff="react-datepicker__input",Hf=function(e){return e.classList.contains(Lf)},Wf=function(e){return e.classList.contains(Rf)},Bf=function(e){return e.classList.contains(Ff)},Uf=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(Lf,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},Yf=function(e,t){var n=null==e?void 0:e.form;if(n){var r=Ht()(n).indexOf(e);if(r>=0)zf(n[r+(t?2:3)])}else s.A.logWarning("Datepicker '".concat(null==e?void 0:e.id,"' is not withing a form and focus to the next input cannot be set."))},zf=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},Vf=function(e){if(!e)return null;var t=(0,la.Hle)(e.toString());return isNaN(t)?null:t},qf=function(e){return e?e.toISOString():null};const Gf=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,a=n.minDate,i=n.maxDate,c=n.hasTime,u=n.valueToDate,l=void 0===u?Vf:u,d=n.dateToValue,p=void 0===d?qf:d,h=(0,f.useRef)(null),m=(0,f.useState)(!1),g=Je()(m,2),y=g[0],v=g[1],b=l(e),w=a?l(a):void 0,O=i?l(i):void 0;(0,f.useEffect)((function(){h.current&&"function"==typeof h.current.setOpen&&h.current.setOpen(y)}),[y]);var x=function(){return v(!1)},k=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(h.current&&"function"==typeof h.current.getPreSelection){var t,n=e?h.current.getPreSelection():null;return(null===(t=h.current.state)||void 0===t?void 0:t.preSelection)||n}return null},S=function(e){h.current&&"function"==typeof h.current.setPreSelection&&h.current.setPreSelection(e)},E=function(){t(null),S(null)},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=k(!1);if(n){var r=b||new Date,o=t?function(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,a=void 0===o?0:o,i=t.second,s=void 0===i?0:i;return(0,la.avh)((0,la.glI)((0,la.gtt)(e,s),a),r)}(n,{hour:(0,la.qZx)(r),minute:(0,la.Osm)(r),second:(0,la.SyE)(r)}):n;j(o,e)}},j=function(n,r){if(n){var a,i=!e&&Boolean(n),s=null==r||null===(a=r.target)||void 0===a?void 0:a.value,u=!!s&&o.some((function(e){return(0,la.uv4)(s,e)})),l=(0,la.ol1)(n),d=(0,la.qZx)(n)!==(0,la.qZx)(l)||(0,la.Osm)(n)!==(0,la.Osm)(l);(i&&!d||u)&&c&&(n=da.A.setCurrentTime(n)),t(p(n))}else E();var f;c||"click"!==(null==r?void 0:r.type)||(x(),zf(null===(f=h.current)||void 0===f?void 0:f.input))},_=function(t){var n,r,o=!e;if("Tab"===t.key)if(t.shiftKey){if(Bf(t.target))x();else if(Wf(t.target)){var a;S(b||k(!0)),Uf(null==h||null===(a=h.current)||void 0===a||null===(a=a.calendar)||void 0===a||null===(a=a.containerRef)||void 0===a?void 0:a.current)}else if(Hf(t.target)){var i;x(),function(e){var t=null==e?void 0:e.form;if(t){var n=Ht()(t).indexOf(e);n>=1&&zf(t[n-1])}else s.A.logWarning("Datepicker '".concat(null==e?void 0:e.id,"' is not withing a form and focus to the previous input cannot be set."))}(null===(i=h.current)||void 0===i?void 0:i.input)}}else if(Bf(t.target)&&y)P(t),x(),Yf(null===(n=h.current)||void 0===n?void 0:n.input,o);else if(Wf(t.target)){var u;x(),Yf(null===(u=h.current)||void 0===u?void 0:u.input,o)}else if(Hf(t.target)){var l,d;if(c)P(t,!0),S(null),r=null==h||null===(l=h.current)||void 0===l||null===(l=l.calendar)||void 0===l||null===(l=l.containerRef)||void 0===l?void 0:l.current,setTimeout((function(){if(r){var e=r.querySelector("input.".concat(Rf));e&&e.focus({preventScroll:!0})}}),0);else P(t),x(),Yf(null===(d=h.current)||void 0===d?void 0:d.input,o)}if("Enter"===t.key&&(x(),setTimeout((function(){var e;zf(null===(e=h.current)||void 0===e?void 0:e.input)}),10),t.preventDefault(),t.stopPropagation()),["ArrowDown","ArrowUp","Enter"].includes(t.key))if(y){if(y&&null===k(!1)){var f;S(b||k(!0)),Uf(null==h||null===(f=h.current)||void 0===f||null===(f=f.calendar)||void 0===f||null===(f=f.containerRef)||void 0===f?void 0:f.current)}}else v(!0),t.key="Handled".concat(t.key)},D=function(){var e;v((function(e){return!e})),S(null),zf(null===(e=h.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{onClickOutside:x,onInputClick:D,onKeyDown:_,onChange:j,onCalendarOpen:function(){S(null)},onBlur:function(){h.current&&h.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:y,selected:b,showTimeInput:c,minDate:w,maxDate:O,ref:h,className:Ff},timeInputProps:{onKeyDown:_,className:Rf},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),E()}},calendarButtonProps:{onClick:D,className:y?"react-datepicker-ignore-onclickoutside":""},closeModal:x}};var Kf="HH:mm:ss",$f="HH:mm",Xf=function(e){return(0,la.uv4)(e,$f)},Qf=function(e){var t=function(e){return e?(0,la.uv4)(e,Kf)?(0,la.qgA)(e,Kf,new Date):(0,la.uv4)(e,$f)?(0,la.qgA)(e,$f,new Date):(0,la.uv4)(e,"HH:")?(0,la.qgA)(e,"HH:",new Date):(0,la.uv4)(e,"H")?(0,la.qgA)(e,"H",new Date):null:e}(e);return t&&!isNaN(t)?function(e){return(0,la.GPZ)(e,$f)}(t):""};const Zf=function(e,t){var n=Qf(e),r=(0,f.useState)(n),o=Je()(r,2),a=o[0],i=o[1],s=(0,f.useRef)(a),c=st.usePrevious(n);(0,f.useEffect)((function(){c!==n&&a===c&&i(n)}),[n,a,c]);var u={onChange:function(e){if(e.target.value!==a&&function(e){return/^(\d{0,2}|\d{1,2}:\d{0,2})$/.test(e)}(e.target.value)){var n=function(e,t){return e&&t?2!==e.length||3===t.length||e.includes(":")?e.length+1===t.length&&t.indexOf(":")===t.length-1?e.slice(0,-1):e:"".concat(e,":"):e}(e.target.value,s.current),r=n.indexOf(":"),o=n.substring(0,r),c=n.substring(r+1),u=parseInt(o,10),l=parseInt(c,10),d=!o||!Number.isNaN(u)&&u<24,f=!c||!Number.isNaN(l)&&l<60;if(!d||!f)return!1;s.current=n,i(n);var p=Qf(n);p&&!Xf(p)||t(p)}},onBlur:function(){if(a!==n){var e=Qf(a);e&&Xf(e)?(s.current=e,i(e),t(e)):i(n)}},onFocus:function(e){a&&"function"==typeof e.target.select&&e.target.select()},value:a||""};return{inputProps:u,clearButtonProps:{onClick:function(){t(""),i("")}}}};var Jf=["value","onChange","onKeyDown"];function ep(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 tp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ep(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ep(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}fa();var np=function(e){var t=e.onChange,n=e.label;return(0,Ge.jsx)(Et,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},rp=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=Ve()(e,Jf),a=Zf(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,Ge.jsx)(Nf,tp(tp(tp({},a),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},op={strategy:"fixed"};const ap=(0,Me.SL)((0,d.injectIntl)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,a=e.maxDate,i=e.valueToDate,s=e.dateToValue,c=e.onChange,u=e.intl,l=e.placeholder,d=e.hasTime,p=e.dateFormats,h=void 0===p?[]:p,m=e.dateTimeFormats,g=void 0===m?[]:m,y=e.events,v=(0,f.useRef)(void 0),b=u.locale,w=function(e){return u.formatMessage({id:e})},O=(0,f.useRef)(null),x=Boolean(r),k=!t&&x,S=function(e){v.current=e,c(e)},E=Gf(r,S,{dateFormats:h,dateTimeFormats:g,minDate:o,maxDate:a,valueToDate:i,dateToValue:s,hasTime:d}),P=E.reactDatePickerProps,j=E.timeInputProps,_=E.clearButtonProps,D=E.calendarButtonProps,C=E.closeModal;return(0,f.useEffect)((function(){var e=function(){return C()},t=O.current;return t&&t.addEventListener("tableNavigationBlur",e),function(){t&&t.removeEventListener("tableNavigationBlur",e)}}),[C]),(0,Ge.jsx)(Af,{immutable:t,id:n,tabIndex:"-1",children:(0,Ge.jsxs)(If,{immutable:t,ref:O,hasTime:d,onBlur:function(e){if("function"==typeof(null==y?void 0:y.onBlur)){var t=void 0!==v.current?v.current:r;y.onBlur(t)}e.stopPropagation()},"data-custom-arrow-navigation":"datepicker",children:[(0,Ge.jsx)(ia(),tp(tp({id:n?"".concat(n,"-datepicker"):null,popperClassName:Yo},P),{},{disabled:t,dateFormat:[].concat(Ht()(g),Ht()(h)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,yearDropdownItemNumber:100,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,locale:b,timeInputLabel:w("client.component.datePicker.timeLabel"),customTimeInput:(0,Ge.jsx)(rp,tp({},j)),showTimeSelect:d,timeIntervals:15,popperProps:op,portalId:"react-datepicker",todayButton:(0,Ge.jsx)(np,{onChange:S,label:w("client.component.datePicker.todayLabel")})})),k&&(0,Ge.jsx)(At,tp({"data-cy":"btn-clear",icon:"times",tabIndex:-1,"aria-label":w("client.component.datePicker.clearDateLabel")},_)),!t&&(0,Ge.jsx)(At,tp({"data-cy":"btn-calendar",icon:"calendar",tabIndex:-1},D))]})})})));var ip,sp,cp,up,lp=Me.Ay.div.withConfig({displayName:"StyledDateInputWrapper"})(ip||(ip=Ce()(["\n &&&& {\n ","\n display: flex;\n width: 100%;\n position: relative;\n justify-content: space-between;\n align-items: center;\n }\n"])),si),dp=(0,Me.Ay)(At).withConfig({displayName:"StyledClearButton"})(sp||(sp=Ce()(["\n z-index: 1;\n position: relative;\n"]))),fp=Me.Ay.input.withConfig({displayName:"StyledDateInput"})(cp||(cp=Ce()(["\n &&&& {\n position: absolute;\n inset: 0;\n height: 100%;\n width: 100%;\n display: inline-block;\n opacity: 0;\n appearance: none;\n box-sizing: border-box;\n z-index: 0;\n }\n\n &::-webkit-calendar-picker-indicator {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n }\n"])));function pp(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 hp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pp(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const mp=(0,Me.SL)((0,d.injectIntl)((function(e){var t,n=e.value,r=e.onChange,o=e.immutable,a=e.hasTime,i=e.minDate,s=e.maxDate,c=e.format,u=e.intl,l=(0,f.useRef)(null),d=Boolean(n),p=!o&&d,h=function(e){return a?function(e){return e?(0,la.GPZ)(e,"yyyy-MM-dd'T'HH:mm"):e}(e):e},m=function(e){return a?function(e){return e?new Date(e).toISOString():e}(e):e};return(0,Ge.jsxs)(lp,{children:[(0,Ge.jsx)("span",{children:n?(0,la.GPZ)(n,c):""}),(0,Ge.jsxs)("span",{children:[(0,Ge.jsx)(fp,hp(hp(hp({type:a?"datetime-local":"date",value:h(n)||"",onChange:function(e){r(m(e.target.value))}},i?{min:h(i)}:{}),s?{max:h(s)}:{}),{},{ref:l})),p&&(0,Ge.jsx)(dp,{"data-cy":"btn-clear",icon:"times",tabIndex:-1,"aria-label":(t="client.component.datePicker.clearDateLabel",u.formatMessage({id:t})),onClick:function(e){r(null),e.preventDefault(),e.stopPropagation()}}),!o&&(up||(up=(0,Ge.jsx)(At,{"data-cy":"btn-calendar",icon:"calendar",tabIndex:-1})))]})]})})));function gp(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 yp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gp(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const vp=function(e){var t=e.onChange,n=e.options,r=e.id,o=e.value,a=e.immutable,i=e.events,s=e.placeholder,c=(0,d.useIntl)(),u=(null==n?void 0:n.datePickerOptions)||{},l="".concat(da.A.getLocalizedDateFormat(c.locale)),f=da.A.getLocalizedDateFormatWithoutPunctuation(c.locale),p=[l,f,da.A.useTwoDigitYear(l),da.A.useTwoDigitYear(f)];return Hl()?(0,Ge.jsx)(mp,yp({id:r,value:o,onChange:t,hasTime:!1,immutable:a,placeholder:s,events:i,format:l},u)):(0,Ge.jsx)(ap,yp({id:r,value:o,onChange:t,dateFormats:p,hasTime:!1,immutable:a,placeholder:s,events:i},u))};function bp(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 wp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bp(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Op=(0,d.injectIntl)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,a=e.placeholder,i=(0,d.useIntl)(),s=(null==n?void 0:n.datePickerOptions)||{},c="".concat(da.A.getLocalizedDateTimeFormat(i.locale)),u="".concat(da.A.getLocalizedDateFormat(i.locale)),l=da.A.getLocalizedDateTimeFormatWithoutPunctuation(i.locale),f=[c,l,da.A.useTwoDigitYear(c),da.A.useTwoDigitYear(l)],p=da.A.getLocalizedDateFormatWithoutPunctuation(i.locale),h=[u,p,da.A.useTwoDigitYear(u),da.A.useTwoDigitYear(p)];return Hl()?(0,Ge.jsx)(mp,wp({value:r,onChange:t,hasTime:!0,immutable:o,placeholder:a,format:c},s)):(0,Ge.jsx)(ap,wp({value:r,onChange:t,dateTimeFormats:f,dateFormats:h,hasTime:!0,immutable:o,placeholder:a},s))}));var xp,kp,Sp,Ep,Pp,jp,_p,Dp,Cp=Me.Ay.section.withConfig({displayName:"StyledSection"})(xp||(xp=Ce()(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),Tp=Me.Ay.div.withConfig({displayName:"StyledButtonsWrapper"})(kp||(kp=Ce()(["\n display: flex;\n align-items: center;\n\n "," {\n margin: 0;\n border-radius: 50%;\n padding: ",";\n\n a:hover {\n color: unset;\n }\n }\n"])),xt,Fe.hs.space(-2)),Mp=Me.Ay.div.withConfig({displayName:"StyledDropzone"})(Sp||(Sp=Ce()(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),xt,Fe.t7.color("backgroundItemHover")),Ap=Me.Ay.div.withConfig({displayName:"StyledUploadInput"})(Ep||(Ep=Ce()(["\n ","\n cursor: ",";\n background-color: ",";\n color: ",";\n padding: "," 0 0 0;\n display: flex;\n\n "," {\n float: right;\n position: relative;\n top: -",";\n margin: 0;\n border-radius: 50%;\n padding: ",";\n }\n"])),(0,Fe.Ed)(),(function(e){return e.immutable?"not-allowed":"pointer"}),Fe.t7.color("paper"),(function(e){return e.immutable?Fe.Db.shade2(e):Fe.Db.base(e)}),Fe.hs.space(-2),xt,Fe.hs.space(-3.1),Fe.hs.space(-1.5)),Ip=Me.Ay.div.withConfig({displayName:"StyledUploadProgress"})(Pp||(Pp=Ce()(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),Fe.hs.space(-2)),Np=(0,Me.Ay)(cr.oY).withConfig({displayName:"StyledUploadProgressText"})(jp||(jp=Ce()(["\n && {\n ","\n }\n"])),(0,Fe.Ed)({fontSize:Fe.hs.font(-1)})),Rp=Me.Ay.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(_p||(_p=Ce()(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),Fe.hs.space(-2)),Lp=Me.Ay.div.withConfig({displayName:"StyledView"})(Dp||(Dp=Ce()(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),Fe.hs.space(-2));function Fp(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))}function Hp(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}Object.create;function Wp(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Bp(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var Up=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Yp(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=Up.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var zp=[".DS_Store","Thumbs.db"];function Vp(e){return"object"==typeof e&&null!==e}function qp(e){return Xp(e.target.files).map((function(e){return Yp(e)}))}function Gp(e){return Fp(this,void 0,void 0,(function(){return Hp(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return Yp(e)}))]}}))}))}function Kp(e,t){return Fp(this,void 0,void 0,(function(){var n;return Hp(this,(function(r){switch(r.label){case 0:return e.items?(n=Xp(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(Qp))]):[3,2];case 1:return[2,$p(Zp(r.sent()))];case 2:return[2,$p(Xp(e.files).map((function(e){return Yp(e)})))]}}))}))}function $p(e){return e.filter((function(e){return-1===zp.indexOf(e.name)}))}function Xp(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function Qp(e){if("function"!=typeof e.webkitGetAsEntry)return Jp(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?th(t):Jp(e)}function Zp(e){return e.reduce((function(e,t){return Bp(Bp([],Wp(e),!1),Wp(Array.isArray(t)?Zp(t):[t]),!1)}),[])}function Jp(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Yp(t);return Promise.resolve(n)}function eh(e){return Fp(this,void 0,void 0,(function(){return Hp(this,(function(t){return[2,e.isDirectory?th(e):nh(e)]}))}))}function th(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var a=this;t.readEntries((function(t){return Fp(a,void 0,void 0,(function(){var a,i,s;return Hp(this,(function(c){switch(c.label){case 0:if(t.length)return[3,5];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return a=c.sent(),e(a),[3,4];case 3:return i=c.sent(),n(i),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(eh)),r.push(s),o(),c.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function nh(e){return Fp(this,void 0,void 0,(function(){return Hp(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=Yp(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var rh=c(9455);function oh(e){return function(e){if(Array.isArray(e))return lh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||uh(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ah(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 ih(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ah(Object(n),!0).forEach((function(t){sh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ah(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ch(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||uh(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uh(e,t){if(e){if("string"==typeof e)return lh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lh(e,t):void 0}}function lh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var dh="file-invalid-type",fh="file-too-large",ph="file-too-small",hh="too-many-files",mh=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:dh,message:"File type must be ".concat(t)}},gh=function(e){return{code:fh,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},yh=function(e){return{code:ph,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},vh={code:hh,message:"Too many files"};function bh(e,t){var n="application/x-moz-file"===e.type||(0,rh.A)(e,t);return[n,n?null:mh(t)]}function wh(e,t,n){if(Oh(e.size))if(Oh(t)&&Oh(n)){if(e.size>n)return[!1,gh(n)];if(e.size<t)return[!1,yh(t)]}else{if(Oh(t)&&e.size<t)return[!1,yh(t)];if(Oh(n)&&e.size>n)return[!1,gh(n)]}return[!0,null]}function Oh(e){return null!=e}function xh(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function kh(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function Sh(e){e.preventDefault()}function Eh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!xh(e)&&t&&t.apply(void 0,[e].concat(r)),xh(e)}))}}function Ph(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function jh(e){return/^.*\.[\w]+$/.test(e)}var _h=["children"],Dh=["open"],Ch=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Th=["refKey","onChange","onClick"];function Mh(e){return function(e){if(Array.isArray(e))return Nh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ih(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ah(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||Ih(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ih(e,t){if(e){if("string"==typeof e)return Nh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nh(e,t):void 0}}function Nh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rh(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 Lh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rh(Object(n),!0).forEach((function(t){Fh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hh(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Wh=(0,f.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Lh(Lh({},Bh),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,i=t.minSize,s=t.multiple,c=t.maxFiles,u=t.onDragEnter,l=t.onDragLeave,d=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,y=t.onFileDialogOpen,v=t.useFsAccessApi,b=t.autoFocus,w=t.preventDropOnDocument,O=t.noClick,x=t.noKeyboard,k=t.noDrag,S=t.noDragEventsBubbling,E=t.onError,P=t.validator,j=(0,f.useMemo)((function(){return function(e){if(Oh(e))return Object.entries(e).reduce((function(e,t){var n=ch(t,2),r=n[0],o=n[1];return[].concat(oh(e),[r],oh(o))}),[]).filter((function(e){return Ph(e)||jh(e)})).join(",")}(n)}),[n]),_=(0,f.useMemo)((function(){return function(e){if(Oh(e)){var t=Object.entries(e).filter((function(e){var t=ch(e,2),n=t[0],r=t[1],o=!0;return Ph(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(r)&&r.every(jh)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=ch(t,2),r=n[0],o=n[1];return ih(ih({},e),{},sh({},r,o))}),{});return[{description:"Files",accept:t}]}return e}(n)}),[n]),D=(0,f.useMemo)((function(){return"function"==typeof y?y:Vh}),[y]),C=(0,f.useMemo)((function(){return"function"==typeof g?g:Vh}),[g]),T=(0,f.useRef)(null),M=(0,f.useRef)(null),A=Ah((0,f.useReducer)(zh,Yh),2),I=A[0],N=A[1],R=I.isFocused,L=I.isFileDialogActive,F=(0,f.useRef)("undefined"!=typeof window&&window.isSecureContext&&v&&"showOpenFilePicker"in window),H=function(){!F.current&&L&&setTimeout((function(){M.current&&(M.current.files.length||(N({type:"closeDialog"}),C()))}),300)};(0,f.useEffect)((function(){return window.addEventListener("focus",H,!1),function(){window.removeEventListener("focus",H,!1)}}),[M,L,C,F]);var W=(0,f.useRef)([]),B=function(e){T.current&&T.current.contains(e.target)||(e.preventDefault(),W.current=[])};(0,f.useEffect)((function(){return w&&(document.addEventListener("dragover",Sh,!1),document.addEventListener("drop",B,!1)),function(){w&&(document.removeEventListener("dragover",Sh),document.removeEventListener("drop",B))}}),[T,w]),(0,f.useEffect)((function(){return!r&&b&&T.current&&T.current.focus(),function(){}}),[T,b,r]);var U=(0,f.useCallback)((function(e){E?E(e):console.error(e)}),[E]),Y=(0,f.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),W.current=[].concat(Mh(W.current),[e.target]),kh(e)&&Promise.resolve(o(e)).then((function(t){if(!xh(e)||S){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,a=e.multiple,i=e.maxFiles,s=e.validator;return!(!a&&t.length>1||a&&i>=1&&t.length>i)&&t.every((function(e){var t=ch(bh(e,n),1)[0],a=ch(wh(e,r,o),1)[0],i=s?s(e):null;return t&&a&&!i}))}({files:t,accept:j,minSize:i,maxSize:a,multiple:s,maxFiles:c,validator:P});N({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return U(e)}))}),[o,u,U,S,j,i,a,s,c,P]),z=(0,f.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=kh(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1}),[d,S]),V=(0,f.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=W.current.filter((function(e){return T.current&&T.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),W.current=t,t.length>0||(N({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),kh(e)&&l&&l(e))}),[T,l,S]),q=(0,f.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=Ah(bh(e,j),2),o=t[0],s=t[1],c=Ah(wh(e,i,a),2),u=c[0],l=c[1],d=P?P(e):null;if(o&&u&&!d)n.push(e);else{var f=[s,l];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter((function(e){return e}))})}})),(!s&&n.length>1||s&&c>=1&&n.length>c)&&(n.forEach((function(e){r.push({file:e,errors:[vh]})})),n.splice(0)),N({acceptedFiles:n,fileRejections:r,type:"setFiles"}),p&&p(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&h&&h(n,t)}),[N,s,j,i,a,c,p,h,m,P]),G=(0,f.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),W.current=[],kh(e)&&Promise.resolve(o(e)).then((function(t){xh(e)&&!S||q(t,e)})).catch((function(e){return U(e)})),N({type:"reset"})}),[o,q,U,S]),K=(0,f.useCallback)((function(){if(F.current){N({type:"openDialog"}),D();var e={multiple:s,types:_};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){q(e,null),N({type:"closeDialog"})})).catch((function(e){!function(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?U(e):(F.current=!1,M.current?(M.current.value=null,M.current.click()):U(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):(C(e),N({type:"closeDialog"}))}))}else M.current&&(N({type:"openDialog"}),D(),M.current.value=null,M.current.click())}),[N,D,C,v,q,U,_,s]),$=(0,f.useCallback)((function(e){T.current&&T.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),K()))}),[T,K]),X=(0,f.useCallback)((function(){N({type:"focus"})}),[]),Q=(0,f.useCallback)((function(){N({type:"blur"})}),[]),Z=(0,f.useCallback)((function(){O||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?K():setTimeout(K,0))}),[O,K]),J=function(e){return r?null:e},ee=function(e){return x?null:J(e)},te=function(e){return k?null:J(e)},ne=function(e){S&&e.stopPropagation()},re=(0,f.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.role,a=e.onKeyDown,i=e.onFocus,s=e.onBlur,c=e.onClick,u=e.onDragEnter,l=e.onDragOver,d=e.onDragLeave,f=e.onDrop,p=Hh(e,Ch);return Lh(Lh(Fh({onKeyDown:ee(Eh(a,$)),onFocus:ee(Eh(i,X)),onBlur:ee(Eh(s,Q)),onClick:J(Eh(c,Z)),onDragEnter:te(Eh(u,Y)),onDragOver:te(Eh(l,z)),onDragLeave:te(Eh(d,V)),onDrop:te(Eh(f,G)),role:"string"==typeof o&&""!==o?o:"presentation"},n,T),r||x?{}:{tabIndex:0}),p)}}),[T,$,X,Q,Z,Y,z,V,G,x,k,r]),oe=(0,f.useCallback)((function(e){e.stopPropagation()}),[]),ae=(0,f.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,a=Hh(e,Th);return Lh(Lh({},Fh({accept:j,multiple:s,type:"file",style:{display:"none"},onChange:J(Eh(r,G)),onClick:J(Eh(o,oe)),tabIndex:-1},n,M)),a)}}),[M,n,s,G,r]);return Lh(Lh({},I),{},{isFocused:R&&!r,getRootProps:re,getInputProps:ae,rootRef:T,inputRef:M,open:J(K)})}(Hh(e,_h)),o=r.open,a=Hh(r,Dh);return(0,f.useImperativeHandle)(t,(function(){return{open:o}}),[o]),h().createElement(f.Fragment,null,n(Lh(Lh({},a),{},{open:o})))}));Wh.displayName="Dropzone";var Bh={disabled:!1,getFilesFromEvent:function(e){return Fp(this,void 0,void 0,(function(){return Hp(this,(function(t){return Vp(e)&&Vp(e.dataTransfer)?[2,Kp(e.dataTransfer,e.type)]:function(e){return Vp(e)&&Vp(e.target)}(e)?[2,qp(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,Gp(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Wh.defaultProps=Bh,Wh.propTypes={children:_e().func,accept:_e().objectOf(_e().arrayOf(_e().string)),multiple:_e().bool,preventDropOnDocument:_e().bool,noClick:_e().bool,noKeyboard:_e().bool,noDrag:_e().bool,noDragEventsBubbling:_e().bool,minSize:_e().number,maxSize:_e().number,maxFiles:_e().number,disabled:_e().bool,getFilesFromEvent:_e().func,onFileDialogCancel:_e().func,onFileDialogOpen:_e().func,useFsAccessApi:_e().bool,autoFocus:_e().bool,onDragEnter:_e().func,onDragLeave:_e().func,onDragOver:_e().func,onDrop:_e().func,onDropAccepted:_e().func,onDropRejected:_e().func,onError:_e().func,validator:_e().func};const Uh=Wh;var Yh={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function zh(e,t){switch(t.type){case"focus":return Lh(Lh({},e),{},{isFocused:!0});case"blur":return Lh(Lh({},e),{},{isFocused:!1});case"openDialog":return Lh(Lh({},Yh),{},{isFileDialogActive:!0});case"closeDialog":return Lh(Lh({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Lh(Lh({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Lh(Lh({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Lh({},Yh);default:return e}}function Vh(){}function qh(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 Gh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qh(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Kh=(0,d.injectIntl)((function(e){var t=e.id,n=e.onDrop,r=e.immutable,o=e.text,a=e.onChoose,i=e.intl,s=function(e){return i.formatMessage({id:e})};return(0,Ge.jsxs)(Ap,{immutable:r,"data-cy":"upload-".concat(t),children:[(0,Ge.jsx)(Uh,{onDrop:function(e){var t=e.map((function(e){return Object.assign(e,{preview:URL.createObjectURL(e)})}));n(t[0])},multiple:!1,disabled:r,title:o||"drag and drop or click",children:function(e){var n=e.getRootProps,r=e.getInputProps;return(0,Ge.jsx)(Cp,{children:(0,Ge.jsxs)(Mp,Gh(Gh({},n()),{},{children:[(0,Ge.jsx)("input",Gh({},r())),(0,Ge.jsx)(Et,{icon:"arrow-to-top",label:s("client.component.upload.uploadFile"),iconOnly:!0,"data-cy":"btn-upload-".concat(t)})]}))})}}),a&&(0,Ge.jsx)(Et,{onClick:function(e){a(),e.stopPropagation()},icon:"folder",label:s("client.component.upload.browseDocs"),iconOnly:!0})]})}));var $h,Xh=Me.Ay.figure.withConfig({displayName:"StyledPreview"})($h||($h=Ce()(["\n && {\n vertical-align: top;\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n margin: 0; /* reset css overwrite */\n\n img {\n margin-top: ",";\n border: 1px solid ",";\n border-radius: ",";\n max-width: ",";\n max-height: ",";\n min-width: 90px; /* prevent collapse to 1px if there is no preview generated */\n }\n\n figcaption {\n text-align: center;\n }\n }\n"])),Fe.hs.space(-2.2),Fe.t7.color("border"),Fe.t7.radii("form"),(function(e){return e.maxDimensionX||"100%"}),(function(e){return e.maxDimensionY||"100%"}));const Qh=Xh;var Zh;const Jh=function(e){var t=e.thumbnailUrl,n=e.alt,r=e.srcUrl,o=(e.fileName,e.caption),a=e.maxDimensionX,i=e.maxDimensionY,s=t?(0,Ge.jsx)("img",{alt:n,title:n,src:t}):(0,Ge.jsx)("div",{title:n,children:Zh||(Zh=(0,Ge.jsx)(qe.A,{icon:"file-alt"}))});return(0,Ge.jsxs)(Qh,{maxDimensionX:a,maxDimensionY:i,children:[(0,Ge.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:r,children:s}),o&&(0,Ge.jsx)(cr.Ay.Figcaption,{children:o})]})};var em=function(e){var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat(1*(e/Math.pow(1024,t)).toFixed(2)," ").concat(["Bytes","KB","MB","GB","TB"][t])};const tm=function(e){var t=e.file,n=e.text;return(0,Ge.jsxs)(Ip,{children:[(0,Ge.jsx)(Jh,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,Ge.jsxs)(Rp,{children:[(0,Ge.jsx)(Qe,{position:Fe.xX.position.PREPEND}),(0,Ge.jsxs)(Np,{children:[n||"uploading"," (",em(t.size),")"]})]})]})};var nm=function(e,t,n){return"".concat(e).concat(e&&e.indexOf("?")>=0?"&":"?").concat(t,"=").concat(n)};const rm={downloadUrl:function(e,t){var n=document.createElement("a");n.href=e,n.download=t||e.split("/").pop(),n.target="_blank",document.body.appendChild(n),n.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(e),n.remove&&n.remove()},downloadReadableStream:function(e,t){var n=document.createElement("a"),r=URL.createObjectURL(e);n.href=r,n.download=t,n.target="_blank",document.body.appendChild(n),n.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(r),n.remove&&n.remove()},openUrl:function(e){var t=document.createElement("a");t.href=e,t.target="_blank",document.body.appendChild(t),t.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(e),t.remove&&t.remove()},downloadSupportedByBrowser:function(){var e=document.createElement("a"),t=void 0!==e.download;return e.remove&&e.remove(),t},getDownloadUrl:function(e){return nm(e,"download",!0)},addParameterToURL:nm};function om(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 am(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?om(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):om(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const im=function(e){var t,n=e.value,r=e.downloadTitle,o=e.immutable,a=e.onUpload,i=e.deleteTitle,s=null===(t=n.binaryLink)||void 0===t?void 0:t.startsWith("blob:");return(0,Ge.jsxs)(Lp,{className:"StyledView",children:[(0,Ge.jsx)(Jh,am(am({alt:n.fileName},s&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,Ge.jsxs)(Tp,{children:[!o&&(0,Ge.jsx)(Et,{icon:"trash",onClick:function(){return a(null)},tabIndex:-1,title:i||"delete"}),(0,Ge.jsx)(Et,{children:(0,Ge.jsx)(oi.Ay,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:rm.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function sm(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 cm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sm(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const um=function(e){var t=e.value,n=e.textResources,r=void 0===n?{}:n,o=e.onUpload,a=e.onChoose,i=(0,f.useRef)(t),s=(0,f.useState)({isUploading:!1,previewFile:null}),c=Je()(s,2),u=c[0],l=c[1];return(0,f.useEffect)((function(){Qn()(i.current,t)||l({isUploading:!1,previewFile:null}),i.current=t}),[t]),null!=t&&t.binaryLink?(0,Ge.jsx)(im,cm(cm({},e),{},{deleteTitle:r.delete,downloadTitle:r.download})):u.isUploading?(0,Ge.jsx)(tm,cm({file:u.previewFile,text:r.uploading},e)):(0,Ge.jsx)(Kh,cm(cm({},e),{},{onDrop:function(e){!function(e){l({isUploading:!0,previewFile:e})}(e),o(e)},onChoose:a}))};const lm=function(e){var t=e.id,n=e.onChange,r=e.options,o=void 0===r?{}:r,a=e.immutable,i=e.value;return(0,Ge.jsx)(um,{id:t,onUpload:function(e){null===e?n&&n(null):o.upload&&o.upload(e)},onChoose:o.choose,immutable:a,textResources:{upload:o.uploadText,uploading:o.uploadingText,delete:o.deleteText,download:o.downloadText},value:i||null})};var dm,fm,pm=Me.Ay.input.withConfig({displayName:"StyledDurationEdit"})(dm||(dm=Ce()(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),si,(function(e){return e.width})),hm=Me.Ay.label.withConfig({displayName:"StyledDurationEditFocusable"})(fm||(fm=Ce()(["\n &&& {\n align-items: center;\n display: flex;\n flex-wrap: nowrap;\n margin-bottom: 0; /* reset bootstrap */\n margin-left: ",";\n\n &:first-child {\n margin-left: 0;\n }\n\n > span {\n color: ",";\n cursor: ",";\n }\n }\n"])),Fe.hs.space(1),(function(e){return e.immutable?Fe.t7.color("textDisabled"):Fe.t7.color("text")}),(function(e){return e.immutable&&"text"}));const mm=function(e){var t=e.id,n=e.value,r=e.immutable,o=e.onChange,a=e.options,i=void 0===a?{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}:a,s=da.A.millisecondsToDuration(n),c=(0,f.useState)(!1),u=Je()(c,2),l=u[0],d=u[1],p=function(e,t){var n,r,a=null!==t?t:s.minutes,i=null!==e?e:s.hours;""!==a||""!==i?(a>=60&&(i=0),o((r=a,(n=i)||r?((n<0||r<0)&&(n=di(n),r=di(r)),60*(n||0)*6e4+6e4*(r||0)):null))):o(null)},h=function(){d(!0)},m=function(e){e.charCode>=48&&e.charCode<=57||45===e.charCode&&!0===i.allowNegative||e.preventDefault()},g=function(){return!0===i.allowNegative?"-?d+":"d+"},y=function(){return l||"number"==typeof n},v=function(e){return 9*(e+"").length},b=r&&Boolean(s.seconds);return(0,Ge.jsxs)(ii,{onBlur:function(){d(!1)},immutable:r,id:t,children:[(0,Ge.jsxs)(hm,{immutable:r,children:[(0,Ge.jsx)(pm,{disabled:r,immutable:r,min:!0===i.allowNegative?void 0:0,onChange:function(){},onFocus:h,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");p(t,null)},onKeyPress:m,pattern:g(),step:1,width:v(s.hours),type:"number",value:"number"!=typeof s.hours||0===s.hours&&!r?"":s.hours+"","data-cy":"input-hours"}),y()&&(0,Ge.jsx)(cr.Ay.Span,{children:i.hoursLabel})]}),(0,Ge.jsxs)(hm,{immutable:r,children:[(0,Ge.jsx)(pm,{disabled:r,immutable:r,min:!0!==i.allowNegative||null!==s.hours&&0!==s.hours?0:void 0,onChange:function(){},onFocus:h,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");p(null,t)},onKeyPress:m,pattern:g(),step:1,width:v(s.minutes),type:"number",value:s.minutes+"","data-cy":"input-minutes"}),y()&&(0,Ge.jsx)(cr.Ay.Span,{children:i.minutesLabel})]}),b&&(0,Ge.jsxs)(hm,{immutable:r,children:[(0,Ge.jsx)(pm,{disabled:r,immutable:r,onChange:function(){},width:v(s.seconds),type:"number",value:s.seconds+""}),y()&&(0,Ge.jsx)(cr.Ay.Span,{children:i.secondsLabel})]})]})};var gm;const ym=Me.Ay.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(gm||(gm=Ce()(["\n &&&& {\n ","\n }\n"])),si);const vm=st.Debouncer((function(e){return(0,Ge.jsxs)(ii,{immutable:e.immutable,children:[(0,Ge.jsx)(ym,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||""}),e.value&&(0,Ge.jsx)(ui,{children:(0,Ge.jsx)(oi.Ay,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));var bm=c(67197),wm=c.n(bm),Om=c(44383),xm=c.n(Om);function km(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 Sm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?km(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):km(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Em(){Em=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var a=RegExp(e,r);return t.set(a,o||t.get(e)),wm()(a,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var a=0;void 0===e[o[a]]&&a+1<o.length;)a++;t[n]=e[o[a]]}return t}),Object.create(null))}return Pe()(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var a=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=a[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var i=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=$n()(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,i)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},Em.apply(this,arguments)}var Pm,jm=["key","display","postcode","city","country","latitude","longitude"],_m=function(e){return e*Math.PI/180},Dm=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=e.latitude,i=e.longitude,s=t?"- ".concat(t):"",c=n?"/ ".concat(n.display):"";return{key:r,display:"".concat(r," ").concat(o," ").concat(s," ").concat(c),postcode:r,city:o,country:n,latitude:_m(a),longitude:_m(i)}};function Cm(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Tm(){}function Mm(e){return!!(e||"").match(/\d/)}function Am(e){return null==e}function Im(e){return Am(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function Nm(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Rm(e,t){void 0===t&&(t=!0);var n="-"===e[0],r=n&&t,o=(e=e.replace("-","")).split(".");return{beforeDecimal:o[0],afterDecimal:o[1]||"",hasNegation:n,addNegation:r}}function Lm(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function Fm(e,t){return Array(t+1).join(e)}function Hm(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],a=r[1];if(!(a=Number(a)))return n+o;var i=1+a,s=(o=o.replace(".","")).length;return i<0?o="0."+Fm("0",Math.abs(i))+o:i>=s?o+=Fm("0",i-s):o=(o.substring(0,i)||"0")+"."+o.substring(i),n+o}function Wm(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=Rm(e),a=o.beforeDecimal,i=o.afterDecimal,s=o.hasNegation,c=parseFloat("0."+(i||"0")),u=(i.length<=t?"0."+i:c.toFixed(t)).split("."),l=a;return a&&Number(u[0])&&(l=a.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),u[0])),""+(s?"-":"")+l+(r?".":"")+Lm(u[1]||"",t,n)}function Bm(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}!function(e){e.event="event",e.props="prop"}(Pm||(Pm={}));var Um,Ym,zm,Vm=(Um=function(e,t){for(var n=0,r=0,o=e.length,a=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[a-1-r]&&a-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:a-r}}},zm=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Ym&&e.length===Ym.length&&e.every((function(e,t){return e===Ym[t]}))?zm:(Ym=e,zm=Um.apply(void 0,e))}),qm=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function Gm(e){return Math.max(e.selectionStart,e.selectionEnd)}function Km(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function $m(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function Xm(e,t,n,r){var o=e.length;if(t=function(e,t,n){return Math.min(Math.max(e,t),n)}(t,0,o),"left"===r){for(;t>=0&&!n[t];)t--;-1===t&&(t=n.indexOf(!0))}else{for(;t<=o&&!n[t];)t++;t>o&&(t=n.lastIndexOf(!0))}return-1===t&&(t=o),t}function Qm(e){for(var t=Array.from({length:e.length+1}).map((function(){return!0})),n=0,r=t.length;n<r;n++)t[n]=Boolean(Mm(e[n])||Mm(e[n-1]));return t}function Zm(e,t,n,r,o,a){void 0===a&&(a=Tm);var i=function(e){var t=(0,f.useRef)(e);t.current=e;var n=(0,f.useRef)((function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}));return n.current}((function(e,t){var n,a;return Im(e)?(a="",n=""):"number"==typeof e||t?(a="number"==typeof e?Hm(e):e,n=r(a)):(a=o(e,void 0),n=r(a)),{formattedValue:n,numAsString:a}})),s=(0,f.useState)((function(){return i(Am(e)?t:e,n)})),c=s[0],u=s[1],l=e,d=n;Am(e)&&(l=c.numAsString,d=!0);var p=i(l,d);return(0,f.useMemo)((function(){u(p)}),[p.formattedValue]),[c,function(e,t){e.formattedValue!==c.formattedValue&&u({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}]}function Jm(e){return e.replace(/[^0-9]/g,"")}function eg(e){return e}function tg(e){var t=e.type;void 0===t&&(t="text");var n=e.displayType;void 0===n&&(n="input");var r=e.customInput,o=e.renderText,a=e.getInputRef,i=e.format;void 0===i&&(i=eg);var s=e.removeFormatting;void 0===s&&(s=Jm);var c=e.defaultValue,u=e.valueIsNumericString,l=e.onValueChange,d=e.isAllowed,p=e.onChange;void 0===p&&(p=Tm);var m=e.onKeyDown;void 0===m&&(m=Tm);var g=e.onMouseUp;void 0===g&&(g=Tm);var y=e.onFocus;void 0===y&&(y=Tm);var v=e.onBlur;void 0===v&&(v=Tm);var b=e.value,w=e.getCaretBoundary;void 0===w&&(w=Qm);var O=e.isValidInputCharacter;void 0===O&&(O=Mm);var x=e.isCharacterSame,k=Cm(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),S=Zm(b,c,Boolean(u),i,s,l),E=S[0],P=E.formattedValue,j=E.numAsString,_=S[1],D=(0,f.useRef)(),C=(0,f.useRef)({formattedValue:P,numAsString:j}),T=function(e,t){C.current={formattedValue:e.formattedValue,numAsString:e.value},_(e,t)},M=(0,f.useState)(!1),A=M[0],I=M[1],N=(0,f.useRef)(null),R=(0,f.useRef)({setCaretTimeout:null,focusTimeout:null});(0,f.useEffect)((function(){return I(!0),function(){clearTimeout(R.current.setCaretTimeout),clearTimeout(R.current.focusTimeout)}}),[]);var L=i,F=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},H=function(e,t,n){0===e.selectionStart&&e.selectionEnd===e.value.length||(Bm(e,t),R.current.setCaretTimeout=setTimeout((function(){e.value===n&&e.selectionStart!==t&&Bm(e,t)}),0))},W=function(e,t,n){return Xm(e,t,w(e),n)},B=function(e,t,n){var r=w(t),o=function(e,t,n,r,o,a,i){void 0===i&&(i=$m);var s=o.findIndex((function(e){return e})),c=e.slice(0,s);t||n.startsWith(c)||(t=c,n=c+n,r+=c.length);for(var u=n.length,l=e.length,d={},f=new Array(u),p=0;p<u;p++){f[p]=-1;for(var h=0,m=l;h<m;h++)if(i({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:h})&&!0!==d[h]){f[p]=h,d[h]=!0;break}}for(var g=r;g<u&&(-1===f[g]||!a(n[g]));)g++;var y=g===u||-1===f[g]?l:f[g];for(g=r-1;g>0&&-1===f[g];)g--;var v=-1===g||-1===f[g]?0:f[g]+1;return v>y?y:r-v<y-r?v:y}(t,P,e,n,r,O,x);return o=Xm(t,o,r)};(0,f.useEffect)((function(){var e=C.current,t=e.formattedValue,n=e.numAsString;P===t&&j===n||T(F(P,j),{event:void 0,source:Pm.props})}),[P,j]);var U=N.current?Gm(N.current):void 0;("undefined"!=typeof window?f.useLayoutEffect:f.useEffect)((function(){var e=N.current;if(P!==C.current.formattedValue&&e){var t=B(C.current.formattedValue,P,U);e.value=P,H(e,t,P)}}),[P]);var Y=function(e,t,n){var r=t.target,o=D.current?qm(D.current,r.selectionEnd):Vm(P,e),a=Object.assign(Object.assign({},o),{lastValue:P}),i=s(e,a),c=L(i);if(i=s(c,void 0),d&&!d(F(c,i))){var u=t.target,l=Gm(u),f=B(e,P,l);return u.value=P,H(u,f,P),!1}return function(e){var t=e.formattedValue;void 0===t&&(t="");var n,r=e.input,o=e.source,a=e.event,i=e.numAsString;if(r){var s=e.inputValue||r.value,c=Gm(r);r.value=t,void 0!==(n=B(s,t,c))&&H(r,n,t)}t!==P&&T(F(t,i),{event:a,source:o})}({formattedValue:c,numAsString:i,inputValue:e,event:t,source:n,input:t.target}),!0},z=function(e,t){void 0===t&&(t=0);var n=e.selectionStart,r=e.selectionEnd;D.current={selectionStart:n,selectionEnd:r+t}},V=!A||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",q=Object.assign({inputMode:V},k,{type:t,value:P,onChange:function(e){var t=e.target.value;Y(t,e,Pm.event)&&p(e),D.current=void 0},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,a=n.selectionEnd,i=n.value;void 0===i&&(i=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,i.length):"Delete"===r&&(t=o);var s=0;"Delete"===r&&o===a&&(s=1);var c="ArrowLeft"===r||"ArrowRight"===r;if(void 0===t||o!==a&&!c)return m(e),void z(n,s);var u=t;c?(u=W(i,t,"ArrowLeft"===r?"left":"right"))!==t&&e.preventDefault():"Delete"!==r||O(i[t])?"Backspace"!==r||O(i[t])||(u=W(i,t,"left")):u=W(i,t,"right");u!==t&&H(n,u,i),m(e),z(n,s)},onMouseUp:function(e){var t=e.target,n=function(){var e=t.selectionStart,n=t.selectionEnd,r=t.value;if(void 0===r&&(r=""),e===n){var o=W(r,e);o!==e&&H(t,o,r)}};n(),requestAnimationFrame((function(){n()})),g(e),z(t)},onFocus:function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;N.current=t,R.current.focusTimeout=setTimeout((function(){var r=t.selectionStart,o=t.selectionEnd,a=t.value;void 0===a&&(a="");var i=W(a,r);i===r||0===r&&o===a.length||H(t,i,a),y(Object.assign(Object.assign({},e),{currentTarget:n}))}),0)},onBlur:function(e){N.current=null,clearTimeout(R.current.focusTimeout),clearTimeout(R.current.setCaretTimeout),v(e)}});if("text"===n)return o?h().createElement(h().Fragment,null,o(P,k)||null):h().createElement("span",Object.assign({},k,{ref:a}),P);if(r){var G=r;return h().createElement(G,Object.assign({},q,{ref:a}))}return h().createElement("input",Object.assign({},q,{ref:a}))}function ng(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var a=t.suffix;void 0===a&&(a="");var i=t.allowNegative,s=t.thousandsGroupStyle;if(void 0===s&&(s="thousand"),""===e||"-"===e)return e;var c=rg(t),u=c.thousandSeparator,l=c.decimalSeparator,d=0!==n&&-1!==e.indexOf(".")||n&&r,f=Rm(e,i),p=f.beforeDecimal,h=f.afterDecimal,m=f.addNegation;return void 0!==n&&(h=Lm(h,n,!!r)),u&&(p=function(e,t,n){var r=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),o=e.search(/[1-9]/);return o=-1===o?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}(p,u,s)),o&&(p=o+p),a&&(h+=a),m&&(p="-"+p),e=p+(d&&l||"")+h}function rg(e){var t=e.decimalSeparator;void 0===t&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return!0===n&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function og(e,t,n){var r;void 0===t&&(t=Km(e));var o=n.allowNegative,a=n.prefix;void 0===a&&(a="");var i=n.suffix;void 0===i&&(i="");var s=n.decimalScale,c=t.from,u=t.to,l=u.start,d=u.end,f=rg(n),p=f.allowedDecimalSeparators,h=f.decimalSeparator,m=e[d]===h;if(Mm(e)&&(e===a||e===i)&&""===t.lastValue)return e;if(d-l==1&&-1!==p.indexOf(e[l])){var g=0===s?"":h;e=e.substring(0,l)+g+e.substring(l+1,e.length)}var y=function(e,t,n){var r=!1,o=!1;a.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):i.startsWith("-")&&e.length===i.length?r=!1:"-"===e[0]&&(r=!0);var s=r?1:0;return o&&(s=2),s&&(e=e.substring(s),t-=s,n-=s),{value:e,start:t,end:n,hasNegation:r}},v=y(e,l,d),b=v.hasNegation;e=(r=v).value,l=r.start,d=r.end;var w=y(t.lastValue,c.start,c.end),O=w.start,x=w.end,k=w.value,S=e.substring(l,d);!(e.length&&k.length&&(O>k.length-i.length||x<a.length))||S&&i.startsWith(S)||(e=k);var E=0;e.startsWith(a)?E+=a.length:l<a.length&&(E=l),d-=E;var P=(e=e.substring(E)).length,j=e.length-i.length;e.endsWith(i)?P=j:(d>j||d>e.length-i.length)&&(P=d),e=e.substring(0,P),e=function(e,t){void 0===e&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&t&&(e="-"+e),e}(b?"-"+e:e,o),e=(e.match(function(e,t){return new RegExp("(^-)|[0-9]|"+Nm(e),t?"g":void 0)}(h,!0))||[]).join("");var _=e.indexOf(h);e=e.replace(new RegExp(Nm(h),"g"),(function(e,t){return t===_?".":""}));var D=Rm(e,o),C=D.beforeDecimal,T=D.afterDecimal,M=D.addNegation;return u.end-u.start<c.end-c.start&&""===C&&m&&!parseFloat(T)&&(e=M?"-":""),e}function ag(e){e=function(e){var t=rg(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var a=e.allowNegative;if(void 0===a&&(a=!0),n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+r+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&a&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+a+"\n "),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}(e);e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=Tm);var a=e.onBlur;void 0===a&&(a=Tm);var i=e.thousandSeparator,s=e.decimalScale,c=e.fixedDecimalScale,u=e.prefix;void 0===u&&(u="");var l=e.defaultValue,d=e.value,f=e.valueIsNumericString,p=e.onValueChange,h=Cm(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=rg(e),g=m.decimalSeparator,y=m.allowedDecimalSeparators,v=function(t){return ng(t,e)},b=function(t,n){return og(t,n,e)},w=Am(d)?l:d,O=null!=f?f:function(e,t,n){return""===e||!(null==t?void 0:t.match(/\d/))&&!(null==n?void 0:n.match(/\d/))&&"string"==typeof e&&!isNaN(Number(e))}(w,u,t);Am(d)?Am(l)||(O=O||"number"==typeof l):O=O||"number"==typeof d;var x=function(e){return Im(e)?e:("number"==typeof e&&(e=Hm(e)),O&&"number"==typeof s?Wm(e,s,Boolean(c)):e)},k=Zm(x(d),x(l),Boolean(O),v,b,p),S=k[0],E=S.numAsString,P=S.formattedValue,j=k[1];return Object.assign(Object.assign({},h),{value:P,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===g||Mm(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,o=e.currentValueIndex,a=e.formattedValueIndex,i=t[o],l=r[a],f=Vm(n,t).to,p=function(e){return b(e).indexOf(".")+u.length};return!(0===d&&c&&s&&t[f.start]===g&&p(t)<o&&p(r)>a)&&(!!(o>=f.start&&o<f.end&&y&&y.includes(i)&&l===g)||i===l)},onValueChange:j,format:v,removeFormatting:b,getCaretBoundary:function(t){return function(e,t){var n=t.prefix;void 0===n&&(n="");var r=t.suffix;void 0===r&&(r="");var o=Array.from({length:e.length+1}).map((function(){return!0})),a="-"===e[0];o.fill(!1,0,n.length+(a?1:0));var i=e.length;return o.fill(!1,i-r.length+1,i+1),o}(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,a=t.selectionStart,l=t.selectionEnd,d=t.value;if(void 0===d&&(d=""),("Backspace"===r||"Delete"===r)&&l<u.length)e.preventDefault();else if(a===l){"Backspace"===r&&"-"===d[0]&&a===u.length+1&&n&&Bm(t,1),s&&c&&("Backspace"===r&&d[a-1]===g?(Bm(t,a-1),e.preventDefault()):"Delete"===r&&d[a]===g&&e.preventDefault()),(null==y?void 0:y.includes(r))&&d[a]===g&&Bm(t,a+1);var f=!0===i?",":i;"Backspace"===r&&d[a-1]===f&&Bm(t,a-1),"Delete"===r&&d[a]===f&&Bm(t,a+1),o(e)}else o(e)},onBlur:function(t){var n=E;if(n.match(/\d/g)||(n=""),r||(n=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}(n)),c&&s&&(n=Wm(n,s,c)),n!==E){var o=ng(n,e);j({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:Pm.event})}a(t)}})}function ig(e){var t=ag(e);return h().createElement(tg,Object.assign({},t))}var sg,cg=["immutable"];function ug(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}var lg=(0,Me.Ay)((function(e){e.immutable;var t=Ve()(e,cg);return(0,Ge.jsx)(ig,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ug(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ug(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(sg||(sg=Ce()(["\n &&&& {\n ","\n }\n"])),si);const dg=lg;function fg(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 pg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fg(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hg=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},mg=function(e){return null!=e&&!isNaN(parseFloat(e))},gg=function(e,t,n){return!mg(n)||!(mg(t)&&n>t)&&!(mg(e)&&n<e)},yg=function(e,t){return function(n){var r=n.floatValue;return hg(r)<hg(e)||gg(e,t,r)}};const vg=(0,d.injectIntl)(st.Debouncer((function(e){var t,n=(t=e.intl.locale,{thousandSeparator:1111..toLocaleString(t).replace(/1/g,""),decimalSeparator:1.1.toLocaleString(t).replace(/1/g,"")}),r=n.thousandSeparator,o=n.decimalSeparator,a=e.options||{},i=a.prePointDigits,s=a.postPointDigits,c=a.minValue,u=a.maxValue,l=a.allowNegative,d=a.fixedDecimalScale,f=a.suffix,p=a.prefix,h=a.format,m=function(e,t,n){if(e){var r=Math.pow(10,e)-(t?1/Math.pow(10,t):1);return n&&n>r?n:r}return n}(i,s,u),g=pg(pg({isAllowed:yg(c,m),allowNegative:!!l},isNaN(s)?{}:{decimalScale:s}),{},{fixedDecimalScale:!!d}),y=void 0===e.value||null===e.value?"":e.value;return(0,Ge.jsx)(ii,{immutable:e.immutable,children:(0,Ge.jsx)(dg,pg(pg({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&gg(c,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:y,suffix:f,prefix:p},g),{},{format:h,placeholder:e.placeholder,onBlur:function(t){var n,r=!(n=t.target.value)||isNaN(n)?null:parseFloat(n);e.onChange&&!gg(c,m,r)&&(t.target.value=null)}}))})}),800));const bg=st.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.options,o=e.immutable,a=e.name,i=e.id,s=e.placeholder,c=r||{},u=c.minValue,l=c.maxValue,d=c.format,f=c.allowLeadingZeros,p=c.suffix,h=null==t?"":t;return(0,Ge.jsx)(ii,{immutable:o,children:(0,Ge.jsx)(dg,{isAllowed:yg(u,l),allowNegative:!0,decimalScale:0,disabled:o,id:i,name:a,onValueChange:function(e){var t=e.value,r=e.floatValue,o=f?t:r;void 0===o&&(o=null),gg(u,l,r)&&n(o)},value:h,allowLeadingZeros:f,suffix:p,format:d,placeholder:s,immutable:o})})}),800);var wg,Og,xg,kg=Me.Ay.div.withConfig({displayName:"StyledWrapper"})(wg||(wg=Ce()(["\n display: flex;\n justify-content: stretch;\n"]))),Sg=Me.Ay.div.withConfig({displayName:"StyledLocationWrapper"})(Og||(Og=Ce()(["\n flex-grow: 1;\n"]))),Eg=Me.Ay.div.withConfig({displayName:"StyledDistanceWrapper"})(xg||(xg=Ce()(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),Fe.t7.color("border"),Fe.hs.space(-.8),Fe.hs.space(.5));function Pg(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 jg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pg(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const _g=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.onChange,a=e.options,i=void 0===a?{}:a,s=i.suggestions,c=i.isLoading,u=i.fetchSuggestions,l=i.latitudeField,d=i.longitudeField,f=i.emptySearchText,p=i.noResultsText,h=i.kmSuffixText,m=r?r.distance:0,g=function(e){return null!=e&&e.latitude&&null!=e&&e.longitude?xm()(e,jm):void 0}(r),y=function(e){return e?e.map(Dm):[]}(s);return(0,Ge.jsxs)(kg,{children:[(0,Ge.jsx)(Sg,{children:(0,Ge.jsx)(rf,{id:t,immutable:n,onChange:function(e){o(jg(jg({},function(e,t){return t?Sm(Sm({},e),xm()(t,jm)):Yr()(e,jm)}(r,e)),{},{latitudeField:l,longitudeField:d}))},isLoading:c,options:y,searchOptions:function(e){var t=function(e){if(!e)return null;var t=Ht()(e.matchAll(Em(/([\d]*)([^\d\s]*)/g,{postcode:1,city:2}))).map((function(e){return e.groups})),n=t.find((function(e){return e.postcode})),r=t.find((function(e){return e.city}));return Sm(Sm({},r?{city:r.city}:{}),n?{postcode:n.postcode}:{})}(e);u(t,null)},fetchOptions:function(e){e||u(null,null)},value:g,noResultsComp:function(e){return e.inputValue?p:f}})}),(0,Ge.jsx)(Eg,{children:(0,Ge.jsx)(bg,{value:m,onChange:function(e){o(jg(jg({},r),{},{distance:e}))},immutable:n,options:{minValue:0,maxValue:100,suffix:" ".concat(h)}})})]})};var Dg,Cg=(0,f.lazy)((function(){return c.e(262).then(c.bind(c,8810))}));const Tg=function(e){var t=e.id,n=e.onChange,r=e.immutable,o=e.value,a=void 0===o?"":o,i=e.options;if(r)return(0,Ge.jsx)(cr.Ay.Span,{children:(0,Ge.jsx)("div",{dangerouslySetInnerHTML:{__html:a}})});var s=i||{},c=s.contentLang,u=s.defaultLinkTarget,l=s.ckEditorConfig;return(0,Ge.jsx)(f.Suspense,{fallback:Dg||(Dg=(0,Ge.jsx)("i",{})),children:(0,Ge.jsx)(Cg,{id:t,onChange:function(e){n&&n(e)},value:a,contentLang:c,defaultLinkTarget:u,ckEditorConfig:l})})};var Mg,Ag;function Ig(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 Ng(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ig(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ig(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Rg=function(e){var t=e.onChange,n=e.options,r=e.value,o=e.id,a=e.immutable,i=e.name,s=function(e){return function(t){return t[e]}},c=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=t?"- ".concat(t):"",i=n?"/ ".concat(n.display):"";return(0,Ge.jsxs)(cr.Ay.Span,{children:[r," ",o," ",a," ",i]})},u=function(e){return function(n,o){var a=o.newValue;t(Ng(Ng({},r),{},Ye()({},e,a)))}},l=function(e,r){var o=r.suggestion;!0===o.validationRequired?n.validateLocation(o,t):t(o)},d=function(e){return function(t){var r=t.value;n.fetchSuggestions(Ye()({},e,r),n.locationValues.country)}},f={id:o,value:r.postcode||"",onChange:u("postcode"),disabled:a},p={value:r.city||"",onChange:u("city"),disabled:a};return(0,Ge.jsx)(Ka,{children:function(e){var t,o=e.focused,u=e.getRef;return(0,Ge.jsxs)(mi,{immutable:a,name:i,ref:u,children:[(0,Ge.jsx)(Ba(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d("postcode"),getSuggestionValue:s("postcode"),renderSuggestion:c,onSuggestionsClearRequested:function(){},inputProps:f,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(o||r.city||r.postcode)&&(Mg||(Mg=(0,Ge.jsx)(cr.Ay.Span,{children:"/"}))),(0,Ge.jsx)(Ba(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d("city"),getSuggestionValue:s("city"),renderSuggestion:c,onSuggestionsClearRequested:function(){},inputProps:p,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(0,Ge.jsxs)(ui,{children:[n.isLoading&&(Ag||(Ag=(0,Ge.jsx)(Qe,{size:"1.8rem"}))),(t=n.locationValues,Boolean(t.city||t.postcode)&&!t.street&&(0,Ge.jsx)(oi.Ay,{href:fi(n.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:n.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};function Lg(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}const Fg=function(e){return(0,Ge.jsx)(rf,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lg(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Hg(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}const Wg=function(e){return(0,Ge.jsx)(rf,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hg(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};var Bg;const Ug=Me.Ay.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(Bg||(Bg=Ce()(["\n &&&& {\n ","\n }\n"])),si);const Yg=function(e){var n=e.onChange,o=e.value,a=e.immutable,i=e.id,s=e.onLibLoaded,u=hi()(e,"options.defaultCountry")||"CH",l=(0,f.useState)(null),d=Je()(l,2),p=d[0],m=d[1],g=h().createRef();(0,f.useEffect)((function(){var e=function(){var e=t()(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.e(222).then(c.bind(c,96366));case 2:t=e.sent,m(t),s&&s();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[s]);var y=function(e,t){var n=e.substring(0,t-1).match(/\s/g);return(null==n?void 0:n.length)||0},v=o&&null!=p&&p.AsYouType?new p.AsYouType(u).input(o):o||"";return(0,Ge.jsxs)(ii,{immutable:a,children:[(0,Ge.jsx)(Ug,{disabled:a||!p,id:i,name,onChange:function(e){var t=e.target.value,r=p?p.parseNumber(t,u):t,a=Vr()(r)?new p.AsYouType(u).input(t).replace(/\s/g,""):p.formatNumber(r,"E.164");n(a);var i=e.target.selectionStart;!function(e,t,n){if(n&&e.length!==n){var r=new p.AsYouType(u).input(t),o=new p.AsYouType(u).input(e),a=y(r,n),i=y(o,n)-a;window.requestAnimationFrame(function(){var e=n+i;this.setSelectionRange(e,e)}.bind(g.current))}}(t,o,i)},immutable:a||!p,ref:g,value:v}),v&&(0,Ge.jsx)(ui,{children:(0,Ge.jsx)(oi.Ay,{href:"tel:".concat(o),icon:"phone",tabIndex:-1,target:"_blank",neutral:!0})})]})};function zg(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 Vg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zg(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qg=function(e){return e.map((function(e){return xm()(e,["key","display"])}))};const Gg=function(e){var t=e.id,n=e.immutable,r=e.onChange,o=e.options.isMulti,a=e.value;return(0,Ge.jsx)(rf,{id:t,immutable:n,isMulti:o,onChange:function(e){var t=o?e.map((function(e){return e.key})):[null==e?void 0:e.key],n=a.options.map((function(e){return Vg(Vg({},e),t.includes(e.key)?{selected:!0}:{selected:!1})}));r({options:n})},value:qg(a.options.filter((function(e){return e.selected}))),openMenuOnClick:!0,options:qg(a.options)})};function Kg(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}const $g=function(e){return(0,Ge.jsx)(rf,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kg(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!1,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Xg(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}const Qg=function(e){return(0,Ge.jsx)(rf,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xg(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Zg(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}const Jg=function(e){return(0,Ge.jsx)(rf,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zg(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,immutable:e.immutable,isMulti:!1,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};const ey=st.Debouncer((function(e){return(0,Ge.jsx)(ii,{immutable:e.immutable,children:(0,Ge.jsx)(ym,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||"","data-custom-arrow-navigation":"string"})})}));var ty,ny,ry,oy,ay,iy=c(60115),sy=Me.Ay.div.withConfig({displayName:"StyledTermsEdit"})(ty||(ty=Ce()(["\n margin: "," 0;\n display: flex;\n"])),Fe.hs.space(-1.4)),cy=Me.Ay.input.withConfig({displayName:"StyledCheckbox"})(ny||(ny=Ce()(["\n margin-right: ",";\n"])),Fe.hs.space(-1.5)),uy=(0,Me.AH)(ry||(ry=Ce()(["\n &,\n * {\n color: ",";\n }\n text-decoration: underline;\n\n &:hover,\n &:focus {\n color: ",";\n }\n\n &:active {\n * {\n color: ",";\n }\n }\n"])),Fe.t7.color("secondary"),Fe.t7.color("secondaryLight"),Fe.t7.color("secondary")),ly=Me.Ay.a.withConfig({displayName:"StyledTermsLink"})(oy||(oy=Ce()(["\n ","\n"])),uy),dy=(0,Me.Ay)(pf).withConfig({displayName:"StyledHtmlFormatter"})(ay||(ay=Ce()(["\n &&& {\n p {\n margin: 0;\n }\n\n a {\n ","\n }\n }\n"])),uy);const fy=function(e){var t=e.options,n=t.loadTerms,r=t.terms,o=e.onChange,a=e.value,i=e.name,s=e.id,c=e.immutable,u=(0,f.useCallback)((function(e){return{termsConditionKey:r.key,widgetConfigKey:iy.A.getWidgetConfigKey(),checked:e,pickAllProperties:!0}}),[r]),l=(0,f.useCallback)((function(){return o(null)}),[o]),d=(0,f.useCallback)((function(e){return o(u(e))}),[o,u]),p=(0,f.useCallback)((function(e){o&&(e?d(e):l())}),[o,d,l]);(0,f.useEffect)((function(){n()}),[]),(0,f.useEffect)((function(){!r||a||null!=r&&r.checkbox&&!c||d(!1)}),[r,a,c,d]);var h=(null==r?void 0:r.checkbox)&&(0,Ge.jsx)(cy,{type:"checkbox",checked:(null==a?void 0:a.checked)||!1,name:i,onChange:function(e){return p(e.target.checked)},id:s}),m=(null==r?void 0:r.link)&&(0,Ge.jsx)(ly,{target:"_blank",href:r.link,rel:"noreferrer",children:(0,Ge.jsx)(dy,{value:r.label,breakWords:!0})});return!c&&(0,Ge.jsxs)(sy,{children:[h,m||(0,Ge.jsx)(dy,{value:null==r?void 0:r.label,breakWords:!0})]})};var py,hy,my,gy=(0,Me.AH)(py||(py=Ce()(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),si),yy=Me.Ay.div.withConfig({displayName:"StyledSizeWrapper"})(hy||(hy=Ce()(["\n display: grid;\n width: 100%;\n overflow: hidden;\n\n &:after {\n content: attr(data-replicated-value) ' ';\n white-space: pre-wrap;\n word-break: break-all;\n visibility: hidden;\n ","\n /* prevent scrollbar on Firefox */\n padding-right: 15px;\n }\n"])),gy),vy=Me.Ay.textarea.withConfig({displayName:"StyledTextarea"})(my||(my=Ce()(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: ",";\n position: relative;\n }\n"])),gy,(function(e){var t=e.disabled,n=e.isSafari;return!t||n?"4.5em":"0"}));function by(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 wy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?by(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):by(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Oy=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,a=e.disabled,i=e.immutable,s=(0,f.useState)(t),c=Je()(s,2),u=c[0],l=c[1],d=!Fl(),p=Fl(),h=(0,f.useCallback)(ki()(l,500,{trailing:!0}),[]);return(0,f.useEffect)((function(){d&&h(t)}),[t,d,h]),(0,Ge.jsx)(yy,wy(wy({"data-testid":"replicated-test"},d?{"data-replicated-value":u}:{}),{},{children:(0,Ge.jsx)(vy,{value:t||"",name:r,id:o,onChange:n,disabled:a,immutable:i,rows:"1",isSafari:p})}))};const xy=st.Debouncer((function(e){return(0,Ge.jsx)(ii,{immutable:e.immutable,"data-custom-arrow-navigation":"text",children:(0,Ge.jsx)(Oy,{id:e.id,immutable:e.immutable,maxRows:20,name:e.name,onChange:function(t){return e.onChange(t.target.value)},disabled:e.immutable,rows:2,value:e.value})})}));var ky;const Sy=Me.Ay.input.withConfig({displayName:"StyledTimeEdit"})(ky||(ky=Ce()(["\n &&&& {\n ","\n }\n"])),si);function Ey(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 Py(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ey(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ey(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const jy=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.name,i=Zf(n,t),s=i.inputProps,c=i.clearButtonProps,u=n&&!r;return(0,Ge.jsxs)(ii,{immutable:r,children:[(0,Ge.jsx)(Sy,Py({type:"text",disabled:r,id:o,immutable:r,name:a},s)),u&&(0,Ge.jsx)(ui,{children:(0,Ge.jsx)(At,Py(Py({icon:"times"},c),{},{tabIndex:-1}))})]})};var _y;const Dy=Me.Ay.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(_y||(_y=Ce()(["\n &&&& {\n ","\n }\n"])),si);const Cy=st.Debouncer((function(e){return(0,Ge.jsxs)(ii,{immutable:e.immutable,children:[(0,Ge.jsx)(Dy,{disabled:e.immutable,id:e.id,immutable:e.immutable,name:e.name,onChange:function(t){return e.onChange((n=t.target.value,r=/^[a-zA-Z0-9]+:\/\//.test(n),n.indexOf(".")>0&&!r?"https://".concat(n):n));var n,r},value:e.value||""}),e.value&&(0,Ge.jsx)(ui,{children:(0,Ge.jsx)(oi.Ay,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));function Ty(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 My(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ty(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ty(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ay={boolean:cf,"boolean-select":of,choice:xf,code:Df,date:vp,datetime:Op,document:lm,duration:mm,email:vm,geosearch:_g,html:Tg,integer:bg,address:bi,location:Rg,"multi-remote":Fg,"multi-select":Wg,number:vg,phone:Yg,"pseudo-select":Gg,remote:$g,"search-filter":Qg,"single-select":Jg,string:ey,terms:fy,text:xy,url:Cy,time:jy},Iy=["boolean","choice","terms"];const Ny=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.id,a=e.events,i=e.placeholder,s=e.readOnly,c=void 0!==s&&s,u=e.popoverContent;if(Ay[t]){var l=Ay[t],d=My(My({},Yr()(a,["onChange","onDrop","onDragStart"])),{},{onBlur:function(){"function"==typeof(null==a?void 0:a.onBlur)&&a.onBlur(n)},onClick:function(e){Iy.includes(t)&&("function"==typeof(null==a?void 0:a.onClick)&&a.onClick(e),"function"==typeof(null==a?void 0:a.onBlur)&&a.onBlur())}});return(0,Ge.jsx)("div",My(My({},d),{},{"data-cy":"form-field",children:(0,Ge.jsx)(Ha,{content:u,children:(0,Ge.jsx)(l,My(My({value:n,onChange:null==a?void 0:a.onChange},Vr()(r)?{}:{options:r}),{},{id:o,immutable:c,placeholder:i,events:a}))})}))}return console.log("No type-editor defined for component type",t),null};function Ry(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 Ly(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ry(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ry(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Fy=function(e){return(0,Ge.jsx)(li,{children:(0,Ge.jsx)(Ny,Ly({componentType:e.type},Yr()(e,"type")))})};const Hy=(0,Me.SL)((function(e){return(0,Ge.jsx)(qe.A,{style:{fontSize:"".concat(e.theme.fontSize.base,"rem")},icon:e.value?"check":"times"})}));const Wy=function(e){var t=(0,d.useIntl)();return(0,Ge.jsx)(cr.Ay.Time,{dateTime:e.value,title:t.formatDate(e.value),children:(0,Ge.jsx)(d.FormattedDate,{value:e.value,year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC",id:e.id})})};var By;const Uy=(0,d.injectIntl)((function(e){var t=e.value,n=e.intl,r=new Date(t);if(!t||isNaN(r))return console.error("DateTimeFormatter: Invalid date",t),By||(By=(0,Ge.jsx)(cr.Ay.Span,{}));var o=(0,la.GPZ)(r,"HH:mm");return(0,Ge.jsxs)(cr.Ay.Time,{dateTime:r.toISOString(),title:"".concat(n.formatDate(r),", ").concat(o),children:[(0,Ge.jsx)(d.FormattedDate,{value:r,year:"numeric",month:"2-digit",day:"2-digit"}),", ",o]})}));var Yy;function zy(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 Vy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zy(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const qy=function(e){var t=e.options||{},n=(0,Ge.jsxs)(Ge.Fragment,{children:[t.title&&(0,Ge.jsx)(cr.Ay.H5,{children:t.title}),(0,Ge.jsx)(pf,Vy({},e))]});return"text"===t.mode?n:(0,Ge.jsx)(Ha,{content:n,isPlainHtml:!0,children:Yy||(Yy=(0,Ge.jsx)(Ta,{children:(0,Ge.jsx)(qe.A,{icon:"question-circle"})}))})};const Gy=function(e){var t=e.value,n=e.options||{},r=n.tooltips,o=n.loadTooltip,a=hi()(r,t.resourceKey,null);return(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsx)(Ha,{content:a?(0,Ge.jsx)("div",{dangerouslySetInnerHTML:{__html:sr.sanitizeHtml(a)}}):null,children:(0,Ge.jsx)("span",{onMouseOver:function(){return o&&!a&&o(t.resourceKey)},children:(0,Ge.jsx)(oi.Ay,{alt:t.alt||t.fileName,icon:"eye",look:"raised",target:"_blank",href:t.binaryLink,onClick:function(e){e.stopPropagation()}})})}),(0,Ge.jsx)(oi.Ay,{alt:t.alt||t.fileName,icon:"arrow-to-bottom",look:"raised",target:"_blank",href:rm.getDownloadUrl(t.binaryLink),onClick:function(e){e.stopPropagation()}})]})};const Ky=function(e){return(0,Ge.jsx)(um,{id:e.id,onUpload:function(){},immutable:!0,textResources:{download:e.options.downloadText},value:e.value?e.value:null})};const $y=function(e){var t=e.value,n=parseInt(t),r=da.A.formatDuration(n);return(0,Ge.jsx)(cr.Ay.Time,{dateTime:r,title:r,children:r})};const Xy=function(e){return(0,Ge.jsx)(oi.Ay,{href:"mailto:".concat(e.value.toString()),target:"_blank",onClick:function(e){return e.stopPropagation()},label:e.value.toString(),breakWords:e.breakWords,useTitle:e.useTitle})};const Qy=function(e){return(0,Ge.jsx)(cr.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};function Zy(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 Jy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zy(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ev=function(){return"; "};const tv=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.useTitle,a=n||{},i=a.navigationStrategy,s=a.linkProps,c=a.tooltips,u=a.loadTooltip,l=(null==t?void 0:t.length)>0?t.map((function(e){if(null!=i&&i.DetailLink){var t=hi()(c,e.key,null);return(0,Ge.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,Ge.jsx)(i.DetailLink,Jy(Jy({},s),{},{entityKey:e.key,children:(0,Ge.jsx)(Ha,{content:t?(0,Ge.jsx)("div",{dangerouslySetInnerHTML:{__html:sr.sanitizeHtml(t)}}):null,children:(0,Ge.jsx)("span",{onMouseOver:function(){return u&&!t&&u(e.key)},children:e.display})})}))},e.key)}return(0,Ge.jsx)(f.Fragment,{children:e.display},e.key)})).reduce((function(e,t,n){return[e,(0,Ge.jsx)(ev,{},"sep".concat(n)),t]})):null;return(0,Ge.jsx)(cr.Ay.Span,{breakWords:r,useTitle:o,children:l})};const nv=function(e){return(0,Ge.jsx)(cr.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,Ge.jsx)(d.FormattedNumber,{value:e.value,style:"decimal",minimumFractionDigits:e.options&&e.options.postPointDigits||2})})};const rv=function(e){var t;return(0,Ge.jsx)(cr.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,Ge.jsx)(d.FormattedNumber,{value:e.value,style:"percent",minimumFractionDigits:null==e||null===(t=e.options)||void 0===t?void 0:t.postPointDigits})})};function ov(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 av(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ov(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ov(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var iv=(0,f.lazy)((function(){return Promise.all([c.e(222),c.e(672)]).then(c.bind(c,74302))}));const sv=function(e){return(0,Ge.jsx)(f.Suspense,{fallback:"",children:(0,Ge.jsx)(iv,av({},e))})};function cv(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 uv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cv(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const lv=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.id,a=n||{},i=a.tooltips,s=a.loadTooltip,c=a.navigationStrategy,u=a.linkProps,l=hi()(i,t.key,null);t=nr.getOrFirst(t);var d=(0,Ge.jsx)(cr.Ay.Span,{breakWords:r,useTitle:!l,id:o,children:t.display});return(null!=c&&c.DetailLink?(0,Ge.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,Ge.jsx)(c.DetailLink,uv(uv({},u),{},{entityKey:t.key,children:(0,Ge.jsx)(Ha,{content:l?(0,Ge.jsx)("div",{dangerouslySetInnerHTML:{__html:sr.sanitizeHtml(l)}}):null,children:(0,Ge.jsx)("span",{onMouseOver:function(){return s&&!l&&s(t.key)},id:o,children:d})})}))}):null)||d};const dv=function(e){return(0,Ge.jsx)(cr.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,id:e.id,children:e.value.toString()})};var fv=function(e,t){return parseInt(e.split(":")[t])||0};const pv=(0,d.injectIntl)((function(e){var t=e.value,n=(e.intl,fv(t,0)),r=fv(t,1),o=fv(t,2),a=fv(t,3),i=new Date(2e3,1,1,n,r,o,a),s=(0,la.GPZ)(i,"HH:mm:ss.SSS"),c=(0,la.GPZ)(i,"HH:mm");return(0,Ge.jsx)(cr.Ay.Time,{dateTime:s,title:c,children:c})}));const hv=function(e){var t=e.value,n=e.breakWords,r=e.useTitle;return(0,Ge.jsx)(oi.Ay,{onClick:function(e){e.stopPropagation()},href:t,target:"_blank",rel:"noopener noreferrer",label:t,breakWords:n,useTitle:r,neutral:!1})};var mv,gv={boolean:Hy,date:Wy,datetime:Uy,document:Ky,"document-compact":Gy,duration:$y,email:Xy,html:pf,integer:Qy,"multi-remote":tv,"multi-select":tv,number:nv,percent:rv,phone:sv,remote:lv,"single-select":lv,string:dv,text:uf,time:pv,url:hv,description:qy};const yv=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.breakWords,a=void 0===o||o,i=e.useTitle,s=void 0===i||i,c=e.id;if(gv[t]){var u=gv[t];return(0,Ge.jsx)(u,{value:n,options:r,breakWords:a,useTitle:s,id:c})}return console.log("No FormattedValue mapper defined for component type",t,n),mv||(mv=(0,Ge.jsx)("div",{}))};var vv;const bv=function(e){var t=e.type,n=e.value,r=e.options,o=e.breakWords,a=e.useTitle,i=e.id;return null==n||""===n?vv||(vv=(0,Ge.jsx)("span",{})):(0,Ge.jsx)(yv,{componentType:t,value:n,options:r,breakWords:o,useTitle:a,id:i})},wv=bv;var Ov;Me.Ay.div.withConfig({displayName:"StyledLayoutBox"})(Ov||(Ov=Ce()(["\n height: fit-content;\n margin-bottom: ",";\n"])),Fe.hs.space(.25));var xv,kv=Me.Ay.div.withConfig({displayName:"StyledLayoutContainer"})(xv||(xv=Ce()(["\n display: grid;\n padding-right: ",";\n ",";\n ",";\n"])),Fe.hs.space(0),(function(e){var t=e.containerWidth,n=e.theme,r=e.minBoxWidth;return t<600?"grid-template-columns: 100%;":"grid-template-columns: repeat(auto-fit, minmax(".concat(r,"px, 1fr));\n grid-gap: ").concat(Fe.hs.space(.25)({theme:n}))}),(function(e){return e.occupiesRemainingHeight&&"\n flex: 1;\n "}));const Sv=kv;var Ev,Pv,jv,_v,Dv=c(5016),Cv=(0,Me.i7)(Ev||(Ev=Ce()(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),Tv=(0,Me.AH)(Pv||(Pv=Ce()(["\n animation: "," 400ms ease-in-out both;\n"])),Cv),Mv=Me.Ay.div.withConfig({displayName:"StyledLoadingIconAndTest"})(jv||(jv=Ce()(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: ",";\n ",";\n\n > "," {\n margin-top: ",";\n z-index: 1;\n }\n"])),Fe.hs.space(-1),Tv,Dv.oY,Fe.hs.space(-1));const Av=Me.Ay.div.withConfig({displayName:"StyledLoadMask"})(_v||(_v=Ce()(["\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n z-index: 0; /* prevent interference with StyledPageOverlay when implemented as widget */\n"])));var Iv;const Nv=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,a=e.className,i=(0,f.useState)(!1),s=Je()(i,2),c=s[0],u=s[1],l=(0,f.useState)(!0),d=Je()(l,2),p=d[0],h=d[1];(0,f.useEffect)((function(){return t&&Promise.all(t).then((function(){var e;e=!0,p&&u(e)})),function(){h(!1)}}),[]);var m=n&&Array.isArray(n)?!n.some((function(e){return!e})):!!t&&c;return(0,Ge.jsx)(Av,{className:a,children:m?r:(0,Ge.jsxs)(Mv,{children:[Iv||(Iv=(0,Ge.jsx)(Qe,{size:"30px"},"loading-spinner")),o&&(0,Ge.jsx)(cr.Ay.Span,{children:o},"loadingText")]})})};var Rv,Lv=Me.Ay.div.withConfig({displayName:"StyledPanel"})(Rv||(Rv=Ce()(["\n && {\n background-color: ",";\n border: 1px "," ",";\n border-radius: ",";\n }\n"])),Fe.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),Fe.t7.color("borderLight"),Fe.t7.radii("form"));const Fv=Lv;var Hv=["children","isFramed","controlledIsOpen","isOpenInitial","isToggleable","onToggle"];const Wv=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.controlledIsOpen,a=e.isOpenInitial,i=void 0===a||a,s=e.isToggleable,c=void 0===s||s,u=e.onToggle,l=Ve()(e,Hv),d=(0,f.useState)(i),p=Je()(d,2),m=p[0],g=p[1],y="boolean"==typeof o,v=function(){c&&(y?"function"==typeof u&&u(!o):g(!m))};return(0,Ge.jsx)(Fv,{isFramed:r,"data-cy":l["data-cy"],children:h().Children.map(t,(function(e){return h().cloneElement(e,{isFramed:r,isOpen:y?o:m,isToggleable:c,toggleOpenState:v})}))})};var Bv,Uv=Me.Ay.div.withConfig({displayName:"StyledPanelBody"})(Bv||(Bv=Ce()(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?Fe.hs.space(-.375):0}),(function(e){return e.isOpen?"block":"none"}));const Yv=Uv;var zv=["children","isFramed","isOpen"];const Vv=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=Ve()(e,zv);return(0,Ge.jsx)(Yv,{isFramed:n,isOpen:r,"data-cy":o["data-cy"],children:(0,Ge.jsx)("div",{children:t})})};const qv=function(e){var t=e.initialOpenPanelIndex,n=e.children,r=(0,f.useState)(t),o=Je()(r,2),a=o[0],i=o[1];return(0,Ge.jsx)(Ge.Fragment,{children:h().Children.map(n,(function(e,t){return h().cloneElement(e,{controlledIsOpen:a===t,onToggle:function(e){return function(e,t){i(!0===t?e:void 0)}(t,e)}})}))})};var Gv;const Kv=Me.Ay.div.withConfig({displayName:"StyledPanelGroup"})(Gv||(Gv=Ce()(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),Fe.hs.space(0),Fv,Fe.hs.space(-1));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 Xv(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){Ye()(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 Qv=function(e){return(0,Ge.jsx)(Kv,{children:(0,Ge.jsx)(qv,Xv({},e))})};var Zv,Jv,eb,tb,nb,rb,ob="1px",ab=Me.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Zv||(Zv=Ce()(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),Fe.hs.font(1),Fe.t7.color("text"),!Hl()&&(0,Me.AH)(Jv||(Jv=Ce()(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),Fe.t7.color("secondaryLight"))),ib=Me.Ay.div.withConfig({displayName:"StyledPanelHeader"})(eb||(eb=Ce()(["\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"])),Fe.t7.color("backgroundPanelHeaderFooter"),Fe.t7.radii("form"),ob,Fe.t7.radii("form"),ob,Fe.t7.radii("form"),ob,Fe.t7.radii("form"),ob,(function(e){return e.isOpen&&(0,Me.AH)(tb||(tb=Ce()(["\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n "])))}),(function(e){return e.isFramed?(0,Me.AH)(nb||(nb=Ce()(["\n "," ","\n "])),Fe.hs.space(-1.7),Fe.hs.space(-.375)):0}),!Hl()&&(0,Me.AH)(rb||(rb=Ce()(["\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n "])),ab),(function(e){return function(e){var t=e.theme,n=e.isOpen,r=e.isFramed,o="\n &:first-child {\n border-bottom-color: ".concat(t.colors.borderLight,";\n border-bottom-style: ").concat(r?"solid":"none",";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-color: ").concat(t.colors.borderLight,";\n border-top-style: ").concat(r?"solid":"none",";\n }\n ");return n?"\n ".concat(o,"\n &:first-child {\n border-bottom-width: ").concat(ob,";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-width: ").concat(ob,";\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(ob,";\n }\n ")}(e)}));const sb=ib;var cb=["children","isFramed","isOpen","isToggleable","showToggler","toggleOpenState","options"];const ub=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,a=e.showToggler,i=void 0===a||a,s=e.toggleOpenState,c=e.options,u=void 0===c?{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}:c,l=Ve()(e,cb);return(0,Ge.jsxs)(sb,{isFramed:n,isOpen:r,onClick:s,"data-cy":l["data-cy"],children:[(0,Ge.jsx)("div",{children:h().Children.map(t,(function(e){return h().cloneElement(e)}))}),o&&i&&(0,Ge.jsx)(ab,{children:(0,Ge.jsx)(qe.A,{icon:r?"chevron-up":"chevron-down",onClick:s,title:r?u.collapseButtonText:u.unfoldButtonText})})]})},lb={Body:Vv,Group:Qv,Header:ub,Wrapper:Wv};var db,fb=Me.Ay.div.withConfig({displayName:"StyledPanel"})(db||(db=Ce()(["\n && {\n background-color: ",";\n border: 1.5px "," ",";\n border-radius: ",";\n }\n"])),Fe.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),Fe.t7.color("borderLight"),Fe.t7.radii("form"));const pb=fb;const hb=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.isOpenInitial,a=void 0===o||o,i=(0,f.useState)(a),s=Je()(i,2),c=s[0],u=s[1];return(0,Ge.jsx)(pb,{isFramed:r,children:h().Children.map(t,(function(e){return h().cloneElement(e,{isOpen:c,isToggleable:!a,isFramed:r,toggleOpenState:function(){return u(!c)}})}))})};var mb,gb,yb=Me.Ay.div.withConfig({displayName:"StyledPanelBody"})(mb||(mb=Ce()(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?(0,Me.AH)(gb||(gb=Ce()(["\n "," "," "," ","\n "])),Fe.hs.space(-1),Fe.hs.space(.2),Fe.hs.space(.2),Fe.hs.space(.2)):0}),(function(e){return e.isOpen?"block":"none"}));const vb=yb;const bb=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,Ge.jsx)(vb,{isFramed:n,isOpen:r,children:(0,Ge.jsx)("div",{children:t})})};var wb;const Ob=Me.Ay.div.withConfig({displayName:"StyledPanelGroup"})(wb||(wb=Ce()(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),Fe.hs.space(0),pb,Fe.hs.space(-1));function xb(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 kb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xb(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Sb=function(e){return(0,Ge.jsx)(Ob,{children:(0,Ge.jsx)(qv,kb({},e))})};var Eb,Pb,jb,_b="1px",Db=Me.Ay.div.withConfig({displayName:"StyledPanelHeader"})(Eb||(Eb=Ce()(["\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"])),Fe.t7.color("paper"),Fe.t7.radii("form"),_b,Fe.t7.radii("form"),_b,(function(e){return e.isFramed?Fe.hs.space(.2):0}),Fe.t7.fontWeight("regular"),(function(e){return function(e){var t=e.theme,n=e.isFramed,r="\n &:first-child {\n border-bottom-color: ".concat(t.colors.borderLight,";\n border-bottom-style: ").concat(n?"solid":"none",";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-color: ").concat(t.colors.borderLight,";\n border-top-style: ").concat(n?"solid":"none",";\n }\n ");return"\n ".concat(r,"\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 ")}(e)})),Cb=Me.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Pb||(Pb=Ce()(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),Fe.hs.font(1),Fe.t7.color("text"),!Hl()&&(0,Me.AH)(jb||(jb=Ce()(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),Fe.t7.color("secondaryLight")));const Tb=Db;const Mb=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,a=e.showToggler,i=void 0===a||a,s=e.toggleOpenState,c=e.options,u=void 0===c?{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}:c;return(0,Ge.jsxs)(Tb,{isFramed:n,isOpen:r,onClick:o?s:function(){},children:[(0,Ge.jsx)("div",{children:h().Children.map(t,(function(e){return h().cloneElement(e)}))}),o&&i&&(0,Ge.jsx)(Cb,{children:(0,Ge.jsx)(qe.A,{icon:r?"chevron-up":"chevron-down",onClick:s,title:r?u.collapseButtonText:u.unfoldButtonText})})]})},Ab={Body:bb,Group:Sb,Header:Mb,Wrapper:hb};var Ib={Body:Ye()(Ye()({},iy.A.EmbedType.admin,lb.Body),iy.A.EmbedType.widget,Ab.Body),Group:Ye()(Ye()({},iy.A.EmbedType.admin,lb.Group),iy.A.EmbedType.widget,Ab.Group),Header:Ye()(Ye()({},iy.A.EmbedType.admin,lb.Header),iy.A.EmbedType.widget,Ab.Header),Wrapper:Ye()(Ye()({},iy.A.EmbedType.admin,lb.Wrapper),iy.A.EmbedType.widget,Ab.Wrapper)};iy.A.embedStrategyFactory({mapping:Ib.Body}),iy.A.embedStrategyFactory({mapping:Ib.Group}),iy.A.embedStrategyFactory({mapping:Ib.Header}),iy.A.embedStrategyFactory({mapping:Ib.Wrapper});var Nb;Me.Ay.div.withConfig({displayName:"StyledButtonWrapper"})(Nb||(Nb=Ce()(["\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: flex-end;\n"])),Fe.hs.space(0),Fe.t7.color("paper"));var Rb=new AbortController,Lb=!1;window.addEventListener("beforeunload",(function(e){Lb?(e.preventDefault(),e.returnValue=""):Rb.abort()})),window.addEventListener("pagehide",(function(){Rb.signal.aborted||Rb.abort()}));var Fb=function(e){return"@@redux-saga/"+e},Hb=Fb("CANCEL_PROMISE"),Wb=Fb("CHANNEL_END"),Bb=Fb("IO"),Ub=Fb("MATCH"),Yb=Fb("MULTICAST"),zb=Fb("SAGA_ACTION"),Vb=Fb("SELF_CANCELLATION"),qb=Fb("TASK"),Gb=Fb("TASK_CANCEL"),Kb=Fb("TERMINATE"),$b=Fb("LOCATION");function Xb(){return Xb=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},Xb.apply(this,arguments)}var Qb=function(e){return null==e},Zb=function(e){return null!=e},Jb=function(e){return"function"==typeof e},ew=function(e){return"string"==typeof e},tw=Array.isArray,nw=function(e){return e&&Jb(e.then)},rw=function(e){return e&&Jb(e.next)&&Jb(e.throw)},ow=function e(t){return t&&(ew(t)||sw(t)||Jb(t)||tw(t)&&t.every(e))},aw=function(e){return e&&Jb(e.take)&&Jb(e.close)},iw=function(e){return Jb(e)&&e.hasOwnProperty("toString")},sw=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},cw=function(e){return aw(e)&&e[Yb]};var uw=function(e){return function(){return e}},lw=uw(!0),dw=function(){};var fw=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var pw=function(e,t){Xb(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function hw(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function mw(e){var t=!1;return function(){t||(t=!0,e())}}var gw=function(e){throw e},yw=function(e){return{value:e,done:!0}};function vw(e,t,n){void 0===t&&(t=gw),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:yw,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function bw(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var ww=function(e){return Array.apply(null,new Array(e))},Ow=function(e){return function(t){return e(Object.defineProperty(t,zb,{value:!0}))}},xw=function(e){return e===Kb},kw=function(e){return e===Gb},Sw=function(e){return xw(e)||kw(e)};function Ew(e,t){var n=Object.keys(e),r=n.length;var o,a=0,i=tw(e)?ww(r):{},s={};return n.forEach((function(e){var n=function(n,s){o||(s||Sw(n)?(t.cancel(),t(n,s)):(i[e]=n,++a===r&&(o=!0,t(i))))};n.cancel=dw,s[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return s[e].cancel()})))},s}function Pw(e){return{name:e.name||"anonymous",location:jw(e)}}function jw(e){return e[$b]}function _w(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var Dw={isEmpty:lw,put:dw,take:dw};function Cw(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,a=0,i=function(t){n[o]=t,o=(o+1)%e,r++},s=function(){if(0!=r){var t=n[a];return n[a]=null,r--,a=(a+1)%e,t}},c=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(s){var u;if(r<e)i(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=s,a=o=(o+1)%e;break;case 4:u=2*e,n=c(),r=n.length,o=n.length,a=0,n.length=u,e=u,i(s)}},take:s,flush:c}}var Tw=function(){return Dw},Mw=function(e){return Cw(e,4)},Aw="TAKE",Iw="PUT",Nw="ALL",Rw="RACE",Lw="CALL",Fw="CPS",Hw="FORK",Ww="JOIN",Bw="CANCEL",Uw="SELECT",Yw="ACTION_CHANNEL",zw="CANCELLED",Vw="FLUSH",qw="GET_CONTEXT",Gw="SET_CONTEXT",Kw=function(e,t){var n;return(n={})[Bb]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function $w(e,t){return void 0===e&&(e="*"),ow(e)?(Zb(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),Kw(Aw,{pattern:e})):cw(e)&&Zb(t)&&ow(t)?Kw(Aw,{channel:e,pattern:t}):aw(e)?(Zb(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),Kw(Aw,{channel:e})):void 0}function Xw(e,t){return Qb(t)&&(t=e,e=void 0),Kw(Iw,{channel:e,action:t})}function Qw(e){var t=Kw(Nw,e);return t.combinator=!0,t}function Zw(e,t){var n,r=null;return Jb(e)?n=e:(tw(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&ew(n)&&Jb(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function Jw(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Kw(Lw,Zw(e,n))}function eO(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Kw(Hw,Zw(e,n))}function tO(e){void 0===e&&(e=fw);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Kw(Uw,{selector:e,args:n})}var nO=function(e){return{done:!0,value:e}},rO={};function oO(e){return aw(e)?"channel":iw(e)?String(e):Jb(e)?e.name:String(e)}function aO(e,t,n){var r,o,a,i=t;function s(t,n){if(i===rO)return nO(t);if(n&&!o)throw i=rO,n;r&&r(t);var s=n?e[o](n):e[i]();return i=s.nextState,a=s.effect,r=s.stateUpdater,o=s.errorState,i===rO?nO(t):a}return vw(s,(function(e){return s(null,e)}),n)}function iO(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a,i={done:!1,value:$w(e)},s=function(e){return a=e};return aO({q1:function(){return{nextState:"q2",effect:i,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=a,{done:!1,value:eO.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+oO(e)+", "+t.name+")")}function sO(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a,i,s={done:!1,value:$w(e)},c=function(e){return{done:!1,value:eO.apply(void 0,[t].concat(r,[e]))}},u=function(e){return{done:!1,value:(t=e,void 0===t&&(t=Vb),Kw(Bw,t))};var t},l=function(e){return a=e},d=function(e){return i=e};return aO({q1:function(){return{nextState:"q2",effect:s,stateUpdater:d}},q2:function(){return a?{nextState:"q3",effect:u(a)}:{nextState:"q1",effect:c(i),stateUpdater:l}},q3:function(){return{nextState:"q1",effect:c(i),stateUpdater:l}}},"q1","takeLatest("+oO(e)+", "+t.name+")")}function cO(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return eO.apply(void 0,[iO,e,t].concat(r))}function uO(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return eO.apply(void 0,[sO,e,t].concat(r))}var lO=function(e,t,n){return r().mark((function o(){var a,i,c,u=arguments;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(a=u.length,i=new Array(a),c=0;c<a;c++)i[c]=u[c];case 1:return r.prev=2,r.next=5,Jw.apply(void 0,[e,t].concat(i));case 5:r.next=16;break;case 7:if(r.prev=7,r.t0=r.catch(2),!1!==Rb.signal.aborted){r.next=16;break}if(!n){r.next=15;break}return r.next=13,Xw(n("client.common.unexpectedError","client.common.unexpectedError",r.t0));case 13:r.next=16;break;case 15:s.A.logError("error",r.t0);case 16:r.next=1;break;case 18:case"end":return r.stop()}}),o,null,[[2,7]])}))};const dO={autoRestartSaga:lO,createGenerator:function(e){return r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Qw(e);case 2:case"end":return t.stop()}}),t)}))},injectSaga:function(e,t,n){e.sagas.includes(t)||(e.sagas.push(t),e.sagaMiddleware.run(lO(t,null,n)))},abortController:Rb,deactivatePreventFromLeaving:function(){Lb=!1},activatePreventFromLeaving:function(){Lb=!0}};_e().node,_e().bool,_e().string,_e().bool,_e().objectOf(_e().arrayOf(_e().oneOfType([_e().node,_e().string]))),_e().bool,_e().bool,_e().string,_e().string,_e().oneOf(["inside","outside-responsive","outside"]),_e().bool,_e().string,_e().bool,_e().string,_e().bool;var fO,pO,hO,mO=Ye()(Ye()(Ye()(Ye()(Ye()({},Fe.xX.condition.BASE,Fe.t7.color("text")),Fe.xX.condition.DANGER,Fe.t7.color("signal.danger")),Fe.xX.condition.SUCCESS,Fe.t7.color("signal.success")),Fe.xX.condition.WARNING,Fe.t7.color("signal.warning")),Fe.xX.condition.INFO,Fe.t7.color("signal.info")),gO=(0,Me.Ay)(cr.dV).withConfig({displayName:"StyledSignalList"})(fO||(fO=Ce()(["\n && {\n list-style-type: none;\n margin-left: 0;\n }\n"]))),yO=Me.Ay.span.withConfig({displayName:"StyledSignalListIcon"})(pO||(pO=Ce()(["\n margin-left: -1px;\n margin-right: ",";\n"])),Fe.hs.space(-2)),vO=(0,Me.Ay)(cr.vx).withConfig({displayName:"StyledSignalListItem"})(hO||(hO=Ce()(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){var t=e.condition;return mO[t]}(e)}));const bO=function(e){return(0,Ge.jsx)(gO,{as:"ul",children:h().Children.map(e.children,(function(e){return h().cloneElement(e)}))})};var wO,OO=["condition","label","children"],xO=Ye()(Ye()(Ye()(Ye()(Ye()({},Fe.xX.condition.BASE,!1),Fe.xX.condition.DANGER,"times"),Fe.xX.condition.SUCCESS,"check"),Fe.xX.condition.WARNING,"exclamation-triangle"),Fe.xX.condition.INFO,"info"),kO=function(e){var t=xO[e];return t?(0,Ge.jsx)(qe.A,{icon:t,position:Fe.xX.position.SOLE,hasFixedWidth:!1}):wO||(wO=(0,Ge.jsx)("i",{children:"•"}))};const SO=function(e){var t=e.condition,n=void 0===t?Fe.xX.condition.BASE:t,r=e.label,o=e.children,a=Ve()(e,OO);return(0,Ge.jsxs)(vO,{condition:n,"data-cy":a["data-cy"],children:[(0,Ge.jsx)(yO,{children:kO(n)}),r,h().Children.map(o,(function(e){return h().cloneElement(e)}))]})},EO={List:bO,Item:SO};const PO=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,Ht()(e.error[n]))})),(0,Ge.jsx)(EO.List,{children:t.map((function(e,t){return(0,Ge.jsx)(EO.Item,{condition:"danger",label:e,"data-cy":"erroritem-".concat(t)},t)}))})};var jO,_O,DO,CO,TO,MO,AO,IO,NO,RO,LO,FO,HO,WO,BO="1.1px",UO=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"text":"auto",";")},YO=Me.Ay.label.withConfig({displayName:"StyledStatedValueLabel"})(jO||(jO=Ce()(["\n &&& {\n display: flex;\n width: 40%;\n flex-grow: 1;\n flex-basis: 125px;\n ","\n background-color: ",";\n pointer-events: auto;\n ","\n word-break: break-word;\n white-space: pre-wrap;\n ","\n ","\n ","\n }\n"])),(0,Fe.Ed)({lineHeight:Fe.t7.lineHeight("dense")}),Fe.t7.color("paper"),(function(e){return UO(e)}),(function(e){return"outside"===e.labelPosition&&(0,Me.AH)(_O||(_O=Ce()(["\n margin-bottom: ",";\n display: block;\n width: auto;\n "])),Fe.hs.space(-1.5))}),(function(e){return"inside"===e.labelPosition&&(0,Me.AH)(DO||(DO=Ce()(["\n flex-basis: unset;\n position: absolute;\n top: 0;\n z-index: 1;\n display: inline-block;\n padding: 0 "," 0 ","; /* if immutable remove left padding */\n width: fit-content;\n left: ",";\n white-space: nowrap; /* prevent multiline labels since they cover the input content */\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 100%;\n "])),Fe.hs.space(-2),(function(e){return e.immutable&&"0"}),(function(e){return e.immutable?"0":Fe.hs.space(-1.8)}))}),(function(e){return e.styles})),zO=Me.Ay.div.withConfig({displayName:"StyledInputArea"})(CO||(CO=Ce()(["\n width: 60%;\n flex-grow: 1;\n ","\n"])),(function(e){return"outside"===e.labelPosition&&(0,Me.AH)(TO||(TO=Ce()(["\n width: auto;\n "])))})),VO=Me.Ay.div.withConfig({displayName:"StyledStatedValueBox"})(MO||(MO=Ce()(["\n &&& {\n position: relative;\n height: fit-content; /* prevent height getting bigger due to tall labels */\n border: "," solid ",";\n border-radius: ",";\n padding: "," ",";\n display: flex;\n ","\n ","\n ","\n\n > "," {\n display: inline-block;\n max-width: 100%;\n\n p:first-of-type {\n margin-top: 0;\n }\n }\n ","\n ","\n }\n"])),BO,(function(e){return Fe.KY[function(e){var t=e.immutable,n=e.isDisplay,r=e.signal;return e.isDirty?"isDirty":n||t?"transparent":r?"signal":"base"}(e)](e)}),Fe.t7.radii("form"),Fe.hs.space(-2.5),Fe.hs.space(-1.5),(function(e){return!e.immutable&&(0,Fe.h7)(e)}),(function(e){return UO(e)}),(0,Fe.Ed)(),Aa,(function(e){return"inside"===e.labelPosition&&(0,Me.AH)(AO||(AO=Ce()(["\n padding: "," "," "," ",";\n "])),Fe.hs.space(-1),Fe.hs.space(-1.7),Fe.hs.space(-2),Fe.hs.space(-1))}),(function(e){return e.styles})),qO=Me.Ay.p.withConfig({displayName:"StyledStatedValueDescription"})(IO||(IO=Ce()(["\n &&& {\n ","\n }\n"])),(0,Fe.Ed)({fontSize:Fe.hs.font(-1)})),GO=Me.Ay.div.withConfig({displayName:"StyledStatedValueError"})(NO||(NO=Ce()([""]))),KO=Me.Ay.div.withConfig({displayName:"StyledStatedValueOuterWrapper"})(RO||(RO=Ce()(["\n &:not(:last-child) {\n margin-bottom: ",";\n }\n ","\n"])),Fe.hs.space(-.7),(function(e){return"inside"===e.labelPosition&&(0,Me.AH)(LO||(LO=Ce()(["\n padding-top: ",";\n margin-bottom: 0.65rem;\n position: relative;\n "])),Fe.hs.space(-1.5))})),$O=Me.Ay.div.withConfig({displayName:"StyledStatedValueInnerWrapper"})(FO||(FO=Ce()(["\n &&& {\n display: flex;\n flex-wrap: wrap;\n gap: ",";\n align-items: center;\n\n ",",\n ",",\n "," {\n margin-bottom: ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n "," {\n margin-left: calc("," + ",");\n }\n ","\n ","\n ","\n }\n"])),Fe.hs.space(-1.5),VO,qO,GO,Fe.hs.space(-2),qO,Fe.hs.space(-1),BO,(function(e){return"outside"===e.labelPosition&&(0,Me.AH)(HO||(HO=Ce()(["\n display: block;\n "])))}),(function(e){return"inside"===e.labelPosition&&(0,Me.AH)(WO||(WO=Ce()(["\n padding-top: 0;\n "])))}),(function(e){return e.styles}));function XO(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 QO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XO(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ZO=function(e){var t,n,r,o=e.children,a=e.description,i=e.dirty,s=e.isDisplay,c=e.error,u=e.hasValue,l=e.id,d=e.label,f=e.mandatory,p=e.mandatoryTitle,h=e.immutable,m=e.touched,g=e.signal,y=e.labelPosition,v=e.styles,b=!h&&m&&c&&Object.keys(c).length>0,w=f&&p?", ".concat(p):"",O="".concat(nr.adjustedHTMLString(d)).concat(w),x=g||function(e,t,n,r){return t?Fe.xX.condition.DANGER:e?Fe.xX.condition.INFO:n&&!r?Fe.xX.condition.WARNING:void 0}(i,b,f,u),k={__html:"".concat(sr.sanitizeHtml(d)).concat(f?" *":"")},S=!s&&!h&&{htmlFor:l};return(0,Ge.jsx)(Ka,{children:function(e){var f=e.getRef;return(0,Ge.jsx)(KO,{labelPosition:y,children:(0,Ge.jsxs)($O,{labelPosition:y,ref:f,label:d,styles:null==v?void 0:v.innerWrapperStyles,children:[d&&(0,Ge.jsx)(YO,QO(QO({},S),{},{hasValue:u,dirty:i,title:O,immutable:h,isDisplay:s,signal:x,labelPosition:y,styles:null==v?void 0:v.labelStyles,children:t||(t=(0,Ge.jsx)("span",{dangerouslySetInnerHTML:k}))})),(0,Ge.jsxs)(zO,{labelPosition:y,children:[(0,Ge.jsx)(VO,{hasValue:u,immutable:h,isDisplay:s,signal:x,labelPosition:y,styles:null==v?void 0:v.valueStyles,children:o}),b&&(0,Ge.jsx)(GO,{"data-cy":"errorlist-".concat(l),children:n||(n=(0,Ge.jsx)(PO,{error:c}))}),a&&(r||(r=(0,Ge.jsx)(qO,{children:a})))]})]})})}})};var JO,ex,tx=function(e){return(0,Me.AH)(JO||(JO=Ce()(["\n color: ",";\n font-weight: ",";\n"])),Fe.Db[function(e){var t=e.isDisplay,n=e.immutable,r=e.signal,o=e.hasValue;return r?"signal":o?"hasValue":t?"shade1":n?"base":"shade1"}(e)](e),(function(e){return e.dirty?Fe.t7.fontWeight("bold"):Fe.t7.fontWeight("regular")}))},nx=function(){return(0,Me.AH)(ex||(ex=Ce()(["\n padding-left: ",";\n"])),(function(e){return e.immutable&&0}))},rx=["labelPosition"];function ox(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}const ax=function(e){var t=e.labelPosition,n=Ve()(e,rx);return(0,Ge.jsx)(ZO,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ox(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ox(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{labelStyles:tx,valueStyles:nx},labelPosition:t||"outside-responsive"},n))};var ix,sx,cx,ux,lx,dx,fx=function(e){return e.signal?"signal":"shade2"},px=function(){return(0,Me.AH)(ix||(ix=Ce()(["\n align-items: flex-start;\n"])))},hx=function(e){return(0,Me.AH)(sx||(sx=Ce()(["\n padding-top: ",";\n color: ",";\n"])),(function(e){var t=e.immutable;return"inside"===e.labelPosition?0:t?(0,Me.AH)(cx||(cx=Ce()(["\n ","\n "])),Fe.hs.space(-1.8)):(0,Me.AH)(ux||(ux=Ce()(["\n ","\n "])),Fe.hs.space(.1))}),Fe.Db[fx(e)](e))},mx=function(){return(0,Me.AH)(lx||(lx=Ce()(["\n padding-top: ",";\n padding-left: ",";\n"])),(function(e){var t=e.isDisplay,n=e.immutable,r=e.labelPosition;return n&&"inside"!==r?0:t&&n?(0,Me.AH)(dx||(dx=Ce()(["\n ","\n "])),Fe.hs.space(-1)):void 0}),(function(e){return e.immutable&&0}))},gx=["labelPosition"];function yx(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}const vx=function(e){var t=e.labelPosition,n=Ve()(e,gx);return(0,Ge.jsx)(ZO,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yx(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{innerWrapperStyles:px,labelStyles:hx,valueStyles:mx},labelPosition:t||"outside-responsive"},n))};var bx=Ye()(Ye()({},iy.A.EmbedType.admin,ax),iy.A.EmbedType.widget,vx);const wx=iy.A.embedStrategyFactory({mapping:bx});var Ox,xx,kx,Sx,Ex=Me.Ay.span.withConfig({displayName:"StyledSearchIconWrapper"})(Ox||(Ox=Ce()(["\n margin-right: ",";\n color: ",";\n"])),Fe.hs.space(-.8),Fe.t7.color("text")),Px=Me.Ay.div.withConfig({displayName:"StyledSearchBox"})(xx||(xx=Ce()(["\n && {\n /* clears the ‘X’ from Chrome */\n input[type='search']::-webkit-search-decoration,\n input[type='search']::-webkit-search-cancel-button,\n input[type='search']::-webkit-search-results-button,\n input[type='search']::-webkit-search-results-decoration {\n display: none;\n }\n }\n"]))),jx=Me.Ay.input.attrs((function(e){return{type:"search",placeholder:e.placeholder}})).withConfig({displayName:"StyledSearchBoxInput"})(kx||(kx=Ce()(["\n &&&& {\n ","\n }\n"])),si),_x=h().forwardRef((function(e,t){var n=e.value,r=e.minInputLength,o=void 0===r?3:r,a=e.onSearch,i=e.placeholder,s=(e.debounce,(0,f.useState)(n||"")),c=Je()(s,2),u=c[0],l=c[1];return(0,Ge.jsx)(Px,{children:(0,Ge.jsx)(wx,{hasValue:Boolean(u),labelPosition:"inside",children:(0,Ge.jsxs)(ii,{children:[Sx||(Sx=(0,Ge.jsx)(Ex,{children:(0,Ge.jsx)(qe.A,{icon:"search"})})),(0,Ge.jsx)(jx,{"data-cy":"input-search-box",ref:t,onChange:function(e){var t=e.target.value;l(t),(0===t.length||t.length>=o)&&a(t.trim())},value:u,"aria-label":i,placeholder:i}),(null==u?void 0:u.length)>0&&(0,Ge.jsx)(At,{"data-cy":"btn-reset",icon:"times",onClick:function(){l(""),a("")}})]})})})}));const Dx=st.Debouncer(_x,100,"onSearch");var Cx,Tx=[Fe.xX.condition.BASE,Fe.xX.condition.INFO,Fe.xX.condition.DANGER,Fe.xX.condition.SUCCESS,Fe.xX.condition.WARNING],Mx=Ye()(Ye()(Ye()(Ye()(Ye()({},Fe.xX.condition.BASE,Fe.t7.color("signal.neutral")),Fe.xX.condition.DANGER,Fe.t7.color("signal.danger")),Fe.xX.condition.SUCCESS,Fe.t7.color("signal.success")),Fe.xX.condition.WARNING,Fe.t7.color("signal.warning")),Fe.xX.condition.INFO,Fe.t7.color("signal.info")),Ax=Me.Ay.div.withConfig({displayName:"StyledSignalBox"})(Cx||(Cx=Ce()(["\n && {\n background-color: ",";\n padding: ",";\n margin-bottom: ",";\n\n * {\n color: ",";\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(function(e){return function(e){return Mx[e.condition]||Mx[Fe.xX.condition.INFO]}(e)}),Fe.hs.space(-1),Fe.hs.space(-1),(function(e){return"base"===e.condition?"#000":"#FFF"}));Ax.propTypes={condition:Fe.xX.oneOfPropTypeAndCompletelyMapped(Tx,Mx)};var Ix,Nx,Rx;Me.Ay.div.withConfig({displayName:"StyledCell"})(Ix||(Ix=Ce()(["\n display: flex;\n flex-direction: column;\n width: 100%;\n"]))),Me.Ay.div.withConfig({displayName:"StyledStatedValueBox"})(Nx||(Nx=Ce()(["\n width: 100%;\n ","\n border: 1px solid ",";\n border-radius: ",";\n ","\n "," {\n padding: "," "," "," ",";\n border-radius: ",";\n background-color: ",";\n }\n\n button {\n background-color: transparent;\n }\n\n &&&&& {\n input,\n textarea {\n padding-left: ",";\n padding-right: ",";\n\n &:not([disabled]):hover {\n cursor: pointer;\n }\n }\n\n .react-datepicker-wrapper {\n margin-right: ",";\n }\n\n input.react-datepicker__input {\n padding-left: ",";\n padding-right: 0;\n }\n }\n"])),Fe.h7,Fe.t7.color("border"),Fe.t7.radii("form"),(function(e){return e.borderless&&(0,Me.AH)(Rx||(Rx=Ce()(["\n border: none;\n "])))}),ud,Fe.hs.space(-2),Fe.hs.space(-1.7),Fe.hs.space(-2),Fe.hs.space(-1),Fe.t7.radii("form"),Fe.t7.color("paper"),Fe.hs.space(-1),Fe.hs.space(-1),Fe.hs.space(-.5),Fe.hs.space(-1));var Lx;function Fx(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 Hx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fx(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wx={currentlyDragging:null,currentlyDragOver:null,horizontalDropPosition:null,verticalDropPosition:null,offsetX:null,offsetY:null},Bx={Left:"Left",Right:"Right"},Ux={Top:"Top",Bottom:"Bottom"},Yx=function(e,t,n){var r=e.clientX-t>0,o=e.clientY-n>0;return{horizontal:r?Bx.Right:Bx.Left,vertical:o?Ux.Bottom:Ux.Top}};const zx=function(e){var t=(0,f.useState)(Wx),n=Je()(t,2),r=n[0],o=n[1],a=r.currentlyDragging,i=r.currentlyDragOver,s=r.horizontalDropPosition,c=r.verticalDropPosition,u=r.offsetX,l=r.offsetY,d=(0,f.useCallback)((function(t){return{onDragStart:function(e){o((function(e){return Hx(Hx({},e),{},{currentlyDragging:t})}));var n=e.target,r=function(e){o(Wx),e.stopPropagation(),n&&n.removeEventListener("dragend",r)};n&&n.addEventListener("dragend",r,!1),e.stopPropagation()},onDragEnter:function(e){if(a&&!Qn()(i,t)){var n=e.target?e.target.getBoundingClientRect():{},r=n.x+n.width/2,s=n.y+n.height/2,c=Yx(e,r,s),u=c.horizontal,l=c.vertical;(0,$r.flushSync)((function(){o((function(e){return Hx(Hx({},e),{},{currentlyDragOver:t,offsetX:r,offsetY:s,horizontalDropPosition:u,verticalDropPosition:l})}))}))}e.stopPropagation()},onDragOver:function(e){if(a&&Qn()(i,t)){var n=Yx(e,u,l),r=n.horizontal,s=n.vertical;return o((function(e){return Hx(Hx({},e),{},{horizontalDropPosition:r,verticalDropPosition:s})})),e.preventDefault(),e.stopPropagation(),!0}},onDragLeave:function(e){a&&Qn()(i,t)&&(e.stopPropagation(),o((function(e){return Hx(Hx({},e),{},{currentlyDragOver:null,horizontalDropPosition:null,verticalDropPosition:null})})))},onDrop:function(t){a&&i&&(e(a,i,s,c),o(Wx),t.stopPropagation())}}}),[i,a,s,c,u,l,e]),p=(0,f.useMemo)((function(){return{currentlyDragOver:i,currentlyDragging:a,horizontalDropPosition:s,verticalDropPosition:c,offsetX:u,offsetY:l}}),[i,a,s,c,u,l]);return{dndEvents:d,dndState:p,dndCss:Boolean(p.currentlyDragging)?(0,Me.AH)(Lx||(Lx=Ce()(["\n & * {\n pointer-events: none;\n }\n "]))):""}},Vx=Bx;var qx,Gx,Kx,$x,Xx,Qx,Zx,Jx,ek=Me.Ay.div.withConfig({displayName:"StyledColumnPickerWrapper"})(qx||(qx=Ce()(["\n padding-right: 3px; /* make sure drop indicator does not overlap outer elements on the right most side */\n"]))),tk=Me.Ay.div.withConfig({displayName:"StyledControlsWrapper"})(Gx||(Gx=Ce()(["\n margin-left: 3px; /* rest of checkboxes are moved 3px to the right to make room for drop indicator */\n margin-top: ",";\n"])),Fe.hs.space(.7)),nk=Me.Ay.ul.withConfig({displayName:"StyledUl"})(Kx||(Kx=Ce()(["\n list-style-type: none;\n margin-top: "," !important; /* Nice2 Reset */\n margin-left: 3px; /* make room for drop indicator when it appears on the left-most side */\n padding-left: 0 !important; /* Nice2 Reset */\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));\n\n "," {\n padding: 0 !important; /* Nice2 Reset */\n }\n"])),Fe.hs.space(-.5),cr.Gw),rk=Me.Ay.input.withConfig({displayName:"StyledCheckbox"})($x||($x=Ce()(["\n vertical-align: top;\n margin-right: "," !important; /* Nice2 Reset */\n\n &:hover {\n cursor: pointer;\n }\n"])),Fe.hs.space(-1)),ok=Me.Ay.span.withConfig({displayName:"StyledId"})(Xx||(Xx=Ce()(["\n color: ",";\n font-style: italic;\n"])),Fe.t7.color("text")),ak=(0,Me.Ay)(cr.vx).withConfig({displayName:"StyledItem"})(Qx||(Qx=Ce()(["\n display: flex;\n padding: "," "," "," 0;\n box-sizing: border-box;\n\n /* when border appears, the content moves over by the width of the border,\n so we move the content back the same width */\n margin-left: ",";\n border-left: ",";\n border-right: ",";\n ","\n"])),Fe.hs.space(-2),Fe.hs.space(-2),Fe.hs.space(-2),(function(e){return e.dropPosition===Vx.Left?"-3px":"0"}),(function(e){var t=e.dropPosition,n=e.theme;return t===Vx.Left?"3px solid ".concat(n.colors.secondary):"none"}),(function(e){var t=e.dropPosition,n=e.theme;return t===Vx.Right?"3px solid ".concat(n.colors.secondary):"none"}),(function(e){var t=e.draggable,n=e.theme;return t&&"\n &:hover {\n background-color: ".concat(n.colors.backgroundItemHover,";\n\n &,\n label {\n cursor: pointer;\n }\n }\n ")})),ik=Me.Ay.span.withConfig({displayName:"StyledNumber"})(Zx||(Zx=Ce()(["\n display: inline-block;\n margin-right: ",";\n color: ",";\n font-size: ",";\n"])),Fe.hs.space(-1),Fe.t7.color("text"),Fe.hs.font(0));function sk(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 ck(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sk(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const uk=function(e){var t=e.index,n=e.dndProps,r=e.column,o=e.onSelectionChange;return(0,Ge.jsxs)(lk,ck(ck({},n),{},{$_css:n.dndCss,children:[(0,Ge.jsx)(rk,{type:"checkbox",id:r.id,checked:!r.hidden,onChange:function(e){return o(r.id,e.target.checked)}}),(0,Ge.jsxs)(cr.Ay.Label,{htmlFor:r.id,children:[(0,Ge.jsxs)(ik,{children:[t,"."]}),r.label?(0,Ge.jsx)("span",{dangerouslySetInnerHTML:{__html:sr.sanitizeHtml(r.label)}}):(0,Ge.jsx)(ok,{children:r.id})]})]}))};var lk=(0,Me.Ay)(ak).withConfig({displayName:"_StyledStyledItem"})(Jx||(Jx=Ce()(["",""])),(function(e){return e.$_css}));function dk(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 fk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dk(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pk=function(e,t){return e.filter((function(e){return null===t||e.label.match(new RegExp(t,"i"))}))};const hk=function(e){var t=e.dndEnabled,n=e.columns,r=void 0===n?[]:n,o=e.sortColumns,a=e.onColumnsChange,i=e.intl,s=function(e){return o?o(e):function(e){return Ht()(e).sort((function(e,t){return e.hidden-t.hidden}))}(e)},c=s(r),u=(0,f.useState)(null),l=Je()(u,2),d=l[0],p=l[1],h=(0,f.useCallback)((function(e,t,n){if(e!==t){var r=c.find((function(t){return t.id===e}));a((function(e){return e.filter((function(e){return e!==r})).reduce((o=r,a=t,i=n,function(e,t){if(t.id===a){if(i===Vx.Left)return[].concat(Ht()(e),[o,t]);if(i===Vx.Right)return[].concat(Ht()(e),[t,o])}return[].concat(Ht()(e),[t])}),[]);var o,a,i}))}}),[c,a]),m=zx(h),g=m.dndEvents,y=m.dndState,v=m.dndCss,b=(0,f.useMemo)((function(){return pk(c,d)}),[c,d]),w=b.some((function(e){return e.hidden})),O=function(e,t){a((function(n){return s(n.map((function(n){return n.id===e?fk(fk({},n),{},{hidden:!t}):n})))}))},x=function(e){return y.currentlyDragOver===e.id&&y.currentlyDragging!==e.id};return(0,Ge.jsxs)(ek,{children:[(0,Ge.jsx)(Dx,{placeholder:i.formatMessage({id:"client.entity-list.preferences.columns.search"}),onSearch:p}),(0,Ge.jsxs)(tk,{children:[(0,Ge.jsx)(rk,{type:"checkbox",onChange:function(e){var t=e.target.checked;a((function(e){var n=pk(e,d);return s(Ht()(e.map((function(e){return fk(fk({},e),{},{hidden:n.includes(e)?!t:e.hidden})}))))}))},checked:!w}),(0,Ge.jsx)(cr.Ay.Span,{children:i.formatMessage({id:"client.entity-list.preferences.columns.selectDeselectAllCheckbox"})})]}),(0,Ge.jsx)(nk,{children:b.map((function(e,n){return(0,Ge.jsx)(uk,{index:n+1,column:e,dndProps:fk({draggable:t,dndCss:v,dropPosition:x(e)&&y.horizontalDropPosition},t&&fk({},g(e.id))),onSelectionChange:O},e.id)}))})]})};(0,d.injectIntl)(hk);var mk,gk,yk,vk;Me.Ay.div.withConfig({displayName:"StyledIconWrapper"})(mk||(mk=Ce()(["\n font-size: ",";\n color: ",";\n"])),Fe.hs.font(-2.7),Fe.t7.color("text")),Me.Ay.div.withConfig({displayName:"StyledRange"})(gk||(gk=Ce()(["\n display: flex;\n align-items: baseline;\n width: 100%;\n"]))),Me.Ay.div.withConfig({displayName:"StyledInput"})(yk||(yk=Ce()(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"]))),(0,Me.Ay)(At).withConfig({displayName:"StyledBall"})(vk||(vk=Ce()(["\n align-self: start;\n position: relative;\n top: ","px;\n"])),(function(e){return e.isAdmin?"2.5":"8"}));var bk,wk,Ok,xk,kk,Sk=Me.Ay.div.withConfig({displayName:"StyledBurgerButton"})(bk||(bk=Ce()(["\n width: 24px;\n height: 24px;\n position: absolute;\n left: 17px;\n top: 12px;\n z-index: 4; /* higher than StyledHeader to enable interactions */\n transform: rotate(0deg);\n transition: 0.5s ease-in-out;\n cursor: pointer;\n\n span {\n display: block;\n position: absolute;\n height: 2px;\n width: 100%;\n background: ",";\n opacity: 1;\n left: 0;\n transform: rotate(0deg);\n transition: 0.25s ease-in-out;\n\n &:nth-child(1) {\n top: 0;\n transform-origin: left center;\n }\n\n &:nth-child(2) {\n top: 6.5px;\n transform-origin: left center;\n }\n\n &:nth-child(3) {\n top: 13.5px;\n transform-origin: left center;\n }\n }\n ","\n"])),Fe.t7.color("backgroundBurgerMenuBars"),(function(e){return e.isOpen&&(0,Me.AH)(wk||(wk=Ce()(["\n span:nth-child(1) {\n transform: rotate(45deg);\n top: -3px;\n left: 0;\n }\n\n span:nth-child(2) {\n width: 0;\n opacity: 0;\n }\n\n span:nth-child(3) {\n transform: rotate(-45deg);\n top: 14.3px;\n left: 0;\n }\n "])))}));(0,d.injectIntl)((function(e){var t,n=e.isOpen,r=e.intl,o=e.toggleMenu;return(0,Ge.jsxs)(Sk,{id:"burger-button",isOpen:n,"aria-label":(t="client.component.burgerButton.Label",r.formatMessage({id:t})),onClick:o,children:[Ok||(Ok=(0,Ge.jsx)("span",{})),xk||(xk=(0,Ge.jsx)("span",{})),kk||(kk=(0,Ge.jsx)("span",{}))]})}));var Ek,Pk,jk=Me.Ay.div.withConfig({displayName:"StyledPagination"})(Ek||(Ek=Ce()(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-wrap: wrap;\n gap: ",";\n margin-left: ",";\n"])),Fe.hs.space(-1),Fe.hs.space(-1.4)),_k=(0,Me.Ay)(Et).withConfig({displayName:"StyledPaginationButton"})(Pk||(Pk=Ce()(["\n padding: "," ",";\n"])),Fe.hs.space(-2),Fe.hs.space(-.5));const Dk=(0,d.injectIntl)((function(e){var t=e.totalCount,n=e.recordsPerPage,r=e.currentPage,o=e.onPageChange,a=e.intl,i=e.tableEl,s=e.children,c=Math.ceil(t/n),u=Math.min((r-1)*n+1,t),l=Math.min(r*n,t),f=function(e){return a.formatMessage({id:e})},p=function(e){o(e),i.current.scrollTop=0};return(0,Ge.jsxs)(jk,{children:[(0,Ge.jsxs)(Br,{children:[(0,Ge.jsx)(_k,{disabled:1===r,label:f("client.component.pagination.firstPageTitle"),iconOnly:!0,icon:"chevron-double-left",onClick:function(){return p(1)}}),(0,Ge.jsx)(_k,{disabled:1===r,label:f("client.component.pagination.prePageTitle"),iconOnly:!0,icon:"chevron-left",onClick:function(){return p(r-1)}}),(0,Ge.jsx)(_k,{disabled:r>=c,label:f("client.component.pagination.nextPageTitle"),iconOnly:!0,icon:"chevron-right",onClick:function(){return p(r+1)}}),(0,Ge.jsx)(_k,{disabled:r>=c,label:f("client.component.pagination.lastPageTitle"),iconOnly:!0,icon:"chevron-double-right",onClick:function(){return p(c)}})]}),t>0&&(0,Ge.jsx)(cr.Ay.Span,{children:(0,Ge.jsx)(d.FormattedMessage,{id:"client.component.pagination.text",values:{start:u,to:l,total:t}})}),s]})})),Ck=Dk;var Tk,Mk=Object.defineProperty,Ak=Object.getOwnPropertySymbols,Ik=Object.prototype.hasOwnProperty,Nk=Object.prototype.propertyIsEnumerable,Rk=(e,t,n)=>t in e?Mk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lk=(e,t)=>{for(var n in t||(t={}))Ik.call(t,n)&&Rk(e,n,t[n]);if(Ak)for(var n of Ak(t))Nk.call(t,n)&&Rk(e,n,t[n]);return e},Fk=(e,t)=>{var n={};for(var r in e)Ik.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ak)for(var r of Ak(e))t.indexOf(r)<0&&Nk.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class t{constructor(e,n,r,a){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==a){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(a=t,e=n),this.applyMask(t)}}o(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,r,a=1,s=40,c=-1,u=!0){if(!(t.MIN_VERSION<=a&&a<=s&&s<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let l,d;for(l=a;;l++){const n=8*t.getNumDataCodewords(l,r),o=i.getTotalBits(e,l);if(o<=n){d=o;break}if(l>=s)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&d<=8*t.getNumDataCodewords(l,e)&&(r=e);let f=[];for(const t of e){n(t.mode.modeBits,4,f),n(t.numChars,t.mode.numCharCountBits(l),f);for(const e of t.getData())f.push(e)}o(f.length==d);const p=8*t.getNumDataCodewords(l,r);o(f.length<=p),n(0,Math.min(4,p-f.length),f),n(0,(8-f.length%8)%8,f),o(f.length%8==0);for(let e=236;f.length<p;e^=253)n(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,r,h,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const a=21522^(t<<10|n);o(a>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(a,e));this.setFunctionModule(8,7,r(a,6)),this.setFunctionModule(8,8,r(a,7)),this.setFunctionModule(7,8,r(a,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(a,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(a,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(a,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;o(t>>>18==0);for(let e=0;e<18;e++){const n=r(t,e),o=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(o,a,n),this.setFunctionModule(a,o,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),a=e+r,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const a=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=a-s%a,u=Math.floor(s/a);let l=[];const d=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<a;n++){let o=e.slice(r,r+u-i+(n<c?0:1));r+=o.length;const a=t.reedSolomonComputeRemainder(o,d);n<c&&o.push(0),l.push(o.concat(a))}let f=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-i||n>=c)&&f.push(t[e])}));return o(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let o=0;o<this.size;o++)for(let a=0;a<2;a++){const i=t-a,s=0==(t+1&2)?this.size-1-o:o;!this.isFunction[s][i]&&n<8*e.length&&(this.modules[s][i]=r(e[n>>>3],7-(7&n)),n++)}}o(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][i],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[i][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,a=Math.ceil(Math.abs(20*n-10*r)/r)-1;return o(0<=a&&a<=9),e+=a*t.PENALTY_N4,o(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return o(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return o(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];o(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]];function n(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return 0!=(e>>>t&1)}function o(e){if(!e)throw new Error("Assertion error")}e.QrCode=t;const a=class e{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(t){let r=[];for(const e of t)n(e,8,r);return new e(e.Mode.BYTE,t.length,r)}static makeNumeric(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");let r=[];for(let e=0;e<t.length;){const o=Math.min(t.length-e,3);n(parseInt(t.substring(e,e+o),10),3*o+1,r),e+=o}return new e(e.Mode.NUMERIC,t.length,r)}static makeAlphanumeric(t){if(!e.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");let r,o=[];for(r=0;r+2<=t.length;r+=2){let a=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r));a+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),n(a,11,o)}return r<t.length&&n(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,o),new e(e.Mode.ALPHANUMERIC,t.length,o)}static makeSegments(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let r=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)n(t,8,r);else if(t<16384)n(2,2,r),n(t,14,r);else{if(!(t<1e6))throw new RangeError("ECI assignment value out of range");n(6,3,r),n(t,21,r)}return new e(e.Mode.ECI,0,r)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substring(n+1,n+3),16)),n+=2);return t}};a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let i=a;e.QrSegment=a})(Tk||(Tk={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2);e.Ecc=t})(t=e.QrCode||(e.QrCode={}))})(Tk||(Tk={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]);e.Mode=t})(t=e.QrSegment||(e.QrSegment={}))})(Tk||(Tk={}));var Hk=Tk,Wk={L:Hk.QrCode.Ecc.LOW,M:Hk.QrCode.Ecc.MEDIUM,Q:Hk.QrCode.Ecc.QUARTILE,H:Hk.QrCode.Ecc.HIGH},Bk=128,Uk="L",Yk="#FFFFFF",zk="#000000",Vk=!1,qk=1,Gk=4,Kk=0,$k=.1;
78
+ */var r=n(4883);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useSyncExternalStore,i=r.useRef,s=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var d=i(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c((function(){function e(e){if(!s){if(s=!0,a=e,e=r(e),void 0!==l&&f.hasValue){var t=f.value;if(l(t,e))return i=t}return i=e}if(t=i,o(a,e))return t;var n=r(e);return void 0!==l&&l(t,n)?t:(a=e,i=n)}var a,i,s=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,l]);var p=a(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),u(p),p}},78418:(e,t,n)=>{"use strict";e.exports=n(77154)},93419:(e,t,n)=>{"use strict";n.d(t,{v4:()=>x});const r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;const o=function(e){return"string"==typeof e&&r.test(e)};const a=function(e){if(!o(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};for(var i=[],s=0;s<256;++s)i.push((s+256).toString(16).slice(1));function c(e,t=0){return(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase()}var u,l=new Uint8Array(16);function d(){if(!u&&!(u="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return u(l)}function f(e,t,n){function r(e,r,o,i){var s;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=a(r)),16!==(null===(s=r)||void 0===s?void 0:s.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+e.length);if(u.set(r),u.set(e,r.length),(u=n(u))[6]=15&u[6]|t,u[8]=63&u[8]|128,o){i=i||0;for(var l=0;l<16;++l)o[i+l]=u[l];return o}return c(u)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function p(e){return 14+(e+64>>>9<<4)+1}function h(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function m(e,t,n,r,o,a){return h((i=h(h(t,e),h(r,a)))<<(s=o)|i>>>32-s,n);var i,s}function g(e,t,n,r,o,a,i){return m(t&n|~t&r,e,t,o,a,i)}function y(e,t,n,r,o,a,i){return m(t&r|n&~r,e,t,o,a,i)}function v(e,t,n,r,o,a,i){return m(t^n^r,e,t,o,a,i)}function b(e,t,n,r,o,a,i){return m(n^(t|~r),e,t,o,a,i)}const w=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",o=0;o<n;o+=8){var a=e[o>>5]>>>o%32&255,i=parseInt(r.charAt(a>>>4&15)+r.charAt(15&a),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[p(t)-1]=t;for(var n=1732584193,r=-271733879,o=-1732584194,a=271733878,i=0;i<e.length;i+=16){var s=n,c=r,u=o,l=a;n=g(n,r,o,a,e[i],7,-680876936),a=g(a,n,r,o,e[i+1],12,-389564586),o=g(o,a,n,r,e[i+2],17,606105819),r=g(r,o,a,n,e[i+3],22,-1044525330),n=g(n,r,o,a,e[i+4],7,-176418897),a=g(a,n,r,o,e[i+5],12,1200080426),o=g(o,a,n,r,e[i+6],17,-1473231341),r=g(r,o,a,n,e[i+7],22,-45705983),n=g(n,r,o,a,e[i+8],7,1770035416),a=g(a,n,r,o,e[i+9],12,-1958414417),o=g(o,a,n,r,e[i+10],17,-42063),r=g(r,o,a,n,e[i+11],22,-1990404162),n=g(n,r,o,a,e[i+12],7,1804603682),a=g(a,n,r,o,e[i+13],12,-40341101),o=g(o,a,n,r,e[i+14],17,-1502002290),n=y(n,r=g(r,o,a,n,e[i+15],22,1236535329),o,a,e[i+1],5,-165796510),a=y(a,n,r,o,e[i+6],9,-1069501632),o=y(o,a,n,r,e[i+11],14,643717713),r=y(r,o,a,n,e[i],20,-373897302),n=y(n,r,o,a,e[i+5],5,-701558691),a=y(a,n,r,o,e[i+10],9,38016083),o=y(o,a,n,r,e[i+15],14,-660478335),r=y(r,o,a,n,e[i+4],20,-405537848),n=y(n,r,o,a,e[i+9],5,568446438),a=y(a,n,r,o,e[i+14],9,-1019803690),o=y(o,a,n,r,e[i+3],14,-187363961),r=y(r,o,a,n,e[i+8],20,1163531501),n=y(n,r,o,a,e[i+13],5,-1444681467),a=y(a,n,r,o,e[i+2],9,-51403784),o=y(o,a,n,r,e[i+7],14,1735328473),n=v(n,r=y(r,o,a,n,e[i+12],20,-1926607734),o,a,e[i+5],4,-378558),a=v(a,n,r,o,e[i+8],11,-2022574463),o=v(o,a,n,r,e[i+11],16,1839030562),r=v(r,o,a,n,e[i+14],23,-35309556),n=v(n,r,o,a,e[i+1],4,-1530992060),a=v(a,n,r,o,e[i+4],11,1272893353),o=v(o,a,n,r,e[i+7],16,-155497632),r=v(r,o,a,n,e[i+10],23,-1094730640),n=v(n,r,o,a,e[i+13],4,681279174),a=v(a,n,r,o,e[i],11,-358537222),o=v(o,a,n,r,e[i+3],16,-722521979),r=v(r,o,a,n,e[i+6],23,76029189),n=v(n,r,o,a,e[i+9],4,-640364487),a=v(a,n,r,o,e[i+12],11,-421815835),o=v(o,a,n,r,e[i+15],16,530742520),n=b(n,r=v(r,o,a,n,e[i+2],23,-995338651),o,a,e[i],6,-198630844),a=b(a,n,r,o,e[i+7],10,1126891415),o=b(o,a,n,r,e[i+14],15,-1416354905),r=b(r,o,a,n,e[i+5],21,-57434055),n=b(n,r,o,a,e[i+12],6,1700485571),a=b(a,n,r,o,e[i+3],10,-1894986606),o=b(o,a,n,r,e[i+10],15,-1051523),r=b(r,o,a,n,e[i+1],21,-2054922799),n=b(n,r,o,a,e[i+8],6,1873313359),a=b(a,n,r,o,e[i+15],10,-30611744),o=b(o,a,n,r,e[i+6],15,-1560198380),r=b(r,o,a,n,e[i+13],21,1309151649),n=b(n,r,o,a,e[i+4],6,-145523070),a=b(a,n,r,o,e[i+11],10,-1120210379),o=b(o,a,n,r,e[i+2],15,718787259),r=b(r,o,a,n,e[i+9],21,-343485551),n=h(n,s),r=h(r,c),o=h(o,u),a=h(a,l)}return[n,r,o,a]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(p(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))};f("v3",48,w);const O={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};const x=function(e,t,n){if(O.randomUUID&&!t&&!e)return O.randomUUID();var r=(e=e||{}).random||(e.rng||d)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return c(r)};function k(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function S(e,t){return e<<t|e>>>32-t}const E=function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var a=e.length/4+2,i=Math.ceil(a/16),s=new Array(i),c=0;c<i;++c){for(var u=new Uint32Array(16),l=0;l<16;++l)u[l]=e[64*c+4*l]<<24|e[64*c+4*l+1]<<16|e[64*c+4*l+2]<<8|e[64*c+4*l+3];s[c]=u}s[i-1][14]=8*(e.length-1)/Math.pow(2,32),s[i-1][14]=Math.floor(s[i-1][14]),s[i-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<i;++d){for(var f=new Uint32Array(80),p=0;p<16;++p)f[p]=s[d][p];for(var h=16;h<80;++h)f[h]=S(f[h-3]^f[h-8]^f[h-14]^f[h-16],1);for(var m=n[0],g=n[1],y=n[2],v=n[3],b=n[4],w=0;w<80;++w){var O=Math.floor(w/20),x=S(m,5)+k(O,g,y,v)+b+t[O]+f[w]>>>0;b=v,v=y,y=S(g,30)>>>0,g=m,m=x}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+y>>>0,n[3]=n[3]+v>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]};f("v5",80,E)},4883:e=>{"use strict";e.exports=t},81845:t=>{"use strict";t.exports=e},22847:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},56868:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},37372:(e,t,n)=>{"use strict";var r=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of i(t))!c.call(e,s)&&s!==n&&o(e,s,{get:()=>t[s],enumerable:!(r=a(t,s))||r.enumerable});return e},l=(e,t,n)=>(n=null!=e?r(s(e)):{},u(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(d,{Provider:()=>be,ReactReduxContext:()=>v,batch:()=>Se,connect:()=>ve,createDispatchHook:()=>xe,createSelectorHook:()=>S,createStoreHook:()=>we,shallowEqual:()=>te,useDispatch:()=>ke,useSelector:()=>E,useStore:()=>Oe}),e.exports=(e=>u(o({},"__esModule",{value:!0}),e))(d);var f=l(n(4883)),p=n(78418),h=l(n(4883)),m="default"in h?h.default:h,g=Symbol.for("react-redux-context"),y=typeof globalThis<"u"?globalThis:{};var v=function(){if(!m.createContext)return{};let e=y[g]??(y[g]=new Map),t=e.get(m.createContext);return t||(t=m.createContext(null),e.set(m.createContext,t)),t}(),b=()=>{throw new Error("uSES not initialized!")};function w(e=v){return function(){return m.useContext(e)}}var O=w(),x=b,k=(e,t)=>e===t;function S(e=v){let t=e===v?O:w(e),n=(e,n={})=>{let{equalityFn:r=k,devModeChecks:o={}}="function"==typeof n?{equalityFn:n}:n,{store:a,subscription:i,getServerState:s,stabilityCheck:c,identityFunctionCheck:u}=t(),l=(m.useRef(!0),m.useCallback({[e.name]:t=>e(t)}[e.name],[e,c,o.stabilityCheck])),d=x(i.addNestedSub,a.getState,s||a.getState,l,r);return m.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var E=S(),P=Symbol.for("react.element"),j=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),M=Symbol.for("react.context"),A=Symbol.for("react.server_context"),I=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),H=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),I),W=L;function B(e){return function(e){if("object"==typeof e&&null!==e){let t=e.$$typeof;switch(t){case P:{let n=e.type;switch(n){case _:case C:case D:case N:case R:return n;default:{let e=n&&n.$$typeof;switch(e){case A:case M:case I:case F:case L:case T:return e;default:return t}}}}case j:return t}}}(e)===L}function U(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:a,areStatePropsEqual:i}){let s,c,u,l,d,f=!1;function p(f,p){let h=!a(p,c),m=!o(f,s,p,c);return s=f,c=p,h&&m?(u=e(s,c),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):h?(e.dependsOnOwnProps&&(u=e(s,c)),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):m?function(){let t=e(s,c),r=!i(t,u);return u=t,r&&(d=n(u,l,c)),d}():d}return function(o,a){return f?p(o,a):function(o,a){return s=o,c=a,u=e(s,c),l=t(r,c),d=n(u,l,c),f=!0,d}(o,a)}}function Y(e){return function(t){let n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function z(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function V(e,t){return function(t,{displayName:n}){let r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=z(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=z(o),o=r(t,n)),o},r}}function q(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function G(e,t,n){return{...n,...e,...t}}function K(e){e()}var $={notify(){},get:()=>[]};function X(e,t){let n,r=$,o=0,a=!1;function i(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){K((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||null===e||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=$)}let u={addNestedSub:function(e){s();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return a},trySubscribe:function(){a||(a=!0,s())},tryUnsubscribe:function(){a&&(a=!1,c())},getListeners:()=>r};return u}var Q=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Z=typeof navigator<"u"&&"ReactNative"===navigator.product,J=Q||Z?m.useLayoutEffect:m.useEffect;function ee(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function te(e,t){if(ee(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!ee(e[n[r]],t[n[r]]))return!1;return!0}var ne={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},re={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},oe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ae={[H]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[W]:oe};function ie(e){return B(e)?oe:ae[e.$$typeof]||ne}var se=Object.defineProperty,ce=Object.getOwnPropertyNames,ue=Object.getOwnPropertySymbols,le=Object.getOwnPropertyDescriptor,de=Object.getPrototypeOf,fe=Object.prototype;function pe(e,t){if("string"!=typeof t){if(fe){let n=de(t);n&&n!==fe&&pe(e,n)}let n=ce(t);ue&&(n=n.concat(ue(t)));let r=ie(e),o=ie(t);for(let a=0;a<n.length;++a){let i=n[a];if(!(re[i]||o&&o[i]||r&&r[i])){let n=le(t,i);try{se(e,i,n)}catch{}}}}return e}var he=b,me=[null,null];function ge(e,t,n,r,o,a){e.current=r,n.current=!1,o.current&&(o.current=null,a())}function ye(e,t){return e===t}var ve=function(e,t,n,{pure:r,areStatesEqual:o=ye,areOwnPropsEqual:a=te,areStatePropsEqual:i=te,areMergedPropsEqual:s=te,forwardRef:c=!1,context:u=v}={}){let l=u,d=function(e){return e?"function"==typeof e?V(e):q(e,"mapStateToProps"):Y((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?Y((t=>function(e,t){let n={};for(let r in e){let o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?V(e):q(e,"mapDispatchToProps"):Y((e=>({dispatch:e})))}(t),p=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,a=!1;return function(t,n,i){let s=e(t,n,i);return a?r(s,o)||(o=s):(a=!0,o=s),o}}}(e):q(e,"mergeProps"):()=>G}(n),h=!!e;return e=>{let t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:o,areStatePropsEqual:i,areOwnPropsEqual:a,areMergedPropsEqual:s};function u(t){let[n,o,a]=m.useMemo((()=>{let{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),i=m.useMemo((()=>l),[n,l]),s=m.useContext(i),c=!!t.store&&!!t.store.getState&&!!t.store.dispatch,u=!!s&&!!s.store,d=c?t.store:s.store,f=u?s.getServerState:d.getState,p=m.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return U(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[g,y]=m.useMemo((()=>{if(!h)return me;let e=X(d,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,s]),v=m.useMemo((()=>c?s:{...s,subscription:g}),[c,s,g]),b=m.useRef(void 0),w=m.useRef(a),O=m.useRef(void 0),x=m.useRef(!1),k=m.useRef(!1),S=m.useRef(void 0);J((()=>(k.current=!0,()=>{k.current=!1})),[]);let E,P=m.useMemo((()=>()=>O.current&&a===w.current?O.current:p(d.getState(),a)),[d,a]),j=m.useMemo((()=>e=>g?function(e,t,n,r,o,a,i,s,c,u,l){if(!e)return()=>{};let d=!1,f=null,p=()=>{if(d||!s.current)return;let e,n,p=t.getState();try{e=r(p,o.current)}catch(e){n=e,f=e}n||(f=null),e===a.current?i.current||u():(a.current=e,c.current=e,i.current=!0,l())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(h,d,g,p,w,b,x,k,O,y,e):()=>{}),[g]);!function(e,t,n){J((()=>e(...t)),n)}(ge,[w,b,x,a,O,y]);try{E=he(j,P,f?()=>p(f(),a):P)}catch(e){throw S.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${S.current.stack}\n\n`),e}J((()=>{S.current=void 0,O.current=void 0,b.current=E}));let _=m.useMemo((()=>m.createElement(e,{...E,ref:o})),[o,e,E]);return m.useMemo((()=>h?m.createElement(i.Provider,{value:v},_):_),[i,_,v])}let g=m.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=n,c){let t=m.forwardRef((function(e,t){return m.createElement(g,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,pe(t,e)}return pe(g,e)}};var be=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:a="once"}){let i=m.useMemo((()=>{let t=X(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:a}}),[e,r,o,a]),s=m.useMemo((()=>e.getState()),[e]);return J((()=>{let{subscription:t}=i;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[i,s]),m.createElement((t||v).Provider,{value:i},n)};function we(e=v){let t=e===v?O:w(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var Oe=we();function xe(e=v){let t=e===v?Oe:we(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var ke=xe(),Se=K;(e=>{x=e})(p.useSyncExternalStoreWithSelector),(e=>{he=e})(f.useSyncExternalStore)},4865:(e,t,n)=>{"use strict";n.d(t,{UE:()=>We,RK:()=>Le,ll:()=>de,rD:()=>xe,__:()=>fe,UU:()=>Ne,v9:()=>X,jD:()=>Fe,mG:()=>He,ER:()=>Ie,cY:()=>Me,iD:()=>le,BN:()=>Ae,Ej:()=>Re,we:()=>Ce});const r=["top","right","bottom","left"],o=["start","end"],a=r.reduce(((e,t)=>e.concat(t,t+"-"+o[0],t+"-"+o[1])),[]),i=Math.min,s=Math.max,c=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),u={start:"end",end:"start"};function l(e,t,n){return s(e,i(t,n))}function d(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function g(e){return["top","bottom"].includes(f(e))?"y":"x"}function y(e){return h(g(e))}function v(e,t,n){void 0===n&&(n=!1);const r=p(e),o=y(e),a=m(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=w(i)),[i,w(i)]}function b(e){return e.replace(/start|end/g,(e=>u[e]))}function w(e){return e.replace(/left|right|bottom|top/g,(e=>c[e]))}function O(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function x(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function k(e,t,n){let{reference:r,floating:o}=e;const a=g(t),i=y(t),s=m(i),c=f(t),u="y"===a,l=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let v;switch(c){case"top":v={x:l,y:r.y-o.height};break;case"bottom":v={x:l,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:d};break;case"left":v={x:r.x-o.width,y:d};break;default:v={x:r.x,y:r.y}}switch(p(t)){case"start":v[i]-=h*(n&&u?-1:1);break;case"end":v[i]+=h*(n&&u?-1:1)}return v}async function S(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=d(t,e),m=O(h),g=s[p?"floating"===f?"reference":"floating":f],y=x(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(g)))||n?g:g.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:l,strategy:c})),v="floating"===f?{...i.floating,x:r,y:o}:i.reference,b=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),w=await(null==a.isElement?void 0:a.isElement(b))&&await(null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},k=x(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:c}):v);return{top:(y.top-k.top+m.top)/w.y,bottom:(k.bottom-y.bottom+m.bottom)/w.y,left:(y.left-k.left+m.left)/w.x,right:(k.right-y.right+m.right)/w.x}}function E(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function P(e){return r.some((t=>e[t]>=0))}function j(e){const t=i(...e.map((e=>e.left))),n=i(...e.map((e=>e.top)));return{x:t,y:n,width:s(...e.map((e=>e.right)))-t,height:s(...e.map((e=>e.bottom)))-n}}const _=Math.min,D=Math.max,C=Math.round,T=Math.floor,M=e=>({x:e,y:e});function A(e){return R(e)?(e.nodeName||"").toLowerCase():"#document"}function I(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function N(e){var t;return null==(t=(R(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function R(e){return e instanceof Node||e instanceof I(e).Node}function L(e){return e instanceof Element||e instanceof I(e).Element}function F(e){return e instanceof HTMLElement||e instanceof I(e).HTMLElement}function H(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof I(e).ShadowRoot)}function W(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function B(e){return["table","td","th"].includes(A(e))}function U(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Y(e){const t=z(),n=L(e)?q(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 z(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function V(e){return["html","body","#document"].includes(A(e))}function q(e){return I(e).getComputedStyle(e)}function G(e){return L(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function K(e){if("html"===A(e))return e;const t=e.assignedSlot||e.parentNode||H(e)&&e.host||N(e);return H(t)?t.host:t}function $(e){const t=K(e);return V(t)?e.ownerDocument?e.ownerDocument.body:e.body:F(t)&&W(t)?t:$(t)}function X(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=$(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=I(o);return a?t.concat(i,i.visualViewport||[],W(o)?o:[],i.frameElement&&n?X(i.frameElement):[]):t.concat(o,X(o,[],n))}function Q(e){const t=q(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=F(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=C(n)!==a||C(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Z(e){return L(e)?e:e.contextElement}function J(e){const t=Z(e);if(!F(t))return M(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Q(t);let i=(a?C(n.width):n.width)/r,s=(a?C(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const ee=M(0);function te(e){const t=I(e);return z()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ee}function ne(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=Z(e);let i=M(1);t&&(r?L(r)&&(i=J(r)):i=J(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==I(e))&&t}(a,n,r)?te(a):M(0);let c=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,l=o.width/i.x,d=o.height/i.y;if(a){const e=I(a),t=r&&L(r)?I(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=J(o),t=o.getBoundingClientRect(),r=q(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,l*=e.x,d*=e.y,c+=a,u+=i,n=I(o),o=n.frameElement}}return x({width:l,height:d,x:c,y:u})}function re(e){return ne(N(e)).left+G(e).scrollLeft}function oe(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=I(e),r=N(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const e=z();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=N(e),n=G(e),r=e.ownerDocument.body,o=D(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=D(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+re(e);const s=-n.scrollTop;return"rtl"===q(r).direction&&(i+=D(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}(N(e));else if(L(t))r=function(e,t){const n=ne(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=F(e)?J(e):M(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=te(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return x(r)}function ae(e,t){const n=K(e);return!(n===t||!L(n)||V(n))&&("fixed"===q(n).position||ae(n,t))}function ie(e,t,n){const r=F(t),o=N(t),a="fixed"===n,i=ne(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=M(0);if(r||!r&&!a)if(("body"!==A(t)||W(o))&&(s=G(t)),r){const e=ne(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=re(o));return{x:i.left+s.scrollLeft-c.x,y:i.top+s.scrollTop-c.y,width:i.width,height:i.height}}function se(e){return"static"===q(e).position}function ce(e,t){return F(e)&&"fixed"!==q(e).position?t?t(e):e.offsetParent:null}function ue(e,t){const n=I(e);if(U(e))return n;if(!F(e)){let t=K(e);for(;t&&!V(t);){if(L(t)&&!se(t))return t;t=K(t)}return n}let r=ce(e,t);for(;r&&B(r)&&se(r);)r=ce(r,t);return r&&V(r)&&se(r)&&!Y(r)?n:r||function(e){let t=K(e);for(;F(t)&&!V(t);){if(Y(t))return t;if(U(t))return null;t=K(t)}return null}(e)||n}const le={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=N(r),s=!!t&&U(t.floating);if(r===i||s&&a)return n;let c={scrollLeft:0,scrollTop:0},u=M(1);const l=M(0),d=F(r);if((d||!d&&!a)&&(("body"!==A(r)||W(i))&&(c=G(r)),F(r))){const e=ne(r);u=J(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+l.x,y:n.y*u.y-c.scrollTop*u.y+l.y}},getDocumentElement:N,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?U(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=X(e,[],!1).filter((e=>L(e)&&"body"!==A(e))),o=null;const a="fixed"===q(e).position;let i=a?K(e):e;for(;L(i)&&!V(i);){const t=q(i),n=Y(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||W(i)&&!n&&ae(e,i))?r=r.filter((e=>e!==i)):o=t,i=K(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],s=a.reduce(((e,n)=>{const r=oe(t,n,o);return e.top=D(r.top,e.top),e.right=_(r.right,e.right),e.bottom=_(r.bottom,e.bottom),e.left=D(r.left,e.left),e}),oe(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ue,getElementRects:async function(e){const t=this.getOffsetParent||ue,n=this.getDimensions,r=await n(e.floating);return{reference:ie(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Q(e);return{width:t,height:n}},getScale:J,isElement:L,isRTL:function(e){return"rtl"===q(e).direction}};function de(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=Z(e),l=o||a?[...u?X(u):[],...X(t)]:[];l.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=u&&s?function(e,t){let n,r=null;const o=N(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),a();const{left:u,top:l,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-T(l)+"px "+-T(o.clientWidth-(u+d))+"px "+-T(o.clientHeight-(l+f))+"px "+-T(u)+"px",threshold:D(0,_(1,c))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==c){if(!h)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),a}(u,n):null;let f,p=-1,h=null;i&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),u&&!c&&h.observe(u),h.observe(t));let m=c?ne(e):null;return c&&function t(){const r=ne(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(f)}}const fe=S,pe=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=f(n),s=p(n),c="y"===g(n),u=["left","top"].includes(i)?-1:1,l=a&&c?-1:1,h=d(t,e);let{mainAxis:m,crossAxis:y,alignmentAxis:v}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return s&&"number"==typeof v&&(y="end"===s?-1*v:v),c?{x:y*l,y:m*u}:{x:m*u,y:y*l}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},he=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o;const{rects:i,middlewareData:s,placement:c,platform:u,elements:l}=t,{crossAxis:h=!1,alignment:m,allowedPlacements:g=a,autoAlignment:y=!0,...w}=d(e,t),O=void 0!==m||g===a?function(e,t,n){return(e?[...n.filter((t=>p(t)===e)),...n.filter((t=>p(t)!==e))]:n.filter((e=>f(e)===e))).filter((n=>!e||p(n)===e||!!t&&b(n)!==n))}(m||null,y,g):g,x=await S(t,w),k=(null==(n=s.autoPlacement)?void 0:n.index)||0,E=O[k];if(null==E)return{};const P=v(E,i,await(null==u.isRTL?void 0:u.isRTL(l.floating)));if(c!==E)return{reset:{placement:O[0]}};const j=[x[f(E)],x[P[0]],x[P[1]]],_=[...(null==(r=s.autoPlacement)?void 0:r.overflows)||[],{placement:E,overflows:j}],D=O[k+1];if(D)return{data:{index:k+1,overflows:_},reset:{placement:D}};const C=_.map((e=>{const t=p(e.placement);return[e.placement,t&&h?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),T=(null==(o=C.filter((e=>e[2].slice(0,p(e[0])?2:3).every((e=>e<=0))))[0])?void 0:o[0])||C[0][0];return T!==c?{data:{index:k+1,overflows:_},reset:{placement:T}}:{}}}},me=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=d(e,t),u={x:n,y:r},p=await S(t,c),m=g(f(o)),y=h(m);let v=u[y],b=u[m];if(a){const e="y"===y?"bottom":"right";v=l(v+p["y"===y?"top":"left"],v,v-p[e])}if(i){const e="y"===m?"bottom":"right";b=l(b+p["y"===m?"top":"left"],b,b-p[e])}const w=s.fn({...t,[y]:v,[m]:b});return{...w,data:{x:w.x-n,y:w.y-r}}}}},ge=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:l=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:O=!0,...x}=d(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const k=f(o),E=f(s)===s,P=await(null==c.isRTL?void 0:c.isRTL(u.floating)),j=m||(E||!O?[w(s)]:function(e){const t=w(e);return[b(e),t,b(t)]}(s));m||"none"===y||j.push(...function(e,t,n,r){const o=p(e);let a=function(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}(f(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(b)))),a}(s,O,y,P));const _=[s,...j],D=await S(t,x),C=[];let T=(null==(r=a.flip)?void 0:r.overflows)||[];if(l&&C.push(D[k]),h){const e=v(o,i,P);C.push(D[e[0]],D[e[1]])}if(T=[...T,{placement:o,overflows:C}],!C.every((e=>e<=0))){var M,A;const e=((null==(M=a.flip)?void 0:M.index)||0)+1,t=_[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(A=T.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(g){case"bestFit":{var I;const e=null==(I=T.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:I[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},ye=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:c=(()=>{}),...u}=d(e,t),l=await S(t,u),h=f(n),m=p(n),y="y"===g(n),{width:v,height:b}=r.floating;let w,O;"top"===h||"bottom"===h?(w=h,O=m===(await(null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(O=h,w="end"===m?"top":"bottom");const x=b-l[w],k=v-l[O],E=!t.middlewareData.shift;let P=x,j=k;if(y){const e=v-l.left-l.right;j=m||E?i(k,e):e}else{const e=b-l.top-l.bottom;P=m||E?i(x,e):e}if(E&&!m){const e=s(l.left,0),t=s(l.right,0),n=s(l.top,0),r=s(l.bottom,0);y?j=v-2*(0!==e||0!==t?e+t:s(l.left,l.right)):P=b-2*(0!==n||0!==r?n+r:s(l.top,l.bottom))}await c({...t,availableWidth:j,availableHeight:P});const _=await o.getDimensions(a.floating);return v!==_.width||b!==_.height?{reset:{rects:!0}}:{}}}},ve=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=d(e,t);switch(r){case"referenceHidden":{const e=E(await S(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:P(e)}}}case"escaped":{const e=E(await S(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:P(e)}}}default:return{}}}}},be=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:c,middlewareData:u}=t,{element:f,padding:h=0}=d(e,t)||{};if(null==f)return{};const g=O(h),v={x:n,y:r},b=y(o),w=m(b),x=await s.getDimensions(f),k="y"===b,S=k?"top":"left",E=k?"bottom":"right",P=k?"clientHeight":"clientWidth",j=a.reference[w]+a.reference[b]-v[b]-a.floating[w],_=v[b]-a.reference[b],D=await(null==s.getOffsetParent?void 0:s.getOffsetParent(f));let C=D?D[P]:0;C&&await(null==s.isElement?void 0:s.isElement(D))||(C=c.floating[P]||a.floating[w]);const T=j/2-_/2,M=C/2-x[w]/2-1,A=i(g[S],M),I=i(g[E],M),N=A,R=C-x[w]-I,L=C/2-x[w]/2+T,F=l(N,L,R),H=!u.arrow&&null!=p(o)&&L!==F&&a.reference[w]/2-(L<N?A:I)-x[w]/2<0,W=H?L<N?L-N:L-R:0;return{[b]:v[b]+W,data:{[b]:F,centerOffset:L-F-W,...H&&{alignmentOffset:W}},reset:H}}}),we=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:a,strategy:c}=t,{padding:u=2,x:l,y:p}=d(e,t),h=Array.from(await(null==a.getClientRects?void 0:a.getClientRects(r.reference))||[]),m=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let r=null;for(let e=0;e<t.length;e++){const o=t[e];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map((e=>x(j(e))))}(h),y=x(j(h)),v=O(u);const b=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===m.length&&m[0].left>m[1].right&&null!=l&&null!=p)return m.find((e=>l>e.left-v.left&&l<e.right+v.right&&p>e.top-v.top&&p<e.bottom+v.bottom))||y;if(m.length>=2){if("y"===g(n)){const e=m[0],t=m[m.length-1],r="top"===f(n),o=e.top,a=t.bottom,i=r?e.left:t.left,s=r?e.right:t.right;return{top:o,bottom:a,left:i,right:s,width:s-i,height:a-o,x:i,y:o}}const e="left"===f(n),t=s(...m.map((e=>e.right))),r=i(...m.map((e=>e.left))),o=m.filter((n=>e?n.left===r:n.right===t)),a=o[0].top,c=o[o.length-1].bottom;return{top:a,bottom:c,left:r,right:t,width:t-r,height:c-a,x:r,y:a}}return y}},floating:r.floating,strategy:c});return o.reference.x!==b.reference.x||o.reference.y!==b.reference.y||o.reference.width!==b.reference.width||o.reference.height!==b.reference.height?{reset:{rects:b}}:{}}}},Oe=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=d(e,t),l={x:n,y:r},p=g(o),m=h(p);let y=l[m],v=l[p];const b=d(s,t),w="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(c){const e="y"===m?"height":"width",t=a.reference[m]-a.floating[e]+w.mainAxis,n=a.reference[m]+a.reference[e]-w.mainAxis;y<t?y=t:y>n&&(y=n)}if(u){var O,x;const e="y"===m?"width":"height",t=["top","left"].includes(f(o)),n=a.reference[p]-a.floating[e]+(t&&(null==(O=i.offset)?void 0:O[p])||0)+(t?0:w.crossAxis),r=a.reference[p]+a.reference[e]+(t?0:(null==(x=i.offset)?void 0:x[p])||0)-(t?w.crossAxis:0);v<n?v=n:v>r&&(v=r)}return{[m]:y,[p]:v}}}},xe=(e,t,n)=>{const r=new Map,o={platform:le,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),c=await(null==i.isRTL?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:d}=k(u,r,c),f=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:a,fn:m}=s[n],{x:g,y,data:v,reset:b}=await m({x:l,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:i,elements:{reference:e,floating:t}});l=null!=g?g:l,d=null!=y?y:d,p={...p,[a]:{...p[a],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:l,y:d}=k(u,f,c))),n=-1)}return{x:l,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:a})};var ke=n(4883),Se=n(81845),Ee="undefined"!=typeof document?ke.useLayoutEffect:ke.useEffect;function Pe(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Pe(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Pe(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function je(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _e(e,t){const n=je(e);return Math.round(t*n)/n}function De(e){const t=ke.useRef(e);return Ee((()=>{t.current=e})),t}function Ce(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[l,d]=ke.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=ke.useState(r);Pe(f,r)||p(r);const[h,m]=ke.useState(null),[g,y]=ke.useState(null),v=ke.useCallback((e=>{e!==x.current&&(x.current=e,m(e))}),[]),b=ke.useCallback((e=>{e!==k.current&&(k.current=e,y(e))}),[]),w=a||h,O=i||g,x=ke.useRef(null),k=ke.useRef(null),S=ke.useRef(l),E=null!=c,P=De(c),j=De(o),_=De(u),D=ke.useCallback((()=>{if(!x.current||!k.current)return;const e={placement:t,strategy:n,middleware:f};j.current&&(e.platform=j.current),xe(x.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==_.current};C.current&&!Pe(S.current,t)&&(S.current=t,Se.flushSync((()=>{d(t)})))}))}),[f,t,n,j,_]);Ee((()=>{!1===u&&S.current.isPositioned&&(S.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[u]);const C=ke.useRef(!1);Ee((()=>(C.current=!0,()=>{C.current=!1})),[]),Ee((()=>{if(w&&(x.current=w),O&&(k.current=O),w&&O){if(P.current)return P.current(w,O,D);D()}}),[w,O,D,P,E]);const T=ke.useMemo((()=>({reference:x,floating:k,setReference:v,setFloating:b})),[v,b]),M=ke.useMemo((()=>({reference:w,floating:O})),[w,O]),A=ke.useMemo((()=>{const e={position:n,left:0,top:0};if(!M.floating)return e;const t=_e(M.floating,l.x),r=_e(M.floating,l.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...je(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,M.floating,l.x,l.y]);return ke.useMemo((()=>({...l,update:D,refs:T,elements:M,floatingStyles:A})),[l,D,T,M,A])}const Te=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?be({element:n.current,padding:r}).fn(t):{}:n?be({element:n,padding:r}).fn(t):{};var o}}),Me=(e,t)=>({...pe(e),options:[e,t]}),Ae=(e,t)=>({...me(e),options:[e,t]}),Ie=(e,t)=>({...Oe(e),options:[e,t]}),Ne=(e,t)=>({...ge(e),options:[e,t]}),Re=(e,t)=>({...ye(e),options:[e,t]}),Le=(e,t)=>({...he(e),options:[e,t]}),Fe=(e,t)=>({...ve(e),options:[e,t]}),He=(e,t)=>({...we(e),options:[e,t]}),We=(e,t)=>({...Te(e),options:[e,t]})},66984:(e,t,n)=>{"use strict";n.d(t,{$t:()=>s,$u:()=>w,EW:()=>v,F2:()=>y,Go:()=>p,O_:()=>h,Pg:()=>u,RS:()=>o,WZ:()=>x,YE:()=>g,YF:()=>c,cX:()=>f,gR:()=>a,jo:()=>O,nr:()=>l,tZ:()=>m,uo:()=>i});var r=n(86635);function o(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function a(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,r.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function i(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function s(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function c(e){return!(0!==e.mozInputSource||!e.isTrusted)||(d()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function u(e){return!s().includes("jsdom/")&&(!d()&&0===e.width&&0===e.height||d()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function l(){return/apple/i.test(navigator.vendor)}function d(){const e=/android/i;return e.test(i())||e.test(s())}function f(){return i().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function p(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function h(e){return"nativeEvent"in e}function m(e){return e.matches("html,body")}function g(e){return(null==e?void 0:e.ownerDocument)||document}function y(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function v(e){return"composedPath"in e?e.composedPath()[0]:e.target}const b="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function w(e){return(0,r.sb)(e)&&e.matches(b)}function O(e){e.preventDefault(),e.stopPropagation()}function x(e){return!!e&&("combobox"===e.getAttribute("role")&&w(e))}},86635:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof window}function o(e){return i(e)?(e.nodeName||"").toLowerCase():"#document"}function a(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function i(e){return!!r()&&(e instanceof Node||e instanceof a(e).Node)}function s(e){return!!r()&&(e instanceof Element||e instanceof a(e).Element)}function c(e){return!!r()&&(e instanceof HTMLElement||e instanceof a(e).HTMLElement)}function u(e){return!(!r()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof a(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 f(e){return a(e).getComputedStyle(e)}function p(e){if("html"===o(e))return e;const t=e.assignedSlot||e.parentNode||u(e)&&e.host||function(e){var t;return null==(t=(i(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}(e);return u(t)?t.host:t}n.d(t,{$4:()=>p,L9:()=>f,Ng:()=>u,Tc:()=>l,eu:()=>d,mq:()=>o,sb:()=>c,vq:()=>s,zk:()=>a})},97193:(e,t,n)=>{"use strict";n.d(t,{LI:()=>o,RI:()=>a,T9:()=>r,_3:()=>i});Math.min;const r=Math.max,o=Math.round,a=Math.floor;function i(e,t){return"function"==typeof e?e(t):e}},51819:(e,t,n)=>{"use strict";function r(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}n.d(t,{F:()=>r})},10510:(e,t,n)=>{"use strict";n.d(t,{q:()=>r.c});var r=n(9946)},92516:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});let r={};function o(){return r}},87758:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var r=n(51819);const o={y(e,t){const n=e.getFullYear(),o=n>0?n:1-n;return(0,r.F)("yy"===t?o%100:o,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):(0,r.F)(n+1,2)},d:(e,t)=>(0,r.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)=>(0,r.F)(e.getHours()%12||12,t.length),H:(e,t)=>(0,r.F)(e.getHours(),t.length),m:(e,t)=>(0,r.F)(e.getMinutes(),t.length),s:(e,t)=>(0,r.F)(e.getSeconds(),t.length),S(e,t){const n=t.length,o=e.getMilliseconds(),a=Math.trunc(o*Math.pow(10,n-3));return(0,r.F)(a,t.length)}}},78668:(e,t,n)=>{"use strict";n.d(t,{m:()=>a});const r=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},o=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},a={p:o,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],a=n[1],i=n[2];if(!i)return r(e,t);let s;switch(a){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"})}return s.replace("{{date}}",r(a,t)).replace("{{time}}",o(i,t))}}},1108:(e,t,n)=>{"use strict";n.d(t,{G:()=>o});var r=n(29407);function o(e){const t=(0,r.a)(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}},5305:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});var r=n(43329);function o(e,...t){const n=r.w.bind(null,e||t.find((e=>"object"==typeof e)));return t.map(n)}},3265:(e,t,n)=>{"use strict";n.d(t,{Ss:()=>c,ef:()=>i,xM:()=>s});const r=/^D+$/,o=/^Y+$/,a=["D","DD","YY","YYYY"];function i(e){return r.test(e)}function s(e){return o.test(e)}function c(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),a.includes(e))throw new RangeError(r)}},61501:(e,t,n)=>{"use strict";n.d(t,{Cg:()=>a,_P:()=>c,_m:()=>s,my:()=>r,s0:()=>i,w4:()=>o});Math.pow(10,8);const r=6048e5,o=864e5,a=6e4,i=36e5,s=1e3,c=Symbol.for("constructDateFrom")},43329:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});var r=n(61501);function o(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&r._P in e?e[r._P](t):e instanceof Date?new e.constructor(t):new Date(t)}},2831:(e,t,n)=>{"use strict";n.d(t,{m:()=>s});var r=n(1108),o=n(5305),a=n(61501),i=n(6463);function s(e,t,n){const[s,c]=(0,o.x)(n?.in,e,t),u=(0,i.o)(s),l=(0,i.o)(c),d=+u-(0,r.G)(u),f=+l-(0,r.G)(l);return Math.round((d-f)/a.w4)}},11968:(e,t,n)=>{"use strict";n.d(t,{GP:()=>T});var r=n(10510),o=n(92516),a=n(71104),i=n(84543),s=n(51898),c=n(97084),u=n(84485),l=n(51819),d=n(87758);const f="midnight",p="noon",h="morning",m="afternoon",g="evening",y="night",v={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return d.C.y(e,t)},Y:function(e,t,n,r){const o=(0,u.h)(e,r),a=o>0?o:1-o;if("YY"===t){const e=a%100;return(0,l.F)(e,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):(0,l.F)(a,t.length)},R:function(e,t){const n=(0,s.p)(e);return(0,l.F)(n,t.length)},u:function(e,t){const n=e.getFullYear();return(0,l.F)(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,l.F)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,l.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 d.C.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return(0,l.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,c.N)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):(0,l.F)(o,t.length)},I:function(e,t,n){const r=(0,i.s)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,l.F)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):d.C.d(e,t)},D:function(e,t,n){const r=(0,a.F)(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):(0,l.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(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return(0,l.F)(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return(0,l.F)(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return(0,l.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?p:0===r?f: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?g:r>=12?m:r>=4?h:y,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 d.C.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):d.C.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,l.F)(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,l.F)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):d.C.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):d.C.s(e,t)},S:function(e,t){return d.C.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return w(r);case"XXXX":case"XX":return O(r);default:return O(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return w(r);case"xxxx":case"xx":return O(r);default:return O(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+b(r,":");default:return"GMT"+O(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+b(r,":");default:return"GMT"+O(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return(0,l.F)(r,t.length)},T:function(e,t,n){return(0,l.F)(+e,t.length)}};function b(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+(0,l.F)(a,2)}function w(e,t){if(e%60==0){return(e>0?"-":"+")+(0,l.F)(Math.abs(e)/60,2)}return O(e,t)}function O(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+(0,l.F)(Math.trunc(r/60),2)+t+(0,l.F)(r%60,2)}var x=n(78668),k=n(3265),S=n(32370),E=n(29407);const P=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,j=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_=/^'([^]*?)'?$/,D=/''/g,C=/[a-zA-Z]/;function T(e,t,n){const a=(0,o.q)(),i=n?.locale??a.locale??r.q,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,c=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,u=(0,E.a)(e,n?.in);if(!(0,S.f)(u))throw new RangeError("Invalid time value");let l=t.match(j).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,x.m[t])(e,i.formatLong)}return e})).join("").match(P).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:M(e)};if(v[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}}));i.localize.preprocessor&&(l=i.localize.preprocessor(u,l));const d={firstWeekContainsDate:s,weekStartsOn:c,locale:i};return l.map((r=>{if(!r.isToken)return r.value;const o=r.value;(!n?.useAdditionalWeekYearTokens&&(0,k.xM)(o)||!n?.useAdditionalDayOfYearTokens&&(0,k.ef)(o))&&(0,k.Ss)(o,t,String(e));return(0,v[o[0]])(u,o,i.localize,d)})).join("")}function M(e){const t=e.match(_);return t?t[1].replace(D,"'"):e}},71104:(e,t,n)=>{"use strict";n.d(t,{F:()=>i});var r=n(2831),o=n(70228),a=n(29407);function i(e,t){const n=(0,a.a)(e,t?.in);return(0,r.m)(n,(0,o.D)(n))+1}},84543:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});var r=n(61501),o=n(22008),a=n(30569),i=n(29407);function s(e,t){const n=(0,i.a)(e,t?.in),s=+(0,o.b)(n)-+(0,a.w)(n);return Math.round(s/r.my)+1}},51898:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var r=n(43329),o=n(22008),a=n(29407);function i(e,t){const n=(0,a.a)(e,t?.in),i=n.getFullYear(),s=(0,r.w)(n,0);s.setFullYear(i+1,0,4),s.setHours(0,0,0,0);const c=(0,o.b)(s),u=(0,r.w)(n,0);u.setFullYear(i,0,4),u.setHours(0,0,0,0);const l=(0,o.b)(u);return n.getTime()>=c.getTime()?i+1:n.getTime()>=l.getTime()?i:i-1}},97084:(e,t,n)=>{"use strict";n.d(t,{N:()=>s});var r=n(61501),o=n(80337),a=n(73576),i=n(29407);function s(e,t){const n=(0,i.a)(e,t?.in),s=+(0,o.k)(n,t)-+(0,a.b)(n,t);return Math.round(s/r.my)+1}},84485:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r=n(92516),o=n(43329),a=n(80337),i=n(29407);function s(e,t){const n=(0,i.a)(e,t?.in),s=n.getFullYear(),c=(0,r.q)(),u=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??c.firstWeekContainsDate??c.locale?.options?.firstWeekContainsDate??1,l=(0,o.w)(t?.in||e,0);l.setFullYear(s+1,0,u),l.setHours(0,0,0,0);const d=(0,a.k)(l,t),f=(0,o.w)(t?.in||e,0);f.setFullYear(s,0,u),f.setHours(0,0,0,0);const p=(0,a.k)(f,t);return+n>=+d?s+1:+n>=+p?s:s-1}},91947:(e,t,n)=>{"use strict";n.d(t,{fij:()=>a,GPZ:()=>p.GP,qZx:()=>g,Osm:()=>b,SyE:()=>w,uv4:()=>ke,qgA:()=>xe,Hle:()=>Se,avh:()=>Ae,$7z:()=>Ie,glI:()=>Ne,gtt:()=>Re,ol1:()=>s.o});var r=n(43329),o=n(29407);function a(e,t,n){const a=(0,o.a)(e,n?.in);return isNaN(t)?(0,r.w)(n?.in||e,NaN):t?(a.setDate(a.getDate()+t),a):a}var i=n(61501);n(51898),n(2831),n(30569);n(5305);var s=n(6463);var c=n(32370);var u=n(1108),l=n(22008);var d=n(80337);n(70228);var f=n(92516);var p=n(11968),h=n(10510);n(51819);n(71104);function m(){return Object.assign({},(0,f.q)())}function g(e,t){return(0,o.a)(e,t?.in).getHours()}function y(e,t){const n=(0,o.a)(e,t?.in).getDay();return 0===n?7:n}var v=n(84543);function b(e,t){return(0,o.a)(e,t?.in).getMinutes()}function w(e){return(0,o.a)(e).getSeconds()}var O=n(97084);var x=n(84485);n(80658);var k=n(78668),S=n(3265);function E(e,t){const n=function(e){return"function"==typeof e&&e.prototype?.constructor===e}(t)?new t(0):(0,r.w)(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}class P{subPriority=0;validate(e,t){return!0}}class j extends P{constructor(e,t,n,r,o){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,o&&(this.subPriority=o)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}class _ extends P{priority=10;subPriority=-1;constructor(e,t){super(),this.context=e||(e=>(0,r.w)(t,e))}set(e,t){return t.timestampIsSet?e:(0,r.w)(e,E(e,this.context))}}class D{run(e,t,n,r){const o=this.parse(e,t,n,r);return o?{setter:new j(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(e,t,n){return!0}}const C=/^(1[0-2]|0?\d)/,T=/^(3[0-1]|[0-2]?\d)/,M=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,A=/^(5[0-3]|[0-4]?\d)/,I=/^(2[0-3]|[0-1]?\d)/,N=/^(2[0-4]|[0-1]?\d)/,R=/^(1[0-1]|0?\d)/,L=/^(1[0-2]|0?\d)/,F=/^[0-5]?\d/,H=/^[0-5]?\d/,W=/^\d/,B=/^\d{1,2}/,U=/^\d{1,3}/,Y=/^\d{1,4}/,z=/^-?\d+/,V=/^-?\d/,q=/^-?\d{1,2}/,G=/^-?\d{1,3}/,K=/^-?\d{1,4}/,$=/^([+-])(\d{2})(\d{2})?|Z/,X=/^([+-])(\d{2})(\d{2})|Z/,Q=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Z=/^([+-])(\d{2}):(\d{2})|Z/,J=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function ee(e,t){return e?{value:t(e.value),rest:e.rest}:e}function te(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function ne(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const r="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:r*(o*i.s0+a*i.Cg+s*i._m),rest:t.slice(n[0].length)}}function re(e){return te(z,e)}function oe(e,t){switch(e){case 1:return te(W,t);case 2:return te(B,t);case 3:return te(U,t);case 4:return te(Y,t);default:return te(new RegExp("^\\d{1,"+e+"}"),t)}}function ae(e,t){switch(e){case 1:return te(V,t);case 2:return te(q,t);case 3:return te(G,t);case 4:return te(K,t);default:return te(new RegExp("^-?\\d{1,"+e+"}"),t)}}function ie(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function se(e,t){const n=t>0,r=n?t:1-t;let o;if(r<=50)o=e||100;else{const t=r+50;o=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?o:1-o}function ce(e){return e%400==0||e%4==0&&e%100!=0}function ue(e,t,n){const r=(0,o.a)(e,n?.in),a=(0,O.N)(r,n)-t;return r.setDate(r.getDate()-7*a),(0,o.a)(r,n?.in)}function le(e,t,n){const r=(0,o.a)(e,n?.in),a=(0,v.s)(r,n)-t;return r.setDate(r.getDate()-7*a),r}const de=[31,28,31,30,31,30,31,31,30,31,30,31],fe=[31,29,31,30,31,30,31,31,30,31,30,31];function pe(e,t,n){const r=(0,f.q)(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=(0,o.a)(e,n?.in),c=s.getDay(),u=7-i;return a(s,t<0||t>6?t-(c+u)%7:((t%7+7)%7+u)%7-(c+u)%7,n)}function he(e,t,n){const r=(0,o.a)(e,n?.in);return a(r,t-y(r,n),n)}const me={G:new class extends D{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},y:new class extends D{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return ee(oe(4,e),r);case"yo":return ee(n.ordinalNumber(e,{unit:"year"}),r);default:return ee(oe(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const r=e.getFullYear();if(n.isTwoDigitYear){const t=se(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const o="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}},Y:new class extends D{priority=130;parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return ee(oe(4,e),r);case"Yo":return ee(n.ordinalNumber(e,{unit:"year"}),r);default:return ee(oe(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const o=(0,x.h)(e,r);if(n.isTwoDigitYear){const t=se(n.year,o);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,d.k)(e,r)}const a="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(a,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,d.k)(e,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends D{priority=130;parse(e,t){return ae("R"===t?4:t.length,e)}set(e,t,n){const o=(0,r.w)(e,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),(0,l.b)(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends D{priority=130;parse(e,t){return ae("u"===t?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends D{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return oe(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends D{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return oe(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends D{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"M":return ee(te(C,e),r);case"MM":return ee(oe(2,e),r);case"Mo":return ee(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},L:new class extends D{priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"L":return ee(te(C,e),r);case"LL":return ee(oe(2,e),r);case"Lo":return ee(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends D{priority=100;parse(e,t,n){switch(t){case"w":return te(A,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return oe(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return(0,d.k)(ue(e,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends D{priority=100;parse(e,t,n){switch(t){case"I":return te(A,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return oe(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return(0,l.b)(le(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends D{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return te(T,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return oe(t.length,e)}}validate(e,t){const n=ce(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=fe[r]:t>=1&&t<=de[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends D{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return te(M,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return oe(t.length,e)}}validate(e,t){return ce(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends D{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=pe(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends D{priority=90;parse(e,t,n,r){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return ee(oe(t.length,e),o);case"eo":return ee(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=pe(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends D{priority=90;parse(e,t,n,r){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return ee(oe(t.length,e),o);case"co":return ee(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=pe(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends D{priority=90;parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return oe(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return ee(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return ee(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return ee(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return ee(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=he(e,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends D{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(ie(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends D{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(ie(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends D{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(ie(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends D{priority=70;parse(e,t,n){switch(t){case"h":return te(L,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return oe(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},H:new class extends D{priority=70;parse(e,t,n){switch(t){case"H":return te(I,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return oe(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends D{priority=70;parse(e,t,n){switch(t){case"K":return te(R,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return oe(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},k:new class extends D{priority=70;parse(e,t,n){switch(t){case"k":return te(N,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return oe(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends D{priority=60;parse(e,t,n){switch(t){case"m":return te(F,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return oe(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]},s:new class extends D{priority=50;parse(e,t,n){switch(t){case"s":return te(H,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return oe(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]},S:new class extends D{priority=30;parse(e,t){return ee(oe(t.length,e),(e=>Math.trunc(e*Math.pow(10,3-t.length))))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]},X:new class extends D{priority=10;parse(e,t){switch(t){case"X":return ne($,e);case"XX":return ne(X,e);case"XXXX":return ne(Q,e);case"XXXXX":return ne(J,e);default:return ne(Z,e)}}set(e,t,n){return t.timestampIsSet?e:(0,r.w)(e,e.getTime()-(0,u.G)(e)-n)}incompatibleTokens=["t","T","x"]},x:new class extends D{priority=10;parse(e,t){switch(t){case"x":return ne($,e);case"xx":return ne(X,e);case"xxxx":return ne(Q,e);case"xxxxx":return ne(J,e);default:return ne(Z,e)}}set(e,t,n){return t.timestampIsSet?e:(0,r.w)(e,e.getTime()-(0,u.G)(e)-n)}incompatibleTokens=["t","T","X"]},t:new class extends D{priority=40;parse(e){return re(e)}set(e,t,n){return[(0,r.w)(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends D{priority=20;parse(e){return re(e)}set(e,t,n){return[(0,r.w)(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},ge=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ye=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ve=/^'([^]*?)'?$/,be=/''/g,we=/\S/,Oe=/[a-zA-Z]/;function xe(e,t,n,a){const i=()=>(0,r.w)(a?.in||n,NaN),s=m(),c=a?.locale??s.locale??h.q,u=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,l=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0;if(!t)return e?i():(0,o.a)(n,a?.in);const d={firstWeekContainsDate:u,weekStartsOn:l,locale:c},f=[new _(a?.in,n)],p=t.match(ye).map((e=>{const t=e[0];if(t in k.m){return(0,k.m[t])(e,c.formatLong)}return e})).join("").match(ge),g=[];for(let n of p){!a?.useAdditionalWeekYearTokens&&(0,S.xM)(n)&&(0,S.Ss)(n,t,e),!a?.useAdditionalDayOfYearTokens&&(0,S.ef)(n)&&(0,S.Ss)(n,t,e);const r=n[0],o=me[r];if(o){const{incompatibleTokens:t}=o;if(Array.isArray(t)){const e=g.find((e=>t.includes(e.token)||e.token===r));if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${n}\` at the same time`)}else if("*"===o.incompatibleTokens&&g.length>0)throw new RangeError(`The format string mustn't contain \`${n}\` and any other token at the same time`);g.push({token:r,fullToken:n});const a=o.run(e,n,c.match,d);if(!a)return i();f.push(a.setter),e=a.rest}else{if(r.match(Oe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");if("''"===n?n="'":"'"===r&&(n=n.match(ve)[1].replace(be,"'")),0!==e.indexOf(n))return i();e=e.slice(n.length)}}if(e.length>0&&we.test(e))return i();const y=f.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>f.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let v=(0,o.a)(n,a?.in);if(isNaN(+v))return i();const b={};for(const e of y){if(!e.validate(v,d))return i();const t=e.set(v,b,d);Array.isArray(t)?(v=t[0],Object.assign(b,t[1])):v=t}return v}function ke(e,t,n){return(0,c.f)(xe(e,t,new Date,n))}n(90096);n(87758);function Se(e,t){const n=()=>(0,r.w)(t?.in,NaN),a=t?.additionalDigits??2,s=function(e){const t={},n=e.split(Ee.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Ee.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Ee.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=Ee.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let c;if(s.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}(s.date,a);c=function(e,t){if(null===t)return new Date(NaN);const n=e.match(Pe);if(!n)return new Date(NaN);const r=!!n[4],o=De(n[1]),a=De(n[2])-1,i=De(n[3]),s=De(n[4]),c=De(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,c)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}(t,s,c):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Te[t]||(Me(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(Me(e)?366:365)}(t,o)?(e.setUTCFullYear(t,a,Math.max(o,i)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!c||isNaN(+c))return n();const u=+c;let l,d=0;if(s.time&&(d=function(e){const t=e.match(je);if(!t)return NaN;const n=Ce(t[1]),r=Ce(t[2]),o=Ce(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o))return NaN;return n*i.s0+r*i.Cg+1e3*o}(s.time),isNaN(d)))return n();if(!s.timezone){const e=new Date(u+d),n=(0,o.a)(0,t?.in);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}return l=function(e){if("Z"===e)return 0;const t=e.match(_e);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return n*(r*i.s0+o*i.Cg)}(s.timezone),isNaN(l)?n():(0,o.a)(u+d+l,t?.in)}const Ee={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Pe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,je=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,_e=/^([+-])(\d{2})(?::?(\d{2}))?$/;function De(e){return e?parseInt(e):1}function Ce(e){return e&&parseFloat(e.replace(",","."))||0}const Te=[31,null,31,30,31,30,31,31,30,31,30,31];function Me(e){return e%400==0||e%4==0&&e%100!=0}function Ae(e,t,n){const r=(0,o.a)(e,n?.in);return r.setHours(t),r}function Ie(e,t,n){const r=(0,o.a)(e,n?.in);return r.setMilliseconds(t),r}function Ne(e,t,n){const r=(0,o.a)(e,n?.in);return r.setMinutes(t),r}function Re(e,t,n){const r=(0,o.a)(e,n?.in);return r.setSeconds(t),r}n(73576)},80658:(e,t,n)=>{"use strict";function r(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}n.d(t,{$:()=>r})},90096:(e,t,n)=>{"use strict";n.d(t,{R:()=>a});var r=n(5305),o=n(80337);function a(e,t,n){const[a,i]=(0,r.x)(n?.in,e,t);return+(0,o.k)(a,n)==+(0,o.k)(i,n)}},32370:(e,t,n)=>{"use strict";n.d(t,{f:()=>a});var r=n(80658),o=n(29407);function a(e){return!(!(0,r.$)(e)&&"number"!=typeof e||isNaN(+(0,o.a)(e)))}},7277:(e,t,n)=>{"use strict";function r(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}n.d(t,{k:()=>r})},33443:(e,t,n)=>{"use strict";function r(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}n.d(t,{o:()=>r})},57883:(e,t,n)=>{"use strict";function r(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(e=>e.test(i))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(i)));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;return{value:u,rest:t.slice(i.length)}}}n.d(t,{A:()=>r})},20337:(e,t,n)=>{"use strict";function r(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;return{value:i,rest:t.slice(o.length)}}}n.d(t,{K:()=>r})},9946:(e,t,n)=>{"use strict";n.d(t,{c:()=>l});const r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};var o=n(7277);const a={date:(0,o.k)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,o.k)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,o.k)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},i={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};var s=n(33443);const c={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,s.o)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,s.o)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,s.o)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,s.o)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,s.o)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};var u=n(57883);const l={code:"en-US",formatDistance:(e,t,n)=>{let o;const a=r[e];return o="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o},formatLong:a,formatRelative:(e,t,n,r)=>i[e],localize:c,match:{ordinalNumber:(0,n(20337).K)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,u.A)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,u.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,u.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,u.A)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,u.A)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},6463:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});var r=n(29407);function o(e,t){const n=(0,r.a)(e,t?.in);return n.setHours(0,0,0,0),n}},22008:(e,t,n)=>{"use strict";n.d(t,{b:()=>o});var r=n(80337);function o(e,t){return(0,r.k)(e,{...t,weekStartsOn:1})}},30569:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var r=n(43329),o=n(51898),a=n(22008);function i(e,t){const n=(0,o.p)(e,t),i=(0,r.w)(t?.in||e,0);return i.setFullYear(n,0,4),i.setHours(0,0,0,0),(0,a.b)(i)}},80337:(e,t,n)=>{"use strict";n.d(t,{k:()=>a});var r=n(92516),o=n(29407);function a(e,t){const n=(0,r.q)(),a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=(0,o.a)(e,t?.in),s=i.getDay(),c=(s<a?7:0)+s-a;return i.setDate(i.getDate()-c),i.setHours(0,0,0,0),i}},73576:(e,t,n)=>{"use strict";n.d(t,{b:()=>s});var r=n(92516),o=n(43329),a=n(84485),i=n(80337);function s(e,t){const n=(0,r.q)(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,c=(0,a.h)(e,t),u=(0,o.w)(t?.in||e,0);u.setFullYear(c,0,s),u.setHours(0,0,0,0);return(0,i.k)(u,t)}},70228:(e,t,n)=>{"use strict";n.d(t,{D:()=>o});var r=n(29407);function o(e,t){const n=(0,r.a)(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}},29407:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var r=n(43329);function o(e,t){return(0,r.w)(t||e,e)}}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,c),n.loaded=!0,n.exports}c.m=i,c.amdD=function(){throw new Error("define cannot be used indirect")},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.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);c.r(o);var a={};n=n||[null,r({}),r([]),r(r)];for(var i=2&t&&e;"object"==typeof i&&!~n.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,c.d(o,a),o},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,n)=>(c.f[n](e,t),t)),[])),c.u=e=>"chunk-"+({222:"vendor-libphonenumber-js",262:"html-editor",310:"vendor-fontawesome",672:"phone-formatter",722:"code-editor",916:"vendor-icons"}[e]||e)+"."+{103:"f24ccba6509df0300e73",222:"0de1600e4af4d0ae32d3",262:"8ad6747cce730a73dd63",264:"2cef2ef88153e99892c2",310:"72c23e27d9e2f49a3814",672:"e6ffa6e7fb3d26ee06fb",722:"ff4db6f56b773db48894",770:"d0651a15c9eef8d63fae",916:"add8c79ff7f990d82444"}[e]+".js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},a="tocco-:",c.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var i,s;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")==a+n){i=d;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,c.nc&&i.setAttribute("nonce",c.nc),i.setAttribute("data-webpack",a+n),i.src=e),o[e]=[t];var f=(t,n)=>{i.onerror=i.onload=null,clearTimeout(p);var r=o[e];if(delete o[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),s&&document.head.appendChild(i)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),c.p="/",(()=>{var e={458:0};c.f.j=(t,n)=>{var r=c.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=c.p+c.u(t),i=new Error;c.l(a,(n=>{if(c.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,r[1](i)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,i,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in i)c.o(i,r)&&(c.m[r]=i[r]);if(s)s(c)}for(t&&t(n);u<a.length;u++)o=a[u],c.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),c.nc=void 0;return(()=>{"use strict";var e=c(79092),t=c.n(e),n=c(92207),r=c.n(n),o=c(80299),a=c.n(o),i=c(5338),s=c(73082),u="tocco-util/LOG_ERROR",l=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:u,payload:{title:e,description:t,error:n,dateTime:r}}},d=c(31004),f=c(4883),p=c.t(f,2),h=c.n(f),m=c(78418),g=f,y=Symbol.for("react-redux-context"),v="undefined"!=typeof globalThis?globalThis:{};function b(){if(!g.createContext)return{};const e=v[y]??(v[y]=new Map);let t=e.get(g.createContext);return t||(t=g.createContext(null),e.set(g.createContext,t)),t}var w=b(),O=()=>{throw new Error("uSES not initialized!")};var x=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),_=Symbol.for("react.context"),D=Symbol.for("react.server_context"),C=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),N=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),C),R=A;function L(e){if("object"==typeof e&&null!==e){const t=e.$$typeof;switch(t){case x:{const n=e.type;switch(n){case S:case P:case E:case T:case M:return n;default:{const e=n&&n.$$typeof;switch(e){case D:case _:case C:case I:case A:case j:return e;default:return t}}}}case k:return t}}}function F(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:a,areStatePropsEqual:i}){let s,c,u,l,d,f=!1;function p(f,p){const h=!a(p,c),m=!o(f,s,p,c);return s=f,c=p,h&&m?(u=e(s,c),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):h?(e.dependsOnOwnProps&&(u=e(s,c)),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):m?function(){const t=e(s,c),r=!i(t,u);return u=t,r&&(d=n(u,l,c)),d}():d}return function(o,a){return f?p(o,a):(s=o,c=a,u=e(s,c),l=t(r,c),d=n(u,l,c),f=!0,d)}}function H(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function W(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function B(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=W(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=W(o),o=r(t,n)),o},r}}function U(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function Y(e,t,n){return{...n,...e,...t}}function z(e){e()}var V={notify(){},get:()=>[]};function q(e,t){let n,r=V,o=0,a=!1;function i(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){z((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=V)}const u={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return a},trySubscribe:function(){a||(a=!0,s())},tryUnsubscribe:function(){a&&(a=!1,c())},getListeners:()=>r};return u}var G=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),K="undefined"!=typeof navigator&&"ReactNative"===navigator.product,$=G||K?g.useLayoutEffect:g.useEffect;function X(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Q(e,t){if(X(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!X(e[n[r]],t[n[r]]))return!1;return!0}var Z={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},J={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ee={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},te={[N]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[R]:ee};function ne(e){return function(e){return L(e)===A}(e)?ee:te[e.$$typeof]||Z}var re=Object.defineProperty,oe=Object.getOwnPropertyNames,ae=Object.getOwnPropertySymbols,ie=Object.getOwnPropertyDescriptor,se=Object.getPrototypeOf,ce=Object.prototype;function ue(e,t){if("string"!=typeof t){if(ce){const n=se(t);n&&n!==ce&&ue(e,n)}let n=oe(t);ae&&(n=n.concat(ae(t)));const r=ne(e),o=ne(t);for(let a=0;a<n.length;++a){const i=n[a];if(!(J[i]||o&&o[i]||r&&r[i])){const n=ie(t,i);try{re(e,i,n)}catch(e){}}}}return e}var le=O,de=[null,null];function fe(e,t,n,r,o,a){e.current=r,n.current=!1,o.current&&(o.current=null,a())}function pe(e,t){return e===t}var he=function(e,t,n,{pure:r,areStatesEqual:o=pe,areOwnPropsEqual:a=Q,areStatePropsEqual:i=Q,areMergedPropsEqual:s=Q,forwardRef:c=!1,context:u=w}={}){const l=u,d=function(e){return e?"function"==typeof e?B(e):U(e,"mapStateToProps"):H((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?H((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?B(e):U(e,"mapDispatchToProps"):H((e=>({dispatch:e})))}(t),p=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,a=!1;return function(t,n,i){const s=e(t,n,i);return a?r(s,o)||(o=s):(a=!0,o=s),o}}}(e):U(e,"mergeProps"):()=>Y}(n),h=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:o,areStatePropsEqual:i,areOwnPropsEqual:a,areMergedPropsEqual:s};function u(t){const[n,o,a]=g.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),i=g.useMemo((()=>l),[n,l]),s=g.useContext(i),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(s)&&Boolean(s.store);const d=c?t.store:s.store,f=u?s.getServerState:d.getState,p=g.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return F(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[m,y]=g.useMemo((()=>{if(!h)return de;const e=q(d,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,s]),v=g.useMemo((()=>c?s:{...s,subscription:m}),[c,s,m]),b=g.useRef(void 0),w=g.useRef(a),O=g.useRef(void 0),x=g.useRef(!1),k=g.useRef(!1),S=g.useRef(void 0);$((()=>(k.current=!0,()=>{k.current=!1})),[]);const E=g.useMemo((()=>()=>O.current&&a===w.current?O.current:p(d.getState(),a)),[d,a]),P=g.useMemo((()=>e=>m?function(e,t,n,r,o,a,i,s,c,u,l){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!s.current)return;const e=t.getState();let n,p;try{n=r(e,o.current)}catch(e){p=e,f=e}p||(f=null),n===a.current?i.current||u():(a.current=n,c.current=n,i.current=!0,l())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(h,d,m,p,w,b,x,k,O,y,e):()=>{}),[m]);var j,_,D;let C;j=fe,_=[w,b,x,a,O,y],$((()=>j(..._)),D);try{C=le(P,E,f?()=>p(f(),a):E)}catch(e){throw S.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${S.current.stack}\n\n`),e}$((()=>{S.current=void 0,O.current=void 0,b.current=C}));const T=g.useMemo((()=>g.createElement(e,{...C,ref:o})),[o,e,C]);return g.useMemo((()=>h?g.createElement(i.Provider,{value:v},T):T),[i,T,v])}const m=g.memo(u);if(m.WrappedComponent=e,m.displayName=u.displayName=n,c){const t=g.forwardRef((function(e,t){return g.createElement(m,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,ue(t,e)}return ue(m,e)}};var me=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:a="once"}){const i=g.useMemo((()=>{const t=q(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:a}}),[e,r,o,a]),s=g.useMemo((()=>e.getState()),[e]);$((()=>{const{subscription:t}=i;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[i,s]);const c=t||w;return g.createElement(c.Provider,{value:i},n)};var ge;ge=m.useSyncExternalStoreWithSelector,(e=>{le=e})(f.useSyncExternalStore);var ye=c(82274),ve=c.n(ye),be=c(65044),we=c.n(be),Oe=c(65611),xe=c.n(Oe),ke=c(18337),Se=c.n(ke),Ee=c(56994),Pe=c.n(Ee),je=c(5556),_e=c.n(je),De=c(72189),Ce=c.n(De),Te=c(92648),Me=c(96346),Ae=c(91907);const Ie=function(e){return(0,Ae.A)(e)};const Ne={shouldForwardProp:function(e,t){return"string"!=typeof t||Ie(e)},isPropValid:Ie};var Re,Le,Fe=c(17656),He=(0,Me.AH)(Re||(Re=Ce()(["\n ","\n color: ",";\n\n * {\n color: ",";\n text-decoration: ",";\n }\n\n &:hover,\n &:hover *,\n &:focus,\n &:focus * {\n text-decoration: ",";\n }\n\n &:active,\n &:active * {\n text-decoration: ",";\n }\n"])),(0,Fe.Ed)(),Fe.w4.color("text"),Fe.w4.color("text"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}));const We=(0,Me.Ay)(Te.N_).withConfig({shouldForwardProp:function(e){return Ne.isPropValid(e)||"state"===e}})(Le||(Le=Ce()(["\n &:link,\n &:visited {\n color: ","; /* nice2 reset */\n }\n ","\n"])),Fe.t7.color("text"),He);var Be,Ue=c(26396),Ye=c.n(Ue),ze=c(39892),Ve=c.n(ze),qe=c(47850),Ge=c(74848);function Ke(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?Ke(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xe=(0,f.lazy)((function(){return c.e(770).then(c.bind(c,68389))}));const Qe=function(e){return(0,Ge.jsx)(f.Suspense,{fallback:Be||(Be=(0,Ge.jsx)(h().Fragment,{})),children:(0,Ge.jsx)(Xe,$e({},e))})};var Ze=c(22056),Je=c.n(Ze);function et(e,t){var n=(0,f.useState)(e),r=Je()(n,2),o=r[0],a=r[1];return(0,f.useEffect)((function(){var n=setTimeout((function(){a(e)}),t);return function(){clearTimeout(n)}}),[e,t]),[o,a]}function tt(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 nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const rt=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 h().forwardRef((function(r,o){var a=r.value,i=(0,f.useState)(a),s=Je()(i,2),c=s[0],u=s[1],l=et(c,t),d=Je()(l,2),p=d[0],h=d[1],m=(0,f.useRef)(a),g=r[n];return(0,f.useEffect)((function(){c!==a&&c===p&&(u(a),m.current=a,h(a))}),[a]),(0,f.useEffect)((function(){g&&m.current!==p&&(g(p),m.current=p)}),[p,g]),(0,Ge.jsx)(e,nt(nt(nt({},r),{},{value:c},Ye()({},n,u)),{},{ref:o}))}))};var ot=function(){return"matchMedia"in window&&window.matchMedia("(pointer: coarse)").matches};const at=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,f.useEffect)((function(){if(!t.disabled&&e.current&&!ot()){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)};const it=function(){var e=(0,f.useState)(),t=Je()(e,2),n=t[0],r=t[1],o=(0,f.useRef)(),a=(0,f.useCallback)((function(e){if(Array.isArray(e)){var t=e[0];r(t.contentRect)}}),[]),i=(0,f.useCallback)((function(e){e&&(o.current=new ResizeObserver((function(e){return a(e)})),o.current.observe(e))}),[a]);return(0,f.useEffect)((function(){return function(){o.current&&(o.current.disconnect(),o.current=null)}}),[]),[i,n]};const st={useAutofocus:at,useDebounce:et,Debouncer:rt,useUserActive:function(e){var t=(0,f.useRef)(null),n=(0,f.useState)(null),r=Je()(n,2),o=r[0],a=r[1],i=(0,f.useCallback)((function(){o>0&&(t.current=setTimeout((function(){e()}),o))}),[o,e]),s=(0,f.useCallback)((function(){t.current&&clearTimeout(t.current)}),[]);return(0,f.useEffect)((function(){return s(),window.addEventListener("mousemove",i,{once:!0}),window.addEventListener("touchstart",i,{once:!0}),function(){s()}}),[s,i]),[a,s,i]},usePrevious:function(e){var t=(0,f.useRef)();return(0,f.useEffect)((function(){t.current=e}),[e]),t.current},useDidUpdate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,f.useRef)(!1);(0,f.useEffect)((function(){n.current?e():n.current=!0}),t)},useResizeObserver:it};var ct="hidden",ut="responsive",lt={labelVisibility:ut},dt=h().createContext(lt);var ft,pt,ht,mt,gt,yt,vt,bt=(0,Me.AH)(mt||(mt=Ce()(["\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n text-align: center;\n vertical-align: middle;\n white-space: nowrap;\n border: none;\n border-radius: ",";\n margin-right: ",";\n padding: "," ",";\n cursor: pointer;\n ","\n ","\n ","\n ","\n ","\n\n & > span:first-child {\n margin-left: 0;\n }\n ","\n"])),Fe.w4.radii("button"),Fe.hs.space(-1.38),Fe.hs.space(-2.1),Fe.hs.space(0),(0,Fe.Ed)(),(function(e){return e.withoutBackground?(0,Me.AH)(ht||(ht=Ce()(["\n background: transparent;\n"]))):(0,Fe.x5)(e)}),(function(e){return function(e){var t=e.dense,n=e.theme;return t?(0,Me.AH)(ft||(ft=Ce()(["\n line-height: ",";\n padding: "," ",";\n "])),Fe.w4.lineHeight("dense")({theme:n}),Fe.hs.space(-3.5)({theme:n}),Fe.hs.space(-1.5)({theme:n})):null}(e)}),(function(e){return n=(t=e).iconOnly,r=t.removePadding,n||r?(0,Me.AH)(pt||(pt=Ce()(["\n padding: 0;\n margin: 0;\n "]))):null;var t,n,r}),(function(e){return function(e){var t=e.icon,n=e.pending,r=e.iconPosition;if(t||n)return r===Fe.xX.position.APPEND?"\n > span {\n order: -1;\n margin-right: .5rem;\n }\n ":"\n > span {\n margin-left: .5rem;\n }\n "}(e)}),(function(e){var t=e.icon,n=e.labelVisibility,r="\n ".concat(wt," {\n display: none;\n }\n ");return t&&n===ct?r:t&&n===ut&&"\n @media screen and (max-width: 1024px) {\n ".concat(r,"\n }\n ")})),wt=Me.Ay.span.withConfig({displayName:"StyledLabelWrapper"})(gt||(gt=Ce()([""]))),Ot=Me.Ay.button.withConfig({displayName:"StyledButton"})(yt||(yt=Ce()(["\n ","\n"])),bt);Me.Ay.div.withConfig({displayName:"StyledStickyButtonWrapper"})(vt||(vt=Ce()(["\n position: sticky;\n bottom: 0;\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: ",";\n z-index: 1;\n\n ",":last-child {\n margin-right: 0;\n }\n"])),Fe.hs.space(0),Fe.t7.color("paper"),(function(e){return"LEFT"===e.position?"flex-start":"flex-end"}),Ot);const xt=Ot;function kt(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 St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Et=h().forwardRef((function(e,t){var n=e.aria,r=e.ink,o=e.label,a=e.icon,i=e.pending,s=e.look,c=void 0===s?Fe.xX.look.FLAT:s,u=e.iconPosition,l=void 0===u?Fe.xX.position.PREPEND:u,d=e.type,p=void 0===d?"button":d,h=e.iconOnly,m=e.children,g=(0,f.useContext)(dt).labelVisibility;return(0,Ge.jsxs)(xt,St(St(St({ref:t},n),e),{},{ink:r||Fe.xX.ink.BASE,"data-cy":e["data-cy"],title:o,labelVisibility:g,type:p,children:[a&&!i&&(0,Ge.jsx)(qe.A,{icon:a}),i&&(0,Ge.jsx)(Qe,{ink:r||Fe.xX.ink.BASE,look:c,position:l,size:"1em"}),!h&&o?(0,Ge.jsx)(wt,{children:o}):m||"​"]}))}));var Pt;(0,Me.Ay)(Te.N_).withConfig({shouldForwardProp:Ne.isPropValid}).withConfig({displayName:"StyledRouterLinkButton"})(Pt||(Pt=Ce()(["\n text-decoration: none;\n\n &:visited {\n color: ","; /* nice2 reset */\n }\n\n &:hover,\n &:focus {\n text-decoration: none; /* nice2 reset */\n }\n ","\n"])),Fe.t7.color("text"),bt);var jt,_t;const Dt=Me.Ay.button.withConfig({displayName:"StyledButton"})(_t||(_t=Ce()(["\n ","\n ","\n ","\n cursor: pointer;\n"])),(0,Fe.Ed)(),Fe.x5,(function(){return(0,Me.AH)(jt||(jt=Ce()(["\n border-radius: 50%;\n justify-content: center;\n align-items: center;\n padding: ",";\n\n /* ensure that width has at least the size of height */\n min-width: calc(\n 1rem * "," * "," + 2.4 * ","\n );\n box-sizing: border-box;\n"])),Fe.hs.space(-3),Fe.w4.fontSize("base"),Fe.w4.lineHeight("regular"),Fe.hs.space(-3))}));function Ct(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 Tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mt=h().forwardRef((function(e,t){return(0,Ge.jsx)(Dt,Tt(Tt({ref:t,type:"button"},e),{},{children:(0,Ge.jsx)(qe.A,{icon:e.icon})}))}));Mt.propTypes={disabled:_e().bool,icon:_e().string.isRequired,ink:Fe.xX.inkPropTypes,look:_e().oneOf([Fe.xX.look.FLAT,Fe.xX.look.RAISED]),onClick:_e().func,title:_e().string,tabIndex:_e().number,"data-cy":_e().string};const At=Mt;var It,Nt,Rt,Lt,Ft=c(21259),Ht=c.n(Ft),Wt=c(49859),Bt=c.n(Wt),Ut=c(52098),Yt=c.n(Ut),zt=c(30115),Vt=c.n(zt),qt=c(45228),Gt=c.n(qt),Kt="bodyAttributes",$t="htmlAttributes",Xt="titleAttributes",Qt={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},Zt=(Object.keys(Qt).map((function(e){return Qt[e]})),"charset"),Jt="cssText",en="href",tn="http-equiv",nn="innerHTML",rn="itemprop",on="name",an="property",sn="rel",cn="src",un="target",ln={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},dn="defaultTitle",fn="defer",pn="encodeSpecialCharacters",hn="onChangeClientState",mn="titleTemplate",gn=Object.keys(ln).reduce((function(e,t){return e[ln[t]]=t,e}),{}),yn=[Qt.NOSCRIPT,Qt.SCRIPT,Qt.STYLE],vn="data-react-helmet",bn="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},wn=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),On=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},xn=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},kn=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},Sn=function(e){var t=Dn(e,Qt.TITLE),n=Dn(e,mn);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=Dn(e,dn);return t||r||void 0},En=function(e){return Dn(e,hn)||function(){}},Pn=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return On({},e,t)}),{})},jn=function(e,t){return t.filter((function(e){return void 0!==e[Qt.BASE]})).map((function(e){return e[Qt.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var a=r[o].toLowerCase();if(-1!==e.indexOf(a)&&n[a])return t.concat(n)}return t}),[])},_n=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&In("Helmet: "+e+' should be of type "Array". Instead found type "'+bn(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,a=Object.keys(e),i=0;i<a.length;i++){var s=a[i],c=s.toLowerCase();-1===t.indexOf(c)||n===sn&&"canonical"===e[n].toLowerCase()||c===sn&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(s)||s!==nn&&s!==Jt&&s!==rn||(n=s)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][u]&&(o[n][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var a=Object.keys(o),i=0;i<a.length;i++){var s=a[i],c=Gt()({},r[s],o[s]);r[s]=c}return e}),[]).reverse()},Dn=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},Cn=(It=Date.now(),function(e){var t=Date.now();t-It>16?(It=t,e(t)):setTimeout((function(){Cn(e)}),0)}),Tn=function(e){return clearTimeout(e)},Mn="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Cn:c.g.requestAnimationFrame||Cn,An="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Tn:c.g.cancelAnimationFrame||Tn,In=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},Nn=null,Rn=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,a=e.linkTags,i=e.metaTags,s=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,d=e.title,f=e.titleAttributes;Hn(Qt.BODY,r),Hn(Qt.HTML,o),Fn(d,f);var p={baseTag:Wn(Qt.BASE,n),linkTags:Wn(Qt.LINK,a),metaTags:Wn(Qt.META,i),noscriptTags:Wn(Qt.NOSCRIPT,s),scriptTags:Wn(Qt.SCRIPT,u),styleTags:Wn(Qt.STYLE,l)},h={},m={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(m[e]=p[e].oldTags)})),t&&t(),c(e,h,m)},Ln=function(e){return Array.isArray(e)?e.join(""):e},Fn=function(e,t){void 0!==e&&document.title!==e&&(document.title=Ln(e)),Hn(Qt.TITLE,t)},Hn=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(vn),o=r?r.split(","):[],a=[].concat(o),i=Object.keys(t),s=0;s<i.length;s++){var c=i[s],u=t[c]||"";n.getAttribute(c)!==u&&n.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=a.indexOf(c);-1!==l&&a.splice(l,1)}for(var d=a.length-1;d>=0;d--)n.removeAttribute(a[d]);o.length===a.length?n.removeAttribute(vn):n.getAttribute(vn)!==i.join(",")&&n.setAttribute(vn,i.join(","))}},Wn=function(e,t){var n=document.head||document.querySelector(Qt.HEAD),r=n.querySelectorAll(e+"["+vn+"]"),o=Array.prototype.slice.call(r),a=[],i=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===nn)n.innerHTML=t.innerHTML;else if(r===Jt)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(vn,"true"),o.some((function(e,t){return i=t,n.isEqualNode(e)}))?o.splice(i,1):a.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:a}},Bn=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},Un=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[ln[n]||n]=e[n],t}),t)},Yn=function(e,t,n){switch(e){case Qt.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[vn]=!0,o=Un(n,r),[h().createElement(Qt.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=Bn(n),a=Ln(t);return o?"<"+e+" "+vn+'="true" '+o+">"+kn(a,r)+"</"+e+">":"<"+e+" "+vn+'="true">'+kn(a,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case Kt:case $t:return{toComponent:function(){return Un(t)},toString:function(){return Bn(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[vn]=!0,r);return Object.keys(t).forEach((function(e){var n=ln[e]||e;if(n===nn||n===Jt){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),h().createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===nn||e===Jt)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+kn(r[t],n)+'"';return e?e+" "+o:o}),""),a=r.innerHTML||r.cssText||"",i=-1===yn.indexOf(e);return t+"<"+e+" "+vn+'="true" '+o+(i?"/>":">"+a+"</"+e+">")}),"")}(e,t,n)}}}},zn=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,a=e.linkTags,i=e.metaTags,s=e.noscriptTags,c=e.scriptTags,u=e.styleTags,l=e.title,d=void 0===l?"":l,f=e.titleAttributes;return{base:Yn(Qt.BASE,t,r),bodyAttributes:Yn(Kt,n,r),htmlAttributes:Yn($t,o,r),link:Yn(Qt.LINK,a,r),meta:Yn(Qt.META,i,r),noscript:Yn(Qt.NOSCRIPT,s,r),script:Yn(Qt.SCRIPT,c,r),style:Yn(Qt.STYLE,u,r),title:Yn(Qt.TITLE,{title:d,titleAttributes:f},r)}},Vn=Yt()((function(e){return{baseTag:jn([en,un],e),bodyAttributes:Pn(Kt,e),defer:Dn(e,fn),encode:Dn(e,pn),htmlAttributes:Pn($t,e),linkTags:_n(Qt.LINK,[sn,en],e),metaTags:_n(Qt.META,[on,Zt,tn,an,rn],e),noscriptTags:_n(Qt.NOSCRIPT,[nn],e),onChangeClientState:En(e),scriptTags:_n(Qt.SCRIPT,[cn,nn],e),styleTags:_n(Qt.STYLE,[Jt],e),title:Sn(e),titleAttributes:Pn(Xt,e)}}),(function(e){Nn&&An(Nn),e.defer?Nn=Mn((function(){Rn(e,(function(){Nn=null}))})):(Rn(e),Nn=null)}),zn)((function(){return null})),qn=(Nt=Vn,Lt=Rt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!Vt()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case Qt.SCRIPT:case Qt.NOSCRIPT:return{innerHTML:t};case Qt.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,a=e.nestedChildren;return On({},r,((t={})[n.type]=[].concat(r[n.type]||[],[On({},o,this.mapNestedChildrenToProps(n,a))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,a=e.newChildProps,i=e.nestedChildren;switch(r.type){case Qt.TITLE:return On({},o,((t={})[r.type]=i,t.titleAttributes=On({},a),t));case Qt.BODY:return On({},o,{bodyAttributes:On({},a)});case Qt.HTML:return On({},o,{htmlAttributes:On({},a)})}return On({},o,((n={})[r.type]=On({},a),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=On({},t);return Object.keys(e).forEach((function(t){var r;n=On({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return h().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,a=o.children,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[gn[n]||n]=e[n],t}),t)}(xn(o,["children"]));switch(n.warnOnInvalidChildren(e,a),e.type){case Qt.LINK:case Qt.META:case Qt.NOSCRIPT:case Qt.SCRIPT:case Qt.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:i,nestedChildren:a});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:i,nestedChildren:a})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=xn(e,["children"]),r=On({},n);return t&&(r=this.mapChildrenToProps(t,r)),h().createElement(Nt,r)},wn(t,null,[{key:"canUseDOM",set:function(e){Nt.canUseDOM=e}}]),t}(h().Component),Rt.propTypes={base:Bt().object,bodyAttributes:Bt().object,children:Bt().oneOfType([Bt().arrayOf(Bt().node),Bt().node]),defaultTitle:Bt().string,defer:Bt().bool,encodeSpecialCharacters:Bt().bool,htmlAttributes:Bt().object,link:Bt().arrayOf(Bt().object),meta:Bt().arrayOf(Bt().object),noscript:Bt().arrayOf(Bt().object),onChangeClientState:Bt().func,script:Bt().arrayOf(Bt().object),style:Bt().arrayOf(Bt().object),title:Bt().string,titleAttributes:Bt().object,titleTemplate:Bt().string},Rt.defaultProps={defer:!0,encodeSpecialCharacters:!0},Rt.peek=Nt.peek,Rt.rewind=function(){var e=Nt.rewind();return e||(e=zn({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},Lt);qn.renderStatic=qn.rewind;var Gn=c(98166),Kn=c(85735),$n=c.n(Kn),Xn=c(2404),Qn=c.n(Xn),Zn=c(69752),Jn=c.n(Zn),er=function(e){return"object"===$n()(e)&&null!==e},tr=function(e,t){return Jn()(e,(function(e,n,r){Qn()(n,t[r])||(e[r]=er(n)&&er(t[r])?tr(n,t[r]):n)}))};const nr={difference:tr,getOrFirst:Gn.Yd,adjustedHTMLString:function(e){return e?e.replace(/&shy;/g,""):e},roundDecimalPlaces:Gn.O5,copyToClipboard:Gn.lW,isDefined:Gn.O9};var rr=c(42838),or=c.n(rr),ar=["border","border-spacing","padding","margin","text-align","width"];or().addHook("afterSanitizeAttributes",(function(e){if(e&&!(e instanceof SVGElement)&&"function"==typeof e.hasAttribute&&e.hasAttribute("style")){var t=function(e){return ar.map((function(t){var n=e[t];return n&&"string"==typeof n&&!function(e){return/\w\(/.test(e)}(n)?"".concat(t,":").concat(n,";"):null})).filter(Boolean).join("")}(e.style);t?e.setAttribute("style",t):e.removeAttribute("style")}return e}));const ir=function(e){return e?or().sanitize(e,{FORBID_TAGS:["style"],ADD_ATTR:["target"]}):e},sr={sanitizeHtml:ir};var cr=c(60284),ur={error:"exclamation-circle",home:"house-blank"},lr=function(e){return ur[e]||e};const dr=function(e){var t=e.type;return t&&"record"!==t?(0,Ge.jsx)(qe.A,{icon:lr(t)}):null};var fr,pr,hr,mr,gr,yr,vr=["component"],br=Me.Ay.div.withConfig({displayName:"StyledBreadcrumbs"})(fr||(fr=Ce()(["\n background-color: ",";\n padding: "," ",";\n position: relative;\n z-index: 2; /* higher than StyledTether to prevent cover on scroll */\n"])),(function(e){return e.backgroundColor||Fe.w4.color("backgroundBreadcrumbs")(e)}),Fe.hs.space(-.7),Fe.hs.space(.39)),wr=(0,Me.Ay)((function(e){var t=e.component,n=Ve()(e,vr);return h().cloneElement(t,n)})).withConfig({displayName:"StyledBreadcrumbsLink"})(pr||(pr=Ce()(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n cursor: pointer;\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n }\n\n &:hover,\n &:hover * {\n color: ",";\n }\n\n &:focus,\n &:active,\n &:focus *,\n &:active * {\n color: ",";\n }\n"])),Fe.w4.fontWeight("bold"),(function(e){return e.active&&Fe.w4.color("breadcrumbsActive")}),Fe.w4.fontWeight("bold"),(function(e){return e.active&&Fe.w4.color("breadcrumbsActive")}),Fe.w4.color("secondaryLight"),Fe.w4.color("breadcrumbsActive")),Or=Me.Ay.span.withConfig({displayName:"StyledBreadcrumbsTitle"})(hr||(hr=Ce()(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n }\n\n &:active * {\n color: ",";\n }\n"])),Fe.w4.fontWeight("bold"),(function(e){return e.active&&Fe.w4.color("breadcrumbsActive")}),Fe.w4.fontWeight("bold"),(function(e){return e.active&&Fe.w4.color("breadcrumbsActive")}),Fe.w4.color("breadcrumbsActive")),xr=(0,Me.Ay)(cr.oY).withConfig({displayName:"StyledBreadcrumbSeparator"})(mr||(mr=Ce()(["\n margin-left: ",";\n margin-right: ",";\n"])),Fe.hs.space(-2),Fe.hs.space(-2)),kr=Me.Ay.span.withConfig({displayName:"StyledBreadcrumbWrapper"})(gr||(gr=Ce()(["\n "," {\n margin-right: ",";\n }\n"])),qe.i,Fe.hs.space(-1));function Sr(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 Er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Pr=function(e){var t,n=e.pathPrefix,r=void 0===n?"":n,o=e.breadcrumb,a=e.isLast,i=e.onClick,s=e.linkComp,c=o.display||"",u=a?Or:wr,l=a&&{active:"true"},d=void 0!==o.path?{to:"".concat(r,"/").concat(o.path),state:o.state}:{},f=s?(0,Ge.jsx)(s,{}):yr||(yr=(0,Ge.jsx)(We,{}));return(0,Ge.jsx)(cr.Ay.Span,{children:(0,Ge.jsx)(kr,{children:(0,Ge.jsxs)(u,Er(Er(Er({neutral:!0},l),d),{},{onClick:(t=o,function(){i&&!1!==t.clickable&&i(t)}),component:f,children:[(0,Ge.jsx)(dr,{type:o.type}),(0,Ge.jsx)("span",{"data-cy":"breadcrumb-item",dangerouslySetInnerHTML:{__html:sr.sanitizeHtml(c)}})]}))})})};var jr;const _r=function(){return jr||(jr=(0,Ge.jsx)(xr,{breakWords:!0,children:(0,Ge.jsx)(qe.A,{icon:"chevron-right"})}))};var Dr,Cr=function(e){return e.title||e.display},Tr=function(e,t){if(!e||0===e.length)return"Tocco";var n=e.at(-1),r="";switch(n.type){case"create":r="".concat(Cr(n)," - ").concat(t);break;case"detail":r=e.slice(e.length-2).map(Cr).join(" - ");break;default:r=Cr(n)}return nr.adjustedHTMLString(r)},Mr={type:"home",title:"Tocco",display:"Home",path:""};const Ar=function(e){var t=e.intl,n=e.pathPrefix,r=void 0===n?"":n,o=e.breadcrumbsInfo,a=void 0===o?[]:o,i=e.currentView,s=e.backgroundColor,c=e.onClick,u=e.linkComp,l=e.updateDocumentTitle,d=e.showToccoHome,f=[].concat(Ht()(a),Ht()(i?[i]:[]));if(0===f.length)return null;var p,h=f.map((function(e,t){return(0,Ge.jsx)(Pr,{pathPrefix:r,breadcrumb:e,isLast:t===f.length-1,linkComp:u,onClick:c},"breadcrumbItem-".concat(t))})).reduce((function(e,t,n){return[].concat(Ht()(e),[t,(0,Ge.jsx)(_r,{},"icon".concat(n))])}),[]).slice(0,-1);return(0,Ge.jsxs)(br,{backgroundColor:s,children:[l?(0,Ge.jsx)(qn,{defer:!1,children:(0,Ge.jsx)("title",{children:Tr(f,(p="client.component.breadcrumbs.createTitle",t.formatMessage({id:p})))})}):null,(0,Ge.jsxs)(Ge.Fragment,{children:[d&&(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsx)(Pr,{pathPrefix:"",breadcrumb:Mr,isLast:0===f.length,linkComp:u,onClick:c}),Dr||(Dr=(0,Ge.jsx)(_r,{}))]})," ",h]})]})};(0,d.injectIntl)(Ar);var Ir,Nr,Rr=Me.Ay.div.withConfig({displayName:"StyledWrapper"})(Ir||(Ir=Ce()(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,Fe.Ed)(),(function(e){return e.theme.colors.signal.danger}),Fe.t7.color("paper"),Fe.hs.space(-.5));const Lr=function(){return Nr||(Nr=(0,Ge.jsx)(Rr,{children:(0,Ge.jsx)(d.FormattedMessage,{id:"client.component.errorBoundary.text"})}))};var Fr;const Hr=Me.Ay.div.withConfig({displayName:"StyledButtonGroup"})(Fr||(Fr=Ce()(["\n display: flex;\n\n &&& > "," {\n &:not(:first-child) {\n margin-left: -1px;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n &:not(:last-child) {\n margin-right: 0;\n border-right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n"])),xt);var Wr=h().forwardRef((function(e,t){return(0,Ge.jsx)(Hr,{ref:t,children:e.children})}));Wr.propTypes={children:_e().node};const Br=Wr;var Ur=c(90179),Yr=c.n(Ur),zr=c(62193),Vr=c.n(zr),qr=c(66984),Gr=(c(97193),c(86635)),Kr=c(49054),$r=c(81845),Xr=c.n($r),Qr=c(4865);const Zr={...p},Jr=Zr.useInsertionEffect||(e=>e());function eo(e){const t=f.useRef((()=>{0}));return Jr((()=>{t.current=e})),f.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}const to="ArrowUp",no="ArrowDown",ro="ArrowLeft",oo="ArrowRight";var ao="undefined"!=typeof document?f.useLayoutEffect:f.useEffect;const io=[ro,oo],so=[to,no];function co(){return co=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},co.apply(this,arguments)}let uo=!1,lo=0;const fo=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+lo++;const po=Zr.useId||function(){const[e,t]=f.useState((()=>uo?fo():void 0));return ao((()=>{null==e&&t(fo())}),[]),f.useEffect((()=>{uo=!0}),[]),e};const ho=f.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:a}},width:i=14,height:s=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:l,stroke:d,d:p,style:{transform:h,...m}={},...g}=e;const y=po(),[v,b]=f.useState(!1);if(ao((()=>{if(!r)return;"rtl"===(0,Gr.L9)(r).direction&&b(!0)}),[r]),!r)return null;const[w,O]=n.split("-"),x="top"===w||"bottom"===w;let k=l;(x&&null!=a&&a.x||!x&&null!=a&&a.y)&&(k=null);const S=2*u,E=S/2,P=i/2*(c/-8+1),j=s/2*c/4,_=!!p,D=k&&"end"===O?"bottom":"top";let C=k&&"end"===O?"right":"left";k&&v&&(C="end"===O?"left":"right");const T=null!=(null==o?void 0:o.x)?k||o.x:"",M=null!=(null==o?void 0:o.y)?k||o.y:"",A=p||"M0,0 H"+i+" L"+(i-P)+","+(s-j)+" Q"+i/2+","+s+" "+P+","+(s-j)+" Z",I={top:_?"rotate(180deg)":"",left:_?"rotate(90deg)":"rotate(-90deg)",bottom:_?"":"rotate(180deg)",right:_?"rotate(-90deg)":"rotate(90deg)"}[w];return f.createElement("svg",co({},g,{"aria-hidden":!0,ref:t,width:_?i:i+S,height:i,viewBox:"0 0 "+i+" "+(s>i?s:i),style:{position:"absolute",pointerEvents:"none",[C]:T,[D]:M,[w]:x||_?"100%":"calc(100% - "+S/2+"px)",transform:[I,h].filter((e=>!!e)).join(" "),...m}}),S>0&&f.createElement("path",{clipPath:"url(#"+y+")",fill:"none",stroke:d,strokeWidth:S+(p?0:1),d:A}),f.createElement("path",{stroke:S&&!p?g.fill:"none",d:A}),f.createElement("clipPath",{id:y},f.createElement("rect",{x:-E,y:E*(_?-1:1),width:i+S,height:i})))}));function mo(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}const go=f.createContext(null),yo=f.createContext(null),vo=()=>{var e;return(null==(e=f.useContext(go))?void 0:e.id)||null},bo=()=>f.useContext(yo);function wo(e){return"data-floating-ui-"+e}function Oo(e){const t=(0,f.useRef)(e);return ao((()=>{t.current=e})),t}const xo=wo("safe-polygon");function ko(e,t,n){return n&&!(0,qr.Go)(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}const So=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Eo(e,t){const n=(0,Kr.Kr)(e,So());"prev"===t&&n.reverse();const r=n.indexOf((0,qr.RS)((0,qr.YE)(e)));return n.slice(r+1)[0]}function Po(){return Eo(document.body,"next")}function jo(){return Eo(document.body,"prev")}function _o(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!(0,qr.gR)(n,r)}function Do(e){(0,Kr.Kr)(e,So()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Co(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const To={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Mo(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const Ao=f.forwardRef((function(e,t){const[n,r]=f.useState();ao((()=>((0,qr.nr)()&&r("button"),document.addEventListener("keydown",Mo),()=>{document.removeEventListener("keydown",Mo)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[wo("focus-guard")]:"",style:To};return f.createElement("span",co({},e,o))})),Io=f.createContext(null),No=wo("portal");function Ro(e){const{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e,a=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=po(),o=Lo(),[a,i]=f.useState(null),s=f.useRef(null);return ao((()=>()=>{null==a||a.remove(),queueMicrotask((()=>{s.current=null}))}),[a]),ao((()=>{if(!r)return;if(s.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(No,""),e.appendChild(n),s.current=n,i(n)}),[t,r]),ao((()=>{if(!r)return;if(s.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!(0,Gr.vq)(e)&&(e=e.current),e=e||document.body;let a=null;t&&(a=document.createElement("div"),a.id=t,e.appendChild(a));const c=document.createElement("div");c.id=r,c.setAttribute(No,""),e=a||e,e.appendChild(c),s.current=c,i(c)}),[t,n,r,o]),a}({id:n,root:r}),[i,s]=f.useState(null),c=f.useRef(null),u=f.useRef(null),l=f.useRef(null),d=f.useRef(null),p=null==i?void 0:i.modal,h=null==i?void 0:i.open,m=!!i&&!i.modal&&i.open&&o&&!(!r&&!a);return f.useEffect((()=>{if(a&&o&&!p)return a.addEventListener("focusin",e,!0),a.addEventListener("focusout",e,!0),()=>{a.removeEventListener("focusin",e,!0),a.removeEventListener("focusout",e,!0)};function e(e){if(a&&_o(e)){("focusin"===e.type?Co:Do)(a)}}}),[a,o,p]),f.useEffect((()=>{a&&(h||Co(a))}),[h,a]),f.createElement(Io.Provider,{value:f.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:l,afterInsideRef:d,portalNode:a,setFocusManagerState:s})),[o,a])},m&&a&&f.createElement(Ao,{"data-type":"outside",ref:c,onFocus:e=>{if(_o(e,a)){var t;null==(t=l.current)||t.focus()}else{const e=jo()||(null==i?void 0:i.refs.domReference.current);null==e||e.focus()}}}),m&&a&&f.createElement("span",{"aria-owns":a.id,style:To}),a&&$r.createPortal(t,a),m&&a&&f.createElement(Ao,{"data-type":"outside",ref:u,onFocus:e=>{if(_o(e,a)){var t;null==(t=d.current)||t.focus()}else{const t=Po()||(null==i?void 0:i.refs.domReference.current);null==t||t.focus(),(null==i?void 0:i.closeOnFocusOut)&&(null==i||i.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const Lo=()=>f.useContext(Io),Fo="data-floating-ui-focusable";function Ho(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=po(),a=f.useRef({}),[i]=f.useState((()=>mo())),s=null!=vo(),[c,u]=f.useState(r.reference),l=eo(((e,t,r)=>{a.current.openEvent=e?t:void 0,i.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),d=f.useMemo((()=>({setPositionReference:u})),[]),p=f.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return f.useMemo((()=>({dataRef:a,open:t,onOpenChange:l,elements:p,events:i,floatingId:o,refs:d})),[t,l,p,i,o,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[a,i]=f.useState(null),[s,c]=f.useState(null),u=(null==o?void 0:o.reference)||a,l=f.useRef(null),d=bo();ao((()=>{u&&(l.current=u)}),[u]);const p=(0,Qr.we)({...e,elements:{...o,...s&&{reference:s}}}),h=f.useCallback((e=>{const t=(0,Gr.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),p.refs.setReference(t)}),[p.refs]),m=f.useCallback((e=>{((0,Gr.vq)(e)||null===e)&&(l.current=e,i(e)),((0,Gr.vq)(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!(0,Gr.vq)(e))&&p.refs.setReference(e)}),[p.refs]),g=f.useMemo((()=>({...p.refs,setReference:m,setPositionReference:h,domReference:l})),[p.refs,m,h]),y=f.useMemo((()=>({...p.elements,domReference:u})),[p.elements,u]),v=f.useMemo((()=>({...p,...r,refs:g,elements:y,nodeId:t})),[p,g,y,t,r]);return ao((()=>{r.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),f.useMemo((()=>({...p,context:v,refs:g,elements:y})),[p,g,y,v])}const Wo="active",Bo="selected";function Uo(e,t,n){const r=new Map,o="item"===n;let a=e;if(o&&e){const{[Wo]:t,[Bo]:n,...r}=e;a=r}return{..."floating"===n&&{tabIndex:-1,[Fo]:""},...a,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,a]=t;var i;o&&[Wo,Bo].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof a&&(null==(i=r.get(n))||i.push(a),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=a)})),e):e),{})}}var Yo="tocco-app",zo=c(85072),Vo=c.n(zo),qo=c(97825),Go=c.n(qo),Ko=c(77659),$o=c.n(Ko),Xo=c(55056),Qo=c.n(Xo),Zo=c(10540),Jo=c.n(Zo),ea=c(41113),ta=c.n(ea),na=c(2063),ra={};ra.styleTagTransform=ta(),ra.setAttributes=Qo(),ra.insert=$o().bind(null,"head"),ra.domAPI=Go(),ra.insertStyleElement=Jo();Vo()(na.A,ra);na.A&&na.A.locals&&na.A.locals;var oa,aa=c(59386),ia=c.n(aa),sa=Me.Ay.span.withConfig({displayName:"StyledChildrenWrapper"})(oa||(oa=Ce()(["\n cursor: pointer;\n user-select: none;\n"]))),ca=h().forwardRef((function(e,t){var n=e.children,r=e.onOpen;return(0,Ge.jsx)(sa,{onClick:r,ref:t,children:n})}));ca.propTypes={children:_e().any,onOpen:_e().func};const ua=ca;var la=c(91947),da=c(37576),fa=function(){(0,aa.registerLocale)("en",da.A.getDateFnsLocale("en")),(0,aa.registerLocale)("en-US",da.A.getDateFnsLocale("en")),(0,aa.registerLocale)("de-CH",da.A.getDateFnsLocale("de-CH")),(0,aa.registerLocale)("de-DE",da.A.getDateFnsLocale("de-DE")),(0,aa.registerLocale)("de",da.A.getDateFnsLocale("de")),(0,aa.registerLocale)("fr",da.A.getDateFnsLocale("fr")),(0,aa.registerLocale)("fr-CH",da.A.getDateFnsLocale("fr")),(0,aa.registerLocale)("it",da.A.getDateFnsLocale("it")),(0,aa.registerLocale)("it-CH",da.A.getDateFnsLocale("it")),(0,aa.setDefaultLocale)("de")};fa();(0,Me.SL)((0,d.injectIntl)((function(e){var t,n=e.children,r=e.value,o=e.onChange,a=e.intl,i=a.locale,s=(0,f.useRef)(null),c=(0,f.useState)(!1),u=Je()(c,2),l=u[0],d=u[1],p=function(e){var t,n;(d(e),null!==(t=s.current)&&void 0!==t&&t.setPreSelection)&&(null===(n=s.current)||void 0===n||n.setPreSelection(r))};return(0,Ge.jsx)(ia(),{ref:s,selected:r,preSelection:null,onChange:o,showTimeInput:!1,dateFormat:"P",showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,open:l,onFocus:function(){p(!0)},onClickOutside:function(){p(!1)},locale:i,enableTabLoop:!1,customInput:(0,Ge.jsx)(ua,{onOpen:function(){p(!0)},children:n}),todayButton:(t="client.component.datePicker.todayLabel",a.formatMessage({id:t}))})})));var pa,ha,ma,ga,ya=Fe.t7.color("secondaryLight"),va=Fe.t7.color("paper"),ba=Fe.t7.color("text"),wa=Fe.t7.color("secondary"),Oa=Fe.t7.radii("form"),xa=(0,Me.DU)(pa||(pa=Ce()(["\n .react-datepicker-popper {\n && {\n /* higher than StyledHolder and very high value to prevent other elements blocking it when implemented as a widget */\n z-index: 9100;\n margin: 0;\n }\n }\n\n .react-datepicker-wrapper {\n width: 100%;\n\n .react-datepicker__input-container {\n "," {\n color: ",";\n }\n }\n }\n\n .react-datepicker.react-datepicker .react-datepicker__time-container--with-today-button,\n .react-datepicker.react-datepicker .react-datepicker__time-container .react-datepicker__time {\n border-radius: "," !important;\n height: 100%;\n }\n\n .react-datepicker {\n && {\n * {\n box-sizing: content-box; /* prevent box-sizing problems in widgets */\n }\n border-radius: ",";\n border: 1px solid ",";\n background-color: ",";\n ","\n\n .react-datepicker__header {\n ","\n border-radius: 0;\n background-color: ",";\n padding-bottom: 0;\n border-top-left-radius: ",";\n border-top-right-radius: ",";\n }\n\n .react-datepicker__navigation {\n top: 3px;\n }\n\n .react-datepicker__navigation--previous,\n .react-datepicker__navigation--next {\n margin-top: ",";\n }\n ","\n\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow,\n .react-datepicker__navigation-icon:before {\n border-color: "," !important;\n border-width: 1.5px 1.5px 0 0;\n }\n\n .react-datepicker__month-read-view--selected-month,\n .react-datepicker__year-read-view--selected-year {\n font-size: ",";\n font-weight: ",";\n }\n\n .react-datepicker__current-month {\n ","\n }\n\n .react-datepicker__day-name {\n color: ",";\n font-size: ",";\n }\n\n .react-datepicker__day,\n .react-datepicker__day-name {\n border: 1px solid transparent;\n padding: ",";\n outline: none;\n }\n\n .react-datepicker__day.react-datepicker__day--selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\n color: #fff; /* static in all themes */\n\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n }\n\n .react-datepicker__day--keyboard-selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\n }\n\n .react-datepicker__day--today,\n .react-datepicker__month-text--today,\n .react-datepicker__quarter-text--today,\n .react-datepicker__year-text--today {\n border-radius: 50%;\n border-color: ",";\n }\n\n .react-datepicker__today-button {\n ","\n background-color: ",";\n border-top: 0;\n padding-bottom: ",";\n padding-top: 0;\n\n &:hover > button {\n background-color: ",";\n }\n\n &:last-child {\n border-radius: ",";\n }\n }\n\n .react-datepicker__input-time-container {\n display: flex;\n justify-content: center;\n margin: 5px 0;\n align-items: baseline;\n gap: ",";\n background-color: ",";\n\n .react-datepicker-time__input {\n margin: 0;\n\n input {\n width: 80px;\n border: 1px solid ",";\n border-radius: ",";\n text-align: center;\n margin-top: ",";\n margin-bottom: ",";\n }\n }\n }\n\n .react-datepicker-time__header {\n font-size: ",";\n color: ",";\n font-weight: ",";\n padding-bottom: ",";\n }\n\n /* TODO fix stylelint error - https://toccoag.atlassian.net/browse/TOCDEV-9208 */\n /* stylelint-disable-next-line no-duplicate-selectors */\n .react-datepicker__time-container--with-today-button,\n .react-datepicker__time-container .react-datepicker__time {\n border-radius: 0;\n }\n\n .react-datepicker__header__dropdown.react-datepicker__header__dropdown--scroll {\n width: 250px;\n margin: 8px auto;\n display: grid;\n grid-template-columns: 140px 70px;\n }\n\n .react-datepicker__month-read-view,\n .react-datepicker__year-read-view {\n color: ",";\n visibility: visible !important;\n }\n\n .react-datepicker__year-option,\n .react-datepicker__month-option,\n .react-datepicker__month-year-option {\n font-size: ",";\n }\n\n .react-datepicker__year-option:first-of-type,\n .react-datepicker__month-option:first-of-type,\n .react-datepicker__month-year-option:first-of-type,\n .react-datepicker__year-option:last-of-type,\n .react-datepicker__month-option:last-of-type,\n .react-datepicker__month-year-option:last-of-type {\n border-radius: 0;\n }\n\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow {\n top: 8px;\n right: 0;\n width: 5px;\n height: 5px;\n\n /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n right: -8px;\n }\n }\n\n .react-datepicker__year-dropdown-container--select,\n .react-datepicker__month-dropdown-container--select,\n .react-datepicker__month-year-dropdown-container--select,\n .react-datepicker__year-dropdown-container--scroll,\n .react-datepicker__month-dropdown-container--scroll,\n .react-datepicker__month-year-dropdown-container--scroll {\n margin: 0 2px;\n }\n\n .react-datepicker__year-read-view--down-arrow {\n right: -4px;\n\n /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n right: 3px;\n }\n }\n\n .react-datepicker__day-names {\n margin-bottom: 0;\n }\n\n .react-datepicker__day,\n .react-datepicker__month-text,\n .react-datepicker__quarter-text,\n .react-datepicker__year-text {\n color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n border-radius: 50%;\n color: #fff;\n }\n }\n\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box {\n height: 100%;\n border-radius: ",";\n background-color: ",";\n\n ul.react-datepicker__time-list {\n height: 100% !important;\n\n & li.react-datepicker__time-list-item {\n height: auto;\n }\n\n & li.react-datepicker__time-list-item:hover {\n background-color: ",";\n }\n\n & li.react-datepicker__time-list-item--selected {\n background-color: ",";\n }\n }\n }\n\n .react-datepicker__year-dropdown {\n left: 40%;\n top: 45px;\n }\n\n .react-datepicker__navigation--years-upcoming:before {\n border-width: 1.5px 1.5px 0 0;\n border-color: ",";\n border-style: solid;\n content: '';\n display: block;\n position: absolute;\n top: 8px;\n left: 12px;\n height: 5px;\n width: 5px;\n transform: rotate(-45deg);\n }\n\n .react-datepicker__navigation--years-previous:before {\n border-width: 1.5px 1.5px 0 0;\n border-color: ",";\n border-style: solid;\n content: '';\n display: block;\n position: absolute;\n top: 6px;\n left: 12px;\n height: 5px;\n width: 5px;\n transform: rotate(135deg);\n }\n\n .react-datepicker__year-dropdown,\n .react-datepicker__month-dropdown,\n .react-datepicker__month-year-dropdown {\n background-color: ",";\n border-radius: 0;\n border-color: ",";\n box-shadow: 0 0 5px rgb(0 0 0 / 30%);\n }\n\n .react-datepicker__year-option:hover,\n .react-datepicker__month-option:hover,\n .react-datepicker__month-year-option:hover {\n background-color: ",";\n }\n\n .react-datepicker__month-option--selected {\n left: 10px;\n }\n\n .react-datepicker__day--outside-month {\n color: ",";\n }\n\n .react-datepicker__time-container--with-today-button {\n border-color: ",";\n border-radius: ",";\n right: -88px;\n top: -0.5px;\n }\n\n .react-datepicker__header--time {\n display: none;\n }\n }\n }\n"])),qe.i,ba,Fe.t7.radii("form"),Oa,ya,va,(0,Fe.Ed)(),(0,Fe.Ed)(),ya,Oa,Oa,Fe.hs.space(-.6),"\n .react-datepicker__current-month.react-datepicker__current-month--hasYearDropdown.react-datepicker__current-month--hasMonthDropdown {\n // Avoid showing the month and year a second time when it has month and year dropdowns.\n display: none;\n }\n",va,Fe.hs.font(1),Fe.t7.fontWeight("bold"),(0,Fe.Ed)({fontWeight:Fe.t7.fontWeight("bold")}),va,Fe.hs.font(-2),Fe.hs.space(-1.8),wa,wa,wa,ya,ya,ya,wa,(0,Fe.Ed)(),va,Fe.hs.space(-.5),Fe.t7.color("backgroundItemHover"),Oa,Fe.hs.space(-.5),va,Fe.t7.color("border"),Fe.t7.radii("form"),Fe.hs.space(-1),Fe.hs.space(-1),Fe.hs.font(1),va,Fe.t7.fontWeight("bold"),Fe.hs.space(-1),va,Fe.hs.font(0),ba,ya,ya,Fe.t7.radii("form"),va,ya,wa,ba,ba,va,ya,Fe.t7.color("backgroundItemHover"),Fe.t7.color("textDisabled"),Fe.t7.color("border"),Fe.t7.radii("form")),ka=(0,Me.DU)(ha||(ha=Ce()(["\n /****** Global text colors *****/\n \n /* usages: display expressions, freemarker, html content, icon styling, template snippets, ... */\n .text-success {\n color: ",";\n }\n\n .text-info {\n color: ",";\n }\n\n .text-warning {\n color: ",";\n }\n\n .text-danger {\n color: ",";\n }\n\n .text-muted {\n color: ",";\n }\n\n /***** Global text colors *****/\n\n /***** Template Snippets ******/\n\n /* light_cellrenderer */\n .light_cellrenderer {\n font-size: 1.6rem;\n display: inline-block;\n min-width: 1.7rem;\n }\n\n /***** Template Snippets *****/\n"])),Fe.t7.color("signal.success"),Fe.t7.color("signal.info"),Fe.t7.color("signal.warning"),Fe.t7.color("signal.danger"),Fe.t7.color("textDisabled")),Sa=(0,Me.DU)(ma||(ma=Ce()(["\n /* Chrome, Edge, and Safari */\n ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n }\n\n /* Firefox */\n * {\n scrollbar-color: "," transparent; /* Firefox workaround */\n scrollbar-width: thin;\n }\n"])),Fe.t7.color("backgroundScrollbar"),Fe.t7.color("backgroundScrollbarHover"),Fe.t7.color("backgroundScrollbar"));const Ea=function(){return ga||(ga=(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsx)(ka,{}),(0,Ge.jsx)(xa,{}),(0,Ge.jsx)(Sa,{})]}))};var Pa,ja,_a,Da,Ca,Ta=Me.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Pa||(Pa=Ce()(["\n color: ",";\n font-size: ",";\n margin-left: -",";\n"])),Fe.t7.color("text"),Fe.hs.font(1),Fe.hs.space(-2)),Ma=(0,Me.AH)(ja||(ja=Ce()(["\n display: inline-block;\n color: ","; /* nice2 reset */\n line-height: ","; /* nice2 reset */\n text-align: left; /* nice2 reset */\n vertical-align: unset; /* nice2 reset */\n font-size: 100% !important; /* nice2 reset */\n font-weight: "," !important; /* nice2 reset */\n padding: "," "," !important; /* nice2 reset */\n white-space: normal !important; /* nice2 reset */\n border-radius: ",";\n"])),Fe.t7.color("text"),Fe.t7.lineHeight("regular"),Fe.t7.fontWeight("regular"),Fe.hs.space(-3),Fe.hs.space(-1.5),Fe.t7.radii("statusLabel")),Aa=(0,Me.Ay)(cr.oY).withConfig({displayName:"StyledHtmlFormatter"})(_a||(_a=Ce()(["\n &&& {\n ","\n margin: 0 0 ",";\n\n svg {\n margin-right: ",";\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n\n .label {\n ","\n }\n\n .label-danger {\n background-color: "," !important; /* nice2 reset */\n color: ",";\n }\n\n .label-info {\n background-color: "," !important; /* nice2 reset */\n color: ",";\n }\n\n .label-warning {\n background-color: "," !important; /* nice2 reset */\n color: ",";\n }\n\n .label-success {\n background-color: "," !important; /* nice2 reset */\n color: ",";\n }\n\n .label-neutral {\n ","\n background-color: "," !important; /* nice2 reset */\n color: ",";\n }\n\n .label-status {\n border-radius: ",";\n padding: "," ",";\n\n &.filled {\n color: ",";\n background-color: ",";\n }\n }\n\n .label-attention {\n background-color: "," !important; /* nice2 reset */\n padding: "," "," !important;\n\n a {\n text-decoration: underline;\n color: #000; /* same color in all themes */\n }\n }\n }\n"])),(function(e){return(0,cr.gv)(e,"html")}),Fe.hs.space(-1),Fe.hs.space(-1.5),Ma,Fe.t7.color("signal.dangerLight"),Fe.t7.color("textLabel"),Fe.t7.color("signal.infoLight"),Fe.t7.color("textLabel"),Fe.t7.color("signal.warningLight"),Fe.t7.color("textLabel"),Fe.t7.color("signal.successLight"),Fe.t7.color("textLabel"),Ma,Fe.t7.color("signal.neutral"),Fe.t7.color("textLabel"),Fe.t7.radii("statusLabel"),Fe.hs.space(-2.1),Fe.hs.space(0),Fe.t7.color("paper"),Fe.t7.color("signal.info"),Fe.t7.color("signal.warningLight"),Fe.hs.space(-1.5),Fe.hs.space(.5)),Ia=Me.Ay.div.withConfig({displayName:"StyledFloatingUi"})(Da||(Da=Ce()(["\n && {\n pointer-events: none; /* prevent flickering of tooltip */\n background-color: ",";\n max-width: 400px;\n z-index: 100000010;\n padding: ",";\n\n * {\n color: ",";\n }\n\n svg path {\n /* style FloatingArrow SVG */\n fill: ",";\n }\n }\n"])),Fe.t7.color("backgroundPopover"),(function(e){return e.rimless?"0":Fe.hs.space(0)}),Fe.t7.color("textPopover"),Fe.t7.color("backgroundPopover")),Na=Me.Ay.div.withConfig({displayName:"StyledBox"})(Ca||(Ca=Ce()(["\n && {\n ",";\n\n &,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n "," {\n color: ",";\n overflow-wrap: break-word;\n }\n }\n"])),(function(e){return e.isPlainHtml&&(0,cr.gv)(e,"html")}),Aa,Fe.t7.color("textPopover"));function Ra(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 La(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ra(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ra(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Fa=function(e){var t=e.children,n=e.content,r=e.isPlainHtml,o=void 0===r||r,a=e.rimless,i=void 0!==a&&a,s=(0,f.useState)(!1),c=Je()(s,2),u=c[0],l=c[1],d=(0,f.useRef)(null),p=Ho({open:u,onOpenChange:l,middleware:[(0,Qr.UU)(),(0,Qr.BN)({padding:20}),(0,Qr.UE)({element:d}),(0,Qr.cY)(5)]}),h=p.refs,m=p.floatingStyles,g=p.context,y=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:a,elements:i}=e,{enabled:s=!0,delay:c=0,handleClose:u=null,mouseOnly:l=!1,restMs:d=0,move:p=!0}=t,h=bo(),m=vo(),g=Oo(u),y=Oo(c),v=Oo(n),b=f.useRef(),w=f.useRef(-1),O=f.useRef(),x=f.useRef(-1),k=f.useRef(!0),S=f.useRef(!1),E=f.useRef((()=>{})),P=f.useRef(!1),j=f.useCallback((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);f.useEffect((()=>{if(s)return a.on("openchange",e),()=>{a.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(w.current),clearTimeout(x.current),k.current=!0,P.current=!1)}}),[s,a]),f.useEffect((()=>{if(!s)return;if(!g.current)return;if(!n)return;function e(e){j()&&r(!1,e,"hover")}const t=(0,qr.YE)(i.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[i.floating,n,r,s,g,j]);const _=f.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=ko(y.current,"close",b.current);o&&!O.current?(clearTimeout(w.current),w.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(w.current),r(!1,e,n))}),[y,r]),D=eo((()=>{E.current(),O.current=void 0})),C=eo((()=>{if(S.current){const e=(0,qr.YE)(i.floating).body;e.style.pointerEvents="",e.removeAttribute(xo),S.current=!1}}));f.useEffect((()=>{if(s&&(0,Gr.vq)(i.domReference)){var e;const t=i.domReference;return n&&t.addEventListener("mouseleave",u),null==(e=i.floating)||e.addEventListener("mouseleave",u),p&&t.addEventListener("mousemove",a,{once:!0}),t.addEventListener("mouseenter",a),t.addEventListener("mouseleave",c),()=>{var e;n&&t.removeEventListener("mouseleave",u),null==(e=i.floating)||e.removeEventListener("mouseleave",u),p&&t.removeEventListener("mousemove",a),t.removeEventListener("mouseenter",a),t.removeEventListener("mouseleave",c)}}function t(){return!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)}function a(e){if(clearTimeout(w.current),k.current=!1,l&&!(0,qr.Go)(b.current)||d>0&&!ko(y.current,"open"))return;const t=ko(y.current,"open",b.current);t?w.current=window.setTimeout((()=>{v.current||r(!0,e,"hover")}),t):r(!0,e,"hover")}function c(e){if(t())return;E.current();const r=(0,qr.YE)(i.floating);if(clearTimeout(x.current),P.current=!1,g.current&&o.current.floatingContext){n||clearTimeout(w.current),O.current=g.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){C(),D(),_(e,!0,"safe-polygon")}});const t=O.current;return r.addEventListener("mousemove",t),void(E.current=()=>{r.removeEventListener("mousemove",t)})}("touch"!==b.current||!(0,qr.gR)(i.floating,e.relatedTarget))&&_(e)}function u(e){t()||o.current.floatingContext&&(null==g.current||g.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){C(),D(),_(e)}})(e))}}),[i,s,e,l,d,p,_,D,C,r,n,v,h,y,g,o]),ao((()=>{var e;if(s&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&j()){S.current=!0;const e=i.floating;if((0,Gr.vq)(i.domReference)&&e){var t;const n=(0,qr.YE)(i.floating).body;n.setAttribute(xo,"");const r=i.domReference,o=null==h||null==(t=h.nodesRef.current.find((e=>e.id===m)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[s,n,m,i,h,g,j]),ao((()=>{n||(b.current=void 0,P.current=!1,D(),C())}),[n,D,C]),f.useEffect((()=>()=>{D(),clearTimeout(w.current),clearTimeout(x.current),C()}),[s,i.domReference,D,C]);const T=f.useMemo((()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){k.current||v.current||r(!0,t,"hover")}l&&!(0,qr.Go)(b.current)||n||0===d||P.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(x.current),"touch"===b.current?o():(P.current=!0,x.current=window.setTimeout(o,d)))}}}),[l,r,n,v,d]),M=f.useMemo((()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){_(e.nativeEvent,!1)}})),[_]);return f.useMemo((()=>s?{reference:T,floating:M}:{}),[s,T,M])}(g,{delay:{open:500,close:0}}),v=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=f.useCallback((t=>Uo(t,e,"reference")),t),a=f.useCallback((t=>Uo(t,e,"floating")),n),i=f.useCallback((t=>Uo(t,e,"item")),r);return f.useMemo((()=>({getReferenceProps:o,getFloatingProps:a,getItemProps:i})),[o,a,i])}([y]),b=v.getReferenceProps,w=v.getFloatingProps;return(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsx)("span",La(La({ref:h.setReference},b()),{},{children:t})),u&&n&&(0,Ge.jsx)(Ro,{children:(0,Ge.jsxs)(Ia,La(La({ref:h.setFloating,style:m,rimless:i},w()),{},{className:Yo,children:[(0,Ge.jsx)(ho,{ref:d,context:g}),(0,Ge.jsx)(Na,{isPlainHtml:o,children:n})]}))})]})},Ha=Fa;var Wa=c(62243),Ba=c.n(Wa),Ua=c(36193),Ya=c.n(Ua),za=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},Va=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},qa={outline:"none"},Ga=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=Va(this,e.call.apply(e,[this].concat(a))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=h().createRef(),r._onFocusIn=function(){r._isMounted&&r._lastBlurEvent&&r.isInsideNode(r.ref.current,r._lastBlurEvent.target)&&!r.isInsideNode(r.ref.current,document.activeElement)&&r.setState({focused:!1},(function(){document.removeEventListener("focusin",r._onFocusIn),r.props.onBlur(r._lastBlurEvent)}))},r.onFocus=function(e){var t=r.props.onFocus;r.state.focused||r.setState({focused:!0},(function(){document.addEventListener("focusin",r._onFocusIn),t(e)}))},r.onBlur=function(e){e.persist(),r._lastBlurEvent=e},r.isInsideNode=function(e,t){return null!=e&&e.contains(t)},Va(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){null!=document&&document.querySelector("body").setAttribute("tabindex","-1"),this._isMounted=!0},t.prototype.componentWillUnmount=function(){this._isMounted=!1,document.removeEventListener("focusin",this._onFocusIn)},t.prototype.focus=function(){var e=this.ref.current;null!=e&&"function"==typeof e.focus&&e.focus()},t.prototype.render=function(){var e=this.props.children,t=this.state.focused,n={onFocus:this.onFocus,onBlur:this.onBlur};return"function"==typeof e?h().cloneElement(e({focused:t,getRef:this.ref}),n):h().createElement("div",za({ref:this.ref,style:qa},n),e)},t}(h().Component);Ga.propTypes={children:Ya().oneOfType([Ya().node,Ya().func]).isRequired,onBlur:Ya().func,onFocus:Ya().func},Ga.defaultProps={onBlur:function(){},onFocus:function(){}};const Ka=Ga;var $a,Xa,Qa,Za,Ja,ei,ti,ni,ri,oi=c(88357),ai=(0,Me.AH)($a||($a=Ce()(["\n align-items: center;\n cursor: ",";\n display: flex;\n width: 100%;\n"])),(function(e){return e.immutable&&"text"})),ii=Me.Ay.label.withConfig({displayName:"StyledEditableWrapper"})(Xa||(Xa=Ce()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),ai),si=(0,Me.AH)(Qa||(Qa=Ce()(["\n background-color: transparent;\n border: 0;\n cursor: ",";\n flex-grow: 1;\n min-height: ",";\n min-width: 0;\n outline: 0;\n padding: 0;\n ","\n\n &::-ms-clear {\n display: none;\n }\n\n &::-webkit-clear-button {\n display: none;\n }\n\n &::-webkit-inner-spin-button {\n display: none;\n }\n\n &[type='number'] {\n appearance: textfield;\n }\n\n &[type='search'] {\n appearance: none;\n }\n\n &:disabled {\n -webkit-text-fill-color: ","; /* Safari fix */\n opacity: 1; /* iOS fix */\n }\n\n /* remove indicators */\n &[type='date'],\n &[type='datetime-local'],\n &[type='month'],\n &[type='time'],\n &[type='week'] {\n appearance: none;\n display: flex;\n\n /* reset margin on smaller screens */\n ::-webkit-date-and-time-value {\n ","\n }\n }\n\n /* allow pointer event only on touch devices */\n @media (pointer: coarse) {\n pointer-events: ",";\n }\n"])),(function(e){return e.immutable&&"text"}),(function(e){return e.immutable?"0":"2.6rem"}),(function(){return(0,Fe.Ed)({color:Fe.t7.color("text")})}),Fe.t7.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),ci=(0,Me.AH)(Za||(Za=Ce()(["\n display: flex;\n align-items: center;\n"]))),ui=Me.Ay.div.withConfig({displayName:"StyledEditableControl"})(Ja||(Ja=Ce()(["\n &&& {\n ","\n }\n"])),ci),li=Me.Ay.span.withConfig({displayName:"StyledEditableValue"})(ei||(ei=Ce()(["\n width: 100%;\n\n && {\n [type='url'] + .input-group-addon > a {\n color: inherit; /* reset bootstrap default */\n }\n\n [type='tel'] + .input-group-addon > a {\n color: inherit; /* reset bootstrap default */\n }\n\n .date-edit {\n .input-group-addon {\n cursor: pointer;\n }\n\n input {\n z-index: 0;\n }\n\n &.disabled {\n input {\n cursor: text;\n }\n }\n\n .right-addon {\n position: relative;\n }\n\n .right-addon input {\n padding-right: 30px;\n }\n\n .reset {\n position: absolute;\n padding-right: 10px;\n padding-top: 5px;\n right: 0;\n color: #999;\n font-size: 18px;\n font-style: normal;\n cursor: pointer;\n }\n\n .reset:hover {\n color: ",";\n }\n }\n }\n"])),Fe.t7.color("signal.danger")),di=function(e){return-1*Math.abs(e)},fi=function(e){var t=[e.street,e.postcode,e.city,e.country].filter(Boolean).map((function(e){var t="object"===$n()(e)&&e.display?e.display:e;return encodeURIComponent(t)})).join("+");return"".concat("https://www.google.com/maps/search/?api=1&query=").concat(t)},pi=c(58156),hi=c.n(pi),mi=Me.Ay.div.withConfig({displayName:"StyledLocationEdit"})(ti||(ti=Ce()(["\n && {\n ","\n position: relative;\n\n div {\n :nth-of-type(1) {\n flex: 0 0 13ch;\n margin-right: ",";\n }\n\n :nth-of-type(2) {\n flex: 1 1 auto;\n }\n }\n\n > span {\n flex: 0 0 auto;\n margin-right: ",";\n color: ",";\n }\n\n "," {\n margin-left: auto;\n }\n\n .react-autosuggest__input {\n ","\n width: 100%;\n }\n\n .react-autosuggest__suggestions-container--open {\n width: calc(100% + 17.5px);\n background-color: ",";\n box-shadow: 0 0 6px ",";\n border: 1px solid ",";\n bottom: -9px;\n left: -10px;\n max-height: 300px;\n overflow-y: auto;\n position: absolute;\n transform: translateY(100%);\n z-index: 2; /* higher than StyledIndicatorsContainerWrapper */\n }\n\n .react-autosuggest__suggestions-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .react-autosuggest__suggestion {\n cursor: pointer;\n padding: 8px 12px;\n }\n\n .react-autosuggest__suggestion--highlighted {\n background-color: ",";\n }\n }\n"])),ai,Fe.hs.space(-2),Fe.hs.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?hi()(n,"colors.textDisabled"):hi()(n,"colors.text")}),ui,si,Fe.t7.color("paper"),Fe.t7.color("signal.info"),Fe.t7.color("secondaryLight"),Fe.t7.color("backgroundItemHover")),gi=(0,Me.Ay)(mi).withConfig({displayName:"StyledAddressEdit"})(ni||(ni=Ce()(["\n && {\n div {\n :nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n }\n"])));function yi(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 vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yi(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const bi=function(e){var t,n=e.onChange,r=e.options,o=e.value,a=e.id,i=e.immutable,s=e.name,c=function(e){return function(t){return t[e]}},u=function(e){var t=e.street,n=e.houseNr;return n?"".concat(t," ").concat(n):t},l=function(e){var t=e.street,n=e.state,r=e.country,o=e.postcode,a=e.city;if(!t)return null;var i=u(e),s=n?"- ".concat(n):"",c=r?"/ ".concat(r.display):"";return(0,Ge.jsxs)(cr.Ay.Span,{children:[i,", ",o," ",a," ",s," ",c]})},d=function(e,t){var o=t.suggestion;!0===o.validationRequired?r.validateLocation(o,n):n(o)},f=function(e){var t=e.value,n=r.locationValues.country,o={street:t};r.fetchSuggestions(o,n)},p={id:a,value:o&&o.street?u(o):"",onChange:(t="street",function(e,r){var a=r.newValue;n(vi(vi({},o),{},Ye()({},t,a)))}),disabled:i};return(0,Ge.jsx)(Ka,{children:function(e){var t,n,o,a,u=e.getRef;return(0,Ge.jsxs)(gi,{immutable:i,name:s,ref:u,children:[(0,Ge.jsx)(Ba(),{suggestions:r.suggestions||[],onSuggestionsFetchRequested:f,getSuggestionValue:c("street"),renderSuggestion:l,onSuggestionsClearRequested:function(){},inputProps:p,onSuggestionSelected:d,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(0,Ge.jsxs)(ui,{children:[r.isLoading&&(ri||(ri=(0,Ge.jsx)(Qe,{size:"1.8rem"}))),(t=r.locationValues,n=t.street,o=t.city,a=t.postcode,Boolean(n&&(o||a))&&(0,Ge.jsx)(oi.Ay,{href:fi(r.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:r.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};var wi=c(69843),Oi=c.n(wi),xi=c(7350),ki=c.n(xi);function Si(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ei(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 Pi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ei(Object(n),!0).forEach((function(t){Si(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ei(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ji(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _i(e,t){if(e){if("string"==typeof e)return ji(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ji(e,t):void 0}}function Di(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||_i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ci(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ti=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Mi(){return Mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mi.apply(this,arguments)}function Ai(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 Ii(e,t){return Ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ii(e,t)}function Ni(e){return Ni=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ni(e)}function Ri(e){return Ri="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},Ri(e)}function Li(e,t){if(t&&("object"===Ri(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Fi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ni(e);if(t){var o=Ni(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Li(this,n)}}function Hi(e){return function(e){if(Array.isArray(e))return ji(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Wi=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Bi="-ms-",Ui="-moz-",Yi="-webkit-",zi="comm",Vi="rule",qi="decl",Gi="@keyframes",Ki=Math.abs,$i=String.fromCharCode,Xi=Object.assign;function Qi(e){return e.trim()}function Zi(e,t,n){return e.replace(t,n)}function Ji(e,t){return e.indexOf(t)}function es(e,t){return 0|e.charCodeAt(t)}function ts(e,t,n){return e.slice(t,n)}function ns(e){return e.length}function rs(e){return e.length}function os(e,t){return t.push(e),e}var as=1,is=1,ss=0,cs=0,us=0,ls="";function ds(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:as,column:is,length:i,return:""}}function fs(e,t){return Xi(ds("",null,null,"",null,null,0),e,{length:-e.length},t)}function ps(){return us=cs>0?es(ls,--cs):0,is--,10===us&&(is=1,as--),us}function hs(){return us=cs<ss?es(ls,cs++):0,is++,10===us&&(is=1,as++),us}function ms(){return es(ls,cs)}function gs(){return cs}function ys(e,t){return ts(ls,e,t)}function vs(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function bs(e){return as=is=1,ss=ns(ls=e),cs=0,[]}function ws(e){return ls="",e}function Os(e){return Qi(ys(cs-1,Ss(91===e?e+2:40===e?e+1:e)))}function xs(e){for(;(us=ms())&&us<33;)hs();return vs(e)>2||vs(us)>3?"":" "}function ks(e,t){for(;--t&&hs()&&!(us<48||us>102||us>57&&us<65||us>70&&us<97););return ys(e,gs()+(t<6&&32==ms()&&32==hs()))}function Ss(e){for(;hs();)switch(us){case e:return cs;case 34:case 39:34!==e&&39!==e&&Ss(us);break;case 40:41===e&&Ss(e);break;case 92:hs()}return cs}function Es(e,t){for(;hs()&&e+us!==57&&(e+us!==84||47!==ms()););return"/*"+ys(t,cs-1)+"*"+$i(47===e?e:hs())}function Ps(e){for(;!vs(ms());)hs();return ys(e,cs)}function js(e){return ws(_s("",null,null,null,[""],e=bs(e),0,[0],e))}function _s(e,t,n,r,o,a,i,s,c){for(var u=0,l=0,d=i,f=0,p=0,h=0,m=1,g=1,y=1,v=0,b="",w=o,O=a,x=r,k=b;g;)switch(h=v,v=hs()){case 40:if(108!=h&&58==es(k,d-1)){-1!=Ji(k+=Zi(Os(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=Os(v);break;case 9:case 10:case 13:case 32:k+=xs(h);break;case 92:k+=ks(gs()-1,7);continue;case 47:switch(ms()){case 42:case 47:os(Cs(Es(hs(),gs()),t,n),c);break;default:k+="/"}break;case 123*m:s[u++]=ns(k)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+l:p>0&&ns(k)-d&&os(p>32?Ts(k+";",r,n,d-1):Ts(Zi(k," ","")+";",r,n,d-2),c);break;case 59:k+=";";default:if(os(x=Ds(k,t,n,u,l,o,s,b,w=[],O=[],d),a),123===v)if(0===l)_s(k,t,x,x,w,a,d,s,O);else switch(99===f&&110===es(k,3)?100:f){case 100:case 109:case 115:_s(e,x,x,r&&os(Ds(e,x,x,0,0,o,s,b,o,w=[],d),O),o,O,d,s,r?w:O);break;default:_s(k,x,x,x,[""],O,0,s,O)}}u=l=p=0,m=y=1,b=k="",d=i;break;case 58:d=1+ns(k),p=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==ps())continue;switch(k+=$i(v),v*m){case 38:y=l>0?1:(k+="\f",-1);break;case 44:s[u++]=(ns(k)-1)*y,y=1;break;case 64:45===ms()&&(k+=Os(hs())),f=ms(),l=d=ns(b=k+=Ps(gs())),v++;break;case 45:45===h&&2==ns(k)&&(m=0)}}return a}function Ds(e,t,n,r,o,a,i,s,c,u,l){for(var d=o-1,f=0===o?a:[""],p=rs(f),h=0,m=0,g=0;h<r;++h)for(var y=0,v=ts(e,d+1,d=Ki(m=i[h])),b=e;y<p;++y)(b=Qi(m>0?f[y]+" "+v:Zi(v,/&\f/g,f[y])))&&(c[g++]=b);return ds(e,t,n,0===o?Vi:s,c,u,l)}function Cs(e,t,n){return ds(e,t,n,zi,$i(us),ts(e,2,-2),0)}function Ts(e,t,n,r){return ds(e,t,n,qi,ts(e,0,r),ts(e,r+1,-1),r)}function Ms(e,t){for(var n="",r=rs(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function As(e,t,n,r){switch(e.type){case"@import":case qi:return e.return=e.return||e.value;case zi:return"";case Gi:return e.return=e.value+"{"+Ms(e.children,r)+"}";case Vi:e.value=e.props.join(",")}return ns(n=Ms(e.children,r))?e.return=e.value+"{"+n+"}":""}var Is=function(e,t,n){for(var r=0,o=0;r=o,o=ms(),38===r&&12===o&&(t[n]=1),!vs(o);)hs();return ys(e,cs)},Ns=function(e,t){return ws(function(e,t){var n=-1,r=44;do{switch(vs(r)){case 0:38===r&&12===ms()&&(t[n]=1),e[n]+=Is(cs-1,t,n);break;case 2:e[n]+=Os(r);break;case 4:if(44===r){e[++n]=58===ms()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=$i(r)}}while(r=hs());return e}(bs(e),t))},Rs=new WeakMap,Ls=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Rs.get(n))&&!r){Rs.set(e,!0);for(var o=[],a=Ns(t,o),i=n.props,s=0,c=0;s<a.length;s++)for(var u=0;u<i.length;u++,c++)e.props[c]=o[s]?a[s].replace(/&\f/g,i[u]):i[u]+" "+a[s]}}},Fs=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Hs(e,t){switch(function(e,t){return 45^es(e,0)?(((t<<2^es(e,0))<<2^es(e,1))<<2^es(e,2))<<2^es(e,3):0}(e,t)){case 5103:return Yi+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Yi+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Yi+e+Ui+e+Bi+e+e;case 6828:case 4268:return Yi+e+Bi+e+e;case 6165:return Yi+e+Bi+"flex-"+e+e;case 5187:return Yi+e+Zi(e,/(\w+).+(:[^]+)/,Yi+"box-$1$2"+Bi+"flex-$1$2")+e;case 5443:return Yi+e+Bi+"flex-item-"+Zi(e,/flex-|-self/,"")+e;case 4675:return Yi+e+Bi+"flex-line-pack"+Zi(e,/align-content|flex-|-self/,"")+e;case 5548:return Yi+e+Bi+Zi(e,"shrink","negative")+e;case 5292:return Yi+e+Bi+Zi(e,"basis","preferred-size")+e;case 6060:return Yi+"box-"+Zi(e,"-grow","")+Yi+e+Bi+Zi(e,"grow","positive")+e;case 4554:return Yi+Zi(e,/([^-])(transform)/g,"$1"+Yi+"$2")+e;case 6187:return Zi(Zi(Zi(e,/(zoom-|grab)/,Yi+"$1"),/(image-set)/,Yi+"$1"),e,"")+e;case 5495:case 3959:return Zi(e,/(image-set\([^]*)/,Yi+"$1$`$1");case 4968:return Zi(Zi(e,/(.+:)(flex-)?(.*)/,Yi+"box-pack:$3"+Bi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Yi+e+e;case 4095:case 3583:case 4068:case 2532:return Zi(e,/(.+)-inline(.+)/,Yi+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ns(e)-1-t>6)switch(es(e,t+1)){case 109:if(45!==es(e,t+4))break;case 102:return Zi(e,/(.+:)(.+)-([^]+)/,"$1"+Yi+"$2-$3$1"+Ui+(108==es(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ji(e,"stretch")?Hs(Zi(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==es(e,t+1))break;case 6444:switch(es(e,ns(e)-3-(~Ji(e,"!important")&&10))){case 107:return Zi(e,":",":"+Yi)+e;case 101:return Zi(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Yi+(45===es(e,14)?"inline-":"")+"box$3$1"+Yi+"$2$3$1"+Bi+"$2box$3")+e}break;case 5936:switch(es(e,t+11)){case 114:return Yi+e+Bi+Zi(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Yi+e+Bi+Zi(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Yi+e+Bi+Zi(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Yi+e+Bi+e+e}return e}var Ws=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case qi:e.return=Hs(e.value,e.length);break;case Gi:return Ms([fs(e,{value:Zi(e.value,"@","@"+Yi)})],r);case Vi:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ms([fs(e,{props:[Zi(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ms([fs(e,{props:[Zi(t,/:(plac\w+)/,":"+Yi+"input-$1")]}),fs(e,{props:[Zi(t,/:(plac\w+)/,":-moz-$1")]}),fs(e,{props:[Zi(t,/:(plac\w+)/,Bi+"input-$1")]})],r)}return""}))}}];const Bs=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||Ws;var o,a,i={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)}));var c,u,l,d,f=[As,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[Ls,Fs].concat(r,f),l=rs(u),function(e,t,n,r){for(var o="",a=0;a<l;a++)o+=u[a](e,t,n,r)||"";return o});a=function(e,t,n,r){c=n,function(e){Ms(js(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Wi({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return h.sheet.hydrate(s),h};var Us=c(4146),Ys=c.n(Us);var zs=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};const Vs=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};const qs={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};const Gs=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}};var Ks=/[A-Z]|^ms/g,$s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xs=function(e){return 45===e.charCodeAt(1)},Qs=function(e){return null!=e&&"boolean"!=typeof e},Zs=Gs((function(e){return Xs(e)?e:e.replace(Ks,"-$&").toLowerCase()})),Js=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace($s,(function(e,t,n){return tc={name:t,styles:n,next:tc},t}))}return 1===qs[e]||Xs(e)||"number"!=typeof t||0===t?t:t+"px"};function ec(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return tc={name:n.name,styles:n.styles,next:tc},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)tc={name:r.name,styles:r.styles,next:tc},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ec(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":Qs(i)&&(r+=Zs(a)+":"+Js(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=ec(e,t,i);switch(a){case"animation":case"animationName":r+=Zs(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var c=0;c<i.length;c++)Qs(i[c])&&(r+=Zs(a)+":"+Js(a,i[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=tc,a=n(e);return tc=o,ec(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var tc,nc=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var rc=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";tc=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=ec(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=ec(n,t,e[i]),r&&(o+=a[i]);nc.lastIndex=0;for(var s,c="";null!==(s=nc.exec(o));)c+="-"+s[1];return{name:Vs(o)+c,styles:o,next:tc}},oc=!!f.useInsertionEffect&&f.useInsertionEffect,ac=oc||function(e){return e()},ic={}.hasOwnProperty,sc=(0,f.createContext)("undefined"!=typeof HTMLElement?Bs({key:"css"}):null);sc.Provider;var cc=function(e){return(0,f.forwardRef)((function(t,n){var r=(0,f.useContext)(sc);return e(t,r,n)}))},uc=(0,f.createContext)({});var lc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",dc=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;zs(t,n,r);ac((function(){return function(e,t,n){zs(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)}));return null},fc=cc((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[lc],a=[r],i="";"string"==typeof e.className?i=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var s=rc(a,void 0,(0,f.useContext)(uc));i+=t.key+"-"+s.name;var c={};for(var u in e)ic.call(e,u)&&"css"!==u&&u!==lc&&(c[u]=e[u]);return c.ref=n,c.className=i,(0,f.createElement)(f.Fragment,null,(0,f.createElement)(dc,{cache:t,serialized:s,isStringTag:"string"==typeof o}),(0,f.createElement)(o,c))}));var pc=function(e,t){var n=arguments;if(null==t||!ic.call(t,"css"))return f.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=fc,o[1]=function(e,t){var n={};for(var r in t)ic.call(t,r)&&(n[r]=t[r]);return n[lc]=e,n}(e,t);for(var a=2;a<r;a++)o[a]=n[a];return f.createElement.apply(null,o)};function hc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return rc(t)}Math.min,Math.max;const mc=["top","right","bottom","left"];mc.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function gc(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function yc(e){if(null==e)return window;if(!gc(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function vc(e){return yc(e).getComputedStyle(e)}function bc(e){return gc(e)?"":e?(e.nodeName||"").toLowerCase():""}function wc(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function Oc(e){return e instanceof yc(e).HTMLElement}function xc(e){return e instanceof yc(e).Element}function kc(e){return"undefined"!=typeof ShadowRoot&&(e instanceof yc(e).ShadowRoot||e instanceof ShadowRoot)}function Sc(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=vc(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ec(){return!/^((?!chrome|android).)*safari/i.test(wc())}function Pc(e){return["html","body","#document"].includes(bc(e))}Math.min,Math.max;const jc=Math.round;function _c(e,t,n){var r,o,a,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let c=1,u=1;t&&Oc(e)&&(c=e.offsetWidth>0&&jc(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&jc(s.height)/e.offsetHeight||1);const l=xc(e)?yc(e):window,d=!Ec()&&n,f=(s.left+(d&&null!=(r=null==(o=l.visualViewport)?void 0:o.offsetLeft)?r:0))/c,p=(s.top+(d&&null!=(a=null==(i=l.visualViewport)?void 0:i.offsetTop)?a:0))/u,h=s.width/c,m=s.height/u;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function Dc(e){return(t=e,(t instanceof yc(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function Cc(e){if("html"===bc(e))return e;const t=e.assignedSlot||e.parentNode||(kc(e)?e.host:null)||Dc(e);return kc(t)?t.host:t}function Tc(e){const t=Cc(e);return Pc(t)?e.ownerDocument.body:Oc(t)&&Sc(t)?t:Tc(t)}function Mc(e,t){var n;void 0===t&&(t=[]);const r=Tc(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=yc(r),i=o?[a].concat(a.visualViewport||[],Sc(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(Mc(i))}const Ac=f.useLayoutEffect;var Ic=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Nc=function(){};function Rc(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Lc(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=[].concat(r);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&a.push("".concat(Rc(e,i)));return a.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Fc=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===Ri(e)&&null!==e?[e]:[];var t},Hc=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Pi({},Ci(e,Ic))},Wc=function(e,t,n){var r=e.cx,o=e.getStyles,a=e.getClassNames,i=e.className;return{css:o(t,e),className:r(null!=n?n:{},a(t,e),i)}};function Bc(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Uc(e){return Bc(e)?window.pageYOffset:e.scrollTop}function Yc(e,t){Bc(e)?window.scrollTo(0,t):e.scrollTop=t}function zc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Nc,o=Uc(e),a=t-o,i=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(i+=10,o,a,n);Yc(e,s),i<n?window.requestAnimationFrame(t):r(e)}()}function Vc(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Yc(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Yc(e,Math.max(t.offsetTop-o,0))}function qc(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Gc=!1,Kc={get passive(){return Gc=!0}},$c="undefined"!=typeof window?window:{};$c.addEventListener&&$c.removeEventListener&&($c.addEventListener("p",Nc,Kc),$c.removeEventListener("p",Nc,!1));var Xc=Gc;function Qc(e){return null!=e}function Zc(e,t,n){return e?t:n}var Jc=["children","innerProps"],eu=["children","innerProps"];function tu(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,s=e.controlHeight,c=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var l,d=c.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,h=f.height,m=f.top,g=n.offsetParent.getBoundingClientRect().top,y=i?window.innerHeight:Bc(l=c)?window.innerHeight:l.clientHeight,v=Uc(c),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),O=g-w,x=y-m,k=O+v,S=d-v-m,E=p-y+v+b,P=v+m-w,j=160;switch(o){case"auto":case"bottom":if(x>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!i)return a&&zc(c,E,j),{placement:"bottom",maxHeight:t};if(!i&&S>=r||i&&x>=r)return a&&zc(c,E,j),{placement:"bottom",maxHeight:i?x-b:S-b};if("auto"===o||i){var _=t,D=i?O:k;return D>=r&&(_=Math.min(D-b-s,t)),{placement:"top",maxHeight:_}}if("bottom"===o)return a&&Yc(c,E),{placement:"bottom",maxHeight:t};break;case"top":if(O>=h)return{placement:"top",maxHeight:t};if(k>=h&&!i)return a&&zc(c,P,j),{placement:"top",maxHeight:t};if(!i&&k>=r||i&&O>=r){var C=t;return(!i&&k>=r||i&&O>=r)&&(C=i?O-w:k-w),a&&zc(c,P,j),{placement:"top",maxHeight:C}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var nu,ru=function(e){return"auto"===e?"bottom":e},ou=(0,f.createContext)(null),au=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,a=e.menuPosition,i=e.menuShouldScrollIntoView,s=e.theme,c=((0,f.useContext)(ou)||{}).setPortalPlacement,u=(0,f.useRef)(null),l=Di((0,f.useState)(r),2),d=l[0],p=l[1],h=Di((0,f.useState)(null),2),m=h[0],g=h[1],y=s.spacing.controlHeight;return Ac((function(){var e=u.current;if(e){var t="fixed"===a,s=tu({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:i&&!t,isFixedPosition:t,controlHeight:y});p(s.maxHeight),g(s.placement),null==c||c(s.placement)}}),[r,o,a,i,n,c,y]),t({ref:u,placerProps:Pi(Pi({},e),{},{placement:m||ru(o),maxHeight:d})})},iu=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return pc("div",Mi({},Wc(e,"menu",{menu:!0}),{ref:n},r),t)},su=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Pi({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},cu=su,uu=su,lu=["size"],du=["innerProps","isRtl","size"];var fu,pu,hu={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},mu=function(e){var t=e.size,n=Ci(e,lu);return pc("svg",Mi({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:hu},n))},gu=function(e){return pc(mu,Mi({size:20},e),pc("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},yu=function(e){return pc(mu,Mi({size:20},e),pc("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},vu=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return Pi({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*o,":hover":{color:n?a.neutral80:a.neutral40}})},bu=vu,wu=vu,Ou=function(){var e=hc.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(nu||(fu=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],pu||(pu=fu.slice(0)),nu=Object.freeze(Object.defineProperties(fu,{raw:{value:Object.freeze(pu)}})))),xu=function(e){var t=e.delay,n=e.offset;return pc("span",{css:hc({animation:"".concat(Ou," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ku=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,a=e.innerProps,i=e.menuIsOpen;return pc("div",Mi({ref:o},Wc(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":i}),a,{"aria-disabled":n||void 0}),t)},Su=["data"],Eu=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,a=e.Heading,i=e.headingProps,s=e.innerProps,c=e.label,u=e.theme,l=e.selectProps;return pc("div",Mi({},Wc(e,"group",{group:!0}),s),pc(a,Mi({},i,{selectProps:l,theme:u,getStyles:r,getClassNames:o,cx:n}),c),pc("div",null,t))},Pu=["innerRef","isDisabled","isHidden","inputClassName"],ju={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},_u={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Pi({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ju)},Du=function(e){return Pi({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},ju)},Cu=function(e){var t=e.cx,n=e.value,r=Hc(e),o=r.innerRef,a=r.isDisabled,i=r.isHidden,s=r.inputClassName,c=Ci(r,Pu);return pc("div",Mi({},Wc(e,"input",{"input-container":!0}),{"data-value":n||""}),pc("input",Mi({className:t({input:!0},s),ref:o,style:Du(i),disabled:a},c)))},Tu=function(e){var t=e.children,n=e.innerProps;return pc("div",n,t)};var Mu=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,a=e.isDisabled,i=e.removeProps,s=e.selectProps,c=n.Container,u=n.Label,l=n.Remove;return pc(c,{data:r,innerProps:Pi(Pi({},Wc(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:s},pc(u,{data:r,innerProps:Pi({},Wc(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),pc(l,{data:r,innerProps:Pi(Pi({},Wc(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},i),selectProps:s}))},Au=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.innerRef,i=e.innerProps;return pc("div",Mi({},Wc(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:a,"aria-disabled":n},i),t)},Iu=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return pc("div",Mi({},Wc(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},Nu={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return pc("div",Mi({},Wc(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||pc(gu,null))},Control:ku,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return pc("div",Mi({},Wc(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||pc(yu,null))},DownChevron:yu,CrossIcon:gu,Group:Eu,GroupHeading:function(e){var t=Hc(e);t.data;var n=Ci(t,Su);return pc("div",Mi({},Wc(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return pc("div",Mi({},Wc(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return pc("span",Mi({},t,Wc(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:Cu,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,a=Ci(e,du);return pc("div",Mi({},Wc(Pi(Pi({},a),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),pc(xu,{delay:0,offset:n}),pc(xu,{delay:160,offset:!0}),pc(xu,{delay:320,offset:!n}))},Menu:iu,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return pc("div",Mi({},Wc(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,a=e.menuPlacement,i=e.menuPosition,s=(0,f.useRef)(null),c=(0,f.useRef)(null),u=Di((0,f.useState)(ru(a)),2),l=u[0],d=u[1],p=(0,f.useMemo)((function(){return{setPortalPlacement:d}}),[]),h=Di((0,f.useState)(null),2),m=h[0],g=h[1],y=(0,f.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===i?0:window.pageYOffset,n=e[l]+t;n===(null==m?void 0:m.offset)&&e.left===(null==m?void 0:m.rect.left)&&e.width===(null==m?void 0:m.rect.width)||g({offset:n,rect:e})}}),[r,i,l,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);Ac((function(){y()}),[y]);var v=(0,f.useCallback)((function(){"function"==typeof c.current&&(c.current(),c.current=null),r&&s.current&&(c.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=!0,animationFrame:s=!1}=r,c=o&&!s,u=c||a?[...xc(e)?Mc(e):e.contextElement?Mc(e.contextElement):[],...Mc(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));let l,d=null;if(i){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),xc(e)&&!s&&d.observe(e),xc(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?_c(e):null;return s&&function t(){const r=_c(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{c&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(l)}}(r,s.current,y,{elementResize:"ResizeObserver"in window}))}),[r,y]);Ac((function(){v()}),[v]);var b=(0,f.useCallback)((function(e){s.current=e,v()}),[v]);if(!t&&"fixed"!==i||!m)return null;var w=pc("div",Mi({ref:b},Wc(Pi(Pi({},e),{},{offset:m.offset,position:i,rect:m.rect}),"menuPortal",{"menu-portal":!0}),o),n);return pc(ou.Provider,{value:p},t?(0,$r.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=Ci(e,eu);return pc("div",Mi({},Wc(Pi(Pi({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=Ci(e,Jc);return pc("div",Mi({},Wc(Pi(Pi({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Mu,MultiValueContainer:Tu,MultiValueLabel:Tu,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return pc("div",Mi({role:"button"},n),t||pc(gu,{size:14}))},Option:Au,Placeholder:function(e){var t=e.children,n=e.innerProps;return pc("div",Mi({},Wc(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return pc("div",Mi({},Wc(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:Iu,ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return pc("div",Mi({},Wc(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Ru=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Lu(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||Ru(r)&&Ru(o)))return!1;var r,o;return!0}for(var Fu={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Hu=function(e){return pc("span",Mi({css:Fu},e))},Wu={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,a=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=void 0===o?"":o,i=e.selectValue,s=e.isDisabled,c=e.isSelected,u=e.isAppleDevice,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(a," focused, ").concat(l(i,n),".");if("menu"===t&&u){var d=s?" disabled":"",f="".concat(c?" selected":"").concat(d);return"".concat(a).concat(f,", ").concat(l(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Bu=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=e.selectValue,s=e.selectProps,c=e.id,u=e.isAppleDevice,l=s.ariaLiveMessages,d=s.getOptionLabel,p=s.inputValue,h=s.isMulti,m=s.isOptionDisabled,g=s.isSearchable,y=s.menuIsOpen,v=s.options,b=s.screenReaderStatus,w=s.tabSelectsValue,O=s.isLoading,x=s["aria-label"],k=s["aria-live"],S=(0,f.useMemo)((function(){return Pi(Pi({},Wu),l||{})}),[l]),E=(0,f.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.options,a=t.removedValue,s=t.removedValues,c=t.value,u=a||r||(e=c,Array.isArray(e)?null:e),l=u?d(u):"",f=o||s||void 0,p=f?f.map(d):[],h=Pi({isDisabled:u&&m(u,i),label:l,labels:p},t);n=S.onChange(h)}return n}),[t,S,m,i,d]),P=(0,f.useMemo)((function(){var e="",t=n||r,a=!!(n&&i&&i.includes(n));if(t&&S.onFocus){var s={focused:t,label:d(t),isDisabled:m(t,i),isSelected:a,options:o,context:t===n?"menu":"value",selectValue:i,isAppleDevice:u};e=S.onFocus(s)}return e}),[n,r,d,m,S,o,i,u]),j=(0,f.useMemo)((function(){var e="";if(y&&v.length&&!O&&S.onFilter){var t=b({count:o.length});e=S.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,y,S,v,b,O]),_="initial-input-focus"===(null==t?void 0:t.action),D=(0,f.useMemo)((function(){var e="";if(S.guidance){var t=r?"value":y?"menu":"input";e=S.guidance({"aria-label":x,context:t,isDisabled:n&&m(n,i),isMulti:h,isSearchable:g,tabSelectsValue:w,isInitialFocus:_})}return e}),[x,n,r,h,m,g,y,S,i,w,_]),C=pc(f.Fragment,null,pc("span",{id:"aria-selection"},E),pc("span",{id:"aria-focused"},P),pc("span",{id:"aria-results"},j),pc("span",{id:"aria-guidance"},D));return pc(f.Fragment,null,pc(Hu,{id:c},_&&C),pc(Hu,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!_&&C))},Uu=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Yu=new RegExp("["+Uu.map((function(e){return e.letters})).join("")+"]","g"),zu={},Vu=0;Vu<Uu.length;Vu++)for(var qu=Uu[Vu],Gu=0;Gu<qu.letters.length;Gu++)zu[qu.letters[Gu]]=qu.base;var Ku=function(e){return e.replace(Yu,(function(e){return zu[e]}))},$u=function(e,t){void 0===t&&(t=Lu);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}(Ku),Xu=function(e){return e.replace(/^\s+|\s+$/g,"")},Qu=function(e){return"".concat(e.label," ").concat(e.value)},Zu=["innerRef"];function Ju(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=Di(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=Di(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(Ci(e,Zu),"onExited","in","enter","exit","appear");return pc("input",Mi({ref:t},n,{css:hc({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var el=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var tl=["boxSizing","height","overflow","paddingRight","position"],nl={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function rl(e){e.preventDefault()}function ol(e){e.stopPropagation()}function al(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function il(){return"ontouchstart"in window||navigator.maxTouchPoints}var sl=!("undefined"==typeof window||!window.document||!window.document.createElement),cl=0,ul={capture:!1,passive:!1};var ll=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},dl={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function fl(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=(0,f.useRef)(!1),s=(0,f.useRef)(!1),c=(0,f.useRef)(0),u=(0,f.useRef)(null),l=(0,f.useCallback)((function(e,t){if(null!==u.current){var c=u.current,l=c.scrollTop,d=c.scrollHeight,f=c.clientHeight,p=u.current,h=t>0,m=d-f-l,g=!1;m>t&&i.current&&(r&&r(e),i.current=!1),h&&s.current&&(a&&a(e),s.current=!1),h&&t>m?(n&&!i.current&&n(e),p.scrollTop=d,g=!0,i.current=!0):!h&&-t>l&&(o&&!s.current&&o(e),p.scrollTop=0,g=!0,s.current=!0),g&&el(e)}}),[n,r,o,a]),d=(0,f.useCallback)((function(e){l(e,e.deltaY)}),[l]),p=(0,f.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),h=(0,f.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;l(e,t)}),[l]),m=(0,f.useCallback)((function(e){if(e){var t=!!Xc&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",h,t)}}),[h,p,d]),g=(0,f.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",h,!1))}),[h,p,d]);return(0,f.useEffect)((function(){if(t){var e=u.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,f.useRef)({}),a=(0,f.useRef)(null),i=(0,f.useCallback)((function(e){if(sl){var t=document.body,n=t&&t.style;if(r&&tl.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&cl<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,s=window.innerWidth-i+a||0;Object.keys(nl).forEach((function(e){var t=nl[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&il()&&(t.addEventListener("touchmove",rl,ul),e&&(e.addEventListener("touchstart",al,ul),e.addEventListener("touchmove",ol,ul))),cl+=1}}),[r]),s=(0,f.useCallback)((function(e){if(sl){var t=document.body,n=t&&t.style;cl=Math.max(cl-1,0),r&&cl<1&&tl.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&il()&&(t.removeEventListener("touchmove",rl,ul),e&&(e.removeEventListener("touchstart",al,ul),e.removeEventListener("touchmove",ol,ul)))}}),[r]);return(0,f.useEffect)((function(){if(t){var e=a.current;return i(e),function(){s(e)}}}),[t,i,s]),function(e){a.current=e}}({isEnabled:n});return pc(f.Fragment,null,n&&pc("div",{onClick:ll,css:dl}),t((function(e){o(e),a(e)})))}var pl={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},hl=function(e){var t=e.name,n=e.onFocus;return pc("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:pl,value:"",onChange:function(){}})};function ml(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function gl(){return ml(/^Mac/i)}function yl(){return ml(/^iPhone/i)||ml(/^iPad/i)||gl()&&navigator.maxTouchPoints>1}var vl={clearIndicator:wu,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,a=o.colors,i=o.borderRadius;return Pi({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},dropdownIndicator:bu,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return Pi({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return Pi({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,a=o.spacing,i=o.colors;return Pi(Pi({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},_u),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,a=o.colors,i=o.spacing.baseUnit;return Pi({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i})},loadingMessage:uu,menu:function(e,t){var n,r=e.placement,o=e.theme,a=o.borderRadius,i=o.spacing,s=o.colors;return Pi((Si(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Si(n,"position","absolute"),Si(n,"width","100%"),Si(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:i.menuGutter,marginTop:i.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Pi({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors;return Pi({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,a=e.cropWithEllipsis;return Pi({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors,i=e.isFocused;return Pi({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:i?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:cu,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.theme,i=a.spacing,s=a.colors;return Pi({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return Pi({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,a=r.colors;return Pi({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,a=e.selectProps.controlShouldRenderValue;return Pi({alignItems:"center",display:r&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var bl,wl={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Ol={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:qc(),captureMenuScroll:!qc(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Pi({ignoreCase:!0,ignoreAccents:!0,stringify:Qu,trim:!0,matchFrom:"any"},bl),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,s=n.matchFrom,c=i?Xu(t):t,u=i?Xu(a(e)):a(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=$u(c),u=Ku(u)),"start"===s?u.substr(0,c.length)===c:u.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function xl(e,t,n,r){return{type:"option",data:t,isDisabled:Cl(e,t,n),isSelected:Tl(e,t,n),label:_l(e,t),value:Dl(e,t),index:r}}function kl(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return xl(e,n,t,r)})).filter((function(t){return Pl(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=xl(e,n,t,r);return Pl(e,a)?a:void 0})).filter(Qc)}function Sl(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Hi(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function El(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,Hi(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function Pl(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,s=t.value;return(!Al(e)||!a)&&Ml(e,{label:i,value:s,data:o},r)}var jl=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},_l=function(e,t){return e.getOptionLabel(t)},Dl=function(e,t){return e.getOptionValue(t)};function Cl(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Tl(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Dl(e,t);return n.some((function(t){return Dl(e,t)===r}))}function Ml(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Al=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Il=1,Nl=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ii(e,t)}(a,e);var t,n,r,o=Fi(a);function a(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=gl()||yl(),t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,a=o.closeMenuOnSelect,i=o.isMulti,s=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),a&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=n.name,i=t.state.selectValue,s=o&&t.isOptionSelected(e,i),c=t.isOptionDisabled(e,i);if(s){var u=t.getOptionValue(e);t.setValue(i.filter((function(e){return t.getOptionValue(e)!==u})),"deselect-option",e)}else{if(c)return void t.ariaOnChange(e,{action:"select-option",option:e,name:a});o?t.setValue([].concat(Hi(i),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),a=r.filter((function(e){return t.getOptionValue(e)!==o})),i=Zc(n,a,a[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Zc(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),a=Zc(e,o,o[0]||null);r&&t.onChange(a,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return jl(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return El(kl(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Lc.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return _l(t.props,e)},t.getOptionValue=function(e){return Dl(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=vl[e](n,r);o.boxSizing="border-box";var a=t.props.styles[e];return a?a(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Pi(Pi({},Nu),e.components);var e},t.buildCategorizedOptions=function(){return kl(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Sl(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:Pi({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Bc(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return Al(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,i=n.inputValue,s=n.isClearable,c=n.isDisabled,u=n.menuIsOpen,l=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,p=t.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(c||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!d||!h||f&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):s&&a&&t.clearValue();break;case" ":if(i)return;if(!u){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++Il),t.state.selectValue=Fc(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),i=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[i],t.state.focusedOptionId=jl(n,r[i])}return t}return t=a,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Vc(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Vc(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var s=a.indexOf(r[0]);s>-1&&(i=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i],focusedOptionId:this.getFocusedOptionId(a[i])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(wl):Pi(Pi({},wl),this.props.theme):wl}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,s=this.props,c=s.isMulti,u=s.isRtl,l=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:c,isRtl:u,options:l,selectOption:a,selectProps:s,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Cl(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Tl(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Ml(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,i=e.form,s=e.menuIsOpen,c=e.required,u=this.getComponents().Input,l=this.state,d=l.inputIsHidden,p=l.ariaSelection,h=this.commonProps,m=r||this.getElementId("input"),g=Pi(Pi(Pi({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?f.createElement(u,Mi({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:i,type:"text",value:o},g)):f.createElement(Ju,Mi({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Nc,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:i,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,s=t.Placeholder,c=this.commonProps,u=this.props,l=u.controlShouldRenderValue,d=u.isDisabled,p=u.isMulti,h=u.inputValue,m=u.placeholder,g=this.state,y=g.selectValue,v=g.focusedValue,b=g.isFocused;if(!this.hasValue()||!l)return h?null:f.createElement(s,Mi({},c,{key:"placeholder",isDisabled:d,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return y.map((function(t,i){var s=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return f.createElement(n,Mi({},c,{components:{Container:r,Label:o,Remove:a},isFocused:s,isDisabled:d,key:u,index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var w=y[0];return f.createElement(i,Mi({},c,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return f.createElement(e,Mi({},t,{innerProps:i,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;return e&&o?f.createElement(e,Mi({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return f.createElement(n,Mi({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return f.createElement(e,Mi({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,i=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,l=this.commonProps,d=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,m=p.inputValue,g=p.isLoading,y=p.loadingMessage,v=p.minMenuHeight,b=p.maxMenuHeight,w=p.menuIsOpen,O=p.menuPlacement,x=p.menuPosition,k=p.menuPortalTarget,S=p.menuShouldBlockScroll,E=p.menuShouldScrollIntoView,P=p.noOptionsMessage,j=p.onMenuScrollToTop,_=p.onMenuScrollToBottom;if(!w)return null;var D,C=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,i=t.isSelected,s=t.label,c=t.value,p=d===o,h=a?void 0:function(){return e.onOptionHover(o)},m=a?void 0:function(){return e.selectOption(o)},g="".concat(e.getElementId("option"),"-").concat(n),y={id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:i};return f.createElement(u,Mi({},l,{innerProps:y,data:o,isDisabled:a,isSelected:i,key:g,label:s,type:r,value:c,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())D=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,a=t.options,i=t.index,s="".concat(e.getElementId("group"),"-").concat(i),c="".concat(s,"-heading");return f.createElement(n,Mi({},l,{key:s,data:o,options:a,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return C(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return C(t,"".concat(t.index))}));else if(g){var T=y({inputValue:m});if(null===T)return null;D=f.createElement(s,l,T)}else{var M=P({inputValue:m});if(null===M)return null;D=f.createElement(c,l,M)}var A={minMenuHeight:v,maxMenuHeight:b,menuPlacement:O,menuPosition:x,menuShouldScrollIntoView:E},I=f.createElement(au,Mi({},l,A),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,s=r.maxHeight;return f.createElement(o,Mi({},l,A,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:i}),f.createElement(fl,{captureEnabled:h,onTopArrive:j,onBottomArrive:_,lockEnabled:S},(function(t){return f.createElement(a,Mi({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":l.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:s,focusedOption:d}),D)})))}));return k||"fixed"===x?f.createElement(i,Mi({},l,{appendTo:k,controlElement:this.controlRef,menuPlacement:O,menuPosition:x}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=t.required,s=this.state.selectValue;if(i&&!this.hasValue()&&!r)return f.createElement(hl,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(o){if(n){var c=s.map((function(t){return e.getOptionValue(t)})).join(n);return f.createElement("input",{name:a,type:"hidden",value:c})}var u=s.length>0?s.map((function(t,n){return f.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):f.createElement("input",{name:a,type:"hidden",value:""});return f.createElement("div",null,u)}var l=s[0]?this.getOptionValue(s[0]):"";return f.createElement("input",{name:a,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.isFocused,i=t.selectValue,s=this.getFocusableOptions();return f.createElement(Bu,Mi({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:a,selectValue:i,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,i=a.className,s=a.id,c=a.isDisabled,u=a.menuIsOpen,l=this.state.isFocused,d=this.commonProps=this.getCommonProps();return f.createElement(r,Mi({},d,{className:i,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:l}),this.renderLiveRegion(),f.createElement(t,Mi({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:l,menuIsOpen:u}),f.createElement(o,Mi({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),f.createElement(n,Mi({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,s=t.prevWasFocused,c=t.instancePrefix,u=e.options,l=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=Fc(l),m={};if(n&&(l!==n.value||u!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return Sl(kl(e,t))}(e,h):[],y=d?El(kl(e,h),"".concat(c,"-option")):[],v=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:b,focusedOptionId:jl(y,b),focusableOptionsWithIds:y,focusedValue:v,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},O=a,x=i&&s;return i&&!x&&(O={value:Zc(p,h,h[0]||null),options:h,action:"initial-input-focus"},x=!s),"initial-input-focus"===(null==a?void 0:a.action)&&(O=null),Pi(Pi(Pi({},m),w),{},{prevProps:e,ariaSelection:O,prevWasFocused:x})}}],n&&Ai(t.prototype,n),r&&Ai(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(f.Component);Nl.defaultProps=Ol;var Rl=(0,f.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,a=e.defaultValue,i=void 0===a?null:a,s=e.inputValue,c=e.menuIsOpen,u=e.onChange,l=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,h=e.value,m=Ci(e,Ti),g=Di((0,f.useState)(void 0!==s?s:n),2),y=g[0],v=g[1],b=Di((0,f.useState)(void 0!==c?c:o),2),w=b[0],O=b[1],x=Di((0,f.useState)(void 0!==h?h:i),2),k=x[0],S=x[1],E=(0,f.useCallback)((function(e,t){"function"==typeof u&&u(e,t),S(e)}),[u]),P=(0,f.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),v(void 0!==n?n:e)}),[l]),j=(0,f.useCallback)((function(){"function"==typeof p&&p(),O(!0)}),[p]),_=(0,f.useCallback)((function(){"function"==typeof d&&d(),O(!1)}),[d]),D=void 0!==s?s:y,C=void 0!==c?c:w,T=void 0!==h?h:k;return Pi(Pi({},m),{},{inputValue:D,menuIsOpen:C,onChange:E,onInputChange:P,onMenuClose:_,onMenuOpen:j,value:T})}(e);return f.createElement(Nl,Mi({ref:t},n))})),Ll=Rl;const Fl=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)},Hl=ot;function Wl(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 Bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wl(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ul=(0,d.injectIntl)((function(e){var t;return(0,Ge.jsx)("span",Bl(Bl({},e.innerProps),{},{children:(0,Ge.jsx)(At,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t})),"data-cy":"btn-clear"})}))}));var Yl=c(2418);function zl(){return zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zl.apply(this,arguments)}const Vl=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class ql extends f.Component{constructor(...e){super(...e),this._targetNode=f.createRef(),this._elementNode=f.createRef(),this._elementParentNode=null,this._tetherInstance=null}componentDidMount(){this._createContainer(),this.forceUpdate()}componentDidUpdate(e){if(e.renderElementTag===this.props.renderElementTag&&e.renderElementTo===this.props.renderElementTo||this._createContainer(),this._elementParentNode&&e.className!==this.props.className){const t=(e.className||"").split(" ").filter((e=>e.length>0)),n=(this.props.className||"").split(" ").filter((e=>e.length>0));this._elementParentNode.classList.remove(...t),this._elementParentNode.classList.add(...n)}this._update()}componentWillUnmount(){this._destroy()}getTetherInstance(){return this._tetherInstance}disable(){var e;null==(e=this._tetherInstance)||e.disable()}enable(){var e;null==(e=this._tetherInstance)||e.enable()}on(e,t,n){this._tetherInstance.on(e,t,n)}once(e,t,n){this._tetherInstance.once(e,t,n)}off(e,t){this._tetherInstance.off(e,t)}position(){var e;null==(e=this._tetherInstance)||e.position()}_runRenders(){let e="function"==typeof this.props.renderTarget?this.props.renderTarget(this._targetNode):null,t="function"==typeof this.props.renderElement?this.props.renderElement(this._elementNode):null;return(0,f.isValidElement)(e)||(e=null),(0,f.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new Yl(e),this._registerEventListeners()}_destroyTetherInstance(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}_registerEventListeners(){this.on("update",((...e)=>this.props.onUpdate&&this.props.onUpdate.apply(this,e))),this.on("repositioned",((...e)=>this.props.onRepositioned&&this.props.onRepositioned.apply(this,e)))}get _renderNode(){const{renderElementTo:e}=this.props;return"string"==typeof e?document.querySelector(e):e||document.body}_destroy(){this._destroyTetherInstance(),this._removeContainer()}_createContainer(){this._removeContainer();const{renderElementTag:e="div",className:t}=this.props;this._elementParentNode=document.createElement(e),this._elementParentNode.className=t||""}_addContainerToDOM(){this._elementParentNode&&this._renderNode&&this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.append(this._elementParentNode)}_removeContainer(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.remove()}_update(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}_updateTether(){var e;const t=this.props,{id:n,style:r}=t,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(t,Vl),a=zl({target:this._targetNode.current,element:this._elementParentNode},o),i=n||"";if(this._elementParentNode&&this._elementParentNode.id!==i&&(this._elementParentNode.id=i),this._elementParentNode&&r){const e=this._elementParentNode.style;for(const t in r)if(e[t]!==r[t]){let n=r[t];n&&(e[t]=n)}}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(a):this._createTetherInstance(a),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?f.createElement(f.Fragment,null,e,t&&this._elementParentNode&&$r.createPortal(t,this._elementParentNode)):null}}var Gl,Kl,$l,Xl,Ql,Zl,Jl,ed,td,nd,rd,od,ad;function id(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 sd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?id(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):id(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cd=Me.Ay.span.withConfig({displayName:"StyledClickableWrapper"})(Gl||(Gl=Ce()(["\n pointer-events: auto;\n cursor: pointer;\n"]))),ud=Me.Ay.div.withConfig({displayName:"StyledReactSelectOuterWrapper"})(Kl||(Kl=Ce()(["\n outline-style: none;\n cursor: ",";\n"])),(function(e){return e.immutable&&"text"})),ld=Me.Ay.div.withConfig({displayName:"StyledReactSelectInnerWrapper"})($l||($l=Ce()(["\n outline-style: none;\n"]))),dd=Me.Ay.div.withConfig({displayName:"StyledIndicatorsContainerWrapper"})(Xl||(Xl=Ce()(["\n position: relative;\n z-index: 1;\n background-color: ",";\n border-radius: ",";\n ",";\n"])),Fe.t7.color("paper"),Fe.t7.radii("form"),(function(e){return e.isTopAligned&&(0,Me.AH)(Ql||(Ql=Ce()(["\n position: absolute;\n right: 0;\n top: 0;\n "])))})),fd=(0,Me.Ay)(ql).withConfig({displayName:"StyledTether"})(Zl||(Zl=Ce()(["\n && {\n z-index: 1;\n }\n"]))),pd=(Me.Ay.div.withConfig({displayName:"StyledNonTether"})(Jl||(Jl=Ce()(["\n position: absolute;\n padding-bottom: ",";\n z-index: 2; /* higher than StyledTether and StyledIndicatorsContainerWrapper */\n"])),Fe.hs.space(1.5)),(0,Me.Ay)(Nu.Menu).attrs((function(e){return{theme:e.selectTheme}})).withConfig({displayName:"StyledMenu"})(ed||(ed=Ce()(["\n && {\n margin: 8px 0 8px -10px;\n width: calc(","px + 20px);\n position: relative;\n\n .tether-target-attached-top & {\n transform: translateY(-","px);\n }\n }\n"])),(function(e){return e.wrapperWidth}),(function(e){return e.wrapperHeight+6}))),hd=Me.Ay.div.withConfig({displayName:"StyledMoreOptionsAvailable"})(td||(td=Ce()(["\n && {\n ","\n cursor: default;\n padding: "," ",";\n }\n"])),(0,Fe.Ed)({color:Fe.t7.color("signal.info"),lineHeight:"normal"}),Fe.hs.space(-.5),Fe.hs.space(-.2)),md=Me.Ay.div.withConfig({displayName:"StyledSingleValueWrapper"})(nd||(nd=Ce()(["\n overflow-x: hidden;\n position: relative;\n color: ",";\n"])),(function(e){return e.isDisabled?Fe.t7.color("text"):"inherit"})),gd=Me.Ay.div.withConfig({displayName:"StyledDropdownIndicatorWrapper"})(rd||(rd=Ce()(["\n && {\n position: relative;\n width: 25px;\n height: 25px;\n display: flex;\n align-items: center;\n }\n"]))),yd=Me.Ay.div.withConfig({displayName:"StyledMultiValueWrapper"})(od||(od=Ce()(["\n overflow: hidden;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n"]))),vd=Me.Ay.span.withConfig({displayName:"StyledMultiValueLabelWrapper"})(ad||(ad=Ce()(["\n overflow: hidden;\n text-overflow: ellipsis;\n"]))),bd=function(e){var t=e.colors.paper,n=e.colors.backgroundItemHover,r=e.colors.backgroundItemSelected,o=e.colors.text,a=e.colors.borderSelect,i=e.colors.textDisabled,s=e.radii.form,c=Fe.hs.space(-1)({theme:e}),u=Fe.hs.space(-2)({theme:e}),l={color:o,fontFamily:e.fontFamily.regular,fontSize:"".concat(e.fontSize.base,"rem"),fontWeight:e.fontWeights.regular,lineHeight:e.lineHeights.regular},d=function(e){return e.isMulti&&(e.selectProps.hasAdvancedSearch||e.selectProps.hasDocsTreeSearch)},f=function(t){return sd(sd({},t),{},{color:e.colors.signal.info,cursor:"default",textAlign:"left"})};return{container:function(e,t){return sd(sd(sd({},e),l),{},{outline:0})},control:function(e,t){return sd(sd({},e),{},{backgroundColor:"transparent",borderWidth:0,boxShadow:null,minHeight:0,flexWrap:"nowrap",position:"relative",display:d(t)?"block":e.display})},noOptionsMessage:f,loadingMessage:f,option:function(o,a){var i=t;return a.isSelected?i=r:a.isFocused&&(i=n),sd(sd({},o),{},{color:e.colors.text,backgroundColor:i,cursor:"pointer",":active":{backgroundColor:a.isSelected?r:n}})},indicatorsContainer:function(e,t){return sd(sd({},e),{},{alignSelf:"flex-end","> *":{padding:"0 !important;"}})},input:function(e,t){var n=50;return t.selectProps.hasDocsTreeSearch&&(n+=25),t.selectProps.hasAdvancedSearch&&(n+=25),t.selectProps.hasCreatePermission&&(n+=25),sd(sd(sd({},e),{},{minHeight:t.isDisabled?"0":"2.6rem",paddingTop:t.isDisabled?"0":"2px",paddingBottom:t.isDisabled?"0":"2px"},d(t)?{width:"calc(100% - ".concat(n,"px)")}:{}),{},{overflow:"hidden",margin:"0",color:o})},menu:function(t,n){return{backgroundColor:e.colors.paper,boxShadow:"0 0 6px ".concat(a),borderRadius:s}},menuList:function(t,n){return sd(sd(sd({},t),l),{},{border:"1px solid ".concat(a),borderRadius:s,padding:"0",backgroundColor:e.colors.paper})},multiValue:function(t,n){return sd(sd({},t),{},{borderRadius:s,margin:"".concat(c," ").concat(u," 0 0"),backgroundColor:e.colors.backgroundMultiValue,justifyContent:"space-between"},d(n)&&!n.isDisabled?{width:"100%",maxWidth:"300px"}:{})},multiValueLabel:function(e,t){return sd(sd({},e),{},{borderRadius:s,color:o,fontSize:"inherit",lineHeight:1.8})},multiValueRemove:function(e,t){return sd(sd({},e),{},{borderRadius:0,color:o,display:t.isDisabled?"none":"flex",":hover":sd(sd({},e[":hover"]),{},{color:o,backgroundColor:r,cursor:"pointer"})})},singleValue:function(e,t){return sd(sd({},e),{},{color:t.isDisabled?i:o,margin:0,whiteSpace:"wrap"})},valueContainer:function(e,t){return sd(sd({},e),{},{padding:0,margin:0,minHeight:t.isDisabled?"0":"2.6rem"})}}};function wd(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 Od(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wd(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const xd=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,Ge.jsx)(Nu.DropdownIndicator,Od(Od({},e),{},{children:(0,Ge.jsx)(gd,{children:(0,Ge.jsx)(At,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};_e().shape({key:_e().any.isRequired,display:_e().string});var kd,Sd,Ed;function Pd(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 jd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pd(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _d=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},Dd=function(e,t){return function(n){n.stopPropagation(),e(t)}},Cd=function(e,t){return function(n){n.stopPropagation(),e(t)}},Td=function(e){e.stopPropagation()};const Md=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,a=t.isDisabled,i=t.hasDocsTreeSearch,s=t.hasAdvancedSearch,c=t.createPermission,u=t.value,l=t.isMulti,d=t.inputValue,f=l&&(s||i);return(0,Ge.jsx)(dd,{isTopAligned:f,children:(0,Ge.jsxs)(Nu.IndicatorsContainer,jd(jd({},e),{},{children:[e.children,n&&!a&&(0,Ge.jsx)("span",{onTouchEnd:Td,onMouseDown:Dd(n,u),children:kd||(kd=(0,Ge.jsx)(At,{icon:"folder",tabIndex:-1,"data-cy":"btn-docsTreeSearch"}))}),r&&!a&&(0,Ge.jsx)("span",{onTouchEnd:Td,onMouseDown:_d(r,d,u),children:Sd||(Sd=(0,Ge.jsx)(At,{icon:"search",tabIndex:-1,"data-cy":"btn-advancedSearch"}))}),c&&!a&&(0,Ge.jsx)("span",{onTouchEnd:Td,onMouseDown:Cd(o,u),children:Ed||(Ed=(0,Ge.jsx)(At,{icon:"plus",tabIndex:-1,"data-cy":"btn-remoteCreate"}))})]}))})};var Ad;const Id=function(){return Ad||(Ad=(0,Ge.jsx)("span",{children:(0,Ge.jsx)(Qe,{size:"1.8rem"})}))};function Nd(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 Rd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nd(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ld=function(e){var t=e.selectProps,n=e.children,r=e.theme;return(0,Ge.jsx)(fd,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,Ge.jsx)("div",{ref:e})},renderElement:function(o){return(0,Ge.jsx)("div",{ref:o,className:Yo,children:(0,Ge.jsx)(pd,Rd(Rd({},Yr()(e,["innerRef","theme"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,selectTheme:r,children:n}))})}})};function Fd(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 Hd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fd(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Wd=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,Ge.jsxs)(Nu.MenuList,Hd(Hd({},e),{},{className:"MenuList",children:[n,r&&(0,Ge.jsx)(hd,{children:o})]}))};const Bd=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,a=o.tooltips,i=o.loadTooltip,s=o.DetailLink,c=hi()(a,t.key,null),u=(0,Ge.jsx)("span",{style:n.css,children:r}),l=s?(0,Ge.jsx)(cd,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,Ge.jsx)(s,{entityKey:t.key,tabIndex:-1,children:(0,Ge.jsx)(Ha,{content:c?(0,Ge.jsx)("div",{dangerouslySetInnerHTML:{__html:sr.sanitizeHtml(c)}}):null,children:(0,Ge.jsx)("span",{onMouseOver:function(){return i&&!c&&i(t.key)},children:u})})})}):u;return(0,Ge.jsx)(vd,{children:l})};var Ud=c(85015),Yd=c.n(Ud),zd=c(42194),Vd=c.n(zd);function qd(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 Gd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qd(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kd=["linkComp"],$d=function(e,t){var n=nr.difference(e,t),r=Vd()(Yr()(n,Kd),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},Xd=(0,f.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&Yd()(n)?(0,Ge.jsx)(cd,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,Ge.jsx)(t,{entityKey:n,children:r})}):r}),$d);Xd.propTypes={children:_e().node,entityKey:_e().any,linkComp:_e().func};const Qd=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,a=n.tooltips,i=n.loadTooltip,s=n.DetailLink,c=hi()(a,t.key,null);return(0,Ge.jsx)(Nu.SingleValue,Gd(Gd({},e),{},{children:(0,Ge.jsx)(md,{onMouseOver:function(){return i&&!c&&i(t.key)},isDisabled:r,children:(0,Ge.jsx)(Ha,{content:c?(0,Ge.jsx)("div",{dangerouslySetInnerHTML:{__html:sr.sanitizeHtml(c)}}):null,children:(0,Ge.jsx)(Xd,{linkComp:s,entityKey:t.key,children:o})})})}))};function Zd(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}var Jd=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const ef=function(e){var t=e.selectProps,n=e.hasValue,r=e.children,o=t.isMulti,a=t.hasAdvancedSearch,i=t.hasDocsTreeSearch,s=t.isDisabled;if(!(o&&(a||i)))return(0,Ge.jsx)(Nu.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zd(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var c=f.Children.map(r,(function(e){return Jd(e)?e:null})),u=f.Children.map(r,(function(e){return Jd(e)?null:e})),l=s&&n;return(0,Ge.jsxs)(Ge.Fragment,{children:[!l&&(0,Ge.jsx)(Ge.Fragment,{children:c}),(0,Ge.jsx)(yd,{children:u})]})};function tf(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 nf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tf(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const rf=(0,Me.SL)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,a=e.isMulti,i=e.loadTooltip,s=e.moreOptionsAvailable,c=e.moreOptionsAvailableText,u=e.noResultsText,l=e.noResultsComp,d=e.onChange,p=e.openDocsTreeSearch,h=e.openAdvancedSearch,m=e.options,g=e.searchOptions,y=e.theme,v=e.tooltips,b=e.value,w=e.DetailLink,O=e.createPermission,x=e.openRemoteCreate,k=(0,f.useRef)(null),S=(0,f.useRef)(null),E=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientWidth)||300},P=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientHeight)||35},j=(0,f.useState)(E()),_=Je()(j,2),D=_[0],C=_[1],T=(0,f.useState)(P()),M=Je()(T,2),A=M[0],I=M[1],N=(0,f.useState)(!1),R=Je()(N,2),L=R[0],F=R[1],H=function(e){t&&t(e)},W=(0,f.useCallback)(g||function(){},[]),B=(0,f.useCallback)(ki()(W,800,{trailing:!0}),[]),U=Boolean(h),Y=Boolean(p),z=Boolean(O),V=Boolean(g)||!Hl();return(0,Ge.jsx)(ud,{tabIndex:"-1",id:n,onFocus:function(){k.current.focus(),setTimeout((function(){C(E()),I(P())}),0)},children:(0,Ge.jsx)(ld,{ref:S,children:(0,Ge.jsx)(Ll,nf(nf({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:D,wrapperHeight:A,components:{ClearIndicator:Ul,LoadingIndicator:Id,DropdownIndicator:xd,IndicatorsContainer:Md,IndicatorSeparator:null,Menu:Ld,MenuList:Wd,MultiValueLabel:Bd,SingleValue:Qd,ValueContainer:ef},noOptionsMessage:function(e){return u||("function"==typeof l?(0,Ge.jsx)(l,nf({},e)):" - ")},isMulti:a,closeMenuOnSelect:!a,isSearchable:V},g?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,tabSelectsValue:!1,value:b||null,onChange:function(e){d(e),H(e)},onInputChange:function(e,t){var n=t.action;g&&e&&B(e,b),""===e&&"input-change"===n&&H(b)},options:Ht()(m||[]),onKeyDown:function(e){"Enter"===e.key&&L&&(e.stopPropagation(),k.current&&null===k.current.focusedOptionRef&&e.preventDefault())},isLoading:o,isDisabled:r,ref:k,onMenuOpen:function(){H(b),F(!0)},onMenuClose:function(){F(!1)},styles:bd(y),loadTooltip:i,tooltips:v,DetailLink:w,hasDocsTreeSearch:Y,openDocsTreeSearch:p,hasAdvancedSearch:U,openAdvancedSearch:h,moreOptionsAvailable:s,moreOptionsAvailableText:c,blurInputOnSelect:!1,hasCreatePermission:z,createPermission:O,openRemoteCreate:x,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const of=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.options,a=o.trueLabel,i=o.falseLabel,s=e.onChange;return(0,Ge.jsx)(rf,{id:t,immutable:n,isMulti:!1,onChange:function(e){return s(e?e.key:null)},value:Oi()(r)?r:{key:r,display:r?a:i},openMenuOnClick:!0,options:[{key:!0,display:a},{key:!1,display:i}]})};var af,sf=Me.Ay.div.withConfig({displayName:"StyledBoolEdit"})(af||(af=Ce()(["\n margin: 5px 0;\n"])));const cf=function(e){return(0,Ge.jsx)(sf,{children:(0,Ge.jsx)("input",{type:"checkbox",checked:e.value||!1,name:e.name,onChange:function(t){e.onChange&&e.onChange(t.target.checked)},id:e.id,disabled:e.immutable})})};const uf=function(e){return e.breakWords?(0,Ge.jsx)(cr.Ay.P,{breakWords:!0,useTitle:e.useTitle,id:e.id,children:(t=e.value,t.split("\n").flatMap((function(e,t,n){return t+1<n.length?[e,(0,Ge.jsx)("br",{},t)]:e})))}):(0,Ge.jsx)(cr.Ay.Span,{breakWords:!1,useTitle:e.useTitle,id:e.id,children:e.value.replace("/\n/g"," ")});var t};function lf(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}var df,ff,pf=function(e){var t=e.id,n=e.value,r=e.breakWords,o=e.className,a=e.options;return(void 0===a?{}:a).escapeHtml?(0,Ge.jsx)(uf,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lf(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e)):(0,Ge.jsx)(Aa,{id:t,dangerouslySetInnerHTML:{__html:sr.sanitizeHtml(n)},breakWords:r,className:o})},hf=Me.Ay.div.withConfig({displayName:"StyledOption"})(df||(df=Ce()(["\n margin: "," 0;\n display: flex;\n align-items: center;\n gap: ",";\n\n input {\n margin: 0;\n }\n"])),Fe.hs.space(-1),Fe.hs.space(-1.5)),mf=Me.Ay.span.withConfig({displayName:"StyledLabel"})(ff||(ff=Ce()(["\n ","\n display: flex;\n gap: ",";\n align-items: center;\n"])),(0,Fe.Ed)(),Fe.hs.space(-1.5));function gf(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 yf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gf(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vf={single:"radio",multiple:"checkbox"},bf={single:{checked:!1},multiple:{}},wf=function(e,t){return t?(0,Ge.jsx)(pf,{value:e}):e},Of=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.labelComponent,a=e.checked,i=e.immutable,s=e.hideCheckbox,c=e.selectionType,u=e.renderHtmlInOptions,l=e.handleChange;return(0,Ge.jsxs)(hf,{children:[!s&&(0,Ge.jsx)("input",{name:t,type:vf[c],checked:a||!1,onChange:l,id:n,disabled:i,"data-cy":"choice-answer-option-".concat(n)}),(0,Ge.jsx)(mf,{children:o||wf(r,u)})]})};const xf=function(e){var t=e.onChange,n=e.value,r=e.options,o=e.id,a=e.immutable,i=function(e){if(t){var o=n.options.map((function(t){return yf(yf({},t),t.id===e.target.id?{checked:e.target.checked}:bf[r.selectionType])}));t({options:o})}};return(0,Ge.jsx)(Ge.Fragment,{children:n.options.map((function(e){return(0,Ge.jsx)(Of,{groupName:o,id:e.id,label:e.label,labelComponent:e.labelComponent,checked:e.checked,immutable:a||e.immutable,hideCheckbox:e.hideCheckbox,selectionType:r.selectionType,renderHtmlInOptions:r.renderHtmlInOptions,handleChange:i},e.id)}))})};c(98639);function kf(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 Sf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kf(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ef=(0,f.lazy)((function(){return Promise.all([c.e(264),c.e(722)]).then(c.bind(c,65066))}));const Pf=function(e){return(0,Ge.jsx)(f.Suspense,{fallback:(t=e.value,(0,Ge.jsx)("div",{children:(0,Ge.jsx)("p",{children:t})})),children:(0,Ge.jsx)(Ef,Sf({},e))});var t};var jf,_f=Me.Ay.div.withConfig({displayName:"StyledEditorWrapper"})(jf||(jf=Ce()(["\n margin-top: ",";\n"])),Fe.hs.space(-1.5));const Df=(0,Me.SL)(st.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options,a=e.id,i=e.theme;return(0,Ge.jsx)(_f,{children:(0,Ge.jsx)(Pf,{value:t,id:a,onChange:n,autoFocusOnMount:o.autoFocusOnMount,mode:o.mode,theme:i.codeEditorTheme,showGutter:!0,editorOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,minLines:5,maxLines:50,readOnly:r,wrap:!0,indentedSoftWrap:!1},implicitModel:o.implicitModel})})})));var Cf,Tf,Mf,Af=Me.Ay.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(Cf||(Cf=Ce()(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),If=Me.Ay.div.withConfig({displayName:"StyledDatePickerWrapper"})(Tf||(Tf=Ce()(["\n &&&& {\n ","\n & .react-datepicker__input-container {\n & input {\n ","\n width: calc(100% - 5px);\n }\n }\n\n & .react-datepicker {\n & .react-datepicker__today-button {\n ","\n }\n }\n }\n"])),ai,si,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),Nf=Me.Ay.input.withConfig({displayName:"StyledTimeInput"})(Mf||(Mf=Ce()(["\n &&&& {\n ","\n }\n"])),si),Rf="react-datepicker-time__input",Lf="react-datepicker__day",Ff="react-datepicker__input",Hf=function(e){return e.classList.contains(Lf)},Wf=function(e){return e.classList.contains(Rf)},Bf=function(e){return e.classList.contains(Ff)},Uf=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(Lf,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},Yf=function(e,t){var n=null==e?void 0:e.form;if(n){var r=Ht()(n).indexOf(e);if(r>=0)zf(n[r+(t?2:3)])}else s.A.logWarning("Datepicker '".concat(null==e?void 0:e.id,"' is not withing a form and focus to the next input cannot be set."))},zf=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},Vf=function(e){if(!e)return null;var t=(0,la.Hle)(e.toString());return isNaN(t)?null:t},qf=function(e){return e?e.toISOString():null};const Gf=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,a=n.minDate,i=n.maxDate,c=n.hasTime,u=n.valueToDate,l=void 0===u?Vf:u,d=n.dateToValue,p=void 0===d?qf:d,h=(0,f.useRef)(null),m=(0,f.useState)(!1),g=Je()(m,2),y=g[0],v=g[1],b=l(e),w=a?l(a):void 0,O=i?l(i):void 0;(0,f.useEffect)((function(){h.current&&"function"==typeof h.current.setOpen&&h.current.setOpen(y)}),[y]);var x=function(){return v(!1)},k=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(h.current&&"function"==typeof h.current.getPreSelection){var t,n=e?h.current.getPreSelection():null;return(null===(t=h.current.state)||void 0===t?void 0:t.preSelection)||n}return null},S=function(e){h.current&&"function"==typeof h.current.setPreSelection&&h.current.setPreSelection(e)},E=function(){t(null),S(null)},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=k(!1);if(n){var r=b||new Date,o=t?function(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,a=void 0===o?0:o,i=t.second,s=void 0===i?0:i;return(0,la.avh)((0,la.glI)((0,la.gtt)(e,s),a),r)}(n,{hour:(0,la.qZx)(r),minute:(0,la.Osm)(r),second:(0,la.SyE)(r)}):n;j(o,e)}},j=function(n,r){if(n){var a,i=!e&&Boolean(n),s=null==r||null===(a=r.target)||void 0===a?void 0:a.value,u=!!s&&o.some((function(e){return(0,la.uv4)(s,e)})),l=(0,la.ol1)(n),d=(0,la.qZx)(n)!==(0,la.qZx)(l)||(0,la.Osm)(n)!==(0,la.Osm)(l);(i&&!d||u)&&c&&(n=da.A.setCurrentTime(n)),t(p(n))}else E();var f;c||"click"!==(null==r?void 0:r.type)||(x(),zf(null===(f=h.current)||void 0===f?void 0:f.input))},_=function(t){var n,r,o=!e;if("Tab"===t.key)if(t.shiftKey){if(Bf(t.target))x();else if(Wf(t.target)){var a;S(b||k(!0)),Uf(null==h||null===(a=h.current)||void 0===a||null===(a=a.calendar)||void 0===a||null===(a=a.containerRef)||void 0===a?void 0:a.current)}else if(Hf(t.target)){var i;x(),function(e){var t=null==e?void 0:e.form;if(t){var n=Ht()(t).indexOf(e);n>=1&&zf(t[n-1])}else s.A.logWarning("Datepicker '".concat(null==e?void 0:e.id,"' is not withing a form and focus to the previous input cannot be set."))}(null===(i=h.current)||void 0===i?void 0:i.input)}}else if(Bf(t.target)&&y)P(t),x(),Yf(null===(n=h.current)||void 0===n?void 0:n.input,o);else if(Wf(t.target)){var u;x(),Yf(null===(u=h.current)||void 0===u?void 0:u.input,o)}else if(Hf(t.target)){var l,d;if(c)P(t,!0),S(null),r=null==h||null===(l=h.current)||void 0===l||null===(l=l.calendar)||void 0===l||null===(l=l.containerRef)||void 0===l?void 0:l.current,setTimeout((function(){if(r){var e=r.querySelector("input.".concat(Rf));e&&e.focus({preventScroll:!0})}}),0);else P(t),x(),Yf(null===(d=h.current)||void 0===d?void 0:d.input,o)}if("Enter"===t.key&&(x(),setTimeout((function(){var e;zf(null===(e=h.current)||void 0===e?void 0:e.input)}),10),t.preventDefault(),t.stopPropagation()),["ArrowDown","ArrowUp","Enter"].includes(t.key))if(y){if(y&&null===k(!1)){var f;S(b||k(!0)),Uf(null==h||null===(f=h.current)||void 0===f||null===(f=f.calendar)||void 0===f||null===(f=f.containerRef)||void 0===f?void 0:f.current)}}else v(!0),t.key="Handled".concat(t.key)},D=function(){var e;v((function(e){return!e})),S(null),zf(null===(e=h.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{onClickOutside:x,onInputClick:D,onKeyDown:_,onChange:j,onCalendarOpen:function(){S(null)},onBlur:function(){h.current&&h.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:y,selected:b,showTimeInput:c,minDate:w,maxDate:O,ref:h,className:Ff},timeInputProps:{onKeyDown:_,className:Rf},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),E()}},calendarButtonProps:{onClick:D,className:y?"react-datepicker-ignore-onclickoutside":""},closeModal:x}};var Kf="HH:mm:ss",$f="HH:mm",Xf=function(e){return(0,la.uv4)(e,$f)},Qf=function(e){var t=function(e){return e?(0,la.uv4)(e,Kf)?(0,la.qgA)(e,Kf,new Date):(0,la.uv4)(e,$f)?(0,la.qgA)(e,$f,new Date):(0,la.uv4)(e,"HH:")?(0,la.qgA)(e,"HH:",new Date):(0,la.uv4)(e,"H")?(0,la.qgA)(e,"H",new Date):null:e}(e);return t&&!isNaN(t)?function(e){return(0,la.GPZ)(e,$f)}(t):""};const Zf=function(e,t){var n=Qf(e),r=(0,f.useState)(n),o=Je()(r,2),a=o[0],i=o[1],s=(0,f.useRef)(a),c=st.usePrevious(n);(0,f.useEffect)((function(){c!==n&&a===c&&i(n)}),[n,a,c]);var u={onChange:function(e){if(e.target.value!==a&&function(e){return/^(\d{0,2}|\d{1,2}:\d{0,2})$/.test(e)}(e.target.value)){var n=function(e,t){return e&&t?2!==e.length||3===t.length||e.includes(":")?e.length+1===t.length&&t.indexOf(":")===t.length-1?e.slice(0,-1):e:"".concat(e,":"):e}(e.target.value,s.current),r=n.indexOf(":"),o=n.substring(0,r),c=n.substring(r+1),u=parseInt(o,10),l=parseInt(c,10),d=!o||!Number.isNaN(u)&&u<24,f=!c||!Number.isNaN(l)&&l<60;if(!d||!f)return!1;s.current=n,i(n);var p=Qf(n);p&&!Xf(p)||t(p)}},onBlur:function(){if(a!==n){var e=Qf(a);e&&Xf(e)?(s.current=e,i(e),t(e)):i(n)}},onFocus:function(e){a&&"function"==typeof e.target.select&&e.target.select()},value:a||""};return{inputProps:u,clearButtonProps:{onClick:function(){t(""),i("")}}}};var Jf=["value","onChange","onKeyDown"];function ep(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 tp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ep(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ep(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}fa();var np=function(e){var t=e.onChange,n=e.label;return(0,Ge.jsx)(Et,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},rp=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=Ve()(e,Jf),a=Zf(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,Ge.jsx)(Nf,tp(tp(tp({},a),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},op={strategy:"fixed"};const ap=(0,Me.SL)((0,d.injectIntl)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,a=e.maxDate,i=e.valueToDate,s=e.dateToValue,c=e.onChange,u=e.intl,l=e.placeholder,d=e.hasTime,p=e.dateFormats,h=void 0===p?[]:p,m=e.dateTimeFormats,g=void 0===m?[]:m,y=e.events,v=(0,f.useRef)(void 0),b=u.locale,w=function(e){return u.formatMessage({id:e})},O=(0,f.useRef)(null),x=Boolean(r),k=!t&&x,S=function(e){v.current=e,c(e)},E=Gf(r,S,{dateFormats:h,dateTimeFormats:g,minDate:o,maxDate:a,valueToDate:i,dateToValue:s,hasTime:d}),P=E.reactDatePickerProps,j=E.timeInputProps,_=E.clearButtonProps,D=E.calendarButtonProps,C=E.closeModal;return(0,f.useEffect)((function(){var e=function(){return C()},t=O.current;return t&&t.addEventListener("tableNavigationBlur",e),function(){t&&t.removeEventListener("tableNavigationBlur",e)}}),[C]),(0,Ge.jsx)(Af,{immutable:t,id:n,tabIndex:"-1",children:(0,Ge.jsxs)(If,{immutable:t,ref:O,hasTime:d,onBlur:function(e){if("function"==typeof(null==y?void 0:y.onBlur)){var t=void 0!==v.current?v.current:r;y.onBlur(t)}e.stopPropagation()},"data-custom-arrow-navigation":"datepicker",children:[(0,Ge.jsx)(ia(),tp(tp({id:n?"".concat(n,"-datepicker"):null,popperClassName:Yo},P),{},{disabled:t,dateFormat:[].concat(Ht()(g),Ht()(h)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,yearDropdownItemNumber:100,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,locale:b,timeInputLabel:w("client.component.datePicker.timeLabel"),customTimeInput:(0,Ge.jsx)(rp,tp({},j)),showTimeSelect:d,timeIntervals:15,popperProps:op,portalId:"react-datepicker",todayButton:(0,Ge.jsx)(np,{onChange:S,label:w("client.component.datePicker.todayLabel")})})),k&&(0,Ge.jsx)(At,tp({"data-cy":"btn-clear",icon:"times",tabIndex:-1,"aria-label":w("client.component.datePicker.clearDateLabel")},_)),!t&&(0,Ge.jsx)(At,tp({"data-cy":"btn-calendar",icon:"calendar",tabIndex:-1},D))]})})})));var ip,sp,cp,up,lp=Me.Ay.div.withConfig({displayName:"StyledDateInputWrapper"})(ip||(ip=Ce()(["\n &&&& {\n ","\n display: flex;\n width: 100%;\n position: relative;\n justify-content: space-between;\n align-items: center;\n }\n"])),si),dp=(0,Me.Ay)(At).withConfig({displayName:"StyledClearButton"})(sp||(sp=Ce()(["\n z-index: 1;\n position: relative;\n"]))),fp=Me.Ay.input.withConfig({displayName:"StyledDateInput"})(cp||(cp=Ce()(["\n &&&& {\n position: absolute;\n inset: 0;\n height: 100%;\n width: 100%;\n display: inline-block;\n opacity: 0;\n appearance: none;\n box-sizing: border-box;\n z-index: 0;\n }\n\n &::-webkit-calendar-picker-indicator {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n }\n"])));function pp(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 hp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pp(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const mp=(0,Me.SL)((0,d.injectIntl)((function(e){var t,n=e.value,r=e.onChange,o=e.immutable,a=e.hasTime,i=e.minDate,s=e.maxDate,c=e.format,u=e.intl,l=(0,f.useRef)(null),d=Boolean(n),p=!o&&d,h=function(e){return a?function(e){return e?(0,la.GPZ)(e,"yyyy-MM-dd'T'HH:mm"):e}(e):e},m=function(e){return a?function(e){return e?new Date(e).toISOString():e}(e):e};return(0,Ge.jsxs)(lp,{children:[(0,Ge.jsx)("span",{children:n?(0,la.GPZ)(n,c):""}),(0,Ge.jsxs)("span",{children:[(0,Ge.jsx)(fp,hp(hp(hp({type:a?"datetime-local":"date",value:h(n)||"",onChange:function(e){r(m(e.target.value))}},i?{min:h(i)}:{}),s?{max:h(s)}:{}),{},{ref:l})),p&&(0,Ge.jsx)(dp,{"data-cy":"btn-clear",icon:"times",tabIndex:-1,"aria-label":(t="client.component.datePicker.clearDateLabel",u.formatMessage({id:t})),onClick:function(e){r(null),e.preventDefault(),e.stopPropagation()}}),!o&&(up||(up=(0,Ge.jsx)(At,{"data-cy":"btn-calendar",icon:"calendar",tabIndex:-1})))]})]})})));function gp(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 yp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gp(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const vp=function(e){var t=e.onChange,n=e.options,r=e.id,o=e.value,a=e.immutable,i=e.events,s=e.placeholder,c=(0,d.useIntl)(),u=(null==n?void 0:n.datePickerOptions)||{},l="".concat(da.A.getLocalizedDateFormat(c.locale)),f=da.A.getLocalizedDateFormatWithoutPunctuation(c.locale),p=[l,f,da.A.useTwoDigitYear(l),da.A.useTwoDigitYear(f)];return Hl()?(0,Ge.jsx)(mp,yp({id:r,value:o,onChange:t,hasTime:!1,immutable:a,placeholder:s,events:i,format:l},u)):(0,Ge.jsx)(ap,yp({id:r,value:o,onChange:t,dateFormats:p,hasTime:!1,immutable:a,placeholder:s,events:i},u))};function bp(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 wp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bp(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Op=(0,d.injectIntl)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,a=e.placeholder,i=(0,d.useIntl)(),s=(null==n?void 0:n.datePickerOptions)||{},c="".concat(da.A.getLocalizedDateTimeFormat(i.locale)),u="".concat(da.A.getLocalizedDateFormat(i.locale)),l=da.A.getLocalizedDateTimeFormatWithoutPunctuation(i.locale),f=[c,l,da.A.useTwoDigitYear(c),da.A.useTwoDigitYear(l)],p=da.A.getLocalizedDateFormatWithoutPunctuation(i.locale),h=[u,p,da.A.useTwoDigitYear(u),da.A.useTwoDigitYear(p)];return Hl()?(0,Ge.jsx)(mp,wp({value:r,onChange:t,hasTime:!0,immutable:o,placeholder:a,format:c},s)):(0,Ge.jsx)(ap,wp({value:r,onChange:t,dateTimeFormats:f,dateFormats:h,hasTime:!0,immutable:o,placeholder:a},s))}));var xp,kp,Sp,Ep,Pp,jp,_p,Dp,Cp=Me.Ay.section.withConfig({displayName:"StyledSection"})(xp||(xp=Ce()(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),Tp=Me.Ay.div.withConfig({displayName:"StyledButtonsWrapper"})(kp||(kp=Ce()(["\n display: flex;\n align-items: center;\n\n "," {\n margin: 0;\n border-radius: 50%;\n padding: ",";\n\n a:hover {\n color: unset;\n }\n }\n"])),xt,Fe.hs.space(-2)),Mp=Me.Ay.div.withConfig({displayName:"StyledDropzone"})(Sp||(Sp=Ce()(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),xt,Fe.t7.color("backgroundItemHover")),Ap=Me.Ay.div.withConfig({displayName:"StyledUploadInput"})(Ep||(Ep=Ce()(["\n ","\n cursor: ",";\n background-color: ",";\n color: ",";\n padding: "," 0 0 0;\n display: flex;\n\n "," {\n float: right;\n position: relative;\n top: -",";\n margin: 0;\n border-radius: 50%;\n padding: ",";\n }\n"])),(0,Fe.Ed)(),(function(e){return e.immutable?"not-allowed":"pointer"}),Fe.t7.color("paper"),(function(e){return e.immutable?Fe.Db.shade2(e):Fe.Db.base(e)}),Fe.hs.space(-2),xt,Fe.hs.space(-3.1),Fe.hs.space(-1.5)),Ip=Me.Ay.div.withConfig({displayName:"StyledUploadProgress"})(Pp||(Pp=Ce()(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),Fe.hs.space(-2)),Np=(0,Me.Ay)(cr.oY).withConfig({displayName:"StyledUploadProgressText"})(jp||(jp=Ce()(["\n && {\n ","\n }\n"])),(0,Fe.Ed)({fontSize:Fe.hs.font(-1)})),Rp=Me.Ay.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(_p||(_p=Ce()(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),Fe.hs.space(-2)),Lp=Me.Ay.div.withConfig({displayName:"StyledView"})(Dp||(Dp=Ce()(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),Fe.hs.space(-2));function Fp(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))}function Hp(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}Object.create;function Wp(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Bp(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var Up=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Yp(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=Up.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var zp=[".DS_Store","Thumbs.db"];function Vp(e){return"object"==typeof e&&null!==e}function qp(e){return Xp(e.target.files).map((function(e){return Yp(e)}))}function Gp(e){return Fp(this,void 0,void 0,(function(){return Hp(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return Yp(e)}))]}}))}))}function Kp(e,t){return Fp(this,void 0,void 0,(function(){var n;return Hp(this,(function(r){switch(r.label){case 0:return e.items?(n=Xp(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(Qp))]):[3,2];case 1:return[2,$p(Zp(r.sent()))];case 2:return[2,$p(Xp(e.files).map((function(e){return Yp(e)})))]}}))}))}function $p(e){return e.filter((function(e){return-1===zp.indexOf(e.name)}))}function Xp(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function Qp(e){if("function"!=typeof e.webkitGetAsEntry)return Jp(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?th(t):Jp(e)}function Zp(e){return e.reduce((function(e,t){return Bp(Bp([],Wp(e),!1),Wp(Array.isArray(t)?Zp(t):[t]),!1)}),[])}function Jp(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Yp(t);return Promise.resolve(n)}function eh(e){return Fp(this,void 0,void 0,(function(){return Hp(this,(function(t){return[2,e.isDirectory?th(e):nh(e)]}))}))}function th(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var a=this;t.readEntries((function(t){return Fp(a,void 0,void 0,(function(){var a,i,s;return Hp(this,(function(c){switch(c.label){case 0:if(t.length)return[3,5];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return a=c.sent(),e(a),[3,4];case 3:return i=c.sent(),n(i),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(eh)),r.push(s),o(),c.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function nh(e){return Fp(this,void 0,void 0,(function(){return Hp(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=Yp(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var rh=c(9455);function oh(e){return function(e){if(Array.isArray(e))return lh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||uh(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ah(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 ih(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ah(Object(n),!0).forEach((function(t){sh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ah(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ch(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||uh(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uh(e,t){if(e){if("string"==typeof e)return lh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lh(e,t):void 0}}function lh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var dh="file-invalid-type",fh="file-too-large",ph="file-too-small",hh="too-many-files",mh=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:dh,message:"File type must be ".concat(t)}},gh=function(e){return{code:fh,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},yh=function(e){return{code:ph,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},vh={code:hh,message:"Too many files"};function bh(e,t){var n="application/x-moz-file"===e.type||(0,rh.A)(e,t);return[n,n?null:mh(t)]}function wh(e,t,n){if(Oh(e.size))if(Oh(t)&&Oh(n)){if(e.size>n)return[!1,gh(n)];if(e.size<t)return[!1,yh(t)]}else{if(Oh(t)&&e.size<t)return[!1,yh(t)];if(Oh(n)&&e.size>n)return[!1,gh(n)]}return[!0,null]}function Oh(e){return null!=e}function xh(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function kh(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function Sh(e){e.preventDefault()}function Eh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!xh(e)&&t&&t.apply(void 0,[e].concat(r)),xh(e)}))}}function Ph(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function jh(e){return/^.*\.[\w]+$/.test(e)}var _h=["children"],Dh=["open"],Ch=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Th=["refKey","onChange","onClick"];function Mh(e){return function(e){if(Array.isArray(e))return Nh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ih(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ah(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||Ih(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ih(e,t){if(e){if("string"==typeof e)return Nh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nh(e,t):void 0}}function Nh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rh(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 Lh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rh(Object(n),!0).forEach((function(t){Fh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hh(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Wh=(0,f.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Lh(Lh({},Bh),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,i=t.minSize,s=t.multiple,c=t.maxFiles,u=t.onDragEnter,l=t.onDragLeave,d=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,y=t.onFileDialogOpen,v=t.useFsAccessApi,b=t.autoFocus,w=t.preventDropOnDocument,O=t.noClick,x=t.noKeyboard,k=t.noDrag,S=t.noDragEventsBubbling,E=t.onError,P=t.validator,j=(0,f.useMemo)((function(){return function(e){if(Oh(e))return Object.entries(e).reduce((function(e,t){var n=ch(t,2),r=n[0],o=n[1];return[].concat(oh(e),[r],oh(o))}),[]).filter((function(e){return Ph(e)||jh(e)})).join(",")}(n)}),[n]),_=(0,f.useMemo)((function(){return function(e){if(Oh(e)){var t=Object.entries(e).filter((function(e){var t=ch(e,2),n=t[0],r=t[1],o=!0;return Ph(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(r)&&r.every(jh)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=ch(t,2),r=n[0],o=n[1];return ih(ih({},e),{},sh({},r,o))}),{});return[{description:"Files",accept:t}]}return e}(n)}),[n]),D=(0,f.useMemo)((function(){return"function"==typeof y?y:Vh}),[y]),C=(0,f.useMemo)((function(){return"function"==typeof g?g:Vh}),[g]),T=(0,f.useRef)(null),M=(0,f.useRef)(null),A=Ah((0,f.useReducer)(zh,Yh),2),I=A[0],N=A[1],R=I.isFocused,L=I.isFileDialogActive,F=(0,f.useRef)("undefined"!=typeof window&&window.isSecureContext&&v&&"showOpenFilePicker"in window),H=function(){!F.current&&L&&setTimeout((function(){M.current&&(M.current.files.length||(N({type:"closeDialog"}),C()))}),300)};(0,f.useEffect)((function(){return window.addEventListener("focus",H,!1),function(){window.removeEventListener("focus",H,!1)}}),[M,L,C,F]);var W=(0,f.useRef)([]),B=function(e){T.current&&T.current.contains(e.target)||(e.preventDefault(),W.current=[])};(0,f.useEffect)((function(){return w&&(document.addEventListener("dragover",Sh,!1),document.addEventListener("drop",B,!1)),function(){w&&(document.removeEventListener("dragover",Sh),document.removeEventListener("drop",B))}}),[T,w]),(0,f.useEffect)((function(){return!r&&b&&T.current&&T.current.focus(),function(){}}),[T,b,r]);var U=(0,f.useCallback)((function(e){E?E(e):console.error(e)}),[E]),Y=(0,f.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),W.current=[].concat(Mh(W.current),[e.target]),kh(e)&&Promise.resolve(o(e)).then((function(t){if(!xh(e)||S){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,a=e.multiple,i=e.maxFiles,s=e.validator;return!(!a&&t.length>1||a&&i>=1&&t.length>i)&&t.every((function(e){var t=ch(bh(e,n),1)[0],a=ch(wh(e,r,o),1)[0],i=s?s(e):null;return t&&a&&!i}))}({files:t,accept:j,minSize:i,maxSize:a,multiple:s,maxFiles:c,validator:P});N({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return U(e)}))}),[o,u,U,S,j,i,a,s,c,P]),z=(0,f.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=kh(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1}),[d,S]),V=(0,f.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=W.current.filter((function(e){return T.current&&T.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),W.current=t,t.length>0||(N({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),kh(e)&&l&&l(e))}),[T,l,S]),q=(0,f.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=Ah(bh(e,j),2),o=t[0],s=t[1],c=Ah(wh(e,i,a),2),u=c[0],l=c[1],d=P?P(e):null;if(o&&u&&!d)n.push(e);else{var f=[s,l];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter((function(e){return e}))})}})),(!s&&n.length>1||s&&c>=1&&n.length>c)&&(n.forEach((function(e){r.push({file:e,errors:[vh]})})),n.splice(0)),N({acceptedFiles:n,fileRejections:r,type:"setFiles"}),p&&p(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&h&&h(n,t)}),[N,s,j,i,a,c,p,h,m,P]),G=(0,f.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),W.current=[],kh(e)&&Promise.resolve(o(e)).then((function(t){xh(e)&&!S||q(t,e)})).catch((function(e){return U(e)})),N({type:"reset"})}),[o,q,U,S]),K=(0,f.useCallback)((function(){if(F.current){N({type:"openDialog"}),D();var e={multiple:s,types:_};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){q(e,null),N({type:"closeDialog"})})).catch((function(e){!function(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?U(e):(F.current=!1,M.current?(M.current.value=null,M.current.click()):U(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):(C(e),N({type:"closeDialog"}))}))}else M.current&&(N({type:"openDialog"}),D(),M.current.value=null,M.current.click())}),[N,D,C,v,q,U,_,s]),$=(0,f.useCallback)((function(e){T.current&&T.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),K()))}),[T,K]),X=(0,f.useCallback)((function(){N({type:"focus"})}),[]),Q=(0,f.useCallback)((function(){N({type:"blur"})}),[]),Z=(0,f.useCallback)((function(){O||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?K():setTimeout(K,0))}),[O,K]),J=function(e){return r?null:e},ee=function(e){return x?null:J(e)},te=function(e){return k?null:J(e)},ne=function(e){S&&e.stopPropagation()},re=(0,f.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.role,a=e.onKeyDown,i=e.onFocus,s=e.onBlur,c=e.onClick,u=e.onDragEnter,l=e.onDragOver,d=e.onDragLeave,f=e.onDrop,p=Hh(e,Ch);return Lh(Lh(Fh({onKeyDown:ee(Eh(a,$)),onFocus:ee(Eh(i,X)),onBlur:ee(Eh(s,Q)),onClick:J(Eh(c,Z)),onDragEnter:te(Eh(u,Y)),onDragOver:te(Eh(l,z)),onDragLeave:te(Eh(d,V)),onDrop:te(Eh(f,G)),role:"string"==typeof o&&""!==o?o:"presentation"},n,T),r||x?{}:{tabIndex:0}),p)}}),[T,$,X,Q,Z,Y,z,V,G,x,k,r]),oe=(0,f.useCallback)((function(e){e.stopPropagation()}),[]),ae=(0,f.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,a=Hh(e,Th);return Lh(Lh({},Fh({accept:j,multiple:s,type:"file",style:{display:"none"},onChange:J(Eh(r,G)),onClick:J(Eh(o,oe)),tabIndex:-1},n,M)),a)}}),[M,n,s,G,r]);return Lh(Lh({},I),{},{isFocused:R&&!r,getRootProps:re,getInputProps:ae,rootRef:T,inputRef:M,open:J(K)})}(Hh(e,_h)),o=r.open,a=Hh(r,Dh);return(0,f.useImperativeHandle)(t,(function(){return{open:o}}),[o]),h().createElement(f.Fragment,null,n(Lh(Lh({},a),{},{open:o})))}));Wh.displayName="Dropzone";var Bh={disabled:!1,getFilesFromEvent:function(e){return Fp(this,void 0,void 0,(function(){return Hp(this,(function(t){return Vp(e)&&Vp(e.dataTransfer)?[2,Kp(e.dataTransfer,e.type)]:function(e){return Vp(e)&&Vp(e.target)}(e)?[2,qp(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,Gp(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Wh.defaultProps=Bh,Wh.propTypes={children:_e().func,accept:_e().objectOf(_e().arrayOf(_e().string)),multiple:_e().bool,preventDropOnDocument:_e().bool,noClick:_e().bool,noKeyboard:_e().bool,noDrag:_e().bool,noDragEventsBubbling:_e().bool,minSize:_e().number,maxSize:_e().number,maxFiles:_e().number,disabled:_e().bool,getFilesFromEvent:_e().func,onFileDialogCancel:_e().func,onFileDialogOpen:_e().func,useFsAccessApi:_e().bool,autoFocus:_e().bool,onDragEnter:_e().func,onDragLeave:_e().func,onDragOver:_e().func,onDrop:_e().func,onDropAccepted:_e().func,onDropRejected:_e().func,onError:_e().func,validator:_e().func};const Uh=Wh;var Yh={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function zh(e,t){switch(t.type){case"focus":return Lh(Lh({},e),{},{isFocused:!0});case"blur":return Lh(Lh({},e),{},{isFocused:!1});case"openDialog":return Lh(Lh({},Yh),{},{isFileDialogActive:!0});case"closeDialog":return Lh(Lh({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Lh(Lh({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Lh(Lh({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Lh({},Yh);default:return e}}function Vh(){}function qh(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 Gh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qh(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Kh=(0,d.injectIntl)((function(e){var t=e.id,n=e.onDrop,r=e.immutable,o=e.text,a=e.onChoose,i=e.intl,s=function(e){return i.formatMessage({id:e})};return(0,Ge.jsxs)(Ap,{immutable:r,"data-cy":"upload-".concat(t),children:[(0,Ge.jsx)(Uh,{onDrop:function(e){var t=e.map((function(e){return Object.assign(e,{preview:URL.createObjectURL(e)})}));n(t[0])},multiple:!1,disabled:r,title:o||"drag and drop or click",children:function(e){var n=e.getRootProps,r=e.getInputProps;return(0,Ge.jsx)(Cp,{children:(0,Ge.jsxs)(Mp,Gh(Gh({},n()),{},{children:[(0,Ge.jsx)("input",Gh({},r())),(0,Ge.jsx)(Et,{icon:"arrow-to-top",label:s("client.component.upload.uploadFile"),iconOnly:!0,"data-cy":"btn-upload-".concat(t)})]}))})}}),a&&(0,Ge.jsx)(Et,{onClick:function(e){a(),e.stopPropagation()},icon:"folder",label:s("client.component.upload.browseDocs"),iconOnly:!0})]})}));var $h,Xh=Me.Ay.figure.withConfig({displayName:"StyledPreview"})($h||($h=Ce()(["\n && {\n vertical-align: top;\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n margin: 0; /* reset css overwrite */\n\n img {\n margin-top: ",";\n border: 1px solid ",";\n border-radius: ",";\n max-width: ",";\n max-height: ",";\n min-width: 90px; /* prevent collapse to 1px if there is no preview generated */\n }\n\n figcaption {\n text-align: center;\n }\n }\n"])),Fe.hs.space(-2.2),Fe.t7.color("border"),Fe.t7.radii("form"),(function(e){return e.maxDimensionX||"100%"}),(function(e){return e.maxDimensionY||"100%"}));const Qh=Xh;var Zh;const Jh=function(e){var t=e.thumbnailUrl,n=e.alt,r=e.srcUrl,o=(e.fileName,e.caption),a=e.maxDimensionX,i=e.maxDimensionY,s=t?(0,Ge.jsx)("img",{alt:n,title:n,src:t}):(0,Ge.jsx)("div",{title:n,children:Zh||(Zh=(0,Ge.jsx)(qe.A,{icon:"file-alt"}))});return(0,Ge.jsxs)(Qh,{maxDimensionX:a,maxDimensionY:i,children:[(0,Ge.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:r,children:s}),o&&(0,Ge.jsx)(cr.Ay.Figcaption,{children:o})]})};var em=function(e){var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat(1*(e/Math.pow(1024,t)).toFixed(2)," ").concat(["Bytes","KB","MB","GB","TB"][t])};const tm=function(e){var t=e.file,n=e.text;return(0,Ge.jsxs)(Ip,{children:[(0,Ge.jsx)(Jh,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,Ge.jsxs)(Rp,{children:[(0,Ge.jsx)(Qe,{position:Fe.xX.position.PREPEND}),(0,Ge.jsxs)(Np,{children:[n||"uploading"," (",em(t.size),")"]})]})]})};var nm=function(e,t,n){return"".concat(e).concat(e&&e.indexOf("?")>=0?"&":"?").concat(t,"=").concat(n)};const rm={downloadUrl:function(e,t){var n=document.createElement("a");n.href=e,n.download=t||e.split("/").pop(),n.target="_blank",document.body.appendChild(n),n.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(e),n.remove&&n.remove()},downloadReadableStream:function(e,t){var n=document.createElement("a"),r=URL.createObjectURL(e);n.href=r,n.download=t,n.target="_blank",document.body.appendChild(n),n.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(r),n.remove&&n.remove()},openUrl:function(e){var t=document.createElement("a");t.href=e,t.target="_blank",document.body.appendChild(t),t.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(e),t.remove&&t.remove()},downloadSupportedByBrowser:function(){var e=document.createElement("a"),t=void 0!==e.download;return e.remove&&e.remove(),t},getDownloadUrl:function(e){return nm(e,"download",!0)},addParameterToURL:nm};function om(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 am(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?om(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):om(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const im=function(e){var t,n=e.value,r=e.downloadTitle,o=e.immutable,a=e.onUpload,i=e.deleteTitle,s=null===(t=n.binaryLink)||void 0===t?void 0:t.startsWith("blob:");return(0,Ge.jsxs)(Lp,{className:"StyledView",children:[(0,Ge.jsx)(Jh,am(am({alt:n.fileName},s&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,Ge.jsxs)(Tp,{children:[!o&&(0,Ge.jsx)(Et,{icon:"trash",onClick:function(){return a(null)},tabIndex:-1,title:i||"delete"}),(0,Ge.jsx)(Et,{children:(0,Ge.jsx)(oi.Ay,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:rm.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function sm(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 cm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sm(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const um=function(e){var t=e.value,n=e.textResources,r=void 0===n?{}:n,o=e.onUpload,a=e.onChoose,i=(0,f.useRef)(t),s=(0,f.useState)({isUploading:!1,previewFile:null}),c=Je()(s,2),u=c[0],l=c[1];return(0,f.useEffect)((function(){Qn()(i.current,t)||l({isUploading:!1,previewFile:null}),i.current=t}),[t]),null!=t&&t.binaryLink?(0,Ge.jsx)(im,cm(cm({},e),{},{deleteTitle:r.delete,downloadTitle:r.download})):u.isUploading?(0,Ge.jsx)(tm,cm({file:u.previewFile,text:r.uploading},e)):(0,Ge.jsx)(Kh,cm(cm({},e),{},{onDrop:function(e){!function(e){l({isUploading:!0,previewFile:e})}(e),o(e)},onChoose:a}))};const lm=function(e){var t=e.id,n=e.onChange,r=e.options,o=void 0===r?{}:r,a=e.immutable,i=e.value;return(0,Ge.jsx)(um,{id:t,onUpload:function(e){null===e?n&&n(null):o.upload&&o.upload(e)},onChoose:o.choose,immutable:a,textResources:{upload:o.uploadText,uploading:o.uploadingText,delete:o.deleteText,download:o.downloadText},value:i||null})};var dm,fm,pm=Me.Ay.input.withConfig({displayName:"StyledDurationEdit"})(dm||(dm=Ce()(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),si,(function(e){return e.width})),hm=Me.Ay.label.withConfig({displayName:"StyledDurationEditFocusable"})(fm||(fm=Ce()(["\n &&& {\n align-items: center;\n display: flex;\n flex-wrap: nowrap;\n margin-bottom: 0; /* reset bootstrap */\n margin-left: ",";\n\n &:first-child {\n margin-left: 0;\n }\n\n > span {\n color: ",";\n cursor: ",";\n }\n }\n"])),Fe.hs.space(1),(function(e){return e.immutable?Fe.t7.color("textDisabled"):Fe.t7.color("text")}),(function(e){return e.immutable&&"text"}));const mm=function(e){var t=e.id,n=e.value,r=e.immutable,o=e.onChange,a=e.options,i=void 0===a?{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}:a,s=da.A.millisecondsToDuration(n),c=(0,f.useState)(!1),u=Je()(c,2),l=u[0],d=u[1],p=function(e,t){var n,r,a=null!==t?t:s.minutes,i=null!==e?e:s.hours;""!==a||""!==i?(a>=60&&(i=0),o((r=a,(n=i)||r?((n<0||r<0)&&(n=di(n),r=di(r)),60*(n||0)*6e4+6e4*(r||0)):null))):o(null)},h=function(){d(!0)},m=function(e){e.charCode>=48&&e.charCode<=57||45===e.charCode&&!0===i.allowNegative||e.preventDefault()},g=function(){return!0===i.allowNegative?"-?d+":"d+"},y=function(){return l||"number"==typeof n},v=function(e){return 9*(e+"").length},b=r&&Boolean(s.seconds);return(0,Ge.jsxs)(ii,{onBlur:function(){d(!1)},immutable:r,id:t,children:[(0,Ge.jsxs)(hm,{immutable:r,children:[(0,Ge.jsx)(pm,{disabled:r,immutable:r,min:!0===i.allowNegative?void 0:0,onChange:function(){},onFocus:h,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");p(t,null)},onKeyPress:m,pattern:g(),step:1,width:v(s.hours),type:"number",value:"number"!=typeof s.hours||0===s.hours&&!r?"":s.hours+"","data-cy":"input-hours"}),y()&&(0,Ge.jsx)(cr.Ay.Span,{children:i.hoursLabel})]}),(0,Ge.jsxs)(hm,{immutable:r,children:[(0,Ge.jsx)(pm,{disabled:r,immutable:r,min:!0!==i.allowNegative||null!==s.hours&&0!==s.hours?0:void 0,onChange:function(){},onFocus:h,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");p(null,t)},onKeyPress:m,pattern:g(),step:1,width:v(s.minutes),type:"number",value:s.minutes+"","data-cy":"input-minutes"}),y()&&(0,Ge.jsx)(cr.Ay.Span,{children:i.minutesLabel})]}),b&&(0,Ge.jsxs)(hm,{immutable:r,children:[(0,Ge.jsx)(pm,{disabled:r,immutable:r,onChange:function(){},width:v(s.seconds),type:"number",value:s.seconds+""}),y()&&(0,Ge.jsx)(cr.Ay.Span,{children:i.secondsLabel})]})]})};var gm;const ym=Me.Ay.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(gm||(gm=Ce()(["\n &&&& {\n ","\n }\n"])),si);const vm=st.Debouncer((function(e){return(0,Ge.jsxs)(ii,{immutable:e.immutable,children:[(0,Ge.jsx)(ym,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||""}),e.value&&(0,Ge.jsx)(ui,{children:(0,Ge.jsx)(oi.Ay,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));var bm=c(67197),wm=c.n(bm),Om=c(44383),xm=c.n(Om);function km(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 Sm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?km(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):km(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Em(){Em=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var a=RegExp(e,r);return t.set(a,o||t.get(e)),wm()(a,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var a=0;void 0===e[o[a]]&&a+1<o.length;)a++;t[n]=e[o[a]]}return t}),Object.create(null))}return Pe()(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var a=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=a[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var i=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=$n()(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,i)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},Em.apply(this,arguments)}var Pm,jm=["key","display","postcode","city","country","latitude","longitude"],_m=function(e){return e*Math.PI/180},Dm=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=e.latitude,i=e.longitude,s=t?"- ".concat(t):"",c=n?"/ ".concat(n.display):"";return{key:r,display:"".concat(r," ").concat(o," ").concat(s," ").concat(c),postcode:r,city:o,country:n,latitude:_m(a),longitude:_m(i)}};function Cm(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Tm(){}function Mm(e){return!!(e||"").match(/\d/)}function Am(e){return null==e}function Im(e){return Am(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function Nm(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Rm(e,t){void 0===t&&(t=!0);var n="-"===e[0],r=n&&t,o=(e=e.replace("-","")).split(".");return{beforeDecimal:o[0],afterDecimal:o[1]||"",hasNegation:n,addNegation:r}}function Lm(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function Fm(e,t){return Array(t+1).join(e)}function Hm(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],a=r[1];if(!(a=Number(a)))return n+o;var i=1+a,s=(o=o.replace(".","")).length;return i<0?o="0."+Fm("0",Math.abs(i))+o:i>=s?o+=Fm("0",i-s):o=(o.substring(0,i)||"0")+"."+o.substring(i),n+o}function Wm(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=Rm(e),a=o.beforeDecimal,i=o.afterDecimal,s=o.hasNegation,c=parseFloat("0."+(i||"0")),u=(i.length<=t?"0."+i:c.toFixed(t)).split("."),l=a;return a&&Number(u[0])&&(l=a.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),u[0])),""+(s?"-":"")+l+(r?".":"")+Lm(u[1]||"",t,n)}function Bm(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}!function(e){e.event="event",e.props="prop"}(Pm||(Pm={}));var Um,Ym,zm,Vm=(Um=function(e,t){for(var n=0,r=0,o=e.length,a=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[a-1-r]&&a-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:a-r}}},zm=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Ym&&e.length===Ym.length&&e.every((function(e,t){return e===Ym[t]}))?zm:(Ym=e,zm=Um.apply(void 0,e))}),qm=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function Gm(e){return Math.max(e.selectionStart,e.selectionEnd)}function Km(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function $m(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function Xm(e,t,n,r){var o=e.length;if(t=function(e,t,n){return Math.min(Math.max(e,t),n)}(t,0,o),"left"===r){for(;t>=0&&!n[t];)t--;-1===t&&(t=n.indexOf(!0))}else{for(;t<=o&&!n[t];)t++;t>o&&(t=n.lastIndexOf(!0))}return-1===t&&(t=o),t}function Qm(e){for(var t=Array.from({length:e.length+1}).map((function(){return!0})),n=0,r=t.length;n<r;n++)t[n]=Boolean(Mm(e[n])||Mm(e[n-1]));return t}function Zm(e,t,n,r,o,a){void 0===a&&(a=Tm);var i=function(e){var t=(0,f.useRef)(e);t.current=e;var n=(0,f.useRef)((function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}));return n.current}((function(e,t){var n,a;return Im(e)?(a="",n=""):"number"==typeof e||t?(a="number"==typeof e?Hm(e):e,n=r(a)):(a=o(e,void 0),n=r(a)),{formattedValue:n,numAsString:a}})),s=(0,f.useState)((function(){return i(Am(e)?t:e,n)})),c=s[0],u=s[1],l=e,d=n;Am(e)&&(l=c.numAsString,d=!0);var p=i(l,d);return(0,f.useMemo)((function(){u(p)}),[p.formattedValue]),[c,function(e,t){e.formattedValue!==c.formattedValue&&u({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}]}function Jm(e){return e.replace(/[^0-9]/g,"")}function eg(e){return e}function tg(e){var t=e.type;void 0===t&&(t="text");var n=e.displayType;void 0===n&&(n="input");var r=e.customInput,o=e.renderText,a=e.getInputRef,i=e.format;void 0===i&&(i=eg);var s=e.removeFormatting;void 0===s&&(s=Jm);var c=e.defaultValue,u=e.valueIsNumericString,l=e.onValueChange,d=e.isAllowed,p=e.onChange;void 0===p&&(p=Tm);var m=e.onKeyDown;void 0===m&&(m=Tm);var g=e.onMouseUp;void 0===g&&(g=Tm);var y=e.onFocus;void 0===y&&(y=Tm);var v=e.onBlur;void 0===v&&(v=Tm);var b=e.value,w=e.getCaretBoundary;void 0===w&&(w=Qm);var O=e.isValidInputCharacter;void 0===O&&(O=Mm);var x=e.isCharacterSame,k=Cm(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),S=Zm(b,c,Boolean(u),i,s,l),E=S[0],P=E.formattedValue,j=E.numAsString,_=S[1],D=(0,f.useRef)(),C=(0,f.useRef)({formattedValue:P,numAsString:j}),T=function(e,t){C.current={formattedValue:e.formattedValue,numAsString:e.value},_(e,t)},M=(0,f.useState)(!1),A=M[0],I=M[1],N=(0,f.useRef)(null),R=(0,f.useRef)({setCaretTimeout:null,focusTimeout:null});(0,f.useEffect)((function(){return I(!0),function(){clearTimeout(R.current.setCaretTimeout),clearTimeout(R.current.focusTimeout)}}),[]);var L=i,F=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},H=function(e,t,n){0===e.selectionStart&&e.selectionEnd===e.value.length||(Bm(e,t),R.current.setCaretTimeout=setTimeout((function(){e.value===n&&e.selectionStart!==t&&Bm(e,t)}),0))},W=function(e,t,n){return Xm(e,t,w(e),n)},B=function(e,t,n){var r=w(t),o=function(e,t,n,r,o,a,i){void 0===i&&(i=$m);var s=o.findIndex((function(e){return e})),c=e.slice(0,s);t||n.startsWith(c)||(t=c,n=c+n,r+=c.length);for(var u=n.length,l=e.length,d={},f=new Array(u),p=0;p<u;p++){f[p]=-1;for(var h=0,m=l;h<m;h++)if(i({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:h})&&!0!==d[h]){f[p]=h,d[h]=!0;break}}for(var g=r;g<u&&(-1===f[g]||!a(n[g]));)g++;var y=g===u||-1===f[g]?l:f[g];for(g=r-1;g>0&&-1===f[g];)g--;var v=-1===g||-1===f[g]?0:f[g]+1;return v>y?y:r-v<y-r?v:y}(t,P,e,n,r,O,x);return o=Xm(t,o,r)};(0,f.useEffect)((function(){var e=C.current,t=e.formattedValue,n=e.numAsString;P===t&&j===n||T(F(P,j),{event:void 0,source:Pm.props})}),[P,j]);var U=N.current?Gm(N.current):void 0;("undefined"!=typeof window?f.useLayoutEffect:f.useEffect)((function(){var e=N.current;if(P!==C.current.formattedValue&&e){var t=B(C.current.formattedValue,P,U);e.value=P,H(e,t,P)}}),[P]);var Y=function(e,t,n){var r=t.target,o=D.current?qm(D.current,r.selectionEnd):Vm(P,e),a=Object.assign(Object.assign({},o),{lastValue:P}),i=s(e,a),c=L(i);if(i=s(c,void 0),d&&!d(F(c,i))){var u=t.target,l=Gm(u),f=B(e,P,l);return u.value=P,H(u,f,P),!1}return function(e){var t=e.formattedValue;void 0===t&&(t="");var n,r=e.input,o=e.source,a=e.event,i=e.numAsString;if(r){var s=e.inputValue||r.value,c=Gm(r);r.value=t,void 0!==(n=B(s,t,c))&&H(r,n,t)}t!==P&&T(F(t,i),{event:a,source:o})}({formattedValue:c,numAsString:i,inputValue:e,event:t,source:n,input:t.target}),!0},z=function(e,t){void 0===t&&(t=0);var n=e.selectionStart,r=e.selectionEnd;D.current={selectionStart:n,selectionEnd:r+t}},V=!A||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",q=Object.assign({inputMode:V},k,{type:t,value:P,onChange:function(e){var t=e.target.value;Y(t,e,Pm.event)&&p(e),D.current=void 0},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,a=n.selectionEnd,i=n.value;void 0===i&&(i=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,i.length):"Delete"===r&&(t=o);var s=0;"Delete"===r&&o===a&&(s=1);var c="ArrowLeft"===r||"ArrowRight"===r;if(void 0===t||o!==a&&!c)return m(e),void z(n,s);var u=t;c?(u=W(i,t,"ArrowLeft"===r?"left":"right"))!==t&&e.preventDefault():"Delete"!==r||O(i[t])?"Backspace"!==r||O(i[t])||(u=W(i,t,"left")):u=W(i,t,"right");u!==t&&H(n,u,i),m(e),z(n,s)},onMouseUp:function(e){var t=e.target,n=function(){var e=t.selectionStart,n=t.selectionEnd,r=t.value;if(void 0===r&&(r=""),e===n){var o=W(r,e);o!==e&&H(t,o,r)}};n(),requestAnimationFrame((function(){n()})),g(e),z(t)},onFocus:function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;N.current=t,R.current.focusTimeout=setTimeout((function(){var r=t.selectionStart,o=t.selectionEnd,a=t.value;void 0===a&&(a="");var i=W(a,r);i===r||0===r&&o===a.length||H(t,i,a),y(Object.assign(Object.assign({},e),{currentTarget:n}))}),0)},onBlur:function(e){N.current=null,clearTimeout(R.current.focusTimeout),clearTimeout(R.current.setCaretTimeout),v(e)}});if("text"===n)return o?h().createElement(h().Fragment,null,o(P,k)||null):h().createElement("span",Object.assign({},k,{ref:a}),P);if(r){var G=r;return h().createElement(G,Object.assign({},q,{ref:a}))}return h().createElement("input",Object.assign({},q,{ref:a}))}function ng(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var a=t.suffix;void 0===a&&(a="");var i=t.allowNegative,s=t.thousandsGroupStyle;if(void 0===s&&(s="thousand"),""===e||"-"===e)return e;var c=rg(t),u=c.thousandSeparator,l=c.decimalSeparator,d=0!==n&&-1!==e.indexOf(".")||n&&r,f=Rm(e,i),p=f.beforeDecimal,h=f.afterDecimal,m=f.addNegation;return void 0!==n&&(h=Lm(h,n,!!r)),u&&(p=function(e,t,n){var r=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),o=e.search(/[1-9]/);return o=-1===o?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}(p,u,s)),o&&(p=o+p),a&&(h+=a),m&&(p="-"+p),e=p+(d&&l||"")+h}function rg(e){var t=e.decimalSeparator;void 0===t&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return!0===n&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function og(e,t,n){var r;void 0===t&&(t=Km(e));var o=n.allowNegative,a=n.prefix;void 0===a&&(a="");var i=n.suffix;void 0===i&&(i="");var s=n.decimalScale,c=t.from,u=t.to,l=u.start,d=u.end,f=rg(n),p=f.allowedDecimalSeparators,h=f.decimalSeparator,m=e[d]===h;if(Mm(e)&&(e===a||e===i)&&""===t.lastValue)return e;if(d-l==1&&-1!==p.indexOf(e[l])){var g=0===s?"":h;e=e.substring(0,l)+g+e.substring(l+1,e.length)}var y=function(e,t,n){var r=!1,o=!1;a.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):i.startsWith("-")&&e.length===i.length?r=!1:"-"===e[0]&&(r=!0);var s=r?1:0;return o&&(s=2),s&&(e=e.substring(s),t-=s,n-=s),{value:e,start:t,end:n,hasNegation:r}},v=y(e,l,d),b=v.hasNegation;e=(r=v).value,l=r.start,d=r.end;var w=y(t.lastValue,c.start,c.end),O=w.start,x=w.end,k=w.value,S=e.substring(l,d);!(e.length&&k.length&&(O>k.length-i.length||x<a.length))||S&&i.startsWith(S)||(e=k);var E=0;e.startsWith(a)?E+=a.length:l<a.length&&(E=l),d-=E;var P=(e=e.substring(E)).length,j=e.length-i.length;e.endsWith(i)?P=j:(d>j||d>e.length-i.length)&&(P=d),e=e.substring(0,P),e=function(e,t){void 0===e&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&t&&(e="-"+e),e}(b?"-"+e:e,o),e=(e.match(function(e,t){return new RegExp("(^-)|[0-9]|"+Nm(e),t?"g":void 0)}(h,!0))||[]).join("");var _=e.indexOf(h);e=e.replace(new RegExp(Nm(h),"g"),(function(e,t){return t===_?".":""}));var D=Rm(e,o),C=D.beforeDecimal,T=D.afterDecimal,M=D.addNegation;return u.end-u.start<c.end-c.start&&""===C&&m&&!parseFloat(T)&&(e=M?"-":""),e}function ag(e){e=function(e){var t=rg(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var a=e.allowNegative;if(void 0===a&&(a=!0),n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+r+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&a&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+a+"\n "),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}(e);e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=Tm);var a=e.onBlur;void 0===a&&(a=Tm);var i=e.thousandSeparator,s=e.decimalScale,c=e.fixedDecimalScale,u=e.prefix;void 0===u&&(u="");var l=e.defaultValue,d=e.value,f=e.valueIsNumericString,p=e.onValueChange,h=Cm(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=rg(e),g=m.decimalSeparator,y=m.allowedDecimalSeparators,v=function(t){return ng(t,e)},b=function(t,n){return og(t,n,e)},w=Am(d)?l:d,O=null!=f?f:function(e,t,n){return""===e||!(null==t?void 0:t.match(/\d/))&&!(null==n?void 0:n.match(/\d/))&&"string"==typeof e&&!isNaN(Number(e))}(w,u,t);Am(d)?Am(l)||(O=O||"number"==typeof l):O=O||"number"==typeof d;var x=function(e){return Im(e)?e:("number"==typeof e&&(e=Hm(e)),O&&"number"==typeof s?Wm(e,s,Boolean(c)):e)},k=Zm(x(d),x(l),Boolean(O),v,b,p),S=k[0],E=S.numAsString,P=S.formattedValue,j=k[1];return Object.assign(Object.assign({},h),{value:P,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===g||Mm(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,o=e.currentValueIndex,a=e.formattedValueIndex,i=t[o],l=r[a],f=Vm(n,t).to,p=function(e){return b(e).indexOf(".")+u.length};return!(0===d&&c&&s&&t[f.start]===g&&p(t)<o&&p(r)>a)&&(!!(o>=f.start&&o<f.end&&y&&y.includes(i)&&l===g)||i===l)},onValueChange:j,format:v,removeFormatting:b,getCaretBoundary:function(t){return function(e,t){var n=t.prefix;void 0===n&&(n="");var r=t.suffix;void 0===r&&(r="");var o=Array.from({length:e.length+1}).map((function(){return!0})),a="-"===e[0];o.fill(!1,0,n.length+(a?1:0));var i=e.length;return o.fill(!1,i-r.length+1,i+1),o}(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,a=t.selectionStart,l=t.selectionEnd,d=t.value;if(void 0===d&&(d=""),("Backspace"===r||"Delete"===r)&&l<u.length)e.preventDefault();else if(a===l){"Backspace"===r&&"-"===d[0]&&a===u.length+1&&n&&Bm(t,1),s&&c&&("Backspace"===r&&d[a-1]===g?(Bm(t,a-1),e.preventDefault()):"Delete"===r&&d[a]===g&&e.preventDefault()),(null==y?void 0:y.includes(r))&&d[a]===g&&Bm(t,a+1);var f=!0===i?",":i;"Backspace"===r&&d[a-1]===f&&Bm(t,a-1),"Delete"===r&&d[a]===f&&Bm(t,a+1),o(e)}else o(e)},onBlur:function(t){var n=E;if(n.match(/\d/g)||(n=""),r||(n=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}(n)),c&&s&&(n=Wm(n,s,c)),n!==E){var o=ng(n,e);j({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:Pm.event})}a(t)}})}function ig(e){var t=ag(e);return h().createElement(tg,Object.assign({},t))}var sg,cg=["immutable"];function ug(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}var lg=(0,Me.Ay)((function(e){e.immutable;var t=Ve()(e,cg);return(0,Ge.jsx)(ig,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ug(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ug(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(sg||(sg=Ce()(["\n &&&& {\n ","\n }\n"])),si);const dg=lg;function fg(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 pg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fg(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hg=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},mg=function(e){return null!=e&&!isNaN(parseFloat(e))},gg=function(e,t,n){return!mg(n)||!(mg(t)&&n>t)&&!(mg(e)&&n<e)},yg=function(e,t){return function(n){var r=n.floatValue;return hg(r)<hg(e)||gg(e,t,r)}};const vg=(0,d.injectIntl)(st.Debouncer((function(e){var t,n=(t=e.intl.locale,{thousandSeparator:1111..toLocaleString(t).replace(/1/g,""),decimalSeparator:1.1.toLocaleString(t).replace(/1/g,"")}),r=n.thousandSeparator,o=n.decimalSeparator,a=e.options||{},i=a.prePointDigits,s=a.postPointDigits,c=a.minValue,u=a.maxValue,l=a.allowNegative,d=a.fixedDecimalScale,f=a.suffix,p=a.prefix,h=a.format,m=function(e,t,n){if(e){var r=Math.pow(10,e)-(t?1/Math.pow(10,t):1);return n&&n>r?n:r}return n}(i,s,u),g=pg(pg({isAllowed:yg(c,m),allowNegative:!!l},isNaN(s)?{}:{decimalScale:s}),{},{fixedDecimalScale:!!d}),y=void 0===e.value||null===e.value?"":e.value;return(0,Ge.jsx)(ii,{immutable:e.immutable,children:(0,Ge.jsx)(dg,pg(pg({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&gg(c,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:y,suffix:f,prefix:p},g),{},{format:h,placeholder:e.placeholder,onBlur:function(t){var n,r=!(n=t.target.value)||isNaN(n)?null:parseFloat(n);e.onChange&&!gg(c,m,r)&&(t.target.value=null)}}))})}),800));const bg=st.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.options,o=e.immutable,a=e.name,i=e.id,s=e.placeholder,c=r||{},u=c.minValue,l=c.maxValue,d=c.format,f=c.allowLeadingZeros,p=c.suffix,h=null==t?"":t;return(0,Ge.jsx)(ii,{immutable:o,children:(0,Ge.jsx)(dg,{isAllowed:yg(u,l),allowNegative:!0,decimalScale:0,disabled:o,id:i,name:a,onValueChange:function(e){var t=e.value,r=e.floatValue,o=f?t:r;void 0===o&&(o=null),gg(u,l,r)&&n(o)},value:h,allowLeadingZeros:f,suffix:p,format:d,placeholder:s,immutable:o})})}),800);var wg,Og,xg,kg=Me.Ay.div.withConfig({displayName:"StyledWrapper"})(wg||(wg=Ce()(["\n display: flex;\n justify-content: stretch;\n"]))),Sg=Me.Ay.div.withConfig({displayName:"StyledLocationWrapper"})(Og||(Og=Ce()(["\n flex-grow: 1;\n"]))),Eg=Me.Ay.div.withConfig({displayName:"StyledDistanceWrapper"})(xg||(xg=Ce()(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),Fe.t7.color("border"),Fe.hs.space(-.8),Fe.hs.space(.5));function Pg(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 jg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pg(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const _g=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.onChange,a=e.options,i=void 0===a?{}:a,s=i.suggestions,c=i.isLoading,u=i.fetchSuggestions,l=i.latitudeField,d=i.longitudeField,f=i.emptySearchText,p=i.noResultsText,h=i.kmSuffixText,m=r?r.distance:0,g=function(e){return null!=e&&e.latitude&&null!=e&&e.longitude?xm()(e,jm):void 0}(r),y=function(e){return e?e.map(Dm):[]}(s);return(0,Ge.jsxs)(kg,{children:[(0,Ge.jsx)(Sg,{children:(0,Ge.jsx)(rf,{id:t,immutable:n,onChange:function(e){o(jg(jg({},function(e,t){return t?Sm(Sm({},e),xm()(t,jm)):Yr()(e,jm)}(r,e)),{},{latitudeField:l,longitudeField:d}))},isLoading:c,options:y,searchOptions:function(e){var t=function(e){if(!e)return null;var t=Ht()(e.matchAll(Em(/([\d]*)([^\d\s]*)/g,{postcode:1,city:2}))).map((function(e){return e.groups})),n=t.find((function(e){return e.postcode})),r=t.find((function(e){return e.city}));return Sm(Sm({},r?{city:r.city}:{}),n?{postcode:n.postcode}:{})}(e);u(t,null)},fetchOptions:function(e){e||u(null,null)},value:g,noResultsComp:function(e){return e.inputValue?p:f}})}),(0,Ge.jsx)(Eg,{children:(0,Ge.jsx)(bg,{value:m,onChange:function(e){o(jg(jg({},r),{},{distance:e}))},immutable:n,options:{minValue:0,maxValue:100,suffix:" ".concat(h)}})})]})};var Dg,Cg=(0,f.lazy)((function(){return c.e(262).then(c.bind(c,8810))}));const Tg=function(e){var t=e.id,n=e.onChange,r=e.immutable,o=e.value,a=void 0===o?"":o,i=e.options;if(r)return(0,Ge.jsx)(cr.Ay.Span,{children:(0,Ge.jsx)("div",{dangerouslySetInnerHTML:{__html:a}})});var s=i||{},c=s.contentLang,u=s.defaultLinkTarget,l=s.ckEditorConfig;return(0,Ge.jsx)(f.Suspense,{fallback:Dg||(Dg=(0,Ge.jsx)("i",{})),children:(0,Ge.jsx)(Cg,{id:t,onChange:function(e){n&&n(e)},value:a,contentLang:c,defaultLinkTarget:u,ckEditorConfig:l})})};var Mg,Ag;function Ig(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 Ng(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ig(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ig(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Rg=function(e){var t=e.onChange,n=e.options,r=e.value,o=e.id,a=e.immutable,i=e.name,s=function(e){return function(t){return t[e]}},c=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=t?"- ".concat(t):"",i=n?"/ ".concat(n.display):"";return(0,Ge.jsxs)(cr.Ay.Span,{children:[r," ",o," ",a," ",i]})},u=function(e){return function(n,o){var a=o.newValue;t(Ng(Ng({},r),{},Ye()({},e,a)))}},l=function(e,r){var o=r.suggestion;!0===o.validationRequired?n.validateLocation(o,t):t(o)},d=function(e){return function(t){var r=t.value;n.fetchSuggestions(Ye()({},e,r),n.locationValues.country)}},f={id:o,value:r.postcode||"",onChange:u("postcode"),disabled:a},p={value:r.city||"",onChange:u("city"),disabled:a};return(0,Ge.jsx)(Ka,{children:function(e){var t,o=e.focused,u=e.getRef;return(0,Ge.jsxs)(mi,{immutable:a,name:i,ref:u,children:[(0,Ge.jsx)(Ba(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d("postcode"),getSuggestionValue:s("postcode"),renderSuggestion:c,onSuggestionsClearRequested:function(){},inputProps:f,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(o||r.city||r.postcode)&&(Mg||(Mg=(0,Ge.jsx)(cr.Ay.Span,{children:"/"}))),(0,Ge.jsx)(Ba(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d("city"),getSuggestionValue:s("city"),renderSuggestion:c,onSuggestionsClearRequested:function(){},inputProps:p,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(0,Ge.jsxs)(ui,{children:[n.isLoading&&(Ag||(Ag=(0,Ge.jsx)(Qe,{size:"1.8rem"}))),(t=n.locationValues,Boolean(t.city||t.postcode)&&!t.street&&(0,Ge.jsx)(oi.Ay,{href:fi(n.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:n.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};function Lg(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}const Fg=function(e){return(0,Ge.jsx)(rf,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lg(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Hg(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}const Wg=function(e){return(0,Ge.jsx)(rf,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hg(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};var Bg;const Ug=Me.Ay.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(Bg||(Bg=Ce()(["\n &&&& {\n ","\n }\n"])),si);const Yg=function(e){var n=e.onChange,o=e.value,a=e.immutable,i=e.id,s=e.onLibLoaded,u=hi()(e,"options.defaultCountry")||"CH",l=(0,f.useState)(null),d=Je()(l,2),p=d[0],m=d[1],g=h().createRef();(0,f.useEffect)((function(){var e=function(){var e=t()(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.e(222).then(c.bind(c,96366));case 2:t=e.sent,m(t),s&&s();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[s]);var y=function(e,t){var n=e.substring(0,t-1).match(/\s/g);return(null==n?void 0:n.length)||0},v=o&&null!=p&&p.AsYouType?new p.AsYouType(u).input(o):o||"";return(0,Ge.jsxs)(ii,{immutable:a,children:[(0,Ge.jsx)(Ug,{disabled:a||!p,id:i,name,onChange:function(e){var t=e.target.value,r=p?p.parseNumber(t,u):t,a=Vr()(r)?new p.AsYouType(u).input(t).replace(/\s/g,""):p.formatNumber(r,"E.164");n(a);var i=e.target.selectionStart;!function(e,t,n){if(n&&e.length!==n){var r=new p.AsYouType(u).input(t),o=new p.AsYouType(u).input(e),a=y(r,n),i=y(o,n)-a;window.requestAnimationFrame(function(){var e=n+i;this.setSelectionRange(e,e)}.bind(g.current))}}(t,o,i)},immutable:a||!p,ref:g,value:v}),v&&(0,Ge.jsx)(ui,{children:(0,Ge.jsx)(oi.Ay,{href:"tel:".concat(o),icon:"phone",tabIndex:-1,target:"_blank",neutral:!0})})]})};function zg(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 Vg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zg(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qg=function(e){return e.map((function(e){return xm()(e,["key","display"])}))};const Gg=function(e){var t=e.id,n=e.immutable,r=e.onChange,o=e.options.isMulti,a=e.value;return(0,Ge.jsx)(rf,{id:t,immutable:n,isMulti:o,onChange:function(e){var t=o?e.map((function(e){return e.key})):[null==e?void 0:e.key],n=a.options.map((function(e){return Vg(Vg({},e),t.includes(e.key)?{selected:!0}:{selected:!1})}));r({options:n})},value:qg(a.options.filter((function(e){return e.selected}))),openMenuOnClick:!0,options:qg(a.options)})};function Kg(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}const $g=function(e){return(0,Ge.jsx)(rf,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kg(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!1,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Xg(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}const Qg=function(e){return(0,Ge.jsx)(rf,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xg(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Zg(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}const Jg=function(e){return(0,Ge.jsx)(rf,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zg(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,immutable:e.immutable,isMulti:!1,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};const ey=st.Debouncer((function(e){return(0,Ge.jsx)(ii,{immutable:e.immutable,children:(0,Ge.jsx)(ym,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||"","data-custom-arrow-navigation":"string"})})}));var ty,ny,ry,oy,ay,iy=c(60115),sy=Me.Ay.div.withConfig({displayName:"StyledTermsEdit"})(ty||(ty=Ce()(["\n margin: "," 0;\n display: flex;\n"])),Fe.hs.space(-1.4)),cy=Me.Ay.input.withConfig({displayName:"StyledCheckbox"})(ny||(ny=Ce()(["\n margin-right: ",";\n"])),Fe.hs.space(-1.5)),uy=(0,Me.AH)(ry||(ry=Ce()(["\n &,\n * {\n color: ",";\n }\n text-decoration: underline;\n\n &:hover,\n &:focus {\n color: ",";\n }\n\n &:active {\n * {\n color: ",";\n }\n }\n"])),Fe.t7.color("secondary"),Fe.t7.color("secondaryLight"),Fe.t7.color("secondary")),ly=Me.Ay.a.withConfig({displayName:"StyledTermsLink"})(oy||(oy=Ce()(["\n ","\n"])),uy),dy=(0,Me.Ay)(pf).withConfig({displayName:"StyledHtmlFormatter"})(ay||(ay=Ce()(["\n &&& {\n p {\n margin: 0;\n }\n\n a {\n ","\n }\n }\n"])),uy);const fy=function(e){var t=e.options,n=t.loadTerms,r=t.terms,o=e.onChange,a=e.value,i=e.name,s=e.id,c=e.immutable,u=(0,f.useCallback)((function(e){return{termsConditionKey:r.key,widgetConfigKey:iy.A.getWidgetConfigKey(),checked:e,pickAllProperties:!0}}),[r]),l=(0,f.useCallback)((function(){return o(null)}),[o]),d=(0,f.useCallback)((function(e){return o(u(e))}),[o,u]),p=(0,f.useCallback)((function(e){o&&(e?d(e):l())}),[o,d,l]);(0,f.useEffect)((function(){n()}),[]),(0,f.useEffect)((function(){!r||a||null!=r&&r.checkbox&&!c||d(!1)}),[r,a,c,d]);var h=(null==r?void 0:r.checkbox)&&(0,Ge.jsx)(cy,{type:"checkbox",checked:(null==a?void 0:a.checked)||!1,name:i,onChange:function(e){return p(e.target.checked)},id:s}),m=(null==r?void 0:r.link)&&(0,Ge.jsx)(ly,{target:"_blank",href:r.link,rel:"noreferrer",children:(0,Ge.jsx)(dy,{value:r.label,breakWords:!0})});return!c&&(0,Ge.jsxs)(sy,{children:[h,m||(0,Ge.jsx)(dy,{value:null==r?void 0:r.label,breakWords:!0})]})};var py,hy,my,gy=(0,Me.AH)(py||(py=Ce()(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),si),yy=Me.Ay.div.withConfig({displayName:"StyledSizeWrapper"})(hy||(hy=Ce()(["\n display: grid;\n width: 100%;\n overflow: hidden;\n\n &:after {\n content: attr(data-replicated-value) ' ';\n white-space: pre-wrap;\n word-break: break-all;\n visibility: hidden;\n ","\n /* prevent scrollbar on Firefox */\n padding-right: 15px;\n }\n"])),gy),vy=Me.Ay.textarea.withConfig({displayName:"StyledTextarea"})(my||(my=Ce()(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: ",";\n position: relative;\n }\n"])),gy,(function(e){var t=e.disabled,n=e.isSafari;return!t||n?"4.5em":"0"}));function by(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 wy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?by(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):by(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Oy=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,a=e.disabled,i=e.immutable,s=(0,f.useState)(t),c=Je()(s,2),u=c[0],l=c[1],d=!Fl(),p=Fl(),h=(0,f.useCallback)(ki()(l,500,{trailing:!0}),[]);return(0,f.useEffect)((function(){d&&h(t)}),[t,d,h]),(0,Ge.jsx)(yy,wy(wy({"data-testid":"replicated-test"},d?{"data-replicated-value":u}:{}),{},{children:(0,Ge.jsx)(vy,{value:t||"",name:r,id:o,onChange:n,disabled:a,immutable:i,rows:"1",isSafari:p})}))};const xy=st.Debouncer((function(e){return(0,Ge.jsx)(ii,{immutable:e.immutable,"data-custom-arrow-navigation":"text",children:(0,Ge.jsx)(Oy,{id:e.id,immutable:e.immutable,maxRows:20,name:e.name,onChange:function(t){return e.onChange(t.target.value)},disabled:e.immutable,rows:2,value:e.value})})}));var ky;const Sy=Me.Ay.input.withConfig({displayName:"StyledTimeEdit"})(ky||(ky=Ce()(["\n &&&& {\n ","\n }\n"])),si);function Ey(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 Py(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ey(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ey(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const jy=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.name,i=Zf(n,t),s=i.inputProps,c=i.clearButtonProps,u=n&&!r;return(0,Ge.jsxs)(ii,{immutable:r,children:[(0,Ge.jsx)(Sy,Py({type:"text",disabled:r,id:o,immutable:r,name:a},s)),u&&(0,Ge.jsx)(ui,{children:(0,Ge.jsx)(At,Py(Py({icon:"times"},c),{},{tabIndex:-1}))})]})};var _y;const Dy=Me.Ay.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(_y||(_y=Ce()(["\n &&&& {\n ","\n }\n"])),si);const Cy=st.Debouncer((function(e){return(0,Ge.jsxs)(ii,{immutable:e.immutable,children:[(0,Ge.jsx)(Dy,{disabled:e.immutable,id:e.id,immutable:e.immutable,name:e.name,onChange:function(t){return e.onChange((n=t.target.value,r=/^[a-zA-Z0-9]+:\/\//.test(n),n.indexOf(".")>0&&!r?"https://".concat(n):n));var n,r},value:e.value||""}),e.value&&(0,Ge.jsx)(ui,{children:(0,Ge.jsx)(oi.Ay,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));function Ty(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 My(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ty(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ty(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ay={boolean:cf,"boolean-select":of,choice:xf,code:Df,date:vp,datetime:Op,document:lm,duration:mm,email:vm,geosearch:_g,html:Tg,integer:bg,address:bi,location:Rg,"multi-remote":Fg,"multi-select":Wg,number:vg,phone:Yg,"pseudo-select":Gg,remote:$g,"search-filter":Qg,"single-select":Jg,string:ey,terms:fy,text:xy,url:Cy,time:jy},Iy=["boolean","choice","terms"];const Ny=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.id,a=e.events,i=e.placeholder,s=e.readOnly,c=void 0!==s&&s,u=e.popoverContent;if(Ay[t]){var l=Ay[t],d=My(My({},Yr()(a,["onChange","onDrop","onDragStart"])),{},{onBlur:function(){"function"==typeof(null==a?void 0:a.onBlur)&&a.onBlur(n)},onClick:function(e){Iy.includes(t)&&("function"==typeof(null==a?void 0:a.onClick)&&a.onClick(e),"function"==typeof(null==a?void 0:a.onBlur)&&a.onBlur())}});return(0,Ge.jsx)("div",My(My({},d),{},{"data-cy":"form-field",children:(0,Ge.jsx)(Ha,{content:u,children:(0,Ge.jsx)(l,My(My({value:n,onChange:null==a?void 0:a.onChange},Vr()(r)?{}:{options:r}),{},{id:o,immutable:c,placeholder:i,events:a}))})}))}return console.log("No type-editor defined for component type",t),null};function Ry(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 Ly(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ry(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ry(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Fy=function(e){return(0,Ge.jsx)(li,{children:(0,Ge.jsx)(Ny,Ly({componentType:e.type},Yr()(e,"type")))})};const Hy=(0,Me.SL)((function(e){return(0,Ge.jsx)(qe.A,{style:{fontSize:"".concat(e.theme.fontSize.base,"rem")},icon:e.value?"check":"times"})}));const Wy=function(e){var t=(0,d.useIntl)();return(0,Ge.jsx)(cr.Ay.Time,{dateTime:e.value,title:t.formatDate(e.value),children:(0,Ge.jsx)(d.FormattedDate,{value:e.value,year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC",id:e.id})})};var By;const Uy=(0,d.injectIntl)((function(e){var t=e.value,n=e.intl,r=new Date(t);if(!t||isNaN(r))return console.error("DateTimeFormatter: Invalid date",t),By||(By=(0,Ge.jsx)(cr.Ay.Span,{}));var o=(0,la.GPZ)(r,"HH:mm");return(0,Ge.jsxs)(cr.Ay.Time,{dateTime:r.toISOString(),title:"".concat(n.formatDate(r),", ").concat(o),children:[(0,Ge.jsx)(d.FormattedDate,{value:r,year:"numeric",month:"2-digit",day:"2-digit"}),", ",o]})}));var Yy;function zy(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 Vy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zy(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const qy=function(e){var t=e.options||{},n=(0,Ge.jsxs)(Ge.Fragment,{children:[t.title&&(0,Ge.jsx)(cr.Ay.H5,{children:t.title}),(0,Ge.jsx)(pf,Vy({},e))]});return"text"===t.mode?n:(0,Ge.jsx)(Ha,{content:n,isPlainHtml:!0,children:Yy||(Yy=(0,Ge.jsx)(Ta,{children:(0,Ge.jsx)(qe.A,{icon:"question-circle"})}))})};const Gy=function(e){var t=e.value,n=e.options||{},r=n.tooltips,o=n.loadTooltip,a=hi()(r,t.resourceKey,null);return(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsx)(Ha,{content:a?(0,Ge.jsx)("div",{dangerouslySetInnerHTML:{__html:sr.sanitizeHtml(a)}}):null,children:(0,Ge.jsx)("span",{onMouseOver:function(){return o&&!a&&o(t.resourceKey)},children:(0,Ge.jsx)(oi.Ay,{alt:t.alt||t.fileName,icon:"eye",look:"raised",target:"_blank",href:t.binaryLink,onClick:function(e){e.stopPropagation()}})})}),(0,Ge.jsx)(oi.Ay,{alt:t.alt||t.fileName,icon:"arrow-to-bottom",look:"raised",target:"_blank",href:rm.getDownloadUrl(t.binaryLink),onClick:function(e){e.stopPropagation()}})]})};const Ky=function(e){return(0,Ge.jsx)(um,{id:e.id,onUpload:function(){},immutable:!0,textResources:{download:e.options.downloadText},value:e.value?e.value:null})};const $y=function(e){var t=e.value,n=parseInt(t),r=da.A.formatDuration(n);return(0,Ge.jsx)(cr.Ay.Time,{dateTime:r,title:r,children:r})};const Xy=function(e){return(0,Ge.jsx)(oi.Ay,{href:"mailto:".concat(e.value.toString()),target:"_blank",onClick:function(e){return e.stopPropagation()},label:e.value.toString(),breakWords:e.breakWords,useTitle:e.useTitle})};const Qy=function(e){return(0,Ge.jsx)(cr.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};function Zy(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 Jy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zy(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ev=function(){return"; "};const tv=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.useTitle,a=n||{},i=a.navigationStrategy,s=a.linkProps,c=a.tooltips,u=a.loadTooltip,l=(null==t?void 0:t.length)>0?t.map((function(e){if(null!=i&&i.DetailLink){var t=hi()(c,e.key,null);return(0,Ge.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,Ge.jsx)(i.DetailLink,Jy(Jy({},s),{},{entityKey:e.key,children:(0,Ge.jsx)(Ha,{content:t?(0,Ge.jsx)("div",{dangerouslySetInnerHTML:{__html:sr.sanitizeHtml(t)}}):null,children:(0,Ge.jsx)("span",{onMouseOver:function(){return u&&!t&&u(e.key)},children:e.display})})}))},e.key)}return(0,Ge.jsx)(f.Fragment,{children:e.display},e.key)})).reduce((function(e,t,n){return[e,(0,Ge.jsx)(ev,{},"sep".concat(n)),t]})):null;return(0,Ge.jsx)(cr.Ay.Span,{breakWords:r,useTitle:o,children:l})};const nv=function(e){return(0,Ge.jsx)(cr.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,Ge.jsx)(d.FormattedNumber,{value:e.value,style:"decimal",minimumFractionDigits:e.options&&e.options.postPointDigits||2})})};const rv=function(e){var t;return(0,Ge.jsx)(cr.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,Ge.jsx)(d.FormattedNumber,{value:e.value,style:"percent",minimumFractionDigits:null==e||null===(t=e.options)||void 0===t?void 0:t.postPointDigits})})};function ov(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 av(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ov(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ov(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var iv=(0,f.lazy)((function(){return Promise.all([c.e(222),c.e(672)]).then(c.bind(c,74302))}));const sv=function(e){return(0,Ge.jsx)(f.Suspense,{fallback:"",children:(0,Ge.jsx)(iv,av({},e))})};function cv(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 uv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cv(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const lv=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.id,a=n||{},i=a.tooltips,s=a.loadTooltip,c=a.navigationStrategy,u=a.linkProps,l=hi()(i,t.key,null);t=nr.getOrFirst(t);var d=(0,Ge.jsx)(cr.Ay.Span,{breakWords:r,useTitle:!l,id:o,children:t.display});return(null!=c&&c.DetailLink?(0,Ge.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,Ge.jsx)(c.DetailLink,uv(uv({},u),{},{entityKey:t.key,children:(0,Ge.jsx)(Ha,{content:l?(0,Ge.jsx)("div",{dangerouslySetInnerHTML:{__html:sr.sanitizeHtml(l)}}):null,children:(0,Ge.jsx)("span",{onMouseOver:function(){return s&&!l&&s(t.key)},id:o,children:d})})}))}):null)||d};const dv=function(e){return(0,Ge.jsx)(cr.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,id:e.id,children:e.value.toString()})};var fv=function(e,t){return parseInt(e.split(":")[t])||0};const pv=(0,d.injectIntl)((function(e){var t=e.value,n=(e.intl,fv(t,0)),r=fv(t,1),o=fv(t,2),a=fv(t,3),i=new Date(2e3,1,1,n,r,o,a),s=(0,la.GPZ)(i,"HH:mm:ss.SSS"),c=(0,la.GPZ)(i,"HH:mm");return(0,Ge.jsx)(cr.Ay.Time,{dateTime:s,title:c,children:c})}));const hv=function(e){var t=e.value,n=e.breakWords,r=e.useTitle;return(0,Ge.jsx)(oi.Ay,{onClick:function(e){e.stopPropagation()},href:t,target:"_blank",rel:"noopener noreferrer",label:t,breakWords:n,useTitle:r,neutral:!1})};var mv,gv={boolean:Hy,date:Wy,datetime:Uy,document:Ky,"document-compact":Gy,duration:$y,email:Xy,html:pf,integer:Qy,"multi-remote":tv,"multi-select":tv,number:nv,percent:rv,phone:sv,remote:lv,"single-select":lv,string:dv,text:uf,time:pv,url:hv,description:qy};const yv=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.breakWords,a=void 0===o||o,i=e.useTitle,s=void 0===i||i,c=e.id;if(gv[t]){var u=gv[t];return(0,Ge.jsx)(u,{value:n,options:r,breakWords:a,useTitle:s,id:c})}return console.log("No FormattedValue mapper defined for component type",t,n),mv||(mv=(0,Ge.jsx)("div",{}))};var vv;const bv=function(e){var t=e.type,n=e.value,r=e.options,o=e.breakWords,a=e.useTitle,i=e.id;return null==n||""===n?vv||(vv=(0,Ge.jsx)("span",{})):(0,Ge.jsx)(yv,{componentType:t,value:n,options:r,breakWords:o,useTitle:a,id:i})},wv=bv;var Ov;Me.Ay.div.withConfig({displayName:"StyledLayoutBox"})(Ov||(Ov=Ce()(["\n height: fit-content;\n margin-bottom: ",";\n"])),Fe.hs.space(.25));var xv,kv=Me.Ay.div.withConfig({displayName:"StyledLayoutContainer"})(xv||(xv=Ce()(["\n display: grid;\n padding-right: ",";\n ",";\n ",";\n"])),Fe.hs.space(0),(function(e){var t=e.containerWidth,n=e.theme,r=e.minBoxWidth;return t<600?"grid-template-columns: 100%;":"grid-template-columns: repeat(auto-fit, minmax(".concat(r,"px, 1fr));\n grid-gap: ").concat(Fe.hs.space(.25)({theme:n}))}),(function(e){return e.occupiesRemainingHeight&&"\n flex: 1;\n "}));const Sv=kv;var Ev,Pv,jv,_v,Dv=c(5016),Cv=(0,Me.i7)(Ev||(Ev=Ce()(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),Tv=(0,Me.AH)(Pv||(Pv=Ce()(["\n animation: "," 400ms ease-in-out both;\n"])),Cv),Mv=Me.Ay.div.withConfig({displayName:"StyledLoadingIconAndTest"})(jv||(jv=Ce()(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: ",";\n ",";\n\n > "," {\n margin-top: ",";\n z-index: 1;\n }\n"])),Fe.hs.space(-1),Tv,Dv.oY,Fe.hs.space(-1));const Av=Me.Ay.div.withConfig({displayName:"StyledLoadMask"})(_v||(_v=Ce()(["\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n z-index: 0; /* prevent interference with StyledPageOverlay when implemented as widget */\n"])));var Iv;const Nv=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,a=e.className,i=(0,f.useState)(!1),s=Je()(i,2),c=s[0],u=s[1],l=(0,f.useState)(!0),d=Je()(l,2),p=d[0],h=d[1];(0,f.useEffect)((function(){return t&&Promise.all(t).then((function(){var e;e=!0,p&&u(e)})),function(){h(!1)}}),[]);var m=n&&Array.isArray(n)?!n.some((function(e){return!e})):!!t&&c;return(0,Ge.jsx)(Av,{className:a,children:m?r:(0,Ge.jsxs)(Mv,{children:[Iv||(Iv=(0,Ge.jsx)(Qe,{size:"30px"},"loading-spinner")),o&&(0,Ge.jsx)(cr.Ay.Span,{children:o},"loadingText")]})})};var Rv,Lv=Me.Ay.div.withConfig({displayName:"StyledPanel"})(Rv||(Rv=Ce()(["\n && {\n background-color: ",";\n border: 1px "," ",";\n border-radius: ",";\n }\n"])),Fe.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),Fe.t7.color("borderLight"),Fe.t7.radii("form"));const Fv=Lv;var Hv=["children","isFramed","controlledIsOpen","isOpenInitial","isToggleable","onToggle"];const Wv=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.controlledIsOpen,a=e.isOpenInitial,i=void 0===a||a,s=e.isToggleable,c=void 0===s||s,u=e.onToggle,l=Ve()(e,Hv),d=(0,f.useState)(i),p=Je()(d,2),m=p[0],g=p[1],y="boolean"==typeof o,v=function(){c&&(y?"function"==typeof u&&u(!o):g(!m))};return(0,Ge.jsx)(Fv,{isFramed:r,"data-cy":l["data-cy"],children:h().Children.map(t,(function(e){return h().cloneElement(e,{isFramed:r,isOpen:y?o:m,isToggleable:c,toggleOpenState:v})}))})};var Bv,Uv=Me.Ay.div.withConfig({displayName:"StyledPanelBody"})(Bv||(Bv=Ce()(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?Fe.hs.space(-.375):0}),(function(e){return e.isOpen?"block":"none"}));const Yv=Uv;var zv=["children","isFramed","isOpen"];const Vv=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=Ve()(e,zv);return(0,Ge.jsx)(Yv,{isFramed:n,isOpen:r,"data-cy":o["data-cy"],children:(0,Ge.jsx)("div",{children:t})})};const qv=function(e){var t=e.initialOpenPanelIndex,n=e.children,r=(0,f.useState)(t),o=Je()(r,2),a=o[0],i=o[1];return(0,Ge.jsx)(Ge.Fragment,{children:h().Children.map(n,(function(e,t){return h().cloneElement(e,{controlledIsOpen:a===t,onToggle:function(e){return function(e,t){i(!0===t?e:void 0)}(t,e)}})}))})};var Gv;const Kv=Me.Ay.div.withConfig({displayName:"StyledPanelGroup"})(Gv||(Gv=Ce()(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),Fe.hs.space(0),Fv,Fe.hs.space(-1));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 Xv(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){Ye()(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 Qv=function(e){return(0,Ge.jsx)(Kv,{children:(0,Ge.jsx)(qv,Xv({},e))})};var Zv,Jv,eb,tb,nb,rb,ob="1px",ab=Me.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Zv||(Zv=Ce()(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),Fe.hs.font(1),Fe.t7.color("text"),!Hl()&&(0,Me.AH)(Jv||(Jv=Ce()(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),Fe.t7.color("secondaryLight"))),ib=Me.Ay.div.withConfig({displayName:"StyledPanelHeader"})(eb||(eb=Ce()(["\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"])),Fe.t7.color("backgroundPanelHeaderFooter"),Fe.t7.radii("form"),ob,Fe.t7.radii("form"),ob,Fe.t7.radii("form"),ob,Fe.t7.radii("form"),ob,(function(e){return e.isOpen&&(0,Me.AH)(tb||(tb=Ce()(["\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n "])))}),(function(e){return e.isFramed?(0,Me.AH)(nb||(nb=Ce()(["\n "," ","\n "])),Fe.hs.space(-1.7),Fe.hs.space(-.375)):0}),!Hl()&&(0,Me.AH)(rb||(rb=Ce()(["\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n "])),ab),(function(e){return function(e){var t=e.theme,n=e.isOpen,r=e.isFramed,o="\n &:first-child {\n border-bottom-color: ".concat(t.colors.borderLight,";\n border-bottom-style: ").concat(r?"solid":"none",";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-color: ").concat(t.colors.borderLight,";\n border-top-style: ").concat(r?"solid":"none",";\n }\n ");return n?"\n ".concat(o,"\n &:first-child {\n border-bottom-width: ").concat(ob,";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-width: ").concat(ob,";\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(ob,";\n }\n ")}(e)}));const sb=ib;var cb=["children","isFramed","isOpen","isToggleable","showToggler","toggleOpenState","options"];const ub=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,a=e.showToggler,i=void 0===a||a,s=e.toggleOpenState,c=e.options,u=void 0===c?{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}:c,l=Ve()(e,cb);return(0,Ge.jsxs)(sb,{isFramed:n,isOpen:r,onClick:s,"data-cy":l["data-cy"],children:[(0,Ge.jsx)("div",{children:h().Children.map(t,(function(e){return h().cloneElement(e)}))}),o&&i&&(0,Ge.jsx)(ab,{children:(0,Ge.jsx)(qe.A,{icon:r?"chevron-up":"chevron-down",onClick:s,title:r?u.collapseButtonText:u.unfoldButtonText})})]})},lb={Body:Vv,Group:Qv,Header:ub,Wrapper:Wv};var db,fb=Me.Ay.div.withConfig({displayName:"StyledPanel"})(db||(db=Ce()(["\n && {\n background-color: ",";\n border: 1.5px "," ",";\n border-radius: ",";\n }\n"])),Fe.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),Fe.t7.color("borderLight"),Fe.t7.radii("form"));const pb=fb;const hb=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.isOpenInitial,a=void 0===o||o,i=(0,f.useState)(a),s=Je()(i,2),c=s[0],u=s[1];return(0,Ge.jsx)(pb,{isFramed:r,children:h().Children.map(t,(function(e){return h().cloneElement(e,{isOpen:c,isToggleable:!a,isFramed:r,toggleOpenState:function(){return u(!c)}})}))})};var mb,gb,yb=Me.Ay.div.withConfig({displayName:"StyledPanelBody"})(mb||(mb=Ce()(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?(0,Me.AH)(gb||(gb=Ce()(["\n "," "," "," ","\n "])),Fe.hs.space(-1),Fe.hs.space(.2),Fe.hs.space(.2),Fe.hs.space(.2)):0}),(function(e){return e.isOpen?"block":"none"}));const vb=yb;const bb=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,Ge.jsx)(vb,{isFramed:n,isOpen:r,children:(0,Ge.jsx)("div",{children:t})})};var wb;const Ob=Me.Ay.div.withConfig({displayName:"StyledPanelGroup"})(wb||(wb=Ce()(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),Fe.hs.space(0),pb,Fe.hs.space(-1));function xb(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 kb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xb(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Sb=function(e){return(0,Ge.jsx)(Ob,{children:(0,Ge.jsx)(qv,kb({},e))})};var Eb,Pb,jb,_b="1px",Db=Me.Ay.div.withConfig({displayName:"StyledPanelHeader"})(Eb||(Eb=Ce()(["\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"])),Fe.t7.color("paper"),Fe.t7.radii("form"),_b,Fe.t7.radii("form"),_b,(function(e){return e.isFramed?Fe.hs.space(.2):0}),Fe.t7.fontWeight("regular"),(function(e){return function(e){var t=e.theme,n=e.isFramed,r="\n &:first-child {\n border-bottom-color: ".concat(t.colors.borderLight,";\n border-bottom-style: ").concat(n?"solid":"none",";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-color: ").concat(t.colors.borderLight,";\n border-top-style: ").concat(n?"solid":"none",";\n }\n ");return"\n ".concat(r,"\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 ")}(e)})),Cb=Me.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Pb||(Pb=Ce()(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),Fe.hs.font(1),Fe.t7.color("text"),!Hl()&&(0,Me.AH)(jb||(jb=Ce()(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),Fe.t7.color("secondaryLight")));const Tb=Db;const Mb=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,a=e.showToggler,i=void 0===a||a,s=e.toggleOpenState,c=e.options,u=void 0===c?{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}:c;return(0,Ge.jsxs)(Tb,{isFramed:n,isOpen:r,onClick:o?s:function(){},children:[(0,Ge.jsx)("div",{children:h().Children.map(t,(function(e){return h().cloneElement(e)}))}),o&&i&&(0,Ge.jsx)(Cb,{children:(0,Ge.jsx)(qe.A,{icon:r?"chevron-up":"chevron-down",onClick:s,title:r?u.collapseButtonText:u.unfoldButtonText})})]})},Ab={Body:bb,Group:Sb,Header:Mb,Wrapper:hb};var Ib={Body:Ye()(Ye()({},iy.A.EmbedType.admin,lb.Body),iy.A.EmbedType.widget,Ab.Body),Group:Ye()(Ye()({},iy.A.EmbedType.admin,lb.Group),iy.A.EmbedType.widget,Ab.Group),Header:Ye()(Ye()({},iy.A.EmbedType.admin,lb.Header),iy.A.EmbedType.widget,Ab.Header),Wrapper:Ye()(Ye()({},iy.A.EmbedType.admin,lb.Wrapper),iy.A.EmbedType.widget,Ab.Wrapper)};iy.A.embedStrategyFactory({mapping:Ib.Body}),iy.A.embedStrategyFactory({mapping:Ib.Group}),iy.A.embedStrategyFactory({mapping:Ib.Header}),iy.A.embedStrategyFactory({mapping:Ib.Wrapper});var Nb;Me.Ay.div.withConfig({displayName:"StyledButtonWrapper"})(Nb||(Nb=Ce()(["\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: flex-end;\n"])),Fe.hs.space(0),Fe.t7.color("paper"));var Rb=new AbortController,Lb=!1;window.addEventListener("beforeunload",(function(e){Lb?(e.preventDefault(),e.returnValue=""):Rb.abort()})),window.addEventListener("pagehide",(function(){Rb.signal.aborted||Rb.abort()}));var Fb=function(e){return"@@redux-saga/"+e},Hb=Fb("CANCEL_PROMISE"),Wb=Fb("CHANNEL_END"),Bb=Fb("IO"),Ub=Fb("MATCH"),Yb=Fb("MULTICAST"),zb=Fb("SAGA_ACTION"),Vb=Fb("SELF_CANCELLATION"),qb=Fb("TASK"),Gb=Fb("TASK_CANCEL"),Kb=Fb("TERMINATE"),$b=Fb("LOCATION");function Xb(){return Xb=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},Xb.apply(this,arguments)}var Qb=function(e){return null==e},Zb=function(e){return null!=e},Jb=function(e){return"function"==typeof e},ew=function(e){return"string"==typeof e},tw=Array.isArray,nw=function(e){return e&&Jb(e.then)},rw=function(e){return e&&Jb(e.next)&&Jb(e.throw)},ow=function e(t){return t&&(ew(t)||sw(t)||Jb(t)||tw(t)&&t.every(e))},aw=function(e){return e&&Jb(e.take)&&Jb(e.close)},iw=function(e){return Jb(e)&&e.hasOwnProperty("toString")},sw=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},cw=function(e){return aw(e)&&e[Yb]};var uw=function(e){return function(){return e}},lw=uw(!0),dw=function(){};var fw=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var pw=function(e,t){Xb(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function hw(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function mw(e){var t=!1;return function(){t||(t=!0,e())}}var gw=function(e){throw e},yw=function(e){return{value:e,done:!0}};function vw(e,t,n){void 0===t&&(t=gw),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:yw,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function bw(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var ww=function(e){return Array.apply(null,new Array(e))},Ow=function(e){return function(t){return e(Object.defineProperty(t,zb,{value:!0}))}},xw=function(e){return e===Kb},kw=function(e){return e===Gb},Sw=function(e){return xw(e)||kw(e)};function Ew(e,t){var n=Object.keys(e),r=n.length;var o,a=0,i=tw(e)?ww(r):{},s={};return n.forEach((function(e){var n=function(n,s){o||(s||Sw(n)?(t.cancel(),t(n,s)):(i[e]=n,++a===r&&(o=!0,t(i))))};n.cancel=dw,s[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return s[e].cancel()})))},s}function Pw(e){return{name:e.name||"anonymous",location:jw(e)}}function jw(e){return e[$b]}function _w(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var Dw={isEmpty:lw,put:dw,take:dw};function Cw(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,a=0,i=function(t){n[o]=t,o=(o+1)%e,r++},s=function(){if(0!=r){var t=n[a];return n[a]=null,r--,a=(a+1)%e,t}},c=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(s){var u;if(r<e)i(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=s,a=o=(o+1)%e;break;case 4:u=2*e,n=c(),r=n.length,o=n.length,a=0,n.length=u,e=u,i(s)}},take:s,flush:c}}var Tw=function(){return Dw},Mw=function(e){return Cw(e,4)},Aw="TAKE",Iw="PUT",Nw="ALL",Rw="RACE",Lw="CALL",Fw="CPS",Hw="FORK",Ww="JOIN",Bw="CANCEL",Uw="SELECT",Yw="ACTION_CHANNEL",zw="CANCELLED",Vw="FLUSH",qw="GET_CONTEXT",Gw="SET_CONTEXT",Kw=function(e,t){var n;return(n={})[Bb]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function $w(e,t){return void 0===e&&(e="*"),ow(e)?(Zb(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),Kw(Aw,{pattern:e})):cw(e)&&Zb(t)&&ow(t)?Kw(Aw,{channel:e,pattern:t}):aw(e)?(Zb(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),Kw(Aw,{channel:e})):void 0}function Xw(e,t){return Qb(t)&&(t=e,e=void 0),Kw(Iw,{channel:e,action:t})}function Qw(e){var t=Kw(Nw,e);return t.combinator=!0,t}function Zw(e,t){var n,r=null;return Jb(e)?n=e:(tw(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&ew(n)&&Jb(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function Jw(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Kw(Lw,Zw(e,n))}function eO(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Kw(Hw,Zw(e,n))}function tO(e){void 0===e&&(e=fw);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Kw(Uw,{selector:e,args:n})}var nO=function(e){return{done:!0,value:e}},rO={};function oO(e){return aw(e)?"channel":iw(e)?String(e):Jb(e)?e.name:String(e)}function aO(e,t,n){var r,o,a,i=t;function s(t,n){if(i===rO)return nO(t);if(n&&!o)throw i=rO,n;r&&r(t);var s=n?e[o](n):e[i]();return i=s.nextState,a=s.effect,r=s.stateUpdater,o=s.errorState,i===rO?nO(t):a}return vw(s,(function(e){return s(null,e)}),n)}function iO(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a,i={done:!1,value:$w(e)},s=function(e){return a=e};return aO({q1:function(){return{nextState:"q2",effect:i,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=a,{done:!1,value:eO.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+oO(e)+", "+t.name+")")}function sO(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a,i,s={done:!1,value:$w(e)},c=function(e){return{done:!1,value:eO.apply(void 0,[t].concat(r,[e]))}},u=function(e){return{done:!1,value:(t=e,void 0===t&&(t=Vb),Kw(Bw,t))};var t},l=function(e){return a=e},d=function(e){return i=e};return aO({q1:function(){return{nextState:"q2",effect:s,stateUpdater:d}},q2:function(){return a?{nextState:"q3",effect:u(a)}:{nextState:"q1",effect:c(i),stateUpdater:l}},q3:function(){return{nextState:"q1",effect:c(i),stateUpdater:l}}},"q1","takeLatest("+oO(e)+", "+t.name+")")}function cO(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return eO.apply(void 0,[iO,e,t].concat(r))}function uO(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return eO.apply(void 0,[sO,e,t].concat(r))}var lO=function(e,t,n){return r().mark((function o(){var a,i,c,u=arguments;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(a=u.length,i=new Array(a),c=0;c<a;c++)i[c]=u[c];case 1:return r.prev=2,r.next=5,Jw.apply(void 0,[e,t].concat(i));case 5:r.next=16;break;case 7:if(r.prev=7,r.t0=r.catch(2),!1!==Rb.signal.aborted){r.next=16;break}if(!n){r.next=15;break}return r.next=13,Xw(n("client.common.unexpectedError","client.common.unexpectedError",r.t0));case 13:r.next=16;break;case 15:s.A.logError("error",r.t0);case 16:r.next=1;break;case 18:case"end":return r.stop()}}),o,null,[[2,7]])}))};const dO={autoRestartSaga:lO,createGenerator:function(e){return r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Qw(e);case 2:case"end":return t.stop()}}),t)}))},injectSaga:function(e,t,n){e.sagas.includes(t)||(e.sagas.push(t),e.sagaMiddleware.run(lO(t,null,n)))},abortController:Rb,deactivatePreventFromLeaving:function(){Lb=!1},activatePreventFromLeaving:function(){Lb=!0}};_e().node,_e().bool,_e().string,_e().bool,_e().objectOf(_e().arrayOf(_e().oneOfType([_e().node,_e().string]))),_e().bool,_e().bool,_e().string,_e().string,_e().oneOf(["inside","outside-responsive","outside"]),_e().bool,_e().string,_e().bool,_e().string,_e().bool;var fO,pO,hO,mO=Ye()(Ye()(Ye()(Ye()(Ye()({},Fe.xX.condition.BASE,Fe.t7.color("text")),Fe.xX.condition.DANGER,Fe.t7.color("signal.danger")),Fe.xX.condition.SUCCESS,Fe.t7.color("signal.success")),Fe.xX.condition.WARNING,Fe.t7.color("signal.warning")),Fe.xX.condition.INFO,Fe.t7.color("signal.info")),gO=(0,Me.Ay)(cr.dV).withConfig({displayName:"StyledSignalList"})(fO||(fO=Ce()(["\n && {\n list-style-type: none;\n margin-left: 0;\n }\n"]))),yO=Me.Ay.span.withConfig({displayName:"StyledSignalListIcon"})(pO||(pO=Ce()(["\n margin-left: -1px;\n margin-right: ",";\n"])),Fe.hs.space(-2)),vO=(0,Me.Ay)(cr.vx).withConfig({displayName:"StyledSignalListItem"})(hO||(hO=Ce()(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){var t=e.condition;return mO[t]}(e)}));const bO=function(e){return(0,Ge.jsx)(gO,{as:"ul",children:h().Children.map(e.children,(function(e){return h().cloneElement(e)}))})};var wO,OO=["condition","label","children"],xO=Ye()(Ye()(Ye()(Ye()(Ye()({},Fe.xX.condition.BASE,!1),Fe.xX.condition.DANGER,"times"),Fe.xX.condition.SUCCESS,"check"),Fe.xX.condition.WARNING,"exclamation-triangle"),Fe.xX.condition.INFO,"info"),kO=function(e){var t=xO[e];return t?(0,Ge.jsx)(qe.A,{icon:t,position:Fe.xX.position.SOLE,hasFixedWidth:!1}):wO||(wO=(0,Ge.jsx)("i",{children:"•"}))};const SO=function(e){var t=e.condition,n=void 0===t?Fe.xX.condition.BASE:t,r=e.label,o=e.children,a=Ve()(e,OO);return(0,Ge.jsxs)(vO,{condition:n,"data-cy":a["data-cy"],children:[(0,Ge.jsx)(yO,{children:kO(n)}),r,h().Children.map(o,(function(e){return h().cloneElement(e)}))]})},EO={List:bO,Item:SO};const PO=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,Ht()(e.error[n]))})),(0,Ge.jsx)(EO.List,{children:t.map((function(e,t){return(0,Ge.jsx)(EO.Item,{condition:"danger",label:e,"data-cy":"erroritem-".concat(t)},t)}))})};var jO,_O,DO,CO,TO,MO,AO,IO,NO,RO,LO,FO,HO,WO,BO="1.1px",UO=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"text":"auto",";")},YO=Me.Ay.label.withConfig({displayName:"StyledStatedValueLabel"})(jO||(jO=Ce()(["\n &&& {\n display: flex;\n width: 40%;\n flex-grow: 1;\n flex-basis: 125px;\n ","\n background-color: ",";\n pointer-events: auto;\n ","\n word-break: break-word;\n white-space: pre-wrap;\n ","\n ","\n ","\n }\n"])),(0,Fe.Ed)({lineHeight:Fe.t7.lineHeight("dense")}),Fe.t7.color("paper"),(function(e){return UO(e)}),(function(e){return"outside"===e.labelPosition&&(0,Me.AH)(_O||(_O=Ce()(["\n margin-bottom: ",";\n display: block;\n width: auto;\n "])),Fe.hs.space(-1.5))}),(function(e){return"inside"===e.labelPosition&&(0,Me.AH)(DO||(DO=Ce()(["\n flex-basis: unset;\n position: absolute;\n top: 0;\n z-index: 1;\n display: inline-block;\n\n /* if immutable remove left padding */\n padding: 0 "," "," ",";\n width: fit-content;\n left: ",";\n white-space: nowrap; /* prevent multiline labels since they cover the input content */\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 100%;\n "])),Fe.hs.space(-2),Fe.hs.space(-3.5),(function(e){return e.immutable&&"0"}),(function(e){return e.immutable?"0":Fe.hs.space(-1.8)}))}),(function(e){return e.styles})),zO=Me.Ay.div.withConfig({displayName:"StyledInputArea"})(CO||(CO=Ce()(["\n width: 60%;\n flex-grow: 1;\n ","\n"])),(function(e){return"outside"===e.labelPosition&&(0,Me.AH)(TO||(TO=Ce()(["\n width: auto;\n "])))})),VO=Me.Ay.div.withConfig({displayName:"StyledStatedValueBox"})(MO||(MO=Ce()(["\n &&& {\n position: relative;\n height: fit-content; /* prevent height getting bigger due to tall labels */\n border: "," solid ",";\n border-radius: ",";\n padding: "," ",";\n display: flex;\n ","\n ","\n ","\n\n > "," {\n display: inline-block;\n max-width: 100%;\n\n p:first-of-type {\n margin-top: 0;\n }\n }\n ","\n ","\n }\n"])),BO,(function(e){return Fe.KY[function(e){var t=e.immutable,n=e.isDisplay,r=e.signal;return e.isDirty?"isDirty":n||t?"transparent":r?"signal":"base"}(e)](e)}),Fe.t7.radii("form"),Fe.hs.space(-2.5),Fe.hs.space(-1.5),(function(e){return!e.immutable&&(0,Fe.h7)(e)}),(function(e){return UO(e)}),(0,Fe.Ed)(),Aa,(function(e){return"inside"===e.labelPosition&&(0,Me.AH)(AO||(AO=Ce()(["\n padding: "," "," "," ",";\n "])),Fe.hs.space(-1),Fe.hs.space(-1.7),Fe.hs.space(-2),Fe.hs.space(-1))}),(function(e){return e.styles})),qO=Me.Ay.p.withConfig({displayName:"StyledStatedValueDescription"})(IO||(IO=Ce()(["\n &&& {\n ","\n }\n"])),(0,Fe.Ed)({fontSize:Fe.hs.font(-1)})),GO=Me.Ay.div.withConfig({displayName:"StyledStatedValueError"})(NO||(NO=Ce()([""]))),KO=Me.Ay.div.withConfig({displayName:"StyledStatedValueOuterWrapper"})(RO||(RO=Ce()(["\n &:not(:last-child) {\n margin-bottom: ",";\n }\n ","\n"])),Fe.hs.space(-.7),(function(e){return"inside"===e.labelPosition&&(0,Me.AH)(LO||(LO=Ce()(["\n padding-top: ",";\n margin-bottom: 0.65rem;\n position: relative;\n "])),Fe.hs.space(-1.5))})),$O=Me.Ay.div.withConfig({displayName:"StyledStatedValueInnerWrapper"})(FO||(FO=Ce()(["\n &&& {\n display: flex;\n flex-wrap: wrap;\n gap: ",";\n align-items: center;\n\n ",",\n ",",\n "," {\n margin-bottom: ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n "," {\n margin-left: calc("," + ",");\n }\n ","\n ","\n ","\n }\n"])),Fe.hs.space(-1.5),VO,qO,GO,Fe.hs.space(-2),qO,Fe.hs.space(-1),BO,(function(e){return"outside"===e.labelPosition&&(0,Me.AH)(HO||(HO=Ce()(["\n display: block;\n "])))}),(function(e){return"inside"===e.labelPosition&&(0,Me.AH)(WO||(WO=Ce()(["\n padding-top: 0;\n "])))}),(function(e){return e.styles}));function XO(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 QO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XO(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ZO=function(e){var t,n,r,o=e.children,a=e.description,i=e.dirty,s=e.isDisplay,c=e.error,u=e.hasValue,l=e.id,d=e.label,f=e.mandatory,p=e.mandatoryTitle,h=e.immutable,m=e.touched,g=e.signal,y=e.labelPosition,v=e.styles,b=!h&&m&&c&&Object.keys(c).length>0,w=f&&p?", ".concat(p):"",O="".concat(nr.adjustedHTMLString(d)).concat(w),x=g||function(e,t,n,r){return t?Fe.xX.condition.DANGER:e?Fe.xX.condition.INFO:n&&!r?Fe.xX.condition.WARNING:void 0}(i,b,f,u),k={__html:"".concat(sr.sanitizeHtml(d)).concat(f?" *":"")},S=!s&&!h&&{htmlFor:l};return(0,Ge.jsx)(Ka,{children:function(e){var f=e.getRef;return(0,Ge.jsx)(KO,{labelPosition:y,children:(0,Ge.jsxs)($O,{labelPosition:y,ref:f,label:d,styles:null==v?void 0:v.innerWrapperStyles,children:[d&&(0,Ge.jsx)(YO,QO(QO({},S),{},{hasValue:u,dirty:i,title:O,immutable:h,isDisplay:s,signal:x,labelPosition:y,styles:null==v?void 0:v.labelStyles,children:t||(t=(0,Ge.jsx)("span",{dangerouslySetInnerHTML:k}))})),(0,Ge.jsxs)(zO,{labelPosition:y,children:[(0,Ge.jsx)(VO,{hasValue:u,immutable:h,isDisplay:s,signal:x,labelPosition:y,styles:null==v?void 0:v.valueStyles,children:o}),b&&(0,Ge.jsx)(GO,{"data-cy":"errorlist-".concat(l),children:n||(n=(0,Ge.jsx)(PO,{error:c}))}),a&&(r||(r=(0,Ge.jsx)(qO,{children:a})))]})]})})}})};var JO,ex,tx=function(e){return(0,Me.AH)(JO||(JO=Ce()(["\n color: ",";\n font-weight: ",";\n"])),Fe.Db[function(e){var t=e.isDisplay,n=e.immutable,r=e.signal,o=e.hasValue;return r?"signal":o?"hasValue":t?"shade1":n?"base":"shade1"}(e)](e),(function(e){return e.dirty?Fe.t7.fontWeight("bold"):Fe.t7.fontWeight("regular")}))},nx=function(){return(0,Me.AH)(ex||(ex=Ce()(["\n padding-left: ",";\n"])),(function(e){return e.immutable&&0}))},rx=["labelPosition"];function ox(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}const ax=function(e){var t=e.labelPosition,n=Ve()(e,rx);return(0,Ge.jsx)(ZO,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ox(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ox(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{labelStyles:tx,valueStyles:nx},labelPosition:t||"outside-responsive"},n))};var ix,sx,cx,ux,lx,dx,fx=function(e){return e.signal?"signal":"shade2"},px=function(){return(0,Me.AH)(ix||(ix=Ce()(["\n align-items: flex-start;\n"])))},hx=function(e){return(0,Me.AH)(sx||(sx=Ce()(["\n padding-top: ",";\n color: ",";\n"])),(function(e){var t=e.immutable;return"inside"===e.labelPosition?0:t?(0,Me.AH)(cx||(cx=Ce()(["\n ","\n "])),Fe.hs.space(-1.8)):(0,Me.AH)(ux||(ux=Ce()(["\n ","\n "])),Fe.hs.space(.1))}),Fe.Db[fx(e)](e))},mx=function(){return(0,Me.AH)(lx||(lx=Ce()(["\n padding-top: ",";\n padding-left: ",";\n"])),(function(e){var t=e.isDisplay,n=e.immutable,r=e.labelPosition;return n&&"inside"!==r?0:t&&n?(0,Me.AH)(dx||(dx=Ce()(["\n ","\n "])),Fe.hs.space(-1)):void 0}),(function(e){return e.immutable&&0}))},gx=["labelPosition"];function yx(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}const vx=function(e){var t=e.labelPosition,n=Ve()(e,gx);return(0,Ge.jsx)(ZO,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yx(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{innerWrapperStyles:px,labelStyles:hx,valueStyles:mx},labelPosition:t||"outside-responsive"},n))};var bx=Ye()(Ye()({},iy.A.EmbedType.admin,ax),iy.A.EmbedType.widget,vx);const wx=iy.A.embedStrategyFactory({mapping:bx});var Ox,xx,kx,Sx,Ex=Me.Ay.span.withConfig({displayName:"StyledSearchIconWrapper"})(Ox||(Ox=Ce()(["\n margin-right: ",";\n color: ",";\n"])),Fe.hs.space(-.8),Fe.t7.color("text")),Px=Me.Ay.div.withConfig({displayName:"StyledSearchBox"})(xx||(xx=Ce()(["\n && {\n /* clears the ‘X’ from Chrome */\n input[type='search']::-webkit-search-decoration,\n input[type='search']::-webkit-search-cancel-button,\n input[type='search']::-webkit-search-results-button,\n input[type='search']::-webkit-search-results-decoration {\n display: none;\n }\n }\n"]))),jx=Me.Ay.input.attrs((function(e){return{type:"search",placeholder:e.placeholder}})).withConfig({displayName:"StyledSearchBoxInput"})(kx||(kx=Ce()(["\n &&&& {\n ","\n }\n"])),si),_x=h().forwardRef((function(e,t){var n=e.value,r=e.minInputLength,o=void 0===r?3:r,a=e.onSearch,i=e.placeholder,s=(e.debounce,(0,f.useState)(n||"")),c=Je()(s,2),u=c[0],l=c[1];return(0,Ge.jsx)(Px,{children:(0,Ge.jsx)(wx,{hasValue:Boolean(u),labelPosition:"inside",children:(0,Ge.jsxs)(ii,{children:[Sx||(Sx=(0,Ge.jsx)(Ex,{children:(0,Ge.jsx)(qe.A,{icon:"search"})})),(0,Ge.jsx)(jx,{"data-cy":"input-search-box",ref:t,onChange:function(e){var t=e.target.value;l(t),(0===t.length||t.length>=o)&&a(t.trim())},value:u,"aria-label":i,placeholder:i}),(null==u?void 0:u.length)>0&&(0,Ge.jsx)(At,{"data-cy":"btn-reset",icon:"times",onClick:function(){l(""),a("")}})]})})})}));const Dx=st.Debouncer(_x,100,"onSearch");var Cx,Tx=[Fe.xX.condition.BASE,Fe.xX.condition.INFO,Fe.xX.condition.DANGER,Fe.xX.condition.SUCCESS,Fe.xX.condition.WARNING],Mx=Ye()(Ye()(Ye()(Ye()(Ye()({},Fe.xX.condition.BASE,Fe.t7.color("signal.neutral")),Fe.xX.condition.DANGER,Fe.t7.color("signal.danger")),Fe.xX.condition.SUCCESS,Fe.t7.color("signal.success")),Fe.xX.condition.WARNING,Fe.t7.color("signal.warning")),Fe.xX.condition.INFO,Fe.t7.color("signal.info")),Ax=Me.Ay.div.withConfig({displayName:"StyledSignalBox"})(Cx||(Cx=Ce()(["\n && {\n background-color: ",";\n padding: ",";\n margin-bottom: ",";\n\n * {\n color: ",";\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(function(e){return function(e){return Mx[e.condition]||Mx[Fe.xX.condition.INFO]}(e)}),Fe.hs.space(-1),Fe.hs.space(-1),(function(e){return"base"===e.condition?"#000":"#FFF"}));Ax.propTypes={condition:Fe.xX.oneOfPropTypeAndCompletelyMapped(Tx,Mx)};var Ix,Nx,Rx;Me.Ay.div.withConfig({displayName:"StyledCell"})(Ix||(Ix=Ce()(["\n display: flex;\n flex-direction: column;\n width: 100%;\n"]))),Me.Ay.div.withConfig({displayName:"StyledStatedValueBox"})(Nx||(Nx=Ce()(["\n width: 100%;\n ","\n border: 1px solid ",";\n border-radius: ",";\n ","\n "," {\n padding: "," "," "," ",";\n border-radius: ",";\n background-color: ",";\n }\n\n button {\n background-color: transparent;\n }\n\n &&&&& {\n input,\n textarea {\n padding-left: ",";\n padding-right: ",";\n\n &:not([disabled]):hover {\n cursor: pointer;\n }\n }\n\n .react-datepicker-wrapper {\n margin-right: ",";\n }\n\n input.react-datepicker__input {\n padding-left: ",";\n padding-right: 0;\n }\n }\n"])),Fe.h7,Fe.t7.color("border"),Fe.t7.radii("form"),(function(e){return e.borderless&&(0,Me.AH)(Rx||(Rx=Ce()(["\n border: none;\n "])))}),ud,Fe.hs.space(-2),Fe.hs.space(-1.7),Fe.hs.space(-2),Fe.hs.space(-1),Fe.t7.radii("form"),Fe.t7.color("paper"),Fe.hs.space(-1),Fe.hs.space(-1),Fe.hs.space(-.5),Fe.hs.space(-1));var Lx;function Fx(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 Hx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fx(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wx={currentlyDragging:null,currentlyDragOver:null,horizontalDropPosition:null,verticalDropPosition:null,offsetX:null,offsetY:null},Bx={Left:"Left",Right:"Right"},Ux={Top:"Top",Bottom:"Bottom"},Yx=function(e,t,n){var r=e.clientX-t>0,o=e.clientY-n>0;return{horizontal:r?Bx.Right:Bx.Left,vertical:o?Ux.Bottom:Ux.Top}};const zx=function(e){var t=(0,f.useState)(Wx),n=Je()(t,2),r=n[0],o=n[1],a=r.currentlyDragging,i=r.currentlyDragOver,s=r.horizontalDropPosition,c=r.verticalDropPosition,u=r.offsetX,l=r.offsetY,d=(0,f.useCallback)((function(t){return{onDragStart:function(e){o((function(e){return Hx(Hx({},e),{},{currentlyDragging:t})}));var n=e.target,r=function(e){o(Wx),e.stopPropagation(),n&&n.removeEventListener("dragend",r)};n&&n.addEventListener("dragend",r,!1),e.stopPropagation()},onDragEnter:function(e){if(a&&!Qn()(i,t)){var n=e.target?e.target.getBoundingClientRect():{},r=n.x+n.width/2,s=n.y+n.height/2,c=Yx(e,r,s),u=c.horizontal,l=c.vertical;(0,$r.flushSync)((function(){o((function(e){return Hx(Hx({},e),{},{currentlyDragOver:t,offsetX:r,offsetY:s,horizontalDropPosition:u,verticalDropPosition:l})}))}))}e.stopPropagation()},onDragOver:function(e){if(a&&Qn()(i,t)){var n=Yx(e,u,l),r=n.horizontal,s=n.vertical;return o((function(e){return Hx(Hx({},e),{},{horizontalDropPosition:r,verticalDropPosition:s})})),e.preventDefault(),e.stopPropagation(),!0}},onDragLeave:function(e){a&&Qn()(i,t)&&(e.stopPropagation(),o((function(e){return Hx(Hx({},e),{},{currentlyDragOver:null,horizontalDropPosition:null,verticalDropPosition:null})})))},onDrop:function(t){a&&i&&(e(a,i,s,c),o(Wx),t.stopPropagation())}}}),[i,a,s,c,u,l,e]),p=(0,f.useMemo)((function(){return{currentlyDragOver:i,currentlyDragging:a,horizontalDropPosition:s,verticalDropPosition:c,offsetX:u,offsetY:l}}),[i,a,s,c,u,l]);return{dndEvents:d,dndState:p,dndCss:Boolean(p.currentlyDragging)?(0,Me.AH)(Lx||(Lx=Ce()(["\n & * {\n pointer-events: none;\n }\n "]))):""}},Vx=Bx;var qx,Gx,Kx,$x,Xx,Qx,Zx,Jx,ek=Me.Ay.div.withConfig({displayName:"StyledColumnPickerWrapper"})(qx||(qx=Ce()(["\n padding-right: 3px; /* make sure drop indicator does not overlap outer elements on the right most side */\n"]))),tk=Me.Ay.div.withConfig({displayName:"StyledControlsWrapper"})(Gx||(Gx=Ce()(["\n margin-left: 3px; /* rest of checkboxes are moved 3px to the right to make room for drop indicator */\n margin-top: ",";\n"])),Fe.hs.space(.7)),nk=Me.Ay.ul.withConfig({displayName:"StyledUl"})(Kx||(Kx=Ce()(["\n list-style-type: none;\n margin-top: "," !important; /* Nice2 Reset */\n margin-left: 3px; /* make room for drop indicator when it appears on the left-most side */\n padding-left: 0 !important; /* Nice2 Reset */\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));\n\n "," {\n padding: 0 !important; /* Nice2 Reset */\n }\n"])),Fe.hs.space(-.5),cr.Gw),rk=Me.Ay.input.withConfig({displayName:"StyledCheckbox"})($x||($x=Ce()(["\n vertical-align: top;\n margin-right: "," !important; /* Nice2 Reset */\n\n &:hover {\n cursor: pointer;\n }\n"])),Fe.hs.space(-1)),ok=Me.Ay.span.withConfig({displayName:"StyledId"})(Xx||(Xx=Ce()(["\n color: ",";\n font-style: italic;\n"])),Fe.t7.color("text")),ak=(0,Me.Ay)(cr.vx).withConfig({displayName:"StyledItem"})(Qx||(Qx=Ce()(["\n display: flex;\n padding: "," "," "," 0;\n box-sizing: border-box;\n\n /* when border appears, the content moves over by the width of the border,\n so we move the content back the same width */\n margin-left: ",";\n border-left: ",";\n border-right: ",";\n ","\n"])),Fe.hs.space(-2),Fe.hs.space(-2),Fe.hs.space(-2),(function(e){return e.dropPosition===Vx.Left?"-3px":"0"}),(function(e){var t=e.dropPosition,n=e.theme;return t===Vx.Left?"3px solid ".concat(n.colors.secondary):"none"}),(function(e){var t=e.dropPosition,n=e.theme;return t===Vx.Right?"3px solid ".concat(n.colors.secondary):"none"}),(function(e){var t=e.draggable,n=e.theme;return t&&"\n &:hover {\n background-color: ".concat(n.colors.backgroundItemHover,";\n\n &,\n label {\n cursor: pointer;\n }\n }\n ")})),ik=Me.Ay.span.withConfig({displayName:"StyledNumber"})(Zx||(Zx=Ce()(["\n display: inline-block;\n margin-right: ",";\n color: ",";\n font-size: ",";\n"])),Fe.hs.space(-1),Fe.t7.color("text"),Fe.hs.font(0));function sk(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 ck(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sk(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const uk=function(e){var t=e.index,n=e.dndProps,r=e.column,o=e.onSelectionChange;return(0,Ge.jsxs)(lk,ck(ck({},n),{},{$_css:n.dndCss,children:[(0,Ge.jsx)(rk,{type:"checkbox",id:r.id,checked:!r.hidden,onChange:function(e){return o(r.id,e.target.checked)}}),(0,Ge.jsxs)(cr.Ay.Label,{htmlFor:r.id,children:[(0,Ge.jsxs)(ik,{children:[t,"."]}),r.label?(0,Ge.jsx)("span",{dangerouslySetInnerHTML:{__html:sr.sanitizeHtml(r.label)}}):(0,Ge.jsx)(ok,{children:r.id})]})]}))};var lk=(0,Me.Ay)(ak).withConfig({displayName:"_StyledStyledItem"})(Jx||(Jx=Ce()(["",""])),(function(e){return e.$_css}));function dk(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 fk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dk(Object(n),!0).forEach((function(t){Ye()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pk=function(e,t){return e.filter((function(e){return null===t||e.label.match(new RegExp(t,"i"))}))};const hk=function(e){var t=e.dndEnabled,n=e.columns,r=void 0===n?[]:n,o=e.sortColumns,a=e.onColumnsChange,i=e.intl,s=function(e){return o?o(e):function(e){return Ht()(e).sort((function(e,t){return e.hidden-t.hidden}))}(e)},c=s(r),u=(0,f.useState)(null),l=Je()(u,2),d=l[0],p=l[1],h=(0,f.useCallback)((function(e,t,n){if(e!==t){var r=c.find((function(t){return t.id===e}));a((function(e){return e.filter((function(e){return e!==r})).reduce((o=r,a=t,i=n,function(e,t){if(t.id===a){if(i===Vx.Left)return[].concat(Ht()(e),[o,t]);if(i===Vx.Right)return[].concat(Ht()(e),[t,o])}return[].concat(Ht()(e),[t])}),[]);var o,a,i}))}}),[c,a]),m=zx(h),g=m.dndEvents,y=m.dndState,v=m.dndCss,b=(0,f.useMemo)((function(){return pk(c,d)}),[c,d]),w=b.some((function(e){return e.hidden})),O=function(e,t){a((function(n){return s(n.map((function(n){return n.id===e?fk(fk({},n),{},{hidden:!t}):n})))}))},x=function(e){return y.currentlyDragOver===e.id&&y.currentlyDragging!==e.id};return(0,Ge.jsxs)(ek,{children:[(0,Ge.jsx)(Dx,{placeholder:i.formatMessage({id:"client.entity-list.preferences.columns.search"}),onSearch:p}),(0,Ge.jsxs)(tk,{children:[(0,Ge.jsx)(rk,{type:"checkbox",onChange:function(e){var t=e.target.checked;a((function(e){var n=pk(e,d);return s(Ht()(e.map((function(e){return fk(fk({},e),{},{hidden:n.includes(e)?!t:e.hidden})}))))}))},checked:!w}),(0,Ge.jsx)(cr.Ay.Span,{children:i.formatMessage({id:"client.entity-list.preferences.columns.selectDeselectAllCheckbox"})})]}),(0,Ge.jsx)(nk,{children:b.map((function(e,n){return(0,Ge.jsx)(uk,{index:n+1,column:e,dndProps:fk({draggable:t,dndCss:v,dropPosition:x(e)&&y.horizontalDropPosition},t&&fk({},g(e.id))),onSelectionChange:O},e.id)}))})]})};(0,d.injectIntl)(hk);var mk,gk,yk,vk;Me.Ay.div.withConfig({displayName:"StyledIconWrapper"})(mk||(mk=Ce()(["\n font-size: ",";\n color: ",";\n"])),Fe.hs.font(-2.7),Fe.t7.color("text")),Me.Ay.div.withConfig({displayName:"StyledRange"})(gk||(gk=Ce()(["\n display: flex;\n align-items: baseline;\n width: 100%;\n"]))),Me.Ay.div.withConfig({displayName:"StyledInput"})(yk||(yk=Ce()(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"]))),(0,Me.Ay)(At).withConfig({displayName:"StyledBall"})(vk||(vk=Ce()(["\n align-self: start;\n position: relative;\n top: ","px;\n"])),(function(e){return e.isAdmin?"2.5":"8"}));var bk,wk,Ok,xk,kk,Sk=Me.Ay.div.withConfig({displayName:"StyledBurgerButton"})(bk||(bk=Ce()(["\n width: 24px;\n height: 24px;\n position: absolute;\n left: 17px;\n top: 12px;\n z-index: 4; /* higher than StyledHeader to enable interactions */\n transform: rotate(0deg);\n transition: 0.5s ease-in-out;\n cursor: pointer;\n\n span {\n display: block;\n position: absolute;\n height: 2px;\n width: 100%;\n background: ",";\n opacity: 1;\n left: 0;\n transform: rotate(0deg);\n transition: 0.25s ease-in-out;\n\n &:nth-child(1) {\n top: 0;\n transform-origin: left center;\n }\n\n &:nth-child(2) {\n top: 6.5px;\n transform-origin: left center;\n }\n\n &:nth-child(3) {\n top: 13.5px;\n transform-origin: left center;\n }\n }\n ","\n"])),Fe.t7.color("backgroundBurgerMenuBars"),(function(e){return e.isOpen&&(0,Me.AH)(wk||(wk=Ce()(["\n span:nth-child(1) {\n transform: rotate(45deg);\n top: -3px;\n left: 0;\n }\n\n span:nth-child(2) {\n width: 0;\n opacity: 0;\n }\n\n span:nth-child(3) {\n transform: rotate(-45deg);\n top: 14.3px;\n left: 0;\n }\n "])))}));(0,d.injectIntl)((function(e){var t,n=e.isOpen,r=e.intl,o=e.toggleMenu;return(0,Ge.jsxs)(Sk,{id:"burger-button",isOpen:n,"aria-label":(t="client.component.burgerButton.Label",r.formatMessage({id:t})),onClick:o,children:[Ok||(Ok=(0,Ge.jsx)("span",{})),xk||(xk=(0,Ge.jsx)("span",{})),kk||(kk=(0,Ge.jsx)("span",{}))]})}));var Ek,Pk,jk=Me.Ay.div.withConfig({displayName:"StyledPagination"})(Ek||(Ek=Ce()(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-wrap: wrap;\n gap: ",";\n margin-left: ",";\n"])),Fe.hs.space(-1),Fe.hs.space(-1.4)),_k=(0,Me.Ay)(Et).withConfig({displayName:"StyledPaginationButton"})(Pk||(Pk=Ce()(["\n padding: "," ",";\n"])),Fe.hs.space(-2),Fe.hs.space(-.5));const Dk=(0,d.injectIntl)((function(e){var t=e.totalCount,n=e.recordsPerPage,r=e.currentPage,o=e.onPageChange,a=e.intl,i=e.tableEl,s=e.children,c=Math.ceil(t/n),u=Math.min((r-1)*n+1,t),l=Math.min(r*n,t),f=function(e){return a.formatMessage({id:e})},p=function(e){o(e),i.current.scrollTop=0};return(0,Ge.jsxs)(jk,{children:[(0,Ge.jsxs)(Br,{children:[(0,Ge.jsx)(_k,{disabled:1===r,label:f("client.component.pagination.firstPageTitle"),iconOnly:!0,icon:"chevron-double-left",onClick:function(){return p(1)}}),(0,Ge.jsx)(_k,{disabled:1===r,label:f("client.component.pagination.prePageTitle"),iconOnly:!0,icon:"chevron-left",onClick:function(){return p(r-1)}}),(0,Ge.jsx)(_k,{disabled:r>=c,label:f("client.component.pagination.nextPageTitle"),iconOnly:!0,icon:"chevron-right",onClick:function(){return p(r+1)}}),(0,Ge.jsx)(_k,{disabled:r>=c,label:f("client.component.pagination.lastPageTitle"),iconOnly:!0,icon:"chevron-double-right",onClick:function(){return p(c)}})]}),t>0&&(0,Ge.jsx)(cr.Ay.Span,{children:(0,Ge.jsx)(d.FormattedMessage,{id:"client.component.pagination.text",values:{start:u,to:l,total:t}})}),s]})})),Ck=Dk;var Tk,Mk=Object.defineProperty,Ak=Object.getOwnPropertySymbols,Ik=Object.prototype.hasOwnProperty,Nk=Object.prototype.propertyIsEnumerable,Rk=(e,t,n)=>t in e?Mk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lk=(e,t)=>{for(var n in t||(t={}))Ik.call(t,n)&&Rk(e,n,t[n]);if(Ak)for(var n of Ak(t))Nk.call(t,n)&&Rk(e,n,t[n]);return e},Fk=(e,t)=>{var n={};for(var r in e)Ik.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ak)for(var r of Ak(e))t.indexOf(r)<0&&Nk.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class t{constructor(e,n,r,a){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==a){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(a=t,e=n),this.applyMask(t)}}o(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,r,a=1,s=40,c=-1,u=!0){if(!(t.MIN_VERSION<=a&&a<=s&&s<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let l,d;for(l=a;;l++){const n=8*t.getNumDataCodewords(l,r),o=i.getTotalBits(e,l);if(o<=n){d=o;break}if(l>=s)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&d<=8*t.getNumDataCodewords(l,e)&&(r=e);let f=[];for(const t of e){n(t.mode.modeBits,4,f),n(t.numChars,t.mode.numCharCountBits(l),f);for(const e of t.getData())f.push(e)}o(f.length==d);const p=8*t.getNumDataCodewords(l,r);o(f.length<=p),n(0,Math.min(4,p-f.length),f),n(0,(8-f.length%8)%8,f),o(f.length%8==0);for(let e=236;f.length<p;e^=253)n(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,r,h,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const a=21522^(t<<10|n);o(a>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(a,e));this.setFunctionModule(8,7,r(a,6)),this.setFunctionModule(8,8,r(a,7)),this.setFunctionModule(7,8,r(a,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(a,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(a,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(a,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;o(t>>>18==0);for(let e=0;e<18;e++){const n=r(t,e),o=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(o,a,n),this.setFunctionModule(a,o,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),a=e+r,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const a=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=a-s%a,u=Math.floor(s/a);let l=[];const d=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<a;n++){let o=e.slice(r,r+u-i+(n<c?0:1));r+=o.length;const a=t.reedSolomonComputeRemainder(o,d);n<c&&o.push(0),l.push(o.concat(a))}let f=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-i||n>=c)&&f.push(t[e])}));return o(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let o=0;o<this.size;o++)for(let a=0;a<2;a++){const i=t-a,s=0==(t+1&2)?this.size-1-o:o;!this.isFunction[s][i]&&n<8*e.length&&(this.modules[s][i]=r(e[n>>>3],7-(7&n)),n++)}}o(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][i],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[i][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,a=Math.ceil(Math.abs(20*n-10*r)/r)-1;return o(0<=a&&a<=9),e+=a*t.PENALTY_N4,o(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return o(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return o(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];o(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]];function n(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return 0!=(e>>>t&1)}function o(e){if(!e)throw new Error("Assertion error")}e.QrCode=t;const a=class e{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(t){let r=[];for(const e of t)n(e,8,r);return new e(e.Mode.BYTE,t.length,r)}static makeNumeric(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");let r=[];for(let e=0;e<t.length;){const o=Math.min(t.length-e,3);n(parseInt(t.substring(e,e+o),10),3*o+1,r),e+=o}return new e(e.Mode.NUMERIC,t.length,r)}static makeAlphanumeric(t){if(!e.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");let r,o=[];for(r=0;r+2<=t.length;r+=2){let a=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r));a+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),n(a,11,o)}return r<t.length&&n(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,o),new e(e.Mode.ALPHANUMERIC,t.length,o)}static makeSegments(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let r=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)n(t,8,r);else if(t<16384)n(2,2,r),n(t,14,r);else{if(!(t<1e6))throw new RangeError("ECI assignment value out of range");n(6,3,r),n(t,21,r)}return new e(e.Mode.ECI,0,r)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substring(n+1,n+3),16)),n+=2);return t}};a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let i=a;e.QrSegment=a})(Tk||(Tk={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2);e.Ecc=t})(t=e.QrCode||(e.QrCode={}))})(Tk||(Tk={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]);e.Mode=t})(t=e.QrSegment||(e.QrSegment={}))})(Tk||(Tk={}));var Hk=Tk,Wk={L:Hk.QrCode.Ecc.LOW,M:Hk.QrCode.Ecc.MEDIUM,Q:Hk.QrCode.Ecc.QUARTILE,H:Hk.QrCode.Ecc.HIGH},Bk=128,Uk="L",Yk="#FFFFFF",zk="#000000",Vk=!1,qk=1,Gk=4,Kk=0,$k=.1;
79
79
  /**
80
80
  * @license qrcode.react
81
81
  * Copyright (c) Paul O'Shannessy