tocco-widget-utils 3.12.27 → 3.12.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +3 -0
- package/dist/bootstrap.js +1 -1
- package/dist/tql.js +1 -1
- package/dist/widget-placeholder.js +1 -1
- package/package.json +1 -1
|
@@ -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},i=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var d=a(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,i=e,e=r(e),void 0!==l&&f.hasValue){var t=f.value;if(l(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=r(e);return void 0!==l&&l(t,n)?t:(i=e,a=n)}var i,a,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=i(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:()=>O});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 i=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 a=[],s=0;s<256;++s)a.push((s+256).toString(16).slice(1));function c(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[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,a){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=i(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){a=a||0;for(var l=0;l<16;++l)o[a+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,i){return h((a=h(h(t,e),h(r,i)))<<(s=o)|a>>>32-s,n);var a,s}function g(e,t,n,r,o,i,a){return m(t&n|~t&r,e,t,o,i,a)}function v(e,t,n,r,o,i,a){return m(t&r|n&~r,e,t,o,i,a)}function y(e,t,n,r,o,i,a){return m(t^n^r,e,t,o,i,a)}function b(e,t,n,r,o,i,a){return m(n^(t|~r),e,t,o,i,a)}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 i=e[o>>5]>>>o%32&255,a=parseInt(r.charAt(i>>>4&15)+r.charAt(15&i),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[p(t)-1]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var s=n,c=r,u=o,l=i;n=g(n,r,o,i,e[a],7,-680876936),i=g(i,n,r,o,e[a+1],12,-389564586),o=g(o,i,n,r,e[a+2],17,606105819),r=g(r,o,i,n,e[a+3],22,-1044525330),n=g(n,r,o,i,e[a+4],7,-176418897),i=g(i,n,r,o,e[a+5],12,1200080426),o=g(o,i,n,r,e[a+6],17,-1473231341),r=g(r,o,i,n,e[a+7],22,-45705983),n=g(n,r,o,i,e[a+8],7,1770035416),i=g(i,n,r,o,e[a+9],12,-1958414417),o=g(o,i,n,r,e[a+10],17,-42063),r=g(r,o,i,n,e[a+11],22,-1990404162),n=g(n,r,o,i,e[a+12],7,1804603682),i=g(i,n,r,o,e[a+13],12,-40341101),o=g(o,i,n,r,e[a+14],17,-1502002290),n=v(n,r=g(r,o,i,n,e[a+15],22,1236535329),o,i,e[a+1],5,-165796510),i=v(i,n,r,o,e[a+6],9,-1069501632),o=v(o,i,n,r,e[a+11],14,643717713),r=v(r,o,i,n,e[a],20,-373897302),n=v(n,r,o,i,e[a+5],5,-701558691),i=v(i,n,r,o,e[a+10],9,38016083),o=v(o,i,n,r,e[a+15],14,-660478335),r=v(r,o,i,n,e[a+4],20,-405537848),n=v(n,r,o,i,e[a+9],5,568446438),i=v(i,n,r,o,e[a+14],9,-1019803690),o=v(o,i,n,r,e[a+3],14,-187363961),r=v(r,o,i,n,e[a+8],20,1163531501),n=v(n,r,o,i,e[a+13],5,-1444681467),i=v(i,n,r,o,e[a+2],9,-51403784),o=v(o,i,n,r,e[a+7],14,1735328473),n=y(n,r=v(r,o,i,n,e[a+12],20,-1926607734),o,i,e[a+5],4,-378558),i=y(i,n,r,o,e[a+8],11,-2022574463),o=y(o,i,n,r,e[a+11],16,1839030562),r=y(r,o,i,n,e[a+14],23,-35309556),n=y(n,r,o,i,e[a+1],4,-1530992060),i=y(i,n,r,o,e[a+4],11,1272893353),o=y(o,i,n,r,e[a+7],16,-155497632),r=y(r,o,i,n,e[a+10],23,-1094730640),n=y(n,r,o,i,e[a+13],4,681279174),i=y(i,n,r,o,e[a],11,-358537222),o=y(o,i,n,r,e[a+3],16,-722521979),r=y(r,o,i,n,e[a+6],23,76029189),n=y(n,r,o,i,e[a+9],4,-640364487),i=y(i,n,r,o,e[a+12],11,-421815835),o=y(o,i,n,r,e[a+15],16,530742520),n=b(n,r=y(r,o,i,n,e[a+2],23,-995338651),o,i,e[a],6,-198630844),i=b(i,n,r,o,e[a+7],10,1126891415),o=b(o,i,n,r,e[a+14],15,-1416354905),r=b(r,o,i,n,e[a+5],21,-57434055),n=b(n,r,o,i,e[a+12],6,1700485571),i=b(i,n,r,o,e[a+3],10,-1894986606),o=b(o,i,n,r,e[a+10],15,-1051523),r=b(r,o,i,n,e[a+1],21,-2054922799),n=b(n,r,o,i,e[a+8],6,1873313359),i=b(i,n,r,o,e[a+15],10,-30611744),o=b(o,i,n,r,e[a+6],15,-1560198380),r=b(r,o,i,n,e[a+13],21,1309151649),n=b(n,r,o,i,e[a+4],6,-145523070),i=b(i,n,r,o,e[a+11],10,-1120210379),o=b(o,i,n,r,e[a+2],15,718787259),r=b(r,o,i,n,e[a+9],21,-343485551),n=h(n,s),r=h(r,c),o=h(o,u),i=h(i,l)}return[n,r,o,i]}(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 x={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};const O=function(e,t,n){if(x.randomUUID&&!t&&!e)return x.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 i=e.length/4+2,a=Math.ceil(i/16),s=new Array(a),c=0;c<a;++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[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<a;++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],v=n[2],y=n[3],b=n[4],w=0;w<80;++w){var x=Math.floor(w/20),O=S(m,5)+k(x,g,v,y)+b+t[x]+f[w]>>>0;b=y,y=v,v=S(g,30)>>>0,g=m,m=O}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>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,i=Object.getOwnPropertyDescriptor,a=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 a(t))!c.call(e,s)&&s!==n&&o(e,s,{get:()=>t[s],enumerable:!(r=i(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:()=>y,batch:()=>Se,connect:()=>ye,createDispatchHook:()=>Oe,createSelectorHook:()=>S,createStoreHook:()=>we,shallowEqual:()=>te,useDispatch:()=>ke,useSelector:()=>E,useStore:()=>xe}),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"),v=typeof globalThis<"u"?globalThis:{};var y=function(){if(!m.createContext)return{};let e=v[g]??(v[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=y){return function(){return m.useContext(e)}}var x=w(),O=b,k=(e,t)=>e===t;function S(e=y){let t=e===y?x:w(e),n=(e,n={})=>{let{equalityFn:r=k,devModeChecks:o={}}="function"==typeof n?{equalityFn:n}:n,{store:i,subscription:a,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=O(a.addNestedSub,i.getState,s||i.getState,l,r);return m.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var E=S(),P=Symbol.for("react.element"),D=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),A=Symbol.for("react.context"),M=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),B=L;function W(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 T:case C:case N:case R:return n;default:{let e=n&&n.$$typeof;switch(e){case M:case A:case I:case F:case L:case j:return e;default:return t}}}}case D:return t}}}(e)===L}function Y(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,c,u,l,d,f=!1;function p(f,p){let h=!i(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=!a(t,u);return u=t,r&&(d=n(u,l,c)),d}():d}return function(o,i){return f?p(o,i):function(o,i){return s=o,c=i,u=e(s,c),l=t(r,c),d=n(u,l,c),f=!0,d}(o,i)}}function U(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,i=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),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:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!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},ie={[H]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[B]:oe};function ae(e){return W(e)?oe:ie[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=ae(e),o=ae(t);for(let i=0;i<n.length;++i){let a=n[i];if(!(re[a]||o&&o[a]||r&&r[a])){let n=le(t,a);try{se(e,a,n)}catch{}}}}return e}var he=b,me=[null,null];function ge(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function ve(e,t){return e===t}var ye=function(e,t,n,{pure:r,areStatesEqual:o=ve,areOwnPropsEqual:i=te,areStatePropsEqual:a=te,areMergedPropsEqual:s=te,forwardRef:c=!1,context:u=y}={}){let l=u,d=function(e){return e?"function"==typeof e?V(e):q(e,"mapStateToProps"):U((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?U((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"):U((e=>({dispatch:e})))}(t),p=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){let s=e(t,n,a);return i?r(s,o)||(o=s):(i=!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:a,areOwnPropsEqual:i,areMergedPropsEqual:s};function u(t){let[n,o,i]=m.useMemo((()=>{let{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),a=m.useMemo((()=>l),[n,l]),s=m.useContext(a),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 Y(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[g,v]=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]),y=m.useMemo((()=>c?s:{...s,subscription:g}),[c,s,g]),b=m.useRef(void 0),w=m.useRef(i),x=m.useRef(void 0),O=m.useRef(!1),k=m.useRef(!1),S=m.useRef(void 0);J((()=>(k.current=!0,()=>{k.current=!1})),[]);let E,P=m.useMemo((()=>()=>x.current&&i===w.current?x.current:p(d.getState(),i)),[d,i]),D=m.useMemo((()=>e=>g?function(e,t,n,r,o,i,a,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===i.current?a.current||u():(i.current=e,c.current=e,a.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,O,k,x,v,e):()=>{}),[g]);!function(e,t,n){J((()=>e(...t)),n)}(ge,[w,b,O,i,x,v]);try{E=he(D,P,f?()=>p(f(),i):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,x.current=void 0,b.current=E}));let _=m.useMemo((()=>m.createElement(e,{...E,ref:o})),[o,e,E]);return m.useMemo((()=>h?m.createElement(a.Provider,{value:y},_):_),[a,_,y])}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:i="once"}){let a=m.useMemo((()=>{let t=X(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}}),[e,r,o,i]),s=m.useMemo((()=>e.getState()),[e]);return J((()=>{let{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]),m.createElement((t||y).Provider,{value:a},n)};function we(e=y){let t=e===y?x:w(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var xe=we();function Oe(e=y){let t=e===y?xe:we(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var ke=Oe(),Se=K;(e=>{O=e})(p.useSyncExternalStoreWithSelector),(e=>{he=e})(f.useSyncExternalStore)},95361:(e,t,n)=>{"use strict";n.d(t,{B1:()=>r.B1,BN:()=>g,ER:()=>v,Ej:()=>y,RK:()=>c,UE:()=>s,UU:()=>u,__:()=>a,cY:()=>m,jD:()=>f,mG:()=>h,rD:()=>i});var r=n(97193);function o(e,t,n){let{reference:o,floating:i}=e;const a=(0,r.TV)(t),s=(0,r.Dz)(t),c=(0,r.sq)(s),u=(0,r.C0)(t),l="y"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[c]/2-i[c]/2;let h;switch(u){case"top":h={x:d,y:o.y-i.height};break;case"bottom":h={x:d,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-i.width,y:f};break;default:h={x:o.x,y:o.y}}switch((0,r.Sg)(t)){case"start":h[s]-=p*(n&&l?-1:1);break;case"end":h[s]+=p*(n&&l?-1:1)}return h}const i=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,c=a.filter(Boolean),u=await(null==s.isRTL?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=o(l,r,u),p=r,h={},m=0;for(let n=0;n<c.length;n++){const{name:a,fn:g}=c[n],{x:v,y,data:b,reset:w}=await g({x:d,y:f,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:l,platform:s,elements:{reference:e,floating:t}});d=null!=v?v:d,f=null!=y?y:f,h={...h,[a]:{...h[a],...b}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(p=w.placement),w.rects&&(l=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):w.rects),({x:d,y:f}=o(l,p,u))),n=-1)}return{x:d,y:f,placement:p,strategy:i,middlewareData:h}};async function a(e,t){var n;void 0===t&&(t={});const{x:o,y:i,platform:a,rects:s,elements:c,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=(0,r._3)(t,e),m=(0,r.nI)(h),g=c[p?"floating"===f?"reference":"floating":f],v=(0,r.B1)(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(c.floating)),boundary:l,rootBoundary:d,strategy:u})),y="floating"===f?{...s.floating,x:o,y:i}:s.reference,b=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c.floating)),w=await(null==a.isElement?void 0:a.isElement(b))&&await(null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},x=(0,r.B1)(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:b,strategy:u}):y);return{top:(v.top-x.top+m.top)/w.y,bottom:(x.bottom-v.bottom+m.bottom)/w.y,left:(v.left-x.left+m.left)/w.x,right:(x.right-v.right+m.right)/w.x}}const s=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:a,platform:s,elements:c,middlewareData:u}=t,{element:l,padding:d=0}=(0,r._3)(e,t)||{};if(null==l)return{};const f=(0,r.nI)(d),p={x:n,y:o},h=(0,r.Dz)(i),m=(0,r.sq)(h),g=await s.getDimensions(l),v="y"===h,y=v?"top":"left",b=v?"bottom":"right",w=v?"clientHeight":"clientWidth",x=a.reference[m]+a.reference[h]-p[h]-a.floating[m],O=p[h]-a.reference[h],k=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let S=k?k[w]:0;S&&await(null==s.isElement?void 0:s.isElement(k))||(S=c.floating[w]||a.floating[m]);const E=x/2-O/2,P=S/2-g[m]/2-1,D=(0,r.jk)(f[y],P),_=(0,r.jk)(f[b],P),C=D,T=S-g[m]-_,j=S/2-g[m]/2+E,A=(0,r.qE)(C,j,T),M=!u.arrow&&null!=(0,r.Sg)(i)&&j!==A&&a.reference[m]/2-(j<C?D:_)-g[m]/2<0,I=M?j<C?j-C:j-T:0;return{[h]:p[h]+I,data:{[h]:A,centerOffset:j-A-I,...M&&{alignmentOffset:I}},reset:M}}});const c=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,i;const{rects:s,middlewareData:c,placement:u,platform:l,elements:d}=t,{crossAxis:f=!1,alignment:p,allowedPlacements:h=r.DD,autoAlignment:m=!0,...g}=(0,r._3)(e,t),v=void 0!==p||h===r.DD?function(e,t,n){return(e?[...n.filter((t=>(0,r.Sg)(t)===e)),...n.filter((t=>(0,r.Sg)(t)!==e))]:n.filter((e=>(0,r.C0)(e)===e))).filter((n=>!e||(0,r.Sg)(n)===e||!!t&&(0,r.aD)(n)!==n))}(p||null,m,h):h,y=await a(t,g),b=(null==(n=c.autoPlacement)?void 0:n.index)||0,w=v[b];if(null==w)return{};const x=(0,r.w7)(w,s,await(null==l.isRTL?void 0:l.isRTL(d.floating)));if(u!==w)return{reset:{placement:v[0]}};const O=[y[(0,r.C0)(w)],y[x[0]],y[x[1]]],k=[...(null==(o=c.autoPlacement)?void 0:o.overflows)||[],{placement:w,overflows:O}],S=v[b+1];if(S)return{data:{index:b+1,overflows:k},reset:{placement:S}};const E=k.map((e=>{const t=(0,r.Sg)(e.placement);return[e.placement,t&&f?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),P=(null==(i=E.filter((e=>e[2].slice(0,(0,r.Sg)(e[0])?2:3).every((e=>e<=0))))[0])?void 0:i[0])||E[0][0];return P!==u?{data:{index:b+1,overflows:k},reset:{placement:P}}:{}}}},u=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:s,rects:c,initialPlacement:u,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...y}=(0,r._3)(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};const b=(0,r.C0)(i),w=(0,r.C0)(u)===u,x=await(null==l.isRTL?void 0:l.isRTL(d.floating)),O=h||(w||!v?[(0,r.bV)(u)]:(0,r.WJ)(u));h||"none"===g||O.push(...(0,r.lP)(u,v,g,x));const k=[u,...O],S=await a(t,y),E=[];let P=(null==(o=s.flip)?void 0:o.overflows)||[];if(f&&E.push(S[b]),p){const e=(0,r.w7)(i,c,x);E.push(S[e[0]],S[e[1]])}if(P=[...P,{placement:i,overflows:E}],!E.every((e=>e<=0))){var D,_;const e=((null==(D=s.flip)?void 0:D.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:P},reset:{placement:t}};let n=null==(_=P.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:_.placement;if(!n)switch(m){case"bestFit":{var C;const e=null==(C=P.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:C[0];e&&(n=e);break}case"initialPlacement":n=u}if(i!==n)return{reset:{placement:n}}}return{}}}};function l(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function d(e){return r.r_.some((t=>e[t]>=0))}const f=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...i}=(0,r._3)(e,t);switch(o){case"referenceHidden":{const e=l(await a(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:d(e)}}}case"escaped":{const e=l(await a(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:d(e)}}}default:return{}}}}};function p(e){const t=(0,r.jk)(...e.map((e=>e.left))),n=(0,r.jk)(...e.map((e=>e.top)));return{x:t,y:n,width:(0,r.T9)(...e.map((e=>e.right)))-t,height:(0,r.T9)(...e.map((e=>e.bottom)))-n}}const h=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:o,rects:i,platform:a,strategy:s}=t,{padding:c=2,x:u,y:l}=(0,r._3)(e,t),d=Array.from(await(null==a.getClientRects?void 0:a.getClientRects(o.reference))||[]),f=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let o=null;for(let e=0;e<t.length;e++){const r=t[e];!o||r.y-o.y>o.height/2?n.push([r]):n[n.length-1].push(r),o=r}return n.map((e=>(0,r.B1)(p(e))))}(d),h=(0,r.B1)(p(d)),m=(0,r.nI)(c);const g=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===f.length&&f[0].left>f[1].right&&null!=u&&null!=l)return f.find((e=>u>e.left-m.left&&u<e.right+m.right&&l>e.top-m.top&&l<e.bottom+m.bottom))||h;if(f.length>=2){if("y"===(0,r.TV)(n)){const e=f[0],t=f[f.length-1],o="top"===(0,r.C0)(n),i=e.top,a=t.bottom,s=o?e.left:t.left,c=o?e.right:t.right;return{top:i,bottom:a,left:s,right:c,width:c-s,height:a-i,x:s,y:i}}const e="left"===(0,r.C0)(n),t=(0,r.T9)(...f.map((e=>e.right))),o=(0,r.jk)(...f.map((e=>e.left))),i=f.filter((n=>e?n.left===o:n.right===t)),a=i[0].top,s=i[i.length-1].bottom;return{top:a,bottom:s,left:o,right:t,width:t-o,height:s-a,x:o,y:a}}return h}},floating:o.floating,strategy:s});return i.reference.x!==g.reference.x||i.reference.y!==g.reference.y||i.reference.width!==g.reference.width||i.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}};const m=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:a,placement:s,middlewareData:c}=t,u=await async function(e,t){const{placement:n,platform:o,elements:i}=e,a=await(null==o.isRTL?void 0:o.isRTL(i.floating)),s=(0,r.C0)(n),c=(0,r.Sg)(n),u="y"===(0,r.TV)(n),l=["left","top"].includes(s)?-1:1,d=a&&u?-1:1,f=(0,r._3)(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return c&&"number"==typeof m&&(h="end"===c?-1*m:m),u?{x:h*d,y:p*l}:{x:p*l,y:h*d}}(t,e);return s===(null==(n=c.offset)?void 0:n.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:i+u.x,y:a+u.y,data:{...u,placement:s}}}}},g=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=(0,r._3)(e,t),d={x:n,y:o},f=await a(t,l),p=(0,r.TV)((0,r.C0)(i)),h=(0,r.PG)(p);let m=d[h],g=d[p];if(s){const e="y"===h?"bottom":"right",t=m+f["y"===h?"top":"left"],n=m-f[e];m=(0,r.qE)(t,m,n)}if(c){const e="y"===p?"bottom":"right",t=g+f["y"===p?"top":"left"],n=g-f[e];g=(0,r.qE)(t,g,n)}const v=u.fn({...t,[h]:m,[p]:g});return{...v,data:{x:v.x-n,y:v.y-o}}}}},v=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:a,middlewareData:s}=t,{offset:c=0,mainAxis:u=!0,crossAxis:l=!0}=(0,r._3)(e,t),d={x:n,y:o},f=(0,r.TV)(i),p=(0,r.PG)(f);let h=d[p],m=d[f];const g=(0,r._3)(c,t),v="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const e="y"===p?"height":"width",t=a.reference[p]-a.floating[e]+v.mainAxis,n=a.reference[p]+a.reference[e]-v.mainAxis;h<t?h=t:h>n&&(h=n)}if(l){var y,b;const e="y"===p?"width":"height",t=["top","left"].includes((0,r.C0)(i)),n=a.reference[f]-a.floating[e]+(t&&(null==(y=s.offset)?void 0:y[f])||0)+(t?0:v.crossAxis),o=a.reference[f]+a.reference[e]+(t?0:(null==(b=s.offset)?void 0:b[f])||0)-(t?v.crossAxis:0);m<n?m=n:m>o&&(m=o)}return{[p]:h,[f]:m}}}},y=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:i,elements:s}=t,{apply:c=(()=>{}),...u}=(0,r._3)(e,t),l=await a(t,u),d=(0,r.C0)(n),f=(0,r.Sg)(n),p="y"===(0,r.TV)(n),{width:h,height:m}=o.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=f===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,g="end"===f?"top":"bottom");const y=m-l[g],b=h-l[v],w=!t.middlewareData.shift;let x=y,O=b;if(p){const e=h-l.left-l.right;O=f||w?(0,r.jk)(b,e):e}else{const e=m-l.top-l.bottom;x=f||w?(0,r.jk)(y,e):e}if(w&&!f){const e=(0,r.T9)(l.left,0),t=(0,r.T9)(l.right,0),n=(0,r.T9)(l.top,0),o=(0,r.T9)(l.bottom,0);p?O=h-2*(0!==e||0!==t?e+t:(0,r.T9)(l.left,l.right)):x=m-2*(0!==n||0!==o?n+o:(0,r.T9)(l.top,l.bottom))}await c({...t,availableWidth:O,availableHeight:x});const k=await i.getDimensions(s.floating);return h!==k.width||m!==k.height?{reset:{rects:!0}}:{}}}}},97193:(e,t,n)=>{"use strict";n.d(t,{B1:()=>D,C0:()=>m,DD:()=>i,Dz:()=>w,Jx:()=>l,LI:()=>c,PG:()=>v,RI:()=>u,Sg:()=>g,T9:()=>s,TV:()=>b,WJ:()=>O,_3:()=>h,aD:()=>k,bV:()=>E,jk:()=>a,lP:()=>S,nI:()=>P,qE:()=>p,r_:()=>r,sq:()=>y,w7:()=>x});const r=["top","right","bottom","left"],o=["start","end"],i=r.reduce(((e,t)=>e.concat(t,t+"-"+o[0],t+"-"+o[1])),[]),a=Math.min,s=Math.max,c=Math.round,u=Math.floor,l=e=>({x:e,y:e}),d={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function p(e,t,n){return s(e,a(t,n))}function h(e,t){return"function"==typeof e?e(t):e}function m(e){return e.split("-")[0]}function g(e){return e.split("-")[1]}function v(e){return"x"===e?"y":"x"}function y(e){return"y"===e?"height":"width"}function b(e){return["top","bottom"].includes(m(e))?"y":"x"}function w(e){return v(b(e))}function x(e,t,n){void 0===n&&(n=!1);const r=g(e),o=w(e),i=y(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=E(a)),[a,E(a)]}function O(e){const t=E(e);return[k(e),t,k(t)]}function k(e){return e.replace(/start|end/g,(e=>f[e]))}function S(e,t,n,r){const o=g(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(m(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(k)))),i}function E(e){return e.replace(/left|right|bottom|top/g,(e=>d[e]))}function P(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 D(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}},82695:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});let r={};function o(){return r}},88365:(e,t,n)=>{"use strict";n.d(t,{fij:()=>i,GPZ:()=>J,qZx:()=>ne,Osm:()=>oe,SyE:()=>ie,uv4:()=>ot,qgA:()=>rt,Hle:()=>it,avh:()=>ht,$7z:()=>mt,glI:()=>gt,gtt:()=>vt,ol1:()=>p});var r=n(2642);function o(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function i(e,t){const n=(0,r.a)(e);return isNaN(t)?o(e,NaN):t?(n.setDate(n.getDate()+t),n):n}Math.pow(10,8);const a=6048e5,s=864e5,c=6e4,u=36e5;var l=n(92528);function d(e){return(0,l.k)(e,{weekStartsOn:1})}function f(e){const t=(0,r.a)(e),n=t.getFullYear(),i=o(e,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);const a=d(i),s=o(e,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);const c=d(s);return t.getTime()>=a.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}function p(e){const t=(0,r.a)(e);return t.setHours(0,0,0,0),t}function h(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}function m(e,t){const n=p(e),r=p(t),o=+n-h(n),i=+r-h(r);return Math.round((o-i)/s)}function g(e){const t=f(e),n=o(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),d(n)}function v(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function y(e){if(!v(e)&&"number"!=typeof e)return!1;const t=(0,r.a)(e);return!isNaN(Number(t))}function b(e){const t=(0,r.a)(e),n=o(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}var w=n(82695);var x=n(44985);function O(e){const t=(0,r.a)(e);return m(t,b(t))+1}function k(e){const t=(0,r.a)(e),n=+d(t)-+g(t);return Math.round(n/a)+1}function S(e,t){const n=(0,r.a)(e),i=n.getFullYear(),a=(0,w.q)(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,c=o(e,0);c.setFullYear(i+1,0,s),c.setHours(0,0,0,0);const u=(0,l.k)(c,t),d=o(e,0);d.setFullYear(i,0,s),d.setHours(0,0,0,0);const f=(0,l.k)(d,t);return n.getTime()>=u.getTime()?i+1:n.getTime()>=f.getTime()?i:i-1}function E(e,t){const n=(0,w.q)(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=S(e,t),a=o(e,0);a.setFullYear(i,0,r),a.setHours(0,0,0,0);return(0,l.k)(a,t)}function P(e,t){const n=(0,r.a)(e),o=+(0,l.k)(n,t)-+E(n,t);return Math.round(o/a)+1}function D(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const _={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return D("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):D(n+1,2)},d:(e,t)=>D(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)=>D(e.getHours()%12||12,t.length),H:(e,t)=>D(e.getHours(),t.length),m:(e,t)=>D(e.getMinutes(),t.length),s:(e,t)=>D(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return D(Math.trunc(r*Math.pow(10,n-3)),t.length)}},C="midnight",T="noon",j="morning",A="afternoon",M="evening",I="night",N={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 _.y(e,t)},Y:function(e,t,n,r){const o=S(e,r),i=o>0?o:1-o;if("YY"===t){return D(i%100,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):D(i,t.length)},R:function(e,t){return D(f(e),t.length)},u:function(e,t){return D(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return D(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 D(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return _.M(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 D(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=P(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):D(o,t.length)},I:function(e,t,n){const r=k(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):D(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):_.d(e,t)},D:function(e,t,n){const r=O(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):D(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return D(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return D(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return D(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?T:0===r?C: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?M:r>=12?A:r>=4?j:I,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 _.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):_.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):D(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):D(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):_.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):_.s(e,t)},S:function(e,t){return _.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return L(r);case"XXXX":case"XX":return F(r);default:return F(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return L(r);case"xxxx":case"xx":return F(r);default:return F(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+R(r,":");default:return"GMT"+F(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+R(r,":");default:return"GMT"+F(r,":")}},t:function(e,t,n){return D(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return D(e.getTime(),t.length)}};function R(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+D(i,2)}function L(e,t){if(e%60==0){return(e>0?"-":"+")+D(Math.abs(e)/60,2)}return F(e,t)}function F(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+D(Math.trunc(r/60),2)+t+D(r%60,2)}const H=(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"})}},B=(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"})}},W={p:B,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return H(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",H(r,t)).replace("{{time}}",B(o,t))}},Y=/^D+$/,U=/^Y+$/,z=["D","DD","YY","YYYY"];function V(e){return Y.test(e)}function q(e){return U.test(e)}function G(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),z.includes(e))throw new RangeError(r)}const K=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,X=/^'([^]*?)'?$/,Q=/''/g,Z=/[a-zA-Z]/;function J(e,t,n){const o=(0,w.q)(),i=n?.locale??o.locale??x.c,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,c=(0,r.a)(e);if(!y(c))throw new RangeError("Invalid time value");let u=t.match($).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,W[t])(e,i.formatLong)}return e})).join("").match(K).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:ee(e)};if(N[t])return{isToken:!0,value:e};if(t.match(Z))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));i.localize.preprocessor&&(u=i.localize.preprocessor(c,u));const l={firstWeekContainsDate:a,weekStartsOn:s,locale:i};return u.map((r=>{if(!r.isToken)return r.value;const o=r.value;(!n?.useAdditionalWeekYearTokens&&q(o)||!n?.useAdditionalDayOfYearTokens&&V(o))&&G(o,t,String(e));return(0,N[o[0]])(c,o,i.localize,l)})).join("")}function ee(e){const t=e.match(X);return t?t[1].replace(Q,"'"):e}function te(){return Object.assign({},(0,w.q)())}function ne(e){return(0,r.a)(e).getHours()}function re(e){let t=(0,r.a)(e).getDay();return 0===t&&(t=7),t}function oe(e){return(0,r.a)(e).getMinutes()}function ie(e){return(0,r.a)(e).getSeconds()}function ae(e,t){const n=t instanceof Date?o(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}class se{subPriority=0;validate(e,t){return!0}}class ce extends se{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 ue extends se{priority=10;subPriority=-1;set(e,t){return t.timestampIsSet?e:o(e,ae(e,Date))}}class le{run(e,t,n,r){const o=this.parse(e,t,n,r);return o?{setter:new ce(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(e,t,n){return!0}}const de=/^(1[0-2]|0?\d)/,fe=/^(3[0-1]|[0-2]?\d)/,pe=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,he=/^(5[0-3]|[0-4]?\d)/,me=/^(2[0-3]|[0-1]?\d)/,ge=/^(2[0-4]|[0-1]?\d)/,ve=/^(1[0-1]|0?\d)/,ye=/^(1[0-2]|0?\d)/,be=/^[0-5]?\d/,we=/^[0-5]?\d/,xe=/^\d/,Oe=/^\d{1,2}/,ke=/^\d{1,3}/,Se=/^\d{1,4}/,Ee=/^-?\d+/,Pe=/^-?\d/,De=/^-?\d{1,2}/,_e=/^-?\d{1,3}/,Ce=/^-?\d{1,4}/,Te=/^([+-])(\d{2})(\d{2})?|Z/,je=/^([+-])(\d{2})(\d{2})|Z/,Ae=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Me=/^([+-])(\d{2}):(\d{2})|Z/,Ie=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Ne(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Re(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Le(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,i=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(o*u+i*c+1e3*a),rest:t.slice(n[0].length)}}function Fe(e){return Re(Ee,e)}function He(e,t){switch(e){case 1:return Re(xe,t);case 2:return Re(Oe,t);case 3:return Re(ke,t);case 4:return Re(Se,t);default:return Re(new RegExp("^\\d{1,"+e+"}"),t)}}function Be(e,t){switch(e){case 1:return Re(Pe,t);case 2:return Re(De,t);case 3:return Re(_e,t);case 4:return Re(Ce,t);default:return Re(new RegExp("^-?\\d{1,"+e+"}"),t)}}function We(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Ye(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 Ue(e){return e%400==0||e%4==0&&e%100!=0}function ze(e,t,n){const o=(0,r.a)(e),i=P(o,n)-t;return o.setDate(o.getDate()-7*i),o}function Ve(e,t){const n=(0,r.a)(e),o=k(n)-t;return n.setDate(n.getDate()-7*o),n}const qe=[31,28,31,30,31,30,31,31,30,31,30,31],Ge=[31,29,31,30,31,30,31,31,30,31,30,31];function Ke(e,t,n){const o=(0,w.q)(),a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,s=(0,r.a)(e),c=s.getDay(),u=7-a;return i(s,t<0||t>6?t-(c+u)%7:((t%7+7)%7+u)%7-(c+u)%7)}function $e(e,t){const n=(0,r.a)(e);return i(n,t-re(n))}const Xe={G:new class extends le{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 le{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 Ne(He(4,e),r);case"yo":return Ne(n.ordinalNumber(e,{unit:"year"}),r);default:return Ne(He(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=Ye(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 le{priority=130;parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return Ne(He(4,e),r);case"Yo":return Ne(n.ordinalNumber(e,{unit:"year"}),r);default:return Ne(He(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const o=S(e,r);if(n.isTwoDigitYear){const t=Ye(n.year,o);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,l.k)(e,r)}const i="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(i,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,l.k)(e,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends le{priority=130;parse(e,t){return Be("R"===t?4:t.length,e)}set(e,t,n){const r=o(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),d(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends le{priority=130;parse(e,t){return Be("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 le{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return He(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 le{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return He(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 le{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 Ne(Re(de,e),r);case"MM":return Ne(He(2,e),r);case"Mo":return Ne(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 le{priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"L":return Ne(Re(de,e),r);case"LL":return Ne(He(2,e),r);case"Lo":return Ne(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 le{priority=100;parse(e,t,n){switch(t){case"w":return Re(he,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return He(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return(0,l.k)(ze(e,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends le{priority=100;parse(e,t,n){switch(t){case"I":return Re(he,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return He(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return d(Ve(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends le{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return Re(fe,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return He(t.length,e)}}validate(e,t){const n=Ue(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=Ge[r]:t>=1&&t<=qe[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 le{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return Re(pe,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return He(t.length,e)}}validate(e,t){return Ue(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 le{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=Ke(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends le{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 Ne(He(t.length,e),o);case"eo":return Ne(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=Ke(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 le{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 Ne(He(t.length,e),o);case"co":return Ne(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=Ke(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 le{priority=90;parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return He(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return Ne(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 Ne(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return Ne(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return Ne(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=$e(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 le{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(We(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends le{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(We(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends le{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(We(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends le{priority=70;parse(e,t,n){switch(t){case"h":return Re(ye,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return He(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 le{priority=70;parse(e,t,n){switch(t){case"H":return Re(me,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return He(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 le{priority=70;parse(e,t,n){switch(t){case"K":return Re(ve,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return He(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 le{priority=70;parse(e,t,n){switch(t){case"k":return Re(ge,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return He(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 le{priority=60;parse(e,t,n){switch(t){case"m":return Re(be,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return He(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 le{priority=50;parse(e,t,n){switch(t){case"s":return Re(we,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return He(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 le{priority=30;parse(e,t){return Ne(He(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 le{priority=10;parse(e,t){switch(t){case"X":return Le(Te,e);case"XX":return Le(je,e);case"XXXX":return Le(Ae,e);case"XXXXX":return Le(Ie,e);default:return Le(Me,e)}}set(e,t,n){return t.timestampIsSet?e:o(e,e.getTime()-h(e)-n)}incompatibleTokens=["t","T","x"]},x:new class extends le{priority=10;parse(e,t){switch(t){case"x":return Le(Te,e);case"xx":return Le(je,e);case"xxxx":return Le(Ae,e);case"xxxxx":return Le(Ie,e);default:return Le(Me,e)}}set(e,t,n){return t.timestampIsSet?e:o(e,e.getTime()-h(e)-n)}incompatibleTokens=["t","T","X"]},t:new class extends le{priority=40;parse(e){return Fe(e)}set(e,t,n){return[o(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends le{priority=20;parse(e){return Fe(e)}set(e,t,n){return[o(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},Qe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ze=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Je=/^'([^]*?)'?$/,et=/''/g,tt=/\S/,nt=/[a-zA-Z]/;function rt(e,t,n,i){const a=te(),s=i?.locale??a.locale??x.c,c=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,u=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(""===t)return""===e?(0,r.a)(n):o(n,NaN);const l={firstWeekContainsDate:c,weekStartsOn:u,locale:s},d=[new ue],f=t.match(Ze).map((e=>{const t=e[0];if(t in W){return(0,W[t])(e,s.formatLong)}return e})).join("").match(Qe),p=[];for(let r of f){!i?.useAdditionalWeekYearTokens&&q(r)&&G(r,t,e),!i?.useAdditionalDayOfYearTokens&&V(r)&&G(r,t,e);const a=r[0],c=Xe[a];if(c){const{incompatibleTokens:t}=c;if(Array.isArray(t)){const e=p.find((e=>t.includes(e.token)||e.token===a));if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${r}\` at the same time`)}else if("*"===c.incompatibleTokens&&p.length>0)throw new RangeError(`The format string mustn't contain \`${r}\` and any other token at the same time`);p.push({token:a,fullToken:r});const i=c.run(e,r,s.match,l);if(!i)return o(n,NaN);d.push(i.setter),e=i.rest}else{if(a.match(nt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if("''"===r?r="'":"'"===a&&(r=r.match(Je)[1].replace(et,"'")),0!==e.indexOf(r))return o(n,NaN);e=e.slice(r.length)}}if(e.length>0&&tt.test(e))return o(n,NaN);const h=d.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>d.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let m=(0,r.a)(n);if(isNaN(m.getTime()))return o(n,NaN);const g={};for(const e of h){if(!e.validate(m,l))return o(n,NaN);const t=e.set(m,g,l);Array.isArray(t)?(m=t[0],Object.assign(g,t[1])):m=t}return o(n,m)}function ot(e,t,n){return y(rt(e,t,new Date,n))}n(18979);function it(e,t){const n=t?.additionalDigits??2,r=function(e){const t={},n=e.split(at.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],at.timeZoneDelimiter.test(t.date)&&(t.date=e.split(at.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=at.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let o;if(r.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,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}(r.date,n);o=function(e,t){if(null===t)return new Date(NaN);const n=e.match(st);if(!n)return new Date(NaN);const r=!!n[4],o=lt(n[1]),i=lt(n[2])-1,a=lt(n[3]),s=lt(n[4]),c=lt(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,i=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+i),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<=(ft[t]||(pt(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(pt(e)?366:365)}(t,o)?(e.setUTCFullYear(t,i,Math.max(o,a)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const i=o.getTime();let a,s=0;if(r.time&&(s=function(e){const t=e.match(ct);if(!t)return NaN;const n=dt(t[1]),r=dt(t[2]),o=dt(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*u+r*c+1e3*o}(r.time),isNaN(s)))return new Date(NaN);if(!r.timezone){const e=new Date(i+s),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return a=function(e){if("Z"===e)return 0;const t=e.match(ut);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*u+o*c)}(r.timezone),isNaN(a)?new Date(NaN):new Date(i+s+a)}const at={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},st=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ct=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ut=/^([+-])(\d{2})(?::?(\d{2}))?$/;function lt(e){return e?parseInt(e):1}function dt(e){return e&&parseFloat(e.replace(",","."))||0}const ft=[31,null,31,30,31,30,31,31,30,31,30,31];function pt(e){return e%400==0||e%4==0&&e%100!=0}function ht(e,t){const n=(0,r.a)(e);return n.setHours(t),n}function mt(e,t){const n=(0,r.a)(e);return n.setMilliseconds(t),n}function gt(e,t){const n=(0,r.a)(e);return n.setMinutes(t),n}function vt(e,t){const n=(0,r.a)(e);return n.setSeconds(t),n}},18979:(e,t,n)=>{"use strict";n.d(t,{R:()=>o});var r=n(92528);function o(e,t,n){return+(0,r.k)(e,n)==+(0,r.k)(t,n)}},67404:(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})},59574:(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})},98094:(e,t,n)=>{"use strict";function r(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[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(a))):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(a)));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;return{value:u,rest:t.slice(a.length)}}}n.d(t,{A:()=>r})},21296:(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],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;return{value:a,rest:t.slice(o.length)}}}n.d(t,{K:()=>r})},44985:(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(67404);const i={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"})},a={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(59574);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(98094);const l={code:"en-US",formatDistance:(e,t,n)=>{let o;const i=r[e];return o="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o},formatLong:i,formatRelative:(e,t,n,r)=>a[e],localize:c,match:{ordinalNumber:(0,n(21296).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}}},92528:(e,t,n)=>{"use strict";n.d(t,{k:()=>i});var r=n(2642),o=n(82695);function i(e,t){const n=(0,o.q)(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=(0,r.a)(e),s=a.getDay(),c=(s<i?7:0)+s-i;return a.setDate(a.getDate()-c),a.setHours(0,0,0,0),a}},2642:(e,t,n)=>{"use strict";function r(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}n.d(t,{a:()=>r})}},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 a[e].call(n.exports,n,n.exports,c),n.loaded=!0,n.exports}c.m=a,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 i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,c.d(o,i),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:"f677923c13b8718424b3",222:"105fdb32443a3da35b6c",262:"e6cd8f05dd79d71862bd",264:"66f1082d2eefcc5e8e2d",310:"9015172a1abd41d36469",389:"4ec64a8ab073482cd020",672:"244385ed506451ec7825",722:"8360fc5f38b8052c71e8",916:"9a187c582b30047b0ad4"}[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={},i="tocco-widget-utils-:",c.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var a,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")==i+n){a=d;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,c.nc&&a.setAttribute("nonce",c.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var f=(t,n)=>{a.onerror=a.onload=null,clearTimeout(p);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),s&&document.head.appendChild(a)}},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={695: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 i=c.p+c.u(t),a=new Error;c.l(i,(n=>{if(c.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in a)c.o(a,r)&&(c.m[r]=a[r]);if(s)s(c)}for(t&&t(n);u<i.length;u++)o=i[u],c.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_widget_utils_=self.webpackChunktocco_widget_utils_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),c.nc=void 0;var u={};return(()=>{"use strict";c.r(u),c.d(u,{app:()=>eL});var e=c(79092),t=c.n(e),n=c(92207),r=c.n(n),o=c(80299),i=c.n(o),a=c(5338),s=c(19461),l="tocco-util/LOG_ERROR",d=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:l,payload:{title:e,description:t,error:n,dateTime:r}}},f=c(11843),p=c(4883),h=c.t(p,2),m=c.n(p),g=c(78418),v=p,y=Symbol.for("react-redux-context"),b="undefined"!=typeof globalThis?globalThis:{};function w(){if(!v.createContext)return{};const e=b[y]??(b[y]=new Map);let t=e.get(v.createContext);return t||(t=v.createContext(null),e.set(v.createContext,t)),t}var x=w(),O=()=>{throw new Error("uSES not initialized!")};var k=Symbol.for("react.element"),S=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),C=Symbol.for("react.context"),T=Symbol.for("react.server_context"),j=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),R=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),j),L=I;function F(e){if("object"==typeof e&&null!==e){const t=e.$$typeof;switch(t){case k:{const n=e.type;switch(n){case E:case D:case P:case A:case M:return n;default:{const e=n&&n.$$typeof;switch(e){case T:case C:case j:case N:case I:case _:return e;default:return t}}}}case S:return t}}}function H(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,c,u,l,d,f=!1;function p(f,p){const h=!i(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=!a(t,u);return u=t,r&&(d=n(u,l,c)),d}():d}return function(o,i){return f?p(o,i):(s=o,c=i,u=e(s,c),l=t(r,c),d=n(u,l,c),f=!0,d)}}function B(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 Y(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 z(e,t,n){return{...n,...e,...t}}function V(e){e()}var q={notify(){},get:()=>[]};function G(e,t){let n,r=q,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){V((()=>{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=q)}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:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,c())},getListeners:()=>r};return u}var K=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),$="undefined"!=typeof navigator&&"ReactNative"===navigator.product,X=K||$?v.useLayoutEffect:v.useEffect;function Q(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Z(e,t){if(Q(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])||!Q(e[n[r]],t[n[r]]))return!1;return!0}var J={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ee={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},te={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ne={[R]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[L]:te};function re(e){return function(e){return F(e)===I}(e)?te:ne[e.$$typeof]||J}var oe=Object.defineProperty,ie=Object.getOwnPropertyNames,ae=Object.getOwnPropertySymbols,se=Object.getOwnPropertyDescriptor,ce=Object.getPrototypeOf,ue=Object.prototype;function le(e,t){if("string"!=typeof t){if(ue){const n=ce(t);n&&n!==ue&&le(e,n)}let n=ie(t);ae&&(n=n.concat(ae(t)));const r=re(e),o=re(t);for(let i=0;i<n.length;++i){const a=n[i];if(!(ee[a]||o&&o[a]||r&&r[a])){const n=se(t,a);try{oe(e,a,n)}catch(e){}}}}return e}var de=O,fe=[null,null];function pe(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function he(e,t){return e===t}var me=function(e,t,n,{pure:r,areStatesEqual:o=he,areOwnPropsEqual:i=Z,areStatePropsEqual:a=Z,areMergedPropsEqual:s=Z,forwardRef:c=!1,context:u=x}={}){const l=u,d=function(e){return e?"function"==typeof e?Y(e):U(e,"mapStateToProps"):B((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?B((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?Y(e):U(e,"mapDispatchToProps"):B((e=>({dispatch:e})))}(t),p=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const s=e(t,n,a);return i?r(s,o)||(o=s):(i=!0,o=s),o}}}(e):U(e,"mergeProps"):()=>z}(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:a,areOwnPropsEqual:i,areMergedPropsEqual:s};function u(t){const[n,o,i]=v.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),a=v.useMemo((()=>l),[n,l]),s=v.useContext(a),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=v.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return H(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[m,g]=v.useMemo((()=>{if(!h)return fe;const e=G(d,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,s]),y=v.useMemo((()=>c?s:{...s,subscription:m}),[c,s,m]),b=v.useRef(void 0),w=v.useRef(i),x=v.useRef(void 0),O=v.useRef(!1),k=v.useRef(!1),S=v.useRef(void 0);X((()=>(k.current=!0,()=>{k.current=!1})),[]);const E=v.useMemo((()=>()=>x.current&&i===w.current?x.current:p(d.getState(),i)),[d,i]),P=v.useMemo((()=>e=>m?function(e,t,n,r,o,i,a,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===i.current?a.current||u():(i.current=n,c.current=n,a.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,O,k,x,g,e):()=>{}),[m]);var D,_,C;let T;D=pe,_=[w,b,O,i,x,g],X((()=>D(..._)),C);try{T=de(P,E,f?()=>p(f(),i):E)}catch(e){throw S.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${S.current.stack}\n\n`),e}X((()=>{S.current=void 0,x.current=void 0,b.current=T}));const j=v.useMemo((()=>v.createElement(e,{...T,ref:o})),[o,e,T]);return v.useMemo((()=>h?v.createElement(a.Provider,{value:y},j):j),[a,j,y])}const m=v.memo(u);if(m.WrappedComponent=e,m.displayName=u.displayName=n,c){const t=v.forwardRef((function(e,t){return v.createElement(m,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,le(t,e)}return le(m,e)}};var ge=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const a=v.useMemo((()=>{const t=G(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}}),[e,r,o,i]),s=v.useMemo((()=>e.getState()),[e]);X((()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]);const c=t||x;return v.createElement(c.Provider,{value:a},n)};var ve;ve=g.useSyncExternalStoreWithSelector,(e=>{de=e})(p.useSyncExternalStore);var ye=c(82274),be=c.n(ye),we=c(65044),xe=c.n(we),Oe=c(65611),ke=c.n(Oe),Se=c(18337),Ee=c.n(Se),Pe=c(56994),De=c.n(Pe),_e=c(5556),Ce=c.n(_e),Te=c(72189),je=c.n(Te),Ae=c(92648),Me=c(87716),Ie=c(39316);const Ne=function(e){return(0,Ie.A)(e)};const Re={shouldForwardProp:function(e,t){return"string"!=typeof t||Ne(e)},isPropValid:Ne};var Le,Fe,He=c(17656),Be=(0,Me.AH)(Le||(Le=je()(["\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,He.Ed)(),He.w4.color("text"),He.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)(Ae.N_).withConfig({shouldForwardProp:function(e){return Re.isPropValid(e)||"state"===e}})(Fe||(Fe=je()(["\n &:link,\n &:visited {\n color: ","; /* nice2 reset */\n }\n ","\n"])),He.t7.color("text"),Be);var Ye,Ue=c(26396),ze=c.n(Ue),Ve=c(39892),qe=c.n(Ve),Ge=c(47850),Ke=c(74848);function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qe=(0,p.lazy)((function(){return c.e(389).then(c.bind(c,68389))}));const Ze=function(e){return(0,Ke.jsx)(p.Suspense,{fallback:Ye||(Ye=(0,Ke.jsx)(m().Fragment,{})),children:(0,Ke.jsx)(Qe,Xe({},e))})};var Je=c(22056),et=c.n(Je);function tt(e,t){var n=(0,p.useState)(e),r=et()(n,2),o=r[0],i=r[1];return(0,p.useEffect)((function(){var n=setTimeout((function(){i(e)}),t);return function(){clearTimeout(n)}}),[e,t]),[o,i]}function nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ot=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 m().forwardRef((function(r,o){var i=r.value,a=(0,p.useState)(i),s=et()(a,2),c=s[0],u=s[1],l=tt(c,t),d=et()(l,2),f=d[0],h=d[1],m=(0,p.useRef)(i),g=r[n];return(0,p.useEffect)((function(){c!==i&&c===f&&(u(i),m.current=i,h(i))}),[i]),(0,p.useEffect)((function(){g&&m.current!==f&&(g(f),m.current=f)}),[f,g]),(0,Ke.jsx)(e,rt(rt(rt({},r),{},{value:c},ze()({},n,u)),{},{ref:o}))}))};var it="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,at=function(){return"matchMedia"in window&&window.matchMedia("(pointer: coarse)").matches};const st=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,p.useEffect)((function(){if(!t.disabled&&e.current&&!at()){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 ct=function(){var e=(0,p.useState)(),t=et()(e,2),n=t[0],r=t[1],o=(0,p.useRef)(),i=(0,p.useCallback)((function(e){if(Array.isArray(e)){var t=e[0];r(t.contentRect)}}),[]),a=(0,p.useCallback)((function(e){e&&(o.current=new ResizeObserver((function(e){return i(e)})),o.current.observe(e))}),[i]);return(0,p.useEffect)((function(){return function(){o.current&&(o.current.disconnect(),o.current=null)}}),[]),[a,n]};const ut={useAutofocus:st,useDebounce:tt,Debouncer:ot,useUserActive:function(e){var t=(0,p.useRef)(null),n=(0,p.useState)(null),r=et()(n,2),o=r[0],i=r[1],a=(0,p.useCallback)((function(){o>0&&(t.current=setTimeout((function(){e()}),o))}),[o,e]),s=(0,p.useCallback)((function(){t.current&&clearTimeout(t.current)}),[]);return(0,p.useEffect)((function(){return s(),window.addEventListener("mousemove",a,{once:!0}),window.addEventListener("touchstart",a,{once:!0}),function(){s()}}),[s,a]),[i,s,a]},usePrevious:function(e){var t=(0,p.useRef)();return(0,p.useEffect)((function(){t.current=e}),[e]),t.current},useDidUpdate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,p.useRef)(!1);(0,p.useEffect)((function(){n.current?e():n.current=!0}),t)},useResizeObserver:ct};var lt="hidden",dt="responsive",ft={labelVisibility:dt},pt=m().createContext(ft);var ht,mt,gt,vt,yt,bt,wt,xt=(0,Me.AH)(vt||(vt=je()(["\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"])),He.w4.radii("button"),He.hs.space(-1.38),He.hs.space(-2.1),He.hs.space(0),(0,He.Ed)(),(function(e){return e.withoutBackground?(0,Me.AH)(gt||(gt=je()(["\n background: transparent;\n"]))):(0,He.x5)(e)}),(function(e){return function(e){var t=e.dense,n=e.theme;return t?(0,Me.AH)(ht||(ht=je()(["\n line-height: ",";\n padding: "," ",";\n "])),He.w4.lineHeight("dense")({theme:n}),He.hs.space(-3.5)({theme:n}),He.hs.space(-1.5)({theme:n})):null}(e)}),(function(e){return n=(t=e).iconOnly,r=t.removePadding,n||r?(0,Me.AH)(mt||(mt=je()(["\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===He.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(Ot," {\n display: none;\n }\n ");return t&&n===lt?r:t&&n===dt&&"\n @media screen and (max-width: 1024px) {\n ".concat(r,"\n }\n ")})),Ot=Me.Ay.span.withConfig({displayName:"StyledLabelWrapper"})(yt||(yt=je()([""]))),kt=Me.Ay.button.withConfig({displayName:"StyledButton"})(bt||(bt=je()(["\n ","\n"])),xt);Me.Ay.div.withConfig({displayName:"StyledStickyButtonWrapper"})(wt||(wt=je()(["\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"])),He.hs.space(0),He.t7.color("paper"),(function(e){return"LEFT"===e.position?"flex-start":"flex-end"}),kt);const St=kt;function Et(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 Pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Dt=m().forwardRef((function(e,t){var n=e.aria,r=e.ink,o=e.label,i=e.icon,a=e.pending,s=e.look,c=void 0===s?He.xX.look.FLAT:s,u=e.iconPosition,l=void 0===u?He.xX.position.PREPEND:u,d=e.type,f=void 0===d?"button":d,h=e.iconOnly,m=e.children,g=(0,p.useContext)(pt).labelVisibility;return(0,Ke.jsxs)(St,Pt(Pt(Pt({ref:t},n),e),{},{ink:r||He.xX.ink.BASE,"data-cy":e["data-cy"],title:o,labelVisibility:g,type:f,children:[i&&!a&&(0,Ke.jsx)(Ge.A,{icon:i}),a&&(0,Ke.jsx)(Ze,{ink:r||He.xX.ink.BASE,look:c,position:l,size:"1em"}),!h&&o?(0,Ke.jsx)(Ot,{children:o}):m||""]}))}));var _t;(0,Me.Ay)(Ae.N_).withConfig({shouldForwardProp:Re.isPropValid}).withConfig({displayName:"StyledRouterLinkButton"})(_t||(_t=je()(["\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"])),He.t7.color("text"),xt);var Ct,Tt;const jt=Me.Ay.button.withConfig({displayName:"StyledButton"})(Tt||(Tt=je()(["\n ","\n ","\n ","\n cursor: pointer;\n"])),(0,He.Ed)(),He.x5,(function(){return(0,Me.AH)(Ct||(Ct=je()(["\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"])),He.hs.space(-3),He.w4.fontSize("base"),He.w4.lineHeight("regular"),He.hs.space(-3))}));function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?At(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var It=m().forwardRef((function(e,t){return(0,Ke.jsx)(jt,Mt(Mt({ref:t,type:"button"},e),{},{children:(0,Ke.jsx)(Ge.A,{icon:e.icon})}))}));It.propTypes={disabled:Ce().bool,icon:Ce().string.isRequired,ink:He.xX.inkPropTypes,look:Ce().oneOf([He.xX.look.FLAT,He.xX.look.RAISED]),onClick:Ce().func,title:Ce().string,tabIndex:Ce().number,"data-cy":Ce().string};const Nt=It;var Rt,Lt,Ft,Ht,Bt=c(21259),Wt=c.n(Bt),Yt=c(49859),Ut=c.n(Yt),zt=c(52098),Vt=c.n(zt),qt=c(30115),Gt=c.n(qt),Kt=c(45228),$t=c.n(Kt),Xt="bodyAttributes",Qt="htmlAttributes",Zt="titleAttributes",Jt={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},en=(Object.keys(Jt).map((function(e){return Jt[e]})),"charset"),tn="cssText",nn="href",rn="http-equiv",on="innerHTML",an="itemprop",sn="name",cn="property",un="rel",ln="src",dn="target",fn={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},pn="defaultTitle",hn="defer",mn="encodeSpecialCharacters",gn="onChangeClientState",vn="titleTemplate",yn=Object.keys(fn).reduce((function(e,t){return e[fn[t]]=t,e}),{}),bn=[Jt.NOSCRIPT,Jt.SCRIPT,Jt.STYLE],wn="data-react-helmet",xn="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},On=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}}(),kn=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},Sn=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},En=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},Pn=function(e){var t=jn(e,Jt.TITLE),n=jn(e,vn);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=jn(e,pn);return t||r||void 0},Dn=function(e){return jn(e,gn)||function(){}},_n=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return kn({},e,t)}),{})},Cn=function(e,t){return t.filter((function(e){return void 0!==e[Jt.BASE]})).map((function(e){return e[Jt.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},Tn=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&Rn("Helmet: "+e+' should be of type "Array". Instead found type "'+xn(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,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a],c=s.toLowerCase();-1===t.indexOf(c)||n===un&&"canonical"===e[n].toLowerCase()||c===un&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(s)||s!==on&&s!==tn&&s!==an||(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 i=Object.keys(o),a=0;a<i.length;a++){var s=i[a],c=$t()({},r[s],o[s]);r[s]=c}return e}),[]).reverse()},jn=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},An=(Rt=Date.now(),function(e){var t=Date.now();t-Rt>16?(Rt=t,e(t)):setTimeout((function(){An(e)}),0)}),Mn=function(e){return clearTimeout(e)},In="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||An:c.g.requestAnimationFrame||An,Nn="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Mn:c.g.cancelAnimationFrame||Mn,Rn=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},Ln=null,Fn=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,d=e.title,f=e.titleAttributes;Wn(Jt.BODY,r),Wn(Jt.HTML,o),Bn(d,f);var p={baseTag:Yn(Jt.BASE,n),linkTags:Yn(Jt.LINK,i),metaTags:Yn(Jt.META,a),noscriptTags:Yn(Jt.NOSCRIPT,s),scriptTags:Yn(Jt.SCRIPT,u),styleTags:Yn(Jt.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)},Hn=function(e){return Array.isArray(e)?e.join(""):e},Bn=function(e,t){void 0!==e&&document.title!==e&&(document.title=Hn(e)),Wn(Jt.TITLE,t)},Wn=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(wn),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s++){var c=a[s],u=t[c]||"";n.getAttribute(c)!==u&&n.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=i.indexOf(c);-1!==l&&i.splice(l,1)}for(var d=i.length-1;d>=0;d--)n.removeAttribute(i[d]);o.length===i.length?n.removeAttribute(wn):n.getAttribute(wn)!==a.join(",")&&n.setAttribute(wn,a.join(","))}},Yn=function(e,t){var n=document.head||document.querySelector(Jt.HEAD),r=n.querySelectorAll(e+"["+wn+"]"),o=Array.prototype.slice.call(r),i=[],a=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===on)n.innerHTML=t.innerHTML;else if(r===tn)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(wn,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},Un=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}),"")},zn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[fn[n]||n]=e[n],t}),t)},Vn=function(e,t,n){switch(e){case Jt.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[wn]=!0,o=zn(n,r),[m().createElement(Jt.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=Un(n),i=Hn(t);return o?"<"+e+" "+wn+'="true" '+o+">"+En(i,r)+"</"+e+">":"<"+e+" "+wn+'="true">'+En(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case Xt:case Qt:return{toComponent:function(){return zn(t)},toString:function(){return Un(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[wn]=!0,r);return Object.keys(t).forEach((function(e){var n=fn[e]||e;if(n===on||n===tn){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),m().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===on||e===tn)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+En(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===bn.indexOf(e);return t+"<"+e+" "+wn+'="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},qn=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.scriptTags,u=e.styleTags,l=e.title,d=void 0===l?"":l,f=e.titleAttributes;return{base:Vn(Jt.BASE,t,r),bodyAttributes:Vn(Xt,n,r),htmlAttributes:Vn(Qt,o,r),link:Vn(Jt.LINK,i,r),meta:Vn(Jt.META,a,r),noscript:Vn(Jt.NOSCRIPT,s,r),script:Vn(Jt.SCRIPT,c,r),style:Vn(Jt.STYLE,u,r),title:Vn(Jt.TITLE,{title:d,titleAttributes:f},r)}},Gn=Vt()((function(e){return{baseTag:Cn([nn,dn],e),bodyAttributes:_n(Xt,e),defer:jn(e,hn),encode:jn(e,mn),htmlAttributes:_n(Qt,e),linkTags:Tn(Jt.LINK,[un,nn],e),metaTags:Tn(Jt.META,[sn,en,rn,cn,an],e),noscriptTags:Tn(Jt.NOSCRIPT,[on],e),onChangeClientState:Dn(e),scriptTags:Tn(Jt.SCRIPT,[ln,on],e),styleTags:Tn(Jt.STYLE,[tn],e),title:Pn(e),titleAttributes:_n(Zt,e)}}),(function(e){Ln&&Nn(Ln),e.defer?Ln=In((function(){Fn(e,(function(){Ln=null}))})):(Fn(e),Ln=null)}),qn)((function(){return null})),Kn=(Lt=Gn,Ht=Ft=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!Gt()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case Jt.SCRIPT:case Jt.NOSCRIPT:return{innerHTML:t};case Jt.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,i=e.nestedChildren;return kn({},r,((t={})[n.type]=[].concat(r[n.type]||[],[kn({},o,this.mapNestedChildrenToProps(n,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case Jt.TITLE:return kn({},o,((t={})[r.type]=a,t.titleAttributes=kn({},i),t));case Jt.BODY:return kn({},o,{bodyAttributes:kn({},i)});case Jt.HTML:return kn({},o,{htmlAttributes:kn({},i)})}return kn({},o,((n={})[r.type]=kn({},i),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=kn({},t);return Object.keys(e).forEach((function(t){var r;n=kn({},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 m().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[yn[n]||n]=e[n],t}),t)}(Sn(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case Jt.LINK:case Jt.META:case Jt.NOSCRIPT:case Jt.SCRIPT:case Jt.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=Sn(e,["children"]),r=kn({},n);return t&&(r=this.mapChildrenToProps(t,r)),m().createElement(Lt,r)},On(t,null,[{key:"canUseDOM",set:function(e){Lt.canUseDOM=e}}]),t}(m().Component),Ft.propTypes={base:Ut().object,bodyAttributes:Ut().object,children:Ut().oneOfType([Ut().arrayOf(Ut().node),Ut().node]),defaultTitle:Ut().string,defer:Ut().bool,encodeSpecialCharacters:Ut().bool,htmlAttributes:Ut().object,link:Ut().arrayOf(Ut().object),meta:Ut().arrayOf(Ut().object),noscript:Ut().arrayOf(Ut().object),onChangeClientState:Ut().func,script:Ut().arrayOf(Ut().object),style:Ut().arrayOf(Ut().object),title:Ut().string,titleAttributes:Ut().object,titleTemplate:Ut().string},Ft.defaultProps={defer:!0,encodeSpecialCharacters:!0},Ft.peek=Lt.peek,Ft.rewind=function(){var e=Lt.rewind();return e||(e=qn({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},Ht);Kn.renderStatic=Kn.rewind;var $n=c(42838),Xn=c.n($n),Qn=["border","border-spacing","padding","margin","text-align","width"];Xn().addHook("afterSanitizeAttributes",(function(e){if(e&&!(e instanceof SVGElement)&&"function"==typeof e.hasAttribute&&e.hasAttribute("style")){var t=function(e){return Qn.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 Zn=function(e){return e?Xn().sanitize(e,{FORBID_TAGS:["style"],ADD_ATTR:["target"]}):e},Jn={sanitizeHtml:Zn};var er=c(98166),tr=c(85735),nr=c.n(tr),rr=c(2404),or=c.n(rr),ir=c(69752),ar=c.n(ir),sr=function(e){return"object"===nr()(e)&&null!==e},cr=function(e,t){return ar()(e,(function(e,n,r){or()(n,t[r])||(e[r]=sr(n)&&sr(t[r])?cr(n,t[r]):n)}))};const ur={difference:cr,getOrFirst:er.Yd,adjustedHTMLString:function(e){return e?e.replace(/­/g,""):e},roundDecimalPlaces:er.O5,copyToClipboard:er.lW,isDefined:er.O9};var lr=c(60284),dr={error:"exclamation-circle",home:"house-blank"},fr=function(e){return dr[e]||e};const pr=function(e){var t=e.type;return t&&"record"!==t?(0,Ke.jsx)(Ge.A,{icon:fr(t)}):null};var hr,mr,gr,vr,yr,br,wr=["component"],xr=Me.Ay.div.withConfig({displayName:"StyledBreadcrumbs"})(hr||(hr=je()(["\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||He.w4.color("backgroundBreadcrumbs")(e)}),He.hs.space(-.7),He.hs.space(.39)),Or=(0,Me.Ay)((function(e){var t=e.component,n=qe()(e,wr);return m().cloneElement(t,n)})).withConfig({displayName:"StyledBreadcrumbsLink"})(mr||(mr=je()(["\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"])),He.w4.fontWeight("bold"),(function(e){return e.active&&He.w4.color("breadcrumbsActive")}),He.w4.fontWeight("bold"),(function(e){return e.active&&He.w4.color("breadcrumbsActive")}),He.w4.color("secondaryLight"),He.w4.color("breadcrumbsActive")),kr=Me.Ay.span.withConfig({displayName:"StyledBreadcrumbsTitle"})(gr||(gr=je()(["\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"])),He.w4.fontWeight("bold"),(function(e){return e.active&&He.w4.color("breadcrumbsActive")}),He.w4.fontWeight("bold"),(function(e){return e.active&&He.w4.color("breadcrumbsActive")}),He.w4.color("breadcrumbsActive")),Sr=(0,Me.Ay)(lr.oY).withConfig({displayName:"StyledBreadcrumbSeparator"})(vr||(vr=je()(["\n margin-left: ",";\n margin-right: ",";\n"])),He.hs.space(-2),He.hs.space(-2)),Er=Me.Ay.span.withConfig({displayName:"StyledBreadcrumbWrapper"})(yr||(yr=je()(["\n "," {\n margin-right: ",";\n }\n"])),Ge.i,He.hs.space(-1));const Pr=function(){return br||(br=(0,Ke.jsx)(Sr,{breakWords:!0,children:(0,Ke.jsx)(Ge.A,{icon:"chevron-right"})}))};var Dr;function _r(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 Cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_r(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tr=function(e){return e.title||e.display},jr=function(e,t){if(!e||0===e.length)return"Tocco";var n=e.at(-1),r="";switch(n.type){case"create":r="".concat(Tr(n)," - ").concat(t);break;case"detail":r=e.slice(e.length-2).map(Tr).join(" - ");break;default:r=Tr(n)}return ur.adjustedHTMLString(r)};const Ar=function(e){var t,n=e.intl,r=e.pathPrefix,o=void 0===r?"":r,i=e.breadcrumbsInfo,a=void 0===i?[]:i,s=e.currentView,c=e.backgroundColor,u=e.onClick,l=e.linkComp,d=e.updateDocumentTitle,f=[].concat(Wt()(a),Wt()(s?[s]:[]));if(0===f.length)return null;var p,h=f.map((function(e,n){var r,i=e.display||"",a=n===f.length-1?kr:Or,s=n===f.length-1&&{active:"true"},c=void 0!==e.path?{to:"".concat(o,"/").concat(e.path),state:e.state}:{},d=l?t||(t=(0,Ke.jsx)(l,{})):Dr||(Dr=(0,Ke.jsx)(We,{}));return(0,Ke.jsx)(lr.Ay.Span,{children:(0,Ke.jsx)(Er,{children:(0,Ke.jsxs)(a,Cr(Cr(Cr({neutral:!0},s),c),{},{onClick:(r=e,function(){u&&!1!==r.clickable&&u(r)}),component:d,children:[(0,Ke.jsx)(pr,{type:e.type}),(0,Ke.jsx)("span",{"data-cy":"breadcrumb-item",dangerouslySetInnerHTML:{__html:Jn.sanitizeHtml(i)}})]}))})},"breadcrumbItem-".concat(n))})).reduce((function(e,t,n){return[e,(0,Ke.jsx)(Pr,{},"icon".concat(n)),t]}));return(0,Ke.jsxs)(xr,{backgroundColor:c,children:[d?(0,Ke.jsx)(Kn,{defer:!1,children:(0,Ke.jsx)("title",{children:jr(f,(p="client.component.breadcrumbs.createTitle",n.formatMessage({id:p})))})}):null,(0,Ke.jsx)(Ke.Fragment,{children:h})]})};(0,f.injectIntl)(Ar);var Mr,Ir,Nr=Me.Ay.div.withConfig({displayName:"StyledWrapper"})(Mr||(Mr=je()(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,He.Ed)(),(function(e){return e.theme.colors.signal.danger}),He.t7.color("paper"),He.hs.space(-.5));const Rr=function(){return Ir||(Ir=(0,Ke.jsx)(Nr,{children:(0,Ke.jsx)(f.FormattedMessage,{id:"client.component.errorBoundary.text"})}))};var Lr;const Fr=Me.Ay.div.withConfig({displayName:"StyledButtonGroup"})(Lr||(Lr=je()(["\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"])),St);var Hr=m().forwardRef((function(e,t){return(0,Ke.jsx)(Fr,{ref:t,children:e.children})}));Hr.propTypes={children:Ce().node};const Br=Hr;var Wr=c(90179),Yr=c.n(Wr),Ur=c(62193),zr=c.n(Ur),Vr=(c(62243),c(36193)),qr=c.n(Vr),Gr=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},Kr=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},$r={outline:"none"},Xr=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,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=Kr(this,e.call.apply(e,[this].concat(i))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=m().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)},Kr(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?m().cloneElement(e({focused:t,getRef:this.ref}),n):m().createElement("div",Gr({ref:this.ref,style:$r},n),e)},t}(m().Component);Xr.propTypes={children:qr().oneOfType([qr().node,qr().func]).isRequired,onBlur:qr().func,onFocus:qr().func},Xr.defaultProps={onBlur:function(){},onFocus:function(){}};const Qr=Xr;var Zr,Jr,eo,to,no,ro,oo,io,ao=c(88357),so=(0,Me.AH)(Zr||(Zr=je()(["\n align-items: center;\n cursor: ",";\n display: flex;\n width: 100%;\n"])),(function(e){return e.immutable&&"text"})),co=Me.Ay.label.withConfig({displayName:"StyledEditableWrapper"})(Jr||(Jr=je()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),so),uo=(0,Me.AH)(eo||(eo=je()(["\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,He.Ed)({color:He.t7.color("text")})}),He.t7.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),lo=(0,Me.AH)(to||(to=je()(["\n display: flex;\n align-items: center;\n"]))),fo=Me.Ay.div.withConfig({displayName:"StyledEditableControl"})(no||(no=je()(["\n &&& {\n ","\n }\n"])),lo),po=(Me.Ay.span.withConfig({displayName:"StyledEditableValue"})(ro||(ro=je()(["\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"])),He.t7.color("signal.danger")),c(58156)),ho=c.n(po),mo=Me.Ay.div.withConfig({displayName:"StyledLocationEdit"})(oo||(oo=je()(["\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__container {\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"])),so,He.hs.space(-2),He.hs.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?ho()(n,"colors.textDisabled"):ho()(n,"colors.text")}),fo,uo,He.t7.color("paper"),He.t7.color("signal.info"),He.t7.color("secondaryLight"),He.t7.color("backgroundItemHover"));(0,Me.Ay)(mo).withConfig({displayName:"StyledAddressEdit"})(io||(io=je()(["\n && {\n div {\n :nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n }\n"])));c(69843);var go=c(7350),vo=c.n(go);function yo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bo(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 wo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bo(Object(n),!0).forEach((function(t){yo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xo(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 Oo(e,t){if(e){if("string"==typeof e)return xo(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)?xo(e,t):void 0}}function ko(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,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||Oo(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 So(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Eo=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Po(){return Po=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},Po.apply(this,arguments)}function Do(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 _o(e,t){return _o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_o(e,t)}function Co(e){return Co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Co(e)}function To(e){return To="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},To(e)}function jo(e,t){if(t&&("object"===To(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 Ao(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=Co(e);if(t){var o=Co(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jo(this,n)}}function Mo(e){return function(e){if(Array.isArray(e))return xo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Oo(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 Io=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}(),No="-ms-",Ro="-moz-",Lo="-webkit-",Fo="comm",Ho="rule",Bo="decl",Wo="@keyframes",Yo=Math.abs,Uo=String.fromCharCode,zo=Object.assign;function Vo(e){return e.trim()}function qo(e,t,n){return e.replace(t,n)}function Go(e,t){return e.indexOf(t)}function Ko(e,t){return 0|e.charCodeAt(t)}function $o(e,t,n){return e.slice(t,n)}function Xo(e){return e.length}function Qo(e){return e.length}function Zo(e,t){return t.push(e),e}var Jo=1,ei=1,ti=0,ni=0,ri=0,oi="";function ii(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Jo,column:ei,length:a,return:""}}function ai(e,t){return zo(ii("",null,null,"",null,null,0),e,{length:-e.length},t)}function si(){return ri=ni>0?Ko(oi,--ni):0,ei--,10===ri&&(ei=1,Jo--),ri}function ci(){return ri=ni<ti?Ko(oi,ni++):0,ei++,10===ri&&(ei=1,Jo++),ri}function ui(){return Ko(oi,ni)}function li(){return ni}function di(e,t){return $o(oi,e,t)}function fi(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 pi(e){return Jo=ei=1,ti=Xo(oi=e),ni=0,[]}function hi(e){return oi="",e}function mi(e){return Vo(di(ni-1,yi(91===e?e+2:40===e?e+1:e)))}function gi(e){for(;(ri=ui())&&ri<33;)ci();return fi(e)>2||fi(ri)>3?"":" "}function vi(e,t){for(;--t&&ci()&&!(ri<48||ri>102||ri>57&&ri<65||ri>70&&ri<97););return di(e,li()+(t<6&&32==ui()&&32==ci()))}function yi(e){for(;ci();)switch(ri){case e:return ni;case 34:case 39:34!==e&&39!==e&&yi(ri);break;case 40:41===e&&yi(e);break;case 92:ci()}return ni}function bi(e,t){for(;ci()&&e+ri!==57&&(e+ri!==84||47!==ui()););return"/*"+di(t,ni-1)+"*"+Uo(47===e?e:ci())}function wi(e){for(;!fi(ui());)ci();return di(e,ni)}function xi(e){return hi(Oi("",null,null,null,[""],e=pi(e),0,[0],e))}function Oi(e,t,n,r,o,i,a,s,c){for(var u=0,l=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,y=0,b="",w=o,x=i,O=r,k=b;g;)switch(h=y,y=ci()){case 40:if(108!=h&&58==Ko(k,d-1)){-1!=Go(k+=qo(mi(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=mi(y);break;case 9:case 10:case 13:case 32:k+=gi(h);break;case 92:k+=vi(li()-1,7);continue;case 47:switch(ui()){case 42:case 47:Zo(Si(bi(ci(),li()),t,n),c);break;default:k+="/"}break;case 123*m:s[u++]=Xo(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+l:p>0&&Xo(k)-d&&Zo(p>32?Ei(k+";",r,n,d-1):Ei(qo(k," ","")+";",r,n,d-2),c);break;case 59:k+=";";default:if(Zo(O=ki(k,t,n,u,l,o,s,b,w=[],x=[],d),i),123===y)if(0===l)Oi(k,t,O,O,w,i,d,s,x);else switch(99===f&&110===Ko(k,3)?100:f){case 100:case 109:case 115:Oi(e,O,O,r&&Zo(ki(e,O,O,0,0,o,s,b,o,w=[],d),x),o,x,d,s,r?w:x);break;default:Oi(k,O,O,O,[""],x,0,s,x)}}u=l=p=0,m=v=1,b=k="",d=a;break;case 58:d=1+Xo(k),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==si())continue;switch(k+=Uo(y),y*m){case 38:v=l>0?1:(k+="\f",-1);break;case 44:s[u++]=(Xo(k)-1)*v,v=1;break;case 64:45===ui()&&(k+=mi(ci())),f=ui(),l=d=Xo(b=k+=wi(li())),y++;break;case 45:45===h&&2==Xo(k)&&(m=0)}}return i}function ki(e,t,n,r,o,i,a,s,c,u,l){for(var d=o-1,f=0===o?i:[""],p=Qo(f),h=0,m=0,g=0;h<r;++h)for(var v=0,y=$o(e,d+1,d=Yo(m=a[h])),b=e;v<p;++v)(b=Vo(m>0?f[v]+" "+y:qo(y,/&\f/g,f[v])))&&(c[g++]=b);return ii(e,t,n,0===o?Ho:s,c,u,l)}function Si(e,t,n){return ii(e,t,n,Fo,Uo(ri),$o(e,2,-2),0)}function Ei(e,t,n,r){return ii(e,t,n,Bo,$o(e,0,r),$o(e,r+1,-1),r)}function Pi(e,t){for(var n="",r=Qo(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Di(e,t,n,r){switch(e.type){case"@import":case Bo:return e.return=e.return||e.value;case Fo:return"";case Wo:return e.return=e.value+"{"+Pi(e.children,r)+"}";case Ho:e.value=e.props.join(",")}return Xo(n=Pi(e.children,r))?e.return=e.value+"{"+n+"}":""}var _i=function(e,t,n){for(var r=0,o=0;r=o,o=ui(),38===r&&12===o&&(t[n]=1),!fi(o);)ci();return di(e,ni)},Ci=function(e,t){return hi(function(e,t){var n=-1,r=44;do{switch(fi(r)){case 0:38===r&&12===ui()&&(t[n]=1),e[n]+=_i(ni-1,t,n);break;case 2:e[n]+=mi(r);break;case 4:if(44===r){e[++n]=58===ui()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Uo(r)}}while(r=ci());return e}(pi(e),t))},Ti=new WeakMap,ji=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)||Ti.get(n))&&!r){Ti.set(e,!0);for(var o=[],i=Ci(t,o),a=n.props,s=0,c=0;s<i.length;s++)for(var u=0;u<a.length;u++,c++)e.props[c]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},Ai=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Mi(e,t){switch(function(e,t){return 45^Ko(e,0)?(((t<<2^Ko(e,0))<<2^Ko(e,1))<<2^Ko(e,2))<<2^Ko(e,3):0}(e,t)){case 5103:return Lo+"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 Lo+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Lo+e+Ro+e+No+e+e;case 6828:case 4268:return Lo+e+No+e+e;case 6165:return Lo+e+No+"flex-"+e+e;case 5187:return Lo+e+qo(e,/(\w+).+(:[^]+)/,Lo+"box-$1$2"+No+"flex-$1$2")+e;case 5443:return Lo+e+No+"flex-item-"+qo(e,/flex-|-self/,"")+e;case 4675:return Lo+e+No+"flex-line-pack"+qo(e,/align-content|flex-|-self/,"")+e;case 5548:return Lo+e+No+qo(e,"shrink","negative")+e;case 5292:return Lo+e+No+qo(e,"basis","preferred-size")+e;case 6060:return Lo+"box-"+qo(e,"-grow","")+Lo+e+No+qo(e,"grow","positive")+e;case 4554:return Lo+qo(e,/([^-])(transform)/g,"$1"+Lo+"$2")+e;case 6187:return qo(qo(qo(e,/(zoom-|grab)/,Lo+"$1"),/(image-set)/,Lo+"$1"),e,"")+e;case 5495:case 3959:return qo(e,/(image-set\([^]*)/,Lo+"$1$`$1");case 4968:return qo(qo(e,/(.+:)(flex-)?(.*)/,Lo+"box-pack:$3"+No+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Lo+e+e;case 4095:case 3583:case 4068:case 2532:return qo(e,/(.+)-inline(.+)/,Lo+"$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(Xo(e)-1-t>6)switch(Ko(e,t+1)){case 109:if(45!==Ko(e,t+4))break;case 102:return qo(e,/(.+:)(.+)-([^]+)/,"$1"+Lo+"$2-$3$1"+Ro+(108==Ko(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Go(e,"stretch")?Mi(qo(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ko(e,t+1))break;case 6444:switch(Ko(e,Xo(e)-3-(~Go(e,"!important")&&10))){case 107:return qo(e,":",":"+Lo)+e;case 101:return qo(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Lo+(45===Ko(e,14)?"inline-":"")+"box$3$1"+Lo+"$2$3$1"+No+"$2box$3")+e}break;case 5936:switch(Ko(e,t+11)){case 114:return Lo+e+No+qo(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Lo+e+No+qo(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Lo+e+No+qo(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Lo+e+No+e+e}return e}var Ii=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Bo:e.return=Mi(e.value,e.length);break;case Wo:return Pi([ai(e,{value:qo(e.value,"@","@"+Lo)})],r);case Ho: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 Pi([ai(e,{props:[qo(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Pi([ai(e,{props:[qo(t,/:(plac\w+)/,":"+Lo+"input-$1")]}),ai(e,{props:[qo(t,/:(plac\w+)/,":-moz-$1")]}),ai(e,{props:[qo(t,/:(plac\w+)/,No+"input-$1")]})],r)}return""}))}}];const Ni=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||Ii;var o,i,a={},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++)a[t[n]]=!0;s.push(e)}));var c,u,l,d,f=[Di,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[ji,Ai].concat(r,f),l=Qo(u),function(e,t,n,r){for(var o="",i=0;i<l;i++)o+=u[i](e,t,n,r)||"";return o});i=function(e,t,n,r){c=n,function(e){Pi(xi(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Io({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return h.sheet.hydrate(s),h};c(4146);var Ri=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};const Li=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 Fi={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 Hi=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}};var Bi=/[A-Z]|^ms/g,Wi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Yi=function(e){return 45===e.charCodeAt(1)},Ui=function(e){return null!=e&&"boolean"!=typeof e},zi=Hi((function(e){return Yi(e)?e:e.replace(Bi,"-$&").toLowerCase()})),Vi=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Wi,(function(e,t,n){return Gi={name:t,styles:n,next:Gi},t}))}return 1===Fi[e]||Yi(e)||"number"!=typeof t||0===t?t:t+"px"};function qi(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 Gi={name:n.name,styles:n.styles,next:Gi},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Gi={name:r.name,styles:r.styles,next:Gi},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+=qi(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Ui(a)&&(r+=zi(i)+":"+Vi(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=qi(e,t,a);switch(i){case"animation":case"animationName":r+=zi(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var c=0;c<a.length;c++)Ui(a[c])&&(r+=zi(i)+":"+Vi(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Gi,i=n(e);return Gi=o,qi(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Gi,Ki=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var $i=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="";Gi=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=qi(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=qi(n,t,e[a]),r&&(o+=i[a]);Ki.lastIndex=0;for(var s,c="";null!==(s=Ki.exec(o));)c+="-"+s[1];return{name:Li(o)+c,styles:o,next:Gi}},Xi=!!p.useInsertionEffect&&p.useInsertionEffect,Qi=Xi||function(e){return e()},Zi={}.hasOwnProperty,Ji=(0,p.createContext)("undefined"!=typeof HTMLElement?Ni({key:"css"}):null);Ji.Provider;var ea=function(e){return(0,p.forwardRef)((function(t,n){var r=(0,p.useContext)(Ji);return e(t,r,n)}))},ta=(0,p.createContext)({});var na="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ra=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Ri(t,n,r);Qi((function(){return function(e,t,n){Ri(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},oa=ea((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[na],i=[r],a="";"string"==typeof e.className?a=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,i,e.className):null!=e.className&&(a=e.className+" ");var s=$i(i,void 0,(0,p.useContext)(ta));a+=t.key+"-"+s.name;var c={};for(var u in e)Zi.call(e,u)&&"css"!==u&&u!==na&&(c[u]=e[u]);return c.ref=n,c.className=a,(0,p.createElement)(p.Fragment,null,(0,p.createElement)(ra,{cache:t,serialized:s,isStringTag:"string"==typeof o}),(0,p.createElement)(o,c))}));var ia=function(e,t){var n=arguments;if(null==t||!Zi.call(t,"css"))return p.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=oa,o[1]=function(e,t){var n={};for(var r in t)Zi.call(t,r)&&(n[r]=t[r]);return n[na]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return p.createElement.apply(null,o)};function aa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $i(t)}var sa=c(81845),ca=c.n(sa);Math.min,Math.max;const ua=["top","right","bottom","left"];ua.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function la(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function da(e){if(null==e)return window;if(!la(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function fa(e){return da(e).getComputedStyle(e)}function pa(e){return la(e)?"":e?(e.nodeName||"").toLowerCase():""}function ha(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function ma(e){return e instanceof da(e).HTMLElement}function ga(e){return e instanceof da(e).Element}function va(e){return"undefined"!=typeof ShadowRoot&&(e instanceof da(e).ShadowRoot||e instanceof ShadowRoot)}function ya(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=fa(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function ba(){return!/^((?!chrome|android).)*safari/i.test(ha())}function wa(e){return["html","body","#document"].includes(pa(e))}Math.min,Math.max;const xa=Math.round;function Oa(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let c=1,u=1;t&&ma(e)&&(c=e.offsetWidth>0&&xa(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&xa(s.height)/e.offsetHeight||1);const l=ga(e)?da(e):window,d=!ba()&&n,f=(s.left+(d&&null!=(r=null==(o=l.visualViewport)?void 0:o.offsetLeft)?r:0))/c,p=(s.top+(d&&null!=(i=null==(a=l.visualViewport)?void 0:a.offsetTop)?i: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 ka(e){return(t=e,(t instanceof da(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function Sa(e){if("html"===pa(e))return e;const t=e.assignedSlot||e.parentNode||(va(e)?e.host:null)||ka(e);return va(t)?t.host:t}function Ea(e){const t=Sa(e);return wa(t)?e.ownerDocument.body:ma(t)&&ya(t)?t:Ea(t)}function Pa(e,t){var n;void 0===t&&(t=[]);const r=Ea(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=da(r),a=o?[i].concat(i.visualViewport||[],ya(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Pa(a))}const Da=p.useLayoutEffect;var _a=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Ca=function(){};function Ta(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function ja(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 i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(Ta(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Aa=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===To(e)&&null!==e?[e]:[];var t},Ma=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,wo({},So(e,_a))},Ia=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function Na(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Ra(e){return Na(e)?window.pageYOffset:e.scrollTop}function La(e,t){Na(e)?window.scrollTo(0,t):e.scrollTop=t}function Fa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ca,o=Ra(e),i=t-o,a=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,o,i,n);La(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function Ha(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?La(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&La(e,Math.max(t.offsetTop-o,0))}function Ba(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Wa=!1,Ya={get passive(){return Wa=!0}},Ua="undefined"!=typeof window?window:{};Ua.addEventListener&&Ua.removeEventListener&&(Ua.addEventListener("p",Ca,Ya),Ua.removeEventListener("p",Ca,!1));var za=Wa;function Va(e){return null!=e}function qa(e,t,n){return e?t:n}var Ga=["children","innerProps"],Ka=["children","innerProps"];function $a(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=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,v=a?window.innerHeight:Na(l=c)?window.innerHeight:l.clientHeight,y=Ra(c),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),x=g-w,O=v-m,k=x+y,S=d-y-m,E=p-v+y+b,P=y+m-w,D=160;switch(o){case"auto":case"bottom":if(O>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!a)return i&&Fa(c,E,D),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&O>=r)return i&&Fa(c,E,D),{placement:"bottom",maxHeight:a?O-b:S-b};if("auto"===o||a){var _=t,C=a?x:k;return C>=r&&(_=Math.min(C-b-s,t)),{placement:"top",maxHeight:_}}if("bottom"===o)return i&&La(c,E),{placement:"bottom",maxHeight:t};break;case"top":if(x>=h)return{placement:"top",maxHeight:t};if(k>=h&&!a)return i&&Fa(c,P,D),{placement:"top",maxHeight:t};if(!a&&k>=r||a&&x>=r){var T=t;return(!a&&k>=r||a&&x>=r)&&(T=a?x-w:k-w),i&&Fa(c,P,D),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var Xa,Qa=function(e){return"auto"===e?"bottom":e},Za=(0,p.createContext)(null),Ja=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,c=((0,p.useContext)(Za)||{}).setPortalPlacement,u=(0,p.useRef)(null),l=ko((0,p.useState)(r),2),d=l[0],f=l[1],h=ko((0,p.useState)(null),2),m=h[0],g=h[1],v=s.spacing.controlHeight;return Da((function(){var e=u.current;if(e){var t="fixed"===i,s=$a({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:v});f(s.maxHeight),g(s.placement),null==c||c(s.placement)}}),[r,o,i,a,n,c,v]),t({ref:u,placerProps:wo(wo({},e),{},{placement:m||Qa(o),maxHeight:d})})},es=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return ia("div",Po({},Ia(e,"menu",{menu:!0}),{ref:n},r),t)},ts=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return wo({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},ns=ts,rs=ts,os=["size"],is=["innerProps","isRtl","size"];var as,ss,cs={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},us=function(e){var t=e.size,n=So(e,os);return ia("svg",Po({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:cs},n))},ls=function(e){return ia(us,Po({size:20},e),ia("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"}))},ds=function(e){return ia(us,Po({size:20},e),ia("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"}))},fs=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return wo({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},ps=fs,hs=fs,ms=function(){var e=aa.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_"}}}(Xa||(as=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],ss||(ss=as.slice(0)),Xa=Object.freeze(Object.defineProperties(as,{raw:{value:Object.freeze(ss)}})))),gs=function(e){var t=e.delay,n=e.offset;return ia("span",{css:aa({animation:"".concat(ms," 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"},"","")})},vs=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return ia("div",Po({ref:o},Ia(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},ys=["data"],bs=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,c=e.label,u=e.theme,l=e.selectProps;return ia("div",Po({},Ia(e,"group",{group:!0}),s),ia(i,Po({},a,{selectProps:l,theme:u,getStyles:r,getClassNames:o,cx:n}),c),ia("div",null,t))},ws=["innerRef","isDisabled","isHidden","inputClassName"],xs={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Os={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":wo({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},xs)},ks=function(e){return wo({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},xs)},Ss=function(e){var t=e.cx,n=e.value,r=Ma(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,c=So(r,ws);return ia("div",Po({},Ia(e,"input",{"input-container":!0}),{"data-value":n||""}),ia("input",Po({className:t({input:!0},s),ref:o,style:ks(a),disabled:i},c)))},Es=function(e){var t=e.children,n=e.innerProps;return ia("div",n,t)};var Ps=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,c=n.Container,u=n.Label,l=n.Remove;return ia(c,{data:r,innerProps:wo(wo({},Ia(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},ia(u,{data:r,innerProps:wo({},Ia(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),ia(l,{data:r,innerProps:wo(wo({},Ia(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},Ds=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return ia("div",Po({},Ia(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},_s=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return ia("div",Po({},Ia(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},Cs={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return ia("div",Po({},Ia(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||ia(ls,null))},Control:vs,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return ia("div",Po({},Ia(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||ia(ds,null))},DownChevron:ds,CrossIcon:ls,Group:bs,GroupHeading:function(e){var t=Ma(e);t.data;var n=So(t,ys);return ia("div",Po({},Ia(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return ia("div",Po({},Ia(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return ia("span",Po({},t,Ia(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:Ss,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=So(e,is);return ia("div",Po({},Ia(wo(wo({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),ia(gs,{delay:0,offset:n}),ia(gs,{delay:160,offset:!0}),ia(gs,{delay:320,offset:!n}))},Menu:es,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return ia("div",Po({},Ia(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,i=e.menuPlacement,a=e.menuPosition,s=(0,p.useRef)(null),c=(0,p.useRef)(null),u=ko((0,p.useState)(Qa(i)),2),l=u[0],d=u[1],f=(0,p.useMemo)((function(){return{setPortalPlacement:d}}),[]),h=ko((0,p.useState)(null),2),m=h[0],g=h[1],v=(0,p.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"===a?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,a,l,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);Da((function(){v()}),[v]);var y=(0,p.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:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,c=o&&!s,u=c||i?[...ga(e)?Pa(e):e.contextElement?Pa(e.contextElement):[],...Pa(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let l,d=null;if(a){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),ga(e)&&!s&&d.observe(e),ga(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?Oa(e):null;return s&&function t(){const r=Oa(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),i&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(l)}}(r,s.current,v,{elementResize:"ResizeObserver"in window}))}),[r,v]);Da((function(){y()}),[y]);var b=(0,p.useCallback)((function(e){s.current=e,y()}),[y]);if(!t&&"fixed"!==a||!m)return null;var w=ia("div",Po({ref:b},Ia(wo(wo({},e),{},{offset:m.offset,position:a,rect:m.rect}),"menuPortal",{"menu-portal":!0}),o),n);return ia(Za.Provider,{value:f},t?(0,sa.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=So(e,Ka);return ia("div",Po({},Ia(wo(wo({},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=So(e,Ga);return ia("div",Po({},Ia(wo(wo({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Ps,MultiValueContainer:Es,MultiValueLabel:Es,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return ia("div",Po({role:"button"},n),t||ia(ls,{size:14}))},Option:Ds,Placeholder:function(e){var t=e.children,n=e.innerProps;return ia("div",Po({},Ia(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return ia("div",Po({},Ia(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:_s,ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return ia("div",Po({},Ia(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Ts=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function js(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||Ts(r)&&Ts(o)))return!1;var r,o;return!0}for(var As={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"},Ms=function(e){return ia("span",Po({css:As},e))},Is={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=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 i?"".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,i=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,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=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&&a)return"value ".concat(i," focused, ").concat(l(a,n),".");if("menu"===t&&u){var d=s?" disabled":"",f="".concat(c?" selected":"").concat(d);return"".concat(i).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:"",".")}},Ns=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,c=e.id,u=e.isAppleDevice,l=s.ariaLiveMessages,d=s.getOptionLabel,f=s.inputValue,h=s.isMulti,m=s.isOptionDisabled,g=s.isSearchable,v=s.menuIsOpen,y=s.options,b=s.screenReaderStatus,w=s.tabSelectsValue,x=s.isLoading,O=s["aria-label"],k=s["aria-live"],S=(0,p.useMemo)((function(){return wo(wo({},Is),l||{})}),[l]),E=(0,p.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.options,i=t.removedValue,s=t.removedValues,c=t.value,u=i||r||(e=c,Array.isArray(e)?null:e),l=u?d(u):"",f=o||s||void 0,p=f?f.map(d):[],h=wo({isDisabled:u&&m(u,a),label:l,labels:p},t);n=S.onChange(h)}return n}),[t,S,m,a,d]),P=(0,p.useMemo)((function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&S.onFocus){var s={focused:t,label:d(t),isDisabled:m(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:u};e=S.onFocus(s)}return e}),[n,r,d,m,S,o,a,u]),D=(0,p.useMemo)((function(){var e="";if(v&&y.length&&!x&&S.onFilter){var t=b({count:o.length});e=S.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,v,S,y,b,x]),_="initial-input-focus"===(null==t?void 0:t.action),C=(0,p.useMemo)((function(){var e="";if(S.guidance){var t=r?"value":v?"menu":"input";e=S.guidance({"aria-label":O,context:t,isDisabled:n&&m(n,a),isMulti:h,isSearchable:g,tabSelectsValue:w,isInitialFocus:_})}return e}),[O,n,r,h,m,g,v,S,a,w,_]),T=ia(p.Fragment,null,ia("span",{id:"aria-selection"},E),ia("span",{id:"aria-focused"},P),ia("span",{id:"aria-results"},D),ia("span",{id:"aria-guidance"},C));return ia(p.Fragment,null,ia(Ms,{id:c},_&&T),ia(Ms,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!_&&T))},Rs=[{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źẑżžẓẕƶȥɀⱬꝣ"}],Ls=new RegExp("["+Rs.map((function(e){return e.letters})).join("")+"]","g"),Fs={},Hs=0;Hs<Rs.length;Hs++)for(var Bs=Rs[Hs],Ws=0;Ws<Bs.letters.length;Ws++)Fs[Bs.letters[Ws]]=Bs.base;var Ys=function(e){return e.replace(Ls,(function(e){return Fs[e]}))},Us=function(e,t){void 0===t&&(t=js);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 i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(Ys),zs=function(e){return e.replace(/^\s+|\s+$/g,"")},Vs=function(e){return"".concat(e.label," ").concat(e.value)},qs=["innerRef"];function Gs(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=ko(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=ko(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(So(e,qs),"onExited","in","enter","exit","appear");return ia("input",Po({ref:t},n,{css:aa({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 Ks=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var $s=["boxSizing","height","overflow","paddingRight","position"],Xs={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Qs(e){e.preventDefault()}function Zs(e){e.stopPropagation()}function Js(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function ec(){return"ontouchstart"in window||navigator.maxTouchPoints}var tc=!("undefined"==typeof window||!window.document||!window.document.createElement),nc=0,rc={capture:!1,passive:!1};var oc=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},ic={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ac(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,i=e.onTopLeave,a=(0,p.useRef)(!1),s=(0,p.useRef)(!1),c=(0,p.useRef)(0),u=(0,p.useRef)(null),l=(0,p.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&&a.current&&(r&&r(e),a.current=!1),h&&s.current&&(i&&i(e),s.current=!1),h&&t>m?(n&&!a.current&&n(e),p.scrollTop=d,g=!0,a.current=!0):!h&&-t>l&&(o&&!s.current&&o(e),p.scrollTop=0,g=!0,s.current=!0),g&&Ks(e)}}),[n,r,o,i]),d=(0,p.useCallback)((function(e){l(e,e.deltaY)}),[l]),f=(0,p.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),h=(0,p.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;l(e,t)}),[l]),m=(0,p.useCallback)((function(e){if(e){var t=!!za&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}}),[h,f,d]),g=(0,p.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))}),[h,f,d]);return(0,p.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}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,p.useRef)({}),i=(0,p.useRef)(null),a=(0,p.useCallback)((function(e){if(tc){var t=document.body,n=t&&t.style;if(r&&$s.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&nc<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(Xs).forEach((function(e){var t=Xs[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&ec()&&(t.addEventListener("touchmove",Qs,rc),e&&(e.addEventListener("touchstart",Js,rc),e.addEventListener("touchmove",Zs,rc))),nc+=1}}),[r]),s=(0,p.useCallback)((function(e){if(tc){var t=document.body,n=t&&t.style;nc=Math.max(nc-1,0),r&&nc<1&&$s.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&ec()&&(t.removeEventListener("touchmove",Qs,rc),e&&(e.removeEventListener("touchstart",Js,rc),e.removeEventListener("touchmove",Zs,rc)))}}),[r]);return(0,p.useEffect)((function(){if(t){var e=i.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){i.current=e}}({isEnabled:n});return ia(p.Fragment,null,n&&ia("div",{onClick:oc,css:ic}),t((function(e){o(e),i(e)})))}var sc={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},cc=function(e){var t=e.name,n=e.onFocus;return ia("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:sc,value:"",onChange:function(){}})};function uc(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 lc(){return uc(/^Mac/i)}function dc(){return uc(/^iPhone/i)||uc(/^iPad/i)||lc()&&navigator.maxTouchPoints>1}var fc={clearIndicator:hs,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,i=o.colors,a=o.borderRadius;return wo({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?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:ps,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 wo({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,i=r.colors;return wo({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return wo(wo({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Os),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return wo({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:rs,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return wo((yo(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),yo(n,"position","absolute"),yo(n,"width","100%"),yo(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return wo({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,i=n.colors;return wo({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return wo({overflow:"hidden",textOverflow:i||void 0===i?"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,i=n.colors,a=e.isFocused;return wo({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:ns,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return wo({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*a.baseUnit,"px ").concat(3*a.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 wo({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,i=r.colors;return wo({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return wo({alignItems:"center",display:r&&o&&i?"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 pc,hc={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}},mc={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Ba(),captureMenuScroll:!Ba(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=wo({ignoreCase:!0,ignoreAccents:!0,stringify:Vs,trim:!0,matchFrom:"any"},pc),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,c=a?zs(t):t,u=a?zs(i(e)):i(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=Us(c),u=Ys(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 gc(e,t,n,r){return{type:"option",data:t,isDisabled:Sc(e,t,n),isSelected:Ec(e,t,n),label:Oc(e,t),value:kc(e,t),index:r}}function vc(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return gc(e,n,t,r)})).filter((function(t){return wc(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=gc(e,n,t,r);return wc(e,i)?i:void 0})).filter(Va)}function yc(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Mo(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function bc(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,Mo(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 wc(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!Dc(e)||!i)&&Pc(e,{label:a,value:s,data:o},r)}var xc=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},Oc=function(e,t){return e.getOptionLabel(t)},kc=function(e,t){return e.getOptionValue(t)};function Sc(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Ec(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=kc(e,t);return n.some((function(t){return kc(e,t)===r}))}function Pc(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Dc=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},_c=1,Cc=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&&_o(e,t)}(i,e);var t,n,r,o=Ao(i);function i(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(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=lc()||dc(),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,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),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,i=n.name,a=t.state.selectValue,s=o&&t.isOptionSelected(e,a),c=t.isOptionDisabled(e,a);if(s){var u=t.getOptionValue(e);t.setValue(a.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:i});o?t.setValue([].concat(Mo(a),[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),i=r.filter((function(e){return t.getOptionValue(e)!==o})),a=qa(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(qa(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),i=qa(e,o,o[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return xc(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return bc(vc(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 ja.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return Oc(t.props,e)},t.getOptionValue=function(e){return kc(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=fc[e](n,r);o.boxSizing="border-box";var i=t.props.styles[e];return i?i(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,wo(wo({},Cs),e.components);var e},t.buildCategorizedOptions=function(){return vc(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return yc(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:wo({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&&Na(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),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>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 Dc(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,i=n.escapeClearsValue,a=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||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)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:a}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)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||++_c),t.state.selectValue=Aa(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),a=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[a],t.state.focusedOptionId=xc(n,r[a])}return t}return t=i,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&&Ha(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&&(Ha(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,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(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 i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{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,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+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(hc):wo(wo({},hc),this.props.theme):hc}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=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:i,selectProps:s,setValue:a,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 Sc(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Ec(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Pc(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,i=e.tabIndex,a=e.form,s=e.menuIsOpen,c=e.required,u=this.getComponents().Input,l=this.state,d=l.inputIsHidden,f=l.ariaSelection,h=this.commonProps,m=r||this.getElementId("input"),g=wo(wo(wo({"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==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?p.createElement(u,Po({},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:i,form:a,type:"text",value:o},g)):p.createElement(Gs,Po({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ca,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,c=this.commonProps,u=this.props,l=u.controlShouldRenderValue,d=u.isDisabled,f=u.isMulti,h=u.inputValue,m=u.placeholder,g=this.state,v=g.selectValue,y=g.focusedValue,b=g.isFocused;if(!this.hasValue()||!l)return h?null:p.createElement(s,Po({},c,{key:"placeholder",isDisabled:d,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),m);if(f)return v.map((function(t,a){var s=t===y,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return p.createElement(n,Po({},c,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:d,key:u,index:a,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=v[0];return p.createElement(a,Po({},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,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return p.createElement(e,Po({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?p.createElement(e,Po({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):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,i=this.state.isFocused;return p.createElement(n,Po({},r,{isDisabled:o,isFocused:i}))}},{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 p.createElement(e,Po({},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,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,l=this.commonProps,d=this.state.focusedOption,f=this.props,h=f.captureMenuScroll,m=f.inputValue,g=f.isLoading,v=f.loadingMessage,y=f.minMenuHeight,b=f.maxMenuHeight,w=f.menuIsOpen,x=f.menuPlacement,O=f.menuPosition,k=f.menuPortalTarget,S=f.menuShouldBlockScroll,E=f.menuShouldScrollIntoView,P=f.noOptionsMessage,D=f.onMenuScrollToTop,_=f.onMenuScrollToBottom;if(!w)return null;var C,T=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,s=t.label,c=t.value,f=d===o,h=i?void 0:function(){return e.onOptionHover(o)},m=i?void 0:function(){return e.selectOption(o)},g="".concat(e.getElementId("option"),"-").concat(n),v={id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return p.createElement(u,Po({},l,{innerProps:v,data:o,isDisabled:i,isSelected:a,key:g,label:s,type:r,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())C=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),c="".concat(s,"-heading");return p.createElement(n,Po({},l,{key:s,data:o,options:i,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return T(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return T(t,"".concat(t.index))}));else if(g){var j=v({inputValue:m});if(null===j)return null;C=p.createElement(s,l,j)}else{var A=P({inputValue:m});if(null===A)return null;C=p.createElement(c,l,A)}var M={minMenuHeight:y,maxMenuHeight:b,menuPlacement:x,menuPosition:O,menuShouldScrollIntoView:E},I=p.createElement(Ja,Po({},l,M),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,s=r.maxHeight;return p.createElement(o,Po({},l,M,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:a}),p.createElement(ac,{captureEnabled:h,onTopArrive:D,onBottomArrive:_,lockEnabled:S},(function(t){return p.createElement(i,Po({},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}),C)})))}));return k||"fixed"===O?p.createElement(a,Po({},l,{appendTo:k,controlElement:this.controlRef,menuPlacement:x,menuPosition:O}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return p.createElement(cc,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var c=s.map((function(t){return e.getOptionValue(t)})).join(n);return p.createElement("input",{name:i,type:"hidden",value:c})}var u=s.length>0?s.map((function(t,n){return p.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):p.createElement("input",{name:i,type:"hidden",value:""});return p.createElement("div",null,u)}var l=s[0]?this.getOptionValue(s[0]):"";return p.createElement("input",{name:i,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return p.createElement(Ns,Po({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,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,i=this.props,a=i.className,s=i.id,c=i.isDisabled,u=i.menuIsOpen,l=this.state.isFocused,d=this.commonProps=this.getCommonProps();return p.createElement(r,Po({},d,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:l}),this.renderLiveRegion(),p.createElement(t,Po({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:l,menuIsOpen:u}),p.createElement(o,Po({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),p.createElement(n,Po({},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,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,c=t.instancePrefix,u=e.options,l=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=Aa(l),m={};if(n&&(l!==n.value||u!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return yc(vc(e,t))}(e,h):[],v=d?bc(vc(e,h),"".concat(c,"-option")):[],y=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:xc(v,b),focusableOptionsWithIds:v,focusedValue:y,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},x=i,O=a&&s;return a&&!O&&(x={value:qa(p,h,h[0]||null),options:h,action:"initial-input-focus"},O=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(x=null),wo(wo(wo({},m),w),{},{prevProps:e,ariaSelection:x,prevWasFocused:O})}}],n&&Do(t.prototype,n),r&&Do(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(p.Component);Cc.defaultProps=mc;var Tc=(0,p.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,i=e.defaultValue,a=void 0===i?null:i,s=e.inputValue,c=e.menuIsOpen,u=e.onChange,l=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,h=e.value,m=So(e,Eo),g=ko((0,p.useState)(void 0!==s?s:n),2),v=g[0],y=g[1],b=ko((0,p.useState)(void 0!==c?c:o),2),w=b[0],x=b[1],O=ko((0,p.useState)(void 0!==h?h:a),2),k=O[0],S=O[1],E=(0,p.useCallback)((function(e,t){"function"==typeof u&&u(e,t),S(e)}),[u]),P=(0,p.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),y(void 0!==n?n:e)}),[l]),D=(0,p.useCallback)((function(){"function"==typeof f&&f(),x(!0)}),[f]),_=(0,p.useCallback)((function(){"function"==typeof d&&d(),x(!1)}),[d]),C=void 0!==s?s:v,T=void 0!==c?c:w,j=void 0!==h?h:k;return wo(wo({},m),{},{inputValue:C,menuIsOpen:T,onChange:E,onInputChange:P,onMenuClose:_,onMenuOpen:D,value:j})}(e);return p.createElement(Cc,Po({ref:t},n))})),jc=Tc;const Ac={isSafari:function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)},isTouchDevice:it,isPrimaryTouchDevice:at};function Mc(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 Ic(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mc(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Nc=(0,f.injectIntl)((function(e){var t;return(0,Ke.jsx)("span",Ic(Ic({},e.innerProps),{},{children:(0,Ke.jsx)(Nt,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t})),"data-cy":"btn-clear"})}))}));var Rc=c(2418);function Lc(){return Lc=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},Lc.apply(this,arguments)}const Fc=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class Hc extends p.Component{constructor(...e){super(...e),this._targetNode=p.createRef(),this._elementNode=p.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,p.isValidElement)(e)||(e=null),(0,p.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new Rc(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={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(t,Fc),i=Lc({target:this._targetNode.current,element:this._elementParentNode},o),a=n||"";if(this._elementParentNode&&this._elementParentNode.id!==a&&(this._elementParentNode.id=a),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(i):this._createTetherInstance(i),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?p.createElement(p.Fragment,null,e,t&&this._elementParentNode&&sa.createPortal(t,this._elementParentNode)):null}}var Bc,Wc,Yc,Uc,zc,Vc,qc,Gc,Kc,$c,Xc,Qc,Zc;function Jc(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 eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jc(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tu=Me.Ay.span.withConfig({displayName:"StyledClickableWrapper"})(Bc||(Bc=je()(["\n pointer-events: auto;\n cursor: pointer;\n"]))),nu=Me.Ay.div.withConfig({displayName:"StyledReactSelectOuterWrapper"})(Wc||(Wc=je()(["\n outline-style: none;\n cursor: ",";\n"])),(function(e){return e.immutable&&"text"})),ru=Me.Ay.div.withConfig({displayName:"StyledReactSelectInnerWrapper"})(Yc||(Yc=je()(["\n outline-style: none;\n"]))),ou=Me.Ay.div.withConfig({displayName:"StyledIndicatorsContainerWrapper"})(Uc||(Uc=je()(["\n position: relative;\n z-index: 1;\n background-color: ",";\n border-radius: ",";\n ",";\n"])),He.t7.color("paper"),He.t7.radii("form"),(function(e){return e.isTopAligned&&(0,Me.AH)(zc||(zc=je()(["\n position: absolute;\n right: 0;\n top: 0;\n "])))})),iu=(0,Me.Ay)(Hc).withConfig({displayName:"StyledTether"})(Vc||(Vc=je()(["\n && {\n z-index: 1;\n }\n"]))),au=(Me.Ay.div.withConfig({displayName:"StyledNonTether"})(qc||(qc=je()(["\n position: absolute;\n padding-bottom: ",";\n z-index: 2; /* higher than StyledTether and StyledIndicatorsContainerWrapper */\n"])),He.hs.space(1.5)),(0,Me.Ay)(Cs.Menu).attrs((function(e){return{theme:e.selectTheme}})).withConfig({displayName:"StyledMenu"})(Gc||(Gc=je()(["\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}))),su=Me.Ay.div.withConfig({displayName:"StyledMoreOptionsAvailable"})(Kc||(Kc=je()(["\n && {\n ","\n cursor: default;\n padding: "," ",";\n }\n"])),(0,He.Ed)({color:He.t7.color("signal.info"),lineHeight:"normal"}),He.hs.space(-.5),He.hs.space(-.2)),cu=Me.Ay.div.withConfig({displayName:"StyledSingleValueWrapper"})($c||($c=je()(["\n overflow-x: hidden;\n position: relative;\n color: ",";\n"])),(function(e){return e.isDisabled?He.t7.color("text"):"inherit"})),uu=Me.Ay.div.withConfig({displayName:"StyledDropdownIndicatorWrapper"})(Xc||(Xc=je()(["\n && {\n position: relative;\n width: 25px;\n height: 25px;\n display: flex;\n align-items: center;\n }\n"]))),lu=Me.Ay.div.withConfig({displayName:"StyledMultiValueWrapper"})(Qc||(Qc=je()(["\n overflow: hidden;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n"]))),du=Me.Ay.span.withConfig({displayName:"StyledMultiValueLabelWrapper"})(Zc||(Zc=je()(["\n overflow: hidden;\n text-overflow: ellipsis;\n\n span {\n padding: "," !important; /* overwrite line stlyes */\n }\n"])),He.hs.space(-1.1)),fu=function(e){var t=e.colors.paper,n=e.colors.backgroundItemHover,r=e.colors.backgroundItemSelected,o=e.colors.text,i=e.colors.borderSelect,a=e.colors.textDisabled,s=e.radii.form,c={color:o,fontFamily:e.fontFamily.regular,fontSize:"".concat(e.fontSize.base,"rem"),fontWeight:e.fontWeights.regular,lineHeight:e.lineHeights.regular},u=function(e){return e.isMulti&&(e.selectProps.hasAdvancedSearch||e.selectProps.hasDocsTreeSearch)},l=function(t){return eu(eu({},t),{},{color:e.colors.signal.info,cursor:"default",textAlign:"left"})};return{container:function(e,t){return eu(eu(eu({},e),c),{},{outline:0})},control:function(e,t){return eu(eu({},e),{},{backgroundColor:"transparent",borderWidth:0,boxShadow:null,minHeight:0,flexWrap:"nowrap",position:"relative",display:u(t)?"block":e.display})},noOptionsMessage:l,loadingMessage:l,option:function(o,i){var a=t;return i.isSelected?a=r:i.isFocused&&(a=n),eu(eu({},o),{},{color:e.colors.text,backgroundColor:a,cursor:"pointer",":active":{backgroundColor:i.isSelected?r:n}})},indicatorsContainer:function(e,t){return eu(eu({},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),eu(eu(eu({},e),{},{minHeight:t.isDisabled?"0":"2.6rem",paddingTop:t.isDisabled?"0":"2px",paddingBottom:t.isDisabled?"0":"2px"},u(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(i),borderRadius:s}},menuList:function(t,n){return eu(eu(eu({},t),c),{},{border:"1px solid ".concat(i),borderRadius:s,padding:"0",backgroundColor:e.colors.paper})},multiValue:function(t,n){return eu(eu({},t),{},{borderRadius:s,backgroundColor:e.colors.backgroundMultiValue,justifyContent:"space-between"},u(n)&&!n.isDisabled?{width:"100%",maxWidth:"300px"}:{})},multiValueLabel:function(e,t){return eu(eu({},e),{},{borderRadius:s,color:o,fontSize:"inherit",lineHeight:1.8})},multiValueRemove:function(e,t){return eu(eu({},e),{},{borderRadius:0,color:o,display:t.isDisabled?"none":"flex",":hover":eu(eu({},e[":hover"]),{},{color:o,backgroundColor:r,cursor:"pointer"})})},singleValue:function(e,t){return eu(eu({},e),{},{color:t.isDisabled?a:o,margin:0,whiteSpace:"wrap"})},valueContainer:function(t,n){return eu(eu({},t),{},{padding:0,margin:0,minHeight:n.isDisabled?"0":"2.6rem",gap:He.hs.space(-2.5)({theme:e})})}}};function pu(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 hu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pu(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const mu=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,Ke.jsx)(Cs.DropdownIndicator,hu(hu({},e),{},{children:(0,Ke.jsx)(uu,{children:(0,Ke.jsx)(Nt,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};Ce().shape({key:Ce().any.isRequired,display:Ce().string});var gu,vu,yu;function bu(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 wu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bu(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xu=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},Ou=function(e,t){return function(n){n.stopPropagation(),e(t)}},ku=function(e,t){return function(n){n.stopPropagation(),e(t)}},Su=function(e){e.stopPropagation()};const Eu=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,i=t.isDisabled,a=t.hasDocsTreeSearch,s=t.hasAdvancedSearch,c=t.createPermission,u=t.value,l=t.isMulti,d=t.inputValue,f=l&&(s||a);return(0,Ke.jsx)(ou,{isTopAligned:f,children:(0,Ke.jsxs)(Cs.IndicatorsContainer,wu(wu({},e),{},{children:[e.children,n&&!i&&(0,Ke.jsx)("span",{onTouchEnd:Su,onMouseDown:Ou(n,u),children:gu||(gu=(0,Ke.jsx)(Nt,{icon:"folder",tabIndex:-1,"data-cy":"btn-docsTreeSearch"}))}),r&&!i&&(0,Ke.jsx)("span",{onTouchEnd:Su,onMouseDown:xu(r,d,u),children:vu||(vu=(0,Ke.jsx)(Nt,{icon:"search",tabIndex:-1,"data-cy":"btn-advancedSearch"}))}),c&&!i&&(0,Ke.jsx)("span",{onTouchEnd:Su,onMouseDown:ku(o,u),children:yu||(yu=(0,Ke.jsx)(Nt,{icon:"plus",tabIndex:-1,"data-cy":"btn-remoteCreate"}))})]}))})};var Pu;const Du=function(){return Pu||(Pu=(0,Ke.jsx)("span",{children:(0,Ke.jsx)(Ze,{size:"1.8rem"})}))};var _u="tocco-app",Cu=c(85072),Tu=c.n(Cu),ju=c(97825),Au=c.n(ju),Mu=c(77659),Iu=c.n(Mu),Nu=c(55056),Ru=c.n(Nu),Lu=c(10540),Fu=c.n(Lu),Hu=c(41113),Bu=c.n(Hu),Wu=c(2063),Yu={};Yu.styleTagTransform=Bu(),Yu.setAttributes=Ru(),Yu.insert=Iu().bind(null,"head"),Yu.domAPI=Au(),Yu.insertStyleElement=Fu();Tu()(Wu.A,Yu);Wu.A&&Wu.A.locals&&Wu.A.locals;var Uu,zu=c(59386),Vu=c.n(zu),qu=Me.Ay.span.withConfig({displayName:"StyledChildrenWrapper"})(Uu||(Uu=je()(["\n cursor: pointer;\n user-select: none;\n"]))),Gu=m().forwardRef((function(e,t){var n=e.children,r=e.onOpen;return(0,Ke.jsx)(qu,{onClick:r,ref:t,children:n})}));Gu.propTypes={children:Ce().any,onOpen:Ce().func};const Ku=Gu;var $u=c(88365),Xu=c(51732),Qu=function(){(0,zu.registerLocale)("en",Xu.A.getDateFnsLocale("en")),(0,zu.registerLocale)("en-US",Xu.A.getDateFnsLocale("en")),(0,zu.registerLocale)("de-CH",Xu.A.getDateFnsLocale("de-CH")),(0,zu.registerLocale)("de-DE",Xu.A.getDateFnsLocale("de-DE")),(0,zu.registerLocale)("de",Xu.A.getDateFnsLocale("de")),(0,zu.registerLocale)("fr",Xu.A.getDateFnsLocale("fr")),(0,zu.registerLocale)("fr-CH",Xu.A.getDateFnsLocale("fr")),(0,zu.registerLocale)("it",Xu.A.getDateFnsLocale("it")),(0,zu.registerLocale)("it-CH",Xu.A.getDateFnsLocale("it")),(0,zu.setDefaultLocale)("de")};Qu();(0,Me.SL)((0,f.injectIntl)((function(e){var t,n=e.children,r=e.value,o=e.onChange,i=e.intl,a=i.locale,s=(0,p.useRef)(null),c=(0,p.useState)(!1),u=et()(c,2),l=u[0],d=u[1],f=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,Ke.jsx)(Vu(),{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(){f(!0)},onClickOutside:function(){f(!1)},locale:a,enableTabLoop:!1,customInput:(0,Ke.jsx)(Ku,{onOpen:function(){f(!0)},children:n}),todayButton:(t="client.component.datePicker.todayLabel",i.formatMessage({id:t}))})})));var Zu,Ju,el,tl,nl=He.t7.color("secondaryLight"),rl=He.t7.color("paper"),ol=He.t7.color("text"),il=He.t7.color("secondary"),al=He.t7.radii("form"),sl=(0,Me.DU)(Zu||(Zu=je()(["\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"])),Ge.i,ol,He.t7.radii("form"),al,nl,rl,(0,He.Ed)(),(0,He.Ed)(),nl,al,al,He.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",rl,He.hs.font(1),He.t7.fontWeight("bold"),(0,He.Ed)({fontWeight:He.t7.fontWeight("bold")}),rl,He.hs.font(-2),He.hs.space(-1.8),il,il,il,nl,nl,nl,il,(0,He.Ed)(),rl,He.hs.space(-.5),He.t7.color("backgroundItemHover"),al,He.hs.space(-.5),rl,He.t7.color("border"),He.t7.radii("form"),He.hs.space(-1),He.hs.space(-1),He.hs.font(1),rl,He.t7.fontWeight("bold"),He.hs.space(-1),rl,He.hs.font(0),ol,nl,nl,He.t7.radii("form"),rl,nl,il,ol,ol,rl,nl,He.t7.color("backgroundItemHover"),He.t7.color("textDisabled"),He.t7.color("border"),He.t7.radii("form")),cl=(0,Me.DU)(Ju||(Ju=je()(["\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"])),He.t7.color("signal.success"),He.t7.color("signal.info"),He.t7.color("signal.warning"),He.t7.color("signal.danger"),He.t7.color("textDisabled")),ul=(0,Me.DU)(el||(el=je()(["\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"])),He.t7.color("backgroundScrollbar"),He.t7.color("backgroundScrollbarHover"),He.t7.color("backgroundScrollbar"));const ll=function(){return tl||(tl=(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(cl,{}),(0,Ke.jsx)(sl,{}),(0,Ke.jsx)(ul,{})]}))};function dl(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 fl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dl(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const pl=function(e){var t=e.selectProps,n=e.children,r=e.theme;return(0,Ke.jsx)(iu,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,Ke.jsx)("div",{ref:e})},renderElement:function(o){return(0,Ke.jsx)("div",{ref:o,className:_u,children:(0,Ke.jsx)(au,fl(fl({},Yr()(e,["innerRef","theme"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,selectTheme:r,children:n}))})}})};function hl(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 ml(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hl(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const gl=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,Ke.jsxs)(Cs.MenuList,ml(ml({},e),{},{className:"MenuList",children:[n,r&&(0,Ke.jsx)(su,{children:o})]}))};function vl(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function yl(e){return e instanceof Element||e instanceof vl(e).Element}function bl(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof vl(e).ShadowRoot)}function wl(e){return vl(e).getComputedStyle(e)}function xl(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&bl(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Ol(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function kl(e){return(null==e?void 0:e.ownerDocument)||document}Math.min,Math.max,Math.round,Math.floor;var Sl=c(49054),El=c(95361);const Pl=Math.min,Dl=Math.max,_l=Math.round,Cl=(Math.floor,e=>({x:e,y:e}));function Tl(e){return Ml(e)?(e.nodeName||"").toLowerCase():"#document"}function jl(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Al(e){var t;return null==(t=(Ml(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ml(e){return e instanceof Node||e instanceof jl(e).Node}function Il(e){return e instanceof Element||e instanceof jl(e).Element}function Nl(e){return e instanceof HTMLElement||e instanceof jl(e).HTMLElement}function Rl(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof jl(e).ShadowRoot)}function Ll(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ul(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Fl(e){return["table","td","th"].includes(Tl(e))}function Hl(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Bl(e){const t=Wl(),n=Il(e)?Ul(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 Wl(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Yl(e){return["html","body","#document"].includes(Tl(e))}function Ul(e){return jl(e).getComputedStyle(e)}function zl(e){return Il(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vl(e){if("html"===Tl(e))return e;const t=e.assignedSlot||e.parentNode||Rl(e)&&e.host||Al(e);return Rl(t)?t.host:t}function ql(e){const t=Vl(e);return Yl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Nl(t)&&Ll(t)?t:ql(t)}function Gl(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ql(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=jl(o);return i?t.concat(a,a.visualViewport||[],Ll(o)?o:[],a.frameElement&&n?Gl(a.frameElement):[]):t.concat(o,Gl(o,[],n))}function Kl(e){const t=Ul(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Nl(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=_l(n)!==i||_l(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function $l(e){return Il(e)?e:e.contextElement}function Xl(e){const t=$l(e);if(!Nl(t))return Cl(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Kl(t);let a=(i?_l(n.width):n.width)/r,s=(i?_l(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ql=Cl(0);function Zl(e){const t=jl(e);return Wl()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ql}function Jl(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=$l(e);let a=Cl(1);t&&(r?Il(r)&&(a=Xl(r)):a=Xl(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==jl(e))&&t}(i,n,r)?Zl(i):Cl(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,l=o.width/a.x,d=o.height/a.y;if(i){const e=jl(i),t=r&&Il(r)?jl(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=Xl(o),t=o.getBoundingClientRect(),r=Ul(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,l*=e.x,d*=e.y,c+=i,u+=a,n=jl(o),o=n.frameElement}}return(0,El.B1)({width:l,height:d,x:c,y:u})}function ed(e){return Jl(Al(e)).left+zl(e).scrollLeft}function td(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=jl(e),r=Al(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const e=Wl();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=Al(e),n=zl(e),r=e.ownerDocument.body,o=Dl(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Dl(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+ed(e);const s=-n.scrollTop;return"rtl"===Ul(r).direction&&(a+=Dl(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Al(e));else if(Il(t))r=function(e,t){const n=Jl(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Nl(e)?Xl(e):Cl(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Zl(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return(0,El.B1)(r)}function nd(e,t){const n=Vl(e);return!(n===t||!Il(n)||Yl(n))&&("fixed"===Ul(n).position||nd(n,t))}function rd(e,t,n){const r=Nl(t),o=Al(t),i="fixed"===n,a=Jl(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=Cl(0);if(r||!r&&!i)if(("body"!==Tl(t)||Ll(o))&&(s=zl(t)),r){const e=Jl(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=ed(o));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function od(e){return"static"===Ul(e).position}function id(e,t){return Nl(e)&&"fixed"!==Ul(e).position?t?t(e):e.offsetParent:null}function ad(e,t){const n=jl(e);if(Hl(e))return n;if(!Nl(e)){let t=Vl(e);for(;t&&!Yl(t);){if(Il(t)&&!od(t))return t;t=Vl(t)}return n}let r=id(e,t);for(;r&&Fl(r)&&od(r);)r=id(r,t);return r&&Yl(r)&&od(r)&&!Bl(r)?n:r||function(e){let t=Vl(e);for(;Nl(t)&&!Yl(t);){if(Bl(t))return t;if(Hl(t))return null;t=Vl(t)}return null}(e)||n}const sd={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Al(r),s=!!t&&Hl(t.floating);if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},u=Cl(1);const l=Cl(0),d=Nl(r);if((d||!d&&!i)&&(("body"!==Tl(r)||Ll(a))&&(c=zl(r)),Nl(r))){const e=Jl(r);u=Xl(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:Al,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?Hl(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Gl(e,[],!1).filter((e=>Il(e)&&"body"!==Tl(e))),o=null;const i="fixed"===Ul(e).position;let a=i?Vl(e):e;for(;Il(a)&&!Yl(a);){const t=Ul(a),n=Bl(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Ll(a)&&!n&&nd(e,a))?r=r.filter((e=>e!==a)):o=t,a=Vl(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],s=a[0],c=a.reduce(((e,n)=>{const r=td(t,n,o);return e.top=Dl(r.top,e.top),e.right=Pl(r.right,e.right),e.bottom=Pl(r.bottom,e.bottom),e.left=Dl(r.left,e.left),e}),td(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:ad,getElementRects:async function(e){const t=this.getOffsetParent||ad,n=this.getDimensions,r=await n(e.floating);return{reference:rd(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}=Kl(e);return{width:t,height:n}},getScale:Xl,isElement:Il,isRTL:function(e){return"rtl"===Ul(e).direction}};const cd=El.cY,ud=El.BN,ld=El.UU,dd=El.UE,fd=(e,t,n)=>{const r=new Map,o={platform:sd,...n},i={...o.platform,_c:r};return(0,El.rD)(e,t,{...o,platform:i})};var pd="undefined"!=typeof document?p.useLayoutEffect:p.useEffect;function hd(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(!hd(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)&&!hd(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function md(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function gd(e,t){const n=md(e);return Math.round(t*n)/n}function vd(e){const t=p.useRef(e);return pd((()=>{t.current=e})),t}const yd=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?dd({element:n.current,padding:r}).fn(t):{}:n?dd({element:n,padding:r}).fn(t):{};var o}}),bd=(e,t)=>({...cd(e),options:[e,t]}),wd=(e,t)=>({...ud(e),options:[e,t]}),xd=(e,t)=>({...ld(e),options:[e,t]}),Od=(e,t)=>({...yd(e),options:[e,t]});const kd={...h},Sd=kd.useInsertionEffect||(e=>e());function Ed(e){const t=p.useRef((()=>{0}));return Sd((()=>{t.current=e})),p.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 Pd="ArrowUp",Dd="ArrowDown",_d="ArrowLeft",Cd="ArrowRight";var Td="undefined"!=typeof document?p.useLayoutEffect:p.useEffect;const jd=[_d,Cd],Ad=[Pd,Dd];function Md(){return Md=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},Md.apply(this,arguments)}let Id=!1,Nd=0;const Rd=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Nd++;const Ld=kd.useId||function(){const[e,t]=p.useState((()=>Id?Rd():void 0));return Td((()=>{null==e&&t(Rd())}),[]),p.useEffect((()=>{Id=!0}),[]),e};const Fd=p.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o}},width:i=14,height:a=7,tipRadius:s=0,strokeWidth:c=0,staticOffset:u,stroke:l,d,style:{transform:f,...h}={},...m}=e;const g=Ld(),[v,y]=p.useState(!1);if(Td((()=>{if(!r)return;"rtl"===wl(r).direction&&y(!0)}),[r]),!r)return null;const b=2*c,w=b/2,x=i/2*(s/-8+1),O=a/2*s/4,[k,S]=n.split("-"),E=!!d,P="top"===k||"bottom"===k,D=u&&"end"===S?"bottom":"top";let _=u&&"end"===S?"right":"left";u&&v&&(_="end"===S?"left":"right");const C=null!=(null==o?void 0:o.x)?u||o.x:"",T=null!=(null==o?void 0:o.y)?u||o.y:"",j=d||"M0,0 H"+i+" L"+(i-x)+","+(a-O)+" Q"+i/2+","+a+" "+x+","+(a-O)+" Z",A={top:E?"rotate(180deg)":"",left:E?"rotate(90deg)":"rotate(-90deg)",bottom:E?"":"rotate(180deg)",right:E?"rotate(-90deg)":"rotate(90deg)"}[k];return p.createElement("svg",Md({},m,{"aria-hidden":!0,ref:t,width:E?i:i+b,height:i,viewBox:"0 0 "+i+" "+(a>i?a:i),style:{position:"absolute",pointerEvents:"none",[_]:C,[D]:T,[k]:P||E?"100%":"calc(100% - "+b/2+"px)",transform:""+A+(null!=f?f:""),...h}}),b>0&&p.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:l,strokeWidth:b+(d?0:1),d:j}),p.createElement("path",{stroke:b&&!d?m.fill:"none",d:j}),p.createElement("clipPath",{id:g},p.createElement("rect",{x:-w,y:w*(E?-1:1),width:i+b,height:i})))}));function Hd(){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 Bd=p.createContext(null),Wd=p.createContext(null),Yd=()=>{var e;return(null==(e=p.useContext(Bd))?void 0:e.id)||null},Ud=()=>p.useContext(Wd);function zd(e){return"data-floating-ui-"+e}function Vd(e){const t=(0,p.useRef)(e);return Td((()=>{t.current=e})),t}const qd=zd("safe-polygon");function Gd(e,t,n){return n&&!Ol(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}const Kd=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function $d(e,t){const n=(0,Sl.Kr)(e,Kd());"prev"===t&&n.reverse();const r=n.indexOf(function(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}(kl(e)));return n.slice(r+1)[0]}function Xd(){return $d(document.body,"next")}function Qd(){return $d(document.body,"prev")}function Zd(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!xl(n,r)}function Jd(e){(0,Sl.Kr)(e,Kd()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function ef(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 tf={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 nf(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const rf=p.forwardRef((function(e,t){const[n,r]=p.useState();Td((()=>(/apple/i.test(navigator.vendor)&&r("button"),document.addEventListener("keydown",nf),()=>{document.removeEventListener("keydown",nf)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[zd("focus-guard")]:"",style:tf};return p.createElement("span",Md({},e,o))})),of=p.createContext(null),af=zd("portal");function sf(e){const{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e,i=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=Ld(),o=cf(),[i,a]=p.useState(null),s=p.useRef(null);return Td((()=>()=>{null==i||i.remove(),queueMicrotask((()=>{s.current=null}))}),[i]),Td((()=>{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(af,""),e.appendChild(n),s.current=n,a(n)}),[t,r]),Td((()=>{if(!r)return;if(s.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!yl(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const c=document.createElement("div");c.id=r,c.setAttribute(af,""),e=i||e,e.appendChild(c),s.current=c,a(c)}),[t,n,r,o]),i}({id:n,root:r}),[a,s]=p.useState(null),c=p.useRef(null),u=p.useRef(null),l=p.useRef(null),d=p.useRef(null),f=!!a&&!a.modal&&a.open&&o&&!(!r&&!i);return p.useEffect((()=>{if(i&&o&&(null==a||!a.modal))return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){if(i&&Zd(e)){("focusin"===e.type?ef:Jd)(i)}}}),[i,o,null==a?void 0:a.modal]),p.createElement(of.Provider,{value:p.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:l,afterInsideRef:d,portalNode:i,setFocusManagerState:s})),[o,i])},f&&i&&p.createElement(rf,{"data-type":"outside",ref:c,onFocus:e=>{if(Zd(e,i)){var t;null==(t=l.current)||t.focus()}else{const e=Qd()||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),f&&i&&p.createElement("span",{"aria-owns":i.id,style:tf}),i&&sa.createPortal(t,i),f&&i&&p.createElement(rf,{"data-type":"outside",ref:u,onFocus:e=>{if(Zd(e,i)){var t;null==(t=d.current)||t.focus()}else{const t=Xd()||(null==a?void 0:a.refs.domReference.current);null==t||t.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent))}}}))}const cf=()=>p.useContext(of);function uf(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Ld(),i=p.useRef({}),[a]=p.useState((()=>Hd())),s=null!=Yd(),[c,u]=p.useState(r.reference),l=Ed(((e,t,r)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),d=p.useMemo((()=>({setPositionReference:u})),[]),f=p.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return p.useMemo((()=>({dataRef:i,open:t,onOpenChange:l,elements:f,events:a,floatingId:o,refs:d})),[t,l,f,a,o,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=p.useState(null),[s,c]=p.useState(null),u=(null==o?void 0:o.reference)||i,l=p.useRef(null),d=Ud();Td((()=>{u&&(l.current=u)}),[u]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[l,d]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=p.useState(r);hd(f,r)||h(r);const[m,g]=p.useState(null),[v,y]=p.useState(null),b=p.useCallback((e=>{e!==k.current&&(k.current=e,g(e))}),[]),w=p.useCallback((e=>{e!==S.current&&(S.current=e,y(e))}),[]),x=i||m,O=a||v,k=p.useRef(null),S=p.useRef(null),E=p.useRef(l),P=null!=c,D=vd(c),_=vd(o),C=p.useCallback((()=>{if(!k.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};_.current&&(e.platform=_.current),fd(k.current,S.current,e).then((e=>{const t={...e,isPositioned:!0};T.current&&!hd(E.current,t)&&(E.current=t,sa.flushSync((()=>{d(t)})))}))}),[f,t,n,_]);pd((()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[u]);const T=p.useRef(!1);pd((()=>(T.current=!0,()=>{T.current=!1})),[]),pd((()=>{if(x&&(k.current=x),O&&(S.current=O),x&&O){if(D.current)return D.current(x,O,C);C()}}),[x,O,C,D,P]);const j=p.useMemo((()=>({reference:k,floating:S,setReference:b,setFloating:w})),[b,w]),A=p.useMemo((()=>({reference:x,floating:O})),[x,O]),M=p.useMemo((()=>{const e={position:n,left:0,top:0};if(!A.floating)return e;const t=gd(A.floating,l.x),r=gd(A.floating,l.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...md(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,A.floating,l.x,l.y]);return p.useMemo((()=>({...l,update:C,refs:j,elements:A,floatingStyles:M})),[l,C,j,A,M])}({...e,elements:{...o,...s&&{reference:s}}}),h=p.useCallback((e=>{const t=yl(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),f.refs.setReference(t)}),[f.refs]),m=p.useCallback((e=>{(yl(e)||null===e)&&(l.current=e,a(e)),(yl(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!yl(e))&&f.refs.setReference(e)}),[f.refs]),g=p.useMemo((()=>({...f.refs,setReference:m,setPositionReference:h,domReference:l})),[f.refs,m,h]),v=p.useMemo((()=>({...f.elements,domReference:u})),[f.elements,u]),y=p.useMemo((()=>({...f,...r,refs:g,elements:v,nodeId:t})),[f,g,v,t,r]);return Td((()=>{r.dataRef.current.floatingContext=y;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=y)})),p.useMemo((()=>({...f,context:y,refs:g,elements:v})),[f,g,v,y])}const lf="active",df="selected";function ff(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[lf]:t,[df]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1},...i,...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,i]=t;var a;o&&[lf,df].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}var pf,hf,mf,gf,vf,yf=Me.Ay.span.withConfig({displayName:"StyledIconWrapper"})(pf||(pf=je()(["\n color: ",";\n font-size: ",";\n margin-left: -",";\n"])),He.t7.color("text"),He.hs.font(1),He.hs.space(-2)),bf=(0,Me.AH)(hf||(hf=je()(["\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"])),He.t7.color("text"),He.t7.lineHeight("regular"),He.t7.fontWeight("regular"),He.hs.space(-3),He.hs.space(-1.5),He.t7.radii("statusLabel")),wf=(0,Me.Ay)(lr.oY).withConfig({displayName:"StyledHtmlFormatter"})(mf||(mf=je()(["\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,lr.gv)(e,"html")}),He.hs.space(-1),He.hs.space(-1.5),bf,He.t7.color("signal.dangerLight"),He.t7.color("textLabel"),He.t7.color("signal.infoLight"),He.t7.color("textLabel"),He.t7.color("signal.warningLight"),He.t7.color("textLabel"),He.t7.color("signal.successLight"),He.t7.color("textLabel"),bf,He.t7.color("signal.neutral"),He.t7.color("textLabel"),He.t7.radii("statusLabel"),He.hs.space(-2.1),He.hs.space(0),He.t7.color("paper"),He.t7.color("signal.info"),He.t7.color("signal.warningLight"),He.hs.space(-1.5),He.hs.space(.5)),xf=Me.Ay.div.withConfig({displayName:"StyledFloatingUi"})(gf||(gf=je()(["\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"])),He.t7.color("backgroundPopover"),(function(e){return e.rimless?"0":He.hs.space(0)}),He.t7.color("textPopover"),He.t7.color("backgroundPopover")),Of=Me.Ay.div.withConfig({displayName:"StyledBox"})(vf||(vf=je()(["\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,lr.gv)(e,"html")}),wf,He.t7.color("textPopover"));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){ze()(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}const Ef=function(e){var t=e.children,n=e.content,r=e.isPlainHtml,o=void 0===r||r,i=e.rimless,a=void 0!==i&&i,s=(0,p.useState)(!1),c=et()(s,2),u=c[0],l=c[1],d=(0,p.useRef)(null),f=uf({open:u,onOpenChange:l,middleware:[xd(),wd({padding:20}),Od({element:d}),bd(5)]}),h=f.refs,m=f.floatingStyles,g=f.context,v=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:a}=e,{enabled:s=!0,delay:c=0,handleClose:u=null,mouseOnly:l=!1,restMs:d=0,move:f=!0}=t,h=Ud(),m=Yd(),g=Vd(u),v=Vd(c),y=Vd(n),b=p.useRef(),w=p.useRef(-1),x=p.useRef(),O=p.useRef(-1),k=p.useRef(!0),S=p.useRef(!1),E=p.useRef((()=>{})),P=p.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]);p.useEffect((()=>{if(s)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(w.current),clearTimeout(O.current),k.current=!0)}}),[s,i]),p.useEffect((()=>{if(!s)return;if(!g.current)return;if(!n)return;function e(e){P()&&r(!1,e,"hover")}const t=kl(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a.floating,n,r,s,g,P]);const D=p.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=Gd(v.current,"close",b.current);o&&!x.current?(clearTimeout(w.current),w.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(w.current),r(!1,e,n))}),[v,r]),_=Ed((()=>{E.current(),x.current=void 0})),C=Ed((()=>{if(S.current){const e=kl(a.floating).body;e.style.pointerEvents="",e.removeAttribute(qd),S.current=!1}}));p.useEffect((()=>{if(s&&yl(a.domReference)){var e;const t=a.domReference;return n&&t.addEventListener("mouseleave",u),null==(e=a.floating)||e.addEventListener("mouseleave",u),f&&t.addEventListener("mousemove",i,{once:!0}),t.addEventListener("mouseenter",i),t.addEventListener("mouseleave",c),()=>{var e;n&&t.removeEventListener("mouseleave",u),null==(e=a.floating)||e.removeEventListener("mouseleave",u),f&&t.removeEventListener("mousemove",i),t.removeEventListener("mouseenter",i),t.removeEventListener("mouseleave",c)}}function t(){return!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)}function i(e){if(clearTimeout(w.current),k.current=!1,l&&!Ol(b.current)||d>0&&!Gd(v.current,"open"))return;const t=Gd(v.current,"open",b.current);t?w.current=window.setTimeout((()=>{y.current||r(!0,e,"hover")}),t):r(!0,e,"hover")}function c(e){if(t())return;E.current();const r=kl(a.floating);if(clearTimeout(O.current),g.current&&o.current.floatingContext){n||clearTimeout(w.current),x.current=g.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){C(),_(),D(e,!0,"safe-polygon")}});const t=x.current;return r.addEventListener("mousemove",t),void(E.current=()=>{r.removeEventListener("mousemove",t)})}("touch"!==b.current||!xl(a.floating,e.relatedTarget))&&D(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))}}),[a,s,e,l,d,f,D,_,C,r,n,y,h,v,g,o]),Td((()=>{var e;if(s&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&P()){const e=kl(a.floating).body;e.setAttribute(qd,""),e.style.pointerEvents="none",S.current=!0;const n=a.floating;if(yl(a.domReference)&&n){var t;const e=a.domReference,r=null==h||null==(t=h.nodesRef.current.find((e=>e.id===m)))||null==(t=t.context)?void 0:t.elements.floating;return r&&(r.style.pointerEvents=""),e.style.pointerEvents="auto",n.style.pointerEvents="auto",()=>{e.style.pointerEvents="",n.style.pointerEvents=""}}}}),[s,n,m,a,h,g,P]),Td((()=>{n||(b.current=void 0,_(),C())}),[n,_,C]),p.useEffect((()=>()=>{_(),clearTimeout(w.current),clearTimeout(O.current),C()}),[s,a.domReference,_,C]);const T=p.useMemo((()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){k.current||y.current||r(!0,t,"hover")}l&&!Ol(b.current)||n||0===d||(clearTimeout(O.current),"touch"===b.current?o():O.current=window.setTimeout(o,d))}}}),[l,r,n,y,d]),j=p.useMemo((()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){D(e.nativeEvent,!1)}})),[D]);return p.useMemo((()=>s?{reference:T,floating:j}:{}),[s,T,j])}(g,{delay:{open:500,close:0}}),y=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=p.useCallback((t=>ff(t,e,"reference")),t),i=p.useCallback((t=>ff(t,e,"floating")),n),a=p.useCallback((t=>ff(t,e,"item")),r);return p.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a})),[o,i,a])}([v]),b=y.getReferenceProps,w=y.getFloatingProps;return(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)("span",Sf(Sf({ref:h.setReference},b()),{},{children:t})),u&&n&&(0,Ke.jsx)(sf,{children:(0,Ke.jsxs)(xf,Sf(Sf({ref:h.setFloating,style:m,rimless:a},w()),{},{className:_u,children:[(0,Ke.jsx)(Fd,{ref:d,context:g}),(0,Ke.jsx)(Of,{isPlainHtml:o,children:n})]}))})]})},Pf=Ef;const Df=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,i=o.tooltips,a=o.loadTooltip,s=o.DetailLink,c=ho()(i,t.key,null),u=(0,Ke.jsx)("span",{style:n.css,children:r}),l=s?(0,Ke.jsx)(tu,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,Ke.jsx)(s,{entityKey:t.key,tabIndex:-1,children:(0,Ke.jsx)(Pf,{content:c?(0,Ke.jsx)("div",{dangerouslySetInnerHTML:{__html:Jn.sanitizeHtml(c)}}):null,children:(0,Ke.jsx)("span",{onMouseOver:function(){return a&&!c&&a(t.key)},children:u})})})}):u;return(0,Ke.jsx)(du,{children:l})};var _f=c(85015),Cf=c.n(_f),Tf=c(42194),jf=c.n(Tf);function Af(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 Mf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Af(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Af(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var If=["linkComp"],Nf=function(e,t){var n=ur.difference(e,t),r=jf()(Yr()(n,If),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},Rf=(0,p.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&Cf()(n)?(0,Ke.jsx)(tu,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,Ke.jsx)(t,{entityKey:n,children:r})}):r}),Nf);Rf.propTypes={children:Ce().node,entityKey:Ce().any,linkComp:Ce().func};const Lf=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,i=n.tooltips,a=n.loadTooltip,s=n.DetailLink,c=ho()(i,t.key,null);return(0,Ke.jsx)(Cs.SingleValue,Mf(Mf({},e),{},{children:(0,Ke.jsx)(cu,{onMouseOver:function(){return a&&!c&&a(t.key)},isDisabled:r,children:(0,Ke.jsx)(Pf,{content:c?(0,Ke.jsx)("div",{dangerouslySetInnerHTML:{__html:Jn.sanitizeHtml(c)}}):null,children:(0,Ke.jsx)(Rf,{linkComp:s,entityKey:t.key,children:o})})})}))};function Ff(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 Hf=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const Bf=function(e){var t=e.selectProps,n=e.hasValue,r=e.children,o=t.isMulti,i=t.hasAdvancedSearch,a=t.hasDocsTreeSearch,s=t.isDisabled;if(!(o&&(i||a)))return(0,Ke.jsx)(Cs.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ff(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ff(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var c=p.Children.map(r,(function(e){return Hf(e)?e:null})),u=p.Children.map(r,(function(e){return Hf(e)?null:e})),l=s&&n;return(0,Ke.jsxs)(Ke.Fragment,{children:[!l&&(0,Ke.jsx)(Ke.Fragment,{children:c}),(0,Ke.jsx)(lu,{children:u})]})};function Wf(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?Wf(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}(0,Me.SL)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,i=e.isMulti,a=e.loadTooltip,s=e.moreOptionsAvailable,c=e.moreOptionsAvailableText,u=e.noResultsText,l=e.noResultsComp,d=e.onChange,f=e.openDocsTreeSearch,h=e.openAdvancedSearch,m=e.options,g=e.searchOptions,v=e.theme,y=e.tooltips,b=e.value,w=e.DetailLink,x=e.createPermission,O=e.openRemoteCreate,k=(0,p.useRef)(null),S=(0,p.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},D=(0,p.useState)(E()),_=et()(D,2),C=_[0],T=_[1],j=(0,p.useState)(P()),A=et()(j,2),M=A[0],I=A[1],N=(0,p.useState)(!1),R=et()(N,2),L=R[0],F=R[1],H=function(e){t&&t(e)},B=(0,p.useCallback)(g||function(){},[]),W=(0,p.useCallback)(vo()(B,800,{trailing:!0}),[]),Y=Boolean(h),U=Boolean(f),z=Boolean(x),V=Boolean(g)||!Ac.isPrimaryTouchDevice();return(0,Ke.jsx)(nu,{tabIndex:"-1",id:n,onFocus:function(){k.current.focus(),setTimeout((function(){T(E()),I(P())}),0)},children:(0,Ke.jsx)(ru,{ref:S,children:(0,Ke.jsx)(jc,Yf(Yf({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:C,wrapperHeight:M,components:{ClearIndicator:Nc,LoadingIndicator:Du,DropdownIndicator:mu,IndicatorsContainer:Eu,IndicatorSeparator:null,Menu:pl,MenuList:gl,MultiValueLabel:Df,SingleValue:Lf,ValueContainer:Bf},noOptionsMessage:function(e){return u||("function"==typeof l?(0,Ke.jsx)(l,Yf({},e)):" - ")},isMulti:i,closeMenuOnSelect:!i,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&&W(e,b),""===e&&"input-change"===n&&H(b)},options:Wt()(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:fu(v),loadTooltip:a,tooltips:y,DetailLink:w,hasDocsTreeSearch:U,openDocsTreeSearch:f,hasAdvancedSearch:Y,openAdvancedSearch:h,moreOptionsAvailable:s,moreOptionsAvailableText:c,blurInputOnSelect:!1,hasCreatePermission:z,createPermission:x,openRemoteCreate:O,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));var Uf;Me.Ay.div.withConfig({displayName:"StyledBoolEdit"})(Uf||(Uf=je()(["\n margin: 5px 0;\n"])));var zf,Vf,qf=function(e){var t=e.id,n=e.value,r=e.breakWords,o=e.className;return(0,Ke.jsx)(wf,{id:t,dangerouslySetInnerHTML:{__html:Jn.sanitizeHtml(n)},breakWords:r,className:o})};Me.Ay.div.withConfig({displayName:"StyledOption"})(zf||(zf=je()(["\n margin: "," 0;\n display: flex;\n align-items: center;\n gap: ",";\n\n input {\n margin: 0;\n }\n"])),He.hs.space(-1),He.hs.space(-1.5)),Me.Ay.span.withConfig({displayName:"StyledLabel"})(Vf||(Vf=je()(["\n ","\n display: flex;\n gap: ",";\n align-items: center;\n"])),(0,He.Ed)(),He.hs.space(-1.5));c(98639);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 Kf(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){ze()(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 $f=(0,p.lazy)((function(){return Promise.all([c.e(264),c.e(722)]).then(c.bind(c,65066))}));const Xf=function(e){return(0,Ke.jsx)(p.Suspense,{fallback:(t=e.value,(0,Ke.jsx)("div",{children:(0,Ke.jsx)("p",{children:t})})),children:(0,Ke.jsx)($f,Kf({},e))});var t};var Qf,Zf=Me.Ay.div.withConfig({displayName:"StyledEditorWrapper"})(Qf||(Qf=je()(["\n margin-top: ",";\n"])),He.hs.space(-1.5));(0,Me.SL)(ut.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options,i=e.id,a=e.theme;return(0,Ke.jsx)(Zf,{children:(0,Ke.jsx)(Xf,{value:t,id:i,onChange:n,autoFocusOnMount:o.autoFocusOnMount,mode:o.mode,theme:a.codeEditorTheme,showGutter:!0,editorOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,minLines:5,maxLines:50,readOnly:r,wrap:!0,indentedSoftWrap:!1},implicitModel:o.implicitModel})})})));var Jf,ep,tp,np=Me.Ay.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(Jf||(Jf=je()(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),rp=Me.Ay.div.withConfig({displayName:"StyledDatePickerWrapper"})(ep||(ep=je()(["\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"])),so,uo,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),op=Me.Ay.input.withConfig({displayName:"StyledTimeInput"})(tp||(tp=je()(["\n &&&& {\n ","\n }\n"])),uo),ip="react-datepicker-time__input",ap="react-datepicker__day",sp="react-datepicker__input",cp=function(e){return e.classList.contains(ap)},up=function(e){return e.classList.contains(ip)},lp=function(e){return e.classList.contains(sp)},dp=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(ap,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},fp=function(e,t){var n=null==e?void 0:e.form;if(n){var r=Wt()(n).indexOf(e);if(r>=0)pp(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."))},pp=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},hp=function(e){if(!e)return null;var t=(0,$u.Hle)(e.toString());return isNaN(t)?null:t},mp=function(e){return e?e.toISOString():null};const gp=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,i=n.minDate,a=n.maxDate,c=n.hasTime,u=n.valueToDate,l=void 0===u?hp:u,d=n.dateToValue,f=void 0===d?mp:d,h=(0,p.useRef)(null),m=(0,p.useState)(!1),g=et()(m,2),v=g[0],y=g[1],b=l(e),w=i?l(i):void 0,x=a?l(a):void 0;(0,p.useEffect)((function(){h.current&&"function"==typeof h.current.setOpen&&h.current.setOpen(v)}),[v]);var O=function(){return y(!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,i=void 0===o?0:o,a=t.second,s=void 0===a?0:a;return(0,$u.avh)((0,$u.glI)((0,$u.gtt)(e,s),i),r)}(n,{hour:(0,$u.qZx)(r),minute:(0,$u.Osm)(r),second:(0,$u.SyE)(r)}):n;D(o,e)}},D=function(n,r){if(n){var i,a=!e&&Boolean(n),s=null==r||null===(i=r.target)||void 0===i?void 0:i.value,u=!!s&&o.some((function(e){return(0,$u.uv4)(s,e)})),l=(0,$u.ol1)(n),d=(0,$u.qZx)(n)!==(0,$u.qZx)(l)||(0,$u.Osm)(n)!==(0,$u.Osm)(l);(a&&!d||u)&&c&&(n=Xu.A.setCurrentTime(n)),t(f(n))}else E();var p;c||"click"!==(null==r?void 0:r.type)||(O(),pp(null===(p=h.current)||void 0===p?void 0:p.input))},_=function(t){var n,r,o=!e;if("Tab"===t.key)if(t.shiftKey){if(lp(t.target))O();else if(up(t.target)){var i;S(b||k(!0)),dp(null===(i=h.current)||void 0===i||null===(i=i.calendar)||void 0===i?void 0:i.componentNode)}else if(cp(t.target)){var a;O(),function(e){var t=null==e?void 0:e.form;if(t){var n=Wt()(t).indexOf(e);n>=1&&pp(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===(a=h.current)||void 0===a?void 0:a.input)}}else if(lp(t.target)&&v)P(t),O(),fp(null===(n=h.current)||void 0===n?void 0:n.input,o);else if(up(t.target)){var u;O(),fp(null===(u=h.current)||void 0===u?void 0:u.input,o)}else if(cp(t.target)){var l,d;if(c)P(t,!0),S(null),r=null===(l=h.current)||void 0===l||null===(l=l.calendar)||void 0===l?void 0:l.componentNode,setTimeout((function(){if(r){var e=r.querySelector("input.".concat(ip));e&&e.focus({preventScroll:!0})}}),0);else P(t),O(),fp(null===(d=h.current)||void 0===d?void 0:d.input,o)}if("Enter"===t.key&&(O(),setTimeout((function(){var e;pp(null===(e=h.current)||void 0===e?void 0:e.input)}),10),t.preventDefault(),t.stopPropagation()),["ArrowDown","ArrowUp","Enter"].includes(t.key))if(v){if(v&&null===k(!1)){var f;S(b||k(!0)),dp(null===(f=h.current)||void 0===f||null===(f=f.calendar)||void 0===f?void 0:f.componentNode)}}else y(!0),t.key="Handled".concat(t.key)},C=function(){var e;y((function(e){return!e})),S(null),pp(null===(e=h.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{onClickOutside:O,onInputClick:C,onKeyDown:_,onChange:D,onCalendarOpen:function(){S(null)},onBlur:function(){h.current&&h.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:v,selected:b,showTimeInput:c,minDate:w,maxDate:x,ref:h,className:sp},timeInputProps:{onKeyDown:_,className:ip},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),E()}},calendarButtonProps:{onClick:C,className:v?"react-datepicker-ignore-onclickoutside":""},closeModal:O}};var vp="HH:mm:ss",yp="HH:mm",bp=function(e){return(0,$u.uv4)(e,yp)},wp=function(e){var t=function(e){return e?(0,$u.uv4)(e,vp)?(0,$u.qgA)(e,vp,new Date):(0,$u.uv4)(e,yp)?(0,$u.qgA)(e,yp,new Date):(0,$u.uv4)(e,"HH:")?(0,$u.qgA)(e,"HH:",new Date):(0,$u.uv4)(e,"H")?(0,$u.qgA)(e,"H",new Date):null:e}(e);return t&&!isNaN(t)?function(e){return(0,$u.GPZ)(e,yp)}(t):""};const xp=function(e,t){var n=wp(e),r=(0,p.useState)(n),o=et()(r,2),i=o[0],a=o[1],s=(0,p.useRef)(i),c=ut.usePrevious(n);(0,p.useEffect)((function(){c!==n&&i===c&&a(n)}),[n,i,c]);var u={onChange:function(e){if(e.target.value!==i&&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,a(n);var p=wp(n);p&&!bp(p)||t(p)}},onBlur:function(){if(i!==n){var e=wp(i);e&&bp(e)?(s.current=e,a(e),t(e)):a(n)}},onFocus:function(e){i&&"function"==typeof e.target.select&&e.target.select()},value:i||""};return{inputProps:u,clearButtonProps:{onClick:function(){t(""),a("")}}}};var Op=["value","onChange","onKeyDown"];function kp(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 Sp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kp(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Qu();var Ep=function(e){var t=e.onChange,n=e.label;return(0,Ke.jsx)(Dt,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},Pp=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=qe()(e,Op),i=xp(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,Ke.jsx)(op,Sp(Sp(Sp({},i),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},Dp={strategy:"fixed"};const _p=(0,Me.SL)((0,f.injectIntl)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,i=e.maxDate,a=e.valueToDate,s=e.dateToValue,c=e.onChange,u=e.intl,l=e.placeholder,d=e.hasTime,f=e.dateFormats,h=void 0===f?[]:f,m=e.dateTimeFormats,g=void 0===m?[]:m,v=e.events,y=(0,p.useRef)(void 0),b=u.locale,w=function(e){return u.formatMessage({id:e})},x=(0,p.useRef)(null),O=Boolean(r),k=!t&&O,S=function(e){y.current=e,c(e)},E=gp(r,S,{dateFormats:h,dateTimeFormats:g,minDate:o,maxDate:i,valueToDate:a,dateToValue:s,hasTime:d}),P=E.reactDatePickerProps,D=E.timeInputProps,_=E.clearButtonProps,C=E.calendarButtonProps,T=E.closeModal;return(0,p.useEffect)((function(){var e=function(){return T()},t=x.current;return t.addEventListener("tableNavigationBlur",e),function(){t&&t.removeEventListener("tableNavigationBlur",e)}}),[T]),(0,Ke.jsx)(np,{immutable:t,id:n,tabIndex:"-1",children:(0,Ke.jsxs)(rp,{immutable:t,ref:x,hasTime:d,onBlur:function(e){if("function"==typeof(null==v?void 0:v.onBlur)){var t=void 0!==y.current?y.current:r;v.onBlur(t)}e.stopPropagation()},"data-custom-arrow-navigation":"datepicker",children:[(0,Ke.jsx)(Vu(),Sp(Sp({id:n?"".concat(n,"-datepicker"):null,popperClassName:_u},P),{},{disabled:t,dateFormat:[].concat(Wt()(g),Wt()(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,Ke.jsx)(Pp,Sp({},D)),showTimeSelect:d,timeIntervals:15,popperProps:Dp,portalId:"react-datepicker",todayButton:(0,Ke.jsx)(Ep,{onChange:S,label:w("client.component.datePicker.todayLabel")})})),k&&(0,Ke.jsx)(Nt,Sp({"data-cy":"btn-clear",icon:"times",tabIndex:-1,"aria-label":w("client.component.datePicker.clearDateLabel")},_)),!t&&(0,Ke.jsx)(Nt,Sp({"data-cy":"btn-calendar",icon:"calendar",tabIndex:-1},C))]})})})));function Cp(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}(0,f.injectIntl)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,i=e.placeholder,a=(0,f.useIntl)(),s=(null==n?void 0:n.datePickerOptions)||{},c="".concat(Xu.A.getLocalizedDateTimeFormat(a.locale)),u="".concat(Xu.A.getLocalizedDateFormat(a.locale)),l=Xu.A.getLocalizedDateTimeFormatWithoutPunctuation(a.locale),d=[c,l,Xu.A.useTwoDigitYear(c),Xu.A.useTwoDigitYear(l)],p=Xu.A.getLocalizedDateFormatWithoutPunctuation(a.locale),h=[u,p,Xu.A.useTwoDigitYear(u),Xu.A.useTwoDigitYear(p)];return(0,Ke.jsx)(_p,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cp(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({value:r,onChange:t,dateTimeFormats:d,dateFormats:h,hasTime:!0,immutable:o,placeholder:i},s))}));var Tp,jp,Ap,Mp,Ip,Np,Rp,Lp,Fp=Me.Ay.section.withConfig({displayName:"StyledSection"})(Tp||(Tp=je()(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),Hp=Me.Ay.div.withConfig({displayName:"StyledButtonsWrapper"})(jp||(jp=je()(["\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"])),St,He.hs.space(-2)),Bp=Me.Ay.div.withConfig({displayName:"StyledDropzone"})(Ap||(Ap=je()(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),St,He.t7.color("backgroundItemHover")),Wp=Me.Ay.div.withConfig({displayName:"StyledUploadInput"})(Mp||(Mp=je()(["\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,He.Ed)(),(function(e){return e.immutable?"not-allowed":"pointer"}),He.t7.color("paper"),(function(e){return e.immutable?He.Db.shade2(e):He.Db.base(e)}),He.hs.space(-2),St,He.hs.space(-3.1),He.hs.space(-1.5)),Yp=Me.Ay.div.withConfig({displayName:"StyledUploadProgress"})(Ip||(Ip=je()(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),He.hs.space(-2)),Up=(0,Me.Ay)(lr.oY).withConfig({displayName:"StyledUploadProgressText"})(Np||(Np=je()(["\n && {\n ","\n }\n"])),(0,He.Ed)({fontSize:He.hs.font(-1)})),zp=Me.Ay.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(Rp||(Rp=je()(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),He.hs.space(-2)),Vp=Me.Ay.div.withConfig({displayName:"StyledView"})(Lp||(Lp=je()(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),He.hs.space(-2));function qp(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(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(a,s)}c((r=r.apply(e,t||[])).next())}))}function Gp(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)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 a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}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 Kp(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function $p(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;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 Xp=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 Qp(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=Xp.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 Jp(e){return"object"==typeof e&&null!==e}function eh(e){return oh(e.target.files).map((function(e){return Qp(e)}))}function th(e){return qp(this,void 0,void 0,(function(){return Gp(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 Qp(e)}))]}}))}))}function nh(e,t){return qp(this,void 0,void 0,(function(){var n;return Gp(this,(function(r){switch(r.label){case 0:return e.items?(n=oh(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(ih))]):[3,2];case 1:return[2,rh(ah(r.sent()))];case 2:return[2,rh(oh(e.files).map((function(e){return Qp(e)})))]}}))}))}function rh(e){return e.filter((function(e){return-1===Zp.indexOf(e.name)}))}function oh(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function ih(e){if("function"!=typeof e.webkitGetAsEntry)return sh(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?uh(t):sh(e)}function ah(e){return e.reduce((function(e,t){return $p($p([],Kp(e),!1),Kp(Array.isArray(t)?ah(t):[t]),!1)}),[])}function sh(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Qp(t);return Promise.resolve(n)}function ch(e){return qp(this,void 0,void 0,(function(){return Gp(this,(function(t){return[2,e.isDirectory?uh(e):lh(e)]}))}))}function uh(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var i=this;t.readEntries((function(t){return qp(i,void 0,void 0,(function(){var i,a,s;return Gp(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 i=c.sent(),e(i),[3,4];case 3:return a=c.sent(),n(a),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(ch)),r.push(s),o(),c.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function lh(e){return qp(this,void 0,void 0,(function(){return Gp(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=Qp(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var dh=c(9455);function fh(e){return function(e){if(Array.isArray(e))return yh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vh(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 ph(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 hh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ph(Object(n),!0).forEach((function(t){mh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ph(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gh(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,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||vh(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 vh(e,t){if(e){if("string"==typeof e)return yh(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)?yh(e,t):void 0}}function yh(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 bh="file-invalid-type",wh="file-too-large",xh="file-too-small",Oh="too-many-files",kh=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:bh,message:"File type must be ".concat(t)}},Sh=function(e){return{code:wh,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},Eh=function(e){return{code:xh,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},Ph={code:Oh,message:"Too many files"};function Dh(e,t){var n="application/x-moz-file"===e.type||(0,dh.A)(e,t);return[n,n?null:kh(t)]}function _h(e,t,n){if(Ch(e.size))if(Ch(t)&&Ch(n)){if(e.size>n)return[!1,Sh(n)];if(e.size<t)return[!1,Eh(t)]}else{if(Ch(t)&&e.size<t)return[!1,Eh(t)];if(Ch(n)&&e.size>n)return[!1,Sh(n)]}return[!0,null]}function Ch(e){return null!=e}function Th(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function jh(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 Ah(e){e.preventDefault()}function Mh(){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!Th(e)&&t&&t.apply(void 0,[e].concat(r)),Th(e)}))}}function Ih(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function Nh(e){return/^.*\.[\w]+$/.test(e)}var Rh=["children"],Lh=["open"],Fh=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Hh=["refKey","onChange","onClick"];function Bh(e){return function(e){if(Array.isArray(e))return Uh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Yh(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 Wh(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,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||Yh(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 Yh(e,t){if(e){if("string"==typeof e)return Uh(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)?Uh(e,t):void 0}}function Uh(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 zh(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 Vh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zh(Object(n),!0).forEach((function(t){qh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gh(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Kh=(0,p.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Vh(Vh({},$h),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,a=t.minSize,s=t.multiple,c=t.maxFiles,u=t.onDragEnter,l=t.onDragLeave,d=t.onDragOver,f=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,v=t.onFileDialogOpen,y=t.useFsAccessApi,b=t.autoFocus,w=t.preventDropOnDocument,x=t.noClick,O=t.noKeyboard,k=t.noDrag,S=t.noDragEventsBubbling,E=t.onError,P=t.validator,D=(0,p.useMemo)((function(){return function(e){if(Ch(e))return Object.entries(e).reduce((function(e,t){var n=gh(t,2),r=n[0],o=n[1];return[].concat(fh(e),[r],fh(o))}),[]).filter((function(e){return Ih(e)||Nh(e)})).join(",")}(n)}),[n]),_=(0,p.useMemo)((function(){return function(e){if(Ch(e)){var t=Object.entries(e).filter((function(e){var t=gh(e,2),n=t[0],r=t[1],o=!0;return Ih(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(Nh)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=gh(t,2),r=n[0],o=n[1];return hh(hh({},e),{},mh({},r,o))}),{});return[{description:"Files",accept:t}]}return e}(n)}),[n]),C=(0,p.useMemo)((function(){return"function"==typeof v?v:Jh}),[v]),T=(0,p.useMemo)((function(){return"function"==typeof g?g:Jh}),[g]),j=(0,p.useRef)(null),A=(0,p.useRef)(null),M=Wh((0,p.useReducer)(Zh,Qh),2),I=M[0],N=M[1],R=I.isFocused,L=I.isFileDialogActive,F=(0,p.useRef)("undefined"!=typeof window&&window.isSecureContext&&y&&"showOpenFilePicker"in window),H=function(){!F.current&&L&&setTimeout((function(){A.current&&(A.current.files.length||(N({type:"closeDialog"}),T()))}),300)};(0,p.useEffect)((function(){return window.addEventListener("focus",H,!1),function(){window.removeEventListener("focus",H,!1)}}),[A,L,T,F]);var B=(0,p.useRef)([]),W=function(e){j.current&&j.current.contains(e.target)||(e.preventDefault(),B.current=[])};(0,p.useEffect)((function(){return w&&(document.addEventListener("dragover",Ah,!1),document.addEventListener("drop",W,!1)),function(){w&&(document.removeEventListener("dragover",Ah),document.removeEventListener("drop",W))}}),[j,w]),(0,p.useEffect)((function(){return!r&&b&&j.current&&j.current.focus(),function(){}}),[j,b,r]);var Y=(0,p.useCallback)((function(e){E?E(e):console.error(e)}),[E]),U=(0,p.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),B.current=[].concat(Bh(B.current),[e.target]),jh(e)&&Promise.resolve(o(e)).then((function(t){if(!Th(e)||S){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,s=e.validator;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=gh(Dh(e,n),1)[0],i=gh(_h(e,r,o),1)[0],a=s?s(e):null;return t&&i&&!a}))}({files:t,accept:D,minSize:a,maxSize:i,multiple:s,maxFiles:c,validator:P});N({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return Y(e)}))}),[o,u,Y,S,D,a,i,s,c,P]),z=(0,p.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=jh(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1}),[d,S]),V=(0,p.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=B.current.filter((function(e){return j.current&&j.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),B.current=t,t.length>0||(N({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),jh(e)&&l&&l(e))}),[j,l,S]),q=(0,p.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=Wh(Dh(e,D),2),o=t[0],s=t[1],c=Wh(_h(e,a,i),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:[Ph]})})),n.splice(0)),N({acceptedFiles:n,fileRejections:r,type:"setFiles"}),f&&f(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&h&&h(n,t)}),[N,s,D,a,i,c,f,h,m,P]),G=(0,p.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),B.current=[],jh(e)&&Promise.resolve(o(e)).then((function(t){Th(e)&&!S||q(t,e)})).catch((function(e){return Y(e)})),N({type:"reset"})}),[o,q,Y,S]),K=(0,p.useCallback)((function(){if(F.current){N({type:"openDialog"}),C();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)?Y(e):(F.current=!1,A.current?(A.current.value=null,A.current.click()):Y(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."))):(T(e),N({type:"closeDialog"}))}))}else A.current&&(N({type:"openDialog"}),C(),A.current.value=null,A.current.click())}),[N,C,T,y,q,Y,_,s]),$=(0,p.useCallback)((function(e){j.current&&j.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),K()))}),[j,K]),X=(0,p.useCallback)((function(){N({type:"focus"})}),[]),Q=(0,p.useCallback)((function(){N({type:"blur"})}),[]),Z=(0,p.useCallback)((function(){x||(!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))}),[x,K]),J=function(e){return r?null:e},ee=function(e){return O?null:J(e)},te=function(e){return k?null:J(e)},ne=function(e){S&&e.stopPropagation()},re=(0,p.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,i=e.onKeyDown,a=e.onFocus,s=e.onBlur,c=e.onClick,u=e.onDragEnter,l=e.onDragOver,d=e.onDragLeave,f=e.onDrop,p=Gh(e,Fh);return Vh(Vh(qh({onKeyDown:ee(Mh(i,$)),onFocus:ee(Mh(a,X)),onBlur:ee(Mh(s,Q)),onClick:J(Mh(c,Z)),onDragEnter:te(Mh(u,U)),onDragOver:te(Mh(l,z)),onDragLeave:te(Mh(d,V)),onDrop:te(Mh(f,G)),role:"string"==typeof o&&""!==o?o:"presentation"},n,j),r||O?{}:{tabIndex:0}),p)}}),[j,$,X,Q,Z,U,z,V,G,O,k,r]),oe=(0,p.useCallback)((function(e){e.stopPropagation()}),[]),ie=(0,p.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,i=Gh(e,Hh);return Vh(Vh({},qh({accept:D,multiple:s,type:"file",style:{display:"none"},onChange:J(Mh(r,G)),onClick:J(Mh(o,oe)),tabIndex:-1},n,A)),i)}}),[A,n,s,G,r]);return Vh(Vh({},I),{},{isFocused:R&&!r,getRootProps:re,getInputProps:ie,rootRef:j,inputRef:A,open:J(K)})}(Gh(e,Rh)),o=r.open,i=Gh(r,Lh);return(0,p.useImperativeHandle)(t,(function(){return{open:o}}),[o]),m().createElement(p.Fragment,null,n(Vh(Vh({},i),{},{open:o})))}));Kh.displayName="Dropzone";var $h={disabled:!1,getFilesFromEvent:function(e){return qp(this,void 0,void 0,(function(){return Gp(this,(function(t){return Jp(e)&&Jp(e.dataTransfer)?[2,nh(e.dataTransfer,e.type)]:function(e){return Jp(e)&&Jp(e.target)}(e)?[2,eh(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,th(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};Kh.defaultProps=$h,Kh.propTypes={children:Ce().func,accept:Ce().objectOf(Ce().arrayOf(Ce().string)),multiple:Ce().bool,preventDropOnDocument:Ce().bool,noClick:Ce().bool,noKeyboard:Ce().bool,noDrag:Ce().bool,noDragEventsBubbling:Ce().bool,minSize:Ce().number,maxSize:Ce().number,maxFiles:Ce().number,disabled:Ce().bool,getFilesFromEvent:Ce().func,onFileDialogCancel:Ce().func,onFileDialogOpen:Ce().func,useFsAccessApi:Ce().bool,autoFocus:Ce().bool,onDragEnter:Ce().func,onDragLeave:Ce().func,onDragOver:Ce().func,onDrop:Ce().func,onDropAccepted:Ce().func,onDropRejected:Ce().func,onError:Ce().func,validator:Ce().func};const Xh=Kh;var Qh={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Zh(e,t){switch(t.type){case"focus":return Vh(Vh({},e),{},{isFocused:!0});case"blur":return Vh(Vh({},e),{},{isFocused:!1});case"openDialog":return Vh(Vh({},Qh),{},{isFileDialogActive:!0});case"closeDialog":return Vh(Vh({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Vh(Vh({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Vh(Vh({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Vh({},Qh);default:return e}}function Jh(){}function em(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 tm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?em(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):em(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const nm=(0,f.injectIntl)((function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose,i=e.intl,a=function(e){return i.formatMessage({id:e})};return(0,Ke.jsxs)(Wp,{immutable:n,children:[(0,Ke.jsx)(Xh,{onDrop:function(e){var n=e.map((function(e){return Object.assign(e,{preview:URL.createObjectURL(e)})}));t(n[0])},multiple:!1,disabled:n,title:r||"drag and drop or click",children:function(e){var t=e.getRootProps,n=e.getInputProps;return(0,Ke.jsx)(Fp,{children:(0,Ke.jsxs)(Bp,tm(tm({},t()),{},{children:[(0,Ke.jsx)("input",tm({},n())),(0,Ke.jsx)(Dt,{icon:"arrow-to-top",label:a("client.component.upload.uploadFile"),iconOnly:!0})]}))})}}),o&&(0,Ke.jsx)(Dt,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:a("client.component.upload.browseDocs"),iconOnly:!0})]})}));var rm,om=Me.Ay.figure.withConfig({displayName:"StyledPreview"})(rm||(rm=je()(["\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"])),He.hs.space(-2.2),He.t7.color("border"),He.t7.radii("form"),(function(e){return e.maxDimensionX||"100%"}),(function(e){return e.maxDimensionY||"100%"}));const im=om;var am;const sm=function(e){var t=e.thumbnailUrl,n=e.alt,r=e.srcUrl,o=(e.fileName,e.caption),i=e.maxDimensionX,a=e.maxDimensionY,s=t?(0,Ke.jsx)("img",{alt:n,title:n,src:t}):(0,Ke.jsx)("div",{title:n,children:am||(am=(0,Ke.jsx)(Ge.A,{icon:"file-alt"}))});return(0,Ke.jsxs)(im,{maxDimensionX:i,maxDimensionY:a,children:[(0,Ke.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:r,children:s}),o&&(0,Ke.jsx)(lr.Ay.Figcaption,{children:o})]})};var cm=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 um=function(e){var t=e.file,n=e.text;return(0,Ke.jsxs)(Yp,{children:[(0,Ke.jsx)(sm,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,Ke.jsxs)(zp,{children:[(0,Ke.jsx)(Ze,{position:He.xX.position.PREPEND}),(0,Ke.jsxs)(Up,{children:[n||"uploading"," (",cm(t.size),")"]})]})]})};var lm=function(e,t,n){return"".concat(e).concat(e&&e.indexOf("?")>=0?"&":"?").concat(t,"=").concat(n)};const dm={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 lm(e,"download",!0)},addParameterToURL:lm};function fm(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 pm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fm(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const hm=function(e){var t,n=e.value,r=e.downloadTitle,o=e.immutable,i=e.onUpload,a=e.deleteTitle,s=null===(t=n.binaryLink)||void 0===t?void 0:t.startsWith("blob:");return(0,Ke.jsxs)(Vp,{className:"StyledView",children:[(0,Ke.jsx)(sm,pm(pm({alt:n.fileName},s&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,Ke.jsxs)(Hp,{children:[!o&&(0,Ke.jsx)(Dt,{icon:"trash",onClick:function(){return i(null)},tabIndex:-1,title:a||"delete"}),(0,Ke.jsx)(Dt,{children:(0,Ke.jsx)(ao.Ay,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:dm.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function mm(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 gm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mm(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const vm=function(e){var t=e.value,n=e.textResources,r=void 0===n?{}:n,o=e.onUpload,i=e.onChoose,a=(0,p.useRef)(t),s=(0,p.useState)({isUploading:!1,previewFile:null}),c=et()(s,2),u=c[0],l=c[1];return(0,p.useEffect)((function(){or()(a.current,t)||l({isUploading:!1,previewFile:null}),a.current=t}),[t]),null!=t&&t.binaryLink?(0,Ke.jsx)(hm,gm(gm({},e),{},{deleteTitle:r.delete,downloadTitle:r.download})):u.isUploading?(0,Ke.jsx)(um,gm({file:u.previewFile,text:r.uploading},e)):(0,Ke.jsx)(nm,gm(gm({},e),{},{onDrop:function(e){!function(e){l({isUploading:!0,previewFile:e})}(e),o(e)},onChoose:i}))};var ym,bm;Me.Ay.input.withConfig({displayName:"StyledDurationEdit"})(ym||(ym=je()(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),uo,(function(e){return e.width})),Me.Ay.label.withConfig({displayName:"StyledDurationEditFocusable"})(bm||(bm=je()(["\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"])),He.hs.space(1),(function(e){return e.immutable?He.t7.color("textDisabled"):He.t7.color("text")}),(function(e){return e.immutable&&"text"}));var wm;const xm=Me.Ay.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(wm||(wm=je()(["\n &&&& {\n ","\n }\n"])),uo);ut.Debouncer((function(e){return(0,Ke.jsxs)(co,{immutable:e.immutable,children:[(0,Ke.jsx)(xm,{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,Ke.jsx)(fo,{children:(0,Ke.jsx)(ao.Ay,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));c(67197);var Om=c(44383),km=c.n(Om);var Sm;function Em(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 Pm(){}function Dm(e){return!!(e||"").match(/\d/)}function _m(e){return null==e}function Cm(e){return _m(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function Tm(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function jm(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 Am(e,t,n){for(var r="",o=n?"0":"",i=0;i<=t-1;i++)r+=e[i]||o;return r}function Mm(e,t){return Array(t+1).join(e)}function Im(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],i=r[1];if(!(i=Number(i)))return n+o;var a=1+i,s=(o=o.replace(".","")).length;return a<0?o="0."+Mm("0",Math.abs(a))+o:a>=s?o+=Mm("0",a-s):o=(o.substring(0,a)||"0")+"."+o.substring(a),n+o}function Nm(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=jm(e),i=o.beforeDecimal,a=o.afterDecimal,s=o.hasNegation,c=parseFloat("0."+(a||"0")),u=(a.length<=t?"0."+a:c.toFixed(t)).split("."),l=i;return i&&Number(u[0])&&(l=i.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?".":"")+Am(u[1]||"",t,n)}function Rm(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"}(Sm||(Sm={}));var Lm,Fm,Hm,Bm=(Lm=function(e,t){for(var n=0,r=0,o=e.length,i=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[i-1-r]&&i-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:i-r}}},Hm=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Fm&&e.length===Fm.length&&e.every((function(e,t){return e===Fm[t]}))?Hm:(Fm=e,Hm=Lm.apply(void 0,e))}),Wm=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function Ym(e){return Math.max(e.selectionStart,e.selectionEnd)}function Um(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function zm(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function Vm(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(Dm(e[n])||Dm(e[n-1]));return t}function Gm(e,t,n,r,o,i){void 0===i&&(i=Pm);var a=function(e){var t=(0,p.useRef)(e);t.current=e;var n=(0,p.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,i;return Cm(e)?(i="",n=""):"number"==typeof e||t?(i="number"==typeof e?Im(e):e,n=r(i)):(i=o(e,void 0),n=r(i)),{formattedValue:n,numAsString:i}})),s=(0,p.useState)((function(){return a(_m(e)?t:e,n)})),c=s[0],u=s[1],l=e,d=n;_m(e)&&(l=c.numAsString,d=!0);var f=a(l,d);return(0,p.useMemo)((function(){u(f)}),[f.formattedValue]),[c,function(e,t){e.formattedValue!==c.formattedValue&&u({formattedValue:e.formattedValue,numAsString:e.value}),i(e,t)}]}function Km(e){return e.replace(/[^0-9]/g,"")}function $m(e){return e}function Xm(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,i=e.getInputRef,a=e.format;void 0===a&&(a=$m);var s=e.removeFormatting;void 0===s&&(s=Km);var c=e.defaultValue,u=e.valueIsNumericString,l=e.onValueChange,d=e.isAllowed,f=e.onChange;void 0===f&&(f=Pm);var h=e.onKeyDown;void 0===h&&(h=Pm);var g=e.onMouseUp;void 0===g&&(g=Pm);var v=e.onFocus;void 0===v&&(v=Pm);var y=e.onBlur;void 0===y&&(y=Pm);var b=e.value,w=e.getCaretBoundary;void 0===w&&(w=qm);var x=e.isValidInputCharacter;void 0===x&&(x=Dm);var O=e.isCharacterSame,k=Em(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),S=Gm(b,c,Boolean(u),a,s,l),E=S[0],P=E.formattedValue,D=E.numAsString,_=S[1],C=(0,p.useRef)(),T=(0,p.useRef)({formattedValue:P,numAsString:D}),j=function(e,t){T.current={formattedValue:e.formattedValue,numAsString:e.value},_(e,t)},A=(0,p.useState)(!1),M=A[0],I=A[1],N=(0,p.useRef)(null),R=(0,p.useRef)({setCaretTimeout:null,focusTimeout:null});(0,p.useEffect)((function(){return I(!0),function(){clearTimeout(R.current.setCaretTimeout),clearTimeout(R.current.focusTimeout)}}),[]);var L=a,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||(Rm(e,t),R.current.setCaretTimeout=setTimeout((function(){e.value===n&&e.selectionStart!==t&&Rm(e,t)}),0))},B=function(e,t,n){return Vm(e,t,w(e),n)},W=function(e,t,n){var r=w(t),o=function(e,t,n,r,o,i,a){void 0===a&&(a=zm);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(a({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]||!i(n[g]));)g++;var v=g===u||-1===f[g]?l:f[g];for(g=r-1;g>0&&-1===f[g];)g--;var y=-1===g||-1===f[g]?0:f[g]+1;return y>v?v:r-y<v-r?y:v}(t,P,e,n,r,x,O);return o=Vm(t,o,r)};(0,p.useEffect)((function(){var e=T.current,t=e.formattedValue,n=e.numAsString;P===t&&D===n||j(F(P,D),{event:void 0,source:Sm.props})}),[P,D]);var Y=N.current?Ym(N.current):void 0;("undefined"!=typeof window?p.useLayoutEffect:p.useEffect)((function(){var e=N.current;if(P!==T.current.formattedValue&&e){var t=W(T.current.formattedValue,P,Y);e.value=P,H(e,t,P)}}),[P]);var U=function(e,t,n){var r=t.target,o=C.current?Wm(C.current,r.selectionEnd):Bm(P,e),i=Object.assign(Object.assign({},o),{lastValue:P}),a=s(e,i),c=L(a);if(a=s(c,void 0),d&&!d(F(c,a))){var u=t.target,l=Ym(u),f=W(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,i=e.event,a=e.numAsString;if(r){var s=e.inputValue||r.value,c=Ym(r);r.value=t,void 0!==(n=W(s,t,c))&&H(r,n,t)}t!==P&&j(F(t,a),{event:i,source:o})}({formattedValue:c,numAsString:a,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;C.current={selectionStart:n,selectionEnd:r+t}},V=!M||"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;U(t,e,Sm.event)&&f(e),C.current=void 0},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,i=n.selectionEnd,a=n.value;void 0===a&&(a=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,a.length):"Delete"===r&&(t=o);var s=0;"Delete"===r&&o===i&&(s=1);var c="ArrowLeft"===r||"ArrowRight"===r;if(void 0===t||o!==i&&!c)return h(e),void z(n,s);var u=t;c?(u=B(a,t,"ArrowLeft"===r?"left":"right"))!==t&&e.preventDefault():"Delete"!==r||x(a[t])?"Backspace"!==r||x(a[t])||(u=B(a,t,"left")):u=B(a,t,"right");u!==t&&H(n,u,a),h(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=B(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,i=t.value;void 0===i&&(i="");var a=B(i,r);a===r||0===r&&o===i.length||H(t,a,i),v(Object.assign(Object.assign({},e),{currentTarget:n}))}),0)},onBlur:function(e){N.current=null,clearTimeout(R.current.focusTimeout),clearTimeout(R.current.setCaretTimeout),y(e)}});if("text"===n)return o?m().createElement(m().Fragment,null,o(P,k)||null):m().createElement("span",Object.assign({},k,{ref:i}),P);if(r){var G=r;return m().createElement(G,Object.assign({},q,{ref:i}))}return m().createElement("input",Object.assign({},q,{ref:i}))}function Qm(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var i=t.suffix;void 0===i&&(i="");var a=t.allowNegative,s=t.thousandsGroupStyle;if(void 0===s&&(s="thousand"),""===e||"-"===e)return e;var c=Zm(t),u=c.thousandSeparator,l=c.decimalSeparator,d=0!==n&&-1!==e.indexOf(".")||n&&r,f=jm(e,a),p=f.beforeDecimal,h=f.afterDecimal,m=f.addNegation;return void 0!==n&&(h=Am(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),i&&(h+=i),m&&(p="-"+p),e=p+(d&&l||"")+h}function Zm(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 Jm(e,t,n){var r;void 0===t&&(t=Um(e));var o=n.allowNegative,i=n.prefix;void 0===i&&(i="");var a=n.suffix;void 0===a&&(a="");var s=n.decimalScale,c=t.from,u=t.to,l=u.start,d=u.end,f=Zm(n),p=f.allowedDecimalSeparators,h=f.decimalSeparator,m=e[d]===h;if(Dm(e)&&(e===i||e===a)&&""===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 v=function(e,t,n){var r=!1,o=!1;i.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):a.startsWith("-")&&e.length===a.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}},y=v(e,l,d),b=y.hasNegation;e=(r=y).value,l=r.start,d=r.end;var w=v(t.lastValue,c.start,c.end),x=w.start,O=w.end,k=w.value,S=e.substring(l,d);!(e.length&&k.length&&(x>k.length-a.length||O<i.length))||S&&a.startsWith(S)||(e=k);var E=0;e.startsWith(i)?E+=i.length:l<i.length&&(E=l),d-=E;var P=(e=e.substring(E)).length,D=e.length-a.length;e.endsWith(a)?P=D:(d>D||d>e.length-a.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),i=r.test(e);return e=e.replace(/-/g,""),o&&!i&&t&&(e="-"+e),e}(b?"-"+e:e,o),e=(e.match(function(e,t){return new RegExp("(^-)|[0-9]|"+Tm(e),t?"g":void 0)}(h,!0))||[]).join("");var _=e.indexOf(h);e=e.replace(new RegExp(Tm(h),"g"),(function(e,t){return t===_?".":""}));var C=jm(e,o),T=C.beforeDecimal,j=C.afterDecimal,A=C.addNegation;return u.end-u.start<c.end-c.start&&""===T&&m&&!parseFloat(j)&&(e=A?"-":""),e}function eg(e){e=function(e){var t=Zm(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var i=e.allowNegative;if(void 0===i&&(i=!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("-")&&i&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+i+"\n "),i=!1),Object.assign(Object.assign({},e),{allowNegative:i})}(e);e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=Pm);var i=e.onBlur;void 0===i&&(i=Pm);var a=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=Em(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=Zm(e),g=m.decimalSeparator,v=m.allowedDecimalSeparators,y=function(t){return Qm(t,e)},b=function(t,n){return Jm(t,n,e)},w=_m(d)?l:d,x=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);_m(d)?_m(l)||(x=x||"number"==typeof l):x=x||"number"==typeof d;var O=function(e){return Cm(e)?e:("number"==typeof e&&(e=Im(e)),x&&"number"==typeof s?Nm(e,s,Boolean(c)):e)},k=Gm(O(d),O(l),Boolean(x),y,b,p),S=k[0],E=S.numAsString,P=S.formattedValue,D=k[1];return Object.assign(Object.assign({},h),{value:P,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===g||Dm(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,o=e.currentValueIndex,i=e.formattedValueIndex,a=t[o],s=r[i],c=Bm(n,t).to;return!!(o>=c.start&&o<c.end&&v&&v.includes(a)&&s===g)||a===s},onValueChange:D,format:y,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})),i="-"===e[0];o.fill(!1,0,n.length+(i?1:0));var a=e.length;return o.fill(!1,a-r.length+1,a+1),o}(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,i=t.selectionStart,l=t.selectionEnd,d=t.value;if(void 0===d&&(d=""),("Backspace"===r||"Delete"===r)&&l<u.length)e.preventDefault();else if(i===l){"Backspace"===r&&"-"===d[0]&&i===u.length+1&&n&&Rm(t,1),s&&c&&("Backspace"===r&&d[i-1]===g?(Rm(t,i-1),e.preventDefault()):"Delete"===r&&d[i]===g&&e.preventDefault()),(null==v?void 0:v.includes(r))&&d[i]===g&&Rm(t,i+1);var f=!0===a?",":a;"Backspace"===r&&d[i-1]===f&&Rm(t,i-1),"Delete"===r&&d[i]===f&&Rm(t,i+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=Nm(n,s,c)),n!==E){var o=Qm(n,e);D({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:Sm.event})}i(t)}})}function tg(e){var t=eg(e);return m().createElement(Xm,Object.assign({},t))}var ng,rg=["immutable"];function og(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 ig=(0,Me.Ay)((function(e){e.immutable;var t=qe()(e,rg);return(0,Ke.jsx)(tg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?og(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):og(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(ng||(ng=je()(["\n &&&& {\n ","\n }\n"])),uo);const ag=ig;function sg(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 cg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sg(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ug=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},lg=function(e){return null!=e&&!isNaN(parseFloat(e))},dg=function(e,t,n){return!lg(n)||!(lg(t)&&n>t)&&!(lg(e)&&n<e)},fg=function(e,t){return function(n){var r=n.floatValue;return ug(r)<ug(e)||dg(e,t,r)}};(0,f.injectIntl)(ut.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,i=e.options||{},a=i.prePointDigits,s=i.postPointDigits,c=i.minValue,u=i.maxValue,l=i.allowNegative,d=i.fixedDecimalScale,f=i.suffix,p=i.prefix,h=i.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}(a,s,u),g=cg(cg({isAllowed:fg(c,m),allowNegative:!!l},isNaN(s)?{}:{decimalScale:s}),{},{fixedDecimalScale:!!d}),v=void 0===e.value||null===e.value?"":e.value;return(0,Ke.jsx)(co,{immutable:e.immutable,children:(0,Ke.jsx)(ag,cg(cg({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&dg(c,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:v,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&&!dg(c,m,r)&&(t.target.value=null)}}))})}),800));ut.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.options,o=e.immutable,i=e.name,a=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,Ke.jsx)(co,{immutable:o,children:(0,Ke.jsx)(ag,{isAllowed:fg(u,l),allowNegative:!0,decimalScale:0,disabled:o,id:a,name:i,onValueChange:function(e){var t=e.value,r=e.floatValue,o=f?t:r;void 0===o&&(o=null),dg(u,l,r)&&n(o)},value:h,allowLeadingZeros:f,suffix:p,format:d,placeholder:s,immutable:o})})}),800);var pg,hg,mg;Me.Ay.div.withConfig({displayName:"StyledWrapper"})(pg||(pg=je()(["\n display: flex;\n justify-content: stretch;\n"]))),Me.Ay.div.withConfig({displayName:"StyledLocationWrapper"})(hg||(hg=je()(["\n flex-grow: 1;\n"]))),Me.Ay.div.withConfig({displayName:"StyledDistanceWrapper"})(mg||(mg=je()(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),He.t7.color("border"),He.hs.space(-.8),He.hs.space(.5));var gg;Me.Ay.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(gg||(gg=je()(["\n &&&& {\n ","\n }\n"])),uo);ut.Debouncer((function(e){return(0,Ke.jsx)(co,{immutable:e.immutable,children:(0,Ke.jsx)(xm,{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 vg,yg,bg,wg,xg,Og=c(60115),kg=(Me.Ay.div.withConfig({displayName:"StyledTermsEdit"})(vg||(vg=je()(["\n margin: "," 0;\n display: flex;\n"])),He.hs.space(-1.4)),Me.Ay.input.withConfig({displayName:"StyledCheckbox"})(yg||(yg=je()(["\n margin-right: ",";\n"])),He.hs.space(-1.5)),(0,Me.AH)(bg||(bg=je()(["\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"])),He.t7.color("secondary"),He.t7.color("secondaryLight"),He.t7.color("secondary")));Me.Ay.a.withConfig({displayName:"StyledTermsLink"})(wg||(wg=je()(["\n ","\n"])),kg),(0,Me.Ay)(qf).withConfig({displayName:"StyledHtmlFormatter"})(xg||(xg=je()(["\n &&& {\n p {\n margin: 0;\n }\n\n a {\n ","\n }\n }\n"])),kg);var Sg,Eg,Pg,Dg=(0,Me.AH)(Sg||(Sg=je()(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),uo),_g=Me.Ay.div.withConfig({displayName:"StyledSizeWrapper"})(Eg||(Eg=je()(["\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"])),Dg),Cg=Me.Ay.textarea.withConfig({displayName:"StyledTextarea"})(Pg||(Pg=je()(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: ",";\n position: relative;\n }\n"])),Dg,(function(e){var t=e.disabled,n=e.isSafari;return!t||n?"4.5em":"0"}));function Tg(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?Tg(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ag=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,i=e.disabled,a=e.immutable,s=(0,p.useState)(t),c=et()(s,2),u=c[0],l=c[1],d=!Ac.isSafari(),f=Ac.isSafari(),h=(0,p.useCallback)(vo()(l,500,{trailing:!0}),[]);return(0,p.useEffect)((function(){d&&h(t)}),[t,d,h]),(0,Ke.jsx)(_g,jg(jg({"data-testid":"replicated-test"},d?{"data-replicated-value":u}:{}),{},{children:(0,Ke.jsx)(Cg,{value:t||"",name:r,id:o,onChange:n,disabled:i,immutable:a,rows:"1",isSafari:f})}))};ut.Debouncer((function(e){return(0,Ke.jsx)(co,{immutable:e.immutable,"data-custom-arrow-navigation":"text",children:(0,Ke.jsx)(Ag,{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 Mg;Me.Ay.input.withConfig({displayName:"StyledTimeEdit"})(Mg||(Mg=je()(["\n &&&& {\n ","\n }\n"])),uo);var Ig;const Ng=Me.Ay.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(Ig||(Ig=je()(["\n &&&& {\n ","\n }\n"])),uo);ut.Debouncer((function(e){return(0,Ke.jsxs)(co,{immutable:e.immutable,children:[(0,Ke.jsx)(Ng,{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,Ke.jsx)(fo,{children:(0,Ke.jsx)(ao.Ay,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));const Rg=(0,Me.SL)((function(e){return(0,Ke.jsx)(Ge.A,{style:{fontSize:"".concat(e.theme.fontSize.base,"rem")},icon:e.value?"check":"times"})}));const Lg=function(e){var t=(0,f.useIntl)();return(0,Ke.jsx)(lr.Ay.Time,{dateTime:e.value,title:t.formatDate(e.value),children:(0,Ke.jsx)(f.FormattedDate,{value:e.value,year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC",id:e.id})})};var Fg;const Hg=(0,f.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),Fg||(Fg=(0,Ke.jsx)(lr.Ay.Span,{}));var o=(0,$u.GPZ)(r,"HH:mm");return(0,Ke.jsxs)(lr.Ay.Time,{dateTime:r.toISOString(),title:"".concat(n.formatDate(r),", ").concat(o),children:[(0,Ke.jsx)(f.FormattedDate,{value:r,year:"numeric",month:"2-digit",day:"2-digit"}),", ",o]})}));var Bg;function Wg(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 Yg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wg(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ug=function(e){var t=e.options||{},n=(0,Ke.jsxs)(Ke.Fragment,{children:[t.title&&(0,Ke.jsx)(lr.Ay.H5,{children:t.title}),(0,Ke.jsx)(qf,Yg({},e))]});return"text"===t.mode?n:(0,Ke.jsx)(Pf,{content:n,isPlainHtml:!0,children:Bg||(Bg=(0,Ke.jsx)(yf,{children:(0,Ke.jsx)(Ge.A,{icon:"question-circle"})}))})};const zg=function(e){var t=e.value,n=e.options||{},r=n.tooltips,o=n.loadTooltip,i=ho()(r,t.resourceKey,null);return(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(Pf,{content:i?(0,Ke.jsx)("div",{dangerouslySetInnerHTML:{__html:Jn.sanitizeHtml(i)}}):null,children:(0,Ke.jsx)("span",{onMouseOver:function(){return o&&!i&&o(t.resourceKey)},children:(0,Ke.jsx)(ao.Ay,{alt:t.alt||t.fileName,icon:"eye",look:"raised",target:"_blank",href:t.binaryLink,onClick:function(e){e.stopPropagation()}})})}),(0,Ke.jsx)(ao.Ay,{alt:t.alt||t.fileName,icon:"arrow-to-bottom",look:"raised",target:"_blank",href:dm.getDownloadUrl(t.binaryLink),onClick:function(e){e.stopPropagation()}})]})};const Vg=function(e){return(0,Ke.jsx)(vm,{onUpload:function(){},immutable:!0,textResources:{download:e.options.downloadText},value:e.value?e.value:null})};const qg=function(e){var t=e.value,n=parseInt(t),r=Xu.A.formatDuration(n);return(0,Ke.jsx)(lr.Ay.Time,{dateTime:r,title:r,children:r})};const Gg=function(e){return(0,Ke.jsx)(ao.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 Kg=function(e){return(0,Ke.jsx)(lr.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};function $g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$g(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qg=function(){return"; "};const Zg=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.useTitle,i=n||{},a=i.navigationStrategy,s=i.linkProps,c=(null==t?void 0:t.length)>0?t.map((function(e){return null!=a&&a.DetailLink?(0,Ke.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,Ke.jsx)(a.DetailLink,Xg(Xg({},s),{},{entityKey:e.key,children:e.display}))}):e.display})).reduce((function(e,t,n){return[e,(0,Ke.jsx)(Qg,{},"sep".concat(n)),t]})):null;return(0,Ke.jsx)(lr.Ay.Span,{breakWords:r,useTitle:o,children:c})};const Jg=function(e){return(0,Ke.jsx)(lr.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,Ke.jsx)(f.FormattedNumber,{value:e.value,style:"decimal",minimumFractionDigits:e.options&&e.options.postPointDigits||2})})};const ev=function(e){var t;return(0,Ke.jsx)(lr.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,Ke.jsx)(f.FormattedNumber,{value:e.value,style:"percent",minimumFractionDigits:null==e||null===(t=e.options)||void 0===t?void 0:t.postPointDigits})})};function tv(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 nv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tv(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rv=(0,p.lazy)((function(){return Promise.all([c.e(222),c.e(672)]).then(c.bind(c,74302))}));const ov=function(e){return(0,Ke.jsx)(p.Suspense,{fallback:"",children:(0,Ke.jsx)(rv,nv({},e))})};function iv(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?iv(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const sv=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.id,i=n||{},a=i.tooltips,s=i.loadTooltip,c=i.navigationStrategy,u=i.linkProps,l=ho()(a,t.key,null);t=ur.getOrFirst(t);var d=(0,Ke.jsx)(lr.Ay.Span,{breakWords:r,useTitle:!l,id:o,children:t.display});return(null!=c&&c.DetailLink?(0,Ke.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,Ke.jsx)(c.DetailLink,av(av({},u),{},{entityKey:t.key,children:(0,Ke.jsx)(Pf,{content:l?(0,Ke.jsx)("div",{dangerouslySetInnerHTML:{__html:Jn.sanitizeHtml(l)}}):null,children:(0,Ke.jsx)("span",{onMouseOver:function(){return s&&!l&&s(t.key)},id:o,children:d})})}))}):null)||d};const cv=function(e){return(0,Ke.jsx)(lr.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,id:e.id,children:e.value.toString()})};const uv=function(e){return e.breakWords?(0,Ke.jsx)(lr.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,Ke.jsx)("br",{},t)]:e})))}):(0,Ke.jsx)(lr.Ay.Span,{breakWords:!1,useTitle:e.useTitle,id:e.id,children:e.value.replace("/\n/g"," ")});var t};var lv=function(e,t){return parseInt(e.split(":")[t])||0};const dv=(0,f.injectIntl)((function(e){var t=e.value,n=(e.intl,lv(t,0)),r=lv(t,1),o=lv(t,2),i=lv(t,3),a=new Date(2e3,1,1,n,r,o,i),s=(0,$u.GPZ)(a,"HH:mm:ss.SSS"),c=(0,$u.GPZ)(a,"HH:mm");return(0,Ke.jsx)(lr.Ay.Time,{dateTime:s,title:c,children:c})}));const fv=function(e){var t=e.value,n=e.breakWords,r=e.useTitle;return(0,Ke.jsx)(ao.Ay,{onClick:function(e){e.stopPropagation()},href:t,target:"_blank",rel:"noopener noreferrer",label:t,breakWords:n,useTitle:r,neutral:!1})};var pv,hv={boolean:Rg,date:Lg,datetime:Hg,document:Vg,"document-compact":zg,duration:qg,email:Gg,html:qf,integer:Kg,"multi-remote":Zg,"multi-select":Zg,number:Jg,percent:ev,phone:ov,remote:sv,"single-select":sv,string:cv,text:uv,time:dv,url:fv,description:Ug};const mv=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.breakWords,i=void 0===o||o,a=e.useTitle,s=void 0===a||a,c=e.id;if(hv[t]){var u=hv[t];return(0,Ke.jsx)(u,{value:n,options:r,breakWords:i,useTitle:s,id:c})}return console.log("No FormattedValue mapper defined for component type",t,n),pv||(pv=(0,Ke.jsx)("div",{}))};var gv;const vv=function(e){var t=e.type,n=e.value,r=e.options,o=e.breakWords,i=e.useTitle,a=e.id;return null==n||""===n?gv||(gv=(0,Ke.jsx)("span",{})):(0,Ke.jsx)(mv,{componentType:t,value:n,options:r,breakWords:o,useTitle:i,id:a})},yv=vv;var bv;Me.Ay.div.withConfig({displayName:"StyledLayoutBox"})(bv||(bv=je()(["\n height: fit-content;\n margin-bottom: ",";\n"])),He.hs.space(.25));var wv;Me.Ay.div.withConfig({displayName:"StyledLayoutContainer"})(wv||(wv=je()(["\n display: grid;\n padding-right: ",";\n ",";\n ",";\n"])),He.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(He.hs.space(.25)({theme:n}))}),(function(e){return e.occupiesRemainingHeight&&"\n flex: 1;\n "}));var xv,Ov,kv,Sv,Ev=c(5016),Pv=(0,Me.i7)(xv||(xv=je()(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),Dv=(0,Me.AH)(Ov||(Ov=je()(["\n animation: "," 400ms ease-in-out both;\n"])),Pv),_v=Me.Ay.div.withConfig({displayName:"StyledLoadingIconAndTest"})(kv||(kv=je()(["\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"])),He.hs.space(-1),Dv,Ev.oY,He.hs.space(-1));const Cv=Me.Ay.div.withConfig({displayName:"StyledLoadMask"})(Sv||(Sv=je()(["\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 Tv;const jv=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,i=e.className,a=(0,p.useState)(!1),s=et()(a,2),c=s[0],u=s[1],l=(0,p.useState)(!0),d=et()(l,2),f=d[0],h=d[1];(0,p.useEffect)((function(){return t&&Promise.all(t).then((function(){var e;e=!0,f&&u(e)})),function(){h(!1)}}),[]);var m=n&&Array.isArray(n)?!n.some((function(e){return!e})):!!t&&c;return(0,Ke.jsx)(Cv,{className:i,children:m?r:(0,Ke.jsxs)(_v,{children:[Tv||(Tv=(0,Ke.jsx)(Ze,{size:"30px"},"loading-spinner")),o&&(0,Ke.jsx)(lr.Ay.Span,{children:o},"loadingText")]})})};var Av,Mv=Me.Ay.div.withConfig({displayName:"StyledPanel"})(Av||(Av=je()(["\n && {\n background-color: ",";\n border: 1px "," ",";\n border-radius: ",";\n }\n"])),He.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),He.t7.color("borderLight"),He.t7.radii("form"));const Iv=Mv;var Nv=["children","isFramed","controlledIsOpen","isOpenInitial","isToggleable","onToggle"];const Rv=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.controlledIsOpen,i=e.isOpenInitial,a=void 0===i||i,s=e.isToggleable,c=void 0===s||s,u=e.onToggle,l=qe()(e,Nv),d=(0,p.useState)(a),f=et()(d,2),h=f[0],g=f[1],v="boolean"==typeof o,y=function(){c&&(v?"function"==typeof u&&u(!o):g(!h))};return(0,Ke.jsx)(Iv,{isFramed:r,"data-cy":l["data-cy"],children:m().Children.map(t,(function(e){return m().cloneElement(e,{isFramed:r,isOpen:v?o:h,isToggleable:c,toggleOpenState:y})}))})};var Lv,Fv=Me.Ay.div.withConfig({displayName:"StyledPanelBody"})(Lv||(Lv=je()(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?He.hs.space(-.375):0}),(function(e){return e.isOpen?"block":"none"}));const Hv=Fv;var Bv=["children","isFramed","isOpen"];const Wv=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=qe()(e,Bv);return(0,Ke.jsx)(Hv,{isFramed:n,isOpen:r,"data-cy":o["data-cy"],children:(0,Ke.jsx)("div",{children:t})})};const Yv=function(e){var t=e.initialOpenPanelIndex,n=e.children,r=(0,p.useState)(t),o=et()(r,2),i=o[0],a=o[1];return(0,Ke.jsx)(Ke.Fragment,{children:m().Children.map(n,(function(e,t){return m().cloneElement(e,{controlledIsOpen:i===t,onToggle:function(e){return function(e,t){a(!0===t?e:void 0)}(t,e)}})}))})};var Uv;const zv=Me.Ay.div.withConfig({displayName:"StyledPanelGroup"})(Uv||(Uv=je()(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),He.hs.space(0),Iv,He.hs.space(-1));function Vv(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 qv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vv(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Gv=function(e){return(0,Ke.jsx)(zv,{children:(0,Ke.jsx)(Yv,qv({},e))})};var Kv,$v,Xv,Qv,Zv,Jv,ey="1px",ty=Me.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Kv||(Kv=je()(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),He.hs.font(1),He.t7.color("text"),!Ac.isTouchDevice&&(0,Me.AH)($v||($v=je()(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),He.t7.color("secondaryLight"))),ny=Me.Ay.div.withConfig({displayName:"StyledPanelHeader"})(Xv||(Xv=je()(["\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"])),He.t7.color("backgroundPanelHeaderFooter"),He.t7.radii("form"),ey,He.t7.radii("form"),ey,He.t7.radii("form"),ey,He.t7.radii("form"),ey,(function(e){return e.isOpen&&(0,Me.AH)(Qv||(Qv=je()(["\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n "])))}),(function(e){return e.isFramed?(0,Me.AH)(Zv||(Zv=je()(["\n "," ","\n "])),He.hs.space(-1.7),He.hs.space(-.375)):0}),!Ac.isTouchDevice&&(0,Me.AH)(Jv||(Jv=je()(["\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n "])),ty),(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(ey,";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-width: ").concat(ey,";\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(ey,";\n }\n ")}(e)}));const ry=ny;var oy=["children","isFramed","isOpen","isToggleable","showToggler","toggleOpenState","options"];const iy=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,i=e.showToggler,a=void 0===i||i,s=e.toggleOpenState,c=e.options,u=void 0===c?{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}:c,l=qe()(e,oy);return(0,Ke.jsxs)(ry,{isFramed:n,isOpen:r,onClick:s,"data-cy":l["data-cy"],children:[(0,Ke.jsx)("div",{children:m().Children.map(t,(function(e){return m().cloneElement(e)}))}),o&&a&&(0,Ke.jsx)(ty,{children:(0,Ke.jsx)(Ge.A,{icon:r?"chevron-up":"chevron-down",onClick:s,title:r?u.collapseButtonText:u.unfoldButtonText})})]})},ay={Body:Wv,Group:Gv,Header:iy,Wrapper:Rv};var sy,cy=Me.Ay.div.withConfig({displayName:"StyledPanel"})(sy||(sy=je()(["\n && {\n background-color: ",";\n border: 1.5px "," ",";\n border-radius: ",";\n }\n"])),He.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),He.t7.color("borderLight"),He.t7.radii("form"));const uy=cy;const ly=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.isOpenInitial,i=void 0===o||o,a=(0,p.useState)(i),s=et()(a,2),c=s[0],u=s[1];return(0,Ke.jsx)(uy,{isFramed:r,children:m().Children.map(t,(function(e){return m().cloneElement(e,{isOpen:c,isToggleable:!i,isFramed:r,toggleOpenState:function(){return u(!c)}})}))})};var dy,fy,py=Me.Ay.div.withConfig({displayName:"StyledPanelBody"})(dy||(dy=je()(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?(0,Me.AH)(fy||(fy=je()(["\n "," "," "," ","\n "])),He.hs.space(-1),He.hs.space(.2),He.hs.space(.2),He.hs.space(.2)):0}),(function(e){return e.isOpen?"block":"none"}));const hy=py;const my=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,Ke.jsx)(hy,{isFramed:n,isOpen:r,children:(0,Ke.jsx)("div",{children:t})})};var gy;const vy=Me.Ay.div.withConfig({displayName:"StyledPanelGroup"})(gy||(gy=je()(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),He.hs.space(0),uy,He.hs.space(-1));function yy(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 by(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yy(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const wy=function(e){return(0,Ke.jsx)(vy,{children:(0,Ke.jsx)(Yv,by({},e))})};var xy,Oy,ky,Sy="1px",Ey=Me.Ay.div.withConfig({displayName:"StyledPanelHeader"})(xy||(xy=je()(["\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"])),He.t7.color("paper"),He.t7.radii("form"),Sy,He.t7.radii("form"),Sy,(function(e){return e.isFramed?He.hs.space(.2):0}),He.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(Sy,";\n }\n ")}(e)})),Py=Me.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Oy||(Oy=je()(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),He.hs.font(1),He.t7.color("text"),!Ac.isTouchDevice&&(0,Me.AH)(ky||(ky=je()(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),He.t7.color("secondaryLight")));const Dy=Ey;const _y=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,i=e.showToggler,a=void 0===i||i,s=e.toggleOpenState,c=e.options,u=void 0===c?{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}:c;return(0,Ke.jsxs)(Dy,{isFramed:n,isOpen:r,onClick:o?s:function(){},children:[(0,Ke.jsx)("div",{children:m().Children.map(t,(function(e){return m().cloneElement(e)}))}),o&&a&&(0,Ke.jsx)(Py,{children:(0,Ke.jsx)(Ge.A,{icon:r?"chevron-up":"chevron-down",onClick:s,title:r?u.collapseButtonText:u.unfoldButtonText})})]})},Cy={Body:my,Group:wy,Header:_y,Wrapper:ly};var Ty={Body:ze()(ze()({},Og.A.EmbedType.admin,ay.Body),Og.A.EmbedType.widget,Cy.Body),Group:ze()(ze()({},Og.A.EmbedType.admin,ay.Group),Og.A.EmbedType.widget,Cy.Group),Header:ze()(ze()({},Og.A.EmbedType.admin,ay.Header),Og.A.EmbedType.widget,Cy.Header),Wrapper:ze()(ze()({},Og.A.EmbedType.admin,ay.Wrapper),Og.A.EmbedType.widget,Cy.Wrapper)};Og.A.embedStrategyFactory({mapping:Ty.Body}),Og.A.embedStrategyFactory({mapping:Ty.Group}),Og.A.embedStrategyFactory({mapping:Ty.Header}),Og.A.embedStrategyFactory({mapping:Ty.Wrapper});var jy;Me.Ay.div.withConfig({displayName:"StyledButtonWrapper"})(jy||(jy=je()(["\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: flex-end;\n"])),He.hs.space(0),He.t7.color("paper"));var Ay=new AbortController,My=!1;window.addEventListener("beforeunload",(function(e){My?(e.preventDefault(),e.returnValue=""):Ay.abort()})),window.addEventListener("pagehide",(function(){Ay.signal.aborted||Ay.abort()}));var Iy=function(e){return"@@redux-saga/"+e},Ny=Iy("CANCEL_PROMISE"),Ry=Iy("CHANNEL_END"),Ly=Iy("IO"),Fy=Iy("MATCH"),Hy=Iy("MULTICAST"),By=Iy("SAGA_ACTION"),Wy=Iy("SELF_CANCELLATION"),Yy=Iy("TASK"),Uy=Iy("TASK_CANCEL"),zy=Iy("TERMINATE"),Vy=Iy("LOCATION");function qy(){return qy=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},qy.apply(this,arguments)}var Gy=function(e){return null==e},Ky=function(e){return null!=e},$y=function(e){return"function"==typeof e},Xy=function(e){return"string"==typeof e},Qy=Array.isArray,Zy=function(e){return e&&$y(e.then)},Jy=function(e){return e&&$y(e.next)&&$y(e.throw)},eb=function e(t){return t&&(Xy(t)||rb(t)||$y(t)||Qy(t)&&t.every(e))},tb=function(e){return e&&$y(e.take)&&$y(e.close)},nb=function(e){return $y(e)&&e.hasOwnProperty("toString")},rb=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},ob=function(e){return tb(e)&&e[Hy]};var ib=function(e){return function(){return e}},ab=ib(!0),sb=function(){};var cb=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var ub=function(e,t){qy(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function lb(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function db(e){var t=!1;return function(){t||(t=!0,e())}}var fb=function(e){throw e},pb=function(e){return{value:e,done:!0}};function hb(e,t,n){void 0===t&&(t=fb),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:pb,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function mb(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var gb=function(e){return Array.apply(null,new Array(e))},vb=function(e){return function(t){return e(Object.defineProperty(t,By,{value:!0}))}},yb=function(e){return e===zy},bb=function(e){return e===Uy},wb=function(e){return yb(e)||bb(e)};function xb(e,t){var n=Object.keys(e),r=n.length;var o,i=0,a=Qy(e)?gb(r):{},s={};return n.forEach((function(e){var n=function(n,s){o||(s||wb(n)?(t.cancel(),t(n,s)):(a[e]=n,++i===r&&(o=!0,t(a))))};n.cancel=sb,s[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return s[e].cancel()})))},s}function Ob(e){return{name:e.name||"anonymous",location:kb(e)}}function kb(e){return e[Vy]}function Sb(){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 Eb={isEmpty:ab,put:sb,take:sb};function Pb(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,i=0,a=function(t){n[o]=t,o=(o+1)%e,r++},s=function(){if(0!=r){var t=n[i];return n[i]=null,r--,i=(i+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)a(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=s,i=o=(o+1)%e;break;case 4:u=2*e,n=c(),r=n.length,o=n.length,i=0,n.length=u,e=u,a(s)}},take:s,flush:c}}var Db=function(){return Eb},_b=function(e){return Pb(e,4)},Cb="TAKE",Tb="PUT",jb="ALL",Ab="RACE",Mb="CALL",Ib="CPS",Nb="FORK",Rb="JOIN",Lb="CANCEL",Fb="SELECT",Hb="ACTION_CHANNEL",Bb="CANCELLED",Wb="FLUSH",Yb="GET_CONTEXT",Ub="SET_CONTEXT",zb=function(e,t){var n;return(n={})[Ly]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function Vb(e,t){return void 0===e&&(e="*"),eb(e)?(Ky(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),zb(Cb,{pattern:e})):ob(e)&&Ky(t)&&eb(t)?zb(Cb,{channel:e,pattern:t}):tb(e)?(Ky(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),zb(Cb,{channel:e})):void 0}function qb(e,t){return Gy(t)&&(t=e,e=void 0),zb(Tb,{channel:e,action:t})}function Gb(e){var t=zb(jb,e);return t.combinator=!0,t}function Kb(e,t){var n,r=null;return $y(e)?n=e:(Qy(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&Xy(n)&&$y(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function $b(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 zb(Mb,Kb(e,n))}function Xb(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 zb(Nb,Kb(e,n))}function Qb(e){void 0===e&&(e=cb);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return zb(Fb,{selector:e,args:n})}var Zb=function(e){return{done:!0,value:e}},Jb={};function ew(e){return tb(e)?"channel":nb(e)?String(e):$y(e)?e.name:String(e)}function tw(e,t,n){var r,o,i,a=t;function s(t,n){if(a===Jb)return Zb(t);if(n&&!o)throw a=Jb,n;r&&r(t);var s=n?e[o](n):e[a]();return a=s.nextState,i=s.effect,r=s.stateUpdater,o=s.errorState,a===Jb?Zb(t):i}return hb(s,(function(e){return s(null,e)}),n)}function nw(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 i,a={done:!1,value:Vb(e)},s=function(e){return i=e};return tw({q1:function(){return{nextState:"q2",effect:a,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=i,{done:!1,value:Xb.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+ew(e)+", "+t.name+")")}function rw(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 i,a,s={done:!1,value:Vb(e)},c=function(e){return{done:!1,value:Xb.apply(void 0,[t].concat(r,[e]))}},u=function(e){return{done:!1,value:(t=e,void 0===t&&(t=Wy),zb(Lb,t))};var t},l=function(e){return i=e},d=function(e){return a=e};return tw({q1:function(){return{nextState:"q2",effect:s,stateUpdater:d}},q2:function(){return i?{nextState:"q3",effect:u(i)}:{nextState:"q1",effect:c(a),stateUpdater:l}},q3:function(){return{nextState:"q1",effect:c(a),stateUpdater:l}}},"q1","takeLatest("+ew(e)+", "+t.name+")")}function ow(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 Xb.apply(void 0,[nw,e,t].concat(r))}function iw(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 Xb.apply(void 0,[rw,e,t].concat(r))}var aw=function(e,t,n){return r().mark((function o(){var i,a,c,u=arguments;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(i=u.length,a=new Array(i),c=0;c<i;c++)a[c]=u[c];case 1:return r.prev=2,r.next=5,$b.apply(void 0,[e,t].concat(a));case 5:r.next=16;break;case 7:if(r.prev=7,r.t0=r.catch(2),!1!==Ay.signal.aborted){r.next=16;break}if(!n){r.next=15;break}return r.next=13,qb(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 sw={autoRestartSaga:aw,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,Gb(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(aw(t,null,n)))},abortController:Ay,deactivatePreventFromLeaving:function(){My=!1},activatePreventFromLeaving:function(){My=!0}};Ce().node,Ce().bool,Ce().string,Ce().bool,Ce().objectOf(Ce().arrayOf(Ce().oneOfType([Ce().node,Ce().string]))),Ce().bool,Ce().bool,Ce().string,Ce().string,Ce().oneOf(["inside","outside-responsive","outside"]),Ce().bool,Ce().string,Ce().bool,Ce().string,Ce().bool;var cw,uw,lw,dw=ze()(ze()(ze()(ze()(ze()({},He.xX.condition.BASE,He.t7.color("text")),He.xX.condition.DANGER,He.t7.color("signal.danger")),He.xX.condition.SUCCESS,He.t7.color("signal.success")),He.xX.condition.WARNING,He.t7.color("signal.warning")),He.xX.condition.INFO,He.t7.color("signal.info")),fw=(0,Me.Ay)(lr.dV).withConfig({displayName:"StyledSignalList"})(cw||(cw=je()(["\n && {\n list-style-type: none;\n margin-left: 0;\n }\n"]))),pw=Me.Ay.span.withConfig({displayName:"StyledSignalListIcon"})(uw||(uw=je()(["\n margin-left: -1px;\n margin-right: ",";\n"])),He.hs.space(-2)),hw=(0,Me.Ay)(lr.vx).withConfig({displayName:"StyledSignalListItem"})(lw||(lw=je()(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){var t=e.condition;return dw[t]}(e)}));const mw=function(e){return(0,Ke.jsx)(fw,{as:"ul",children:m().Children.map(e.children,(function(e){return m().cloneElement(e)}))})};var gw,vw=["condition","label","children"],yw=ze()(ze()(ze()(ze()(ze()({},He.xX.condition.BASE,!1),He.xX.condition.DANGER,"times"),He.xX.condition.SUCCESS,"check"),He.xX.condition.WARNING,"exclamation-triangle"),He.xX.condition.INFO,"info"),bw=function(e){var t=yw[e];return t?(0,Ke.jsx)(Ge.A,{icon:t,position:He.xX.position.SOLE,hasFixedWidth:!1}):gw||(gw=(0,Ke.jsx)("i",{children:"•"}))};const ww=function(e){var t=e.condition,n=void 0===t?He.xX.condition.BASE:t,r=e.label,o=e.children,i=qe()(e,vw);return(0,Ke.jsxs)(hw,{condition:n,"data-cy":i["data-cy"],children:[(0,Ke.jsx)(pw,{children:bw(n)}),r,m().Children.map(o,(function(e){return m().cloneElement(e)}))]})},xw={List:mw,Item:ww};const Ow=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,Wt()(e.error[n]))})),(0,Ke.jsx)(xw.List,{children:t.map((function(e,t){return(0,Ke.jsx)(xw.Item,{condition:"danger",label:e,"data-cy":"erroritem-".concat(t)},t)}))})};var kw,Sw,Ew,Pw,Dw,_w,Cw,Tw,jw,Aw,Mw,Iw,Nw,Rw,Lw="1.1px",Fw=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"text":"auto",";")},Hw=Me.Ay.label.withConfig({displayName:"StyledStatedValueLabel"})(kw||(kw=je()(["\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,He.Ed)({lineHeight:He.t7.lineHeight("dense")}),He.t7.color("paper"),(function(e){return Fw(e)}),(function(e){return"outside"===e.labelPosition&&(0,Me.AH)(Sw||(Sw=je()(["\n margin-bottom: ",";\n display: block;\n width: auto;\n "])),He.hs.space(-1.5))}),(function(e){return"inside"===e.labelPosition&&(0,Me.AH)(Ew||(Ew=je()(["\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 "])),He.hs.space(-2),He.hs.space(-3.5),(function(e){return e.immutable&&"0"}),(function(e){return e.immutable?"0":He.hs.space(-1.8)}))}),(function(e){return e.styles})),Bw=Me.Ay.div.withConfig({displayName:"StyledInputArea"})(Pw||(Pw=je()(["\n width: 60%;\n flex-grow: 1;\n ","\n"])),(function(e){return"outside"===e.labelPosition&&(0,Me.AH)(Dw||(Dw=je()(["\n width: auto;\n "])))})),Ww=Me.Ay.div.withConfig({displayName:"StyledStatedValueBox"})(_w||(_w=je()(["\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"])),Lw,(function(e){return He.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)}),He.t7.radii("form"),He.hs.space(-2.5),He.hs.space(-1.5),(function(e){return!e.immutable&&(0,He.h7)(e)}),(function(e){return Fw(e)}),(0,He.Ed)(),wf,(function(e){return"inside"===e.labelPosition&&(0,Me.AH)(Cw||(Cw=je()(["\n padding: "," "," "," ",";\n "])),He.hs.space(-1),He.hs.space(-1.7),He.hs.space(-2),He.hs.space(-1))}),(function(e){return e.styles})),Yw=Me.Ay.p.withConfig({displayName:"StyledStatedValueDescription"})(Tw||(Tw=je()(["\n &&& {\n ","\n }\n"])),(0,He.Ed)({fontSize:He.hs.font(-1)})),Uw=Me.Ay.div.withConfig({displayName:"StyledStatedValueError"})(jw||(jw=je()([""]))),zw=Me.Ay.div.withConfig({displayName:"StyledStatedValueOuterWrapper"})(Aw||(Aw=je()(["\n &:not(:last-child) {\n margin-bottom: ",";\n }\n ","\n"])),He.hs.space(-.7),(function(e){return"inside"===e.labelPosition&&(0,Me.AH)(Mw||(Mw=je()(["\n padding-top: ",";\n margin-bottom: 0.65rem;\n position: relative;\n "])),He.hs.space(-1.5))})),Vw=Me.Ay.div.withConfig({displayName:"StyledStatedValueInnerWrapper"})(Iw||(Iw=je()(["\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"])),He.hs.space(-1.5),Ww,Yw,Uw,He.hs.space(-2),Yw,He.hs.space(-1),Lw,(function(e){return"outside"===e.labelPosition&&(0,Me.AH)(Nw||(Nw=je()(["\n display: block;\n "])))}),(function(e){return"inside"===e.labelPosition&&(0,Me.AH)(Rw||(Rw=je()(["\n padding-top: 0;\n "])))}),(function(e){return e.styles}));function qw(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 Gw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qw(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Kw=function(e){var t,n,r,o=e.children,i=e.description,a=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,v=e.labelPosition,y=e.styles,b=!h&&m&&c&&Object.keys(c).length>0,w=f&&p?", ".concat(p):"",x="".concat(ur.adjustedHTMLString(d)).concat(w),O=g||function(e,t,n,r){return t?He.xX.condition.DANGER:e?He.xX.condition.INFO:n&&!r?He.xX.condition.WARNING:void 0}(a,b,f,u),k={__html:"".concat(Jn.sanitizeHtml(d)).concat(f?" *":"")},S=!s&&!h&&{htmlFor:l};return(0,Ke.jsx)(Qr,{children:function(e){var f=e.getRef;return(0,Ke.jsx)(zw,{labelPosition:v,children:(0,Ke.jsxs)(Vw,{labelPosition:v,ref:f,label:d,styles:null==y?void 0:y.innerWrapperStyles,children:[d&&(0,Ke.jsx)(Hw,Gw(Gw({},S),{},{hasValue:u,dirty:a,title:x,immutable:h,isDisplay:s,signal:O,labelPosition:v,styles:null==y?void 0:y.labelStyles,children:t||(t=(0,Ke.jsx)("span",{dangerouslySetInnerHTML:k}))})),(0,Ke.jsxs)(Bw,{labelPosition:v,children:[(0,Ke.jsx)(Ww,{hasValue:u,immutable:h,isDisplay:s,signal:O,labelPosition:v,styles:null==y?void 0:y.valueStyles,children:o}),b&&(0,Ke.jsx)(Uw,{"data-cy":"errorlist-".concat(l),children:n||(n=(0,Ke.jsx)(Ow,{error:c}))}),i&&(r||(r=(0,Ke.jsx)(Yw,{children:i})))]})]})})}})};var $w,Xw,Qw=function(e){return(0,Me.AH)($w||($w=je()(["\n color: ",";\n font-weight: ",";\n"])),He.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?He.t7.fontWeight("bold"):He.t7.fontWeight("regular")}))},Zw=function(){return(0,Me.AH)(Xw||(Xw=je()(["\n padding-left: ",";\n"])),(function(e){return e.immutable&&0}))},Jw=["labelPosition"];function ex(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 tx=function(e){var t=e.labelPosition,n=qe()(e,Jw);return(0,Ke.jsx)(Kw,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ex(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ex(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{labelStyles:Qw,valueStyles:Zw},labelPosition:t||"outside-responsive"},n))};var nx,rx,ox,ix,ax,sx,cx=function(e){return e.signal?"signal":"shade2"},ux=function(){return(0,Me.AH)(nx||(nx=je()(["\n align-items: flex-start;\n"])))},lx=function(e){return(0,Me.AH)(rx||(rx=je()(["\n padding-top: ",";\n color: ",";\n"])),(function(e){var t=e.immutable;return"inside"===e.labelPosition?0:t?(0,Me.AH)(ox||(ox=je()(["\n ","\n "])),He.hs.space(-1.8)):(0,Me.AH)(ix||(ix=je()(["\n ","\n "])),He.hs.space(.1))}),He.Db[cx(e)](e))},dx=function(){return(0,Me.AH)(ax||(ax=je()(["\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)(sx||(sx=je()(["\n ","\n "])),He.hs.space(-1)):void 0}),(function(e){return e.immutable&&0}))},fx=["labelPosition"];function px(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 hx=function(e){var t=e.labelPosition,n=qe()(e,fx);return(0,Ke.jsx)(Kw,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?px(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):px(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{innerWrapperStyles:ux,labelStyles:lx,valueStyles:dx},labelPosition:t||"outside-responsive"},n))};var mx=ze()(ze()({},Og.A.EmbedType.admin,tx),Og.A.EmbedType.widget,hx);const gx=Og.A.embedStrategyFactory({mapping:mx});var vx,yx,bx,wx,xx=Me.Ay.span.withConfig({displayName:"StyledSearchIconWrapper"})(vx||(vx=je()(["\n margin-right: ",";\n color: ",";\n"])),He.hs.space(-.8),He.t7.color("text")),Ox=Me.Ay.div.withConfig({displayName:"StyledSearchBox"})(yx||(yx=je()(["\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"]))),kx=Me.Ay.input.attrs((function(e){return{type:"search",placeholder:e.placeholder}})).withConfig({displayName:"StyledSearchBoxInput"})(bx||(bx=je()(["\n &&&& {\n ","\n }\n"])),uo),Sx=m().forwardRef((function(e,t){var n=e.value,r=e.minInputLength,o=void 0===r?3:r,i=e.onSearch,a=e.placeholder,s=(e.debounce,(0,p.useState)(n||"")),c=et()(s,2),u=c[0],l=c[1];return(0,Ke.jsx)(Ox,{children:(0,Ke.jsx)(gx,{hasValue:Boolean(u),labelPosition:"inside",children:(0,Ke.jsxs)(co,{children:[wx||(wx=(0,Ke.jsx)(xx,{children:(0,Ke.jsx)(Ge.A,{icon:"search"})})),(0,Ke.jsx)(kx,{"data-cy":"input-search-box",ref:t,onChange:function(e){var t=e.target.value;l(t),(0===t.length||t.length>=o)&&i(t.trim())},value:u,"aria-label":a,placeholder:a}),(null==u?void 0:u.length)>0&&(0,Ke.jsx)(Nt,{"data-cy":"btn-reset",icon:"times",onClick:function(){l(""),i("")}})]})})})}));const Ex=ut.Debouncer(Sx,100,"onSearch");var Px,Dx=[He.xX.condition.BASE,He.xX.condition.INFO,He.xX.condition.DANGER,He.xX.condition.SUCCESS,He.xX.condition.WARNING],_x=ze()(ze()(ze()(ze()(ze()({},He.xX.condition.BASE,He.t7.color("signal.neutral")),He.xX.condition.DANGER,He.t7.color("signal.danger")),He.xX.condition.SUCCESS,He.t7.color("signal.success")),He.xX.condition.WARNING,He.t7.color("signal.warning")),He.xX.condition.INFO,He.t7.color("signal.info")),Cx=Me.Ay.div.withConfig({displayName:"StyledSignalBox"})(Px||(Px=je()(["\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 _x[e.condition]||_x[He.xX.condition.INFO]}(e)}),He.hs.space(-1),He.hs.space(-1),(function(e){return"base"===e.condition?"#000":"#FFF"}));Cx.propTypes={condition:He.xX.oneOfPropTypeAndCompletelyMapped(Dx,_x)};var Tx,jx,Ax;Me.Ay.div.withConfig({displayName:"StyledCell"})(Tx||(Tx=je()(["\n display: flex;\n flex-direction: column;\n width: 100%;\n"]))),Me.Ay.div.withConfig({displayName:"StyledStatedValueBox"})(jx||(jx=je()(["\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"])),He.h7,He.t7.color("border"),He.t7.radii("form"),(function(e){return e.borderless&&(0,Me.AH)(Ax||(Ax=je()(["\n border: none;\n "])))}),nu,He.hs.space(-2),He.hs.space(-1.7),He.hs.space(-2),He.hs.space(-1),He.t7.radii("form"),He.t7.color("paper"),He.hs.space(-1),He.hs.space(-1),He.hs.space(-.5),He.hs.space(-1));var Mx;function Ix(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 Nx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ix(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ix(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Rx={currentlyDragging:null,currentlyDragOver:null,horizontalDropPosition:null,verticalDropPosition:null,offsetX:null,offsetY:null},Lx={Left:"Left",Right:"Right"},Fx={Top:"Top",Bottom:"Bottom"},Hx=function(e,t,n){var r=e.clientX-t>0,o=e.clientY-n>0;return{horizontal:r?Lx.Right:Lx.Left,vertical:o?Fx.Bottom:Fx.Top}};const Bx=function(e){var t=(0,p.useState)(Rx),n=et()(t,2),r=n[0],o=n[1],i=r.currentlyDragging,a=r.currentlyDragOver,s=r.horizontalDropPosition,c=r.verticalDropPosition,u=r.offsetX,l=r.offsetY,d=(0,p.useCallback)((function(t){return{onDragStart:function(e){o((function(e){return Nx(Nx({},e),{},{currentlyDragging:t})}));var n=e.target,r=function(e){o(Rx),e.stopPropagation(),n&&n.removeEventListener("dragend",r)};n&&n.addEventListener("dragend",r,!1),e.stopPropagation()},onDragEnter:function(e){if(i&&!or()(a,t)){var n=e.target?e.target.getBoundingClientRect():{},r=n.x+n.width/2,s=n.y+n.height/2,c=Hx(e,r,s),u=c.horizontal,l=c.vertical;(0,sa.flushSync)((function(){o((function(e){return Nx(Nx({},e),{},{currentlyDragOver:t,offsetX:r,offsetY:s,horizontalDropPosition:u,verticalDropPosition:l})}))}))}e.stopPropagation()},onDragOver:function(e){if(i&&or()(a,t)){var n=Hx(e,u,l),r=n.horizontal,s=n.vertical;return o((function(e){return Nx(Nx({},e),{},{horizontalDropPosition:r,verticalDropPosition:s})})),e.preventDefault(),e.stopPropagation(),!0}},onDragLeave:function(e){i&&or()(a,t)&&(e.stopPropagation(),o((function(e){return Nx(Nx({},e),{},{currentlyDragOver:null,horizontalDropPosition:null,verticalDropPosition:null})})))},onDrop:function(t){i&&a&&(e(i,a,s,c),o(Rx),t.stopPropagation())}}}),[a,i,s,c,u,l,e]),f=(0,p.useMemo)((function(){return{currentlyDragOver:a,currentlyDragging:i,horizontalDropPosition:s,verticalDropPosition:c,offsetX:u,offsetY:l}}),[a,i,s,c,u,l]);return{dndEvents:d,dndState:f,dndCss:Boolean(f.currentlyDragging)?(0,Me.AH)(Mx||(Mx=je()(["\n & * {\n pointer-events: none;\n }\n "]))):""}},Wx=Lx;var Yx,Ux,zx,Vx,qx,Gx,Kx,$x,Xx=Me.Ay.div.withConfig({displayName:"StyledColumnPickerWrapper"})(Yx||(Yx=je()(["\n padding-right: 3px; /* make sure drop indicator does not overlap outer elements on the right most side */\n"]))),Qx=Me.Ay.div.withConfig({displayName:"StyledControlsWrapper"})(Ux||(Ux=je()(["\n margin-left: 3px; /* rest of checkboxes are moved 3px to the right to make room for drop indicator */\n margin-top: ",";\n"])),He.hs.space(.7)),Zx=Me.Ay.ul.withConfig({displayName:"StyledUl"})(zx||(zx=je()(["\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"])),He.hs.space(-.5),lr.Gw),Jx=Me.Ay.input.withConfig({displayName:"StyledCheckbox"})(Vx||(Vx=je()(["\n vertical-align: top;\n margin-right: "," !important; /* Nice2 Reset */\n\n &:hover {\n cursor: pointer;\n }\n"])),He.hs.space(-1)),eO=Me.Ay.span.withConfig({displayName:"StyledId"})(qx||(qx=je()(["\n color: ",";\n font-style: italic;\n"])),He.t7.color("text")),tO=(0,Me.Ay)(lr.vx).withConfig({displayName:"StyledItem"})(Gx||(Gx=je()(["\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"])),He.hs.space(-2),He.hs.space(-2),He.hs.space(-2),(function(e){return e.dropPosition===Wx.Left?"-3px":"0"}),(function(e){var t=e.dropPosition,n=e.theme;return t===Wx.Left?"3px solid ".concat(n.colors.secondary):"none"}),(function(e){var t=e.dropPosition,n=e.theme;return t===Wx.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 ")})),nO=Me.Ay.span.withConfig({displayName:"StyledNumber"})(Kx||(Kx=je()(["\n display: inline-block;\n margin-right: ",";\n color: ",";\n font-size: ",";\n"])),He.hs.space(-1),He.t7.color("text"),He.hs.font(0));function rO(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 oO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rO(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const iO=function(e){var t=e.index,n=e.dndProps,r=e.column,o=e.onSelectionChange;return(0,Ke.jsxs)(aO,oO(oO({},n),{},{$_css:n.dndCss,children:[(0,Ke.jsx)(Jx,{type:"checkbox",id:r.id,checked:!r.hidden,onChange:function(e){return o(r.id,e.target.checked)}}),(0,Ke.jsxs)(lr.Ay.Label,{htmlFor:r.id,children:[(0,Ke.jsxs)(nO,{children:[t,"."]}),r.label?(0,Ke.jsx)("span",{dangerouslySetInnerHTML:{__html:Jn.sanitizeHtml(r.label)}}):(0,Ke.jsx)(eO,{children:r.id})]})]}))};var aO=(0,Me.Ay)(tO).withConfig({displayName:"_StyledStyledItem"})($x||($x=je()(["",""])),(function(e){return e.$_css}));function sO(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 cO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sO(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var uO=function(e,t){return e.filter((function(e){return null===t||e.label.match(new RegExp(t,"i"))}))};const lO=function(e){var t=e.dndEnabled,n=e.columns,r=void 0===n?[]:n,o=e.sortColumns,i=e.onColumnsChange,a=e.intl,s=function(e){return o?o(e):function(e){return Wt()(e).sort((function(e,t){return e.hidden-t.hidden}))}(e)},c=s(r),u=(0,p.useState)(null),l=et()(u,2),d=l[0],f=l[1],h=(0,p.useCallback)((function(e,t,n){if(e!==t){var r=c.find((function(t){return t.id===e}));i((function(e){return e.filter((function(e){return e!==r})).reduce((o=r,i=t,a=n,function(e,t){if(t.id===i){if(a===Wx.Left)return[].concat(Wt()(e),[o,t]);if(a===Wx.Right)return[].concat(Wt()(e),[t,o])}return[].concat(Wt()(e),[t])}),[]);var o,i,a}))}}),[c,i]),m=Bx(h),g=m.dndEvents,v=m.dndState,y=m.dndCss,b=(0,p.useMemo)((function(){return uO(c,d)}),[c,d]),w=b.some((function(e){return e.hidden})),x=function(e,t){i((function(n){return s(n.map((function(n){return n.id===e?cO(cO({},n),{},{hidden:!t}):n})))}))},O=function(e){return v.currentlyDragOver===e.id&&v.currentlyDragging!==e.id};return(0,Ke.jsxs)(Xx,{children:[(0,Ke.jsx)(Ex,{placeholder:a.formatMessage({id:"client.entity-list.preferences.columns.search"}),onSearch:f}),(0,Ke.jsxs)(Qx,{children:[(0,Ke.jsx)(Jx,{type:"checkbox",onChange:function(e){var t=e.target.checked;i((function(e){var n=uO(e,d);return s(Wt()(e.map((function(e){return cO(cO({},e),{},{hidden:n.includes(e)?!t:e.hidden})}))))}))},checked:!w}),(0,Ke.jsx)(lr.Ay.Span,{children:a.formatMessage({id:"client.entity-list.preferences.columns.selectDeselectAllCheckbox"})})]}),(0,Ke.jsx)(Zx,{children:b.map((function(e,n){return(0,Ke.jsx)(iO,{index:n+1,column:e,dndProps:cO({draggable:t,dndCss:y,dropPosition:O(e)&&v.horizontalDropPosition},t&&cO({},g(e.id))),onSelectionChange:x},e.id)}))})]})};(0,f.injectIntl)(lO);var dO,fO,pO,hO;Me.Ay.div.withConfig({displayName:"StyledIconWrapper"})(dO||(dO=je()(["\n font-size: ",";\n color: ",";\n"])),He.hs.font(-2.7),He.t7.color("text")),Me.Ay.div.withConfig({displayName:"StyledRange"})(fO||(fO=je()(["\n display: flex;\n align-items: baseline;\n width: 100%;\n"]))),Me.Ay.div.withConfig({displayName:"StyledInput"})(pO||(pO=je()(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"]))),(0,Me.Ay)(Nt).withConfig({displayName:"StyledBall"})(hO||(hO=je()(["\n position: relative;\n top: 0.5px; /* offset false vertical alignment */\n"])));var mO,gO,vO,yO,bO,wO=Me.Ay.div.withConfig({displayName:"StyledBurgerButton"})(mO||(mO=je()(["\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"])),He.t7.color("backgroundBurgerMenuBars"),(function(e){return e.isOpen&&(0,Me.AH)(gO||(gO=je()(["\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,f.injectIntl)((function(e){var t,n=e.isOpen,r=e.intl,o=e.toggleMenu;return(0,Ke.jsxs)(wO,{id:"burger-button",isOpen:n,"aria-label":(t="client.component.burgerButton.Label",r.formatMessage({id:t})),onClick:o,children:[vO||(vO=(0,Ke.jsx)("span",{})),yO||(yO=(0,Ke.jsx)("span",{})),bO||(bO=(0,Ke.jsx)("span",{}))]})}));var xO,OO,kO=Me.Ay.div.withConfig({displayName:"StyledPagination"})(xO||(xO=je()(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-wrap: wrap;\n gap: ",";\n margin-left: ",";\n"])),He.hs.space(-1),He.hs.space(-1.4)),SO=(0,Me.Ay)(Dt).withConfig({displayName:"StyledPaginationButton"})(OO||(OO=je()(["\n padding: "," ",";\n"])),He.hs.space(-2),He.hs.space(-.5));const EO=(0,f.injectIntl)((function(e){var t=e.totalCount,n=e.recordsPerPage,r=e.currentPage,o=e.onPageChange,i=e.intl,a=e.tableEl,s=e.children,c=Math.ceil(t/n),u=Math.min((r-1)*n+1,t),l=Math.min(r*n,t),d=function(e){return i.formatMessage({id:e})},p=function(e){o(e),a.current.scrollTop=0};return(0,Ke.jsxs)(kO,{children:[(0,Ke.jsxs)(Br,{children:[(0,Ke.jsx)(SO,{disabled:1===r,label:d("client.component.pagination.firstPageTitle"),iconOnly:!0,icon:"chevron-double-left",onClick:function(){return p(1)}}),(0,Ke.jsx)(SO,{disabled:1===r,label:d("client.component.pagination.prePageTitle"),iconOnly:!0,icon:"chevron-left",onClick:function(){return p(r-1)}}),(0,Ke.jsx)(SO,{disabled:r>=c,label:d("client.component.pagination.nextPageTitle"),iconOnly:!0,icon:"chevron-right",onClick:function(){return p(r+1)}}),(0,Ke.jsx)(SO,{disabled:r>=c,label:d("client.component.pagination.lastPageTitle"),iconOnly:!0,icon:"chevron-double-right",onClick:function(){return p(c)}})]}),t>0&&(0,Ke.jsx)(lr.Ay.Span,{children:(0,Ke.jsx)(f.FormattedMessage,{id:"client.component.pagination.text",values:{start:u,to:l,total:t}})}),s]})})),PO=EO;var DO;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;(e=>{const t=class{constructor(e,n,r,o){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(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}i(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),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,n,o=1,a=40,c=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=a&&a<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let l,d;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=s.getTotalBits(e,l);if(o<=r){d=o;break}if(l>=a)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)&&(n=e);let f=[];for(const t of e){r(t.mode.modeBits,4,f),r(t.numChars,t.mode.numCharCountBits(l),f);for(const e of t.getData())f.push(e)}i(f.length==d);const p=8*t.getNumDataCodewords(l,n);i(f.length<=p),r(0,Math.min(4,p-f.length),f),r(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.length<p;e^=253)r(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,n,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 r=21522^(t<<10|n);i(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,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;i(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,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)),i=e+r,a=t+n;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,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 o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=o-s%o,u=Math.floor(s/o);let l=[];const d=t.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-a+(n<c?0:1));r+=o.length;const i=t.reedSolomonComputeRemainder(o,d);n<c&&o.push(0),l.push(o.concat(i))}let f=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-a||n>=c)&&f.push(t[e])}));return i(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 r=0;r<this.size;r++)for(let i=0;i<2;i++){const a=t-i,s=0==(t+1&2)?this.size-1-r:r;!this.isFunction[s][a]&&n<8*e.length&&(this.modules[s][a]=o(e[n>>>3],7-(7&n)),n++)}}i(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,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[n][a]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[n][a],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[a][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*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,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return i(0<=o&&o<=9),e+=o*t.PENALTY_N4,i(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 i(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 i(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];i(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)}};let n=t;function r(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 o(e,t){return 0!=(e>>>t&1)}function i(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.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]],n.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]],e.QrCode=n;const a=class{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(e){let t=[];for(const n of e)r(n,8,t);return new a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new a(a.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new a(a.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new a(a.Mode.ECI,0,t)}static isNumeric(e){return a.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return a.ALPHANUMERIC_REGEX.test(e)}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.substr(n+1,2),16)),n+=2);return t}};let s=a;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(DO||(DO={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(DO||(DO={})),(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)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(DO||(DO={}));var _O=DO;
|
|
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},i=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var d=a(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,i=e,e=r(e),void 0!==l&&f.hasValue){var t=f.value;if(l(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=r(e);return void 0!==l&&l(t,n)?t:(i=e,a=n)}var i,a,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=i(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:()=>O});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 i=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 a=[],s=0;s<256;++s)a.push((s+256).toString(16).slice(1));function c(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[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,a){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=i(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){a=a||0;for(var l=0;l<16;++l)o[a+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,i){return h((a=h(h(t,e),h(r,i)))<<(s=o)|a>>>32-s,n);var a,s}function g(e,t,n,r,o,i,a){return m(t&n|~t&r,e,t,o,i,a)}function v(e,t,n,r,o,i,a){return m(t&r|n&~r,e,t,o,i,a)}function y(e,t,n,r,o,i,a){return m(t^n^r,e,t,o,i,a)}function b(e,t,n,r,o,i,a){return m(n^(t|~r),e,t,o,i,a)}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 i=e[o>>5]>>>o%32&255,a=parseInt(r.charAt(i>>>4&15)+r.charAt(15&i),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[p(t)-1]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var s=n,c=r,u=o,l=i;n=g(n,r,o,i,e[a],7,-680876936),i=g(i,n,r,o,e[a+1],12,-389564586),o=g(o,i,n,r,e[a+2],17,606105819),r=g(r,o,i,n,e[a+3],22,-1044525330),n=g(n,r,o,i,e[a+4],7,-176418897),i=g(i,n,r,o,e[a+5],12,1200080426),o=g(o,i,n,r,e[a+6],17,-1473231341),r=g(r,o,i,n,e[a+7],22,-45705983),n=g(n,r,o,i,e[a+8],7,1770035416),i=g(i,n,r,o,e[a+9],12,-1958414417),o=g(o,i,n,r,e[a+10],17,-42063),r=g(r,o,i,n,e[a+11],22,-1990404162),n=g(n,r,o,i,e[a+12],7,1804603682),i=g(i,n,r,o,e[a+13],12,-40341101),o=g(o,i,n,r,e[a+14],17,-1502002290),n=v(n,r=g(r,o,i,n,e[a+15],22,1236535329),o,i,e[a+1],5,-165796510),i=v(i,n,r,o,e[a+6],9,-1069501632),o=v(o,i,n,r,e[a+11],14,643717713),r=v(r,o,i,n,e[a],20,-373897302),n=v(n,r,o,i,e[a+5],5,-701558691),i=v(i,n,r,o,e[a+10],9,38016083),o=v(o,i,n,r,e[a+15],14,-660478335),r=v(r,o,i,n,e[a+4],20,-405537848),n=v(n,r,o,i,e[a+9],5,568446438),i=v(i,n,r,o,e[a+14],9,-1019803690),o=v(o,i,n,r,e[a+3],14,-187363961),r=v(r,o,i,n,e[a+8],20,1163531501),n=v(n,r,o,i,e[a+13],5,-1444681467),i=v(i,n,r,o,e[a+2],9,-51403784),o=v(o,i,n,r,e[a+7],14,1735328473),n=y(n,r=v(r,o,i,n,e[a+12],20,-1926607734),o,i,e[a+5],4,-378558),i=y(i,n,r,o,e[a+8],11,-2022574463),o=y(o,i,n,r,e[a+11],16,1839030562),r=y(r,o,i,n,e[a+14],23,-35309556),n=y(n,r,o,i,e[a+1],4,-1530992060),i=y(i,n,r,o,e[a+4],11,1272893353),o=y(o,i,n,r,e[a+7],16,-155497632),r=y(r,o,i,n,e[a+10],23,-1094730640),n=y(n,r,o,i,e[a+13],4,681279174),i=y(i,n,r,o,e[a],11,-358537222),o=y(o,i,n,r,e[a+3],16,-722521979),r=y(r,o,i,n,e[a+6],23,76029189),n=y(n,r,o,i,e[a+9],4,-640364487),i=y(i,n,r,o,e[a+12],11,-421815835),o=y(o,i,n,r,e[a+15],16,530742520),n=b(n,r=y(r,o,i,n,e[a+2],23,-995338651),o,i,e[a],6,-198630844),i=b(i,n,r,o,e[a+7],10,1126891415),o=b(o,i,n,r,e[a+14],15,-1416354905),r=b(r,o,i,n,e[a+5],21,-57434055),n=b(n,r,o,i,e[a+12],6,1700485571),i=b(i,n,r,o,e[a+3],10,-1894986606),o=b(o,i,n,r,e[a+10],15,-1051523),r=b(r,o,i,n,e[a+1],21,-2054922799),n=b(n,r,o,i,e[a+8],6,1873313359),i=b(i,n,r,o,e[a+15],10,-30611744),o=b(o,i,n,r,e[a+6],15,-1560198380),r=b(r,o,i,n,e[a+13],21,1309151649),n=b(n,r,o,i,e[a+4],6,-145523070),i=b(i,n,r,o,e[a+11],10,-1120210379),o=b(o,i,n,r,e[a+2],15,718787259),r=b(r,o,i,n,e[a+9],21,-343485551),n=h(n,s),r=h(r,c),o=h(o,u),i=h(i,l)}return[n,r,o,i]}(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 x={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};const O=function(e,t,n){if(x.randomUUID&&!t&&!e)return x.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 i=e.length/4+2,a=Math.ceil(i/16),s=new Array(a),c=0;c<a;++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[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<a;++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],v=n[2],y=n[3],b=n[4],w=0;w<80;++w){var x=Math.floor(w/20),O=S(m,5)+k(x,g,v,y)+b+t[x]+f[w]>>>0;b=y,y=v,v=S(g,30)>>>0,g=m,m=O}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>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,i=Object.getOwnPropertyDescriptor,a=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 a(t))!c.call(e,s)&&s!==n&&o(e,s,{get:()=>t[s],enumerable:!(r=i(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:()=>y,batch:()=>Se,connect:()=>ye,createDispatchHook:()=>Oe,createSelectorHook:()=>S,createStoreHook:()=>we,shallowEqual:()=>te,useDispatch:()=>ke,useSelector:()=>E,useStore:()=>xe}),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"),v=typeof globalThis<"u"?globalThis:{};var y=function(){if(!m.createContext)return{};let e=v[g]??(v[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=y){return function(){return m.useContext(e)}}var x=w(),O=b,k=(e,t)=>e===t;function S(e=y){let t=e===y?x:w(e),n=(e,n={})=>{let{equalityFn:r=k,devModeChecks:o={}}="function"==typeof n?{equalityFn:n}:n,{store:i,subscription:a,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=O(a.addNestedSub,i.getState,s||i.getState,l,r);return m.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var E=S(),P=Symbol.for("react.element"),D=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),A=Symbol.for("react.context"),M=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),B=L;function W(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 T:case C:case N:case R:return n;default:{let e=n&&n.$$typeof;switch(e){case M:case A:case I:case F:case L:case j:return e;default:return t}}}}case D:return t}}}(e)===L}function Y(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,c,u,l,d,f=!1;function p(f,p){let h=!i(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=!a(t,u);return u=t,r&&(d=n(u,l,c)),d}():d}return function(o,i){return f?p(o,i):function(o,i){return s=o,c=i,u=e(s,c),l=t(r,c),d=n(u,l,c),f=!0,d}(o,i)}}function U(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,i=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),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:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!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},ie={[H]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[B]:oe};function ae(e){return W(e)?oe:ie[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=ae(e),o=ae(t);for(let i=0;i<n.length;++i){let a=n[i];if(!(re[a]||o&&o[a]||r&&r[a])){let n=le(t,a);try{se(e,a,n)}catch{}}}}return e}var he=b,me=[null,null];function ge(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function ve(e,t){return e===t}var ye=function(e,t,n,{pure:r,areStatesEqual:o=ve,areOwnPropsEqual:i=te,areStatePropsEqual:a=te,areMergedPropsEqual:s=te,forwardRef:c=!1,context:u=y}={}){let l=u,d=function(e){return e?"function"==typeof e?V(e):q(e,"mapStateToProps"):U((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?U((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"):U((e=>({dispatch:e})))}(t),p=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){let s=e(t,n,a);return i?r(s,o)||(o=s):(i=!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:a,areOwnPropsEqual:i,areMergedPropsEqual:s};function u(t){let[n,o,i]=m.useMemo((()=>{let{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),a=m.useMemo((()=>l),[n,l]),s=m.useContext(a),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 Y(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[g,v]=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]),y=m.useMemo((()=>c?s:{...s,subscription:g}),[c,s,g]),b=m.useRef(void 0),w=m.useRef(i),x=m.useRef(void 0),O=m.useRef(!1),k=m.useRef(!1),S=m.useRef(void 0);J((()=>(k.current=!0,()=>{k.current=!1})),[]);let E,P=m.useMemo((()=>()=>x.current&&i===w.current?x.current:p(d.getState(),i)),[d,i]),D=m.useMemo((()=>e=>g?function(e,t,n,r,o,i,a,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===i.current?a.current||u():(i.current=e,c.current=e,a.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,O,k,x,v,e):()=>{}),[g]);!function(e,t,n){J((()=>e(...t)),n)}(ge,[w,b,O,i,x,v]);try{E=he(D,P,f?()=>p(f(),i):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,x.current=void 0,b.current=E}));let _=m.useMemo((()=>m.createElement(e,{...E,ref:o})),[o,e,E]);return m.useMemo((()=>h?m.createElement(a.Provider,{value:y},_):_),[a,_,y])}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:i="once"}){let a=m.useMemo((()=>{let t=X(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}}),[e,r,o,i]),s=m.useMemo((()=>e.getState()),[e]);return J((()=>{let{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]),m.createElement((t||y).Provider,{value:a},n)};function we(e=y){let t=e===y?x:w(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var xe=we();function Oe(e=y){let t=e===y?xe:we(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var ke=Oe(),Se=K;(e=>{O=e})(p.useSyncExternalStoreWithSelector),(e=>{he=e})(f.useSyncExternalStore)},95361:(e,t,n)=>{"use strict";n.d(t,{B1:()=>r.B1,BN:()=>g,ER:()=>v,Ej:()=>y,RK:()=>c,UE:()=>s,UU:()=>u,__:()=>a,cY:()=>m,jD:()=>f,mG:()=>h,rD:()=>i});var r=n(97193);function o(e,t,n){let{reference:o,floating:i}=e;const a=(0,r.TV)(t),s=(0,r.Dz)(t),c=(0,r.sq)(s),u=(0,r.C0)(t),l="y"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[c]/2-i[c]/2;let h;switch(u){case"top":h={x:d,y:o.y-i.height};break;case"bottom":h={x:d,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-i.width,y:f};break;default:h={x:o.x,y:o.y}}switch((0,r.Sg)(t)){case"start":h[s]-=p*(n&&l?-1:1);break;case"end":h[s]+=p*(n&&l?-1:1)}return h}const i=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,c=a.filter(Boolean),u=await(null==s.isRTL?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=o(l,r,u),p=r,h={},m=0;for(let n=0;n<c.length;n++){const{name:a,fn:g}=c[n],{x:v,y,data:b,reset:w}=await g({x:d,y:f,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:l,platform:s,elements:{reference:e,floating:t}});d=null!=v?v:d,f=null!=y?y:f,h={...h,[a]:{...h[a],...b}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(p=w.placement),w.rects&&(l=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):w.rects),({x:d,y:f}=o(l,p,u))),n=-1)}return{x:d,y:f,placement:p,strategy:i,middlewareData:h}};async function a(e,t){var n;void 0===t&&(t={});const{x:o,y:i,platform:a,rects:s,elements:c,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=(0,r._3)(t,e),m=(0,r.nI)(h),g=c[p?"floating"===f?"reference":"floating":f],v=(0,r.B1)(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(c.floating)),boundary:l,rootBoundary:d,strategy:u})),y="floating"===f?{...s.floating,x:o,y:i}:s.reference,b=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c.floating)),w=await(null==a.isElement?void 0:a.isElement(b))&&await(null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},x=(0,r.B1)(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:b,strategy:u}):y);return{top:(v.top-x.top+m.top)/w.y,bottom:(x.bottom-v.bottom+m.bottom)/w.y,left:(v.left-x.left+m.left)/w.x,right:(x.right-v.right+m.right)/w.x}}const s=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:a,platform:s,elements:c,middlewareData:u}=t,{element:l,padding:d=0}=(0,r._3)(e,t)||{};if(null==l)return{};const f=(0,r.nI)(d),p={x:n,y:o},h=(0,r.Dz)(i),m=(0,r.sq)(h),g=await s.getDimensions(l),v="y"===h,y=v?"top":"left",b=v?"bottom":"right",w=v?"clientHeight":"clientWidth",x=a.reference[m]+a.reference[h]-p[h]-a.floating[m],O=p[h]-a.reference[h],k=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let S=k?k[w]:0;S&&await(null==s.isElement?void 0:s.isElement(k))||(S=c.floating[w]||a.floating[m]);const E=x/2-O/2,P=S/2-g[m]/2-1,D=(0,r.jk)(f[y],P),_=(0,r.jk)(f[b],P),C=D,T=S-g[m]-_,j=S/2-g[m]/2+E,A=(0,r.qE)(C,j,T),M=!u.arrow&&null!=(0,r.Sg)(i)&&j!==A&&a.reference[m]/2-(j<C?D:_)-g[m]/2<0,I=M?j<C?j-C:j-T:0;return{[h]:p[h]+I,data:{[h]:A,centerOffset:j-A-I,...M&&{alignmentOffset:I}},reset:M}}});const c=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,i;const{rects:s,middlewareData:c,placement:u,platform:l,elements:d}=t,{crossAxis:f=!1,alignment:p,allowedPlacements:h=r.DD,autoAlignment:m=!0,...g}=(0,r._3)(e,t),v=void 0!==p||h===r.DD?function(e,t,n){return(e?[...n.filter((t=>(0,r.Sg)(t)===e)),...n.filter((t=>(0,r.Sg)(t)!==e))]:n.filter((e=>(0,r.C0)(e)===e))).filter((n=>!e||(0,r.Sg)(n)===e||!!t&&(0,r.aD)(n)!==n))}(p||null,m,h):h,y=await a(t,g),b=(null==(n=c.autoPlacement)?void 0:n.index)||0,w=v[b];if(null==w)return{};const x=(0,r.w7)(w,s,await(null==l.isRTL?void 0:l.isRTL(d.floating)));if(u!==w)return{reset:{placement:v[0]}};const O=[y[(0,r.C0)(w)],y[x[0]],y[x[1]]],k=[...(null==(o=c.autoPlacement)?void 0:o.overflows)||[],{placement:w,overflows:O}],S=v[b+1];if(S)return{data:{index:b+1,overflows:k},reset:{placement:S}};const E=k.map((e=>{const t=(0,r.Sg)(e.placement);return[e.placement,t&&f?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),P=(null==(i=E.filter((e=>e[2].slice(0,(0,r.Sg)(e[0])?2:3).every((e=>e<=0))))[0])?void 0:i[0])||E[0][0];return P!==u?{data:{index:b+1,overflows:k},reset:{placement:P}}:{}}}},u=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:s,rects:c,initialPlacement:u,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...y}=(0,r._3)(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};const b=(0,r.C0)(i),w=(0,r.C0)(u)===u,x=await(null==l.isRTL?void 0:l.isRTL(d.floating)),O=h||(w||!v?[(0,r.bV)(u)]:(0,r.WJ)(u));h||"none"===g||O.push(...(0,r.lP)(u,v,g,x));const k=[u,...O],S=await a(t,y),E=[];let P=(null==(o=s.flip)?void 0:o.overflows)||[];if(f&&E.push(S[b]),p){const e=(0,r.w7)(i,c,x);E.push(S[e[0]],S[e[1]])}if(P=[...P,{placement:i,overflows:E}],!E.every((e=>e<=0))){var D,_;const e=((null==(D=s.flip)?void 0:D.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:P},reset:{placement:t}};let n=null==(_=P.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:_.placement;if(!n)switch(m){case"bestFit":{var C;const e=null==(C=P.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:C[0];e&&(n=e);break}case"initialPlacement":n=u}if(i!==n)return{reset:{placement:n}}}return{}}}};function l(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function d(e){return r.r_.some((t=>e[t]>=0))}const f=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...i}=(0,r._3)(e,t);switch(o){case"referenceHidden":{const e=l(await a(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:d(e)}}}case"escaped":{const e=l(await a(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:d(e)}}}default:return{}}}}};function p(e){const t=(0,r.jk)(...e.map((e=>e.left))),n=(0,r.jk)(...e.map((e=>e.top)));return{x:t,y:n,width:(0,r.T9)(...e.map((e=>e.right)))-t,height:(0,r.T9)(...e.map((e=>e.bottom)))-n}}const h=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:o,rects:i,platform:a,strategy:s}=t,{padding:c=2,x:u,y:l}=(0,r._3)(e,t),d=Array.from(await(null==a.getClientRects?void 0:a.getClientRects(o.reference))||[]),f=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let o=null;for(let e=0;e<t.length;e++){const r=t[e];!o||r.y-o.y>o.height/2?n.push([r]):n[n.length-1].push(r),o=r}return n.map((e=>(0,r.B1)(p(e))))}(d),h=(0,r.B1)(p(d)),m=(0,r.nI)(c);const g=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===f.length&&f[0].left>f[1].right&&null!=u&&null!=l)return f.find((e=>u>e.left-m.left&&u<e.right+m.right&&l>e.top-m.top&&l<e.bottom+m.bottom))||h;if(f.length>=2){if("y"===(0,r.TV)(n)){const e=f[0],t=f[f.length-1],o="top"===(0,r.C0)(n),i=e.top,a=t.bottom,s=o?e.left:t.left,c=o?e.right:t.right;return{top:i,bottom:a,left:s,right:c,width:c-s,height:a-i,x:s,y:i}}const e="left"===(0,r.C0)(n),t=(0,r.T9)(...f.map((e=>e.right))),o=(0,r.jk)(...f.map((e=>e.left))),i=f.filter((n=>e?n.left===o:n.right===t)),a=i[0].top,s=i[i.length-1].bottom;return{top:a,bottom:s,left:o,right:t,width:t-o,height:s-a,x:o,y:a}}return h}},floating:o.floating,strategy:s});return i.reference.x!==g.reference.x||i.reference.y!==g.reference.y||i.reference.width!==g.reference.width||i.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}};const m=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:a,placement:s,middlewareData:c}=t,u=await async function(e,t){const{placement:n,platform:o,elements:i}=e,a=await(null==o.isRTL?void 0:o.isRTL(i.floating)),s=(0,r.C0)(n),c=(0,r.Sg)(n),u="y"===(0,r.TV)(n),l=["left","top"].includes(s)?-1:1,d=a&&u?-1:1,f=(0,r._3)(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return c&&"number"==typeof m&&(h="end"===c?-1*m:m),u?{x:h*d,y:p*l}:{x:p*l,y:h*d}}(t,e);return s===(null==(n=c.offset)?void 0:n.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:i+u.x,y:a+u.y,data:{...u,placement:s}}}}},g=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=(0,r._3)(e,t),d={x:n,y:o},f=await a(t,l),p=(0,r.TV)((0,r.C0)(i)),h=(0,r.PG)(p);let m=d[h],g=d[p];if(s){const e="y"===h?"bottom":"right",t=m+f["y"===h?"top":"left"],n=m-f[e];m=(0,r.qE)(t,m,n)}if(c){const e="y"===p?"bottom":"right",t=g+f["y"===p?"top":"left"],n=g-f[e];g=(0,r.qE)(t,g,n)}const v=u.fn({...t,[h]:m,[p]:g});return{...v,data:{x:v.x-n,y:v.y-o}}}}},v=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:a,middlewareData:s}=t,{offset:c=0,mainAxis:u=!0,crossAxis:l=!0}=(0,r._3)(e,t),d={x:n,y:o},f=(0,r.TV)(i),p=(0,r.PG)(f);let h=d[p],m=d[f];const g=(0,r._3)(c,t),v="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const e="y"===p?"height":"width",t=a.reference[p]-a.floating[e]+v.mainAxis,n=a.reference[p]+a.reference[e]-v.mainAxis;h<t?h=t:h>n&&(h=n)}if(l){var y,b;const e="y"===p?"width":"height",t=["top","left"].includes((0,r.C0)(i)),n=a.reference[f]-a.floating[e]+(t&&(null==(y=s.offset)?void 0:y[f])||0)+(t?0:v.crossAxis),o=a.reference[f]+a.reference[e]+(t?0:(null==(b=s.offset)?void 0:b[f])||0)-(t?v.crossAxis:0);m<n?m=n:m>o&&(m=o)}return{[p]:h,[f]:m}}}},y=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:i,elements:s}=t,{apply:c=(()=>{}),...u}=(0,r._3)(e,t),l=await a(t,u),d=(0,r.C0)(n),f=(0,r.Sg)(n),p="y"===(0,r.TV)(n),{width:h,height:m}=o.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=f===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,g="end"===f?"top":"bottom");const y=m-l[g],b=h-l[v],w=!t.middlewareData.shift;let x=y,O=b;if(p){const e=h-l.left-l.right;O=f||w?(0,r.jk)(b,e):e}else{const e=m-l.top-l.bottom;x=f||w?(0,r.jk)(y,e):e}if(w&&!f){const e=(0,r.T9)(l.left,0),t=(0,r.T9)(l.right,0),n=(0,r.T9)(l.top,0),o=(0,r.T9)(l.bottom,0);p?O=h-2*(0!==e||0!==t?e+t:(0,r.T9)(l.left,l.right)):x=m-2*(0!==n||0!==o?n+o:(0,r.T9)(l.top,l.bottom))}await c({...t,availableWidth:O,availableHeight:x});const k=await i.getDimensions(s.floating);return h!==k.width||m!==k.height?{reset:{rects:!0}}:{}}}}},97193:(e,t,n)=>{"use strict";n.d(t,{B1:()=>D,C0:()=>m,DD:()=>i,Dz:()=>w,Jx:()=>l,LI:()=>c,PG:()=>v,RI:()=>u,Sg:()=>g,T9:()=>s,TV:()=>b,WJ:()=>O,_3:()=>h,aD:()=>k,bV:()=>E,jk:()=>a,lP:()=>S,nI:()=>P,qE:()=>p,r_:()=>r,sq:()=>y,w7:()=>x});const r=["top","right","bottom","left"],o=["start","end"],i=r.reduce(((e,t)=>e.concat(t,t+"-"+o[0],t+"-"+o[1])),[]),a=Math.min,s=Math.max,c=Math.round,u=Math.floor,l=e=>({x:e,y:e}),d={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function p(e,t,n){return s(e,a(t,n))}function h(e,t){return"function"==typeof e?e(t):e}function m(e){return e.split("-")[0]}function g(e){return e.split("-")[1]}function v(e){return"x"===e?"y":"x"}function y(e){return"y"===e?"height":"width"}function b(e){return["top","bottom"].includes(m(e))?"y":"x"}function w(e){return v(b(e))}function x(e,t,n){void 0===n&&(n=!1);const r=g(e),o=w(e),i=y(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=E(a)),[a,E(a)]}function O(e){const t=E(e);return[k(e),t,k(t)]}function k(e){return e.replace(/start|end/g,(e=>f[e]))}function S(e,t,n,r){const o=g(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(m(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(k)))),i}function E(e){return e.replace(/left|right|bottom|top/g,(e=>d[e]))}function P(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 D(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}},82695:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});let r={};function o(){return r}},88365:(e,t,n)=>{"use strict";n.d(t,{fij:()=>i,GPZ:()=>J,qZx:()=>ne,Osm:()=>oe,SyE:()=>ie,uv4:()=>ot,qgA:()=>rt,Hle:()=>it,avh:()=>ht,$7z:()=>mt,glI:()=>gt,gtt:()=>vt,ol1:()=>p});var r=n(2642);function o(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function i(e,t){const n=(0,r.a)(e);return isNaN(t)?o(e,NaN):t?(n.setDate(n.getDate()+t),n):n}Math.pow(10,8);const a=6048e5,s=864e5,c=6e4,u=36e5;var l=n(92528);function d(e){return(0,l.k)(e,{weekStartsOn:1})}function f(e){const t=(0,r.a)(e),n=t.getFullYear(),i=o(e,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);const a=d(i),s=o(e,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);const c=d(s);return t.getTime()>=a.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}function p(e){const t=(0,r.a)(e);return t.setHours(0,0,0,0),t}function h(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}function m(e,t){const n=p(e),r=p(t),o=+n-h(n),i=+r-h(r);return Math.round((o-i)/s)}function g(e){const t=f(e),n=o(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),d(n)}function v(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function y(e){if(!v(e)&&"number"!=typeof e)return!1;const t=(0,r.a)(e);return!isNaN(Number(t))}function b(e){const t=(0,r.a)(e),n=o(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}var w=n(82695);var x=n(44985);function O(e){const t=(0,r.a)(e);return m(t,b(t))+1}function k(e){const t=(0,r.a)(e),n=+d(t)-+g(t);return Math.round(n/a)+1}function S(e,t){const n=(0,r.a)(e),i=n.getFullYear(),a=(0,w.q)(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,c=o(e,0);c.setFullYear(i+1,0,s),c.setHours(0,0,0,0);const u=(0,l.k)(c,t),d=o(e,0);d.setFullYear(i,0,s),d.setHours(0,0,0,0);const f=(0,l.k)(d,t);return n.getTime()>=u.getTime()?i+1:n.getTime()>=f.getTime()?i:i-1}function E(e,t){const n=(0,w.q)(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=S(e,t),a=o(e,0);a.setFullYear(i,0,r),a.setHours(0,0,0,0);return(0,l.k)(a,t)}function P(e,t){const n=(0,r.a)(e),o=+(0,l.k)(n,t)-+E(n,t);return Math.round(o/a)+1}function D(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const _={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return D("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):D(n+1,2)},d:(e,t)=>D(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)=>D(e.getHours()%12||12,t.length),H:(e,t)=>D(e.getHours(),t.length),m:(e,t)=>D(e.getMinutes(),t.length),s:(e,t)=>D(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return D(Math.trunc(r*Math.pow(10,n-3)),t.length)}},C="midnight",T="noon",j="morning",A="afternoon",M="evening",I="night",N={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 _.y(e,t)},Y:function(e,t,n,r){const o=S(e,r),i=o>0?o:1-o;if("YY"===t){return D(i%100,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):D(i,t.length)},R:function(e,t){return D(f(e),t.length)},u:function(e,t){return D(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return D(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 D(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return _.M(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 D(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=P(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):D(o,t.length)},I:function(e,t,n){const r=k(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):D(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):_.d(e,t)},D:function(e,t,n){const r=O(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):D(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return D(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return D(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return D(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?T:0===r?C: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?M:r>=12?A:r>=4?j:I,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 _.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):_.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):D(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):D(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):_.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):_.s(e,t)},S:function(e,t){return _.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return L(r);case"XXXX":case"XX":return F(r);default:return F(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return L(r);case"xxxx":case"xx":return F(r);default:return F(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+R(r,":");default:return"GMT"+F(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+R(r,":");default:return"GMT"+F(r,":")}},t:function(e,t,n){return D(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return D(e.getTime(),t.length)}};function R(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+D(i,2)}function L(e,t){if(e%60==0){return(e>0?"-":"+")+D(Math.abs(e)/60,2)}return F(e,t)}function F(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+D(Math.trunc(r/60),2)+t+D(r%60,2)}const H=(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"})}},B=(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"})}},W={p:B,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return H(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",H(r,t)).replace("{{time}}",B(o,t))}},Y=/^D+$/,U=/^Y+$/,z=["D","DD","YY","YYYY"];function V(e){return Y.test(e)}function q(e){return U.test(e)}function G(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),z.includes(e))throw new RangeError(r)}const K=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,X=/^'([^]*?)'?$/,Q=/''/g,Z=/[a-zA-Z]/;function J(e,t,n){const o=(0,w.q)(),i=n?.locale??o.locale??x.c,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,c=(0,r.a)(e);if(!y(c))throw new RangeError("Invalid time value");let u=t.match($).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,W[t])(e,i.formatLong)}return e})).join("").match(K).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:ee(e)};if(N[t])return{isToken:!0,value:e};if(t.match(Z))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));i.localize.preprocessor&&(u=i.localize.preprocessor(c,u));const l={firstWeekContainsDate:a,weekStartsOn:s,locale:i};return u.map((r=>{if(!r.isToken)return r.value;const o=r.value;(!n?.useAdditionalWeekYearTokens&&q(o)||!n?.useAdditionalDayOfYearTokens&&V(o))&&G(o,t,String(e));return(0,N[o[0]])(c,o,i.localize,l)})).join("")}function ee(e){const t=e.match(X);return t?t[1].replace(Q,"'"):e}function te(){return Object.assign({},(0,w.q)())}function ne(e){return(0,r.a)(e).getHours()}function re(e){let t=(0,r.a)(e).getDay();return 0===t&&(t=7),t}function oe(e){return(0,r.a)(e).getMinutes()}function ie(e){return(0,r.a)(e).getSeconds()}function ae(e,t){const n=t instanceof Date?o(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}class se{subPriority=0;validate(e,t){return!0}}class ce extends se{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 ue extends se{priority=10;subPriority=-1;set(e,t){return t.timestampIsSet?e:o(e,ae(e,Date))}}class le{run(e,t,n,r){const o=this.parse(e,t,n,r);return o?{setter:new ce(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(e,t,n){return!0}}const de=/^(1[0-2]|0?\d)/,fe=/^(3[0-1]|[0-2]?\d)/,pe=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,he=/^(5[0-3]|[0-4]?\d)/,me=/^(2[0-3]|[0-1]?\d)/,ge=/^(2[0-4]|[0-1]?\d)/,ve=/^(1[0-1]|0?\d)/,ye=/^(1[0-2]|0?\d)/,be=/^[0-5]?\d/,we=/^[0-5]?\d/,xe=/^\d/,Oe=/^\d{1,2}/,ke=/^\d{1,3}/,Se=/^\d{1,4}/,Ee=/^-?\d+/,Pe=/^-?\d/,De=/^-?\d{1,2}/,_e=/^-?\d{1,3}/,Ce=/^-?\d{1,4}/,Te=/^([+-])(\d{2})(\d{2})?|Z/,je=/^([+-])(\d{2})(\d{2})|Z/,Ae=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Me=/^([+-])(\d{2}):(\d{2})|Z/,Ie=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Ne(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Re(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Le(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,i=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(o*u+i*c+1e3*a),rest:t.slice(n[0].length)}}function Fe(e){return Re(Ee,e)}function He(e,t){switch(e){case 1:return Re(xe,t);case 2:return Re(Oe,t);case 3:return Re(ke,t);case 4:return Re(Se,t);default:return Re(new RegExp("^\\d{1,"+e+"}"),t)}}function Be(e,t){switch(e){case 1:return Re(Pe,t);case 2:return Re(De,t);case 3:return Re(_e,t);case 4:return Re(Ce,t);default:return Re(new RegExp("^-?\\d{1,"+e+"}"),t)}}function We(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Ye(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 Ue(e){return e%400==0||e%4==0&&e%100!=0}function ze(e,t,n){const o=(0,r.a)(e),i=P(o,n)-t;return o.setDate(o.getDate()-7*i),o}function Ve(e,t){const n=(0,r.a)(e),o=k(n)-t;return n.setDate(n.getDate()-7*o),n}const qe=[31,28,31,30,31,30,31,31,30,31,30,31],Ge=[31,29,31,30,31,30,31,31,30,31,30,31];function Ke(e,t,n){const o=(0,w.q)(),a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,s=(0,r.a)(e),c=s.getDay(),u=7-a;return i(s,t<0||t>6?t-(c+u)%7:((t%7+7)%7+u)%7-(c+u)%7)}function $e(e,t){const n=(0,r.a)(e);return i(n,t-re(n))}const Xe={G:new class extends le{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 le{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 Ne(He(4,e),r);case"yo":return Ne(n.ordinalNumber(e,{unit:"year"}),r);default:return Ne(He(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=Ye(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 le{priority=130;parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return Ne(He(4,e),r);case"Yo":return Ne(n.ordinalNumber(e,{unit:"year"}),r);default:return Ne(He(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const o=S(e,r);if(n.isTwoDigitYear){const t=Ye(n.year,o);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,l.k)(e,r)}const i="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(i,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,l.k)(e,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends le{priority=130;parse(e,t){return Be("R"===t?4:t.length,e)}set(e,t,n){const r=o(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),d(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends le{priority=130;parse(e,t){return Be("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 le{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return He(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 le{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return He(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 le{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 Ne(Re(de,e),r);case"MM":return Ne(He(2,e),r);case"Mo":return Ne(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 le{priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"L":return Ne(Re(de,e),r);case"LL":return Ne(He(2,e),r);case"Lo":return Ne(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 le{priority=100;parse(e,t,n){switch(t){case"w":return Re(he,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return He(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return(0,l.k)(ze(e,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends le{priority=100;parse(e,t,n){switch(t){case"I":return Re(he,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return He(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return d(Ve(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends le{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return Re(fe,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return He(t.length,e)}}validate(e,t){const n=Ue(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=Ge[r]:t>=1&&t<=qe[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 le{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return Re(pe,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return He(t.length,e)}}validate(e,t){return Ue(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 le{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=Ke(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends le{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 Ne(He(t.length,e),o);case"eo":return Ne(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=Ke(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 le{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 Ne(He(t.length,e),o);case"co":return Ne(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=Ke(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 le{priority=90;parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return He(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return Ne(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 Ne(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return Ne(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return Ne(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=$e(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 le{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(We(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends le{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(We(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends le{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(We(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends le{priority=70;parse(e,t,n){switch(t){case"h":return Re(ye,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return He(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 le{priority=70;parse(e,t,n){switch(t){case"H":return Re(me,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return He(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 le{priority=70;parse(e,t,n){switch(t){case"K":return Re(ve,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return He(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 le{priority=70;parse(e,t,n){switch(t){case"k":return Re(ge,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return He(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 le{priority=60;parse(e,t,n){switch(t){case"m":return Re(be,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return He(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 le{priority=50;parse(e,t,n){switch(t){case"s":return Re(we,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return He(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 le{priority=30;parse(e,t){return Ne(He(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 le{priority=10;parse(e,t){switch(t){case"X":return Le(Te,e);case"XX":return Le(je,e);case"XXXX":return Le(Ae,e);case"XXXXX":return Le(Ie,e);default:return Le(Me,e)}}set(e,t,n){return t.timestampIsSet?e:o(e,e.getTime()-h(e)-n)}incompatibleTokens=["t","T","x"]},x:new class extends le{priority=10;parse(e,t){switch(t){case"x":return Le(Te,e);case"xx":return Le(je,e);case"xxxx":return Le(Ae,e);case"xxxxx":return Le(Ie,e);default:return Le(Me,e)}}set(e,t,n){return t.timestampIsSet?e:o(e,e.getTime()-h(e)-n)}incompatibleTokens=["t","T","X"]},t:new class extends le{priority=40;parse(e){return Fe(e)}set(e,t,n){return[o(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends le{priority=20;parse(e){return Fe(e)}set(e,t,n){return[o(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},Qe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ze=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Je=/^'([^]*?)'?$/,et=/''/g,tt=/\S/,nt=/[a-zA-Z]/;function rt(e,t,n,i){const a=te(),s=i?.locale??a.locale??x.c,c=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,u=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(""===t)return""===e?(0,r.a)(n):o(n,NaN);const l={firstWeekContainsDate:c,weekStartsOn:u,locale:s},d=[new ue],f=t.match(Ze).map((e=>{const t=e[0];if(t in W){return(0,W[t])(e,s.formatLong)}return e})).join("").match(Qe),p=[];for(let r of f){!i?.useAdditionalWeekYearTokens&&q(r)&&G(r,t,e),!i?.useAdditionalDayOfYearTokens&&V(r)&&G(r,t,e);const a=r[0],c=Xe[a];if(c){const{incompatibleTokens:t}=c;if(Array.isArray(t)){const e=p.find((e=>t.includes(e.token)||e.token===a));if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${r}\` at the same time`)}else if("*"===c.incompatibleTokens&&p.length>0)throw new RangeError(`The format string mustn't contain \`${r}\` and any other token at the same time`);p.push({token:a,fullToken:r});const i=c.run(e,r,s.match,l);if(!i)return o(n,NaN);d.push(i.setter),e=i.rest}else{if(a.match(nt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if("''"===r?r="'":"'"===a&&(r=r.match(Je)[1].replace(et,"'")),0!==e.indexOf(r))return o(n,NaN);e=e.slice(r.length)}}if(e.length>0&&tt.test(e))return o(n,NaN);const h=d.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>d.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let m=(0,r.a)(n);if(isNaN(m.getTime()))return o(n,NaN);const g={};for(const e of h){if(!e.validate(m,l))return o(n,NaN);const t=e.set(m,g,l);Array.isArray(t)?(m=t[0],Object.assign(g,t[1])):m=t}return o(n,m)}function ot(e,t,n){return y(rt(e,t,new Date,n))}n(18979);function it(e,t){const n=t?.additionalDigits??2,r=function(e){const t={},n=e.split(at.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],at.timeZoneDelimiter.test(t.date)&&(t.date=e.split(at.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=at.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let o;if(r.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,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}(r.date,n);o=function(e,t){if(null===t)return new Date(NaN);const n=e.match(st);if(!n)return new Date(NaN);const r=!!n[4],o=lt(n[1]),i=lt(n[2])-1,a=lt(n[3]),s=lt(n[4]),c=lt(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,i=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+i),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<=(ft[t]||(pt(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(pt(e)?366:365)}(t,o)?(e.setUTCFullYear(t,i,Math.max(o,a)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const i=o.getTime();let a,s=0;if(r.time&&(s=function(e){const t=e.match(ct);if(!t)return NaN;const n=dt(t[1]),r=dt(t[2]),o=dt(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*u+r*c+1e3*o}(r.time),isNaN(s)))return new Date(NaN);if(!r.timezone){const e=new Date(i+s),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return a=function(e){if("Z"===e)return 0;const t=e.match(ut);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*u+o*c)}(r.timezone),isNaN(a)?new Date(NaN):new Date(i+s+a)}const at={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},st=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ct=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ut=/^([+-])(\d{2})(?::?(\d{2}))?$/;function lt(e){return e?parseInt(e):1}function dt(e){return e&&parseFloat(e.replace(",","."))||0}const ft=[31,null,31,30,31,30,31,31,30,31,30,31];function pt(e){return e%400==0||e%4==0&&e%100!=0}function ht(e,t){const n=(0,r.a)(e);return n.setHours(t),n}function mt(e,t){const n=(0,r.a)(e);return n.setMilliseconds(t),n}function gt(e,t){const n=(0,r.a)(e);return n.setMinutes(t),n}function vt(e,t){const n=(0,r.a)(e);return n.setSeconds(t),n}},18979:(e,t,n)=>{"use strict";n.d(t,{R:()=>o});var r=n(92528);function o(e,t,n){return+(0,r.k)(e,n)==+(0,r.k)(t,n)}},67404:(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})},59574:(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})},98094:(e,t,n)=>{"use strict";function r(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[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(a))):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(a)));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;return{value:u,rest:t.slice(a.length)}}}n.d(t,{A:()=>r})},21296:(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],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;return{value:a,rest:t.slice(o.length)}}}n.d(t,{K:()=>r})},44985:(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(67404);const i={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"})},a={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(59574);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(98094);const l={code:"en-US",formatDistance:(e,t,n)=>{let o;const i=r[e];return o="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o},formatLong:i,formatRelative:(e,t,n,r)=>a[e],localize:c,match:{ordinalNumber:(0,n(21296).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}}},92528:(e,t,n)=>{"use strict";n.d(t,{k:()=>i});var r=n(2642),o=n(82695);function i(e,t){const n=(0,o.q)(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=(0,r.a)(e),s=a.getDay(),c=(s<i?7:0)+s-i;return a.setDate(a.getDate()-c),a.setHours(0,0,0,0),a}},2642:(e,t,n)=>{"use strict";function r(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}n.d(t,{a:()=>r})}},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 a[e].call(n.exports,n,n.exports,c),n.loaded=!0,n.exports}c.m=a,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 i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,c.d(o,i),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:"f677923c13b8718424b3",222:"105fdb32443a3da35b6c",262:"e6cd8f05dd79d71862bd",264:"66f1082d2eefcc5e8e2d",310:"9015172a1abd41d36469",389:"4ec64a8ab073482cd020",672:"244385ed506451ec7825",722:"8360fc5f38b8052c71e8",916:"9a187c582b30047b0ad4"}[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={},i="tocco-widget-utils-:",c.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var a,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")==i+n){a=d;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,c.nc&&a.setAttribute("nonce",c.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var f=(t,n)=>{a.onerror=a.onload=null,clearTimeout(p);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),s&&document.head.appendChild(a)}},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={695: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 i=c.p+c.u(t),a=new Error;c.l(i,(n=>{if(c.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in a)c.o(a,r)&&(c.m[r]=a[r]);if(s)s(c)}for(t&&t(n);u<i.length;u++)o=i[u],c.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_widget_utils_=self.webpackChunktocco_widget_utils_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),c.nc=void 0;var u={};return(()=>{"use strict";c.r(u),c.d(u,{app:()=>eL});var e=c(79092),t=c.n(e),n=c(92207),r=c.n(n),o=c(80299),i=c.n(o),a=c(5338),s=c(19461),l="tocco-util/LOG_ERROR",d=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:l,payload:{title:e,description:t,error:n,dateTime:r}}},f=c(11843),p=c(4883),h=c.t(p,2),m=c.n(p),g=c(78418),v=p,y=Symbol.for("react-redux-context"),b="undefined"!=typeof globalThis?globalThis:{};function w(){if(!v.createContext)return{};const e=b[y]??(b[y]=new Map);let t=e.get(v.createContext);return t||(t=v.createContext(null),e.set(v.createContext,t)),t}var x=w(),O=()=>{throw new Error("uSES not initialized!")};var k=Symbol.for("react.element"),S=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),C=Symbol.for("react.context"),T=Symbol.for("react.server_context"),j=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),R=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),j),L=I;function F(e){if("object"==typeof e&&null!==e){const t=e.$$typeof;switch(t){case k:{const n=e.type;switch(n){case E:case D:case P:case A:case M:return n;default:{const e=n&&n.$$typeof;switch(e){case T:case C:case j:case N:case I:case _:return e;default:return t}}}}case S:return t}}}function H(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,c,u,l,d,f=!1;function p(f,p){const h=!i(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=!a(t,u);return u=t,r&&(d=n(u,l,c)),d}():d}return function(o,i){return f?p(o,i):(s=o,c=i,u=e(s,c),l=t(r,c),d=n(u,l,c),f=!0,d)}}function B(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 Y(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 z(e,t,n){return{...n,...e,...t}}function V(e){e()}var q={notify(){},get:()=>[]};function G(e,t){let n,r=q,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){V((()=>{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=q)}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:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,c())},getListeners:()=>r};return u}var K=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),$="undefined"!=typeof navigator&&"ReactNative"===navigator.product,X=K||$?v.useLayoutEffect:v.useEffect;function Q(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Z(e,t){if(Q(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])||!Q(e[n[r]],t[n[r]]))return!1;return!0}var J={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ee={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},te={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ne={[R]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[L]:te};function re(e){return function(e){return F(e)===I}(e)?te:ne[e.$$typeof]||J}var oe=Object.defineProperty,ie=Object.getOwnPropertyNames,ae=Object.getOwnPropertySymbols,se=Object.getOwnPropertyDescriptor,ce=Object.getPrototypeOf,ue=Object.prototype;function le(e,t){if("string"!=typeof t){if(ue){const n=ce(t);n&&n!==ue&&le(e,n)}let n=ie(t);ae&&(n=n.concat(ae(t)));const r=re(e),o=re(t);for(let i=0;i<n.length;++i){const a=n[i];if(!(ee[a]||o&&o[a]||r&&r[a])){const n=se(t,a);try{oe(e,a,n)}catch(e){}}}}return e}var de=O,fe=[null,null];function pe(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function he(e,t){return e===t}var me=function(e,t,n,{pure:r,areStatesEqual:o=he,areOwnPropsEqual:i=Z,areStatePropsEqual:a=Z,areMergedPropsEqual:s=Z,forwardRef:c=!1,context:u=x}={}){const l=u,d=function(e){return e?"function"==typeof e?Y(e):U(e,"mapStateToProps"):B((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?B((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?Y(e):U(e,"mapDispatchToProps"):B((e=>({dispatch:e})))}(t),p=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const s=e(t,n,a);return i?r(s,o)||(o=s):(i=!0,o=s),o}}}(e):U(e,"mergeProps"):()=>z}(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:a,areOwnPropsEqual:i,areMergedPropsEqual:s};function u(t){const[n,o,i]=v.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),a=v.useMemo((()=>l),[n,l]),s=v.useContext(a),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=v.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return H(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[m,g]=v.useMemo((()=>{if(!h)return fe;const e=G(d,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,s]),y=v.useMemo((()=>c?s:{...s,subscription:m}),[c,s,m]),b=v.useRef(void 0),w=v.useRef(i),x=v.useRef(void 0),O=v.useRef(!1),k=v.useRef(!1),S=v.useRef(void 0);X((()=>(k.current=!0,()=>{k.current=!1})),[]);const E=v.useMemo((()=>()=>x.current&&i===w.current?x.current:p(d.getState(),i)),[d,i]),P=v.useMemo((()=>e=>m?function(e,t,n,r,o,i,a,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===i.current?a.current||u():(i.current=n,c.current=n,a.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,O,k,x,g,e):()=>{}),[m]);var D,_,C;let T;D=pe,_=[w,b,O,i,x,g],X((()=>D(..._)),C);try{T=de(P,E,f?()=>p(f(),i):E)}catch(e){throw S.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${S.current.stack}\n\n`),e}X((()=>{S.current=void 0,x.current=void 0,b.current=T}));const j=v.useMemo((()=>v.createElement(e,{...T,ref:o})),[o,e,T]);return v.useMemo((()=>h?v.createElement(a.Provider,{value:y},j):j),[a,j,y])}const m=v.memo(u);if(m.WrappedComponent=e,m.displayName=u.displayName=n,c){const t=v.forwardRef((function(e,t){return v.createElement(m,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,le(t,e)}return le(m,e)}};var ge=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const a=v.useMemo((()=>{const t=G(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}}),[e,r,o,i]),s=v.useMemo((()=>e.getState()),[e]);X((()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]);const c=t||x;return v.createElement(c.Provider,{value:a},n)};var ve;ve=g.useSyncExternalStoreWithSelector,(e=>{de=e})(p.useSyncExternalStore);var ye=c(82274),be=c.n(ye),we=c(65044),xe=c.n(we),Oe=c(65611),ke=c.n(Oe),Se=c(18337),Ee=c.n(Se),Pe=c(56994),De=c.n(Pe),_e=c(5556),Ce=c.n(_e),Te=c(72189),je=c.n(Te),Ae=c(92648),Me=c(87716),Ie=c(39316);const Ne=function(e){return(0,Ie.A)(e)};const Re={shouldForwardProp:function(e,t){return"string"!=typeof t||Ne(e)},isPropValid:Ne};var Le,Fe,He=c(17656),Be=(0,Me.AH)(Le||(Le=je()(["\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,He.Ed)(),He.w4.color("text"),He.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)(Ae.N_).withConfig({shouldForwardProp:function(e){return Re.isPropValid(e)||"state"===e}})(Fe||(Fe=je()(["\n &:link,\n &:visited {\n color: ","; /* nice2 reset */\n }\n ","\n"])),He.t7.color("text"),Be);var Ye,Ue=c(26396),ze=c.n(Ue),Ve=c(39892),qe=c.n(Ve),Ge=c(47850),Ke=c(74848);function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qe=(0,p.lazy)((function(){return c.e(389).then(c.bind(c,68389))}));const Ze=function(e){return(0,Ke.jsx)(p.Suspense,{fallback:Ye||(Ye=(0,Ke.jsx)(m().Fragment,{})),children:(0,Ke.jsx)(Qe,Xe({},e))})};var Je=c(22056),et=c.n(Je);function tt(e,t){var n=(0,p.useState)(e),r=et()(n,2),o=r[0],i=r[1];return(0,p.useEffect)((function(){var n=setTimeout((function(){i(e)}),t);return function(){clearTimeout(n)}}),[e,t]),[o,i]}function nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ot=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 m().forwardRef((function(r,o){var i=r.value,a=(0,p.useState)(i),s=et()(a,2),c=s[0],u=s[1],l=tt(c,t),d=et()(l,2),f=d[0],h=d[1],m=(0,p.useRef)(i),g=r[n];return(0,p.useEffect)((function(){c!==i&&c===f&&(u(i),m.current=i,h(i))}),[i]),(0,p.useEffect)((function(){g&&m.current!==f&&(g(f),m.current=f)}),[f,g]),(0,Ke.jsx)(e,rt(rt(rt({},r),{},{value:c},ze()({},n,u)),{},{ref:o}))}))};var it="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,at=function(){return"matchMedia"in window&&window.matchMedia("(pointer: coarse)").matches};const st=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,p.useEffect)((function(){if(!t.disabled&&e.current&&!at()){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 ct=function(){var e=(0,p.useState)(),t=et()(e,2),n=t[0],r=t[1],o=(0,p.useRef)(),i=(0,p.useCallback)((function(e){if(Array.isArray(e)){var t=e[0];r(t.contentRect)}}),[]),a=(0,p.useCallback)((function(e){e&&(o.current=new ResizeObserver((function(e){return i(e)})),o.current.observe(e))}),[i]);return(0,p.useEffect)((function(){return function(){o.current&&(o.current.disconnect(),o.current=null)}}),[]),[a,n]};const ut={useAutofocus:st,useDebounce:tt,Debouncer:ot,useUserActive:function(e){var t=(0,p.useRef)(null),n=(0,p.useState)(null),r=et()(n,2),o=r[0],i=r[1],a=(0,p.useCallback)((function(){o>0&&(t.current=setTimeout((function(){e()}),o))}),[o,e]),s=(0,p.useCallback)((function(){t.current&&clearTimeout(t.current)}),[]);return(0,p.useEffect)((function(){return s(),window.addEventListener("mousemove",a,{once:!0}),window.addEventListener("touchstart",a,{once:!0}),function(){s()}}),[s,a]),[i,s,a]},usePrevious:function(e){var t=(0,p.useRef)();return(0,p.useEffect)((function(){t.current=e}),[e]),t.current},useDidUpdate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,p.useRef)(!1);(0,p.useEffect)((function(){n.current?e():n.current=!0}),t)},useResizeObserver:ct};var lt="hidden",dt="responsive",ft={labelVisibility:dt},pt=m().createContext(ft);var ht,mt,gt,vt,yt,bt,wt,xt=(0,Me.AH)(vt||(vt=je()(["\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"])),He.w4.radii("button"),He.hs.space(-1.38),He.hs.space(-2.1),He.hs.space(0),(0,He.Ed)(),(function(e){return e.withoutBackground?(0,Me.AH)(gt||(gt=je()(["\n background: transparent;\n"]))):(0,He.x5)(e)}),(function(e){return function(e){var t=e.dense,n=e.theme;return t?(0,Me.AH)(ht||(ht=je()(["\n line-height: ",";\n padding: "," ",";\n "])),He.w4.lineHeight("dense")({theme:n}),He.hs.space(-3.5)({theme:n}),He.hs.space(-1.5)({theme:n})):null}(e)}),(function(e){return n=(t=e).iconOnly,r=t.removePadding,n||r?(0,Me.AH)(mt||(mt=je()(["\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===He.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(Ot," {\n display: none;\n }\n ");return t&&n===lt?r:t&&n===dt&&"\n @media screen and (max-width: 1024px) {\n ".concat(r,"\n }\n ")})),Ot=Me.Ay.span.withConfig({displayName:"StyledLabelWrapper"})(yt||(yt=je()([""]))),kt=Me.Ay.button.withConfig({displayName:"StyledButton"})(bt||(bt=je()(["\n ","\n"])),xt);Me.Ay.div.withConfig({displayName:"StyledStickyButtonWrapper"})(wt||(wt=je()(["\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"])),He.hs.space(0),He.t7.color("paper"),(function(e){return"LEFT"===e.position?"flex-start":"flex-end"}),kt);const St=kt;function Et(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 Pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Dt=m().forwardRef((function(e,t){var n=e.aria,r=e.ink,o=e.label,i=e.icon,a=e.pending,s=e.look,c=void 0===s?He.xX.look.FLAT:s,u=e.iconPosition,l=void 0===u?He.xX.position.PREPEND:u,d=e.type,f=void 0===d?"button":d,h=e.iconOnly,m=e.children,g=(0,p.useContext)(pt).labelVisibility;return(0,Ke.jsxs)(St,Pt(Pt(Pt({ref:t},n),e),{},{ink:r||He.xX.ink.BASE,"data-cy":e["data-cy"],title:o,labelVisibility:g,type:f,children:[i&&!a&&(0,Ke.jsx)(Ge.A,{icon:i}),a&&(0,Ke.jsx)(Ze,{ink:r||He.xX.ink.BASE,look:c,position:l,size:"1em"}),!h&&o?(0,Ke.jsx)(Ot,{children:o}):m||""]}))}));var _t;(0,Me.Ay)(Ae.N_).withConfig({shouldForwardProp:Re.isPropValid}).withConfig({displayName:"StyledRouterLinkButton"})(_t||(_t=je()(["\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"])),He.t7.color("text"),xt);var Ct,Tt;const jt=Me.Ay.button.withConfig({displayName:"StyledButton"})(Tt||(Tt=je()(["\n ","\n ","\n ","\n cursor: pointer;\n"])),(0,He.Ed)(),He.x5,(function(){return(0,Me.AH)(Ct||(Ct=je()(["\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"])),He.hs.space(-3),He.w4.fontSize("base"),He.w4.lineHeight("regular"),He.hs.space(-3))}));function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?At(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var It=m().forwardRef((function(e,t){return(0,Ke.jsx)(jt,Mt(Mt({ref:t,type:"button"},e),{},{children:(0,Ke.jsx)(Ge.A,{icon:e.icon})}))}));It.propTypes={disabled:Ce().bool,icon:Ce().string.isRequired,ink:He.xX.inkPropTypes,look:Ce().oneOf([He.xX.look.FLAT,He.xX.look.RAISED]),onClick:Ce().func,title:Ce().string,tabIndex:Ce().number,"data-cy":Ce().string};const Nt=It;var Rt,Lt,Ft,Ht,Bt=c(21259),Wt=c.n(Bt),Yt=c(49859),Ut=c.n(Yt),zt=c(52098),Vt=c.n(zt),qt=c(30115),Gt=c.n(qt),Kt=c(45228),$t=c.n(Kt),Xt="bodyAttributes",Qt="htmlAttributes",Zt="titleAttributes",Jt={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},en=(Object.keys(Jt).map((function(e){return Jt[e]})),"charset"),tn="cssText",nn="href",rn="http-equiv",on="innerHTML",an="itemprop",sn="name",cn="property",un="rel",ln="src",dn="target",fn={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},pn="defaultTitle",hn="defer",mn="encodeSpecialCharacters",gn="onChangeClientState",vn="titleTemplate",yn=Object.keys(fn).reduce((function(e,t){return e[fn[t]]=t,e}),{}),bn=[Jt.NOSCRIPT,Jt.SCRIPT,Jt.STYLE],wn="data-react-helmet",xn="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},On=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}}(),kn=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},Sn=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},En=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},Pn=function(e){var t=jn(e,Jt.TITLE),n=jn(e,vn);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=jn(e,pn);return t||r||void 0},Dn=function(e){return jn(e,gn)||function(){}},_n=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return kn({},e,t)}),{})},Cn=function(e,t){return t.filter((function(e){return void 0!==e[Jt.BASE]})).map((function(e){return e[Jt.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},Tn=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&Rn("Helmet: "+e+' should be of type "Array". Instead found type "'+xn(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,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a],c=s.toLowerCase();-1===t.indexOf(c)||n===un&&"canonical"===e[n].toLowerCase()||c===un&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(s)||s!==on&&s!==tn&&s!==an||(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 i=Object.keys(o),a=0;a<i.length;a++){var s=i[a],c=$t()({},r[s],o[s]);r[s]=c}return e}),[]).reverse()},jn=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},An=(Rt=Date.now(),function(e){var t=Date.now();t-Rt>16?(Rt=t,e(t)):setTimeout((function(){An(e)}),0)}),Mn=function(e){return clearTimeout(e)},In="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||An:c.g.requestAnimationFrame||An,Nn="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Mn:c.g.cancelAnimationFrame||Mn,Rn=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},Ln=null,Fn=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,d=e.title,f=e.titleAttributes;Wn(Jt.BODY,r),Wn(Jt.HTML,o),Bn(d,f);var p={baseTag:Yn(Jt.BASE,n),linkTags:Yn(Jt.LINK,i),metaTags:Yn(Jt.META,a),noscriptTags:Yn(Jt.NOSCRIPT,s),scriptTags:Yn(Jt.SCRIPT,u),styleTags:Yn(Jt.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)},Hn=function(e){return Array.isArray(e)?e.join(""):e},Bn=function(e,t){void 0!==e&&document.title!==e&&(document.title=Hn(e)),Wn(Jt.TITLE,t)},Wn=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(wn),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s++){var c=a[s],u=t[c]||"";n.getAttribute(c)!==u&&n.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=i.indexOf(c);-1!==l&&i.splice(l,1)}for(var d=i.length-1;d>=0;d--)n.removeAttribute(i[d]);o.length===i.length?n.removeAttribute(wn):n.getAttribute(wn)!==a.join(",")&&n.setAttribute(wn,a.join(","))}},Yn=function(e,t){var n=document.head||document.querySelector(Jt.HEAD),r=n.querySelectorAll(e+"["+wn+"]"),o=Array.prototype.slice.call(r),i=[],a=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===on)n.innerHTML=t.innerHTML;else if(r===tn)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(wn,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},Un=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}),"")},zn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[fn[n]||n]=e[n],t}),t)},Vn=function(e,t,n){switch(e){case Jt.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[wn]=!0,o=zn(n,r),[m().createElement(Jt.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=Un(n),i=Hn(t);return o?"<"+e+" "+wn+'="true" '+o+">"+En(i,r)+"</"+e+">":"<"+e+" "+wn+'="true">'+En(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case Xt:case Qt:return{toComponent:function(){return zn(t)},toString:function(){return Un(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[wn]=!0,r);return Object.keys(t).forEach((function(e){var n=fn[e]||e;if(n===on||n===tn){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),m().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===on||e===tn)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+En(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===bn.indexOf(e);return t+"<"+e+" "+wn+'="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},qn=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.scriptTags,u=e.styleTags,l=e.title,d=void 0===l?"":l,f=e.titleAttributes;return{base:Vn(Jt.BASE,t,r),bodyAttributes:Vn(Xt,n,r),htmlAttributes:Vn(Qt,o,r),link:Vn(Jt.LINK,i,r),meta:Vn(Jt.META,a,r),noscript:Vn(Jt.NOSCRIPT,s,r),script:Vn(Jt.SCRIPT,c,r),style:Vn(Jt.STYLE,u,r),title:Vn(Jt.TITLE,{title:d,titleAttributes:f},r)}},Gn=Vt()((function(e){return{baseTag:Cn([nn,dn],e),bodyAttributes:_n(Xt,e),defer:jn(e,hn),encode:jn(e,mn),htmlAttributes:_n(Qt,e),linkTags:Tn(Jt.LINK,[un,nn],e),metaTags:Tn(Jt.META,[sn,en,rn,cn,an],e),noscriptTags:Tn(Jt.NOSCRIPT,[on],e),onChangeClientState:Dn(e),scriptTags:Tn(Jt.SCRIPT,[ln,on],e),styleTags:Tn(Jt.STYLE,[tn],e),title:Pn(e),titleAttributes:_n(Zt,e)}}),(function(e){Ln&&Nn(Ln),e.defer?Ln=In((function(){Fn(e,(function(){Ln=null}))})):(Fn(e),Ln=null)}),qn)((function(){return null})),Kn=(Lt=Gn,Ht=Ft=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!Gt()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case Jt.SCRIPT:case Jt.NOSCRIPT:return{innerHTML:t};case Jt.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,i=e.nestedChildren;return kn({},r,((t={})[n.type]=[].concat(r[n.type]||[],[kn({},o,this.mapNestedChildrenToProps(n,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case Jt.TITLE:return kn({},o,((t={})[r.type]=a,t.titleAttributes=kn({},i),t));case Jt.BODY:return kn({},o,{bodyAttributes:kn({},i)});case Jt.HTML:return kn({},o,{htmlAttributes:kn({},i)})}return kn({},o,((n={})[r.type]=kn({},i),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=kn({},t);return Object.keys(e).forEach((function(t){var r;n=kn({},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 m().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[yn[n]||n]=e[n],t}),t)}(Sn(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case Jt.LINK:case Jt.META:case Jt.NOSCRIPT:case Jt.SCRIPT:case Jt.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=Sn(e,["children"]),r=kn({},n);return t&&(r=this.mapChildrenToProps(t,r)),m().createElement(Lt,r)},On(t,null,[{key:"canUseDOM",set:function(e){Lt.canUseDOM=e}}]),t}(m().Component),Ft.propTypes={base:Ut().object,bodyAttributes:Ut().object,children:Ut().oneOfType([Ut().arrayOf(Ut().node),Ut().node]),defaultTitle:Ut().string,defer:Ut().bool,encodeSpecialCharacters:Ut().bool,htmlAttributes:Ut().object,link:Ut().arrayOf(Ut().object),meta:Ut().arrayOf(Ut().object),noscript:Ut().arrayOf(Ut().object),onChangeClientState:Ut().func,script:Ut().arrayOf(Ut().object),style:Ut().arrayOf(Ut().object),title:Ut().string,titleAttributes:Ut().object,titleTemplate:Ut().string},Ft.defaultProps={defer:!0,encodeSpecialCharacters:!0},Ft.peek=Lt.peek,Ft.rewind=function(){var e=Lt.rewind();return e||(e=qn({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},Ht);Kn.renderStatic=Kn.rewind;var $n=c(42838),Xn=c.n($n),Qn=["border","border-spacing","padding","margin","text-align","width"];Xn().addHook("afterSanitizeAttributes",(function(e){if(e&&!(e instanceof SVGElement)&&"function"==typeof e.hasAttribute&&e.hasAttribute("style")){var t=function(e){return Qn.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 Zn=function(e){return e?Xn().sanitize(e,{FORBID_TAGS:["style"],ADD_ATTR:["target"]}):e},Jn={sanitizeHtml:Zn};var er=c(98166),tr=c(85735),nr=c.n(tr),rr=c(2404),or=c.n(rr),ir=c(69752),ar=c.n(ir),sr=function(e){return"object"===nr()(e)&&null!==e},cr=function(e,t){return ar()(e,(function(e,n,r){or()(n,t[r])||(e[r]=sr(n)&&sr(t[r])?cr(n,t[r]):n)}))};const ur={difference:cr,getOrFirst:er.Yd,adjustedHTMLString:function(e){return e?e.replace(/­/g,""):e},roundDecimalPlaces:er.O5,copyToClipboard:er.lW,isDefined:er.O9};var lr=c(60284),dr={error:"exclamation-circle",home:"house-blank"},fr=function(e){return dr[e]||e};const pr=function(e){var t=e.type;return t&&"record"!==t?(0,Ke.jsx)(Ge.A,{icon:fr(t)}):null};var hr,mr,gr,vr,yr,br,wr=["component"],xr=Me.Ay.div.withConfig({displayName:"StyledBreadcrumbs"})(hr||(hr=je()(["\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||He.w4.color("backgroundBreadcrumbs")(e)}),He.hs.space(-.7),He.hs.space(.39)),Or=(0,Me.Ay)((function(e){var t=e.component,n=qe()(e,wr);return m().cloneElement(t,n)})).withConfig({displayName:"StyledBreadcrumbsLink"})(mr||(mr=je()(["\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"])),He.w4.fontWeight("bold"),(function(e){return e.active&&He.w4.color("breadcrumbsActive")}),He.w4.fontWeight("bold"),(function(e){return e.active&&He.w4.color("breadcrumbsActive")}),He.w4.color("secondaryLight"),He.w4.color("breadcrumbsActive")),kr=Me.Ay.span.withConfig({displayName:"StyledBreadcrumbsTitle"})(gr||(gr=je()(["\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"])),He.w4.fontWeight("bold"),(function(e){return e.active&&He.w4.color("breadcrumbsActive")}),He.w4.fontWeight("bold"),(function(e){return e.active&&He.w4.color("breadcrumbsActive")}),He.w4.color("breadcrumbsActive")),Sr=(0,Me.Ay)(lr.oY).withConfig({displayName:"StyledBreadcrumbSeparator"})(vr||(vr=je()(["\n margin-left: ",";\n margin-right: ",";\n"])),He.hs.space(-2),He.hs.space(-2)),Er=Me.Ay.span.withConfig({displayName:"StyledBreadcrumbWrapper"})(yr||(yr=je()(["\n "," {\n margin-right: ",";\n }\n"])),Ge.i,He.hs.space(-1));const Pr=function(){return br||(br=(0,Ke.jsx)(Sr,{breakWords:!0,children:(0,Ke.jsx)(Ge.A,{icon:"chevron-right"})}))};var Dr;function _r(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 Cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_r(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tr=function(e){return e.title||e.display},jr=function(e,t){if(!e||0===e.length)return"Tocco";var n=e.at(-1),r="";switch(n.type){case"create":r="".concat(Tr(n)," - ").concat(t);break;case"detail":r=e.slice(e.length-2).map(Tr).join(" - ");break;default:r=Tr(n)}return ur.adjustedHTMLString(r)};const Ar=function(e){var t,n=e.intl,r=e.pathPrefix,o=void 0===r?"":r,i=e.breadcrumbsInfo,a=void 0===i?[]:i,s=e.currentView,c=e.backgroundColor,u=e.onClick,l=e.linkComp,d=e.updateDocumentTitle,f=[].concat(Wt()(a),Wt()(s?[s]:[]));if(0===f.length)return null;var p,h=f.map((function(e,n){var r,i=e.display||"",a=n===f.length-1?kr:Or,s=n===f.length-1&&{active:"true"},c=void 0!==e.path?{to:"".concat(o,"/").concat(e.path),state:e.state}:{},d=l?t||(t=(0,Ke.jsx)(l,{})):Dr||(Dr=(0,Ke.jsx)(We,{}));return(0,Ke.jsx)(lr.Ay.Span,{children:(0,Ke.jsx)(Er,{children:(0,Ke.jsxs)(a,Cr(Cr(Cr({neutral:!0},s),c),{},{onClick:(r=e,function(){u&&!1!==r.clickable&&u(r)}),component:d,children:[(0,Ke.jsx)(pr,{type:e.type}),(0,Ke.jsx)("span",{"data-cy":"breadcrumb-item",dangerouslySetInnerHTML:{__html:Jn.sanitizeHtml(i)}})]}))})},"breadcrumbItem-".concat(n))})).reduce((function(e,t,n){return[e,(0,Ke.jsx)(Pr,{},"icon".concat(n)),t]}));return(0,Ke.jsxs)(xr,{backgroundColor:c,children:[d?(0,Ke.jsx)(Kn,{defer:!1,children:(0,Ke.jsx)("title",{children:jr(f,(p="client.component.breadcrumbs.createTitle",n.formatMessage({id:p})))})}):null,(0,Ke.jsx)(Ke.Fragment,{children:h})]})};(0,f.injectIntl)(Ar);var Mr,Ir,Nr=Me.Ay.div.withConfig({displayName:"StyledWrapper"})(Mr||(Mr=je()(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,He.Ed)(),(function(e){return e.theme.colors.signal.danger}),He.t7.color("paper"),He.hs.space(-.5));const Rr=function(){return Ir||(Ir=(0,Ke.jsx)(Nr,{children:(0,Ke.jsx)(f.FormattedMessage,{id:"client.component.errorBoundary.text"})}))};var Lr;const Fr=Me.Ay.div.withConfig({displayName:"StyledButtonGroup"})(Lr||(Lr=je()(["\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"])),St);var Hr=m().forwardRef((function(e,t){return(0,Ke.jsx)(Fr,{ref:t,children:e.children})}));Hr.propTypes={children:Ce().node};const Br=Hr;var Wr=c(90179),Yr=c.n(Wr),Ur=c(62193),zr=c.n(Ur),Vr=(c(62243),c(36193)),qr=c.n(Vr),Gr=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},Kr=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},$r={outline:"none"},Xr=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,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=Kr(this,e.call.apply(e,[this].concat(i))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=m().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)},Kr(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?m().cloneElement(e({focused:t,getRef:this.ref}),n):m().createElement("div",Gr({ref:this.ref,style:$r},n),e)},t}(m().Component);Xr.propTypes={children:qr().oneOfType([qr().node,qr().func]).isRequired,onBlur:qr().func,onFocus:qr().func},Xr.defaultProps={onBlur:function(){},onFocus:function(){}};const Qr=Xr;var Zr,Jr,eo,to,no,ro,oo,io,ao=c(88357),so=(0,Me.AH)(Zr||(Zr=je()(["\n align-items: center;\n cursor: ",";\n display: flex;\n width: 100%;\n"])),(function(e){return e.immutable&&"text"})),co=Me.Ay.label.withConfig({displayName:"StyledEditableWrapper"})(Jr||(Jr=je()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),so),uo=(0,Me.AH)(eo||(eo=je()(["\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,He.Ed)({color:He.t7.color("text")})}),He.t7.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),lo=(0,Me.AH)(to||(to=je()(["\n display: flex;\n align-items: center;\n"]))),fo=Me.Ay.div.withConfig({displayName:"StyledEditableControl"})(no||(no=je()(["\n &&& {\n ","\n }\n"])),lo),po=(Me.Ay.span.withConfig({displayName:"StyledEditableValue"})(ro||(ro=je()(["\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"])),He.t7.color("signal.danger")),c(58156)),ho=c.n(po),mo=Me.Ay.div.withConfig({displayName:"StyledLocationEdit"})(oo||(oo=je()(["\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__container {\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"])),so,He.hs.space(-2),He.hs.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?ho()(n,"colors.textDisabled"):ho()(n,"colors.text")}),fo,uo,He.t7.color("paper"),He.t7.color("signal.info"),He.t7.color("secondaryLight"),He.t7.color("backgroundItemHover"));(0,Me.Ay)(mo).withConfig({displayName:"StyledAddressEdit"})(io||(io=je()(["\n && {\n div {\n :nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n }\n"])));c(69843);var go=c(7350),vo=c.n(go);function yo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bo(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 wo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bo(Object(n),!0).forEach((function(t){yo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xo(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 Oo(e,t){if(e){if("string"==typeof e)return xo(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)?xo(e,t):void 0}}function ko(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,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||Oo(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 So(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Eo=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Po(){return Po=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},Po.apply(this,arguments)}function Do(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 _o(e,t){return _o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_o(e,t)}function Co(e){return Co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Co(e)}function To(e){return To="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},To(e)}function jo(e,t){if(t&&("object"===To(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 Ao(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=Co(e);if(t){var o=Co(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jo(this,n)}}function Mo(e){return function(e){if(Array.isArray(e))return xo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Oo(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 Io=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}(),No="-ms-",Ro="-moz-",Lo="-webkit-",Fo="comm",Ho="rule",Bo="decl",Wo="@keyframes",Yo=Math.abs,Uo=String.fromCharCode,zo=Object.assign;function Vo(e){return e.trim()}function qo(e,t,n){return e.replace(t,n)}function Go(e,t){return e.indexOf(t)}function Ko(e,t){return 0|e.charCodeAt(t)}function $o(e,t,n){return e.slice(t,n)}function Xo(e){return e.length}function Qo(e){return e.length}function Zo(e,t){return t.push(e),e}var Jo=1,ei=1,ti=0,ni=0,ri=0,oi="";function ii(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Jo,column:ei,length:a,return:""}}function ai(e,t){return zo(ii("",null,null,"",null,null,0),e,{length:-e.length},t)}function si(){return ri=ni>0?Ko(oi,--ni):0,ei--,10===ri&&(ei=1,Jo--),ri}function ci(){return ri=ni<ti?Ko(oi,ni++):0,ei++,10===ri&&(ei=1,Jo++),ri}function ui(){return Ko(oi,ni)}function li(){return ni}function di(e,t){return $o(oi,e,t)}function fi(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 pi(e){return Jo=ei=1,ti=Xo(oi=e),ni=0,[]}function hi(e){return oi="",e}function mi(e){return Vo(di(ni-1,yi(91===e?e+2:40===e?e+1:e)))}function gi(e){for(;(ri=ui())&&ri<33;)ci();return fi(e)>2||fi(ri)>3?"":" "}function vi(e,t){for(;--t&&ci()&&!(ri<48||ri>102||ri>57&&ri<65||ri>70&&ri<97););return di(e,li()+(t<6&&32==ui()&&32==ci()))}function yi(e){for(;ci();)switch(ri){case e:return ni;case 34:case 39:34!==e&&39!==e&&yi(ri);break;case 40:41===e&&yi(e);break;case 92:ci()}return ni}function bi(e,t){for(;ci()&&e+ri!==57&&(e+ri!==84||47!==ui()););return"/*"+di(t,ni-1)+"*"+Uo(47===e?e:ci())}function wi(e){for(;!fi(ui());)ci();return di(e,ni)}function xi(e){return hi(Oi("",null,null,null,[""],e=pi(e),0,[0],e))}function Oi(e,t,n,r,o,i,a,s,c){for(var u=0,l=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,y=0,b="",w=o,x=i,O=r,k=b;g;)switch(h=y,y=ci()){case 40:if(108!=h&&58==Ko(k,d-1)){-1!=Go(k+=qo(mi(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=mi(y);break;case 9:case 10:case 13:case 32:k+=gi(h);break;case 92:k+=vi(li()-1,7);continue;case 47:switch(ui()){case 42:case 47:Zo(Si(bi(ci(),li()),t,n),c);break;default:k+="/"}break;case 123*m:s[u++]=Xo(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+l:p>0&&Xo(k)-d&&Zo(p>32?Ei(k+";",r,n,d-1):Ei(qo(k," ","")+";",r,n,d-2),c);break;case 59:k+=";";default:if(Zo(O=ki(k,t,n,u,l,o,s,b,w=[],x=[],d),i),123===y)if(0===l)Oi(k,t,O,O,w,i,d,s,x);else switch(99===f&&110===Ko(k,3)?100:f){case 100:case 109:case 115:Oi(e,O,O,r&&Zo(ki(e,O,O,0,0,o,s,b,o,w=[],d),x),o,x,d,s,r?w:x);break;default:Oi(k,O,O,O,[""],x,0,s,x)}}u=l=p=0,m=v=1,b=k="",d=a;break;case 58:d=1+Xo(k),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==si())continue;switch(k+=Uo(y),y*m){case 38:v=l>0?1:(k+="\f",-1);break;case 44:s[u++]=(Xo(k)-1)*v,v=1;break;case 64:45===ui()&&(k+=mi(ci())),f=ui(),l=d=Xo(b=k+=wi(li())),y++;break;case 45:45===h&&2==Xo(k)&&(m=0)}}return i}function ki(e,t,n,r,o,i,a,s,c,u,l){for(var d=o-1,f=0===o?i:[""],p=Qo(f),h=0,m=0,g=0;h<r;++h)for(var v=0,y=$o(e,d+1,d=Yo(m=a[h])),b=e;v<p;++v)(b=Vo(m>0?f[v]+" "+y:qo(y,/&\f/g,f[v])))&&(c[g++]=b);return ii(e,t,n,0===o?Ho:s,c,u,l)}function Si(e,t,n){return ii(e,t,n,Fo,Uo(ri),$o(e,2,-2),0)}function Ei(e,t,n,r){return ii(e,t,n,Bo,$o(e,0,r),$o(e,r+1,-1),r)}function Pi(e,t){for(var n="",r=Qo(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Di(e,t,n,r){switch(e.type){case"@import":case Bo:return e.return=e.return||e.value;case Fo:return"";case Wo:return e.return=e.value+"{"+Pi(e.children,r)+"}";case Ho:e.value=e.props.join(",")}return Xo(n=Pi(e.children,r))?e.return=e.value+"{"+n+"}":""}var _i=function(e,t,n){for(var r=0,o=0;r=o,o=ui(),38===r&&12===o&&(t[n]=1),!fi(o);)ci();return di(e,ni)},Ci=function(e,t){return hi(function(e,t){var n=-1,r=44;do{switch(fi(r)){case 0:38===r&&12===ui()&&(t[n]=1),e[n]+=_i(ni-1,t,n);break;case 2:e[n]+=mi(r);break;case 4:if(44===r){e[++n]=58===ui()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Uo(r)}}while(r=ci());return e}(pi(e),t))},Ti=new WeakMap,ji=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)||Ti.get(n))&&!r){Ti.set(e,!0);for(var o=[],i=Ci(t,o),a=n.props,s=0,c=0;s<i.length;s++)for(var u=0;u<a.length;u++,c++)e.props[c]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},Ai=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Mi(e,t){switch(function(e,t){return 45^Ko(e,0)?(((t<<2^Ko(e,0))<<2^Ko(e,1))<<2^Ko(e,2))<<2^Ko(e,3):0}(e,t)){case 5103:return Lo+"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 Lo+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Lo+e+Ro+e+No+e+e;case 6828:case 4268:return Lo+e+No+e+e;case 6165:return Lo+e+No+"flex-"+e+e;case 5187:return Lo+e+qo(e,/(\w+).+(:[^]+)/,Lo+"box-$1$2"+No+"flex-$1$2")+e;case 5443:return Lo+e+No+"flex-item-"+qo(e,/flex-|-self/,"")+e;case 4675:return Lo+e+No+"flex-line-pack"+qo(e,/align-content|flex-|-self/,"")+e;case 5548:return Lo+e+No+qo(e,"shrink","negative")+e;case 5292:return Lo+e+No+qo(e,"basis","preferred-size")+e;case 6060:return Lo+"box-"+qo(e,"-grow","")+Lo+e+No+qo(e,"grow","positive")+e;case 4554:return Lo+qo(e,/([^-])(transform)/g,"$1"+Lo+"$2")+e;case 6187:return qo(qo(qo(e,/(zoom-|grab)/,Lo+"$1"),/(image-set)/,Lo+"$1"),e,"")+e;case 5495:case 3959:return qo(e,/(image-set\([^]*)/,Lo+"$1$`$1");case 4968:return qo(qo(e,/(.+:)(flex-)?(.*)/,Lo+"box-pack:$3"+No+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Lo+e+e;case 4095:case 3583:case 4068:case 2532:return qo(e,/(.+)-inline(.+)/,Lo+"$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(Xo(e)-1-t>6)switch(Ko(e,t+1)){case 109:if(45!==Ko(e,t+4))break;case 102:return qo(e,/(.+:)(.+)-([^]+)/,"$1"+Lo+"$2-$3$1"+Ro+(108==Ko(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Go(e,"stretch")?Mi(qo(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ko(e,t+1))break;case 6444:switch(Ko(e,Xo(e)-3-(~Go(e,"!important")&&10))){case 107:return qo(e,":",":"+Lo)+e;case 101:return qo(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Lo+(45===Ko(e,14)?"inline-":"")+"box$3$1"+Lo+"$2$3$1"+No+"$2box$3")+e}break;case 5936:switch(Ko(e,t+11)){case 114:return Lo+e+No+qo(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Lo+e+No+qo(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Lo+e+No+qo(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Lo+e+No+e+e}return e}var Ii=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Bo:e.return=Mi(e.value,e.length);break;case Wo:return Pi([ai(e,{value:qo(e.value,"@","@"+Lo)})],r);case Ho: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 Pi([ai(e,{props:[qo(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Pi([ai(e,{props:[qo(t,/:(plac\w+)/,":"+Lo+"input-$1")]}),ai(e,{props:[qo(t,/:(plac\w+)/,":-moz-$1")]}),ai(e,{props:[qo(t,/:(plac\w+)/,No+"input-$1")]})],r)}return""}))}}];const Ni=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||Ii;var o,i,a={},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++)a[t[n]]=!0;s.push(e)}));var c,u,l,d,f=[Di,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[ji,Ai].concat(r,f),l=Qo(u),function(e,t,n,r){for(var o="",i=0;i<l;i++)o+=u[i](e,t,n,r)||"";return o});i=function(e,t,n,r){c=n,function(e){Pi(xi(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Io({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return h.sheet.hydrate(s),h};c(4146);var Ri=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};const Li=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 Fi={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 Hi=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}};var Bi=/[A-Z]|^ms/g,Wi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Yi=function(e){return 45===e.charCodeAt(1)},Ui=function(e){return null!=e&&"boolean"!=typeof e},zi=Hi((function(e){return Yi(e)?e:e.replace(Bi,"-$&").toLowerCase()})),Vi=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Wi,(function(e,t,n){return Gi={name:t,styles:n,next:Gi},t}))}return 1===Fi[e]||Yi(e)||"number"!=typeof t||0===t?t:t+"px"};function qi(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 Gi={name:n.name,styles:n.styles,next:Gi},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Gi={name:r.name,styles:r.styles,next:Gi},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+=qi(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Ui(a)&&(r+=zi(i)+":"+Vi(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=qi(e,t,a);switch(i){case"animation":case"animationName":r+=zi(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var c=0;c<a.length;c++)Ui(a[c])&&(r+=zi(i)+":"+Vi(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Gi,i=n(e);return Gi=o,qi(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Gi,Ki=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var $i=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="";Gi=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=qi(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=qi(n,t,e[a]),r&&(o+=i[a]);Ki.lastIndex=0;for(var s,c="";null!==(s=Ki.exec(o));)c+="-"+s[1];return{name:Li(o)+c,styles:o,next:Gi}},Xi=!!p.useInsertionEffect&&p.useInsertionEffect,Qi=Xi||function(e){return e()},Zi={}.hasOwnProperty,Ji=(0,p.createContext)("undefined"!=typeof HTMLElement?Ni({key:"css"}):null);Ji.Provider;var ea=function(e){return(0,p.forwardRef)((function(t,n){var r=(0,p.useContext)(Ji);return e(t,r,n)}))},ta=(0,p.createContext)({});var na="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ra=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Ri(t,n,r);Qi((function(){return function(e,t,n){Ri(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},oa=ea((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[na],i=[r],a="";"string"==typeof e.className?a=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,i,e.className):null!=e.className&&(a=e.className+" ");var s=$i(i,void 0,(0,p.useContext)(ta));a+=t.key+"-"+s.name;var c={};for(var u in e)Zi.call(e,u)&&"css"!==u&&u!==na&&(c[u]=e[u]);return c.ref=n,c.className=a,(0,p.createElement)(p.Fragment,null,(0,p.createElement)(ra,{cache:t,serialized:s,isStringTag:"string"==typeof o}),(0,p.createElement)(o,c))}));var ia=function(e,t){var n=arguments;if(null==t||!Zi.call(t,"css"))return p.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=oa,o[1]=function(e,t){var n={};for(var r in t)Zi.call(t,r)&&(n[r]=t[r]);return n[na]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return p.createElement.apply(null,o)};function aa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $i(t)}var sa=c(81845),ca=c.n(sa);Math.min,Math.max;const ua=["top","right","bottom","left"];ua.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function la(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function da(e){if(null==e)return window;if(!la(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function fa(e){return da(e).getComputedStyle(e)}function pa(e){return la(e)?"":e?(e.nodeName||"").toLowerCase():""}function ha(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function ma(e){return e instanceof da(e).HTMLElement}function ga(e){return e instanceof da(e).Element}function va(e){return"undefined"!=typeof ShadowRoot&&(e instanceof da(e).ShadowRoot||e instanceof ShadowRoot)}function ya(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=fa(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function ba(){return!/^((?!chrome|android).)*safari/i.test(ha())}function wa(e){return["html","body","#document"].includes(pa(e))}Math.min,Math.max;const xa=Math.round;function Oa(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let c=1,u=1;t&&ma(e)&&(c=e.offsetWidth>0&&xa(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&xa(s.height)/e.offsetHeight||1);const l=ga(e)?da(e):window,d=!ba()&&n,f=(s.left+(d&&null!=(r=null==(o=l.visualViewport)?void 0:o.offsetLeft)?r:0))/c,p=(s.top+(d&&null!=(i=null==(a=l.visualViewport)?void 0:a.offsetTop)?i: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 ka(e){return(t=e,(t instanceof da(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function Sa(e){if("html"===pa(e))return e;const t=e.assignedSlot||e.parentNode||(va(e)?e.host:null)||ka(e);return va(t)?t.host:t}function Ea(e){const t=Sa(e);return wa(t)?e.ownerDocument.body:ma(t)&&ya(t)?t:Ea(t)}function Pa(e,t){var n;void 0===t&&(t=[]);const r=Ea(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=da(r),a=o?[i].concat(i.visualViewport||[],ya(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Pa(a))}const Da=p.useLayoutEffect;var _a=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Ca=function(){};function Ta(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function ja(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 i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(Ta(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Aa=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===To(e)&&null!==e?[e]:[];var t},Ma=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,wo({},So(e,_a))},Ia=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function Na(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Ra(e){return Na(e)?window.pageYOffset:e.scrollTop}function La(e,t){Na(e)?window.scrollTo(0,t):e.scrollTop=t}function Fa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ca,o=Ra(e),i=t-o,a=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,o,i,n);La(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function Ha(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?La(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&La(e,Math.max(t.offsetTop-o,0))}function Ba(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Wa=!1,Ya={get passive(){return Wa=!0}},Ua="undefined"!=typeof window?window:{};Ua.addEventListener&&Ua.removeEventListener&&(Ua.addEventListener("p",Ca,Ya),Ua.removeEventListener("p",Ca,!1));var za=Wa;function Va(e){return null!=e}function qa(e,t,n){return e?t:n}var Ga=["children","innerProps"],Ka=["children","innerProps"];function $a(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=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,v=a?window.innerHeight:Na(l=c)?window.innerHeight:l.clientHeight,y=Ra(c),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),x=g-w,O=v-m,k=x+y,S=d-y-m,E=p-v+y+b,P=y+m-w,D=160;switch(o){case"auto":case"bottom":if(O>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!a)return i&&Fa(c,E,D),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&O>=r)return i&&Fa(c,E,D),{placement:"bottom",maxHeight:a?O-b:S-b};if("auto"===o||a){var _=t,C=a?x:k;return C>=r&&(_=Math.min(C-b-s,t)),{placement:"top",maxHeight:_}}if("bottom"===o)return i&&La(c,E),{placement:"bottom",maxHeight:t};break;case"top":if(x>=h)return{placement:"top",maxHeight:t};if(k>=h&&!a)return i&&Fa(c,P,D),{placement:"top",maxHeight:t};if(!a&&k>=r||a&&x>=r){var T=t;return(!a&&k>=r||a&&x>=r)&&(T=a?x-w:k-w),i&&Fa(c,P,D),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var Xa,Qa=function(e){return"auto"===e?"bottom":e},Za=(0,p.createContext)(null),Ja=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,c=((0,p.useContext)(Za)||{}).setPortalPlacement,u=(0,p.useRef)(null),l=ko((0,p.useState)(r),2),d=l[0],f=l[1],h=ko((0,p.useState)(null),2),m=h[0],g=h[1],v=s.spacing.controlHeight;return Da((function(){var e=u.current;if(e){var t="fixed"===i,s=$a({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:v});f(s.maxHeight),g(s.placement),null==c||c(s.placement)}}),[r,o,i,a,n,c,v]),t({ref:u,placerProps:wo(wo({},e),{},{placement:m||Qa(o),maxHeight:d})})},es=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return ia("div",Po({},Ia(e,"menu",{menu:!0}),{ref:n},r),t)},ts=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return wo({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},ns=ts,rs=ts,os=["size"],is=["innerProps","isRtl","size"];var as,ss,cs={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},us=function(e){var t=e.size,n=So(e,os);return ia("svg",Po({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:cs},n))},ls=function(e){return ia(us,Po({size:20},e),ia("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"}))},ds=function(e){return ia(us,Po({size:20},e),ia("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"}))},fs=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return wo({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},ps=fs,hs=fs,ms=function(){var e=aa.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_"}}}(Xa||(as=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],ss||(ss=as.slice(0)),Xa=Object.freeze(Object.defineProperties(as,{raw:{value:Object.freeze(ss)}})))),gs=function(e){var t=e.delay,n=e.offset;return ia("span",{css:aa({animation:"".concat(ms," 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"},"","")})},vs=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return ia("div",Po({ref:o},Ia(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},ys=["data"],bs=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,c=e.label,u=e.theme,l=e.selectProps;return ia("div",Po({},Ia(e,"group",{group:!0}),s),ia(i,Po({},a,{selectProps:l,theme:u,getStyles:r,getClassNames:o,cx:n}),c),ia("div",null,t))},ws=["innerRef","isDisabled","isHidden","inputClassName"],xs={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Os={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":wo({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},xs)},ks=function(e){return wo({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},xs)},Ss=function(e){var t=e.cx,n=e.value,r=Ma(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,c=So(r,ws);return ia("div",Po({},Ia(e,"input",{"input-container":!0}),{"data-value":n||""}),ia("input",Po({className:t({input:!0},s),ref:o,style:ks(a),disabled:i},c)))},Es=function(e){var t=e.children,n=e.innerProps;return ia("div",n,t)};var Ps=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,c=n.Container,u=n.Label,l=n.Remove;return ia(c,{data:r,innerProps:wo(wo({},Ia(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},ia(u,{data:r,innerProps:wo({},Ia(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),ia(l,{data:r,innerProps:wo(wo({},Ia(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},Ds=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return ia("div",Po({},Ia(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},_s=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return ia("div",Po({},Ia(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},Cs={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return ia("div",Po({},Ia(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||ia(ls,null))},Control:vs,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return ia("div",Po({},Ia(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||ia(ds,null))},DownChevron:ds,CrossIcon:ls,Group:bs,GroupHeading:function(e){var t=Ma(e);t.data;var n=So(t,ys);return ia("div",Po({},Ia(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return ia("div",Po({},Ia(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return ia("span",Po({},t,Ia(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:Ss,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=So(e,is);return ia("div",Po({},Ia(wo(wo({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),ia(gs,{delay:0,offset:n}),ia(gs,{delay:160,offset:!0}),ia(gs,{delay:320,offset:!n}))},Menu:es,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return ia("div",Po({},Ia(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,i=e.menuPlacement,a=e.menuPosition,s=(0,p.useRef)(null),c=(0,p.useRef)(null),u=ko((0,p.useState)(Qa(i)),2),l=u[0],d=u[1],f=(0,p.useMemo)((function(){return{setPortalPlacement:d}}),[]),h=ko((0,p.useState)(null),2),m=h[0],g=h[1],v=(0,p.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"===a?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,a,l,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);Da((function(){v()}),[v]);var y=(0,p.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:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,c=o&&!s,u=c||i?[...ga(e)?Pa(e):e.contextElement?Pa(e.contextElement):[],...Pa(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let l,d=null;if(a){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),ga(e)&&!s&&d.observe(e),ga(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?Oa(e):null;return s&&function t(){const r=Oa(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),i&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(l)}}(r,s.current,v,{elementResize:"ResizeObserver"in window}))}),[r,v]);Da((function(){y()}),[y]);var b=(0,p.useCallback)((function(e){s.current=e,y()}),[y]);if(!t&&"fixed"!==a||!m)return null;var w=ia("div",Po({ref:b},Ia(wo(wo({},e),{},{offset:m.offset,position:a,rect:m.rect}),"menuPortal",{"menu-portal":!0}),o),n);return ia(Za.Provider,{value:f},t?(0,sa.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=So(e,Ka);return ia("div",Po({},Ia(wo(wo({},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=So(e,Ga);return ia("div",Po({},Ia(wo(wo({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Ps,MultiValueContainer:Es,MultiValueLabel:Es,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return ia("div",Po({role:"button"},n),t||ia(ls,{size:14}))},Option:Ds,Placeholder:function(e){var t=e.children,n=e.innerProps;return ia("div",Po({},Ia(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return ia("div",Po({},Ia(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:_s,ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return ia("div",Po({},Ia(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Ts=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function js(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||Ts(r)&&Ts(o)))return!1;var r,o;return!0}for(var As={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"},Ms=function(e){return ia("span",Po({css:As},e))},Is={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=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 i?"".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,i=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,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=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&&a)return"value ".concat(i," focused, ").concat(l(a,n),".");if("menu"===t&&u){var d=s?" disabled":"",f="".concat(c?" selected":"").concat(d);return"".concat(i).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:"",".")}},Ns=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,c=e.id,u=e.isAppleDevice,l=s.ariaLiveMessages,d=s.getOptionLabel,f=s.inputValue,h=s.isMulti,m=s.isOptionDisabled,g=s.isSearchable,v=s.menuIsOpen,y=s.options,b=s.screenReaderStatus,w=s.tabSelectsValue,x=s.isLoading,O=s["aria-label"],k=s["aria-live"],S=(0,p.useMemo)((function(){return wo(wo({},Is),l||{})}),[l]),E=(0,p.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.options,i=t.removedValue,s=t.removedValues,c=t.value,u=i||r||(e=c,Array.isArray(e)?null:e),l=u?d(u):"",f=o||s||void 0,p=f?f.map(d):[],h=wo({isDisabled:u&&m(u,a),label:l,labels:p},t);n=S.onChange(h)}return n}),[t,S,m,a,d]),P=(0,p.useMemo)((function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&S.onFocus){var s={focused:t,label:d(t),isDisabled:m(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:u};e=S.onFocus(s)}return e}),[n,r,d,m,S,o,a,u]),D=(0,p.useMemo)((function(){var e="";if(v&&y.length&&!x&&S.onFilter){var t=b({count:o.length});e=S.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,v,S,y,b,x]),_="initial-input-focus"===(null==t?void 0:t.action),C=(0,p.useMemo)((function(){var e="";if(S.guidance){var t=r?"value":v?"menu":"input";e=S.guidance({"aria-label":O,context:t,isDisabled:n&&m(n,a),isMulti:h,isSearchable:g,tabSelectsValue:w,isInitialFocus:_})}return e}),[O,n,r,h,m,g,v,S,a,w,_]),T=ia(p.Fragment,null,ia("span",{id:"aria-selection"},E),ia("span",{id:"aria-focused"},P),ia("span",{id:"aria-results"},D),ia("span",{id:"aria-guidance"},C));return ia(p.Fragment,null,ia(Ms,{id:c},_&&T),ia(Ms,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!_&&T))},Rs=[{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źẑżžẓẕƶȥɀⱬꝣ"}],Ls=new RegExp("["+Rs.map((function(e){return e.letters})).join("")+"]","g"),Fs={},Hs=0;Hs<Rs.length;Hs++)for(var Bs=Rs[Hs],Ws=0;Ws<Bs.letters.length;Ws++)Fs[Bs.letters[Ws]]=Bs.base;var Ys=function(e){return e.replace(Ls,(function(e){return Fs[e]}))},Us=function(e,t){void 0===t&&(t=js);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 i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(Ys),zs=function(e){return e.replace(/^\s+|\s+$/g,"")},Vs=function(e){return"".concat(e.label," ").concat(e.value)},qs=["innerRef"];function Gs(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=ko(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=ko(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(So(e,qs),"onExited","in","enter","exit","appear");return ia("input",Po({ref:t},n,{css:aa({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 Ks=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var $s=["boxSizing","height","overflow","paddingRight","position"],Xs={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Qs(e){e.preventDefault()}function Zs(e){e.stopPropagation()}function Js(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function ec(){return"ontouchstart"in window||navigator.maxTouchPoints}var tc=!("undefined"==typeof window||!window.document||!window.document.createElement),nc=0,rc={capture:!1,passive:!1};var oc=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},ic={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ac(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,i=e.onTopLeave,a=(0,p.useRef)(!1),s=(0,p.useRef)(!1),c=(0,p.useRef)(0),u=(0,p.useRef)(null),l=(0,p.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&&a.current&&(r&&r(e),a.current=!1),h&&s.current&&(i&&i(e),s.current=!1),h&&t>m?(n&&!a.current&&n(e),p.scrollTop=d,g=!0,a.current=!0):!h&&-t>l&&(o&&!s.current&&o(e),p.scrollTop=0,g=!0,s.current=!0),g&&Ks(e)}}),[n,r,o,i]),d=(0,p.useCallback)((function(e){l(e,e.deltaY)}),[l]),f=(0,p.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),h=(0,p.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;l(e,t)}),[l]),m=(0,p.useCallback)((function(e){if(e){var t=!!za&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}}),[h,f,d]),g=(0,p.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))}),[h,f,d]);return(0,p.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}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,p.useRef)({}),i=(0,p.useRef)(null),a=(0,p.useCallback)((function(e){if(tc){var t=document.body,n=t&&t.style;if(r&&$s.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&nc<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(Xs).forEach((function(e){var t=Xs[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&ec()&&(t.addEventListener("touchmove",Qs,rc),e&&(e.addEventListener("touchstart",Js,rc),e.addEventListener("touchmove",Zs,rc))),nc+=1}}),[r]),s=(0,p.useCallback)((function(e){if(tc){var t=document.body,n=t&&t.style;nc=Math.max(nc-1,0),r&&nc<1&&$s.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&ec()&&(t.removeEventListener("touchmove",Qs,rc),e&&(e.removeEventListener("touchstart",Js,rc),e.removeEventListener("touchmove",Zs,rc)))}}),[r]);return(0,p.useEffect)((function(){if(t){var e=i.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){i.current=e}}({isEnabled:n});return ia(p.Fragment,null,n&&ia("div",{onClick:oc,css:ic}),t((function(e){o(e),i(e)})))}var sc={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},cc=function(e){var t=e.name,n=e.onFocus;return ia("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:sc,value:"",onChange:function(){}})};function uc(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 lc(){return uc(/^Mac/i)}function dc(){return uc(/^iPhone/i)||uc(/^iPad/i)||lc()&&navigator.maxTouchPoints>1}var fc={clearIndicator:hs,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,i=o.colors,a=o.borderRadius;return wo({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?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:ps,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 wo({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,i=r.colors;return wo({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return wo(wo({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Os),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return wo({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:rs,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return wo((yo(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),yo(n,"position","absolute"),yo(n,"width","100%"),yo(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return wo({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,i=n.colors;return wo({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return wo({overflow:"hidden",textOverflow:i||void 0===i?"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,i=n.colors,a=e.isFocused;return wo({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:ns,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return wo({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*a.baseUnit,"px ").concat(3*a.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 wo({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,i=r.colors;return wo({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return wo({alignItems:"center",display:r&&o&&i?"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 pc,hc={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}},mc={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Ba(),captureMenuScroll:!Ba(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=wo({ignoreCase:!0,ignoreAccents:!0,stringify:Vs,trim:!0,matchFrom:"any"},pc),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,c=a?zs(t):t,u=a?zs(i(e)):i(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=Us(c),u=Ys(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 gc(e,t,n,r){return{type:"option",data:t,isDisabled:Sc(e,t,n),isSelected:Ec(e,t,n),label:Oc(e,t),value:kc(e,t),index:r}}function vc(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return gc(e,n,t,r)})).filter((function(t){return wc(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=gc(e,n,t,r);return wc(e,i)?i:void 0})).filter(Va)}function yc(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Mo(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function bc(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,Mo(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 wc(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!Dc(e)||!i)&&Pc(e,{label:a,value:s,data:o},r)}var xc=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},Oc=function(e,t){return e.getOptionLabel(t)},kc=function(e,t){return e.getOptionValue(t)};function Sc(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Ec(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=kc(e,t);return n.some((function(t){return kc(e,t)===r}))}function Pc(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Dc=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},_c=1,Cc=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&&_o(e,t)}(i,e);var t,n,r,o=Ao(i);function i(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(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=lc()||dc(),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,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),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,i=n.name,a=t.state.selectValue,s=o&&t.isOptionSelected(e,a),c=t.isOptionDisabled(e,a);if(s){var u=t.getOptionValue(e);t.setValue(a.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:i});o?t.setValue([].concat(Mo(a),[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),i=r.filter((function(e){return t.getOptionValue(e)!==o})),a=qa(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(qa(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),i=qa(e,o,o[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return xc(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return bc(vc(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 ja.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return Oc(t.props,e)},t.getOptionValue=function(e){return kc(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=fc[e](n,r);o.boxSizing="border-box";var i=t.props.styles[e];return i?i(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,wo(wo({},Cs),e.components);var e},t.buildCategorizedOptions=function(){return vc(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return yc(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:wo({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&&Na(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),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>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 Dc(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,i=n.escapeClearsValue,a=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||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)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:a}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)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||++_c),t.state.selectValue=Aa(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),a=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[a],t.state.focusedOptionId=xc(n,r[a])}return t}return t=i,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&&Ha(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&&(Ha(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,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(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 i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{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,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+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(hc):wo(wo({},hc),this.props.theme):hc}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=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:i,selectProps:s,setValue:a,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 Sc(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Ec(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Pc(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,i=e.tabIndex,a=e.form,s=e.menuIsOpen,c=e.required,u=this.getComponents().Input,l=this.state,d=l.inputIsHidden,f=l.ariaSelection,h=this.commonProps,m=r||this.getElementId("input"),g=wo(wo(wo({"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==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?p.createElement(u,Po({},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:i,form:a,type:"text",value:o},g)):p.createElement(Gs,Po({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ca,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,c=this.commonProps,u=this.props,l=u.controlShouldRenderValue,d=u.isDisabled,f=u.isMulti,h=u.inputValue,m=u.placeholder,g=this.state,v=g.selectValue,y=g.focusedValue,b=g.isFocused;if(!this.hasValue()||!l)return h?null:p.createElement(s,Po({},c,{key:"placeholder",isDisabled:d,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),m);if(f)return v.map((function(t,a){var s=t===y,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return p.createElement(n,Po({},c,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:d,key:u,index:a,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=v[0];return p.createElement(a,Po({},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,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return p.createElement(e,Po({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?p.createElement(e,Po({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):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,i=this.state.isFocused;return p.createElement(n,Po({},r,{isDisabled:o,isFocused:i}))}},{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 p.createElement(e,Po({},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,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,l=this.commonProps,d=this.state.focusedOption,f=this.props,h=f.captureMenuScroll,m=f.inputValue,g=f.isLoading,v=f.loadingMessage,y=f.minMenuHeight,b=f.maxMenuHeight,w=f.menuIsOpen,x=f.menuPlacement,O=f.menuPosition,k=f.menuPortalTarget,S=f.menuShouldBlockScroll,E=f.menuShouldScrollIntoView,P=f.noOptionsMessage,D=f.onMenuScrollToTop,_=f.onMenuScrollToBottom;if(!w)return null;var C,T=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,s=t.label,c=t.value,f=d===o,h=i?void 0:function(){return e.onOptionHover(o)},m=i?void 0:function(){return e.selectOption(o)},g="".concat(e.getElementId("option"),"-").concat(n),v={id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return p.createElement(u,Po({},l,{innerProps:v,data:o,isDisabled:i,isSelected:a,key:g,label:s,type:r,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())C=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),c="".concat(s,"-heading");return p.createElement(n,Po({},l,{key:s,data:o,options:i,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return T(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return T(t,"".concat(t.index))}));else if(g){var j=v({inputValue:m});if(null===j)return null;C=p.createElement(s,l,j)}else{var A=P({inputValue:m});if(null===A)return null;C=p.createElement(c,l,A)}var M={minMenuHeight:y,maxMenuHeight:b,menuPlacement:x,menuPosition:O,menuShouldScrollIntoView:E},I=p.createElement(Ja,Po({},l,M),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,s=r.maxHeight;return p.createElement(o,Po({},l,M,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:a}),p.createElement(ac,{captureEnabled:h,onTopArrive:D,onBottomArrive:_,lockEnabled:S},(function(t){return p.createElement(i,Po({},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}),C)})))}));return k||"fixed"===O?p.createElement(a,Po({},l,{appendTo:k,controlElement:this.controlRef,menuPlacement:x,menuPosition:O}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return p.createElement(cc,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var c=s.map((function(t){return e.getOptionValue(t)})).join(n);return p.createElement("input",{name:i,type:"hidden",value:c})}var u=s.length>0?s.map((function(t,n){return p.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):p.createElement("input",{name:i,type:"hidden",value:""});return p.createElement("div",null,u)}var l=s[0]?this.getOptionValue(s[0]):"";return p.createElement("input",{name:i,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return p.createElement(Ns,Po({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,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,i=this.props,a=i.className,s=i.id,c=i.isDisabled,u=i.menuIsOpen,l=this.state.isFocused,d=this.commonProps=this.getCommonProps();return p.createElement(r,Po({},d,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:l}),this.renderLiveRegion(),p.createElement(t,Po({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:l,menuIsOpen:u}),p.createElement(o,Po({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),p.createElement(n,Po({},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,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,c=t.instancePrefix,u=e.options,l=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=Aa(l),m={};if(n&&(l!==n.value||u!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return yc(vc(e,t))}(e,h):[],v=d?bc(vc(e,h),"".concat(c,"-option")):[],y=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:xc(v,b),focusableOptionsWithIds:v,focusedValue:y,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},x=i,O=a&&s;return a&&!O&&(x={value:qa(p,h,h[0]||null),options:h,action:"initial-input-focus"},O=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(x=null),wo(wo(wo({},m),w),{},{prevProps:e,ariaSelection:x,prevWasFocused:O})}}],n&&Do(t.prototype,n),r&&Do(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(p.Component);Cc.defaultProps=mc;var Tc=(0,p.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,i=e.defaultValue,a=void 0===i?null:i,s=e.inputValue,c=e.menuIsOpen,u=e.onChange,l=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,h=e.value,m=So(e,Eo),g=ko((0,p.useState)(void 0!==s?s:n),2),v=g[0],y=g[1],b=ko((0,p.useState)(void 0!==c?c:o),2),w=b[0],x=b[1],O=ko((0,p.useState)(void 0!==h?h:a),2),k=O[0],S=O[1],E=(0,p.useCallback)((function(e,t){"function"==typeof u&&u(e,t),S(e)}),[u]),P=(0,p.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),y(void 0!==n?n:e)}),[l]),D=(0,p.useCallback)((function(){"function"==typeof f&&f(),x(!0)}),[f]),_=(0,p.useCallback)((function(){"function"==typeof d&&d(),x(!1)}),[d]),C=void 0!==s?s:v,T=void 0!==c?c:w,j=void 0!==h?h:k;return wo(wo({},m),{},{inputValue:C,menuIsOpen:T,onChange:E,onInputChange:P,onMenuClose:_,onMenuOpen:D,value:j})}(e);return p.createElement(Cc,Po({ref:t},n))})),jc=Tc;const Ac={isSafari:function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)},isTouchDevice:it,isPrimaryTouchDevice:at};function Mc(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 Ic(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mc(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Nc=(0,f.injectIntl)((function(e){var t;return(0,Ke.jsx)("span",Ic(Ic({},e.innerProps),{},{children:(0,Ke.jsx)(Nt,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t})),"data-cy":"btn-clear"})}))}));var Rc=c(2418);function Lc(){return Lc=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},Lc.apply(this,arguments)}const Fc=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class Hc extends p.Component{constructor(...e){super(...e),this._targetNode=p.createRef(),this._elementNode=p.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,p.isValidElement)(e)||(e=null),(0,p.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new Rc(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={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(t,Fc),i=Lc({target:this._targetNode.current,element:this._elementParentNode},o),a=n||"";if(this._elementParentNode&&this._elementParentNode.id!==a&&(this._elementParentNode.id=a),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(i):this._createTetherInstance(i),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?p.createElement(p.Fragment,null,e,t&&this._elementParentNode&&sa.createPortal(t,this._elementParentNode)):null}}var Bc,Wc,Yc,Uc,zc,Vc,qc,Gc,Kc,$c,Xc,Qc,Zc;function Jc(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 eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jc(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tu=Me.Ay.span.withConfig({displayName:"StyledClickableWrapper"})(Bc||(Bc=je()(["\n pointer-events: auto;\n cursor: pointer;\n"]))),nu=Me.Ay.div.withConfig({displayName:"StyledReactSelectOuterWrapper"})(Wc||(Wc=je()(["\n outline-style: none;\n cursor: ",";\n"])),(function(e){return e.immutable&&"text"})),ru=Me.Ay.div.withConfig({displayName:"StyledReactSelectInnerWrapper"})(Yc||(Yc=je()(["\n outline-style: none;\n"]))),ou=Me.Ay.div.withConfig({displayName:"StyledIndicatorsContainerWrapper"})(Uc||(Uc=je()(["\n position: relative;\n z-index: 1;\n background-color: ",";\n border-radius: ",";\n ",";\n"])),He.t7.color("paper"),He.t7.radii("form"),(function(e){return e.isTopAligned&&(0,Me.AH)(zc||(zc=je()(["\n position: absolute;\n right: 0;\n top: 0;\n "])))})),iu=(0,Me.Ay)(Hc).withConfig({displayName:"StyledTether"})(Vc||(Vc=je()(["\n && {\n z-index: 1;\n }\n"]))),au=(Me.Ay.div.withConfig({displayName:"StyledNonTether"})(qc||(qc=je()(["\n position: absolute;\n padding-bottom: ",";\n z-index: 2; /* higher than StyledTether and StyledIndicatorsContainerWrapper */\n"])),He.hs.space(1.5)),(0,Me.Ay)(Cs.Menu).attrs((function(e){return{theme:e.selectTheme}})).withConfig({displayName:"StyledMenu"})(Gc||(Gc=je()(["\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}))),su=Me.Ay.div.withConfig({displayName:"StyledMoreOptionsAvailable"})(Kc||(Kc=je()(["\n && {\n ","\n cursor: default;\n padding: "," ",";\n }\n"])),(0,He.Ed)({color:He.t7.color("signal.info"),lineHeight:"normal"}),He.hs.space(-.5),He.hs.space(-.2)),cu=Me.Ay.div.withConfig({displayName:"StyledSingleValueWrapper"})($c||($c=je()(["\n overflow-x: hidden;\n position: relative;\n color: ",";\n"])),(function(e){return e.isDisabled?He.t7.color("text"):"inherit"})),uu=Me.Ay.div.withConfig({displayName:"StyledDropdownIndicatorWrapper"})(Xc||(Xc=je()(["\n && {\n position: relative;\n width: 25px;\n height: 25px;\n display: flex;\n align-items: center;\n }\n"]))),lu=Me.Ay.div.withConfig({displayName:"StyledMultiValueWrapper"})(Qc||(Qc=je()(["\n overflow: hidden;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n"]))),du=Me.Ay.span.withConfig({displayName:"StyledMultiValueLabelWrapper"})(Zc||(Zc=je()(["\n overflow: hidden;\n text-overflow: ellipsis;\n"]))),fu=function(e){var t=e.colors.paper,n=e.colors.backgroundItemHover,r=e.colors.backgroundItemSelected,o=e.colors.text,i=e.colors.borderSelect,a=e.colors.textDisabled,s=e.radii.form,c={color:o,fontFamily:e.fontFamily.regular,fontSize:"".concat(e.fontSize.base,"rem"),fontWeight:e.fontWeights.regular,lineHeight:e.lineHeights.regular},u=function(e){return e.isMulti&&(e.selectProps.hasAdvancedSearch||e.selectProps.hasDocsTreeSearch)},l=function(t){return eu(eu({},t),{},{color:e.colors.signal.info,cursor:"default",textAlign:"left"})};return{container:function(e,t){return eu(eu(eu({},e),c),{},{outline:0})},control:function(e,t){return eu(eu({},e),{},{backgroundColor:"transparent",borderWidth:0,boxShadow:null,minHeight:0,flexWrap:"nowrap",position:"relative",display:u(t)?"block":e.display})},noOptionsMessage:l,loadingMessage:l,option:function(o,i){var a=t;return i.isSelected?a=r:i.isFocused&&(a=n),eu(eu({},o),{},{color:e.colors.text,backgroundColor:a,cursor:"pointer",":active":{backgroundColor:i.isSelected?r:n}})},indicatorsContainer:function(e,t){return eu(eu({},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),eu(eu(eu({},e),{},{minHeight:t.isDisabled?"0":"2.6rem",paddingTop:t.isDisabled?"0":"2px",paddingBottom:t.isDisabled?"0":"2px"},u(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(i),borderRadius:s}},menuList:function(t,n){return eu(eu(eu({},t),c),{},{border:"1px solid ".concat(i),borderRadius:s,padding:"0",backgroundColor:e.colors.paper})},multiValue:function(t,n){return eu(eu({},t),{},{borderRadius:s,backgroundColor:e.colors.backgroundMultiValue,justifyContent:"space-between"},u(n)&&!n.isDisabled?{width:"100%",maxWidth:"300px"}:{})},multiValueLabel:function(e,t){return eu(eu({},e),{},{borderRadius:s,color:o,fontSize:"inherit",lineHeight:1.8})},multiValueRemove:function(e,t){return eu(eu({},e),{},{borderRadius:0,color:o,display:t.isDisabled?"none":"flex",":hover":eu(eu({},e[":hover"]),{},{color:o,backgroundColor:r,cursor:"pointer"})})},singleValue:function(e,t){return eu(eu({},e),{},{color:t.isDisabled?a:o,margin:0,whiteSpace:"wrap"})},valueContainer:function(t,n){return eu(eu({},t),{},{padding:0,margin:0,minHeight:n.isDisabled?"0":"2.6rem",gap:He.hs.space(-2.5)({theme:e})})}}};function pu(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 hu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pu(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const mu=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,Ke.jsx)(Cs.DropdownIndicator,hu(hu({},e),{},{children:(0,Ke.jsx)(uu,{children:(0,Ke.jsx)(Nt,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};Ce().shape({key:Ce().any.isRequired,display:Ce().string});var gu,vu,yu;function bu(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 wu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bu(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xu=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},Ou=function(e,t){return function(n){n.stopPropagation(),e(t)}},ku=function(e,t){return function(n){n.stopPropagation(),e(t)}},Su=function(e){e.stopPropagation()};const Eu=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,i=t.isDisabled,a=t.hasDocsTreeSearch,s=t.hasAdvancedSearch,c=t.createPermission,u=t.value,l=t.isMulti,d=t.inputValue,f=l&&(s||a);return(0,Ke.jsx)(ou,{isTopAligned:f,children:(0,Ke.jsxs)(Cs.IndicatorsContainer,wu(wu({},e),{},{children:[e.children,n&&!i&&(0,Ke.jsx)("span",{onTouchEnd:Su,onMouseDown:Ou(n,u),children:gu||(gu=(0,Ke.jsx)(Nt,{icon:"folder",tabIndex:-1,"data-cy":"btn-docsTreeSearch"}))}),r&&!i&&(0,Ke.jsx)("span",{onTouchEnd:Su,onMouseDown:xu(r,d,u),children:vu||(vu=(0,Ke.jsx)(Nt,{icon:"search",tabIndex:-1,"data-cy":"btn-advancedSearch"}))}),c&&!i&&(0,Ke.jsx)("span",{onTouchEnd:Su,onMouseDown:ku(o,u),children:yu||(yu=(0,Ke.jsx)(Nt,{icon:"plus",tabIndex:-1,"data-cy":"btn-remoteCreate"}))})]}))})};var Pu;const Du=function(){return Pu||(Pu=(0,Ke.jsx)("span",{children:(0,Ke.jsx)(Ze,{size:"1.8rem"})}))};var _u="tocco-app",Cu=c(85072),Tu=c.n(Cu),ju=c(97825),Au=c.n(ju),Mu=c(77659),Iu=c.n(Mu),Nu=c(55056),Ru=c.n(Nu),Lu=c(10540),Fu=c.n(Lu),Hu=c(41113),Bu=c.n(Hu),Wu=c(2063),Yu={};Yu.styleTagTransform=Bu(),Yu.setAttributes=Ru(),Yu.insert=Iu().bind(null,"head"),Yu.domAPI=Au(),Yu.insertStyleElement=Fu();Tu()(Wu.A,Yu);Wu.A&&Wu.A.locals&&Wu.A.locals;var Uu,zu=c(59386),Vu=c.n(zu),qu=Me.Ay.span.withConfig({displayName:"StyledChildrenWrapper"})(Uu||(Uu=je()(["\n cursor: pointer;\n user-select: none;\n"]))),Gu=m().forwardRef((function(e,t){var n=e.children,r=e.onOpen;return(0,Ke.jsx)(qu,{onClick:r,ref:t,children:n})}));Gu.propTypes={children:Ce().any,onOpen:Ce().func};const Ku=Gu;var $u=c(88365),Xu=c(51732),Qu=function(){(0,zu.registerLocale)("en",Xu.A.getDateFnsLocale("en")),(0,zu.registerLocale)("en-US",Xu.A.getDateFnsLocale("en")),(0,zu.registerLocale)("de-CH",Xu.A.getDateFnsLocale("de-CH")),(0,zu.registerLocale)("de-DE",Xu.A.getDateFnsLocale("de-DE")),(0,zu.registerLocale)("de",Xu.A.getDateFnsLocale("de")),(0,zu.registerLocale)("fr",Xu.A.getDateFnsLocale("fr")),(0,zu.registerLocale)("fr-CH",Xu.A.getDateFnsLocale("fr")),(0,zu.registerLocale)("it",Xu.A.getDateFnsLocale("it")),(0,zu.registerLocale)("it-CH",Xu.A.getDateFnsLocale("it")),(0,zu.setDefaultLocale)("de")};Qu();(0,Me.SL)((0,f.injectIntl)((function(e){var t,n=e.children,r=e.value,o=e.onChange,i=e.intl,a=i.locale,s=(0,p.useRef)(null),c=(0,p.useState)(!1),u=et()(c,2),l=u[0],d=u[1],f=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,Ke.jsx)(Vu(),{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(){f(!0)},onClickOutside:function(){f(!1)},locale:a,enableTabLoop:!1,customInput:(0,Ke.jsx)(Ku,{onOpen:function(){f(!0)},children:n}),todayButton:(t="client.component.datePicker.todayLabel",i.formatMessage({id:t}))})})));var Zu,Ju,el,tl,nl=He.t7.color("secondaryLight"),rl=He.t7.color("paper"),ol=He.t7.color("text"),il=He.t7.color("secondary"),al=He.t7.radii("form"),sl=(0,Me.DU)(Zu||(Zu=je()(["\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"])),Ge.i,ol,He.t7.radii("form"),al,nl,rl,(0,He.Ed)(),(0,He.Ed)(),nl,al,al,He.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",rl,He.hs.font(1),He.t7.fontWeight("bold"),(0,He.Ed)({fontWeight:He.t7.fontWeight("bold")}),rl,He.hs.font(-2),He.hs.space(-1.8),il,il,il,nl,nl,nl,il,(0,He.Ed)(),rl,He.hs.space(-.5),He.t7.color("backgroundItemHover"),al,He.hs.space(-.5),rl,He.t7.color("border"),He.t7.radii("form"),He.hs.space(-1),He.hs.space(-1),He.hs.font(1),rl,He.t7.fontWeight("bold"),He.hs.space(-1),rl,He.hs.font(0),ol,nl,nl,He.t7.radii("form"),rl,nl,il,ol,ol,rl,nl,He.t7.color("backgroundItemHover"),He.t7.color("textDisabled"),He.t7.color("border"),He.t7.radii("form")),cl=(0,Me.DU)(Ju||(Ju=je()(["\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"])),He.t7.color("signal.success"),He.t7.color("signal.info"),He.t7.color("signal.warning"),He.t7.color("signal.danger"),He.t7.color("textDisabled")),ul=(0,Me.DU)(el||(el=je()(["\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"])),He.t7.color("backgroundScrollbar"),He.t7.color("backgroundScrollbarHover"),He.t7.color("backgroundScrollbar"));const ll=function(){return tl||(tl=(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(cl,{}),(0,Ke.jsx)(sl,{}),(0,Ke.jsx)(ul,{})]}))};function dl(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 fl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dl(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const pl=function(e){var t=e.selectProps,n=e.children,r=e.theme;return(0,Ke.jsx)(iu,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,Ke.jsx)("div",{ref:e})},renderElement:function(o){return(0,Ke.jsx)("div",{ref:o,className:_u,children:(0,Ke.jsx)(au,fl(fl({},Yr()(e,["innerRef","theme"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,selectTheme:r,children:n}))})}})};function hl(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 ml(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hl(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const gl=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,Ke.jsxs)(Cs.MenuList,ml(ml({},e),{},{className:"MenuList",children:[n,r&&(0,Ke.jsx)(su,{children:o})]}))};function vl(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function yl(e){return e instanceof Element||e instanceof vl(e).Element}function bl(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof vl(e).ShadowRoot)}function wl(e){return vl(e).getComputedStyle(e)}function xl(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&bl(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Ol(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function kl(e){return(null==e?void 0:e.ownerDocument)||document}Math.min,Math.max,Math.round,Math.floor;var Sl=c(49054),El=c(95361);const Pl=Math.min,Dl=Math.max,_l=Math.round,Cl=(Math.floor,e=>({x:e,y:e}));function Tl(e){return Ml(e)?(e.nodeName||"").toLowerCase():"#document"}function jl(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Al(e){var t;return null==(t=(Ml(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ml(e){return e instanceof Node||e instanceof jl(e).Node}function Il(e){return e instanceof Element||e instanceof jl(e).Element}function Nl(e){return e instanceof HTMLElement||e instanceof jl(e).HTMLElement}function Rl(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof jl(e).ShadowRoot)}function Ll(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ul(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Fl(e){return["table","td","th"].includes(Tl(e))}function Hl(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Bl(e){const t=Wl(),n=Il(e)?Ul(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 Wl(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Yl(e){return["html","body","#document"].includes(Tl(e))}function Ul(e){return jl(e).getComputedStyle(e)}function zl(e){return Il(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vl(e){if("html"===Tl(e))return e;const t=e.assignedSlot||e.parentNode||Rl(e)&&e.host||Al(e);return Rl(t)?t.host:t}function ql(e){const t=Vl(e);return Yl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Nl(t)&&Ll(t)?t:ql(t)}function Gl(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ql(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=jl(o);return i?t.concat(a,a.visualViewport||[],Ll(o)?o:[],a.frameElement&&n?Gl(a.frameElement):[]):t.concat(o,Gl(o,[],n))}function Kl(e){const t=Ul(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Nl(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=_l(n)!==i||_l(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function $l(e){return Il(e)?e:e.contextElement}function Xl(e){const t=$l(e);if(!Nl(t))return Cl(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Kl(t);let a=(i?_l(n.width):n.width)/r,s=(i?_l(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ql=Cl(0);function Zl(e){const t=jl(e);return Wl()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ql}function Jl(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=$l(e);let a=Cl(1);t&&(r?Il(r)&&(a=Xl(r)):a=Xl(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==jl(e))&&t}(i,n,r)?Zl(i):Cl(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,l=o.width/a.x,d=o.height/a.y;if(i){const e=jl(i),t=r&&Il(r)?jl(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=Xl(o),t=o.getBoundingClientRect(),r=Ul(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,l*=e.x,d*=e.y,c+=i,u+=a,n=jl(o),o=n.frameElement}}return(0,El.B1)({width:l,height:d,x:c,y:u})}function ed(e){return Jl(Al(e)).left+zl(e).scrollLeft}function td(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=jl(e),r=Al(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const e=Wl();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=Al(e),n=zl(e),r=e.ownerDocument.body,o=Dl(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Dl(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+ed(e);const s=-n.scrollTop;return"rtl"===Ul(r).direction&&(a+=Dl(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Al(e));else if(Il(t))r=function(e,t){const n=Jl(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Nl(e)?Xl(e):Cl(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Zl(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return(0,El.B1)(r)}function nd(e,t){const n=Vl(e);return!(n===t||!Il(n)||Yl(n))&&("fixed"===Ul(n).position||nd(n,t))}function rd(e,t,n){const r=Nl(t),o=Al(t),i="fixed"===n,a=Jl(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=Cl(0);if(r||!r&&!i)if(("body"!==Tl(t)||Ll(o))&&(s=zl(t)),r){const e=Jl(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=ed(o));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function od(e){return"static"===Ul(e).position}function id(e,t){return Nl(e)&&"fixed"!==Ul(e).position?t?t(e):e.offsetParent:null}function ad(e,t){const n=jl(e);if(Hl(e))return n;if(!Nl(e)){let t=Vl(e);for(;t&&!Yl(t);){if(Il(t)&&!od(t))return t;t=Vl(t)}return n}let r=id(e,t);for(;r&&Fl(r)&&od(r);)r=id(r,t);return r&&Yl(r)&&od(r)&&!Bl(r)?n:r||function(e){let t=Vl(e);for(;Nl(t)&&!Yl(t);){if(Bl(t))return t;if(Hl(t))return null;t=Vl(t)}return null}(e)||n}const sd={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Al(r),s=!!t&&Hl(t.floating);if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},u=Cl(1);const l=Cl(0),d=Nl(r);if((d||!d&&!i)&&(("body"!==Tl(r)||Ll(a))&&(c=zl(r)),Nl(r))){const e=Jl(r);u=Xl(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:Al,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?Hl(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Gl(e,[],!1).filter((e=>Il(e)&&"body"!==Tl(e))),o=null;const i="fixed"===Ul(e).position;let a=i?Vl(e):e;for(;Il(a)&&!Yl(a);){const t=Ul(a),n=Bl(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Ll(a)&&!n&&nd(e,a))?r=r.filter((e=>e!==a)):o=t,a=Vl(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],s=a[0],c=a.reduce(((e,n)=>{const r=td(t,n,o);return e.top=Dl(r.top,e.top),e.right=Pl(r.right,e.right),e.bottom=Pl(r.bottom,e.bottom),e.left=Dl(r.left,e.left),e}),td(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:ad,getElementRects:async function(e){const t=this.getOffsetParent||ad,n=this.getDimensions,r=await n(e.floating);return{reference:rd(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}=Kl(e);return{width:t,height:n}},getScale:Xl,isElement:Il,isRTL:function(e){return"rtl"===Ul(e).direction}};const cd=El.cY,ud=El.BN,ld=El.UU,dd=El.UE,fd=(e,t,n)=>{const r=new Map,o={platform:sd,...n},i={...o.platform,_c:r};return(0,El.rD)(e,t,{...o,platform:i})};var pd="undefined"!=typeof document?p.useLayoutEffect:p.useEffect;function hd(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(!hd(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)&&!hd(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function md(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function gd(e,t){const n=md(e);return Math.round(t*n)/n}function vd(e){const t=p.useRef(e);return pd((()=>{t.current=e})),t}const yd=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?dd({element:n.current,padding:r}).fn(t):{}:n?dd({element:n,padding:r}).fn(t):{};var o}}),bd=(e,t)=>({...cd(e),options:[e,t]}),wd=(e,t)=>({...ud(e),options:[e,t]}),xd=(e,t)=>({...ld(e),options:[e,t]}),Od=(e,t)=>({...yd(e),options:[e,t]});const kd={...h},Sd=kd.useInsertionEffect||(e=>e());function Ed(e){const t=p.useRef((()=>{0}));return Sd((()=>{t.current=e})),p.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 Pd="ArrowUp",Dd="ArrowDown",_d="ArrowLeft",Cd="ArrowRight";var Td="undefined"!=typeof document?p.useLayoutEffect:p.useEffect;const jd=[_d,Cd],Ad=[Pd,Dd];function Md(){return Md=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},Md.apply(this,arguments)}let Id=!1,Nd=0;const Rd=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Nd++;const Ld=kd.useId||function(){const[e,t]=p.useState((()=>Id?Rd():void 0));return Td((()=>{null==e&&t(Rd())}),[]),p.useEffect((()=>{Id=!0}),[]),e};const Fd=p.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o}},width:i=14,height:a=7,tipRadius:s=0,strokeWidth:c=0,staticOffset:u,stroke:l,d,style:{transform:f,...h}={},...m}=e;const g=Ld(),[v,y]=p.useState(!1);if(Td((()=>{if(!r)return;"rtl"===wl(r).direction&&y(!0)}),[r]),!r)return null;const b=2*c,w=b/2,x=i/2*(s/-8+1),O=a/2*s/4,[k,S]=n.split("-"),E=!!d,P="top"===k||"bottom"===k,D=u&&"end"===S?"bottom":"top";let _=u&&"end"===S?"right":"left";u&&v&&(_="end"===S?"left":"right");const C=null!=(null==o?void 0:o.x)?u||o.x:"",T=null!=(null==o?void 0:o.y)?u||o.y:"",j=d||"M0,0 H"+i+" L"+(i-x)+","+(a-O)+" Q"+i/2+","+a+" "+x+","+(a-O)+" Z",A={top:E?"rotate(180deg)":"",left:E?"rotate(90deg)":"rotate(-90deg)",bottom:E?"":"rotate(180deg)",right:E?"rotate(-90deg)":"rotate(90deg)"}[k];return p.createElement("svg",Md({},m,{"aria-hidden":!0,ref:t,width:E?i:i+b,height:i,viewBox:"0 0 "+i+" "+(a>i?a:i),style:{position:"absolute",pointerEvents:"none",[_]:C,[D]:T,[k]:P||E?"100%":"calc(100% - "+b/2+"px)",transform:""+A+(null!=f?f:""),...h}}),b>0&&p.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:l,strokeWidth:b+(d?0:1),d:j}),p.createElement("path",{stroke:b&&!d?m.fill:"none",d:j}),p.createElement("clipPath",{id:g},p.createElement("rect",{x:-w,y:w*(E?-1:1),width:i+b,height:i})))}));function Hd(){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 Bd=p.createContext(null),Wd=p.createContext(null),Yd=()=>{var e;return(null==(e=p.useContext(Bd))?void 0:e.id)||null},Ud=()=>p.useContext(Wd);function zd(e){return"data-floating-ui-"+e}function Vd(e){const t=(0,p.useRef)(e);return Td((()=>{t.current=e})),t}const qd=zd("safe-polygon");function Gd(e,t,n){return n&&!Ol(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}const Kd=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function $d(e,t){const n=(0,Sl.Kr)(e,Kd());"prev"===t&&n.reverse();const r=n.indexOf(function(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}(kl(e)));return n.slice(r+1)[0]}function Xd(){return $d(document.body,"next")}function Qd(){return $d(document.body,"prev")}function Zd(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!xl(n,r)}function Jd(e){(0,Sl.Kr)(e,Kd()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function ef(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 tf={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 nf(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const rf=p.forwardRef((function(e,t){const[n,r]=p.useState();Td((()=>(/apple/i.test(navigator.vendor)&&r("button"),document.addEventListener("keydown",nf),()=>{document.removeEventListener("keydown",nf)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[zd("focus-guard")]:"",style:tf};return p.createElement("span",Md({},e,o))})),of=p.createContext(null),af=zd("portal");function sf(e){const{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e,i=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=Ld(),o=cf(),[i,a]=p.useState(null),s=p.useRef(null);return Td((()=>()=>{null==i||i.remove(),queueMicrotask((()=>{s.current=null}))}),[i]),Td((()=>{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(af,""),e.appendChild(n),s.current=n,a(n)}),[t,r]),Td((()=>{if(!r)return;if(s.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!yl(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const c=document.createElement("div");c.id=r,c.setAttribute(af,""),e=i||e,e.appendChild(c),s.current=c,a(c)}),[t,n,r,o]),i}({id:n,root:r}),[a,s]=p.useState(null),c=p.useRef(null),u=p.useRef(null),l=p.useRef(null),d=p.useRef(null),f=!!a&&!a.modal&&a.open&&o&&!(!r&&!i);return p.useEffect((()=>{if(i&&o&&(null==a||!a.modal))return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){if(i&&Zd(e)){("focusin"===e.type?ef:Jd)(i)}}}),[i,o,null==a?void 0:a.modal]),p.createElement(of.Provider,{value:p.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:l,afterInsideRef:d,portalNode:i,setFocusManagerState:s})),[o,i])},f&&i&&p.createElement(rf,{"data-type":"outside",ref:c,onFocus:e=>{if(Zd(e,i)){var t;null==(t=l.current)||t.focus()}else{const e=Qd()||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),f&&i&&p.createElement("span",{"aria-owns":i.id,style:tf}),i&&sa.createPortal(t,i),f&&i&&p.createElement(rf,{"data-type":"outside",ref:u,onFocus:e=>{if(Zd(e,i)){var t;null==(t=d.current)||t.focus()}else{const t=Xd()||(null==a?void 0:a.refs.domReference.current);null==t||t.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent))}}}))}const cf=()=>p.useContext(of);function uf(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Ld(),i=p.useRef({}),[a]=p.useState((()=>Hd())),s=null!=Yd(),[c,u]=p.useState(r.reference),l=Ed(((e,t,r)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),d=p.useMemo((()=>({setPositionReference:u})),[]),f=p.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return p.useMemo((()=>({dataRef:i,open:t,onOpenChange:l,elements:f,events:a,floatingId:o,refs:d})),[t,l,f,a,o,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=p.useState(null),[s,c]=p.useState(null),u=(null==o?void 0:o.reference)||i,l=p.useRef(null),d=Ud();Td((()=>{u&&(l.current=u)}),[u]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[l,d]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=p.useState(r);hd(f,r)||h(r);const[m,g]=p.useState(null),[v,y]=p.useState(null),b=p.useCallback((e=>{e!==k.current&&(k.current=e,g(e))}),[]),w=p.useCallback((e=>{e!==S.current&&(S.current=e,y(e))}),[]),x=i||m,O=a||v,k=p.useRef(null),S=p.useRef(null),E=p.useRef(l),P=null!=c,D=vd(c),_=vd(o),C=p.useCallback((()=>{if(!k.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};_.current&&(e.platform=_.current),fd(k.current,S.current,e).then((e=>{const t={...e,isPositioned:!0};T.current&&!hd(E.current,t)&&(E.current=t,sa.flushSync((()=>{d(t)})))}))}),[f,t,n,_]);pd((()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[u]);const T=p.useRef(!1);pd((()=>(T.current=!0,()=>{T.current=!1})),[]),pd((()=>{if(x&&(k.current=x),O&&(S.current=O),x&&O){if(D.current)return D.current(x,O,C);C()}}),[x,O,C,D,P]);const j=p.useMemo((()=>({reference:k,floating:S,setReference:b,setFloating:w})),[b,w]),A=p.useMemo((()=>({reference:x,floating:O})),[x,O]),M=p.useMemo((()=>{const e={position:n,left:0,top:0};if(!A.floating)return e;const t=gd(A.floating,l.x),r=gd(A.floating,l.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...md(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,A.floating,l.x,l.y]);return p.useMemo((()=>({...l,update:C,refs:j,elements:A,floatingStyles:M})),[l,C,j,A,M])}({...e,elements:{...o,...s&&{reference:s}}}),h=p.useCallback((e=>{const t=yl(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),f.refs.setReference(t)}),[f.refs]),m=p.useCallback((e=>{(yl(e)||null===e)&&(l.current=e,a(e)),(yl(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!yl(e))&&f.refs.setReference(e)}),[f.refs]),g=p.useMemo((()=>({...f.refs,setReference:m,setPositionReference:h,domReference:l})),[f.refs,m,h]),v=p.useMemo((()=>({...f.elements,domReference:u})),[f.elements,u]),y=p.useMemo((()=>({...f,...r,refs:g,elements:v,nodeId:t})),[f,g,v,t,r]);return Td((()=>{r.dataRef.current.floatingContext=y;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=y)})),p.useMemo((()=>({...f,context:y,refs:g,elements:v})),[f,g,v,y])}const lf="active",df="selected";function ff(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[lf]:t,[df]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1},...i,...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,i]=t;var a;o&&[lf,df].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}var pf,hf,mf,gf,vf,yf=Me.Ay.span.withConfig({displayName:"StyledIconWrapper"})(pf||(pf=je()(["\n color: ",";\n font-size: ",";\n margin-left: -",";\n"])),He.t7.color("text"),He.hs.font(1),He.hs.space(-2)),bf=(0,Me.AH)(hf||(hf=je()(["\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"])),He.t7.color("text"),He.t7.lineHeight("regular"),He.t7.fontWeight("regular"),He.hs.space(-3),He.hs.space(-1.5),He.t7.radii("statusLabel")),wf=(0,Me.Ay)(lr.oY).withConfig({displayName:"StyledHtmlFormatter"})(mf||(mf=je()(["\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,lr.gv)(e,"html")}),He.hs.space(-1),He.hs.space(-1.5),bf,He.t7.color("signal.dangerLight"),He.t7.color("textLabel"),He.t7.color("signal.infoLight"),He.t7.color("textLabel"),He.t7.color("signal.warningLight"),He.t7.color("textLabel"),He.t7.color("signal.successLight"),He.t7.color("textLabel"),bf,He.t7.color("signal.neutral"),He.t7.color("textLabel"),He.t7.radii("statusLabel"),He.hs.space(-2.1),He.hs.space(0),He.t7.color("paper"),He.t7.color("signal.info"),He.t7.color("signal.warningLight"),He.hs.space(-1.5),He.hs.space(.5)),xf=Me.Ay.div.withConfig({displayName:"StyledFloatingUi"})(gf||(gf=je()(["\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"])),He.t7.color("backgroundPopover"),(function(e){return e.rimless?"0":He.hs.space(0)}),He.t7.color("textPopover"),He.t7.color("backgroundPopover")),Of=Me.Ay.div.withConfig({displayName:"StyledBox"})(vf||(vf=je()(["\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,lr.gv)(e,"html")}),wf,He.t7.color("textPopover"));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){ze()(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}const Ef=function(e){var t=e.children,n=e.content,r=e.isPlainHtml,o=void 0===r||r,i=e.rimless,a=void 0!==i&&i,s=(0,p.useState)(!1),c=et()(s,2),u=c[0],l=c[1],d=(0,p.useRef)(null),f=uf({open:u,onOpenChange:l,middleware:[xd(),wd({padding:20}),Od({element:d}),bd(5)]}),h=f.refs,m=f.floatingStyles,g=f.context,v=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:a}=e,{enabled:s=!0,delay:c=0,handleClose:u=null,mouseOnly:l=!1,restMs:d=0,move:f=!0}=t,h=Ud(),m=Yd(),g=Vd(u),v=Vd(c),y=Vd(n),b=p.useRef(),w=p.useRef(-1),x=p.useRef(),O=p.useRef(-1),k=p.useRef(!0),S=p.useRef(!1),E=p.useRef((()=>{})),P=p.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]);p.useEffect((()=>{if(s)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(w.current),clearTimeout(O.current),k.current=!0)}}),[s,i]),p.useEffect((()=>{if(!s)return;if(!g.current)return;if(!n)return;function e(e){P()&&r(!1,e,"hover")}const t=kl(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a.floating,n,r,s,g,P]);const D=p.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=Gd(v.current,"close",b.current);o&&!x.current?(clearTimeout(w.current),w.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(w.current),r(!1,e,n))}),[v,r]),_=Ed((()=>{E.current(),x.current=void 0})),C=Ed((()=>{if(S.current){const e=kl(a.floating).body;e.style.pointerEvents="",e.removeAttribute(qd),S.current=!1}}));p.useEffect((()=>{if(s&&yl(a.domReference)){var e;const t=a.domReference;return n&&t.addEventListener("mouseleave",u),null==(e=a.floating)||e.addEventListener("mouseleave",u),f&&t.addEventListener("mousemove",i,{once:!0}),t.addEventListener("mouseenter",i),t.addEventListener("mouseleave",c),()=>{var e;n&&t.removeEventListener("mouseleave",u),null==(e=a.floating)||e.removeEventListener("mouseleave",u),f&&t.removeEventListener("mousemove",i),t.removeEventListener("mouseenter",i),t.removeEventListener("mouseleave",c)}}function t(){return!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)}function i(e){if(clearTimeout(w.current),k.current=!1,l&&!Ol(b.current)||d>0&&!Gd(v.current,"open"))return;const t=Gd(v.current,"open",b.current);t?w.current=window.setTimeout((()=>{y.current||r(!0,e,"hover")}),t):r(!0,e,"hover")}function c(e){if(t())return;E.current();const r=kl(a.floating);if(clearTimeout(O.current),g.current&&o.current.floatingContext){n||clearTimeout(w.current),x.current=g.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){C(),_(),D(e,!0,"safe-polygon")}});const t=x.current;return r.addEventListener("mousemove",t),void(E.current=()=>{r.removeEventListener("mousemove",t)})}("touch"!==b.current||!xl(a.floating,e.relatedTarget))&&D(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))}}),[a,s,e,l,d,f,D,_,C,r,n,y,h,v,g,o]),Td((()=>{var e;if(s&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&P()){const e=kl(a.floating).body;e.setAttribute(qd,""),e.style.pointerEvents="none",S.current=!0;const n=a.floating;if(yl(a.domReference)&&n){var t;const e=a.domReference,r=null==h||null==(t=h.nodesRef.current.find((e=>e.id===m)))||null==(t=t.context)?void 0:t.elements.floating;return r&&(r.style.pointerEvents=""),e.style.pointerEvents="auto",n.style.pointerEvents="auto",()=>{e.style.pointerEvents="",n.style.pointerEvents=""}}}}),[s,n,m,a,h,g,P]),Td((()=>{n||(b.current=void 0,_(),C())}),[n,_,C]),p.useEffect((()=>()=>{_(),clearTimeout(w.current),clearTimeout(O.current),C()}),[s,a.domReference,_,C]);const T=p.useMemo((()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){k.current||y.current||r(!0,t,"hover")}l&&!Ol(b.current)||n||0===d||(clearTimeout(O.current),"touch"===b.current?o():O.current=window.setTimeout(o,d))}}}),[l,r,n,y,d]),j=p.useMemo((()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){D(e.nativeEvent,!1)}})),[D]);return p.useMemo((()=>s?{reference:T,floating:j}:{}),[s,T,j])}(g,{delay:{open:500,close:0}}),y=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=p.useCallback((t=>ff(t,e,"reference")),t),i=p.useCallback((t=>ff(t,e,"floating")),n),a=p.useCallback((t=>ff(t,e,"item")),r);return p.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a})),[o,i,a])}([v]),b=y.getReferenceProps,w=y.getFloatingProps;return(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)("span",Sf(Sf({ref:h.setReference},b()),{},{children:t})),u&&n&&(0,Ke.jsx)(sf,{children:(0,Ke.jsxs)(xf,Sf(Sf({ref:h.setFloating,style:m,rimless:a},w()),{},{className:_u,children:[(0,Ke.jsx)(Fd,{ref:d,context:g}),(0,Ke.jsx)(Of,{isPlainHtml:o,children:n})]}))})]})},Pf=Ef;const Df=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,i=o.tooltips,a=o.loadTooltip,s=o.DetailLink,c=ho()(i,t.key,null),u=(0,Ke.jsx)("span",{style:n.css,children:r}),l=s?(0,Ke.jsx)(tu,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,Ke.jsx)(s,{entityKey:t.key,tabIndex:-1,children:(0,Ke.jsx)(Pf,{content:c?(0,Ke.jsx)("div",{dangerouslySetInnerHTML:{__html:Jn.sanitizeHtml(c)}}):null,children:(0,Ke.jsx)("span",{onMouseOver:function(){return a&&!c&&a(t.key)},children:u})})})}):u;return(0,Ke.jsx)(du,{children:l})};var _f=c(85015),Cf=c.n(_f),Tf=c(42194),jf=c.n(Tf);function Af(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 Mf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Af(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Af(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var If=["linkComp"],Nf=function(e,t){var n=ur.difference(e,t),r=jf()(Yr()(n,If),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},Rf=(0,p.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&Cf()(n)?(0,Ke.jsx)(tu,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,Ke.jsx)(t,{entityKey:n,children:r})}):r}),Nf);Rf.propTypes={children:Ce().node,entityKey:Ce().any,linkComp:Ce().func};const Lf=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,i=n.tooltips,a=n.loadTooltip,s=n.DetailLink,c=ho()(i,t.key,null);return(0,Ke.jsx)(Cs.SingleValue,Mf(Mf({},e),{},{children:(0,Ke.jsx)(cu,{onMouseOver:function(){return a&&!c&&a(t.key)},isDisabled:r,children:(0,Ke.jsx)(Pf,{content:c?(0,Ke.jsx)("div",{dangerouslySetInnerHTML:{__html:Jn.sanitizeHtml(c)}}):null,children:(0,Ke.jsx)(Rf,{linkComp:s,entityKey:t.key,children:o})})})}))};function Ff(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 Hf=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const Bf=function(e){var t=e.selectProps,n=e.hasValue,r=e.children,o=t.isMulti,i=t.hasAdvancedSearch,a=t.hasDocsTreeSearch,s=t.isDisabled;if(!(o&&(i||a)))return(0,Ke.jsx)(Cs.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ff(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ff(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var c=p.Children.map(r,(function(e){return Hf(e)?e:null})),u=p.Children.map(r,(function(e){return Hf(e)?null:e})),l=s&&n;return(0,Ke.jsxs)(Ke.Fragment,{children:[!l&&(0,Ke.jsx)(Ke.Fragment,{children:c}),(0,Ke.jsx)(lu,{children:u})]})};function Wf(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?Wf(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}(0,Me.SL)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,i=e.isMulti,a=e.loadTooltip,s=e.moreOptionsAvailable,c=e.moreOptionsAvailableText,u=e.noResultsText,l=e.noResultsComp,d=e.onChange,f=e.openDocsTreeSearch,h=e.openAdvancedSearch,m=e.options,g=e.searchOptions,v=e.theme,y=e.tooltips,b=e.value,w=e.DetailLink,x=e.createPermission,O=e.openRemoteCreate,k=(0,p.useRef)(null),S=(0,p.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},D=(0,p.useState)(E()),_=et()(D,2),C=_[0],T=_[1],j=(0,p.useState)(P()),A=et()(j,2),M=A[0],I=A[1],N=(0,p.useState)(!1),R=et()(N,2),L=R[0],F=R[1],H=function(e){t&&t(e)},B=(0,p.useCallback)(g||function(){},[]),W=(0,p.useCallback)(vo()(B,800,{trailing:!0}),[]),Y=Boolean(h),U=Boolean(f),z=Boolean(x),V=Boolean(g)||!Ac.isPrimaryTouchDevice();return(0,Ke.jsx)(nu,{tabIndex:"-1",id:n,onFocus:function(){k.current.focus(),setTimeout((function(){T(E()),I(P())}),0)},children:(0,Ke.jsx)(ru,{ref:S,children:(0,Ke.jsx)(jc,Yf(Yf({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:C,wrapperHeight:M,components:{ClearIndicator:Nc,LoadingIndicator:Du,DropdownIndicator:mu,IndicatorsContainer:Eu,IndicatorSeparator:null,Menu:pl,MenuList:gl,MultiValueLabel:Df,SingleValue:Lf,ValueContainer:Bf},noOptionsMessage:function(e){return u||("function"==typeof l?(0,Ke.jsx)(l,Yf({},e)):" - ")},isMulti:i,closeMenuOnSelect:!i,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&&W(e,b),""===e&&"input-change"===n&&H(b)},options:Wt()(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:fu(v),loadTooltip:a,tooltips:y,DetailLink:w,hasDocsTreeSearch:U,openDocsTreeSearch:f,hasAdvancedSearch:Y,openAdvancedSearch:h,moreOptionsAvailable:s,moreOptionsAvailableText:c,blurInputOnSelect:!1,hasCreatePermission:z,createPermission:x,openRemoteCreate:O,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));var Uf;Me.Ay.div.withConfig({displayName:"StyledBoolEdit"})(Uf||(Uf=je()(["\n margin: 5px 0;\n"])));var zf,Vf,qf=function(e){var t=e.id,n=e.value,r=e.breakWords,o=e.className;return(0,Ke.jsx)(wf,{id:t,dangerouslySetInnerHTML:{__html:Jn.sanitizeHtml(n)},breakWords:r,className:o})};Me.Ay.div.withConfig({displayName:"StyledOption"})(zf||(zf=je()(["\n margin: "," 0;\n display: flex;\n align-items: center;\n gap: ",";\n\n input {\n margin: 0;\n }\n"])),He.hs.space(-1),He.hs.space(-1.5)),Me.Ay.span.withConfig({displayName:"StyledLabel"})(Vf||(Vf=je()(["\n ","\n display: flex;\n gap: ",";\n align-items: center;\n"])),(0,He.Ed)(),He.hs.space(-1.5));c(98639);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 Kf(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){ze()(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 $f=(0,p.lazy)((function(){return Promise.all([c.e(264),c.e(722)]).then(c.bind(c,65066))}));const Xf=function(e){return(0,Ke.jsx)(p.Suspense,{fallback:(t=e.value,(0,Ke.jsx)("div",{children:(0,Ke.jsx)("p",{children:t})})),children:(0,Ke.jsx)($f,Kf({},e))});var t};var Qf,Zf=Me.Ay.div.withConfig({displayName:"StyledEditorWrapper"})(Qf||(Qf=je()(["\n margin-top: ",";\n"])),He.hs.space(-1.5));(0,Me.SL)(ut.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options,i=e.id,a=e.theme;return(0,Ke.jsx)(Zf,{children:(0,Ke.jsx)(Xf,{value:t,id:i,onChange:n,autoFocusOnMount:o.autoFocusOnMount,mode:o.mode,theme:a.codeEditorTheme,showGutter:!0,editorOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,minLines:5,maxLines:50,readOnly:r,wrap:!0,indentedSoftWrap:!1},implicitModel:o.implicitModel})})})));var Jf,ep,tp,np=Me.Ay.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(Jf||(Jf=je()(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),rp=Me.Ay.div.withConfig({displayName:"StyledDatePickerWrapper"})(ep||(ep=je()(["\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"])),so,uo,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),op=Me.Ay.input.withConfig({displayName:"StyledTimeInput"})(tp||(tp=je()(["\n &&&& {\n ","\n }\n"])),uo),ip="react-datepicker-time__input",ap="react-datepicker__day",sp="react-datepicker__input",cp=function(e){return e.classList.contains(ap)},up=function(e){return e.classList.contains(ip)},lp=function(e){return e.classList.contains(sp)},dp=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(ap,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},fp=function(e,t){var n=null==e?void 0:e.form;if(n){var r=Wt()(n).indexOf(e);if(r>=0)pp(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."))},pp=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},hp=function(e){if(!e)return null;var t=(0,$u.Hle)(e.toString());return isNaN(t)?null:t},mp=function(e){return e?e.toISOString():null};const gp=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,i=n.minDate,a=n.maxDate,c=n.hasTime,u=n.valueToDate,l=void 0===u?hp:u,d=n.dateToValue,f=void 0===d?mp:d,h=(0,p.useRef)(null),m=(0,p.useState)(!1),g=et()(m,2),v=g[0],y=g[1],b=l(e),w=i?l(i):void 0,x=a?l(a):void 0;(0,p.useEffect)((function(){h.current&&"function"==typeof h.current.setOpen&&h.current.setOpen(v)}),[v]);var O=function(){return y(!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,i=void 0===o?0:o,a=t.second,s=void 0===a?0:a;return(0,$u.avh)((0,$u.glI)((0,$u.gtt)(e,s),i),r)}(n,{hour:(0,$u.qZx)(r),minute:(0,$u.Osm)(r),second:(0,$u.SyE)(r)}):n;D(o,e)}},D=function(n,r){if(n){var i,a=!e&&Boolean(n),s=null==r||null===(i=r.target)||void 0===i?void 0:i.value,u=!!s&&o.some((function(e){return(0,$u.uv4)(s,e)})),l=(0,$u.ol1)(n),d=(0,$u.qZx)(n)!==(0,$u.qZx)(l)||(0,$u.Osm)(n)!==(0,$u.Osm)(l);(a&&!d||u)&&c&&(n=Xu.A.setCurrentTime(n)),t(f(n))}else E();var p;c||"click"!==(null==r?void 0:r.type)||(O(),pp(null===(p=h.current)||void 0===p?void 0:p.input))},_=function(t){var n,r,o=!e;if("Tab"===t.key)if(t.shiftKey){if(lp(t.target))O();else if(up(t.target)){var i;S(b||k(!0)),dp(null===(i=h.current)||void 0===i||null===(i=i.calendar)||void 0===i?void 0:i.componentNode)}else if(cp(t.target)){var a;O(),function(e){var t=null==e?void 0:e.form;if(t){var n=Wt()(t).indexOf(e);n>=1&&pp(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===(a=h.current)||void 0===a?void 0:a.input)}}else if(lp(t.target)&&v)P(t),O(),fp(null===(n=h.current)||void 0===n?void 0:n.input,o);else if(up(t.target)){var u;O(),fp(null===(u=h.current)||void 0===u?void 0:u.input,o)}else if(cp(t.target)){var l,d;if(c)P(t,!0),S(null),r=null===(l=h.current)||void 0===l||null===(l=l.calendar)||void 0===l?void 0:l.componentNode,setTimeout((function(){if(r){var e=r.querySelector("input.".concat(ip));e&&e.focus({preventScroll:!0})}}),0);else P(t),O(),fp(null===(d=h.current)||void 0===d?void 0:d.input,o)}if("Enter"===t.key&&(O(),setTimeout((function(){var e;pp(null===(e=h.current)||void 0===e?void 0:e.input)}),10),t.preventDefault(),t.stopPropagation()),["ArrowDown","ArrowUp","Enter"].includes(t.key))if(v){if(v&&null===k(!1)){var f;S(b||k(!0)),dp(null===(f=h.current)||void 0===f||null===(f=f.calendar)||void 0===f?void 0:f.componentNode)}}else y(!0),t.key="Handled".concat(t.key)},C=function(){var e;y((function(e){return!e})),S(null),pp(null===(e=h.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{onClickOutside:O,onInputClick:C,onKeyDown:_,onChange:D,onCalendarOpen:function(){S(null)},onBlur:function(){h.current&&h.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:v,selected:b,showTimeInput:c,minDate:w,maxDate:x,ref:h,className:sp},timeInputProps:{onKeyDown:_,className:ip},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),E()}},calendarButtonProps:{onClick:C,className:v?"react-datepicker-ignore-onclickoutside":""},closeModal:O}};var vp="HH:mm:ss",yp="HH:mm",bp=function(e){return(0,$u.uv4)(e,yp)},wp=function(e){var t=function(e){return e?(0,$u.uv4)(e,vp)?(0,$u.qgA)(e,vp,new Date):(0,$u.uv4)(e,yp)?(0,$u.qgA)(e,yp,new Date):(0,$u.uv4)(e,"HH:")?(0,$u.qgA)(e,"HH:",new Date):(0,$u.uv4)(e,"H")?(0,$u.qgA)(e,"H",new Date):null:e}(e);return t&&!isNaN(t)?function(e){return(0,$u.GPZ)(e,yp)}(t):""};const xp=function(e,t){var n=wp(e),r=(0,p.useState)(n),o=et()(r,2),i=o[0],a=o[1],s=(0,p.useRef)(i),c=ut.usePrevious(n);(0,p.useEffect)((function(){c!==n&&i===c&&a(n)}),[n,i,c]);var u={onChange:function(e){if(e.target.value!==i&&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,a(n);var p=wp(n);p&&!bp(p)||t(p)}},onBlur:function(){if(i!==n){var e=wp(i);e&&bp(e)?(s.current=e,a(e),t(e)):a(n)}},onFocus:function(e){i&&"function"==typeof e.target.select&&e.target.select()},value:i||""};return{inputProps:u,clearButtonProps:{onClick:function(){t(""),a("")}}}};var Op=["value","onChange","onKeyDown"];function kp(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 Sp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kp(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Qu();var Ep=function(e){var t=e.onChange,n=e.label;return(0,Ke.jsx)(Dt,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},Pp=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=qe()(e,Op),i=xp(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,Ke.jsx)(op,Sp(Sp(Sp({},i),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},Dp={strategy:"fixed"};const _p=(0,Me.SL)((0,f.injectIntl)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,i=e.maxDate,a=e.valueToDate,s=e.dateToValue,c=e.onChange,u=e.intl,l=e.placeholder,d=e.hasTime,f=e.dateFormats,h=void 0===f?[]:f,m=e.dateTimeFormats,g=void 0===m?[]:m,v=e.events,y=(0,p.useRef)(void 0),b=u.locale,w=function(e){return u.formatMessage({id:e})},x=(0,p.useRef)(null),O=Boolean(r),k=!t&&O,S=function(e){y.current=e,c(e)},E=gp(r,S,{dateFormats:h,dateTimeFormats:g,minDate:o,maxDate:i,valueToDate:a,dateToValue:s,hasTime:d}),P=E.reactDatePickerProps,D=E.timeInputProps,_=E.clearButtonProps,C=E.calendarButtonProps,T=E.closeModal;return(0,p.useEffect)((function(){var e=function(){return T()},t=x.current;return t.addEventListener("tableNavigationBlur",e),function(){t&&t.removeEventListener("tableNavigationBlur",e)}}),[T]),(0,Ke.jsx)(np,{immutable:t,id:n,tabIndex:"-1",children:(0,Ke.jsxs)(rp,{immutable:t,ref:x,hasTime:d,onBlur:function(e){if("function"==typeof(null==v?void 0:v.onBlur)){var t=void 0!==y.current?y.current:r;v.onBlur(t)}e.stopPropagation()},"data-custom-arrow-navigation":"datepicker",children:[(0,Ke.jsx)(Vu(),Sp(Sp({id:n?"".concat(n,"-datepicker"):null,popperClassName:_u},P),{},{disabled:t,dateFormat:[].concat(Wt()(g),Wt()(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,Ke.jsx)(Pp,Sp({},D)),showTimeSelect:d,timeIntervals:15,popperProps:Dp,portalId:"react-datepicker",todayButton:(0,Ke.jsx)(Ep,{onChange:S,label:w("client.component.datePicker.todayLabel")})})),k&&(0,Ke.jsx)(Nt,Sp({"data-cy":"btn-clear",icon:"times",tabIndex:-1,"aria-label":w("client.component.datePicker.clearDateLabel")},_)),!t&&(0,Ke.jsx)(Nt,Sp({"data-cy":"btn-calendar",icon:"calendar",tabIndex:-1},C))]})})})));function Cp(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}(0,f.injectIntl)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,i=e.placeholder,a=(0,f.useIntl)(),s=(null==n?void 0:n.datePickerOptions)||{},c="".concat(Xu.A.getLocalizedDateTimeFormat(a.locale)),u="".concat(Xu.A.getLocalizedDateFormat(a.locale)),l=Xu.A.getLocalizedDateTimeFormatWithoutPunctuation(a.locale),d=[c,l,Xu.A.useTwoDigitYear(c),Xu.A.useTwoDigitYear(l)],p=Xu.A.getLocalizedDateFormatWithoutPunctuation(a.locale),h=[u,p,Xu.A.useTwoDigitYear(u),Xu.A.useTwoDigitYear(p)];return(0,Ke.jsx)(_p,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cp(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({value:r,onChange:t,dateTimeFormats:d,dateFormats:h,hasTime:!0,immutable:o,placeholder:i},s))}));var Tp,jp,Ap,Mp,Ip,Np,Rp,Lp,Fp=Me.Ay.section.withConfig({displayName:"StyledSection"})(Tp||(Tp=je()(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),Hp=Me.Ay.div.withConfig({displayName:"StyledButtonsWrapper"})(jp||(jp=je()(["\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"])),St,He.hs.space(-2)),Bp=Me.Ay.div.withConfig({displayName:"StyledDropzone"})(Ap||(Ap=je()(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),St,He.t7.color("backgroundItemHover")),Wp=Me.Ay.div.withConfig({displayName:"StyledUploadInput"})(Mp||(Mp=je()(["\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,He.Ed)(),(function(e){return e.immutable?"not-allowed":"pointer"}),He.t7.color("paper"),(function(e){return e.immutable?He.Db.shade2(e):He.Db.base(e)}),He.hs.space(-2),St,He.hs.space(-3.1),He.hs.space(-1.5)),Yp=Me.Ay.div.withConfig({displayName:"StyledUploadProgress"})(Ip||(Ip=je()(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),He.hs.space(-2)),Up=(0,Me.Ay)(lr.oY).withConfig({displayName:"StyledUploadProgressText"})(Np||(Np=je()(["\n && {\n ","\n }\n"])),(0,He.Ed)({fontSize:He.hs.font(-1)})),zp=Me.Ay.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(Rp||(Rp=je()(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),He.hs.space(-2)),Vp=Me.Ay.div.withConfig({displayName:"StyledView"})(Lp||(Lp=je()(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),He.hs.space(-2));function qp(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(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(a,s)}c((r=r.apply(e,t||[])).next())}))}function Gp(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)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 a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}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 Kp(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function $p(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;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 Xp=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 Qp(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=Xp.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 Jp(e){return"object"==typeof e&&null!==e}function eh(e){return oh(e.target.files).map((function(e){return Qp(e)}))}function th(e){return qp(this,void 0,void 0,(function(){return Gp(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 Qp(e)}))]}}))}))}function nh(e,t){return qp(this,void 0,void 0,(function(){var n;return Gp(this,(function(r){switch(r.label){case 0:return e.items?(n=oh(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(ih))]):[3,2];case 1:return[2,rh(ah(r.sent()))];case 2:return[2,rh(oh(e.files).map((function(e){return Qp(e)})))]}}))}))}function rh(e){return e.filter((function(e){return-1===Zp.indexOf(e.name)}))}function oh(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function ih(e){if("function"!=typeof e.webkitGetAsEntry)return sh(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?uh(t):sh(e)}function ah(e){return e.reduce((function(e,t){return $p($p([],Kp(e),!1),Kp(Array.isArray(t)?ah(t):[t]),!1)}),[])}function sh(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Qp(t);return Promise.resolve(n)}function ch(e){return qp(this,void 0,void 0,(function(){return Gp(this,(function(t){return[2,e.isDirectory?uh(e):lh(e)]}))}))}function uh(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var i=this;t.readEntries((function(t){return qp(i,void 0,void 0,(function(){var i,a,s;return Gp(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 i=c.sent(),e(i),[3,4];case 3:return a=c.sent(),n(a),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(ch)),r.push(s),o(),c.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function lh(e){return qp(this,void 0,void 0,(function(){return Gp(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=Qp(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var dh=c(9455);function fh(e){return function(e){if(Array.isArray(e))return yh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vh(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 ph(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 hh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ph(Object(n),!0).forEach((function(t){mh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ph(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gh(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,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||vh(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 vh(e,t){if(e){if("string"==typeof e)return yh(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)?yh(e,t):void 0}}function yh(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 bh="file-invalid-type",wh="file-too-large",xh="file-too-small",Oh="too-many-files",kh=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:bh,message:"File type must be ".concat(t)}},Sh=function(e){return{code:wh,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},Eh=function(e){return{code:xh,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},Ph={code:Oh,message:"Too many files"};function Dh(e,t){var n="application/x-moz-file"===e.type||(0,dh.A)(e,t);return[n,n?null:kh(t)]}function _h(e,t,n){if(Ch(e.size))if(Ch(t)&&Ch(n)){if(e.size>n)return[!1,Sh(n)];if(e.size<t)return[!1,Eh(t)]}else{if(Ch(t)&&e.size<t)return[!1,Eh(t)];if(Ch(n)&&e.size>n)return[!1,Sh(n)]}return[!0,null]}function Ch(e){return null!=e}function Th(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function jh(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 Ah(e){e.preventDefault()}function Mh(){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!Th(e)&&t&&t.apply(void 0,[e].concat(r)),Th(e)}))}}function Ih(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function Nh(e){return/^.*\.[\w]+$/.test(e)}var Rh=["children"],Lh=["open"],Fh=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Hh=["refKey","onChange","onClick"];function Bh(e){return function(e){if(Array.isArray(e))return Uh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Yh(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 Wh(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,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||Yh(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 Yh(e,t){if(e){if("string"==typeof e)return Uh(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)?Uh(e,t):void 0}}function Uh(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 zh(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 Vh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zh(Object(n),!0).forEach((function(t){qh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gh(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Kh=(0,p.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Vh(Vh({},$h),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,a=t.minSize,s=t.multiple,c=t.maxFiles,u=t.onDragEnter,l=t.onDragLeave,d=t.onDragOver,f=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,v=t.onFileDialogOpen,y=t.useFsAccessApi,b=t.autoFocus,w=t.preventDropOnDocument,x=t.noClick,O=t.noKeyboard,k=t.noDrag,S=t.noDragEventsBubbling,E=t.onError,P=t.validator,D=(0,p.useMemo)((function(){return function(e){if(Ch(e))return Object.entries(e).reduce((function(e,t){var n=gh(t,2),r=n[0],o=n[1];return[].concat(fh(e),[r],fh(o))}),[]).filter((function(e){return Ih(e)||Nh(e)})).join(",")}(n)}),[n]),_=(0,p.useMemo)((function(){return function(e){if(Ch(e)){var t=Object.entries(e).filter((function(e){var t=gh(e,2),n=t[0],r=t[1],o=!0;return Ih(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(Nh)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=gh(t,2),r=n[0],o=n[1];return hh(hh({},e),{},mh({},r,o))}),{});return[{description:"Files",accept:t}]}return e}(n)}),[n]),C=(0,p.useMemo)((function(){return"function"==typeof v?v:Jh}),[v]),T=(0,p.useMemo)((function(){return"function"==typeof g?g:Jh}),[g]),j=(0,p.useRef)(null),A=(0,p.useRef)(null),M=Wh((0,p.useReducer)(Zh,Qh),2),I=M[0],N=M[1],R=I.isFocused,L=I.isFileDialogActive,F=(0,p.useRef)("undefined"!=typeof window&&window.isSecureContext&&y&&"showOpenFilePicker"in window),H=function(){!F.current&&L&&setTimeout((function(){A.current&&(A.current.files.length||(N({type:"closeDialog"}),T()))}),300)};(0,p.useEffect)((function(){return window.addEventListener("focus",H,!1),function(){window.removeEventListener("focus",H,!1)}}),[A,L,T,F]);var B=(0,p.useRef)([]),W=function(e){j.current&&j.current.contains(e.target)||(e.preventDefault(),B.current=[])};(0,p.useEffect)((function(){return w&&(document.addEventListener("dragover",Ah,!1),document.addEventListener("drop",W,!1)),function(){w&&(document.removeEventListener("dragover",Ah),document.removeEventListener("drop",W))}}),[j,w]),(0,p.useEffect)((function(){return!r&&b&&j.current&&j.current.focus(),function(){}}),[j,b,r]);var Y=(0,p.useCallback)((function(e){E?E(e):console.error(e)}),[E]),U=(0,p.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),B.current=[].concat(Bh(B.current),[e.target]),jh(e)&&Promise.resolve(o(e)).then((function(t){if(!Th(e)||S){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,s=e.validator;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=gh(Dh(e,n),1)[0],i=gh(_h(e,r,o),1)[0],a=s?s(e):null;return t&&i&&!a}))}({files:t,accept:D,minSize:a,maxSize:i,multiple:s,maxFiles:c,validator:P});N({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return Y(e)}))}),[o,u,Y,S,D,a,i,s,c,P]),z=(0,p.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=jh(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1}),[d,S]),V=(0,p.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=B.current.filter((function(e){return j.current&&j.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),B.current=t,t.length>0||(N({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),jh(e)&&l&&l(e))}),[j,l,S]),q=(0,p.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=Wh(Dh(e,D),2),o=t[0],s=t[1],c=Wh(_h(e,a,i),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:[Ph]})})),n.splice(0)),N({acceptedFiles:n,fileRejections:r,type:"setFiles"}),f&&f(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&h&&h(n,t)}),[N,s,D,a,i,c,f,h,m,P]),G=(0,p.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),B.current=[],jh(e)&&Promise.resolve(o(e)).then((function(t){Th(e)&&!S||q(t,e)})).catch((function(e){return Y(e)})),N({type:"reset"})}),[o,q,Y,S]),K=(0,p.useCallback)((function(){if(F.current){N({type:"openDialog"}),C();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)?Y(e):(F.current=!1,A.current?(A.current.value=null,A.current.click()):Y(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."))):(T(e),N({type:"closeDialog"}))}))}else A.current&&(N({type:"openDialog"}),C(),A.current.value=null,A.current.click())}),[N,C,T,y,q,Y,_,s]),$=(0,p.useCallback)((function(e){j.current&&j.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),K()))}),[j,K]),X=(0,p.useCallback)((function(){N({type:"focus"})}),[]),Q=(0,p.useCallback)((function(){N({type:"blur"})}),[]),Z=(0,p.useCallback)((function(){x||(!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))}),[x,K]),J=function(e){return r?null:e},ee=function(e){return O?null:J(e)},te=function(e){return k?null:J(e)},ne=function(e){S&&e.stopPropagation()},re=(0,p.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,i=e.onKeyDown,a=e.onFocus,s=e.onBlur,c=e.onClick,u=e.onDragEnter,l=e.onDragOver,d=e.onDragLeave,f=e.onDrop,p=Gh(e,Fh);return Vh(Vh(qh({onKeyDown:ee(Mh(i,$)),onFocus:ee(Mh(a,X)),onBlur:ee(Mh(s,Q)),onClick:J(Mh(c,Z)),onDragEnter:te(Mh(u,U)),onDragOver:te(Mh(l,z)),onDragLeave:te(Mh(d,V)),onDrop:te(Mh(f,G)),role:"string"==typeof o&&""!==o?o:"presentation"},n,j),r||O?{}:{tabIndex:0}),p)}}),[j,$,X,Q,Z,U,z,V,G,O,k,r]),oe=(0,p.useCallback)((function(e){e.stopPropagation()}),[]),ie=(0,p.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,i=Gh(e,Hh);return Vh(Vh({},qh({accept:D,multiple:s,type:"file",style:{display:"none"},onChange:J(Mh(r,G)),onClick:J(Mh(o,oe)),tabIndex:-1},n,A)),i)}}),[A,n,s,G,r]);return Vh(Vh({},I),{},{isFocused:R&&!r,getRootProps:re,getInputProps:ie,rootRef:j,inputRef:A,open:J(K)})}(Gh(e,Rh)),o=r.open,i=Gh(r,Lh);return(0,p.useImperativeHandle)(t,(function(){return{open:o}}),[o]),m().createElement(p.Fragment,null,n(Vh(Vh({},i),{},{open:o})))}));Kh.displayName="Dropzone";var $h={disabled:!1,getFilesFromEvent:function(e){return qp(this,void 0,void 0,(function(){return Gp(this,(function(t){return Jp(e)&&Jp(e.dataTransfer)?[2,nh(e.dataTransfer,e.type)]:function(e){return Jp(e)&&Jp(e.target)}(e)?[2,eh(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,th(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};Kh.defaultProps=$h,Kh.propTypes={children:Ce().func,accept:Ce().objectOf(Ce().arrayOf(Ce().string)),multiple:Ce().bool,preventDropOnDocument:Ce().bool,noClick:Ce().bool,noKeyboard:Ce().bool,noDrag:Ce().bool,noDragEventsBubbling:Ce().bool,minSize:Ce().number,maxSize:Ce().number,maxFiles:Ce().number,disabled:Ce().bool,getFilesFromEvent:Ce().func,onFileDialogCancel:Ce().func,onFileDialogOpen:Ce().func,useFsAccessApi:Ce().bool,autoFocus:Ce().bool,onDragEnter:Ce().func,onDragLeave:Ce().func,onDragOver:Ce().func,onDrop:Ce().func,onDropAccepted:Ce().func,onDropRejected:Ce().func,onError:Ce().func,validator:Ce().func};const Xh=Kh;var Qh={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Zh(e,t){switch(t.type){case"focus":return Vh(Vh({},e),{},{isFocused:!0});case"blur":return Vh(Vh({},e),{},{isFocused:!1});case"openDialog":return Vh(Vh({},Qh),{},{isFileDialogActive:!0});case"closeDialog":return Vh(Vh({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Vh(Vh({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Vh(Vh({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Vh({},Qh);default:return e}}function Jh(){}function em(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 tm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?em(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):em(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const nm=(0,f.injectIntl)((function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose,i=e.intl,a=function(e){return i.formatMessage({id:e})};return(0,Ke.jsxs)(Wp,{immutable:n,children:[(0,Ke.jsx)(Xh,{onDrop:function(e){var n=e.map((function(e){return Object.assign(e,{preview:URL.createObjectURL(e)})}));t(n[0])},multiple:!1,disabled:n,title:r||"drag and drop or click",children:function(e){var t=e.getRootProps,n=e.getInputProps;return(0,Ke.jsx)(Fp,{children:(0,Ke.jsxs)(Bp,tm(tm({},t()),{},{children:[(0,Ke.jsx)("input",tm({},n())),(0,Ke.jsx)(Dt,{icon:"arrow-to-top",label:a("client.component.upload.uploadFile"),iconOnly:!0})]}))})}}),o&&(0,Ke.jsx)(Dt,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:a("client.component.upload.browseDocs"),iconOnly:!0})]})}));var rm,om=Me.Ay.figure.withConfig({displayName:"StyledPreview"})(rm||(rm=je()(["\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"])),He.hs.space(-2.2),He.t7.color("border"),He.t7.radii("form"),(function(e){return e.maxDimensionX||"100%"}),(function(e){return e.maxDimensionY||"100%"}));const im=om;var am;const sm=function(e){var t=e.thumbnailUrl,n=e.alt,r=e.srcUrl,o=(e.fileName,e.caption),i=e.maxDimensionX,a=e.maxDimensionY,s=t?(0,Ke.jsx)("img",{alt:n,title:n,src:t}):(0,Ke.jsx)("div",{title:n,children:am||(am=(0,Ke.jsx)(Ge.A,{icon:"file-alt"}))});return(0,Ke.jsxs)(im,{maxDimensionX:i,maxDimensionY:a,children:[(0,Ke.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:r,children:s}),o&&(0,Ke.jsx)(lr.Ay.Figcaption,{children:o})]})};var cm=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 um=function(e){var t=e.file,n=e.text;return(0,Ke.jsxs)(Yp,{children:[(0,Ke.jsx)(sm,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,Ke.jsxs)(zp,{children:[(0,Ke.jsx)(Ze,{position:He.xX.position.PREPEND}),(0,Ke.jsxs)(Up,{children:[n||"uploading"," (",cm(t.size),")"]})]})]})};var lm=function(e,t,n){return"".concat(e).concat(e&&e.indexOf("?")>=0?"&":"?").concat(t,"=").concat(n)};const dm={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 lm(e,"download",!0)},addParameterToURL:lm};function fm(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 pm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fm(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const hm=function(e){var t,n=e.value,r=e.downloadTitle,o=e.immutable,i=e.onUpload,a=e.deleteTitle,s=null===(t=n.binaryLink)||void 0===t?void 0:t.startsWith("blob:");return(0,Ke.jsxs)(Vp,{className:"StyledView",children:[(0,Ke.jsx)(sm,pm(pm({alt:n.fileName},s&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,Ke.jsxs)(Hp,{children:[!o&&(0,Ke.jsx)(Dt,{icon:"trash",onClick:function(){return i(null)},tabIndex:-1,title:a||"delete"}),(0,Ke.jsx)(Dt,{children:(0,Ke.jsx)(ao.Ay,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:dm.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function mm(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 gm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mm(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const vm=function(e){var t=e.value,n=e.textResources,r=void 0===n?{}:n,o=e.onUpload,i=e.onChoose,a=(0,p.useRef)(t),s=(0,p.useState)({isUploading:!1,previewFile:null}),c=et()(s,2),u=c[0],l=c[1];return(0,p.useEffect)((function(){or()(a.current,t)||l({isUploading:!1,previewFile:null}),a.current=t}),[t]),null!=t&&t.binaryLink?(0,Ke.jsx)(hm,gm(gm({},e),{},{deleteTitle:r.delete,downloadTitle:r.download})):u.isUploading?(0,Ke.jsx)(um,gm({file:u.previewFile,text:r.uploading},e)):(0,Ke.jsx)(nm,gm(gm({},e),{},{onDrop:function(e){!function(e){l({isUploading:!0,previewFile:e})}(e),o(e)},onChoose:i}))};var ym,bm;Me.Ay.input.withConfig({displayName:"StyledDurationEdit"})(ym||(ym=je()(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),uo,(function(e){return e.width})),Me.Ay.label.withConfig({displayName:"StyledDurationEditFocusable"})(bm||(bm=je()(["\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"])),He.hs.space(1),(function(e){return e.immutable?He.t7.color("textDisabled"):He.t7.color("text")}),(function(e){return e.immutable&&"text"}));var wm;const xm=Me.Ay.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(wm||(wm=je()(["\n &&&& {\n ","\n }\n"])),uo);ut.Debouncer((function(e){return(0,Ke.jsxs)(co,{immutable:e.immutable,children:[(0,Ke.jsx)(xm,{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,Ke.jsx)(fo,{children:(0,Ke.jsx)(ao.Ay,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));c(67197);var Om=c(44383),km=c.n(Om);var Sm;function Em(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 Pm(){}function Dm(e){return!!(e||"").match(/\d/)}function _m(e){return null==e}function Cm(e){return _m(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function Tm(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function jm(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 Am(e,t,n){for(var r="",o=n?"0":"",i=0;i<=t-1;i++)r+=e[i]||o;return r}function Mm(e,t){return Array(t+1).join(e)}function Im(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],i=r[1];if(!(i=Number(i)))return n+o;var a=1+i,s=(o=o.replace(".","")).length;return a<0?o="0."+Mm("0",Math.abs(a))+o:a>=s?o+=Mm("0",a-s):o=(o.substring(0,a)||"0")+"."+o.substring(a),n+o}function Nm(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=jm(e),i=o.beforeDecimal,a=o.afterDecimal,s=o.hasNegation,c=parseFloat("0."+(a||"0")),u=(a.length<=t?"0."+a:c.toFixed(t)).split("."),l=i;return i&&Number(u[0])&&(l=i.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?".":"")+Am(u[1]||"",t,n)}function Rm(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"}(Sm||(Sm={}));var Lm,Fm,Hm,Bm=(Lm=function(e,t){for(var n=0,r=0,o=e.length,i=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[i-1-r]&&i-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:i-r}}},Hm=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Fm&&e.length===Fm.length&&e.every((function(e,t){return e===Fm[t]}))?Hm:(Fm=e,Hm=Lm.apply(void 0,e))}),Wm=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function Ym(e){return Math.max(e.selectionStart,e.selectionEnd)}function Um(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function zm(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function Vm(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(Dm(e[n])||Dm(e[n-1]));return t}function Gm(e,t,n,r,o,i){void 0===i&&(i=Pm);var a=function(e){var t=(0,p.useRef)(e);t.current=e;var n=(0,p.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,i;return Cm(e)?(i="",n=""):"number"==typeof e||t?(i="number"==typeof e?Im(e):e,n=r(i)):(i=o(e,void 0),n=r(i)),{formattedValue:n,numAsString:i}})),s=(0,p.useState)((function(){return a(_m(e)?t:e,n)})),c=s[0],u=s[1],l=e,d=n;_m(e)&&(l=c.numAsString,d=!0);var f=a(l,d);return(0,p.useMemo)((function(){u(f)}),[f.formattedValue]),[c,function(e,t){e.formattedValue!==c.formattedValue&&u({formattedValue:e.formattedValue,numAsString:e.value}),i(e,t)}]}function Km(e){return e.replace(/[^0-9]/g,"")}function $m(e){return e}function Xm(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,i=e.getInputRef,a=e.format;void 0===a&&(a=$m);var s=e.removeFormatting;void 0===s&&(s=Km);var c=e.defaultValue,u=e.valueIsNumericString,l=e.onValueChange,d=e.isAllowed,f=e.onChange;void 0===f&&(f=Pm);var h=e.onKeyDown;void 0===h&&(h=Pm);var g=e.onMouseUp;void 0===g&&(g=Pm);var v=e.onFocus;void 0===v&&(v=Pm);var y=e.onBlur;void 0===y&&(y=Pm);var b=e.value,w=e.getCaretBoundary;void 0===w&&(w=qm);var x=e.isValidInputCharacter;void 0===x&&(x=Dm);var O=e.isCharacterSame,k=Em(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),S=Gm(b,c,Boolean(u),a,s,l),E=S[0],P=E.formattedValue,D=E.numAsString,_=S[1],C=(0,p.useRef)(),T=(0,p.useRef)({formattedValue:P,numAsString:D}),j=function(e,t){T.current={formattedValue:e.formattedValue,numAsString:e.value},_(e,t)},A=(0,p.useState)(!1),M=A[0],I=A[1],N=(0,p.useRef)(null),R=(0,p.useRef)({setCaretTimeout:null,focusTimeout:null});(0,p.useEffect)((function(){return I(!0),function(){clearTimeout(R.current.setCaretTimeout),clearTimeout(R.current.focusTimeout)}}),[]);var L=a,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||(Rm(e,t),R.current.setCaretTimeout=setTimeout((function(){e.value===n&&e.selectionStart!==t&&Rm(e,t)}),0))},B=function(e,t,n){return Vm(e,t,w(e),n)},W=function(e,t,n){var r=w(t),o=function(e,t,n,r,o,i,a){void 0===a&&(a=zm);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(a({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]||!i(n[g]));)g++;var v=g===u||-1===f[g]?l:f[g];for(g=r-1;g>0&&-1===f[g];)g--;var y=-1===g||-1===f[g]?0:f[g]+1;return y>v?v:r-y<v-r?y:v}(t,P,e,n,r,x,O);return o=Vm(t,o,r)};(0,p.useEffect)((function(){var e=T.current,t=e.formattedValue,n=e.numAsString;P===t&&D===n||j(F(P,D),{event:void 0,source:Sm.props})}),[P,D]);var Y=N.current?Ym(N.current):void 0;("undefined"!=typeof window?p.useLayoutEffect:p.useEffect)((function(){var e=N.current;if(P!==T.current.formattedValue&&e){var t=W(T.current.formattedValue,P,Y);e.value=P,H(e,t,P)}}),[P]);var U=function(e,t,n){var r=t.target,o=C.current?Wm(C.current,r.selectionEnd):Bm(P,e),i=Object.assign(Object.assign({},o),{lastValue:P}),a=s(e,i),c=L(a);if(a=s(c,void 0),d&&!d(F(c,a))){var u=t.target,l=Ym(u),f=W(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,i=e.event,a=e.numAsString;if(r){var s=e.inputValue||r.value,c=Ym(r);r.value=t,void 0!==(n=W(s,t,c))&&H(r,n,t)}t!==P&&j(F(t,a),{event:i,source:o})}({formattedValue:c,numAsString:a,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;C.current={selectionStart:n,selectionEnd:r+t}},V=!M||"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;U(t,e,Sm.event)&&f(e),C.current=void 0},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,i=n.selectionEnd,a=n.value;void 0===a&&(a=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,a.length):"Delete"===r&&(t=o);var s=0;"Delete"===r&&o===i&&(s=1);var c="ArrowLeft"===r||"ArrowRight"===r;if(void 0===t||o!==i&&!c)return h(e),void z(n,s);var u=t;c?(u=B(a,t,"ArrowLeft"===r?"left":"right"))!==t&&e.preventDefault():"Delete"!==r||x(a[t])?"Backspace"!==r||x(a[t])||(u=B(a,t,"left")):u=B(a,t,"right");u!==t&&H(n,u,a),h(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=B(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,i=t.value;void 0===i&&(i="");var a=B(i,r);a===r||0===r&&o===i.length||H(t,a,i),v(Object.assign(Object.assign({},e),{currentTarget:n}))}),0)},onBlur:function(e){N.current=null,clearTimeout(R.current.focusTimeout),clearTimeout(R.current.setCaretTimeout),y(e)}});if("text"===n)return o?m().createElement(m().Fragment,null,o(P,k)||null):m().createElement("span",Object.assign({},k,{ref:i}),P);if(r){var G=r;return m().createElement(G,Object.assign({},q,{ref:i}))}return m().createElement("input",Object.assign({},q,{ref:i}))}function Qm(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var i=t.suffix;void 0===i&&(i="");var a=t.allowNegative,s=t.thousandsGroupStyle;if(void 0===s&&(s="thousand"),""===e||"-"===e)return e;var c=Zm(t),u=c.thousandSeparator,l=c.decimalSeparator,d=0!==n&&-1!==e.indexOf(".")||n&&r,f=jm(e,a),p=f.beforeDecimal,h=f.afterDecimal,m=f.addNegation;return void 0!==n&&(h=Am(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),i&&(h+=i),m&&(p="-"+p),e=p+(d&&l||"")+h}function Zm(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 Jm(e,t,n){var r;void 0===t&&(t=Um(e));var o=n.allowNegative,i=n.prefix;void 0===i&&(i="");var a=n.suffix;void 0===a&&(a="");var s=n.decimalScale,c=t.from,u=t.to,l=u.start,d=u.end,f=Zm(n),p=f.allowedDecimalSeparators,h=f.decimalSeparator,m=e[d]===h;if(Dm(e)&&(e===i||e===a)&&""===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 v=function(e,t,n){var r=!1,o=!1;i.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):a.startsWith("-")&&e.length===a.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}},y=v(e,l,d),b=y.hasNegation;e=(r=y).value,l=r.start,d=r.end;var w=v(t.lastValue,c.start,c.end),x=w.start,O=w.end,k=w.value,S=e.substring(l,d);!(e.length&&k.length&&(x>k.length-a.length||O<i.length))||S&&a.startsWith(S)||(e=k);var E=0;e.startsWith(i)?E+=i.length:l<i.length&&(E=l),d-=E;var P=(e=e.substring(E)).length,D=e.length-a.length;e.endsWith(a)?P=D:(d>D||d>e.length-a.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),i=r.test(e);return e=e.replace(/-/g,""),o&&!i&&t&&(e="-"+e),e}(b?"-"+e:e,o),e=(e.match(function(e,t){return new RegExp("(^-)|[0-9]|"+Tm(e),t?"g":void 0)}(h,!0))||[]).join("");var _=e.indexOf(h);e=e.replace(new RegExp(Tm(h),"g"),(function(e,t){return t===_?".":""}));var C=jm(e,o),T=C.beforeDecimal,j=C.afterDecimal,A=C.addNegation;return u.end-u.start<c.end-c.start&&""===T&&m&&!parseFloat(j)&&(e=A?"-":""),e}function eg(e){e=function(e){var t=Zm(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var i=e.allowNegative;if(void 0===i&&(i=!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("-")&&i&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+i+"\n "),i=!1),Object.assign(Object.assign({},e),{allowNegative:i})}(e);e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=Pm);var i=e.onBlur;void 0===i&&(i=Pm);var a=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=Em(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=Zm(e),g=m.decimalSeparator,v=m.allowedDecimalSeparators,y=function(t){return Qm(t,e)},b=function(t,n){return Jm(t,n,e)},w=_m(d)?l:d,x=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);_m(d)?_m(l)||(x=x||"number"==typeof l):x=x||"number"==typeof d;var O=function(e){return Cm(e)?e:("number"==typeof e&&(e=Im(e)),x&&"number"==typeof s?Nm(e,s,Boolean(c)):e)},k=Gm(O(d),O(l),Boolean(x),y,b,p),S=k[0],E=S.numAsString,P=S.formattedValue,D=k[1];return Object.assign(Object.assign({},h),{value:P,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===g||Dm(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,o=e.currentValueIndex,i=e.formattedValueIndex,a=t[o],s=r[i],c=Bm(n,t).to;return!!(o>=c.start&&o<c.end&&v&&v.includes(a)&&s===g)||a===s},onValueChange:D,format:y,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})),i="-"===e[0];o.fill(!1,0,n.length+(i?1:0));var a=e.length;return o.fill(!1,a-r.length+1,a+1),o}(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,i=t.selectionStart,l=t.selectionEnd,d=t.value;if(void 0===d&&(d=""),("Backspace"===r||"Delete"===r)&&l<u.length)e.preventDefault();else if(i===l){"Backspace"===r&&"-"===d[0]&&i===u.length+1&&n&&Rm(t,1),s&&c&&("Backspace"===r&&d[i-1]===g?(Rm(t,i-1),e.preventDefault()):"Delete"===r&&d[i]===g&&e.preventDefault()),(null==v?void 0:v.includes(r))&&d[i]===g&&Rm(t,i+1);var f=!0===a?",":a;"Backspace"===r&&d[i-1]===f&&Rm(t,i-1),"Delete"===r&&d[i]===f&&Rm(t,i+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=Nm(n,s,c)),n!==E){var o=Qm(n,e);D({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:Sm.event})}i(t)}})}function tg(e){var t=eg(e);return m().createElement(Xm,Object.assign({},t))}var ng,rg=["immutable"];function og(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 ig=(0,Me.Ay)((function(e){e.immutable;var t=qe()(e,rg);return(0,Ke.jsx)(tg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?og(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):og(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(ng||(ng=je()(["\n &&&& {\n ","\n }\n"])),uo);const ag=ig;function sg(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 cg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sg(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ug=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},lg=function(e){return null!=e&&!isNaN(parseFloat(e))},dg=function(e,t,n){return!lg(n)||!(lg(t)&&n>t)&&!(lg(e)&&n<e)},fg=function(e,t){return function(n){var r=n.floatValue;return ug(r)<ug(e)||dg(e,t,r)}};(0,f.injectIntl)(ut.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,i=e.options||{},a=i.prePointDigits,s=i.postPointDigits,c=i.minValue,u=i.maxValue,l=i.allowNegative,d=i.fixedDecimalScale,f=i.suffix,p=i.prefix,h=i.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}(a,s,u),g=cg(cg({isAllowed:fg(c,m),allowNegative:!!l},isNaN(s)?{}:{decimalScale:s}),{},{fixedDecimalScale:!!d}),v=void 0===e.value||null===e.value?"":e.value;return(0,Ke.jsx)(co,{immutable:e.immutable,children:(0,Ke.jsx)(ag,cg(cg({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&dg(c,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:v,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&&!dg(c,m,r)&&(t.target.value=null)}}))})}),800));ut.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.options,o=e.immutable,i=e.name,a=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,Ke.jsx)(co,{immutable:o,children:(0,Ke.jsx)(ag,{isAllowed:fg(u,l),allowNegative:!0,decimalScale:0,disabled:o,id:a,name:i,onValueChange:function(e){var t=e.value,r=e.floatValue,o=f?t:r;void 0===o&&(o=null),dg(u,l,r)&&n(o)},value:h,allowLeadingZeros:f,suffix:p,format:d,placeholder:s,immutable:o})})}),800);var pg,hg,mg;Me.Ay.div.withConfig({displayName:"StyledWrapper"})(pg||(pg=je()(["\n display: flex;\n justify-content: stretch;\n"]))),Me.Ay.div.withConfig({displayName:"StyledLocationWrapper"})(hg||(hg=je()(["\n flex-grow: 1;\n"]))),Me.Ay.div.withConfig({displayName:"StyledDistanceWrapper"})(mg||(mg=je()(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),He.t7.color("border"),He.hs.space(-.8),He.hs.space(.5));var gg;Me.Ay.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(gg||(gg=je()(["\n &&&& {\n ","\n }\n"])),uo);ut.Debouncer((function(e){return(0,Ke.jsx)(co,{immutable:e.immutable,children:(0,Ke.jsx)(xm,{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 vg,yg,bg,wg,xg,Og=c(60115),kg=(Me.Ay.div.withConfig({displayName:"StyledTermsEdit"})(vg||(vg=je()(["\n margin: "," 0;\n display: flex;\n"])),He.hs.space(-1.4)),Me.Ay.input.withConfig({displayName:"StyledCheckbox"})(yg||(yg=je()(["\n margin-right: ",";\n"])),He.hs.space(-1.5)),(0,Me.AH)(bg||(bg=je()(["\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"])),He.t7.color("secondary"),He.t7.color("secondaryLight"),He.t7.color("secondary")));Me.Ay.a.withConfig({displayName:"StyledTermsLink"})(wg||(wg=je()(["\n ","\n"])),kg),(0,Me.Ay)(qf).withConfig({displayName:"StyledHtmlFormatter"})(xg||(xg=je()(["\n &&& {\n p {\n margin: 0;\n }\n\n a {\n ","\n }\n }\n"])),kg);var Sg,Eg,Pg,Dg=(0,Me.AH)(Sg||(Sg=je()(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),uo),_g=Me.Ay.div.withConfig({displayName:"StyledSizeWrapper"})(Eg||(Eg=je()(["\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"])),Dg),Cg=Me.Ay.textarea.withConfig({displayName:"StyledTextarea"})(Pg||(Pg=je()(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: ",";\n position: relative;\n }\n"])),Dg,(function(e){var t=e.disabled,n=e.isSafari;return!t||n?"4.5em":"0"}));function Tg(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?Tg(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ag=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,i=e.disabled,a=e.immutable,s=(0,p.useState)(t),c=et()(s,2),u=c[0],l=c[1],d=!Ac.isSafari(),f=Ac.isSafari(),h=(0,p.useCallback)(vo()(l,500,{trailing:!0}),[]);return(0,p.useEffect)((function(){d&&h(t)}),[t,d,h]),(0,Ke.jsx)(_g,jg(jg({"data-testid":"replicated-test"},d?{"data-replicated-value":u}:{}),{},{children:(0,Ke.jsx)(Cg,{value:t||"",name:r,id:o,onChange:n,disabled:i,immutable:a,rows:"1",isSafari:f})}))};ut.Debouncer((function(e){return(0,Ke.jsx)(co,{immutable:e.immutable,"data-custom-arrow-navigation":"text",children:(0,Ke.jsx)(Ag,{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 Mg;Me.Ay.input.withConfig({displayName:"StyledTimeEdit"})(Mg||(Mg=je()(["\n &&&& {\n ","\n }\n"])),uo);var Ig;const Ng=Me.Ay.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(Ig||(Ig=je()(["\n &&&& {\n ","\n }\n"])),uo);ut.Debouncer((function(e){return(0,Ke.jsxs)(co,{immutable:e.immutable,children:[(0,Ke.jsx)(Ng,{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,Ke.jsx)(fo,{children:(0,Ke.jsx)(ao.Ay,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));const Rg=(0,Me.SL)((function(e){return(0,Ke.jsx)(Ge.A,{style:{fontSize:"".concat(e.theme.fontSize.base,"rem")},icon:e.value?"check":"times"})}));const Lg=function(e){var t=(0,f.useIntl)();return(0,Ke.jsx)(lr.Ay.Time,{dateTime:e.value,title:t.formatDate(e.value),children:(0,Ke.jsx)(f.FormattedDate,{value:e.value,year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC",id:e.id})})};var Fg;const Hg=(0,f.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),Fg||(Fg=(0,Ke.jsx)(lr.Ay.Span,{}));var o=(0,$u.GPZ)(r,"HH:mm");return(0,Ke.jsxs)(lr.Ay.Time,{dateTime:r.toISOString(),title:"".concat(n.formatDate(r),", ").concat(o),children:[(0,Ke.jsx)(f.FormattedDate,{value:r,year:"numeric",month:"2-digit",day:"2-digit"}),", ",o]})}));var Bg;function Wg(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 Yg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wg(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ug=function(e){var t=e.options||{},n=(0,Ke.jsxs)(Ke.Fragment,{children:[t.title&&(0,Ke.jsx)(lr.Ay.H5,{children:t.title}),(0,Ke.jsx)(qf,Yg({},e))]});return"text"===t.mode?n:(0,Ke.jsx)(Pf,{content:n,isPlainHtml:!0,children:Bg||(Bg=(0,Ke.jsx)(yf,{children:(0,Ke.jsx)(Ge.A,{icon:"question-circle"})}))})};const zg=function(e){var t=e.value,n=e.options||{},r=n.tooltips,o=n.loadTooltip,i=ho()(r,t.resourceKey,null);return(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(Pf,{content:i?(0,Ke.jsx)("div",{dangerouslySetInnerHTML:{__html:Jn.sanitizeHtml(i)}}):null,children:(0,Ke.jsx)("span",{onMouseOver:function(){return o&&!i&&o(t.resourceKey)},children:(0,Ke.jsx)(ao.Ay,{alt:t.alt||t.fileName,icon:"eye",look:"raised",target:"_blank",href:t.binaryLink,onClick:function(e){e.stopPropagation()}})})}),(0,Ke.jsx)(ao.Ay,{alt:t.alt||t.fileName,icon:"arrow-to-bottom",look:"raised",target:"_blank",href:dm.getDownloadUrl(t.binaryLink),onClick:function(e){e.stopPropagation()}})]})};const Vg=function(e){return(0,Ke.jsx)(vm,{onUpload:function(){},immutable:!0,textResources:{download:e.options.downloadText},value:e.value?e.value:null})};const qg=function(e){var t=e.value,n=parseInt(t),r=Xu.A.formatDuration(n);return(0,Ke.jsx)(lr.Ay.Time,{dateTime:r,title:r,children:r})};const Gg=function(e){return(0,Ke.jsx)(ao.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 Kg=function(e){return(0,Ke.jsx)(lr.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};function $g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$g(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qg=function(){return"; "};const Zg=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.useTitle,i=n||{},a=i.navigationStrategy,s=i.linkProps,c=(null==t?void 0:t.length)>0?t.map((function(e){return null!=a&&a.DetailLink?(0,Ke.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,Ke.jsx)(a.DetailLink,Xg(Xg({},s),{},{entityKey:e.key,children:e.display}))}):e.display})).reduce((function(e,t,n){return[e,(0,Ke.jsx)(Qg,{},"sep".concat(n)),t]})):null;return(0,Ke.jsx)(lr.Ay.Span,{breakWords:r,useTitle:o,children:c})};const Jg=function(e){return(0,Ke.jsx)(lr.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,Ke.jsx)(f.FormattedNumber,{value:e.value,style:"decimal",minimumFractionDigits:e.options&&e.options.postPointDigits||2})})};const ev=function(e){var t;return(0,Ke.jsx)(lr.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,Ke.jsx)(f.FormattedNumber,{value:e.value,style:"percent",minimumFractionDigits:null==e||null===(t=e.options)||void 0===t?void 0:t.postPointDigits})})};function tv(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 nv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tv(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rv=(0,p.lazy)((function(){return Promise.all([c.e(222),c.e(672)]).then(c.bind(c,74302))}));const ov=function(e){return(0,Ke.jsx)(p.Suspense,{fallback:"",children:(0,Ke.jsx)(rv,nv({},e))})};function iv(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?iv(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const sv=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.id,i=n||{},a=i.tooltips,s=i.loadTooltip,c=i.navigationStrategy,u=i.linkProps,l=ho()(a,t.key,null);t=ur.getOrFirst(t);var d=(0,Ke.jsx)(lr.Ay.Span,{breakWords:r,useTitle:!l,id:o,children:t.display});return(null!=c&&c.DetailLink?(0,Ke.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,Ke.jsx)(c.DetailLink,av(av({},u),{},{entityKey:t.key,children:(0,Ke.jsx)(Pf,{content:l?(0,Ke.jsx)("div",{dangerouslySetInnerHTML:{__html:Jn.sanitizeHtml(l)}}):null,children:(0,Ke.jsx)("span",{onMouseOver:function(){return s&&!l&&s(t.key)},id:o,children:d})})}))}):null)||d};const cv=function(e){return(0,Ke.jsx)(lr.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,id:e.id,children:e.value.toString()})};const uv=function(e){return e.breakWords?(0,Ke.jsx)(lr.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,Ke.jsx)("br",{},t)]:e})))}):(0,Ke.jsx)(lr.Ay.Span,{breakWords:!1,useTitle:e.useTitle,id:e.id,children:e.value.replace("/\n/g"," ")});var t};var lv=function(e,t){return parseInt(e.split(":")[t])||0};const dv=(0,f.injectIntl)((function(e){var t=e.value,n=(e.intl,lv(t,0)),r=lv(t,1),o=lv(t,2),i=lv(t,3),a=new Date(2e3,1,1,n,r,o,i),s=(0,$u.GPZ)(a,"HH:mm:ss.SSS"),c=(0,$u.GPZ)(a,"HH:mm");return(0,Ke.jsx)(lr.Ay.Time,{dateTime:s,title:c,children:c})}));const fv=function(e){var t=e.value,n=e.breakWords,r=e.useTitle;return(0,Ke.jsx)(ao.Ay,{onClick:function(e){e.stopPropagation()},href:t,target:"_blank",rel:"noopener noreferrer",label:t,breakWords:n,useTitle:r,neutral:!1})};var pv,hv={boolean:Rg,date:Lg,datetime:Hg,document:Vg,"document-compact":zg,duration:qg,email:Gg,html:qf,integer:Kg,"multi-remote":Zg,"multi-select":Zg,number:Jg,percent:ev,phone:ov,remote:sv,"single-select":sv,string:cv,text:uv,time:dv,url:fv,description:Ug};const mv=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.breakWords,i=void 0===o||o,a=e.useTitle,s=void 0===a||a,c=e.id;if(hv[t]){var u=hv[t];return(0,Ke.jsx)(u,{value:n,options:r,breakWords:i,useTitle:s,id:c})}return console.log("No FormattedValue mapper defined for component type",t,n),pv||(pv=(0,Ke.jsx)("div",{}))};var gv;const vv=function(e){var t=e.type,n=e.value,r=e.options,o=e.breakWords,i=e.useTitle,a=e.id;return null==n||""===n?gv||(gv=(0,Ke.jsx)("span",{})):(0,Ke.jsx)(mv,{componentType:t,value:n,options:r,breakWords:o,useTitle:i,id:a})},yv=vv;var bv;Me.Ay.div.withConfig({displayName:"StyledLayoutBox"})(bv||(bv=je()(["\n height: fit-content;\n margin-bottom: ",";\n"])),He.hs.space(.25));var wv;Me.Ay.div.withConfig({displayName:"StyledLayoutContainer"})(wv||(wv=je()(["\n display: grid;\n padding-right: ",";\n ",";\n ",";\n"])),He.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(He.hs.space(.25)({theme:n}))}),(function(e){return e.occupiesRemainingHeight&&"\n flex: 1;\n "}));var xv,Ov,kv,Sv,Ev=c(5016),Pv=(0,Me.i7)(xv||(xv=je()(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),Dv=(0,Me.AH)(Ov||(Ov=je()(["\n animation: "," 400ms ease-in-out both;\n"])),Pv),_v=Me.Ay.div.withConfig({displayName:"StyledLoadingIconAndTest"})(kv||(kv=je()(["\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"])),He.hs.space(-1),Dv,Ev.oY,He.hs.space(-1));const Cv=Me.Ay.div.withConfig({displayName:"StyledLoadMask"})(Sv||(Sv=je()(["\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 Tv;const jv=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,i=e.className,a=(0,p.useState)(!1),s=et()(a,2),c=s[0],u=s[1],l=(0,p.useState)(!0),d=et()(l,2),f=d[0],h=d[1];(0,p.useEffect)((function(){return t&&Promise.all(t).then((function(){var e;e=!0,f&&u(e)})),function(){h(!1)}}),[]);var m=n&&Array.isArray(n)?!n.some((function(e){return!e})):!!t&&c;return(0,Ke.jsx)(Cv,{className:i,children:m?r:(0,Ke.jsxs)(_v,{children:[Tv||(Tv=(0,Ke.jsx)(Ze,{size:"30px"},"loading-spinner")),o&&(0,Ke.jsx)(lr.Ay.Span,{children:o},"loadingText")]})})};var Av,Mv=Me.Ay.div.withConfig({displayName:"StyledPanel"})(Av||(Av=je()(["\n && {\n background-color: ",";\n border: 1px "," ",";\n border-radius: ",";\n }\n"])),He.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),He.t7.color("borderLight"),He.t7.radii("form"));const Iv=Mv;var Nv=["children","isFramed","controlledIsOpen","isOpenInitial","isToggleable","onToggle"];const Rv=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.controlledIsOpen,i=e.isOpenInitial,a=void 0===i||i,s=e.isToggleable,c=void 0===s||s,u=e.onToggle,l=qe()(e,Nv),d=(0,p.useState)(a),f=et()(d,2),h=f[0],g=f[1],v="boolean"==typeof o,y=function(){c&&(v?"function"==typeof u&&u(!o):g(!h))};return(0,Ke.jsx)(Iv,{isFramed:r,"data-cy":l["data-cy"],children:m().Children.map(t,(function(e){return m().cloneElement(e,{isFramed:r,isOpen:v?o:h,isToggleable:c,toggleOpenState:y})}))})};var Lv,Fv=Me.Ay.div.withConfig({displayName:"StyledPanelBody"})(Lv||(Lv=je()(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?He.hs.space(-.375):0}),(function(e){return e.isOpen?"block":"none"}));const Hv=Fv;var Bv=["children","isFramed","isOpen"];const Wv=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=qe()(e,Bv);return(0,Ke.jsx)(Hv,{isFramed:n,isOpen:r,"data-cy":o["data-cy"],children:(0,Ke.jsx)("div",{children:t})})};const Yv=function(e){var t=e.initialOpenPanelIndex,n=e.children,r=(0,p.useState)(t),o=et()(r,2),i=o[0],a=o[1];return(0,Ke.jsx)(Ke.Fragment,{children:m().Children.map(n,(function(e,t){return m().cloneElement(e,{controlledIsOpen:i===t,onToggle:function(e){return function(e,t){a(!0===t?e:void 0)}(t,e)}})}))})};var Uv;const zv=Me.Ay.div.withConfig({displayName:"StyledPanelGroup"})(Uv||(Uv=je()(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),He.hs.space(0),Iv,He.hs.space(-1));function Vv(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 qv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vv(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Gv=function(e){return(0,Ke.jsx)(zv,{children:(0,Ke.jsx)(Yv,qv({},e))})};var Kv,$v,Xv,Qv,Zv,Jv,ey="1px",ty=Me.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Kv||(Kv=je()(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),He.hs.font(1),He.t7.color("text"),!Ac.isTouchDevice&&(0,Me.AH)($v||($v=je()(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),He.t7.color("secondaryLight"))),ny=Me.Ay.div.withConfig({displayName:"StyledPanelHeader"})(Xv||(Xv=je()(["\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"])),He.t7.color("backgroundPanelHeaderFooter"),He.t7.radii("form"),ey,He.t7.radii("form"),ey,He.t7.radii("form"),ey,He.t7.radii("form"),ey,(function(e){return e.isOpen&&(0,Me.AH)(Qv||(Qv=je()(["\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n "])))}),(function(e){return e.isFramed?(0,Me.AH)(Zv||(Zv=je()(["\n "," ","\n "])),He.hs.space(-1.7),He.hs.space(-.375)):0}),!Ac.isTouchDevice&&(0,Me.AH)(Jv||(Jv=je()(["\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n "])),ty),(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(ey,";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-width: ").concat(ey,";\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(ey,";\n }\n ")}(e)}));const ry=ny;var oy=["children","isFramed","isOpen","isToggleable","showToggler","toggleOpenState","options"];const iy=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,i=e.showToggler,a=void 0===i||i,s=e.toggleOpenState,c=e.options,u=void 0===c?{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}:c,l=qe()(e,oy);return(0,Ke.jsxs)(ry,{isFramed:n,isOpen:r,onClick:s,"data-cy":l["data-cy"],children:[(0,Ke.jsx)("div",{children:m().Children.map(t,(function(e){return m().cloneElement(e)}))}),o&&a&&(0,Ke.jsx)(ty,{children:(0,Ke.jsx)(Ge.A,{icon:r?"chevron-up":"chevron-down",onClick:s,title:r?u.collapseButtonText:u.unfoldButtonText})})]})},ay={Body:Wv,Group:Gv,Header:iy,Wrapper:Rv};var sy,cy=Me.Ay.div.withConfig({displayName:"StyledPanel"})(sy||(sy=je()(["\n && {\n background-color: ",";\n border: 1.5px "," ",";\n border-radius: ",";\n }\n"])),He.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),He.t7.color("borderLight"),He.t7.radii("form"));const uy=cy;const ly=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.isOpenInitial,i=void 0===o||o,a=(0,p.useState)(i),s=et()(a,2),c=s[0],u=s[1];return(0,Ke.jsx)(uy,{isFramed:r,children:m().Children.map(t,(function(e){return m().cloneElement(e,{isOpen:c,isToggleable:!i,isFramed:r,toggleOpenState:function(){return u(!c)}})}))})};var dy,fy,py=Me.Ay.div.withConfig({displayName:"StyledPanelBody"})(dy||(dy=je()(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?(0,Me.AH)(fy||(fy=je()(["\n "," "," "," ","\n "])),He.hs.space(-1),He.hs.space(.2),He.hs.space(.2),He.hs.space(.2)):0}),(function(e){return e.isOpen?"block":"none"}));const hy=py;const my=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,Ke.jsx)(hy,{isFramed:n,isOpen:r,children:(0,Ke.jsx)("div",{children:t})})};var gy;const vy=Me.Ay.div.withConfig({displayName:"StyledPanelGroup"})(gy||(gy=je()(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),He.hs.space(0),uy,He.hs.space(-1));function yy(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 by(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yy(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const wy=function(e){return(0,Ke.jsx)(vy,{children:(0,Ke.jsx)(Yv,by({},e))})};var xy,Oy,ky,Sy="1px",Ey=Me.Ay.div.withConfig({displayName:"StyledPanelHeader"})(xy||(xy=je()(["\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"])),He.t7.color("paper"),He.t7.radii("form"),Sy,He.t7.radii("form"),Sy,(function(e){return e.isFramed?He.hs.space(.2):0}),He.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(Sy,";\n }\n ")}(e)})),Py=Me.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Oy||(Oy=je()(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),He.hs.font(1),He.t7.color("text"),!Ac.isTouchDevice&&(0,Me.AH)(ky||(ky=je()(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),He.t7.color("secondaryLight")));const Dy=Ey;const _y=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,i=e.showToggler,a=void 0===i||i,s=e.toggleOpenState,c=e.options,u=void 0===c?{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}:c;return(0,Ke.jsxs)(Dy,{isFramed:n,isOpen:r,onClick:o?s:function(){},children:[(0,Ke.jsx)("div",{children:m().Children.map(t,(function(e){return m().cloneElement(e)}))}),o&&a&&(0,Ke.jsx)(Py,{children:(0,Ke.jsx)(Ge.A,{icon:r?"chevron-up":"chevron-down",onClick:s,title:r?u.collapseButtonText:u.unfoldButtonText})})]})},Cy={Body:my,Group:wy,Header:_y,Wrapper:ly};var Ty={Body:ze()(ze()({},Og.A.EmbedType.admin,ay.Body),Og.A.EmbedType.widget,Cy.Body),Group:ze()(ze()({},Og.A.EmbedType.admin,ay.Group),Og.A.EmbedType.widget,Cy.Group),Header:ze()(ze()({},Og.A.EmbedType.admin,ay.Header),Og.A.EmbedType.widget,Cy.Header),Wrapper:ze()(ze()({},Og.A.EmbedType.admin,ay.Wrapper),Og.A.EmbedType.widget,Cy.Wrapper)};Og.A.embedStrategyFactory({mapping:Ty.Body}),Og.A.embedStrategyFactory({mapping:Ty.Group}),Og.A.embedStrategyFactory({mapping:Ty.Header}),Og.A.embedStrategyFactory({mapping:Ty.Wrapper});var jy;Me.Ay.div.withConfig({displayName:"StyledButtonWrapper"})(jy||(jy=je()(["\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: flex-end;\n"])),He.hs.space(0),He.t7.color("paper"));var Ay=new AbortController,My=!1;window.addEventListener("beforeunload",(function(e){My?(e.preventDefault(),e.returnValue=""):Ay.abort()})),window.addEventListener("pagehide",(function(){Ay.signal.aborted||Ay.abort()}));var Iy=function(e){return"@@redux-saga/"+e},Ny=Iy("CANCEL_PROMISE"),Ry=Iy("CHANNEL_END"),Ly=Iy("IO"),Fy=Iy("MATCH"),Hy=Iy("MULTICAST"),By=Iy("SAGA_ACTION"),Wy=Iy("SELF_CANCELLATION"),Yy=Iy("TASK"),Uy=Iy("TASK_CANCEL"),zy=Iy("TERMINATE"),Vy=Iy("LOCATION");function qy(){return qy=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},qy.apply(this,arguments)}var Gy=function(e){return null==e},Ky=function(e){return null!=e},$y=function(e){return"function"==typeof e},Xy=function(e){return"string"==typeof e},Qy=Array.isArray,Zy=function(e){return e&&$y(e.then)},Jy=function(e){return e&&$y(e.next)&&$y(e.throw)},eb=function e(t){return t&&(Xy(t)||rb(t)||$y(t)||Qy(t)&&t.every(e))},tb=function(e){return e&&$y(e.take)&&$y(e.close)},nb=function(e){return $y(e)&&e.hasOwnProperty("toString")},rb=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},ob=function(e){return tb(e)&&e[Hy]};var ib=function(e){return function(){return e}},ab=ib(!0),sb=function(){};var cb=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var ub=function(e,t){qy(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function lb(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function db(e){var t=!1;return function(){t||(t=!0,e())}}var fb=function(e){throw e},pb=function(e){return{value:e,done:!0}};function hb(e,t,n){void 0===t&&(t=fb),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:pb,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function mb(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var gb=function(e){return Array.apply(null,new Array(e))},vb=function(e){return function(t){return e(Object.defineProperty(t,By,{value:!0}))}},yb=function(e){return e===zy},bb=function(e){return e===Uy},wb=function(e){return yb(e)||bb(e)};function xb(e,t){var n=Object.keys(e),r=n.length;var o,i=0,a=Qy(e)?gb(r):{},s={};return n.forEach((function(e){var n=function(n,s){o||(s||wb(n)?(t.cancel(),t(n,s)):(a[e]=n,++i===r&&(o=!0,t(a))))};n.cancel=sb,s[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return s[e].cancel()})))},s}function Ob(e){return{name:e.name||"anonymous",location:kb(e)}}function kb(e){return e[Vy]}function Sb(){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 Eb={isEmpty:ab,put:sb,take:sb};function Pb(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,i=0,a=function(t){n[o]=t,o=(o+1)%e,r++},s=function(){if(0!=r){var t=n[i];return n[i]=null,r--,i=(i+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)a(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=s,i=o=(o+1)%e;break;case 4:u=2*e,n=c(),r=n.length,o=n.length,i=0,n.length=u,e=u,a(s)}},take:s,flush:c}}var Db=function(){return Eb},_b=function(e){return Pb(e,4)},Cb="TAKE",Tb="PUT",jb="ALL",Ab="RACE",Mb="CALL",Ib="CPS",Nb="FORK",Rb="JOIN",Lb="CANCEL",Fb="SELECT",Hb="ACTION_CHANNEL",Bb="CANCELLED",Wb="FLUSH",Yb="GET_CONTEXT",Ub="SET_CONTEXT",zb=function(e,t){var n;return(n={})[Ly]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function Vb(e,t){return void 0===e&&(e="*"),eb(e)?(Ky(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),zb(Cb,{pattern:e})):ob(e)&&Ky(t)&&eb(t)?zb(Cb,{channel:e,pattern:t}):tb(e)?(Ky(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),zb(Cb,{channel:e})):void 0}function qb(e,t){return Gy(t)&&(t=e,e=void 0),zb(Tb,{channel:e,action:t})}function Gb(e){var t=zb(jb,e);return t.combinator=!0,t}function Kb(e,t){var n,r=null;return $y(e)?n=e:(Qy(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&Xy(n)&&$y(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function $b(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 zb(Mb,Kb(e,n))}function Xb(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 zb(Nb,Kb(e,n))}function Qb(e){void 0===e&&(e=cb);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return zb(Fb,{selector:e,args:n})}var Zb=function(e){return{done:!0,value:e}},Jb={};function ew(e){return tb(e)?"channel":nb(e)?String(e):$y(e)?e.name:String(e)}function tw(e,t,n){var r,o,i,a=t;function s(t,n){if(a===Jb)return Zb(t);if(n&&!o)throw a=Jb,n;r&&r(t);var s=n?e[o](n):e[a]();return a=s.nextState,i=s.effect,r=s.stateUpdater,o=s.errorState,a===Jb?Zb(t):i}return hb(s,(function(e){return s(null,e)}),n)}function nw(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 i,a={done:!1,value:Vb(e)},s=function(e){return i=e};return tw({q1:function(){return{nextState:"q2",effect:a,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=i,{done:!1,value:Xb.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+ew(e)+", "+t.name+")")}function rw(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 i,a,s={done:!1,value:Vb(e)},c=function(e){return{done:!1,value:Xb.apply(void 0,[t].concat(r,[e]))}},u=function(e){return{done:!1,value:(t=e,void 0===t&&(t=Wy),zb(Lb,t))};var t},l=function(e){return i=e},d=function(e){return a=e};return tw({q1:function(){return{nextState:"q2",effect:s,stateUpdater:d}},q2:function(){return i?{nextState:"q3",effect:u(i)}:{nextState:"q1",effect:c(a),stateUpdater:l}},q3:function(){return{nextState:"q1",effect:c(a),stateUpdater:l}}},"q1","takeLatest("+ew(e)+", "+t.name+")")}function ow(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 Xb.apply(void 0,[nw,e,t].concat(r))}function iw(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 Xb.apply(void 0,[rw,e,t].concat(r))}var aw=function(e,t,n){return r().mark((function o(){var i,a,c,u=arguments;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(i=u.length,a=new Array(i),c=0;c<i;c++)a[c]=u[c];case 1:return r.prev=2,r.next=5,$b.apply(void 0,[e,t].concat(a));case 5:r.next=16;break;case 7:if(r.prev=7,r.t0=r.catch(2),!1!==Ay.signal.aborted){r.next=16;break}if(!n){r.next=15;break}return r.next=13,qb(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 sw={autoRestartSaga:aw,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,Gb(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(aw(t,null,n)))},abortController:Ay,deactivatePreventFromLeaving:function(){My=!1},activatePreventFromLeaving:function(){My=!0}};Ce().node,Ce().bool,Ce().string,Ce().bool,Ce().objectOf(Ce().arrayOf(Ce().oneOfType([Ce().node,Ce().string]))),Ce().bool,Ce().bool,Ce().string,Ce().string,Ce().oneOf(["inside","outside-responsive","outside"]),Ce().bool,Ce().string,Ce().bool,Ce().string,Ce().bool;var cw,uw,lw,dw=ze()(ze()(ze()(ze()(ze()({},He.xX.condition.BASE,He.t7.color("text")),He.xX.condition.DANGER,He.t7.color("signal.danger")),He.xX.condition.SUCCESS,He.t7.color("signal.success")),He.xX.condition.WARNING,He.t7.color("signal.warning")),He.xX.condition.INFO,He.t7.color("signal.info")),fw=(0,Me.Ay)(lr.dV).withConfig({displayName:"StyledSignalList"})(cw||(cw=je()(["\n && {\n list-style-type: none;\n margin-left: 0;\n }\n"]))),pw=Me.Ay.span.withConfig({displayName:"StyledSignalListIcon"})(uw||(uw=je()(["\n margin-left: -1px;\n margin-right: ",";\n"])),He.hs.space(-2)),hw=(0,Me.Ay)(lr.vx).withConfig({displayName:"StyledSignalListItem"})(lw||(lw=je()(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){var t=e.condition;return dw[t]}(e)}));const mw=function(e){return(0,Ke.jsx)(fw,{as:"ul",children:m().Children.map(e.children,(function(e){return m().cloneElement(e)}))})};var gw,vw=["condition","label","children"],yw=ze()(ze()(ze()(ze()(ze()({},He.xX.condition.BASE,!1),He.xX.condition.DANGER,"times"),He.xX.condition.SUCCESS,"check"),He.xX.condition.WARNING,"exclamation-triangle"),He.xX.condition.INFO,"info"),bw=function(e){var t=yw[e];return t?(0,Ke.jsx)(Ge.A,{icon:t,position:He.xX.position.SOLE,hasFixedWidth:!1}):gw||(gw=(0,Ke.jsx)("i",{children:"•"}))};const ww=function(e){var t=e.condition,n=void 0===t?He.xX.condition.BASE:t,r=e.label,o=e.children,i=qe()(e,vw);return(0,Ke.jsxs)(hw,{condition:n,"data-cy":i["data-cy"],children:[(0,Ke.jsx)(pw,{children:bw(n)}),r,m().Children.map(o,(function(e){return m().cloneElement(e)}))]})},xw={List:mw,Item:ww};const Ow=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,Wt()(e.error[n]))})),(0,Ke.jsx)(xw.List,{children:t.map((function(e,t){return(0,Ke.jsx)(xw.Item,{condition:"danger",label:e,"data-cy":"erroritem-".concat(t)},t)}))})};var kw,Sw,Ew,Pw,Dw,_w,Cw,Tw,jw,Aw,Mw,Iw,Nw,Rw,Lw="1.1px",Fw=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"text":"auto",";")},Hw=Me.Ay.label.withConfig({displayName:"StyledStatedValueLabel"})(kw||(kw=je()(["\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,He.Ed)({lineHeight:He.t7.lineHeight("dense")}),He.t7.color("paper"),(function(e){return Fw(e)}),(function(e){return"outside"===e.labelPosition&&(0,Me.AH)(Sw||(Sw=je()(["\n margin-bottom: ",";\n display: block;\n width: auto;\n "])),He.hs.space(-1.5))}),(function(e){return"inside"===e.labelPosition&&(0,Me.AH)(Ew||(Ew=je()(["\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 "])),He.hs.space(-2),He.hs.space(-3.5),(function(e){return e.immutable&&"0"}),(function(e){return e.immutable?"0":He.hs.space(-1.8)}))}),(function(e){return e.styles})),Bw=Me.Ay.div.withConfig({displayName:"StyledInputArea"})(Pw||(Pw=je()(["\n width: 60%;\n flex-grow: 1;\n ","\n"])),(function(e){return"outside"===e.labelPosition&&(0,Me.AH)(Dw||(Dw=je()(["\n width: auto;\n "])))})),Ww=Me.Ay.div.withConfig({displayName:"StyledStatedValueBox"})(_w||(_w=je()(["\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"])),Lw,(function(e){return He.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)}),He.t7.radii("form"),He.hs.space(-2.5),He.hs.space(-1.5),(function(e){return!e.immutable&&(0,He.h7)(e)}),(function(e){return Fw(e)}),(0,He.Ed)(),wf,(function(e){return"inside"===e.labelPosition&&(0,Me.AH)(Cw||(Cw=je()(["\n padding: "," "," "," ",";\n "])),He.hs.space(-1),He.hs.space(-1.7),He.hs.space(-2),He.hs.space(-1))}),(function(e){return e.styles})),Yw=Me.Ay.p.withConfig({displayName:"StyledStatedValueDescription"})(Tw||(Tw=je()(["\n &&& {\n ","\n }\n"])),(0,He.Ed)({fontSize:He.hs.font(-1)})),Uw=Me.Ay.div.withConfig({displayName:"StyledStatedValueError"})(jw||(jw=je()([""]))),zw=Me.Ay.div.withConfig({displayName:"StyledStatedValueOuterWrapper"})(Aw||(Aw=je()(["\n &:not(:last-child) {\n margin-bottom: ",";\n }\n ","\n"])),He.hs.space(-.7),(function(e){return"inside"===e.labelPosition&&(0,Me.AH)(Mw||(Mw=je()(["\n padding-top: ",";\n margin-bottom: 0.65rem;\n position: relative;\n "])),He.hs.space(-1.5))})),Vw=Me.Ay.div.withConfig({displayName:"StyledStatedValueInnerWrapper"})(Iw||(Iw=je()(["\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"])),He.hs.space(-1.5),Ww,Yw,Uw,He.hs.space(-2),Yw,He.hs.space(-1),Lw,(function(e){return"outside"===e.labelPosition&&(0,Me.AH)(Nw||(Nw=je()(["\n display: block;\n "])))}),(function(e){return"inside"===e.labelPosition&&(0,Me.AH)(Rw||(Rw=je()(["\n padding-top: 0;\n "])))}),(function(e){return e.styles}));function qw(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 Gw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qw(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Kw=function(e){var t,n,r,o=e.children,i=e.description,a=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,v=e.labelPosition,y=e.styles,b=!h&&m&&c&&Object.keys(c).length>0,w=f&&p?", ".concat(p):"",x="".concat(ur.adjustedHTMLString(d)).concat(w),O=g||function(e,t,n,r){return t?He.xX.condition.DANGER:e?He.xX.condition.INFO:n&&!r?He.xX.condition.WARNING:void 0}(a,b,f,u),k={__html:"".concat(Jn.sanitizeHtml(d)).concat(f?" *":"")},S=!s&&!h&&{htmlFor:l};return(0,Ke.jsx)(Qr,{children:function(e){var f=e.getRef;return(0,Ke.jsx)(zw,{labelPosition:v,children:(0,Ke.jsxs)(Vw,{labelPosition:v,ref:f,label:d,styles:null==y?void 0:y.innerWrapperStyles,children:[d&&(0,Ke.jsx)(Hw,Gw(Gw({},S),{},{hasValue:u,dirty:a,title:x,immutable:h,isDisplay:s,signal:O,labelPosition:v,styles:null==y?void 0:y.labelStyles,children:t||(t=(0,Ke.jsx)("span",{dangerouslySetInnerHTML:k}))})),(0,Ke.jsxs)(Bw,{labelPosition:v,children:[(0,Ke.jsx)(Ww,{hasValue:u,immutable:h,isDisplay:s,signal:O,labelPosition:v,styles:null==y?void 0:y.valueStyles,children:o}),b&&(0,Ke.jsx)(Uw,{"data-cy":"errorlist-".concat(l),children:n||(n=(0,Ke.jsx)(Ow,{error:c}))}),i&&(r||(r=(0,Ke.jsx)(Yw,{children:i})))]})]})})}})};var $w,Xw,Qw=function(e){return(0,Me.AH)($w||($w=je()(["\n color: ",";\n font-weight: ",";\n"])),He.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?He.t7.fontWeight("bold"):He.t7.fontWeight("regular")}))},Zw=function(){return(0,Me.AH)(Xw||(Xw=je()(["\n padding-left: ",";\n"])),(function(e){return e.immutable&&0}))},Jw=["labelPosition"];function ex(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 tx=function(e){var t=e.labelPosition,n=qe()(e,Jw);return(0,Ke.jsx)(Kw,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ex(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ex(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{labelStyles:Qw,valueStyles:Zw},labelPosition:t||"outside-responsive"},n))};var nx,rx,ox,ix,ax,sx,cx=function(e){return e.signal?"signal":"shade2"},ux=function(){return(0,Me.AH)(nx||(nx=je()(["\n align-items: flex-start;\n"])))},lx=function(e){return(0,Me.AH)(rx||(rx=je()(["\n padding-top: ",";\n color: ",";\n"])),(function(e){var t=e.immutable;return"inside"===e.labelPosition?0:t?(0,Me.AH)(ox||(ox=je()(["\n ","\n "])),He.hs.space(-1.8)):(0,Me.AH)(ix||(ix=je()(["\n ","\n "])),He.hs.space(.1))}),He.Db[cx(e)](e))},dx=function(){return(0,Me.AH)(ax||(ax=je()(["\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)(sx||(sx=je()(["\n ","\n "])),He.hs.space(-1)):void 0}),(function(e){return e.immutable&&0}))},fx=["labelPosition"];function px(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 hx=function(e){var t=e.labelPosition,n=qe()(e,fx);return(0,Ke.jsx)(Kw,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?px(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):px(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{innerWrapperStyles:ux,labelStyles:lx,valueStyles:dx},labelPosition:t||"outside-responsive"},n))};var mx=ze()(ze()({},Og.A.EmbedType.admin,tx),Og.A.EmbedType.widget,hx);const gx=Og.A.embedStrategyFactory({mapping:mx});var vx,yx,bx,wx,xx=Me.Ay.span.withConfig({displayName:"StyledSearchIconWrapper"})(vx||(vx=je()(["\n margin-right: ",";\n color: ",";\n"])),He.hs.space(-.8),He.t7.color("text")),Ox=Me.Ay.div.withConfig({displayName:"StyledSearchBox"})(yx||(yx=je()(["\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"]))),kx=Me.Ay.input.attrs((function(e){return{type:"search",placeholder:e.placeholder}})).withConfig({displayName:"StyledSearchBoxInput"})(bx||(bx=je()(["\n &&&& {\n ","\n }\n"])),uo),Sx=m().forwardRef((function(e,t){var n=e.value,r=e.minInputLength,o=void 0===r?3:r,i=e.onSearch,a=e.placeholder,s=(e.debounce,(0,p.useState)(n||"")),c=et()(s,2),u=c[0],l=c[1];return(0,Ke.jsx)(Ox,{children:(0,Ke.jsx)(gx,{hasValue:Boolean(u),labelPosition:"inside",children:(0,Ke.jsxs)(co,{children:[wx||(wx=(0,Ke.jsx)(xx,{children:(0,Ke.jsx)(Ge.A,{icon:"search"})})),(0,Ke.jsx)(kx,{"data-cy":"input-search-box",ref:t,onChange:function(e){var t=e.target.value;l(t),(0===t.length||t.length>=o)&&i(t.trim())},value:u,"aria-label":a,placeholder:a}),(null==u?void 0:u.length)>0&&(0,Ke.jsx)(Nt,{"data-cy":"btn-reset",icon:"times",onClick:function(){l(""),i("")}})]})})})}));const Ex=ut.Debouncer(Sx,100,"onSearch");var Px,Dx=[He.xX.condition.BASE,He.xX.condition.INFO,He.xX.condition.DANGER,He.xX.condition.SUCCESS,He.xX.condition.WARNING],_x=ze()(ze()(ze()(ze()(ze()({},He.xX.condition.BASE,He.t7.color("signal.neutral")),He.xX.condition.DANGER,He.t7.color("signal.danger")),He.xX.condition.SUCCESS,He.t7.color("signal.success")),He.xX.condition.WARNING,He.t7.color("signal.warning")),He.xX.condition.INFO,He.t7.color("signal.info")),Cx=Me.Ay.div.withConfig({displayName:"StyledSignalBox"})(Px||(Px=je()(["\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 _x[e.condition]||_x[He.xX.condition.INFO]}(e)}),He.hs.space(-1),He.hs.space(-1),(function(e){return"base"===e.condition?"#000":"#FFF"}));Cx.propTypes={condition:He.xX.oneOfPropTypeAndCompletelyMapped(Dx,_x)};var Tx,jx,Ax;Me.Ay.div.withConfig({displayName:"StyledCell"})(Tx||(Tx=je()(["\n display: flex;\n flex-direction: column;\n width: 100%;\n"]))),Me.Ay.div.withConfig({displayName:"StyledStatedValueBox"})(jx||(jx=je()(["\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"])),He.h7,He.t7.color("border"),He.t7.radii("form"),(function(e){return e.borderless&&(0,Me.AH)(Ax||(Ax=je()(["\n border: none;\n "])))}),nu,He.hs.space(-2),He.hs.space(-1.7),He.hs.space(-2),He.hs.space(-1),He.t7.radii("form"),He.t7.color("paper"),He.hs.space(-1),He.hs.space(-1),He.hs.space(-.5),He.hs.space(-1));var Mx;function Ix(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 Nx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ix(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ix(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Rx={currentlyDragging:null,currentlyDragOver:null,horizontalDropPosition:null,verticalDropPosition:null,offsetX:null,offsetY:null},Lx={Left:"Left",Right:"Right"},Fx={Top:"Top",Bottom:"Bottom"},Hx=function(e,t,n){var r=e.clientX-t>0,o=e.clientY-n>0;return{horizontal:r?Lx.Right:Lx.Left,vertical:o?Fx.Bottom:Fx.Top}};const Bx=function(e){var t=(0,p.useState)(Rx),n=et()(t,2),r=n[0],o=n[1],i=r.currentlyDragging,a=r.currentlyDragOver,s=r.horizontalDropPosition,c=r.verticalDropPosition,u=r.offsetX,l=r.offsetY,d=(0,p.useCallback)((function(t){return{onDragStart:function(e){o((function(e){return Nx(Nx({},e),{},{currentlyDragging:t})}));var n=e.target,r=function(e){o(Rx),e.stopPropagation(),n&&n.removeEventListener("dragend",r)};n&&n.addEventListener("dragend",r,!1),e.stopPropagation()},onDragEnter:function(e){if(i&&!or()(a,t)){var n=e.target?e.target.getBoundingClientRect():{},r=n.x+n.width/2,s=n.y+n.height/2,c=Hx(e,r,s),u=c.horizontal,l=c.vertical;(0,sa.flushSync)((function(){o((function(e){return Nx(Nx({},e),{},{currentlyDragOver:t,offsetX:r,offsetY:s,horizontalDropPosition:u,verticalDropPosition:l})}))}))}e.stopPropagation()},onDragOver:function(e){if(i&&or()(a,t)){var n=Hx(e,u,l),r=n.horizontal,s=n.vertical;return o((function(e){return Nx(Nx({},e),{},{horizontalDropPosition:r,verticalDropPosition:s})})),e.preventDefault(),e.stopPropagation(),!0}},onDragLeave:function(e){i&&or()(a,t)&&(e.stopPropagation(),o((function(e){return Nx(Nx({},e),{},{currentlyDragOver:null,horizontalDropPosition:null,verticalDropPosition:null})})))},onDrop:function(t){i&&a&&(e(i,a,s,c),o(Rx),t.stopPropagation())}}}),[a,i,s,c,u,l,e]),f=(0,p.useMemo)((function(){return{currentlyDragOver:a,currentlyDragging:i,horizontalDropPosition:s,verticalDropPosition:c,offsetX:u,offsetY:l}}),[a,i,s,c,u,l]);return{dndEvents:d,dndState:f,dndCss:Boolean(f.currentlyDragging)?(0,Me.AH)(Mx||(Mx=je()(["\n & * {\n pointer-events: none;\n }\n "]))):""}},Wx=Lx;var Yx,Ux,zx,Vx,qx,Gx,Kx,$x,Xx=Me.Ay.div.withConfig({displayName:"StyledColumnPickerWrapper"})(Yx||(Yx=je()(["\n padding-right: 3px; /* make sure drop indicator does not overlap outer elements on the right most side */\n"]))),Qx=Me.Ay.div.withConfig({displayName:"StyledControlsWrapper"})(Ux||(Ux=je()(["\n margin-left: 3px; /* rest of checkboxes are moved 3px to the right to make room for drop indicator */\n margin-top: ",";\n"])),He.hs.space(.7)),Zx=Me.Ay.ul.withConfig({displayName:"StyledUl"})(zx||(zx=je()(["\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"])),He.hs.space(-.5),lr.Gw),Jx=Me.Ay.input.withConfig({displayName:"StyledCheckbox"})(Vx||(Vx=je()(["\n vertical-align: top;\n margin-right: "," !important; /* Nice2 Reset */\n\n &:hover {\n cursor: pointer;\n }\n"])),He.hs.space(-1)),eO=Me.Ay.span.withConfig({displayName:"StyledId"})(qx||(qx=je()(["\n color: ",";\n font-style: italic;\n"])),He.t7.color("text")),tO=(0,Me.Ay)(lr.vx).withConfig({displayName:"StyledItem"})(Gx||(Gx=je()(["\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"])),He.hs.space(-2),He.hs.space(-2),He.hs.space(-2),(function(e){return e.dropPosition===Wx.Left?"-3px":"0"}),(function(e){var t=e.dropPosition,n=e.theme;return t===Wx.Left?"3px solid ".concat(n.colors.secondary):"none"}),(function(e){var t=e.dropPosition,n=e.theme;return t===Wx.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 ")})),nO=Me.Ay.span.withConfig({displayName:"StyledNumber"})(Kx||(Kx=je()(["\n display: inline-block;\n margin-right: ",";\n color: ",";\n font-size: ",";\n"])),He.hs.space(-1),He.t7.color("text"),He.hs.font(0));function rO(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 oO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rO(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const iO=function(e){var t=e.index,n=e.dndProps,r=e.column,o=e.onSelectionChange;return(0,Ke.jsxs)(aO,oO(oO({},n),{},{$_css:n.dndCss,children:[(0,Ke.jsx)(Jx,{type:"checkbox",id:r.id,checked:!r.hidden,onChange:function(e){return o(r.id,e.target.checked)}}),(0,Ke.jsxs)(lr.Ay.Label,{htmlFor:r.id,children:[(0,Ke.jsxs)(nO,{children:[t,"."]}),r.label?(0,Ke.jsx)("span",{dangerouslySetInnerHTML:{__html:Jn.sanitizeHtml(r.label)}}):(0,Ke.jsx)(eO,{children:r.id})]})]}))};var aO=(0,Me.Ay)(tO).withConfig({displayName:"_StyledStyledItem"})($x||($x=je()(["",""])),(function(e){return e.$_css}));function sO(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 cO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sO(Object(n),!0).forEach((function(t){ze()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var uO=function(e,t){return e.filter((function(e){return null===t||e.label.match(new RegExp(t,"i"))}))};const lO=function(e){var t=e.dndEnabled,n=e.columns,r=void 0===n?[]:n,o=e.sortColumns,i=e.onColumnsChange,a=e.intl,s=function(e){return o?o(e):function(e){return Wt()(e).sort((function(e,t){return e.hidden-t.hidden}))}(e)},c=s(r),u=(0,p.useState)(null),l=et()(u,2),d=l[0],f=l[1],h=(0,p.useCallback)((function(e,t,n){if(e!==t){var r=c.find((function(t){return t.id===e}));i((function(e){return e.filter((function(e){return e!==r})).reduce((o=r,i=t,a=n,function(e,t){if(t.id===i){if(a===Wx.Left)return[].concat(Wt()(e),[o,t]);if(a===Wx.Right)return[].concat(Wt()(e),[t,o])}return[].concat(Wt()(e),[t])}),[]);var o,i,a}))}}),[c,i]),m=Bx(h),g=m.dndEvents,v=m.dndState,y=m.dndCss,b=(0,p.useMemo)((function(){return uO(c,d)}),[c,d]),w=b.some((function(e){return e.hidden})),x=function(e,t){i((function(n){return s(n.map((function(n){return n.id===e?cO(cO({},n),{},{hidden:!t}):n})))}))},O=function(e){return v.currentlyDragOver===e.id&&v.currentlyDragging!==e.id};return(0,Ke.jsxs)(Xx,{children:[(0,Ke.jsx)(Ex,{placeholder:a.formatMessage({id:"client.entity-list.preferences.columns.search"}),onSearch:f}),(0,Ke.jsxs)(Qx,{children:[(0,Ke.jsx)(Jx,{type:"checkbox",onChange:function(e){var t=e.target.checked;i((function(e){var n=uO(e,d);return s(Wt()(e.map((function(e){return cO(cO({},e),{},{hidden:n.includes(e)?!t:e.hidden})}))))}))},checked:!w}),(0,Ke.jsx)(lr.Ay.Span,{children:a.formatMessage({id:"client.entity-list.preferences.columns.selectDeselectAllCheckbox"})})]}),(0,Ke.jsx)(Zx,{children:b.map((function(e,n){return(0,Ke.jsx)(iO,{index:n+1,column:e,dndProps:cO({draggable:t,dndCss:y,dropPosition:O(e)&&v.horizontalDropPosition},t&&cO({},g(e.id))),onSelectionChange:x},e.id)}))})]})};(0,f.injectIntl)(lO);var dO,fO,pO,hO;Me.Ay.div.withConfig({displayName:"StyledIconWrapper"})(dO||(dO=je()(["\n font-size: ",";\n color: ",";\n"])),He.hs.font(-2.7),He.t7.color("text")),Me.Ay.div.withConfig({displayName:"StyledRange"})(fO||(fO=je()(["\n display: flex;\n align-items: baseline;\n width: 100%;\n"]))),Me.Ay.div.withConfig({displayName:"StyledInput"})(pO||(pO=je()(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"]))),(0,Me.Ay)(Nt).withConfig({displayName:"StyledBall"})(hO||(hO=je()(["\n position: relative;\n top: 0.5px; /* offset false vertical alignment */\n"])));var mO,gO,vO,yO,bO,wO=Me.Ay.div.withConfig({displayName:"StyledBurgerButton"})(mO||(mO=je()(["\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"])),He.t7.color("backgroundBurgerMenuBars"),(function(e){return e.isOpen&&(0,Me.AH)(gO||(gO=je()(["\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,f.injectIntl)((function(e){var t,n=e.isOpen,r=e.intl,o=e.toggleMenu;return(0,Ke.jsxs)(wO,{id:"burger-button",isOpen:n,"aria-label":(t="client.component.burgerButton.Label",r.formatMessage({id:t})),onClick:o,children:[vO||(vO=(0,Ke.jsx)("span",{})),yO||(yO=(0,Ke.jsx)("span",{})),bO||(bO=(0,Ke.jsx)("span",{}))]})}));var xO,OO,kO=Me.Ay.div.withConfig({displayName:"StyledPagination"})(xO||(xO=je()(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-wrap: wrap;\n gap: ",";\n margin-left: ",";\n"])),He.hs.space(-1),He.hs.space(-1.4)),SO=(0,Me.Ay)(Dt).withConfig({displayName:"StyledPaginationButton"})(OO||(OO=je()(["\n padding: "," ",";\n"])),He.hs.space(-2),He.hs.space(-.5));const EO=(0,f.injectIntl)((function(e){var t=e.totalCount,n=e.recordsPerPage,r=e.currentPage,o=e.onPageChange,i=e.intl,a=e.tableEl,s=e.children,c=Math.ceil(t/n),u=Math.min((r-1)*n+1,t),l=Math.min(r*n,t),d=function(e){return i.formatMessage({id:e})},p=function(e){o(e),a.current.scrollTop=0};return(0,Ke.jsxs)(kO,{children:[(0,Ke.jsxs)(Br,{children:[(0,Ke.jsx)(SO,{disabled:1===r,label:d("client.component.pagination.firstPageTitle"),iconOnly:!0,icon:"chevron-double-left",onClick:function(){return p(1)}}),(0,Ke.jsx)(SO,{disabled:1===r,label:d("client.component.pagination.prePageTitle"),iconOnly:!0,icon:"chevron-left",onClick:function(){return p(r-1)}}),(0,Ke.jsx)(SO,{disabled:r>=c,label:d("client.component.pagination.nextPageTitle"),iconOnly:!0,icon:"chevron-right",onClick:function(){return p(r+1)}}),(0,Ke.jsx)(SO,{disabled:r>=c,label:d("client.component.pagination.lastPageTitle"),iconOnly:!0,icon:"chevron-double-right",onClick:function(){return p(c)}})]}),t>0&&(0,Ke.jsx)(lr.Ay.Span,{children:(0,Ke.jsx)(f.FormattedMessage,{id:"client.component.pagination.text",values:{start:u,to:l,total:t}})}),s]})})),PO=EO;var DO;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;(e=>{const t=class{constructor(e,n,r,o){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(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}i(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),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,n,o=1,a=40,c=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=a&&a<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let l,d;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=s.getTotalBits(e,l);if(o<=r){d=o;break}if(l>=a)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)&&(n=e);let f=[];for(const t of e){r(t.mode.modeBits,4,f),r(t.numChars,t.mode.numCharCountBits(l),f);for(const e of t.getData())f.push(e)}i(f.length==d);const p=8*t.getNumDataCodewords(l,n);i(f.length<=p),r(0,Math.min(4,p-f.length),f),r(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.length<p;e^=253)r(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,n,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 r=21522^(t<<10|n);i(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,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;i(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,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)),i=e+r,a=t+n;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,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 o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=o-s%o,u=Math.floor(s/o);let l=[];const d=t.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-a+(n<c?0:1));r+=o.length;const i=t.reedSolomonComputeRemainder(o,d);n<c&&o.push(0),l.push(o.concat(i))}let f=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-a||n>=c)&&f.push(t[e])}));return i(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 r=0;r<this.size;r++)for(let i=0;i<2;i++){const a=t-i,s=0==(t+1&2)?this.size-1-r:r;!this.isFunction[s][a]&&n<8*e.length&&(this.modules[s][a]=o(e[n>>>3],7-(7&n)),n++)}}i(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,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[n][a]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[n][a],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[a][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*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,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return i(0<=o&&o<=9),e+=o*t.PENALTY_N4,i(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 i(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 i(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];i(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)}};let n=t;function r(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 o(e,t){return 0!=(e>>>t&1)}function i(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.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]],n.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]],e.QrCode=n;const a=class{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(e){let t=[];for(const n of e)r(n,8,t);return new a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new a(a.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new a(a.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new a(a.Mode.ECI,0,t)}static isNumeric(e){return a.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return a.ALPHANUMERIC_REGEX.test(e)}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.substr(n+1,2),16)),n+=2);return t}};let s=a;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(DO||(DO={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(DO||(DO={})),(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)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(DO||(DO={}));var _O=DO;
|
|
79
79
|
/**
|
|
80
80
|
* @license qrcode.react
|
|
81
81
|
* Copyright (c) Paul O'Shannessy
|