tocco-widget-bundle 3.9.13 → 3.9.15
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 +6 -0
- package/dist/address-update.js +1 -1
- package/dist/chunk-348.41bb61254637353f1260.js +1 -0
- package/dist/docs-browser.js +2 -2
- package/dist/education-portfolio.js +2 -2
- package/dist/entity-browser.js +2 -2
- package/dist/entity-dms.js +2 -2
- package/dist/evaluation-execution-participation.js +2 -2
- package/dist/event-registration.js +2 -2
- package/dist/function-mutation.js +2 -2
- package/dist/job-application.js +2 -2
- package/dist/login.js +1 -1
- package/dist/mailing-list.js +2 -2
- package/dist/membership-registration.js +1 -1
- package/dist/password-update.js +1 -1
- package/dist/personal-dms.js +2 -2
- package/dist/public-dms.js +2 -2
- package/dist/sso-login.js +1 -1
- package/dist/stint-auction.js +2 -2
- package/dist/user-availability.js +2 -2
- package/dist/user-grades.js +2 -2
- package/dist/user-menu.js +1 -1
- package/dist/wage-view.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-348.396d741c2b241b315d58.js +0 -1
package/dist/user-menu.js
CHANGED
|
@@ -54,7 +54,7 @@ object-assign
|
|
|
54
54
|
*
|
|
55
55
|
* This source code is licensed under the MIT license found in the
|
|
56
56
|
* LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/var r=n(1024),o=n(61688);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,c=r.useRef,s=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=c(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=u((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return c=t}return c=e}if(t=c,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,c=n)}var i,c,s=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var f=i(e,d[0],d[1]);return s((function(){p.hasValue=!0,p.value=f}),[f]),l(f),f}},61688:(e,t,n)=>{"use strict";e.exports=n(53250)},52798:(e,t,n)=>{"use strict";e.exports=n(50139)},77017:(e,t,n)=>{"use strict";let r;n.d(t,{v4:()=>w});const o=new Uint8Array(16);function a(){if(!r&&(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}const i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const c=function(e){return"string"==typeof e&&i.test(e)},s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));function u(e,t=0){return s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]}const l=function(e){if(!c(e))throw TypeError("Invalid UUID");let t;const 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};function d(e,t,n){function r(e,r,o,a){var i;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=l(r)),16!==(null===(i=r)||void 0===i?void 0:i.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(r),c.set(e,r.length),c=n(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,o){a=a||0;for(let e=0;e<16;++e)o[a+e]=c[e];return o}return u(c)}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 f(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function h(e,t,n,r,o,a){return f((i=f(f(t,e),f(r,a)))<<(c=o)|i>>>32-c,n);var i,c}function m(e,t,n,r,o,a,i){return h(t&n|~t&r,e,t,o,a,i)}function g(e,t,n,r,o,a,i){return h(t&r|n&~r,e,t,o,a,i)}function v(e,t,n,r,o,a,i){return h(t^n^r,e,t,o,a,i)}function y(e,t,n,r,o,a,i){return h(n^(t|~r),e,t,o,a,i)}d("v3",48,(function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length,r="0123456789abcdef";for(let o=0;o<n;o+=8){const n=e[o>>5]>>>o%32&255,a=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[p(t)-1]=t;let n=1732584193,r=-271733879,o=-1732584194,a=271733878;for(let t=0;t<e.length;t+=16){const i=n,c=r,s=o,u=a;n=m(n,r,o,a,e[t],7,-680876936),a=m(a,n,r,o,e[t+1],12,-389564586),o=m(o,a,n,r,e[t+2],17,606105819),r=m(r,o,a,n,e[t+3],22,-1044525330),n=m(n,r,o,a,e[t+4],7,-176418897),a=m(a,n,r,o,e[t+5],12,1200080426),o=m(o,a,n,r,e[t+6],17,-1473231341),r=m(r,o,a,n,e[t+7],22,-45705983),n=m(n,r,o,a,e[t+8],7,1770035416),a=m(a,n,r,o,e[t+9],12,-1958414417),o=m(o,a,n,r,e[t+10],17,-42063),r=m(r,o,a,n,e[t+11],22,-1990404162),n=m(n,r,o,a,e[t+12],7,1804603682),a=m(a,n,r,o,e[t+13],12,-40341101),o=m(o,a,n,r,e[t+14],17,-1502002290),r=m(r,o,a,n,e[t+15],22,1236535329),n=g(n,r,o,a,e[t+1],5,-165796510),a=g(a,n,r,o,e[t+6],9,-1069501632),o=g(o,a,n,r,e[t+11],14,643717713),r=g(r,o,a,n,e[t],20,-373897302),n=g(n,r,o,a,e[t+5],5,-701558691),a=g(a,n,r,o,e[t+10],9,38016083),o=g(o,a,n,r,e[t+15],14,-660478335),r=g(r,o,a,n,e[t+4],20,-405537848),n=g(n,r,o,a,e[t+9],5,568446438),a=g(a,n,r,o,e[t+14],9,-1019803690),o=g(o,a,n,r,e[t+3],14,-187363961),r=g(r,o,a,n,e[t+8],20,1163531501),n=g(n,r,o,a,e[t+13],5,-1444681467),a=g(a,n,r,o,e[t+2],9,-51403784),o=g(o,a,n,r,e[t+7],14,1735328473),r=g(r,o,a,n,e[t+12],20,-1926607734),n=v(n,r,o,a,e[t+5],4,-378558),a=v(a,n,r,o,e[t+8],11,-2022574463),o=v(o,a,n,r,e[t+11],16,1839030562),r=v(r,o,a,n,e[t+14],23,-35309556),n=v(n,r,o,a,e[t+1],4,-1530992060),a=v(a,n,r,o,e[t+4],11,1272893353),o=v(o,a,n,r,e[t+7],16,-155497632),r=v(r,o,a,n,e[t+10],23,-1094730640),n=v(n,r,o,a,e[t+13],4,681279174),a=v(a,n,r,o,e[t],11,-358537222),o=v(o,a,n,r,e[t+3],16,-722521979),r=v(r,o,a,n,e[t+6],23,76029189),n=v(n,r,o,a,e[t+9],4,-640364487),a=v(a,n,r,o,e[t+12],11,-421815835),o=v(o,a,n,r,e[t+15],16,530742520),r=v(r,o,a,n,e[t+2],23,-995338651),n=y(n,r,o,a,e[t],6,-198630844),a=y(a,n,r,o,e[t+7],10,1126891415),o=y(o,a,n,r,e[t+14],15,-1416354905),r=y(r,o,a,n,e[t+5],21,-57434055),n=y(n,r,o,a,e[t+12],6,1700485571),a=y(a,n,r,o,e[t+3],10,-1894986606),o=y(o,a,n,r,e[t+10],15,-1051523),r=y(r,o,a,n,e[t+1],21,-2054922799),n=y(n,r,o,a,e[t+8],6,1873313359),a=y(a,n,r,o,e[t+15],10,-30611744),o=y(o,a,n,r,e[t+6],15,-1560198380),r=y(r,o,a,n,e[t+13],21,1309151649),n=y(n,r,o,a,e[t+4],6,-145523070),a=y(a,n,r,o,e[t+11],10,-1120210379),o=y(o,a,n,r,e[t+2],15,718787259),r=y(r,o,a,n,e[t+9],21,-343485551),n=f(n,i),r=f(r,c),o=f(o,s),a=f(a,u)}return[n,r,o,a]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(p(t));for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}));const b={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};const w=function(e,t,n){if(b.randomUUID&&!t&&!e)return b.randomUUID();const r=(e=e||{}).random||(e.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return u(r)};function x(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 O(e,t){return e<<t|e>>>32-t}d("v5",80,(function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const r=e.length/4+2,o=Math.ceil(r/16),a=new Array(o);for(let t=0;t<o;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];a[t]=n}a[o-1][14]=8*(e.length-1)/Math.pow(2,32),a[o-1][14]=Math.floor(a[o-1][14]),a[o-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<o;++e){const r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=a[e][t];for(let e=16;e<80;++e)r[e]=O(r[e-3]^r[e-8]^r[e-14]^r[e-16],1);let o=n[0],i=n[1],c=n[2],s=n[3],u=n[4];for(let e=0;e<80;++e){const n=Math.floor(e/20),a=O(o,5)+x(n,i,c,s)+u+t[n]+r[e]>>>0;u=s,s=c,c=O(i,30)>>>0,i=o,o=a}n[0]=n[0]+o>>>0,n[1]=n[1]+i>>>0,n[2]=n[2]+c>>>0,n[3]=n[3]+s>>>0,n[4]=n[4]+u>>>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]]}))},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},17061:(e,t,n)=>{var r=n(18698).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,a=Object.create(o.prototype),c=new C(r||[]);return i(a,"_invoke",{value:S(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h={};function m(){}function g(){}function v(){}var y={};d(y,s,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(D([])));w&&w!==n&&a.call(w,s)&&(y=w);var x=v.prototype=m.prototype=Object.create(y);function O(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(o,i,c,s){var u=f(e[o],e,i);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,c,s)}),(function(e){n("throw",e,c,s)})):t.resolve(d).then((function(e){l.value=e,c(l)}),(function(e){return n("throw",e,c,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(a,a):a()}})}function S(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return j()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var c=P(i,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function P(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,P(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function D(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(a.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:j}}function j(){return{value:void 0,done:!0}}return g.prototype=v,i(x,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:g,configurable:!0}),g.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},O(k.prototype),d(k.prototype,u,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new k(p(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},O(x),d(x,l,"Generator"),d(x,s,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=D,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:D(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},18698:e=>{function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},64687:(e,t,n)=>{var r=n(17061)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},71298: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},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},30907:(e,t,n)=>{"use strict";function r(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}n.d(t,{Z:()=>r})},83878:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:()=>r})},15671:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},43144:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(49142);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.Z)(o.key),o)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},4942:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(49142);function o(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},61120:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:()=>r})},60136:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(89611);function o(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&&(0,r.Z)(e,t)}},59199:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:()=>r})},25267:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},44925:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},73930:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(71002);function o(e,t){if(t&&("object"===(0,r.Z)(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)}},89611:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})},29439:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(83878);var o=n(40181),a=n(25267);function i(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,c=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,t)||(0,o.Z)(e,t)||(0,a.Z)()}},30168:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:()=>r})},93433:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(30907);var o=n(59199),a=n(40181);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,a.Z)(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.")}()}},49142:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(71002);function o(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},71002:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}n.d(t,{Z:()=>r})},40181:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(30907);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(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)?(0,r.Z)(e,t):void 0}}},86:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}n.d(t,{Z:()=>r})}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",698:"phone-formatter",802:"html-editor",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"c6f9acd670fd0a493a7e",198:"e2ad8562eb1ead40e8f5",251:"4c90293f0bbcb53eddc5",557:"e62be44ebee708ef3843",608:"88db078639481255222d",614:"f6f7d2b42b4c82617e1b",698:"5bc9602e05ef67f46fff",802:"204229f5f0b8af056f53",877:"8b531a22f4b2530fb852"}[e]+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)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")==r+o){c=d;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var p=(t,r)=>{c.onerror=c.onload=null,clearTimeout(f);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=p.bind(null,c.onerror),c.onload=p.bind(null,c.onload),s&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.p="/",(()=>{var e={30:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(s)s(i)}for(t&&t(n);u<a.length;u++)o=a[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";function e(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function t(t){return function(){var n=this,r=arguments;return new Promise((function(o,a){var i=t.apply(n,r);function c(t){e(i,o,a,c,s,"next",t)}function s(t){e(i,o,a,c,s,"throw",t)}c(void 0)}))}}i.r(c),i.d(c,{app:()=>HN});var n,r,o=i(64687),a=i.n(o),s=i(93386),u=i.n(s),l=i(20745),d=i(44759),p="tocco-util/LOG_ERROR",f=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:p,payload:{title:e,description:t,error:n,dateTime:r}}},h=i(70340),m=i(75508),g=i(15671),v=i(43144),y=i(60136),b=i(73930),w=i(61120),x=i(45697),O=i.n(x),k=i(1024),S=i.n(k),P=i(30168),_=i(9481),E=i(67165),C=i(17995),D=(0,E.iv)(n||(n=(0,P.Z)(["\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,C.wy)(),C.rS.color("text"),C.rS.color("text"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}));(0,E.ZP)(_.OL)(r||(r=(0,P.Z)(["\n ",";\n"])),D);var j;const T=(0,E.ZP)(_.rU).withConfig({shouldForwardProp:function(e,t){return!["neutral"].includes(e)&&t(e)}})(j||(j=(0,P.Z)(["\n ","\n"])),D);var A,I=i(4942),M=i(44925),N=i(46395),R=i(85893);function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Z=(0,k.lazy)((function(){return i.e(251).then(i.bind(i,81251))}));const H=function(e){return(0,R.jsx)(k.Suspense,{fallback:A||(A=(0,R.jsx)(S().Fragment,{})),children:(0,R.jsx)(Z,L({},e))})};var B=i(29439);var U="hidden",W="responsive",V={labelVisibility:W},z=S().createContext(V);var Y,q,G,K,X,$,Q=(0,E.iv)(K||(K=(0,P.Z)(["\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"])),C.rS.radii("button"),C.bA.space(-1.38),C.bA.space(-2.1),C.bA.space(0),(0,C.wy)(),(function(e){return e.withoutBackground?(0,E.iv)(G||(G=(0,P.Z)(["\n background: transparent;\n"]))):(0,C.Hx)(e)}),(function(e){return function(e){var t=e.dense,n=e.theme;return t?(0,E.iv)(Y||(Y=(0,P.Z)(["\n line-height: ",";\n padding: "," ",";\n "])),C.rS.lineHeight("dense")({theme:n}),C.bA.space(-3.5)({theme:n}),C.bA.space(-1.5)({theme:n})):null}(e)}),(function(e){return n=(t=e).iconOnly,r=t.removePadding,n||r?(0,E.iv)(q||(q=(0,P.Z)(["\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===C.co.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(J," {\n display: none;\n }\n ");return t&&n===U?r:t&&n===W&&"\n @media screen and (max-width: 1024px) {\n ".concat(r,"\n }\n ")})),J=E.ZP.span.withConfig({displayName:"StyledLabelWrapper"})(X||(X=(0,P.Z)([""])));const ee=E.ZP.button.withConfig({displayName:"StyledButton"})($||($=(0,P.Z)(["\n ","\n"])),Q);function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var re=S().forwardRef((function(e,t){var n=e.aria,r=e.ink,o=e.label,a=e.icon,i=e.pending,c=e.look,s=e.iconPosition,u=e.iconOnly,l=e.children,d=(0,k.useContext)(z).labelVisibility;return(0,R.jsxs)(ee,ne(ne(ne({ref:t},n),e),{},{ink:r||C.co.ink.BASE,"data-cy":e["data-cy"],title:o,labelVisibility:d,children:[a&&!i&&(0,R.jsx)(N.Z,{icon:a}),i&&(0,R.jsx)(H,{ink:r||C.co.ink.BASE,look:c,position:s,size:"1em"}),!u&&o?(0,R.jsx)(J,{children:o}):l||""]}))}));re.defaultProps={iconPosition:C.co.position.PREPEND,look:C.co.look.FLAT,type:"button"};const oe=re;var ae;(0,E.ZP)(_.rU).withConfig({shouldForwardProp:function(e,t){return!["labelVisibility"].includes(e)&&t(e)}}).withConfig({displayName:"StyledRouterLinkButton"})(ae||(ae=(0,P.Z)(["\n text-decoration: none;\n\n &:hover,\n &:focus {\n text-decoration: none; // nice2 reset\n }\n ","\n"])),Q);var ie,ce;const se=E.ZP.button.withConfig({displayName:"StyledButton"})(ce||(ce=(0,P.Z)(["\n ","\n ","\n ","\n cursor: pointer;\n"])),(0,C.wy)(),C.Hx,(function(){return(0,E.iv)(ie||(ie=(0,P.Z)(["\n border-radius: 50%;\n justify-content: center;\n align-items: center;\n padding: ",";\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"])),C.bA.space(-3),C.rS.fontSize("base"),C.rS.lineHeight("regular"),C.bA.space(-3))}));function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var de=S().forwardRef((function(e,t){return(0,R.jsx)(se,le(le({ref:t,type:"button"},e),{},{children:(0,R.jsx)(N.Z,{icon:e.icon})}))}));de.propTypes={disabled:O().bool,icon:O().string.isRequired,ink:C.co.inkPropTypes,look:O().oneOf([C.co.look.FLAT,C.co.look.RAISED]),onClick:O().func,title:O().string,tabIndex:O().number,"data-cy":O().string};const pe=de;var fe,he,me,ge,ve=i(93433),ye=i(89324),be=i.n(ye),we=i(83524),xe=i.n(we),Oe=i(69590),ke=i.n(Oe),Se=i(27418),Pe=i.n(Se),_e="bodyAttributes",Ee="htmlAttributes",Ce="titleAttributes",De={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},je=(Object.keys(De).map((function(e){return De[e]})),"charset"),Te="cssText",Ae="href",Ie="http-equiv",Me="innerHTML",Ne="itemprop",Re="name",Fe="property",Le="rel",Ze="src",He="target",Be={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Ue="defaultTitle",We="defer",Ve="encodeSpecialCharacters",ze="onChangeClientState",Ye="titleTemplate",qe=Object.keys(Be).reduce((function(e,t){return e[Be[t]]=t,e}),{}),Ge=[De.NOSCRIPT,De.SCRIPT,De.STYLE],Ke="data-react-helmet",Xe="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},$e=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}}(),Qe=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},Je=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},et=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,"'")},tt=function(e){var t=it(e,De.TITLE),n=it(e,Ye);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=it(e,Ue);return t||r||void 0},nt=function(e){return it(e,ze)||function(){}},rt=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return Qe({},e,t)}),{})},ot=function(e,t){return t.filter((function(e){return void 0!==e[De.BASE]})).map((function(e){return e[De.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var a=r[o].toLowerCase();if(-1!==e.indexOf(a)&&n[a])return t.concat(n)}return t}),[])},at=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&dt("Helmet: "+e+' should be of type "Array". Instead found type "'+Xe(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,a=Object.keys(e),i=0;i<a.length;i++){var c=a[i],s=c.toLowerCase();-1===t.indexOf(s)||n===Le&&"canonical"===e[n].toLowerCase()||s===Le&&"stylesheet"===e[s].toLowerCase()||(n=s),-1===t.indexOf(c)||c!==Me&&c!==Te&&c!==Ne||(n=c)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][u]&&(o[n][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var a=Object.keys(o),i=0;i<a.length;i++){var c=a[i],s=Pe()({},r[c],o[c]);r[c]=s}return e}),[]).reverse()},it=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},ct=(fe=Date.now(),function(e){var t=Date.now();t-fe>16?(fe=t,e(t)):setTimeout((function(){ct(e)}),0)}),st=function(e){return clearTimeout(e)},ut="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||ct:i.g.requestAnimationFrame||ct,lt="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||st:i.g.cancelAnimationFrame||st,dt=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},pt=null,ft=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,a=e.linkTags,i=e.metaTags,c=e.noscriptTags,s=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,d=e.title,p=e.titleAttributes;gt(De.BODY,r),gt(De.HTML,o),mt(d,p);var f={baseTag:vt(De.BASE,n),linkTags:vt(De.LINK,a),metaTags:vt(De.META,i),noscriptTags:vt(De.NOSCRIPT,c),scriptTags:vt(De.SCRIPT,u),styleTags:vt(De.STYLE,l)},h={},m={};Object.keys(f).forEach((function(e){var t=f[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(m[e]=f[e].oldTags)})),t&&t(),s(e,h,m)},ht=function(e){return Array.isArray(e)?e.join(""):e},mt=function(e,t){void 0!==e&&document.title!==e&&(document.title=ht(e)),gt(De.TITLE,t)},gt=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(Ke),o=r?r.split(","):[],a=[].concat(o),i=Object.keys(t),c=0;c<i.length;c++){var s=i[c],u=t[s]||"";n.getAttribute(s)!==u&&n.setAttribute(s,u),-1===o.indexOf(s)&&o.push(s);var l=a.indexOf(s);-1!==l&&a.splice(l,1)}for(var d=a.length-1;d>=0;d--)n.removeAttribute(a[d]);o.length===a.length?n.removeAttribute(Ke):n.getAttribute(Ke)!==i.join(",")&&n.setAttribute(Ke,i.join(","))}},vt=function(e,t){var n=document.head||document.querySelector(De.HEAD),r=n.querySelectorAll(e+"["+Ke+"]"),o=Array.prototype.slice.call(r),a=[],i=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===Me)n.innerHTML=t.innerHTML;else if(r===Te)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var c=void 0===t[r]?"":t[r];n.setAttribute(r,c)}n.setAttribute(Ke,"true"),o.some((function(e,t){return i=t,n.isEqualNode(e)}))?o.splice(i,1):a.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:a}},yt=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}),"")},bt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[Be[n]||n]=e[n],t}),t)},wt=function(e,t,n){switch(e){case De.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[Ke]=!0,o=bt(n,r),[S().createElement(De.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=yt(n),a=ht(t);return o?"<"+e+" "+Ke+'="true" '+o+">"+et(a,r)+"</"+e+">":"<"+e+" "+Ke+'="true">'+et(a,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case _e:case Ee:return{toComponent:function(){return bt(t)},toString:function(){return yt(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[Ke]=!0,r);return Object.keys(t).forEach((function(e){var n=Be[e]||e;if(n===Me||n===Te){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),S().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===Me||e===Te)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+et(r[t],n)+'"';return e?e+" "+o:o}),""),a=r.innerHTML||r.cssText||"",i=-1===Ge.indexOf(e);return t+"<"+e+" "+Ke+'="true" '+o+(i?"/>":">"+a+"</"+e+">")}),"")}(e,t,n)}}}},xt=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,a=e.linkTags,i=e.metaTags,c=e.noscriptTags,s=e.scriptTags,u=e.styleTags,l=e.title,d=void 0===l?"":l,p=e.titleAttributes;return{base:wt(De.BASE,t,r),bodyAttributes:wt(_e,n,r),htmlAttributes:wt(Ee,o,r),link:wt(De.LINK,a,r),meta:wt(De.META,i,r),noscript:wt(De.NOSCRIPT,c,r),script:wt(De.SCRIPT,s,r),style:wt(De.STYLE,u,r),title:wt(De.TITLE,{title:d,titleAttributes:p},r)}},Ot=xe()((function(e){return{baseTag:ot([Ae,He],e),bodyAttributes:rt(_e,e),defer:it(e,We),encode:it(e,Ve),htmlAttributes:rt(Ee,e),linkTags:at(De.LINK,[Le,Ae],e),metaTags:at(De.META,[Re,je,Ie,Fe,Ne],e),noscriptTags:at(De.NOSCRIPT,[Me],e),onChangeClientState:nt(e),scriptTags:at(De.SCRIPT,[Ze,Me],e),styleTags:at(De.STYLE,[Te],e),title:tt(e),titleAttributes:rt(Ce,e)}}),(function(e){pt&<(pt),e.defer?pt=ut((function(){ft(e,(function(){pt=null}))})):(ft(e),pt=null)}),xt)((function(){return null})),kt=(he=Ot,ge=me=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!ke()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case De.SCRIPT:case De.NOSCRIPT:return{innerHTML:t};case De.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,a=e.nestedChildren;return Qe({},r,((t={})[n.type]=[].concat(r[n.type]||[],[Qe({},o,this.mapNestedChildrenToProps(n,a))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,a=e.newChildProps,i=e.nestedChildren;switch(r.type){case De.TITLE:return Qe({},o,((t={})[r.type]=i,t.titleAttributes=Qe({},a),t));case De.BODY:return Qe({},o,{bodyAttributes:Qe({},a)});case De.HTML:return Qe({},o,{htmlAttributes:Qe({},a)})}return Qe({},o,((n={})[r.type]=Qe({},a),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=Qe({},t);return Object.keys(e).forEach((function(t){var r;n=Qe({},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 S().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,a=o.children,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[qe[n]||n]=e[n],t}),t)}(Je(o,["children"]));switch(n.warnOnInvalidChildren(e,a),e.type){case De.LINK:case De.META:case De.NOSCRIPT:case De.SCRIPT:case De.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:i,nestedChildren:a});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:i,nestedChildren:a})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=Je(e,["children"]),r=Qe({},n);return t&&(r=this.mapChildrenToProps(t,r)),S().createElement(he,r)},$e(t,null,[{key:"canUseDOM",set:function(e){he.canUseDOM=e}}]),t}(S().Component),me.propTypes={base:be().object,bodyAttributes:be().object,children:be().oneOfType([be().arrayOf(be().node),be().node]),defaultTitle:be().string,defer:be().bool,encodeSpecialCharacters:be().bool,htmlAttributes:be().object,link:be().arrayOf(be().object),meta:be().arrayOf(be().object),noscript:be().arrayOf(be().object),onChangeClientState:be().func,script:be().arrayOf(be().object),style:be().arrayOf(be().object),title:be().string,titleAttributes:be().object,titleTemplate:be().string},me.defaultProps={defer:!0,encodeSpecialCharacters:!0},me.peek=he.peek,me.rewind=function(){var e=he.rewind();return e||(e=xt({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},ge);kt.renderStatic=kt.rewind;var St=i(27856),Pt=i.n(St),_t=["border","border-spacing","padding","margin","text-align","width"];Pt().addHook("afterSanitizeAttributes",(function(e){if(e&&"function"==typeof e.hasAttribute&&e.hasAttribute("style")){var t=function(e){return _t.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 Et=function(e){return e?Pt().sanitize(e,{FORBID_TAGS:["style"],ADD_ATTR:["target"]}):e},Ct={sanitizeHtml:Et};var Dt=i(48921),jt={error:"exclamation-circle",home:"house-blank"},Tt=function(e){return jt[e]||e};const At=function(e){var t=e.type;return t&&"record"!==t?(0,R.jsx)(N.Z,{icon:Tt(t)}):null};var It,Mt,Nt,Rt,Ft,Lt,Zt=["component"],Ht=E.ZP.div.withConfig({displayName:"StyledBreadcrumbs"})(It||(It=(0,P.Z)(["\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||C.rS.color("backgroundBreadcrumbs")(e)}),C.bA.space(-.7),C.bA.space(.39)),Bt=(0,E.ZP)((function(e){var t=e.component,n=(0,M.Z)(e,Zt);return S().cloneElement(t,n)})).withConfig({displayName:"StyledBreadcrumbsLink"})(Mt||(Mt=(0,P.Z)(["\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"])),C.rS.fontWeight("bold"),(function(e){return e.active&&C.rS.color("primary")}),C.rS.fontWeight("bold"),(function(e){return e.active&&C.rS.color("primary")}),C.rS.color("secondaryLight"),C.rS.color("primary")),Ut=E.ZP.span.withConfig({displayName:"StyledBreadcrumbsTitle"})(Nt||(Nt=(0,P.Z)(["\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"])),C.rS.fontWeight("bold"),(function(e){return e.active&&C.rS.color("primary")}),C.rS.fontWeight("bold"),(function(e){return e.active&&C.rS.color("primary")}),C.rS.color("primary")),Wt=(0,E.ZP)(Dt.Fe).withConfig({displayName:"StyledBreadcrumbSeparator"})(Rt||(Rt=(0,P.Z)(["\n margin-left: ",";\n margin-right: ",";\n"])),C.bA.space(-2),C.bA.space(-2)),Vt=E.ZP.span.withConfig({displayName:"StyledBreadcrumbWrapper"})(Ft||(Ft=(0,P.Z)(["\n "," {\n margin-right: ",";\n }\n"])),N.q,C.bA.space(-1));const zt=function(){return Lt||(Lt=(0,R.jsx)(Wt,{breakWords:!0,children:(0,R.jsx)(N.Z,{icon:"chevron-right"})}))};var Yt;function qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kt=function(e){return e.title||e.display},Xt=function(e,t){if(!e||0===e.length)return"Tocco";var n=e.at(-1),r="";switch(n.type){case"create":r="".concat(Kt(n)," - ").concat(t);break;case"detail":r=e.slice(e.length-2).map(Kt).join(" - ");break;default:r=Kt(n)}return r},$t=function(e){var t,n=e.intl,r=e.pathPrefix,o=e.breadcrumbsInfo,a=void 0===o?[]:o,i=e.currentView,c=e.backgroundColor,s=e.onClick,u=e.linkComp,l=e.updateDocumentTitle,d=[].concat((0,ve.Z)(a),(0,ve.Z)(i?[i]:[]));if(0===d.length)return null;var p,f=d.map((function(e,n){var o,a=e.display||"",i=n===d.length-1?Ut:Bt,c=n===d.length-1&&{active:"true"},l=void 0!==e.path?{to:"".concat(r,"/").concat(e.path)}:{},p=u?t||(t=(0,R.jsx)(u,{})):Yt||(Yt=(0,R.jsx)(T,{}));return(0,R.jsx)(Dt.ZP.Span,{children:(0,R.jsx)(Vt,{children:(0,R.jsxs)(i,Gt(Gt(Gt({neutral:!0},c),l),{},{onClick:(o=e,function(){s&&!1!==o.clickable&&s(o)}),component:p,children:[(0,R.jsx)(At,{type:e.type}),(0,R.jsx)("span",{"data-cy":"breadcrumb-item",dangerouslySetInnerHTML:{__html:Ct.sanitizeHtml(a)}})]}))})},"breadcrumbItem-".concat(n))})).reduce((function(e,t,n){return[e,(0,R.jsx)(zt,{},"icon".concat(n)),t]}));return(0,R.jsxs)(Ht,{backgroundColor:c,children:[l?(0,R.jsx)(kt,{defer:!1,children:(0,R.jsx)("title",{children:Xt(d,(p="client.component.breadcrumbs.createTitle",n.formatMessage({id:p})))})}):null,(0,R.jsx)(R.Fragment,{children:f})]})};$t.defaultProps={pathPrefix:""};const Qt=$t;(0,h.injectIntl)(Qt);var Jt,en,tn=E.ZP.div.withConfig({displayName:"StyledWrapper"})(Jt||(Jt=(0,P.Z)(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,C.wy)(),(function(e){return e.theme.colors.signal.danger}),C.FS.color("paper"),C.bA.space(-.5));const nn=function(){return en||(en=(0,R.jsx)(tn,{children:(0,R.jsx)(h.FormattedMessage,{id:"client.component.errorBoundary.text"})}))};var rn;const on=E.ZP.div.withConfig({displayName:"StyledButtonGroup"})(rn||(rn=(0,P.Z)(["\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"])),ee);var an=S().forwardRef((function(e,t){return(0,R.jsx)(on,{ref:t,children:e.children})}));an.propTypes={children:O().node};const cn=an;var sn=i(57557),un=i.n(sn),ln=i(41609),dn=i.n(ln),pn=(i(58808),i(41505)),fn=i.n(pn),hn=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},mn=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},gn={outline:"none"},vn=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=mn(this,e.call.apply(e,[this].concat(a))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=S().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)},mn(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?S().cloneElement(e({focused:t,getRef:this.ref}),n):S().createElement("div",hn({ref:this.ref,style:gn},n),e)},t}(S().Component);vn.propTypes={children:fn().oneOfType([fn().node,fn().func]).isRequired,onBlur:fn().func,onFocus:fn().func},vn.defaultProps={onBlur:function(){},onFocus:function(){}};const yn=vn;var bn,wn,xn,On,kn,Sn,Pn,_n,En=i(84265),Cn=(0,E.iv)(bn||(bn=(0,P.Z)(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),Dn=E.ZP.label.withConfig({displayName:"StyledEditableWrapper"})(wn||(wn=(0,P.Z)(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),Cn),jn=(0,E.iv)(xn||(xn=(0,P.Z)(["\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 &::-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?"not-allowed":"default"}),(function(e){return e.immutable?"0":"2.6rem"}),(function(){return(0,C.wy)({color:C.FS.color("text")})}),C.FS.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),Tn=(0,E.iv)(On||(On=(0,P.Z)(["\n display: flex;\n align-items: center;\n"]))),An=E.ZP.div.withConfig({displayName:"StyledEditableControl"})(kn||(kn=(0,P.Z)(["\n &&& {\n ","\n }\n"])),Tn),In=(E.ZP.span.withConfig({displayName:"StyledEditableValue"})(Sn||(Sn=(0,P.Z)(["\n width: 100%;\n\n && {\n //url\n [type='url'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //url\n [type='tel'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //date\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: not-allowed;\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"])),C.FS.color("signal.danger")),i(71002)),Mn=function(e){return-1*Math.abs(e)},Nn=i(27361),Rn=i.n(Nn),Fn=E.ZP.div.withConfig({displayName:"StyledLocationEdit"})(Pn||(Pn=(0,P.Z)(["\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 .react-autosuggest__input {\n ","\n width: 100%;\n }\n\n .react-autosuggest__suggestions-container--open {\n width: calc(100% + 17.5px);\n background-color: ",";\n box-shadow: 0 0 6px ",";\n border: 1px solid ",";\n bottom: -9px;\n left: -10px;\n max-height: 300px;\n overflow-y: auto;\n position: absolute;\n transform: translateY(100%);\n z-index: 2; // higher than StyledIndicatorsContainerWrapper\n }\n\n .react-autosuggest__suggestions-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .react-autosuggest__suggestion {\n cursor: pointer;\n padding: 8px 12px;\n }\n\n .react-autosuggest__suggestion--highlighted {\n background-color: ",";\n }\n }\n"])),Cn,C.bA.space(-2),C.bA.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?Rn()(n,"colors.textDisabled"):Rn()(n,"colors.text")}),jn,C.FS.color("paper"),C.FS.color("signal.info"),C.FS.color("secondaryLight"),C.FS.color("backgroundItemHover"));(0,E.ZP)(Fn).withConfig({displayName:"StyledAddressEdit"})(_n||(_n=(0,P.Z)(["\n && {\n div {\n :nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n }\n"])));i(14293);var Ln=i(23493),Zn=i.n(Ln);function Hn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Un(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bn(Object(n),!0).forEach((function(t){Hn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wn(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 Vn(e,t){if(e){if("string"==typeof e)return Wn(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)?Wn(e,t):void 0}}function zn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||Vn(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 Yn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var qn=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Gn(){return Gn=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},Gn.apply(this,arguments)}function Kn(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 Xn(e,t){return Xn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xn(e,t)}function $n(e){return $n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$n(e)}function Qn(e){return Qn="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},Qn(e)}function Jn(e,t){if(t&&("object"===Qn(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 er(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=$n(e);if(t){var o=$n(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Jn(this,n)}}function tr(e){return function(e){if(Array.isArray(e))return Wn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Vn(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 nr=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}(),rr="-ms-",or="-moz-",ar="-webkit-",ir="comm",cr="rule",sr="decl",ur="@keyframes",lr=Math.abs,dr=String.fromCharCode,pr=Object.assign;function fr(e){return e.trim()}function hr(e,t,n){return e.replace(t,n)}function mr(e,t){return e.indexOf(t)}function gr(e,t){return 0|e.charCodeAt(t)}function vr(e,t,n){return e.slice(t,n)}function yr(e){return e.length}function br(e){return e.length}function wr(e,t){return t.push(e),e}var xr=1,Or=1,kr=0,Sr=0,Pr=0,_r="";function Er(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:xr,column:Or,length:i,return:""}}function Cr(e,t){return pr(Er("",null,null,"",null,null,0),e,{length:-e.length},t)}function Dr(){return Pr=Sr>0?gr(_r,--Sr):0,Or--,10===Pr&&(Or=1,xr--),Pr}function jr(){return Pr=Sr<kr?gr(_r,Sr++):0,Or++,10===Pr&&(Or=1,xr++),Pr}function Tr(){return gr(_r,Sr)}function Ar(){return Sr}function Ir(e,t){return vr(_r,e,t)}function Mr(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 Nr(e){return xr=Or=1,kr=yr(_r=e),Sr=0,[]}function Rr(e){return _r="",e}function Fr(e){return fr(Ir(Sr-1,Hr(91===e?e+2:40===e?e+1:e)))}function Lr(e){for(;(Pr=Tr())&&Pr<33;)jr();return Mr(e)>2||Mr(Pr)>3?"":" "}function Zr(e,t){for(;--t&&jr()&&!(Pr<48||Pr>102||Pr>57&&Pr<65||Pr>70&&Pr<97););return Ir(e,Ar()+(t<6&&32==Tr()&&32==jr()))}function Hr(e){for(;jr();)switch(Pr){case e:return Sr;case 34:case 39:34!==e&&39!==e&&Hr(Pr);break;case 40:41===e&&Hr(e);break;case 92:jr()}return Sr}function Br(e,t){for(;jr()&&e+Pr!==57&&(e+Pr!==84||47!==Tr()););return"/*"+Ir(t,Sr-1)+"*"+dr(47===e?e:jr())}function Ur(e){for(;!Mr(Tr());)jr();return Ir(e,Sr)}function Wr(e){return Rr(Vr("",null,null,null,[""],e=Nr(e),0,[0],e))}function Vr(e,t,n,r,o,a,i,c,s){for(var u=0,l=0,d=i,p=0,f=0,h=0,m=1,g=1,v=1,y=0,b="",w=o,x=a,O=r,k=b;g;)switch(h=y,y=jr()){case 40:if(108!=h&&58==gr(k,d-1)){-1!=mr(k+=hr(Fr(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=Fr(y);break;case 9:case 10:case 13:case 32:k+=Lr(h);break;case 92:k+=Zr(Ar()-1,7);continue;case 47:switch(Tr()){case 42:case 47:wr(Yr(Br(jr(),Ar()),t,n),s);break;default:k+="/"}break;case 123*m:c[u++]=yr(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+l:f>0&&yr(k)-d&&wr(f>32?qr(k+";",r,n,d-1):qr(hr(k," ","")+";",r,n,d-2),s);break;case 59:k+=";";default:if(wr(O=zr(k,t,n,u,l,o,c,b,w=[],x=[],d),a),123===y)if(0===l)Vr(k,t,O,O,w,a,d,c,x);else switch(99===p&&110===gr(k,3)?100:p){case 100:case 109:case 115:Vr(e,O,O,r&&wr(zr(e,O,O,0,0,o,c,b,o,w=[],d),x),o,x,d,c,r?w:x);break;default:Vr(k,O,O,O,[""],x,0,c,x)}}u=l=f=0,m=v=1,b=k="",d=i;break;case 58:d=1+yr(k),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Dr())continue;switch(k+=dr(y),y*m){case 38:v=l>0?1:(k+="\f",-1);break;case 44:c[u++]=(yr(k)-1)*v,v=1;break;case 64:45===Tr()&&(k+=Fr(jr())),p=Tr(),l=d=yr(b=k+=Ur(Ar())),y++;break;case 45:45===h&&2==yr(k)&&(m=0)}}return a}function zr(e,t,n,r,o,a,i,c,s,u,l){for(var d=o-1,p=0===o?a:[""],f=br(p),h=0,m=0,g=0;h<r;++h)for(var v=0,y=vr(e,d+1,d=lr(m=i[h])),b=e;v<f;++v)(b=fr(m>0?p[v]+" "+y:hr(y,/&\f/g,p[v])))&&(s[g++]=b);return Er(e,t,n,0===o?cr:c,s,u,l)}function Yr(e,t,n){return Er(e,t,n,ir,dr(Pr),vr(e,2,-2),0)}function qr(e,t,n,r){return Er(e,t,n,sr,vr(e,0,r),vr(e,r+1,-1),r)}function Gr(e,t){for(var n="",r=br(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Kr(e,t,n,r){switch(e.type){case"@import":case sr:return e.return=e.return||e.value;case ir:return"";case ur:return e.return=e.value+"{"+Gr(e.children,r)+"}";case cr:e.value=e.props.join(",")}return yr(n=Gr(e.children,r))?e.return=e.value+"{"+n+"}":""}const Xr=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}};var $r=function(e,t,n){for(var r=0,o=0;r=o,o=Tr(),38===r&&12===o&&(t[n]=1),!Mr(o);)jr();return Ir(e,Sr)},Qr=function(e,t){return Rr(function(e,t){var n=-1,r=44;do{switch(Mr(r)){case 0:38===r&&12===Tr()&&(t[n]=1),e[n]+=$r(Sr-1,t,n);break;case 2:e[n]+=Fr(r);break;case 4:if(44===r){e[++n]=58===Tr()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=dr(r)}}while(r=jr());return e}(Nr(e),t))},Jr=new WeakMap,eo=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)||Jr.get(n))&&!r){Jr.set(e,!0);for(var o=[],a=Qr(t,o),i=n.props,c=0,s=0;c<a.length;c++)for(var u=0;u<i.length;u++,s++)e.props[s]=o[c]?a[c].replace(/&\f/g,i[u]):i[u]+" "+a[c]}}},to=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function no(e,t){switch(function(e,t){return 45^gr(e,0)?(((t<<2^gr(e,0))<<2^gr(e,1))<<2^gr(e,2))<<2^gr(e,3):0}(e,t)){case 5103:return ar+"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 ar+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ar+e+or+e+rr+e+e;case 6828:case 4268:return ar+e+rr+e+e;case 6165:return ar+e+rr+"flex-"+e+e;case 5187:return ar+e+hr(e,/(\w+).+(:[^]+)/,ar+"box-$1$2"+rr+"flex-$1$2")+e;case 5443:return ar+e+rr+"flex-item-"+hr(e,/flex-|-self/,"")+e;case 4675:return ar+e+rr+"flex-line-pack"+hr(e,/align-content|flex-|-self/,"")+e;case 5548:return ar+e+rr+hr(e,"shrink","negative")+e;case 5292:return ar+e+rr+hr(e,"basis","preferred-size")+e;case 6060:return ar+"box-"+hr(e,"-grow","")+ar+e+rr+hr(e,"grow","positive")+e;case 4554:return ar+hr(e,/([^-])(transform)/g,"$1"+ar+"$2")+e;case 6187:return hr(hr(hr(e,/(zoom-|grab)/,ar+"$1"),/(image-set)/,ar+"$1"),e,"")+e;case 5495:case 3959:return hr(e,/(image-set\([^]*)/,ar+"$1$`$1");case 4968:return hr(hr(e,/(.+:)(flex-)?(.*)/,ar+"box-pack:$3"+rr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ar+e+e;case 4095:case 3583:case 4068:case 2532:return hr(e,/(.+)-inline(.+)/,ar+"$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(yr(e)-1-t>6)switch(gr(e,t+1)){case 109:if(45!==gr(e,t+4))break;case 102:return hr(e,/(.+:)(.+)-([^]+)/,"$1"+ar+"$2-$3$1"+or+(108==gr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~mr(e,"stretch")?no(hr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==gr(e,t+1))break;case 6444:switch(gr(e,yr(e)-3-(~mr(e,"!important")&&10))){case 107:return hr(e,":",":"+ar)+e;case 101:return hr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ar+(45===gr(e,14)?"inline-":"")+"box$3$1"+ar+"$2$3$1"+rr+"$2box$3")+e}break;case 5936:switch(gr(e,t+11)){case 114:return ar+e+rr+hr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ar+e+rr+hr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ar+e+rr+hr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ar+e+rr+e+e}return e}var ro=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case sr:e.return=no(e.value,e.length);break;case ur:return Gr([Cr(e,{value:hr(e.value,"@","@"+ar)})],r);case cr: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 Gr([Cr(e,{props:[hr(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Gr([Cr(e,{props:[hr(t,/:(plac\w+)/,":"+ar+"input-$1")]}),Cr(e,{props:[hr(t,/:(plac\w+)/,":-moz-$1")]}),Cr(e,{props:[hr(t,/:(plac\w+)/,rr+"input-$1")]})],r)}return""}))}}];const oo=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||ro;var o,a,i={},c=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;c.push(e)}));var s,u,l,d,p=[Kr,(d=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(u=[eo,to].concat(r,p),l=br(u),function(e,t,n,r){for(var o="",a=0;a<l;a++)o+=u[a](e,t,n,r)||"";return o});a=function(e,t,n,r){s=n,function(e){Gr(Wr(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new nr({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return h.sheet.hydrate(c),h};i(8679);var ao=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};const io=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 co={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};var so=/[A-Z]|^ms/g,uo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lo=function(e){return 45===e.charCodeAt(1)},po=function(e){return null!=e&&"boolean"!=typeof e},fo=Xr((function(e){return lo(e)?e:e.replace(so,"-$&").toLowerCase()})),ho=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(uo,(function(e,t,n){return go={name:t,styles:n,next:go},t}))}return 1===co[e]||lo(e)||"number"!=typeof t||0===t?t:t+"px"};function mo(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 go={name:n.name,styles:n.styles,next:go},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)go={name:r.name,styles:r.styles,next:go},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+=mo(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":po(i)&&(r+=fo(a)+":"+ho(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var c=mo(e,t,i);switch(a){case"animation":case"animationName":r+=fo(a)+":"+c+";";break;default:r+=a+"{"+c+"}"}}else for(var s=0;s<i.length;s++)po(i[s])&&(r+=fo(a)+":"+ho(a,i[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=go,a=n(e);return go=o,mo(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var go,vo=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var yo=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="";go=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=mo(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=mo(n,t,e[i]),r&&(o+=a[i]);vo.lastIndex=0;for(var c,s="";null!==(c=vo.exec(o));)s+="-"+c[1];return{name:io(o)+s,styles:o,next:go}},bo=!!k.useInsertionEffect&&k.useInsertionEffect,wo=bo||function(e){return e()},xo={}.hasOwnProperty,Oo=(0,k.createContext)("undefined"!=typeof HTMLElement?oo({key:"css"}):null);Oo.Provider;var ko=function(e){return(0,k.forwardRef)((function(t,n){var r=(0,k.useContext)(Oo);return e(t,r,n)}))},So=(0,k.createContext)({});var Po="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",_o=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;ao(t,n,r);wo((function(){return function(e,t,n){ao(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},Eo=ko((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Po],a=[r],i="";"string"==typeof e.className?i=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var c=yo(a,void 0,(0,k.useContext)(So));i+=t.key+"-"+c.name;var s={};for(var u in e)xo.call(e,u)&&"css"!==u&&u!==Po&&(s[u]=e[u]);return s.ref=n,s.className=i,(0,k.createElement)(k.Fragment,null,(0,k.createElement)(_o,{cache:t,serialized:c,isStringTag:"string"==typeof o}),(0,k.createElement)(o,s))}));var Co=function(e,t){var n=arguments;if(null==t||!xo.call(t,"css"))return k.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Eo,o[1]=function(e,t){var n={};for(var r in t)xo.call(t,r)&&(n[r]=t[r]);return n[Po]=e,n}(e,t);for(var a=2;a<r;a++)o[a]=n[a];return k.createElement.apply(null,o)};function Do(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return yo(t)}var jo=i(30314),To=i.n(jo);Math.min,Math.max;const Ao=["top","right","bottom","left"];Ao.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function Io(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Mo(e){if(null==e)return window;if(!Io(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function No(e){return Mo(e).getComputedStyle(e)}function Ro(e){return Io(e)?"":e?(e.nodeName||"").toLowerCase():""}function Fo(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function Lo(e){return e instanceof Mo(e).HTMLElement}function Zo(e){return e instanceof Mo(e).Element}function Ho(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Mo(e).ShadowRoot||e instanceof ShadowRoot)}function Bo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=No(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function Uo(){return!/^((?!chrome|android).)*safari/i.test(Fo())}function Wo(e){return["html","body","#document"].includes(Ro(e))}Math.min,Math.max;const Vo=Math.round;function zo(e,t,n){var r,o,a,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const c=e.getBoundingClientRect();let s=1,u=1;t&&Lo(e)&&(s=e.offsetWidth>0&&Vo(c.width)/e.offsetWidth||1,u=e.offsetHeight>0&&Vo(c.height)/e.offsetHeight||1);const l=Zo(e)?Mo(e):window,d=!Uo()&&n,p=(c.left+(d&&null!=(r=null==(o=l.visualViewport)?void 0:o.offsetLeft)?r:0))/s,f=(c.top+(d&&null!=(a=null==(i=l.visualViewport)?void 0:i.offsetTop)?a:0))/u,h=c.width/s,m=c.height/u;return{width:h,height:m,top:f,right:p+h,bottom:f+m,left:p,x:p,y:f}}function Yo(e){return(t=e,(t instanceof Mo(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function qo(e){if("html"===Ro(e))return e;const t=e.assignedSlot||e.parentNode||(Ho(e)?e.host:null)||Yo(e);return Ho(t)?t.host:t}function Go(e){const t=qo(e);return Wo(t)?e.ownerDocument.body:Lo(t)&&Bo(t)?t:Go(t)}function Ko(e,t){var n;void 0===t&&(t=[]);const r=Go(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Mo(r),i=o?[a].concat(a.visualViewport||[],Bo(r)?r:[]):r,c=t.concat(i);return o?c:c.concat(Ko(i))}const Xo=k.useLayoutEffect;var $o=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Qo=function(){};function Jo(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function ea(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=[].concat(r);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&a.push("".concat(Jo(e,i)));return a.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var ta=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===Qn(e)&&null!==e?[e]:[];var t},na=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,Un({},Yn(e,$o))},ra=function(e,t,n){var r=e.cx,o=e.getStyles,a=e.getClassNames,i=e.className;return{css:o(t,e),className:r(null!=n?n:{},a(t,e),i)}};function oa(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function aa(e){return oa(e)?window.pageYOffset:e.scrollTop}function ia(e,t){oa(e)?window.scrollTo(0,t):e.scrollTop=t}function ca(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Qo,o=aa(e),a=t-o,i=0;!function t(){var c=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(i+=10,o,a,n);ia(e,c),i<n?window.requestAnimationFrame(t):r(e)}()}function sa(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?ia(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&ia(e,Math.max(t.offsetTop-o,0))}function ua(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var la=!1,da={get passive(){return la=!0}},pa="undefined"!=typeof window?window:{};pa.addEventListener&&pa.removeEventListener&&(pa.addEventListener("p",Qo,da),pa.removeEventListener("p",Qo,!1));var fa=la;function ha(e){return null!=e}function ma(e,t,n){return e?t:n}var ga=["children","innerProps"],va=["children","innerProps"];function ya(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,c=e.controlHeight,s=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=s.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,h=p.height,m=p.top,g=n.offsetParent.getBoundingClientRect().top,v=i?window.innerHeight:oa(l=s)?window.innerHeight:l.clientHeight,y=aa(s),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,P=f-v+y+b,_=y+m-w,E=160;switch(o){case"auto":case"bottom":if(O>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!i)return a&&ca(s,P,E),{placement:"bottom",maxHeight:t};if(!i&&S>=r||i&&O>=r)return a&&ca(s,P,E),{placement:"bottom",maxHeight:i?O-b:S-b};if("auto"===o||i){var C=t,D=i?x:k;return D>=r&&(C=Math.min(D-b-c,t)),{placement:"top",maxHeight:C}}if("bottom"===o)return a&&ia(s,P),{placement:"bottom",maxHeight:t};break;case"top":if(x>=h)return{placement:"top",maxHeight:t};if(k>=h&&!i)return a&&ca(s,_,E),{placement:"top",maxHeight:t};if(!i&&k>=r||i&&x>=r){var j=t;return(!i&&k>=r||i&&x>=r)&&(j=i?x-w:k-w),a&&ca(s,_,E),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var ba,wa=function(e){return"auto"===e?"bottom":e},xa=(0,k.createContext)(null),Oa=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,a=e.menuPosition,i=e.menuShouldScrollIntoView,c=e.theme,s=((0,k.useContext)(xa)||{}).setPortalPlacement,u=(0,k.useRef)(null),l=zn((0,k.useState)(r),2),d=l[0],p=l[1],f=zn((0,k.useState)(null),2),h=f[0],m=f[1],g=c.spacing.controlHeight;return Xo((function(){var e=u.current;if(e){var t="fixed"===a,c=ya({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:i&&!t,isFixedPosition:t,controlHeight:g});p(c.maxHeight),m(c.placement),null==s||s(c.placement)}}),[r,o,a,i,n,s,g]),t({ref:u,placerProps:Un(Un({},e),{},{placement:h||wa(o),maxHeight:d})})},ka=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Co("div",Gn({},ra(e,"menu",{menu:!0}),{ref:n},r),t)},Sa=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Un({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Pa=Sa,_a=Sa,Ea=["size"],Ca=["innerProps","isRtl","size"];var Da,ja,Ta={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Aa=function(e){var t=e.size,n=Yn(e,Ea);return Co("svg",Gn({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ta},n))},Ia=function(e){return Co(Aa,Gn({size:20},e),Co("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"}))},Ma=function(e){return Co(Aa,Gn({size:20},e),Co("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"}))},Na=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return Un({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*o,":hover":{color:n?a.neutral80:a.neutral40}})},Ra=Na,Fa=Na,La=function(){var e=Do.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_"}}}(ba||(Da=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],ja||(ja=Da.slice(0)),ba=Object.freeze(Object.defineProperties(Da,{raw:{value:Object.freeze(ja)}})))),Za=function(e){var t=e.delay,n=e.offset;return Co("span",{css:Do({animation:"".concat(La," 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"},"","")})},Ha=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,a=e.innerProps,i=e.menuIsOpen;return Co("div",Gn({ref:o},ra(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":i}),a,{"aria-disabled":n||void 0}),t)},Ba=["data"],Ua=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,a=e.Heading,i=e.headingProps,c=e.innerProps,s=e.label,u=e.theme,l=e.selectProps;return Co("div",Gn({},ra(e,"group",{group:!0}),c),Co(a,Gn({},i,{selectProps:l,theme:u,getStyles:r,getClassNames:o,cx:n}),s),Co("div",null,t))},Wa=["innerRef","isDisabled","isHidden","inputClassName"],Va={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},za={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Un({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Va)},Ya=function(e){return Un({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Va)},qa=function(e){var t=e.children,n=e.innerProps;return Co("div",n,t)};var Ga=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,a=e.isDisabled,i=e.removeProps,c=e.selectProps,s=n.Container,u=n.Label,l=n.Remove;return Co(s,{data:r,innerProps:Un(Un({},ra(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:c},Co(u,{data:r,innerProps:Un({},ra(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},t),Co(l,{data:r,innerProps:Un(Un({},ra(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},i),selectProps:c}))},Ka={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Co("div",Gn({},ra(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Co(Ia,null))},Control:Ha,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Co("div",Gn({},ra(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Co(Ma,null))},DownChevron:Ma,CrossIcon:Ia,Group:Ua,GroupHeading:function(e){var t=na(e);t.data;var n=Yn(t,Ba);return Co("div",Gn({},ra(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Co("div",Gn({},ra(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Co("span",Gn({},t,ra(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=na(e),o=r.innerRef,a=r.isDisabled,i=r.isHidden,c=r.inputClassName,s=Yn(r,Wa);return Co("div",Gn({},ra(e,"input",{"input-container":!0}),{"data-value":n||""}),Co("input",Gn({className:t({input:!0},c),ref:o,style:Ya(i),disabled:a},s)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,a=Yn(e,Ca);return Co("div",Gn({},ra(Un(Un({},a),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Co(Za,{delay:0,offset:n}),Co(Za,{delay:160,offset:!0}),Co(Za,{delay:320,offset:!n}))},Menu:ka,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Co("div",Gn({},ra(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,a=e.menuPlacement,i=e.menuPosition,c=(0,k.useRef)(null),s=(0,k.useRef)(null),u=zn((0,k.useState)(wa(a)),2),l=u[0],d=u[1],p=(0,k.useMemo)((function(){return{setPortalPlacement:d}}),[]),f=zn((0,k.useState)(null),2),h=f[0],m=f[1],g=(0,k.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===i?0:window.pageYOffset,n=e[l]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||m({offset:n,rect:e})}}),[r,i,l,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);Xo((function(){g()}),[g]);var v=(0,k.useCallback)((function(){"function"==typeof s.current&&(s.current(),s.current=null),r&&c.current&&(s.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=!0,animationFrame:c=!1}=r,s=o&&!c,u=s||a?[...Zo(e)?Ko(e):e.contextElement?Ko(e.contextElement):[],...Ko(t)]:[];u.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));let l,d=null;if(i){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),Zo(e)&&!c&&d.observe(e),Zo(e)||!e.contextElement||c||d.observe(e.contextElement),d.observe(t)}let p=c?zo(e):null;return c&&function t(){const r=zo(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{s&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,c&&cancelAnimationFrame(l)}}(r,c.current,g,{elementResize:"ResizeObserver"in window}))}),[r,g]);Xo((function(){v()}),[v]);var y=(0,k.useCallback)((function(e){c.current=e,v()}),[v]);if(!t&&"fixed"!==i||!h)return null;var b=Co("div",Gn({ref:y},ra(Un(Un({},e),{},{offset:h.offset,position:i,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),n);return Co(xa.Provider,{value:p},t?(0,jo.createPortal)(b,t):b)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=Yn(e,va);return Co("div",Gn({},ra(Un(Un({},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=Yn(e,ga);return Co("div",Gn({},ra(Un(Un({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Ga,MultiValueContainer:qa,MultiValueLabel:qa,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Co("div",Gn({role:"button"},n),t||Co(Ia,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.innerRef,i=e.innerProps;return Co("div",Gn({},ra(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:a,"aria-disabled":n},i),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Co("div",Gn({},ra(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Co("div",Gn({},ra(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Co("div",Gn({},ra(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return Co("div",Gn({},ra(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Xa=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function $a(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||Xa(r)&&Xa(o)))return!1;var r,o;return!0}for(var Qa={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"},Ja=function(e){return Co("span",Gn({css:Qa},e))},ei={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=void 0===o?"":o,i=e.selectValue,c=e.isDisabled,s=e.isSelected,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(a," focused, ").concat(u(i,n),".");if("menu"===t){var l=c?" disabled":"",d="".concat(s?"selected":"focused").concat(l);return"option ".concat(a," ").concat(d,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},ti=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=e.selectValue,c=e.selectProps,s=e.id,u=c.ariaLiveMessages,l=c.getOptionLabel,d=c.inputValue,p=c.isMulti,f=c.isOptionDisabled,h=c.isSearchable,m=c.menuIsOpen,g=c.options,v=c.screenReaderStatus,y=c.tabSelectsValue,b=c["aria-label"],w=c["aria-live"],x=(0,k.useMemo)((function(){return Un(Un({},ei),u||{})}),[u]),O=(0,k.useMemo)((function(){var e,n="";if(t&&x.onChange){var r=t.option,o=t.options,a=t.removedValue,c=t.removedValues,s=t.value,u=a||r||(e=s,Array.isArray(e)?null:e),d=u?l(u):"",p=o||c||void 0,h=p?p.map(l):[],m=Un({isDisabled:u&&f(u,i),label:d,labels:h},t);n=x.onChange(m)}return n}),[t,x,f,i,l]),S=(0,k.useMemo)((function(){var e="",t=n||r,a=!!(n&&i&&i.includes(n));if(t&&x.onFocus){var c={focused:t,label:l(t),isDisabled:f(t,i),isSelected:a,options:o,context:t===n?"menu":"value",selectValue:i};e=x.onFocus(c)}return e}),[n,r,l,f,x,o,i]),P=(0,k.useMemo)((function(){var e="";if(m&&g.length&&x.onFilter){var t=v({count:o.length});e=x.onFilter({inputValue:d,resultsMessage:t})}return e}),[o,d,m,x,g,v]),_=(0,k.useMemo)((function(){var e="";if(x.guidance){var t=r?"value":m?"menu":"input";e=x.guidance({"aria-label":b,context:t,isDisabled:n&&f(n,i),isMulti:p,isSearchable:h,tabSelectsValue:y})}return e}),[b,n,r,p,f,h,m,x,i,y]),E="".concat(S," ").concat(P," ").concat(_),C=Co(k.Fragment,null,Co("span",{id:"aria-selection"},O),Co("span",{id:"aria-context"},E)),D="initial-input-focus"===(null==t?void 0:t.action);return Co(k.Fragment,null,Co(Ja,{id:s},D&&C),Co(Ja,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},a&&!D&&C))},ni=[{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źẑżžẓẕƶȥɀⱬꝣ"}],ri=new RegExp("["+ni.map((function(e){return e.letters})).join("")+"]","g"),oi={},ai=0;ai<ni.length;ai++)for(var ii=ni[ai],ci=0;ci<ii.letters.length;ci++)oi[ii.letters[ci]]=ii.base;var si=function(e){return e.replace(ri,(function(e){return oi[e]}))},ui=function(e,t){void 0===t&&(t=$a);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}(si),li=function(e){return e.replace(/^\s+|\s+$/g,"")},di=function(e){return"".concat(e.label," ").concat(e.value)},pi=["innerRef"];function fi(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=zn(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=zn(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(Yn(e,pi),"onExited","in","enter","exit","appear");return Co("input",Gn({ref:t},n,{css:Do({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 hi=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var mi=["boxSizing","height","overflow","paddingRight","position"],gi={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function vi(e){e.preventDefault()}function yi(e){e.stopPropagation()}function bi(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function wi(){return"ontouchstart"in window||navigator.maxTouchPoints}var xi=!("undefined"==typeof window||!window.document||!window.document.createElement),Oi=0,ki={capture:!1,passive:!1};var Si=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Pi={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function _i(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=(0,k.useRef)(!1),c=(0,k.useRef)(!1),s=(0,k.useRef)(0),u=(0,k.useRef)(null),l=(0,k.useCallback)((function(e,t){if(null!==u.current){var s=u.current,l=s.scrollTop,d=s.scrollHeight,p=s.clientHeight,f=u.current,h=t>0,m=d-p-l,g=!1;m>t&&i.current&&(r&&r(e),i.current=!1),h&&c.current&&(a&&a(e),c.current=!1),h&&t>m?(n&&!i.current&&n(e),f.scrollTop=d,g=!0,i.current=!0):!h&&-t>l&&(o&&!c.current&&o(e),f.scrollTop=0,g=!0,c.current=!0),g&&hi(e)}}),[n,r,o,a]),d=(0,k.useCallback)((function(e){l(e,e.deltaY)}),[l]),p=(0,k.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),f=(0,k.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;l(e,t)}),[l]),h=(0,k.useCallback)((function(e){if(e){var t=!!fa&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",f,t)}}),[f,p,d]),m=(0,k.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",f,!1))}),[f,p,d]);return(0,k.useEffect)((function(){if(t){var e=u.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,k.useRef)({}),a=(0,k.useRef)(null),i=(0,k.useCallback)((function(e){if(xi){var t=document.body,n=t&&t.style;if(r&&mi.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Oi<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,c=window.innerWidth-i+a||0;Object.keys(gi).forEach((function(e){var t=gi[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(c,"px"))}t&&wi()&&(t.addEventListener("touchmove",vi,ki),e&&(e.addEventListener("touchstart",bi,ki),e.addEventListener("touchmove",yi,ki))),Oi+=1}}),[r]),c=(0,k.useCallback)((function(e){if(xi){var t=document.body,n=t&&t.style;Oi=Math.max(Oi-1,0),r&&Oi<1&&mi.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&wi()&&(t.removeEventListener("touchmove",vi,ki),e&&(e.removeEventListener("touchstart",bi,ki),e.removeEventListener("touchmove",yi,ki)))}}),[r]);return(0,k.useEffect)((function(){if(t){var e=a.current;return i(e),function(){c(e)}}}),[t,i,c]),function(e){a.current=e}}({isEnabled:n});return Co(k.Fragment,null,n&&Co("div",{onClick:Si,css:Pi}),t((function(e){o(e),a(e)})))}var Ei={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Ci=function(e){var t=e.name,n=e.onFocus;return Co("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Ei,value:"",onChange:function(){}})},Di={clearIndicator:Fa,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,a=o.colors,i=o.borderRadius;return Un({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},dropdownIndicator:Ra,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 Un({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return Un({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,a=o.spacing,i=o.colors;return Un(Un({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},za),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,a=o.colors,i=o.spacing.baseUnit;return Un({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i})},loadingMessage:_a,menu:function(e,t){var n,r=e.placement,o=e.theme,a=o.borderRadius,i=o.spacing,c=o.colors;return Un((Hn(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Hn(n,"position","absolute"),Hn(n,"width","100%"),Hn(n,"zIndex",1),n),t?{}:{backgroundColor:c.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:i.menuGutter,marginTop:i.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Un({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors;return Un({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,a=e.cropWithEllipsis;return Un({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors,i=e.isFocused;return Un({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:i?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:Pa,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.theme,i=a.spacing,c=a.colors;return Un({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?c.primary:r?c.primary25:"transparent",color:n?c.neutral20:o?c.neutral0:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?c.primary:c.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return Un({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,a=r.colors;return Un({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,a=e.selectProps.controlShouldRenderValue;return Un({alignItems:"center",display:r&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var ji,Ti={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}},Ai={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ua(),captureMenuScroll:!ua(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Un({ignoreCase:!0,ignoreAccents:!0,stringify:di,trim:!0,matchFrom:"any"},ji),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,c=n.matchFrom,s=i?li(t):t,u=i?li(a(e)):a(e);return r&&(s=s.toLowerCase(),u=u.toLowerCase()),o&&(s=ui(s),u=si(u)),"start"===c?u.substr(0,s.length)===s:u.indexOf(s)>-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 Ii(e,t,n,r){return{type:"option",data:t,isDisabled:Zi(e,t,n),isSelected:Hi(e,t,n),label:Fi(e,t),value:Li(e,t),index:r}}function Mi(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Ii(e,n,t,r)})).filter((function(t){return Ri(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=Ii(e,n,t,r);return Ri(e,a)?a:void 0})).filter(ha)}function Ni(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,tr(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Ri(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,c=t.value;return(!Ui(e)||!a)&&Bi(e,{label:i,value:c,data:o},r)}var Fi=function(e,t){return e.getOptionLabel(t)},Li=function(e,t){return e.getOptionValue(t)};function Zi(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Hi(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Li(e,t);return n.some((function(t){return Li(e,t)===r}))}function Bi(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Ui=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Wi=1,Vi=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&&Xn(e,t)}(a,e);var t,n,r,o=er(a);function a(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,a=o.closeMenuOnSelect,i=o.isMulti,c=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:c}),a&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=n.name,i=t.state.selectValue,c=o&&t.isOptionSelected(e,i),s=t.isOptionDisabled(e,i);if(c){var u=t.getOptionValue(e);t.setValue(i.filter((function(e){return t.getOptionValue(e)!==u})),"deselect-option",e)}else{if(s)return void t.ariaOnChange(e,{action:"select-option",option:e,name:a});o?t.setValue([].concat(tr(i),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),a=r.filter((function(e){return t.getOptionValue(e)!==o})),i=ma(n,a,a[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(ma(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),a=ma(e,o,o[0]||null);t.onChange(a,{action:"pop-value",removedValue:r})},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 ea.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return Fi(t.props,e)},t.getOptionValue=function(e){return Li(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=Di[e](n,r);o.boxSizing="border-box";var a=t.props.styles[e];return a?a(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Un(Un({},Ka),e.components);var e},t.buildCategorizedOptions=function(){return Mi(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Ni(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:Un({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&&oa(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return Ui(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,i=n.inputValue,c=n.isClearable,s=n.isDisabled,u=n.menuIsOpen,l=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,f=t.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(s||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():c&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!d||!h||p&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):c&&a&&t.clearValue();break;case" ":if(i)return;if(!u){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++Wi),t.state.selectValue=ta(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.buildFocusableOptions(),r=n.indexOf(t.state.selectValue[0]);t.state.focusedOption=n[r]}return t}return t=a,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&sa(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&&(sa(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var c=a.indexOf(r[0]);c>-1&&(i=c)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Ti):Un(Un({},Ti),this.props.theme):Ti}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,c=this.props,s=c.isMulti,u=c.isRtl,l=c.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:u,options:l,selectOption:a,selectProps:c,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Zi(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Hi(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Bi(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,i=e.form,c=e.menuIsOpen,s=e.required,u=this.getComponents().Input,l=this.state,d=l.inputIsHidden,p=l.ariaSelection,f=this.commonProps,h=r||this.getElementId("input"),m=Un(Un(Un({"aria-autocomplete":"list","aria-expanded":c,"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":s,role:"combobox"},c&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?k.createElement(u,Gn({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:i,type:"text",value:o},m)):k.createElement(fi,Gn({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Qo,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:i,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,c=t.Placeholder,s=this.commonProps,u=this.props,l=u.controlShouldRenderValue,d=u.isDisabled,p=u.isMulti,f=u.inputValue,h=u.placeholder,m=this.state,g=m.selectValue,v=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!l)return f?null:k.createElement(c,Gn({},s,{key:"placeholder",isDisabled:d,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return g.map((function(t,i){var c=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return k.createElement(n,Gn({},s,{components:{Container:r,Label:o,Remove:a},isFocused:c,isDisabled:d,key:u,index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(f)return null;var b=g[0];return k.createElement(i,Gn({},s,{data:b,isDisabled:d}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(e,Gn({},t,{innerProps:i,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;return e&&o?k.createElement(e,Gn({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return k.createElement(n,Gn({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(e,Gn({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,i=t.MenuPortal,c=t.LoadingMessage,s=t.NoOptionsMessage,u=t.Option,l=this.commonProps,d=this.state.focusedOption,p=this.props,f=p.captureMenuScroll,h=p.inputValue,m=p.isLoading,g=p.loadingMessage,v=p.minMenuHeight,y=p.maxMenuHeight,b=p.menuIsOpen,w=p.menuPlacement,x=p.menuPosition,O=p.menuPortalTarget,S=p.menuShouldBlockScroll,P=p.menuShouldScrollIntoView,_=p.noOptionsMessage,E=p.onMenuScrollToTop,C=p.onMenuScrollToBottom;if(!b)return null;var D,j=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,i=t.isSelected,c=t.label,s=t.value,p=d===o,f=a?void 0:function(){return e.onOptionHover(o)},h=a?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),g={id:m,onClick:h,onMouseMove:f,onMouseOver:f,tabIndex:-1};return k.createElement(u,Gn({},l,{innerProps:g,data:o,isDisabled:a,isSelected:i,key:m,label:c,type:r,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())D=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,a=t.options,i=t.index,c="".concat(e.getElementId("group"),"-").concat(i),s="".concat(c,"-heading");return k.createElement(n,Gn({},l,{key:c,data:o,options:a,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return j(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return j(t,"".concat(t.index))}));else if(m){var T=g({inputValue:h});if(null===T)return null;D=k.createElement(c,l,T)}else{var A=_({inputValue:h});if(null===A)return null;D=k.createElement(s,l,A)}var I={minMenuHeight:v,maxMenuHeight:y,menuPlacement:w,menuPosition:x,menuShouldScrollIntoView:P},M=k.createElement(Oa,Gn({},l,I),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,c=r.maxHeight;return k.createElement(o,Gn({},l,I,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:m,placement:i}),k.createElement(_i,{captureEnabled:f,onTopArrive:E,onBottomArrive:C,lockEnabled:S},(function(t){return k.createElement(a,Gn({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:m,maxHeight:c,focusedOption:d}),D)})))}));return O||"fixed"===x?k.createElement(i,Gn({},l,{appendTo:O,controlElement:this.controlRef,menuPlacement:w,menuPosition:x}),M):M}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=t.required,c=this.state.selectValue;if(i&&!this.hasValue()&&!r)return k.createElement(Ci,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(o){if(n){var s=c.map((function(t){return e.getOptionValue(t)})).join(n);return k.createElement("input",{name:a,type:"hidden",value:s})}var u=c.length>0?c.map((function(t,n){return k.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):k.createElement("input",{name:a,type:"hidden",value:""});return k.createElement("div",null,u)}var l=c[0]?this.getOptionValue(c[0]):"";return k.createElement("input",{name:a,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.isFocused,i=t.selectValue,c=this.getFocusableOptions();return k.createElement(ti,Gn({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:a,selectValue:i,focusableOptions:c}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,i=a.className,c=a.id,s=a.isDisabled,u=a.menuIsOpen,l=this.state.isFocused,d=this.commonProps=this.getCommonProps();return k.createElement(r,Gn({},d,{className:i,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:l}),this.renderLiveRegion(),k.createElement(t,Gn({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:l,menuIsOpen:u}),k.createElement(o,Gn({},d,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),k.createElement(n,Gn({},d,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,c=t.prevWasFocused,s=e.options,u=e.value,l=e.menuIsOpen,d=e.inputValue,p=e.isMulti,f=ta(u),h={};if(n&&(u!==n.value||s!==n.options||l!==n.menuIsOpen||d!==n.inputValue)){var m=l?function(e,t){return Ni(Mi(e,t))}(e,f):[],g=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,f):null,v=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m);h={selectValue:f,focusedOption:v,focusedValue:g,clearFocusValueOnUpdate:!1}}var y=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},b=a,w=i&&c;return i&&!w&&(b={value:ma(p,f,f[0]||null),options:f,action:"initial-input-focus"},w=!c),"initial-input-focus"===(null==a?void 0:a.action)&&(b=null),Un(Un(Un({},h),y),{},{prevProps:e,ariaSelection:b,prevWasFocused:w})}}],n&&Kn(t.prototype,n),r&&Kn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(k.Component);Vi.defaultProps=Ai;var zi=(0,k.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,a=e.defaultValue,i=void 0===a?null:a,c=e.inputValue,s=e.menuIsOpen,u=e.onChange,l=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,f=e.value,h=Yn(e,qn),m=zn((0,k.useState)(void 0!==c?c:n),2),g=m[0],v=m[1],y=zn((0,k.useState)(void 0!==s?s:o),2),b=y[0],w=y[1],x=zn((0,k.useState)(void 0!==f?f:i),2),O=x[0],S=x[1],P=(0,k.useCallback)((function(e,t){"function"==typeof u&&u(e,t),S(e)}),[u]),_=(0,k.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),v(void 0!==n?n:e)}),[l]),E=(0,k.useCallback)((function(){"function"==typeof p&&p(),w(!0)}),[p]),C=(0,k.useCallback)((function(){"function"==typeof d&&d(),w(!1)}),[d]),D=void 0!==c?c:g,j=void 0!==s?s:b,T=void 0!==f?f:O;return Un(Un({},h),{},{inputValue:D,menuIsOpen:j,onChange:P,onInputChange:_,onMenuClose:C,onMenuOpen:E,value:T})}(e);return k.createElement(Vi,Gn({ref:t},n))})),Yi=zi;function qi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qi(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ki=(0,h.injectIntl)((function(e){var t;return(0,R.jsx)("span",Gi(Gi({},e.innerProps),{},{children:(0,R.jsx)(pe,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t})),"data-cy":"btn-clear"})}))}));var Xi=i(46076);function $i(){return $i=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},$i.apply(this,arguments)}const Qi=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class Ji extends k.Component{constructor(...e){super(...e),this._targetNode=k.createRef(),this._elementNode=k.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,k.isValidElement)(e)||(e=null),(0,k.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new Xi(e),this._registerEventListeners()}_destroyTetherInstance(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}_registerEventListeners(){this.on("update",((...e)=>this.props.onUpdate&&this.props.onUpdate.apply(this,e))),this.on("repositioned",((...e)=>this.props.onRepositioned&&this.props.onRepositioned.apply(this,e)))}get _renderNode(){const{renderElementTo:e}=this.props;return"string"==typeof e?document.querySelector(e):e||document.body}_destroy(){this._destroyTetherInstance(),this._removeContainer()}_createContainer(){this._removeContainer();const{renderElementTag:e="div",className:t}=this.props;this._elementParentNode=document.createElement(e),this._elementParentNode.className=t||""}_addContainerToDOM(){this._elementParentNode&&this._renderNode&&this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.append(this._elementParentNode)}_removeContainer(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.remove()}_update(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}_updateTether(){var e;const t=this.props,{id:n,style:r}=t,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(t,Qi),a=$i({target:this._targetNode.current,element:this._elementParentNode},o),i=n||"";if(this._elementParentNode&&this._elementParentNode.id!==i&&(this._elementParentNode.id=i),this._elementParentNode&&r){const e=this._elementParentNode.style;for(const t in r)if(e[t]!==r[t]){let n=r[t];n&&(e[t]=n)}}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(a):this._createTetherInstance(a),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?k.createElement(k.Fragment,null,e,t&&this._elementParentNode&&jo.createPortal(t,this._elementParentNode)):null}}var ec,tc,nc,rc,oc,ac,ic,cc,sc,uc,lc,dc,pc;function fc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fc(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mc=E.ZP.span.withConfig({displayName:"StyledClickableWrapper"})(ec||(ec=(0,P.Z)(["\n pointer-events: auto;\n cursor: pointer;\n"]))),gc=E.ZP.div.withConfig({displayName:"StyledReactSelectOuterWrapper"})(tc||(tc=(0,P.Z)(["\n outline-style: none;\n cursor: ",";\n"])),(function(e){return e.immutable?"not-allowed":"default"})),vc=E.ZP.div.withConfig({displayName:"StyledReactSelectInnerWrapper"})(nc||(nc=(0,P.Z)(["\n outline-style: none;\n"]))),yc=E.ZP.div.withConfig({displayName:"StyledIndicatorsContainerWrapper"})(rc||(rc=(0,P.Z)(["\n position: relative;\n z-index: 1;\n background-color: ",";\n border-radius: ",";\n ",";\n"])),C.FS.color("paper"),C.FS.radii("form"),(function(e){return e.isTopAligned&&(0,E.iv)(oc||(oc=(0,P.Z)(["\n position: absolute;\n right: 0;\n top: 0;\n "])))})),bc=(0,E.ZP)(Ji).withConfig({displayName:"StyledTether"})(ac||(ac=(0,P.Z)(["\n && {\n z-index: 1;\n }\n"]))),wc=(E.ZP.div.withConfig({displayName:"StyledNonTether"})(ic||(ic=(0,P.Z)(["\n position: absolute;\n padding-bottom: ",";\n z-index: 2; // higher than StyledTether and StyledIndicatorsContainerWrapper\n"])),C.bA.space(1.5)),(0,E.ZP)(Ka.Menu).withConfig({displayName:"StyledMenu"})(cc||(cc=(0,P.Z)(["\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}))),xc=E.ZP.div.withConfig({displayName:"StyledMoreOptionsAvailable"})(sc||(sc=(0,P.Z)(["\n && {\n ","\n cursor: default;\n padding: "," ",";\n }\n"])),(0,C.wy)({color:C.FS.color("signal.info"),lineHeight:"normal"}),C.bA.space(-.5),C.bA.space(-.2)),Oc=E.ZP.div.withConfig({displayName:"StyledSingleValueWrapper"})(uc||(uc=(0,P.Z)(["\n overflow-x: hidden;\n position: relative;\n color: ",";\n"])),(function(e){return e.isDisabled?C.FS.color("text"):"inherit"})),kc=E.ZP.div.withConfig({displayName:"StyledDropdownIndicatorWrapper"})(lc||(lc=(0,P.Z)(["\n && {\n position: relative;\n width: 25px;\n height: 25px;\n display: flex;\n align-items: center;\n }\n"]))),Sc=E.ZP.div.withConfig({displayName:"StyledMultiValueWrapper"})(dc||(dc=(0,P.Z)(["\n overflow: hidden;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n"]))),Pc=E.ZP.span.withConfig({displayName:"StyledMultiValueLabelWrapper"})(pc||(pc=(0,P.Z)(["\n overflow: hidden;\n text-overflow: ellipsis;\n"]))),_c=function(e){var t=e.colors.paper,n=e.colors.backgroundItemHover,r=e.colors.backgroundItemSelected,o=e.colors.text,a=e.colors.borderSelect,i=e.colors.textDisabled,c=e.radii.form,s=C.bA.space(-1)({theme:e}),u=C.bA.space(-2)({theme:e}),l={color:o,fontFamily:e.fontFamily.regular,fontSize:"".concat(e.fontSize.base,"rem"),fontWeight:e.fontWeights.regular,lineHeight:e.lineHeights.regular},d=function(e){return e.isMulti&&(e.selectProps.hasAdvancedSearch||e.selectProps.hasDocsTreeSearch)},p=function(t){return hc(hc({},t),{},{color:e.colors.signal.info,cursor:"default",textAlign:"left"})};return{container:function(e,t){return hc(hc(hc({},e),l),{},{outline:0})},control:function(t,n){return hc(hc({},t),{},{backgroundColor:e.colors.paper,borderWidth:0,boxShadow:null,minHeight:0,flexWrap:"nowrap",position:"relative",display:d(n)?"block":t.display})},noOptionsMessage:p,loadingMessage:p,option:function(o,a){var i=t;return a.isSelected?i=r:a.isFocused&&(i=n),hc(hc({},o),{},{color:e.colors.text,backgroundColor:i,cursor:"pointer",":active":{backgroundColor:a.isSelected?r:n}})},indicatorsContainer:function(e,t){return hc(hc({},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),hc(hc(hc({},e),{},{minHeight:t.isDisabled?"0":"2.6rem",paddingTop:t.isDisabled?"0":"2px",paddingBottom:t.isDisabled?"0":"2px"},d(t)?{width:"calc(100% - ".concat(n,"px)")}:{}),{},{overflow:"hidden",margin:"0"})},menu:function(t,n){return{backgroundColor:e.colors.paper,boxShadow:"0 0 6px ".concat(a),borderRadius:c}},menuList:function(e,t){return hc(hc(hc({},e),l),{},{border:"1px solid ".concat(a),borderRadius:c,padding:"0"})},multiValue:function(e,t){return hc(hc({},e),{},{borderRadius:c,margin:"".concat(s," ").concat(u," 0 0"),justifyContent:"space-between"},d(t)&&!t.isDisabled?{width:"100%",maxWidth:"300px"}:{})},multiValueLabel:function(e,t){return hc(hc({},e),{},{borderRadius:c,fontSize:"inherit",lineHeight:1.8})},multiValueRemove:function(e,t){return hc(hc({},e),{},{borderRadius:0,color:o,display:t.isDisabled?"none":"flex",":hover":hc(hc({},e[":hover"]),{},{color:o,backgroundColor:r,cursor:"pointer"})})},singleValue:function(e,t){return hc(hc({},e),{},{color:t.isDisabled?i:o,margin:0})},valueContainer:function(e,t){return hc(hc({},e),{},{padding:0,margin:0})}}};function Ec(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ec(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ec(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Dc=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,R.jsx)(Ka.DropdownIndicator,Cc(Cc({},e),{},{children:(0,R.jsx)(kc,{children:(0,R.jsx)(pe,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};O().shape({key:O().any.isRequired,display:O().string});var jc,Tc,Ac;function Ic(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ic(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ic(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nc=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},Rc=function(e,t){return function(n){n.stopPropagation(),e(t)}},Fc=function(e,t){return function(n){n.stopPropagation(),e(t)}},Lc=function(e){e.stopPropagation()};const Zc=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,a=t.isDisabled,i=t.hasDocsTreeSearch,c=t.hasAdvancedSearch,s=t.createPermission,u=t.value,l=t.isMulti,d=t.inputValue,p=l&&(c||i);return(0,R.jsx)(yc,{isTopAligned:p,children:(0,R.jsxs)(Ka.IndicatorsContainer,Mc(Mc({},e),{},{children:[e.children,n&&!a&&(0,R.jsx)("span",{onTouchEnd:Lc,onMouseDown:Rc(n,u),children:jc||(jc=(0,R.jsx)(pe,{icon:"folder",tabIndex:-1,"data-cy":"btn-docsTreeSearch"}))}),r&&!a&&(0,R.jsx)("span",{onTouchEnd:Lc,onMouseDown:Nc(r,d,u),children:Tc||(Tc=(0,R.jsx)(pe,{icon:"search",tabIndex:-1,"data-cy":"btn-advancedSearch"}))}),s&&!a&&(0,R.jsx)("span",{onTouchEnd:Lc,onMouseDown:Fc(o,u),children:Ac||(Ac=(0,R.jsx)(pe,{icon:"plus",tabIndex:-1,"data-cy":"btn-remoteCreate"}))})]}))})};var Hc;const Bc=function(){return Hc||(Hc=(0,R.jsx)("span",{children:(0,R.jsx)(H,{size:"1.8rem"})}))};var Uc="tocco-app",Wc=i(93379),Vc=i.n(Wc),zc=i(7795),Yc=i.n(zc),qc=i(90569),Gc=i.n(qc),Kc=i(3565),Xc=i.n(Kc),$c=i(19216),Qc=i.n($c),Jc=i(44589),es=i.n(Jc),ts=i(16721),ns={};ns.styleTagTransform=es(),ns.setAttributes=Xc(),ns.insert=Gc().bind(null,"head"),ns.domAPI=Yc(),ns.insertStyleElement=Qc();Vc()(ts.Z,ns);ts.Z&&ts.Z.locals&&ts.Z.locals;var rs,os=i(9198),as=i.n(os),is=E.ZP.span.withConfig({displayName:"StyledChildrenWrapper"})(rs||(rs=(0,P.Z)(["\n cursor: pointer;\n user-select: none;\n"]))),cs=S().forwardRef((function(e,t){var n=e.children,r=e.onOpen;return(0,R.jsx)(is,{onClick:r,ref:t,children:n})}));cs.propTypes={children:O().any,onOpen:O().func};const ss=cs;i(86),i(77349),i(11640);var us=i(19013),ls=i(13882),ds=i(83946);i(78343),i(85425),i(546),i(92300);i(51820),i(58545),i(8791);i(63500),i(21593);i(99890),i(37950);i(36948);i(3151);var ps=i(12274);i(24262),i(86573);i(84129),i(56605);i(584);i(91857);Math.ceil,Math.round,Math.floor;i(83894),i(4135);i(94431);i(43703);i(10876),i(38148);i(67090);var fs=i(95639);i(84314),i(44941),i(52149);i(4810);i(91218);i(55855),i(20466);i(30890);var hs=i(85817);i(90911);var ms=i(39159);i(78966);var gs=i(77881);i(28789);i(95570);i(42699),i(313),i(71381),i(96843);var vs=i(63191);function ys(e,t,n){return(0,ls.Z)(2,arguments),(0,ps.default)((0,vs.default)(e,t,new Date,n))}i(49160),i(86117);i(60792);i(24257),i(7069);i(65834);var bs=i(23855);i(92311);var ws=i(37042);var xs=i(4543),Os=(i(66623),i(11503),i(39880));i(44749);var ks=i(69119);i(54559);i(58793);i(77982),i(59319);var Ss={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}};const Ps=function(e,t,n){var r,o=null!=n&&n.addSuffix?Ss[e].withPreposition:Ss[e].standalone;return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:"vor "+r:r};var _s=i(49526);const Es={date:(0,_s.Z)({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,_s.Z)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,_s.Z)({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};var Cs={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"};const Ds=function(e,t,n,r){return Cs[e]};var js=i(88486),Ts={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},As={narrow:Ts.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:Ts.wide};const Is={ordinalNumber:function(e){return Number(e)+"."},era:(0,js.Z)({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:(0,js.Z)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,js.Z)({values:Ts,formattingValues:As,defaultWidth:"wide"}),day:(0,js.Z)({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},defaultWidth:"wide"}),dayPeriod:(0,js.Z)({values:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},defaultFormattingWidth:"wide"})};var Ms=i(76723),Ns=i(60974),Rs={ordinalNumber:(0,Ns.Z)({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:(0,Ms.Z)({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:"any"}),quarter:(0,Ms.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,Ms.Z)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/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:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,Ms.Z)({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,Ms.Z)({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:"any"})};const Fs={code:"de",formatDistance:Ps,formatLong:Es,formatRelative:Ds,localize:Is,match:Rs,options:{weekStartsOn:1,firstWeekContainsDate:4}};var Ls=i(41695),Zs={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}};const Hs=function(e,t,n){var r,o=Zs[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"dans "+r:"il y a "+r:r};var Bs={ordinalNumber:function(e,t){var n=Number(e),r=null==t?void 0:t.unit;if(0===n)return"0";return n+(1===n?r&&["year","week","hour","minute","second"].includes(r)?"ère":"er":"ème")},era:(0,js.Z)({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},defaultWidth:"wide"}),quarter:(0,js.Z)({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,js.Z)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},defaultWidth:"wide"}),day:(0,js.Z)({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:(0,js.Z)({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})};const Us=Bs;var Ws={ordinalNumber:(0,Ns.Z)({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:(0,Ms.Z)({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:(0,Ms.Z)({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,Ms.Z)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,Ms.Z)({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,Ms.Z)({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})};const Vs=Ws;var zs={date:(0,_s.Z)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,_s.Z)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,_s.Z)({formats:{full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var Ys={lastWeek:"eeee 'la semaine dernière à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'la semaine prochaine à' p",other:"P"};const qs=function(e,t,n,r){return Ys[e]};const Gs={code:"fr-CH",formatDistance:Hs,formatLong:zs,formatRelative:qs,localize:Us,match:Vs,options:{weekStartsOn:1,firstWeekContainsDate:4}};var Ks={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}};const Xs=function(e,t,n){var r,o=Ks[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"tra "+r:r+" fa":r};const $s={date:(0,_s.Z)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,_s.Z)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,_s.Z)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};var Qs=i(59025);function Js(e,t,n){(0,ls.Z)(2,arguments);var r=(0,Qs.Z)(e,n),o=(0,Qs.Z)(t,n);return r.getTime()===o.getTime()}var eu=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function tu(e){return"'"+eu[e]+" alle' p"}var nu={lastWeek:function(e,t,n){var r=e.getUTCDay();return Js(e,t,n)?tu(r):function(e){return 0===e?"'domenica scorsa alle' p":"'"+eu[e]+" scorso alle' p"}(r)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(e,t,n){var r=e.getUTCDay();return Js(e,t,n)?tu(r):function(e){return 0===e?"'domenica prossima alle' p":"'"+eu[e]+" prossimo alle' p"}(r)},other:"P"};const ru=function(e,t,n,r){var o=nu[e];return"function"==typeof o?o(t,n,r):o};var ou={ordinalNumber:function(e,t){var n=Number(e);return String(n)},era:(0,js.Z)({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:(0,js.Z)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,js.Z)({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:(0,js.Z)({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},defaultWidth:"wide"}),dayPeriod:(0,js.Z)({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})};const au=ou;var iu={ordinalNumber:(0,Ns.Z)({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,Ms.Z)({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:(0,Ms.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,Ms.Z)({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,Ms.Z)({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:(0,Ms.Z)({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})};const cu={code:"it",formatDistance:Xs,formatLong:$s,formatRelative:ru,localize:au,match:iu,options:{weekStartsOn:1,firstWeekContainsDate:4}};var su=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},uu=function(e){if(!e&&0!==e)return{hours:"",minutes:"",seconds:""};var t=su(e/1e3%60,3);e-=1e3*t;var n=parseInt(e/6e4%60);e-=1e3*n*60;var r=parseInt(e/36e5);return(n<0||r<0)&&(t=Math.abs(t)),r<0&&(n=Math.abs(n)),{hours:r,minutes:n,seconds:t}},lu=function(e){switch(e){case"fr":return Gs;case"en":return Ls.Z;case"it":return cu;default:return Fs}},du=function(e){return lu(e).formatLong.date({width:"short"})},pu=function(e){return du(e).replace(/[/.]/g,"")};const fu=uu,hu=function(e){var t=uu(e),n=t.hours,r=t.minutes,o=t.seconds,a="".concat(n.toString().padStart(2,"0"),":").concat(r.toString().padStart(2,"0")),i="".concat(a,":").concat(o.toFixed(3).padStart(6,"0"));return o?i:a},mu=lu,gu=du,vu=function(e){return"".concat(du(e)," HH:mm")},yu=pu,bu=function(e){return"".concat(pu(e)," HHmm")},wu=function(e){return e.replace(/y+/,"yy")},xu=function(e){var t=new Date,n=new Date(e);return n=(0,ws.default)(n,(0,hs.default)(t)),n=(0,xs.default)(n,(0,ms.default)(t)),n=function(e,t){(0,ls.Z)(2,arguments);var n=(0,us.default)(e),r=(0,ds.Z)(t);return n.setMilliseconds(r),n}(n=(0,Os.default)(n,0),0),n},Ou=function(e){var t=864e5,n=e-(new Date).getTime();if(n>-864e5){var r=Math.round(n/1e3);return r>-60?{diffValue:r,unit:"second"}:r>-3600?{diffValue:Math.ceil(r/60),unit:"minute"}:{diffValue:Math.ceil(r/3600),unit:"hour"}}var o=Math.round(n/t);return o>-30?{diffValue:o,unit:"day"}:o>-365?{diffValue:Math.ceil(o/30),unit:"month"}:{diffValue:Math.ceil(o/365),unit:"year"}};var ku=function(){(0,os.registerLocale)("en",mu("en")),(0,os.registerLocale)("en-US",mu("en")),(0,os.registerLocale)("de-CH",mu("de-CH")),(0,os.registerLocale)("de-DE",mu("de-DE")),(0,os.registerLocale)("de",mu("de")),(0,os.registerLocale)("fr",mu("fr")),(0,os.registerLocale)("fr-CH",mu("fr")),(0,os.registerLocale)("it",mu("it")),(0,os.registerLocale)("it-CH",mu("it")),(0,os.setDefaultLocale)("de")};ku();(0,E.Zz)((0,h.injectIntl)((function(e){var t,n=e.children,r=e.value,o=e.onChange,a=e.intl,i=a.locale,c=(0,k.useRef)(null),s=(0,k.useState)(!1),u=(0,B.Z)(s,2),l=u[0],d=u[1],p=function(e){var t,n;(d(e),null!==(t=c.current)&&void 0!==t&&t.setPreSelection)&&(null===(n=c.current)||void 0===n||n.setPreSelection(r))};return(0,R.jsx)(as(),{ref:c,selected:r,preSelection:null,onChange:o,showTimeInput:!1,dateFormat:"P",showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,open:l,onFocus:function(){p(!0)},onClickOutside:function(){p(!1)},locale:i,enableTabLoop:!1,customInput:(0,R.jsx)(ss,{onOpen:function(){p(!0)},children:n}),todayButton:(t="client.component.datePicker.todayLabel",a.formatMessage({id:t}))})})));var Su,Pu,_u,Eu,Cu,Du,ju=C.FS.color("secondaryLight"),Tu=C.FS.color("paper"),Au=C.FS.color("secondary"),Iu=C.FS.radii("form"),Mu=(0,E.vJ)(Su||(Su=(0,P.Z)(["\n .react-datepicker-popper {\n && {\n z-index: 5;\n margin: 0;\n }\n }\n\n .react-datepicker-wrapper {\n width: 100%;\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 ","\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--selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\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\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 .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: 280px;\n margin: 8px auto;\n display: grid;\n grid-template-columns: 140px 100px;\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: -3px;\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:hover,\n .react-datepicker__month-text:hover,\n .react-datepicker__quarter-text:hover,\n .react-datepicker__year-text:hover {\n border-color: ",";\n background-color: ",";\n border-radius: 50%;\n color: ",";\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 .react-datepicker__time .react-datepicker__time-box {\n height: 100%;\n border-radius: ",";\n\n ul.react-datepicker__time-list {\n height: 100% !important;\n }\n\n ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected {\n background-color: ",";\n }\n\n ul.react-datepicker__time-list li.react-datepicker__time-list-item {\n height: auto;\n }\n }\n\n .react-datepicker__time-container--with-today-button {\n border-color: ",";\n border-radius: ",";\n right: -88px;\n top: -1px;\n height: 100%;\n }\n\n .react-datepicker__header--time {\n display: none;\n }\n }\n }\n"])),C.FS.radii("form"),Iu,ju,(0,C.wy)(),(0,C.wy)(),ju,Iu,Iu,C.bA.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",Tu,C.bA.font(1),C.FS.fontWeight("bold"),(0,C.wy)({fontWeight:C.FS.fontWeight("bold")}),Tu,C.bA.font(-2),C.bA.space(-1.2),Au,Au,Au,ju,ju,ju,Au,(0,C.wy)(),Tu,C.bA.space(-.5),C.FS.color("backgroundItemHover"),Iu,C.bA.space(-.5),C.FS.color("border"),C.FS.radii("form"),C.bA.space(-1),C.bA.space(-1),C.bA.font(1),C.FS.color("paper"),C.FS.fontWeight("bold"),C.bA.space(-1),Tu,C.bA.font(0),ju,ju,Tu,C.FS.color("text"),C.FS.color("text"),Tu,ju,C.FS.color("backgroundItemHover"),C.FS.color("textDisabled"),C.FS.radii("form"),Au,C.FS.color("border"),C.FS.radii("form")),Nu=(0,E.vJ)(Pu||(Pu=(0,P.Z)(["\n /****** Global text colors *****/\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"])),C.FS.color("signal.success"),C.FS.color("signal.info"),C.FS.color("signal.warning"),C.FS.color("signal.danger"),C.FS.color("textDisabled")),Ru=(0,E.vJ)(_u||(_u=(0,P.Z)(["\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"])),C.FS.color("backgroundScrollbar"),C.FS.color("backgroundScrollbarHover"),C.FS.color("backgroundScrollbar"));const Fu=function(){return(0,R.jsxs)(R.Fragment,{children:[Eu||(Eu=(0,R.jsx)(Nu,{})),Cu||(Cu=(0,R.jsx)(Mu,{})),Du||(Du=(0,R.jsx)(Ru,{}))]})};function Lu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lu(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Hu=function(e){var t=e.selectProps,n=e.children;return(0,R.jsx)(bc,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,R.jsx)("div",{ref:e})},renderElement:function(r){return(0,R.jsx)("div",{ref:r,className:Uc,children:(0,R.jsx)(wc,Zu(Zu({},un()(e,["innerRef"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,children:n}))})}})};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 Uu(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){(0,I.Z)(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}const Wu=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,R.jsxs)(Ka.MenuList,Uu(Uu({},e),{},{className:"MenuList",children:[n,r&&(0,R.jsx)(xc,{children:o})]}))};var Vu,zu,Yu,qu,Gu,Ku=i(3210),Xu=i(40342),$u=(0,E.iv)(Vu||(Vu=(0,P.Z)(["\n display: inline-block;\n color: unset; // 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"])),C.FS.lineHeight("regular"),C.FS.fontWeight("regular"),C.bA.space(-3),C.bA.space(-1.5),C.FS.radii("statusLabel")),Qu=(0,E.ZP)(Dt.Fe).withConfig({displayName:"StyledHtmlFormatter"})(zu||(zu=(0,P.Z)(["\n &&& {\n ","\n margin: 0 0 ",";\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 }\n\n .label-info {\n background-color: "," !important; // nice2 reset\n }\n\n .label-warning {\n background-color: "," !important; // nice2 reset\n }\n\n .label-success {\n background-color: "," !important; // nice2 reset\n }\n\n .label-neutral {\n ","\n background-color: "," !important; // nice2 reset\n }\n\n .label-status {\n border-radius: ",";\n padding: "," ",";\n\n &.filled {\n color: ",";\n background-color: ",";\n }\n }\n }\n"])),(function(e){return(0,Dt.Ly)(e,"html")}),C.bA.space(-1),$u,(function(e){var t=e.theme;return(0,Xu.$n)(.35,t.colors.signal.danger)}),(function(e){var t=e.theme;return(0,Xu.$n)(.35,t.colors.signal.info)}),(function(e){var t=e.theme;return(0,Xu.$n)(.35,t.colors.signal.warning)}),(function(e){var t=e.theme;return(0,Xu.$n)(.35,t.colors.signal.success)}),$u,C.FS.color("signal.neutral"),C.FS.radii("statusLabel"),C.bA.space(-2.1),C.bA.space(0),C.FS.color("paper"),C.FS.color("signal.info")),Ju=16,el=E.ZP.div.withConfig({displayName:"StyledBoxWrapper"})(Yu||(Yu=(0,P.Z)(["\n && {\n pointer-events: none; // prevent flickering of tooltip\n background-color: ",";\n max-width: 400px;\n z-index: 100000010;\n padding: ",";\n }\n"])),C.rS.color("backgroundPopover"),(function(e){return e.rimless?"0":C.bA.space(0)})),tl=E.ZP.div.withConfig({displayName:"StyledBox"})(qu||(qu=(0,P.Z)(["\n && {\n ",";\n\n &,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n "," {\n color: ",";\n }\n }\n"])),(function(e){return e.isPlainHtml&&(0,Dt.Ly)(e,"html")}),Qu,C.rS.color("paper")),nl=E.ZP.i.withConfig({displayName:"StyledArrow"})(Gu||(Gu=(0,P.Z)(["\n position: absolute;\n width: ","px;\n height: ","px;\n left: 0;\n\n &[data-popper-placement*='bottom'] {\n top: ","px;\n\n &:before {\n border-width: 0 ","px ","px ","px;\n border-color: transparent transparent "," transparent;\n }\n }\n\n &[data-popper-placement*='top'] {\n bottom: ","px;\n\n &:before {\n border-width: ","px ","px 0 ","px;\n border-color: "," transparent transparent transparent;\n }\n }\n\n &[data-popper-placement*='right'] {\n left: -","px;\n top: -6px !important;\n\n &:before {\n border-width: ","px;\n border-color: transparent "," transparent transparent;\n }\n }\n\n &:before {\n content: '';\n display: block;\n border-style: solid;\n width: 0;\n height: 0;\n }\n"])),Ju,8,-8,8,8,8,C.rS.color("backgroundPopover"),-6.4,8,8,8,C.rS.color("backgroundPopover"),Ju,8,C.rS.color("backgroundPopover"));function rl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ol(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rl(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var al=function(e){var t=e.children,n=e.content,r=e.isPlainHtml,o=e.rimless,a=(0,k.useState)(null),i=(0,B.Z)(a,2),c=i[0],s=i[1],u=(0,k.useState)(null),l=(0,B.Z)(u,2),d=l[0],p=l[1],f=(0,k.useState)(null),h=(0,B.Z)(f,2),m=h[0],g=h[1],v=(0,k.useState)(!1),y=(0,B.Z)(v,2),b=y[0],w=y[1],x=[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:10}},{name:"arrow",options:{element:m}}],O=(0,Ku.usePopper)(c,d,{modifiers:x}),S=O.styles,P=O.attributes;return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("span",{ref:s,onMouseOut:function(){w(!1)},onMouseOver:function(){w(!0)},children:t}),b&&n&&To().createPortal((0,R.jsxs)(el,ol(ol({ref:p,style:S.popper,rimless:o},P.popper),{},{className:Uc,children:[(0,R.jsx)(tl,{isPlainHtml:r,children:n}),(0,R.jsx)(nl,ol({ref:g,style:S.arrow},P.popper))]})),document.body)]})};al.defaultProps={isPlainHtml:!0,rimless:!1};const il=al;const cl=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,a=o.tooltips,i=o.loadTooltip,c=o.DetailLink,s=Rn()(a,t.key,null),u=(0,R.jsx)("span",{style:n.css,children:r}),l=c?(0,R.jsx)(mc,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,R.jsx)(c,{entityKey:t.key,tabIndex:-1,children:(0,R.jsx)(il,{content:s?(0,R.jsx)("div",{dangerouslySetInnerHTML:{__html:Ct.sanitizeHtml(s)}}):null,children:(0,R.jsx)("span",{onMouseOver:function(){return i&&!s&&i(t.key)},children:u})})})}):u;return(0,R.jsx)(Pc,{children:l})};var sl=i(47037),ul=i.n(sl),ll=i(14176),dl=i.n(ll),pl=i(18446),fl=i.n(pl),hl=i(68718),ml=i.n(hl),gl=function(e){return"object"===(0,In.Z)(e)&&null!==e};const vl=function e(t,n){return ml()(t,(function(t,r,o){fl()(r,n[o])||(t[o]=gl(r)&&gl(n[o])?e(r,n[o]):r)}))},yl=function(e){return e&&Array.isArray(e)?e.length>0?e[0]:[]:e},bl=function(e){return e?e.replace(/­/g,""):e};function wl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wl(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ol=["linkComp"],kl=function(e,t){var n=vl(e,t),r=dl()(un()(n,Ol),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},Sl=(0,k.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&ul()(n)?(0,R.jsx)(mc,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,R.jsx)(t,{entityKey:n,children:r})}):r}),kl);Sl.propTypes={children:O().node,entityKey:O().any,linkComp:O().func};const Pl=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,a=n.tooltips,i=n.loadTooltip,c=n.DetailLink,s=Rn()(a,t.key,null);return(0,R.jsx)(Ka.SingleValue,xl(xl({},e),{},{children:(0,R.jsx)(Oc,{onMouseOver:function(){return i&&!s&&i(t.key)},isDisabled:r,children:(0,R.jsx)(il,{content:s?(0,R.jsx)("div",{dangerouslySetInnerHTML:{__html:Ct.sanitizeHtml(s)}}):null,children:(0,R.jsx)(Sl,{linkComp:c,entityKey:t.key,children:o})})})}))};function _l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var El=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const Cl=function(e){var t=e.selectProps,n=e.hasValue,r=e.children,o=t.isMulti,a=t.hasAdvancedSearch,i=t.hasDocsTreeSearch,c=t.isDisabled;if(!(o&&(a||i)))return(0,R.jsx)(Ka.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_l(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var s=k.Children.map(r,(function(e){return El(e)?e:null})),u=k.Children.map(r,(function(e){return El(e)?null:e})),l=c&&n;return(0,R.jsxs)(R.Fragment,{children:[!l&&(0,R.jsx)(R.Fragment,{children:s}),(0,R.jsx)(Sc,{children:u})]})};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 jl(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){(0,I.Z)(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}(0,E.Zz)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,a=e.isMulti,i=e.loadTooltip,c=e.moreOptionsAvailable,s=e.moreOptionsAvailableText,u=e.noResultsText,l=e.noResultsComp,d=e.onChange,p=e.openDocsTreeSearch,f=e.openAdvancedSearch,h=e.options,m=e.searchOptions,g=e.theme,v=e.tooltips,y=e.value,b=e.DetailLink,w=e.createPermission,x=e.openRemoteCreate,O=(0,k.useRef)(null),S=(0,k.useRef)(null),P=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientWidth)||300},_=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientHeight)||35},E=(0,k.useState)(P()),C=(0,B.Z)(E,2),D=C[0],j=C[1],T=(0,k.useState)(_()),A=(0,B.Z)(T,2),I=A[0],M=A[1],N=(0,k.useState)(!1),F=(0,B.Z)(N,2),L=F[0],Z=F[1],H=function(e){t&&t(e)},U=(0,k.useCallback)(m||function(){},[]),W=(0,k.useCallback)(Zn()(U,800,{trailing:!0}),[]),V=Boolean(f),z=Boolean(p),Y=Boolean(w);return(0,R.jsx)(gc,{tabIndex:"-1",id:n,onFocus:function(){O.current.focus(),setTimeout((function(){j(P()),M(_())}),0)},children:(0,R.jsx)(vc,{ref:S,children:(0,R.jsx)(Yi,jl(jl({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:D,wrapperHeight:I,components:{ClearIndicator:Ki,LoadingIndicator:Bc,DropdownIndicator:Dc,IndicatorsContainer:Zc,IndicatorSeparator:null,Menu:Hu,MenuList:Wu,MultiValueLabel:cl,SingleValue:Pl,ValueContainer:Cl},noOptionsMessage:function(e){return u||("function"==typeof l?(0,R.jsx)(l,jl({},e)):" - ")},isMulti:a,closeMenuOnSelect:!a,isSearchable:!0},m?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,tabSelectsValue:!1,value:y||null,onChange:function(e){d(e),H(e)},onInputChange:function(e,t){var n=t.action;m&&e&&W(e,y),""===e&&"input-change"===n&&H(y)},options:(0,ve.Z)(h||[]),onKeyDown:function(e){"Enter"===e.key&&L&&(e.stopPropagation(),O.current&&null===O.current.focusedOptionRef&&e.preventDefault())},isLoading:o,isDisabled:r,ref:O,onMenuOpen:function(){H(y),Z(!0)},onMenuClose:function(){Z(!1)},styles:_c(g),loadTooltip:i,tooltips:v,DetailLink:b,hasDocsTreeSearch:z,openDocsTreeSearch:p,hasAdvancedSearch:V,openAdvancedSearch:f,moreOptionsAvailable:c,moreOptionsAvailableText:s,blurInputOnSelect:!1,hasCreatePermission:Y,createPermission:w,openRemoteCreate:x,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));var Tl;E.ZP.div.withConfig({displayName:"StyledBoolEdit"})(Tl||(Tl=(0,P.Z)(["\n margin: 5px 0;\n"])));var Al,Il,Ml=function(e){var t=e.value,n=e.breakWords,r=e.className;return(0,R.jsx)(Qu,{dangerouslySetInnerHTML:{__html:Ct.sanitizeHtml(t)},breakWords:n,className:r})};E.ZP.div.withConfig({displayName:"StyledOption"})(Al||(Al=(0,P.Z)(["\n margin: "," 0;\n"])),C.bA.space(-1.4)),E.ZP.span.withConfig({displayName:"StyledLabel"})(Il||(Il=(0,P.Z)(["\n ","\n display: inline-block;\n margin-left: ",";\n vertical-align: middle;\n"])),(0,C.wy)(),C.bA.space(-1.5));i(23279),i(56038);var Nl;E.ZP.div.withConfig({displayName:"StyledEditorWrapper"})(Nl||(Nl=(0,P.Z)(["\n margin-top: ",";\n"])),C.bA.space(-1.5));var Rl,Fl,Ll,Zl=E.ZP.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(Rl||(Rl=(0,P.Z)(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),Hl=E.ZP.div.withConfig({displayName:"StyledDatePickerWrapper"})(Fl||(Fl=(0,P.Z)(["\n &&&& {\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"])),Cn,jn,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),Bl=E.ZP.input.withConfig({displayName:"StyledTimeInput"})(Ll||(Ll=(0,P.Z)(["\n &&&& {\n ","\n }\n"])),jn),Ul="react-datepicker-time__input",Wl="react-datepicker__day",Vl="react-datepicker__input",zl=function(e){return e.classList.contains(Wl)},Yl=function(e){return e.classList.contains(Ul)},ql=function(e){return e.classList.contains(Vl)},Gl=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(Wl,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},Kl=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},Xl=function(e){var t=(0,bs.default)(e);return isNaN(t)?null:t},$l=function(e){return e?e.toISOString():null};const Ql=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,a=n.minDate,i=n.maxDate,c=n.hasTime,s=n.valueToDate,u=void 0===s?Xl:s,l=n.dateToValue,d=void 0===l?$l:l,p=(0,k.useRef)(null),f=(0,k.useState)(!1),h=(0,B.Z)(f,2),m=h[0],g=h[1],v=(0,k.useState)(!1),y=(0,B.Z)(v,2),b=y[0],w=y[1],x=u(e),O=a?u(a):void 0,S=i?u(i):void 0;(0,k.useEffect)((function(){(p.current&&"function"==typeof p.current.setOpen&&p.current.setOpen(m),m)&&document.querySelectorAll("button.react-datepicker__navigation").forEach((function(e){return e.setAttribute("tabindex","-1")}))}),[m]);var P=function(){return g(!1)},_=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(p.current&&"function"==typeof p.current.getPreSelection){var t,n=e?p.current.getPreSelection():null;return(null===(t=p.current.state)||void 0===t?void 0:t.preSelection)||n}return null},E=function(e){p.current&&"function"==typeof p.current.setPreSelection&&p.current.setPreSelection(e)},C=function(){t(null),E(null)},D=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=_(!1);if(n){var r=x||new Date,o=t?function(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,a=void 0===o?0:o,i=t.second,c=void 0===i?0:i;return(0,ws.default)((0,xs.default)((0,Os.default)(e,c),a),r)}(n,{hour:(0,hs.default)(r),minute:(0,ms.default)(r),second:(0,gs.default)(r)}):n;j(o,e)}},j=function(n,r){if(n){var a,i=!e&&Boolean(n),s=null==r||null===(a=r.target)||void 0===a?void 0:a.value,u=!!s&&o.some((function(e){return ys(s,e)})),l=(0,ks.default)(n),f=(0,hs.default)(n)!==(0,hs.default)(l)||(0,ms.default)(n)!==(0,ms.default)(l);(i&&!f||u)&&c&&(n=xu(n)),t(d(n))}else C();var h;c||"click"!==(null==r?void 0:r.type)||(P(),Kl(null===(h=p.current)||void 0===h?void 0:h.input))},T=function(e){if("Tab"===e.key)if(e.shiftKey)if(ql(e.target))setTimeout((function(){return P()}),0);else if(Yl(e.target)){var t;E(x||_(!0)),Gl(null===(t=p.current)||void 0===t||null===(t=t.calendar)||void 0===t?void 0:t.componentNode)}else zl(e.target)&&P();else ql(e.target)&&m?(D(e),setTimeout((function(){return P()}),0)):Yl(e.target)?P():zl(e.target)&&(c?(D(e,!0),E(null),w(!0),setTimeout((function(){var e,t;t=null===(e=p.current)||void 0===e||null===(e=e.calendar)||void 0===e?void 0:e.componentNode,setTimeout((function(){if(t){var e=t.querySelector("input.".concat(Ul));e&&e.focus({preventScroll:!0})}}),0),w(!1)}),0)):(D(e),P()));var n;"Enter"===e.key&&(P(),e.preventDefault(),e.stopPropagation(),Kl(null===(n=p.current)||void 0===n?void 0:n.input));if(["ArrowDown","ArrowUp","Enter"].includes(e.key))if(m){if(m&&null===_(!1)){var r;E(x||_(!0)),Gl(null===(r=p.current)||void 0===r||null===(r=r.calendar)||void 0===r?void 0:r.componentNode)}}else g(!0),e.key="Handled".concat(e.key)},A=function(){var e;g((function(e){return!e})),E(null),Kl(null===(e=p.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{onClickOutside:P,onInputClick:A,onKeyDown:T,onChange:j,onCalendarOpen:function(){E(null)},onBlur:function(){p.current&&p.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:m,selected:x,showTimeInput:c,minDate:O,maxDate:S,ref:p,className:Vl},timeInputProps:{onKeyDown:T,className:Ul,tabIndex:b?void 0:"-1"},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),C()}},calendarButtonProps:{onClick:A,className:m?"react-datepicker-ignore-onclickoutside":""}}};function Jl(e,t){var n=(0,k.useState)(e),r=(0,B.Z)(n,2),o=r[0],a=r[1];return(0,k.useEffect)((function(){var n=setTimeout((function(){a(e)}),t);return function(){clearTimeout(n)}}),[e,t]),[o,a]}function ed(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function td(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ed(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ed(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const nd=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"onChange";return S().forwardRef((function(r,o){var a=r.value,i=(0,k.useState)(a),c=(0,B.Z)(i,2),s=c[0],u=c[1],l=Jl(s,t),d=(0,B.Z)(l,2),p=d[0],f=d[1],h=(0,k.useRef)(a),m=r[n];return(0,k.useEffect)((function(){s!==a&&s===p&&(u(a),h.current=a,f(a))}),[a]),(0,k.useEffect)((function(){m&&h.current!==p&&(m(p),h.current=p)}),[p,m]),(0,R.jsx)(e,td(td(td({},r),{},{value:s},(0,I.Z)({},n,u)),{},{ref:o}))}))};const rd=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,k.useEffect)((function(){if(e.current){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]), textarea:not([disabled])');r&&setTimeout((function(){r.focus()}),0)}}),n)};const od={useAutofocus:rd,useDebounce:Jl,Debouncer:nd,useUserActive:function(e){var t=(0,k.useRef)(null),n=(0,k.useState)(null),r=(0,B.Z)(n,2),o=r[0],a=r[1],i=(0,k.useCallback)((function(){o>0&&(t.current=setTimeout((function(){e()}),o))}),[o,e]),c=(0,k.useCallback)((function(){t.current&&clearTimeout(t.current)}),[]);return(0,k.useEffect)((function(){return c(),window.addEventListener("mousemove",i,{once:!0}),window.addEventListener("touchstart",i,{once:!0}),function(){c()}}),[c,i]),[a,c,i]},usePrevious:function(e){var t=(0,k.useRef)();return(0,k.useEffect)((function(){t.current=e}),[e]),t.current},useDidUpdate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,k.useRef)(!1);(0,k.useEffect)((function(){n.current?e():n.current=!0}),t)}};var ad="HH:mm:ss",id="HH:mm",cd=function(e){return ys(e,id)},sd=function(e){var t=function(e){return ys(e,ad)?(0,vs.default)(e,ad,new Date):ys(e,id)?(0,vs.default)(e,id,new Date):ys(e,"HH:")?(0,vs.default)(e,"HH:",new Date):ys(e,"H")?(0,vs.default)(e,"H",new Date):null}(e);return t&&!isNaN(t)?function(e){return(0,fs.default)(e,id)}(t):""};const ud=function(e,t){var n=sd(e),r=(0,k.useState)(n),o=(0,B.Z)(r,2),a=o[0],i=o[1],c=(0,k.useRef)(a),s=od.usePrevious(n);(0,k.useEffect)((function(){s!==n&&a===s&&i(n)}),[n,a,s]);var u={onChange:function(e){if(e.target.value!==a&&function(e){return/^(\d{0,2}|\d{1,2}:\d{0,2})$/.test(e)}(e.target.value)){var n=function(e,t){return e&&t?2!==e.length||3===t.length||e.includes(":")?e.length+1===t.length&&t.indexOf(":")===t.length-1?e.slice(0,-1):e:"".concat(e,":"):e}(e.target.value,c.current),r=n.indexOf(":"),o=n.substring(0,r),s=n.substring(r+1),u=parseInt(o,10),l=parseInt(s,10),d=!o||!Number.isNaN(u)&&u<24,p=!s||!Number.isNaN(l)&&l<60;if(!d||!p)return!1;c.current=n,i(n),n&&!cd(n)||t(n)}},onBlur:function(){if(a!==n){var e=sd(a);e&&cd(e)?(c.current=e,i(e),t(e)):i(n)}},onFocus:function(e){a&&"function"==typeof e.target.select&&e.target.select()},value:a||""};return{inputProps:u,clearButtonProps:{onClick:function(){t(""),i("")}}}};var ld=["value","onChange","onKeyDown"];function dd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dd(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}ku();var fd=function(e){var t=e.onChange,n=e.label;return(0,R.jsx)(oe,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},hd=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=(0,M.Z)(e,ld),a=ud(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,R.jsx)(Bl,pd(pd(pd({},a),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},md={strategy:"fixed"};const gd=(0,E.Zz)((0,h.injectIntl)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,a=e.maxDate,i=e.valueToDate,c=e.dateToValue,s=e.onChange,u=e.intl,l=e.placeholder,d=e.hasTime,p=e.dateFormats,f=void 0===p?[]:p,h=e.dateTimeFormats,m=void 0===h?[]:h,g=e.events,v=(0,k.useRef)(void 0),y=u.locale,b=function(e){return u.formatMessage({id:e})},w=(0,k.useRef)(null),x=Boolean(r),O=!t&&x,S=function(e){v.current=e,s(e)},P=Ql(r,S,{dateFormats:f,dateTimeFormats:m,minDate:o,maxDate:a,valueToDate:i,dateToValue:c,hasTime:d}),_=P.reactDatePickerProps,E=P.timeInputProps,C=P.clearButtonProps,D=P.calendarButtonProps;return(0,R.jsx)(Zl,{immutable:t,id:n,tabIndex:"-1",children:(0,R.jsxs)(Hl,{immutable:t,ref:w,hasTime:d,onBlur:function(e){if("function"==typeof(null==g?void 0:g.onBlur)){var t=void 0!==v.current?v.current:r;g.onBlur(t)}e.stopPropagation()},children:[(0,R.jsx)(as(),pd(pd({id:n?"".concat(n,"-datepicker"):null},_),{},{disabled:t,dateFormat:[].concat((0,ve.Z)(m),(0,ve.Z)(f)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,yearDropdownItemNumber:100,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,locale:y,timeInputLabel:b("client.component.datePicker.timeLabel"),customTimeInput:(0,R.jsx)(hd,pd({},E)),showTimeSelect:d,timeIntervals:15,popperProps:md,todayButton:(0,R.jsx)(fd,{onChange:S,label:b("client.component.datePicker.todayLabel")})})),O&&(0,R.jsx)(pe,pd({"data-cy":"btn-clear",icon:"times",tabIndex:-1,"aria-label":b("client.component.datePicker.clearDateLabel")},C)),!t&&(0,R.jsx)(pe,pd({"data-cy":"btn-calendar",icon:"calendar",tabIndex:-1},D))]})})})));function vd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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,h.injectIntl)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,a=e.placeholder,i=(0,h.useIntl)(),c=(null==n?void 0:n.datePickerOptions)||{},s="".concat(vu(i.locale)),u="".concat(gu(i.locale)),l=bu(i.locale),d=[s,l,wu(s),wu(l)],p=yu(i.locale),f=[u,p,wu(u),wu(p)];return(0,R.jsx)(gd,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vd(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({value:r,onChange:t,dateTimeFormats:d,dateFormats:f,hasTime:!0,immutable:o,placeholder:a},c))}));var yd,bd,wd,xd,Od,kd,Sd,Pd,_d=E.ZP.section.withConfig({displayName:"StyledSection"})(yd||(yd=(0,P.Z)(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),Ed=E.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(bd||(bd=(0,P.Z)(["\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"])),ee,C.bA.space(-2)),Cd=E.ZP.div.withConfig({displayName:"StyledDropzone"})(wd||(wd=(0,P.Z)(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),ee,C.FS.color("backgroundItemHover")),Dd=E.ZP.div.withConfig({displayName:"StyledUploadInput"})(xd||(xd=(0,P.Z)(["\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,C.wy)(),(function(e){return e.immutable?"not-allowed":"pointer"}),C.FS.color("paper"),(function(e){return e.immutable?C.v5.shade2(e):C.v5.base(e)}),C.bA.space(-2),ee,C.bA.space(-3.1),C.bA.space(-1.5)),jd=E.ZP.div.withConfig({displayName:"StyledUploadProgress"})(Od||(Od=(0,P.Z)(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),C.bA.space(-2)),Td=(0,E.ZP)(Dt.Fe).withConfig({displayName:"StyledUploadProgressText"})(kd||(kd=(0,P.Z)(["\n && {\n ","\n }\n"])),(0,C.wy)({fontSize:C.bA.font(-1)})),Ad=E.ZP.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(Sd||(Sd=(0,P.Z)(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),C.bA.space(-2)),Id=E.ZP.div.withConfig({displayName:"StyledView"})(Pd||(Pd=(0,P.Z)(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),C.bA.space(-2));function Md(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{s(r.next(e))}catch(e){a(e)}}function c(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}s((r=r.apply(e,t||[])).next())}))}function Nd(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}Object.create;function Rd(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Fd(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var Ld=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 Zd(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=Ld.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 Hd=[".DS_Store","Thumbs.db"];function Bd(e){return"object"==typeof e&&null!==e}function Ud(e){return Yd(e.target.files).map((function(e){return Zd(e)}))}function Wd(e){return Md(this,void 0,void 0,(function(){return Nd(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 Zd(e)}))]}}))}))}function Vd(e,t){return Md(this,void 0,void 0,(function(){var n;return Nd(this,(function(r){switch(r.label){case 0:return e.items?(n=Yd(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(qd))]):[3,2];case 1:return[2,zd(Gd(r.sent()))];case 2:return[2,zd(Yd(e.files).map((function(e){return Zd(e)})))]}}))}))}function zd(e){return e.filter((function(e){return-1===Hd.indexOf(e.name)}))}function Yd(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function qd(e){if("function"!=typeof e.webkitGetAsEntry)return Kd(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?$d(t):Kd(e)}function Gd(e){return e.reduce((function(e,t){return Fd(Fd([],Rd(e),!1),Rd(Array.isArray(t)?Gd(t):[t]),!1)}),[])}function Kd(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Zd(t);return Promise.resolve(n)}function Xd(e){return Md(this,void 0,void 0,(function(){return Nd(this,(function(t){return[2,e.isDirectory?$d(e):Qd(e)]}))}))}function $d(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var a=this;t.readEntries((function(t){return Md(a,void 0,void 0,(function(){var a,i,c;return Nd(this,(function(s){switch(s.label){case 0:if(t.length)return[3,5];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return a=s.sent(),e(a),[3,4];case 3:return i=s.sent(),n(i),[3,4];case 4:return[3,6];case 5:c=Promise.all(t.map(Xd)),r.push(c),o(),s.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function Qd(e){return Md(this,void 0,void 0,(function(){return Nd(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=Zd(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var Jd=i(58363);function ep(e){return function(e){if(Array.isArray(e))return ip(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ap(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 tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function np(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tp(Object(n),!0).forEach((function(t){rp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function op(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}(e,t)||ap(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 ap(e,t){if(e){if("string"==typeof e)return ip(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)?ip(e,t):void 0}}function ip(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 cp="file-invalid-type",sp="file-too-large",up="file-too-small",lp="too-many-files",dp=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:cp,message:"File type must be ".concat(t)}},pp=function(e){return{code:sp,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},fp=function(e){return{code:up,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},hp={code:lp,message:"Too many files"};function mp(e,t){var n="application/x-moz-file"===e.type||(0,Jd.Z)(e,t);return[n,n?null:dp(t)]}function gp(e,t,n){if(vp(e.size))if(vp(t)&&vp(n)){if(e.size>n)return[!1,pp(n)];if(e.size<t)return[!1,fp(t)]}else{if(vp(t)&&e.size<t)return[!1,fp(t)];if(vp(n)&&e.size>n)return[!1,pp(n)]}return[!0,null]}function vp(e){return null!=e}function yp(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function bp(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 wp(e){e.preventDefault()}function xp(){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!yp(e)&&t&&t.apply(void 0,[e].concat(r)),yp(e)}))}}function Op(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function kp(e){return/^.*\.[\w]+$/.test(e)}var Sp=["children"],Pp=["open"],_p=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Ep=["refKey","onChange","onClick"];function Cp(e){return function(e){if(Array.isArray(e))return Tp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||jp(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 Dp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}(e,t)||jp(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 jp(e,t){if(e){if("string"==typeof e)return Tp(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)?Tp(e,t):void 0}}function Tp(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 Ap(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ip(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ap(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ap(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Np(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Rp=(0,k.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Ip(Ip({},Fp),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,i=t.minSize,c=t.multiple,s=t.maxFiles,u=t.onDragEnter,l=t.onDragLeave,d=t.onDragOver,p=t.onDrop,f=t.onDropAccepted,h=t.onDropRejected,m=t.onFileDialogCancel,g=t.onFileDialogOpen,v=t.useFsAccessApi,y=t.autoFocus,b=t.preventDropOnDocument,w=t.noClick,x=t.noKeyboard,O=t.noDrag,S=t.noDragEventsBubbling,P=t.onError,_=t.validator,E=(0,k.useMemo)((function(){return function(e){if(vp(e))return Object.entries(e).reduce((function(e,t){var n=op(t,2),r=n[0],o=n[1];return[].concat(ep(e),[r],ep(o))}),[]).filter((function(e){return Op(e)||kp(e)})).join(",")}(n)}),[n]),C=(0,k.useMemo)((function(){return function(e){if(vp(e)){var t=Object.entries(e).filter((function(e){var t=op(e,2),n=t[0],r=t[1],o=!0;return Op(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(kp)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=op(t,2),r=n[0],o=n[1];return np(np({},e),{},rp({},r,o))}),{});return[{description:"Files",accept:t}]}return e}(n)}),[n]),D=(0,k.useMemo)((function(){return"function"==typeof g?g:Up}),[g]),j=(0,k.useMemo)((function(){return"function"==typeof m?m:Up}),[m]),T=(0,k.useRef)(null),A=(0,k.useRef)(null),I=Dp((0,k.useReducer)(Bp,Hp),2),M=I[0],N=I[1],R=M.isFocused,F=M.isFileDialogActive,L=(0,k.useRef)("undefined"!=typeof window&&window.isSecureContext&&v&&"showOpenFilePicker"in window),Z=function(){!L.current&&F&&setTimeout((function(){A.current&&(A.current.files.length||(N({type:"closeDialog"}),j()))}),300)};(0,k.useEffect)((function(){return window.addEventListener("focus",Z,!1),function(){window.removeEventListener("focus",Z,!1)}}),[A,F,j,L]);var H=(0,k.useRef)([]),B=function(e){T.current&&T.current.contains(e.target)||(e.preventDefault(),H.current=[])};(0,k.useEffect)((function(){return b&&(document.addEventListener("dragover",wp,!1),document.addEventListener("drop",B,!1)),function(){b&&(document.removeEventListener("dragover",wp),document.removeEventListener("drop",B))}}),[T,b]),(0,k.useEffect)((function(){return!r&&y&&T.current&&T.current.focus(),function(){}}),[T,y,r]);var U=(0,k.useCallback)((function(e){P?P(e):console.error(e)}),[P]),W=(0,k.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),H.current=[].concat(Cp(H.current),[e.target]),bp(e)&&Promise.resolve(o(e)).then((function(t){if(!yp(e)||S){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,a=e.multiple,i=e.maxFiles,c=e.validator;return!(!a&&t.length>1||a&&i>=1&&t.length>i)&&t.every((function(e){var t=op(mp(e,n),1)[0],a=op(gp(e,r,o),1)[0],i=c?c(e):null;return t&&a&&!i}))}({files:t,accept:E,minSize:i,maxSize:a,multiple:c,maxFiles:s,validator:_});N({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return U(e)}))}),[o,u,U,S,E,i,a,c,s,_]),V=(0,k.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=bp(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1}),[d,S]),z=(0,k.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=H.current.filter((function(e){return T.current&&T.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),H.current=t,t.length>0||(N({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),bp(e)&&l&&l(e))}),[T,l,S]),Y=(0,k.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=Dp(mp(e,E),2),o=t[0],c=t[1],s=Dp(gp(e,i,a),2),u=s[0],l=s[1],d=_?_(e):null;if(o&&u&&!d)n.push(e);else{var p=[c,l];d&&(p=p.concat(d)),r.push({file:e,errors:p.filter((function(e){return e}))})}})),(!c&&n.length>1||c&&s>=1&&n.length>s)&&(n.forEach((function(e){r.push({file:e,errors:[hp]})})),n.splice(0)),N({acceptedFiles:n,fileRejections:r,type:"setFiles"}),p&&p(n,r,t),r.length>0&&h&&h(r,t),n.length>0&&f&&f(n,t)}),[N,c,E,i,a,s,p,f,h,_]),q=(0,k.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),H.current=[],bp(e)&&Promise.resolve(o(e)).then((function(t){yp(e)&&!S||Y(t,e)})).catch((function(e){return U(e)})),N({type:"reset"})}),[o,Y,U,S]),G=(0,k.useCallback)((function(){if(L.current){N({type:"openDialog"}),D();var e={multiple:c,types:C};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){Y(e,null),N({type:"closeDialog"})})).catch((function(e){!function(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?U(e):(L.current=!1,A.current?(A.current.value=null,A.current.click()):U(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):(j(e),N({type:"closeDialog"}))}))}else A.current&&(N({type:"openDialog"}),D(),A.current.value=null,A.current.click())}),[N,D,j,v,Y,U,C,c]),K=(0,k.useCallback)((function(e){T.current&&T.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),G()))}),[T,G]),X=(0,k.useCallback)((function(){N({type:"focus"})}),[]),$=(0,k.useCallback)((function(){N({type:"blur"})}),[]),Q=(0,k.useCallback)((function(){w||(!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)}()?G():setTimeout(G,0))}),[w,G]),J=function(e){return r?null:e},ee=function(e){return x?null:J(e)},te=function(e){return O?null:J(e)},ne=function(e){S&&e.stopPropagation()},re=(0,k.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.role,a=e.onKeyDown,i=e.onFocus,c=e.onBlur,s=e.onClick,u=e.onDragEnter,l=e.onDragOver,d=e.onDragLeave,p=e.onDrop,f=Np(e,_p);return Ip(Ip(Mp({onKeyDown:ee(xp(a,K)),onFocus:ee(xp(i,X)),onBlur:ee(xp(c,$)),onClick:J(xp(s,Q)),onDragEnter:te(xp(u,W)),onDragOver:te(xp(l,V)),onDragLeave:te(xp(d,z)),onDrop:te(xp(p,q)),role:"string"==typeof o&&""!==o?o:"presentation"},n,T),r||x?{}:{tabIndex:0}),f)}}),[T,K,X,$,Q,W,V,z,q,x,O,r]),oe=(0,k.useCallback)((function(e){e.stopPropagation()}),[]),ae=(0,k.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,a=Np(e,Ep);return Ip(Ip({},Mp({accept:E,multiple:c,type:"file",style:{display:"none"},onChange:J(xp(r,q)),onClick:J(xp(o,oe)),tabIndex:-1},n,A)),a)}}),[A,n,c,q,r]);return Ip(Ip({},M),{},{isFocused:R&&!r,getRootProps:re,getInputProps:ae,rootRef:T,inputRef:A,open:J(G)})}(Np(e,Sp)),o=r.open,a=Np(r,Pp);return(0,k.useImperativeHandle)(t,(function(){return{open:o}}),[o]),S().createElement(k.Fragment,null,n(Ip(Ip({},a),{},{open:o})))}));Rp.displayName="Dropzone";var Fp={disabled:!1,getFilesFromEvent:function(e){return Md(this,void 0,void 0,(function(){return Nd(this,(function(t){return Bd(e)&&Bd(e.dataTransfer)?[2,Vd(e.dataTransfer,e.type)]:function(e){return Bd(e)&&Bd(e.target)}(e)?[2,Ud(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,Wd(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};Rp.defaultProps=Fp,Rp.propTypes={children:O().func,accept:O().objectOf(O().arrayOf(O().string)),multiple:O().bool,preventDropOnDocument:O().bool,noClick:O().bool,noKeyboard:O().bool,noDrag:O().bool,noDragEventsBubbling:O().bool,minSize:O().number,maxSize:O().number,maxFiles:O().number,disabled:O().bool,getFilesFromEvent:O().func,onFileDialogCancel:O().func,onFileDialogOpen:O().func,useFsAccessApi:O().bool,autoFocus:O().bool,onDragEnter:O().func,onDragLeave:O().func,onDragOver:O().func,onDrop:O().func,onDropAccepted:O().func,onDropRejected:O().func,onError:O().func,validator:O().func};const Lp=Rp;var Zp,Hp={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Bp(e,t){switch(t.type){case"focus":return Ip(Ip({},e),{},{isFocused:!0});case"blur":return Ip(Ip({},e),{},{isFocused:!1});case"openDialog":return Ip(Ip({},Hp),{},{isFileDialogActive:!0});case"closeDialog":return Ip(Ip({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ip(Ip({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ip(Ip({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Ip({},Hp);default:return e}}function Up(){}function Wp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wp(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const zp=function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose;return(0,R.jsxs)(Dd,{immutable:n,children:[(0,R.jsx)(Lp,{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,R.jsx)(_d,{children:(0,R.jsxs)(Cd,Vp(Vp({},t()),{},{children:[(0,R.jsx)("input",Vp({},n())),Zp||(Zp=(0,R.jsx)(oe,{icon:"arrow-to-top"}))]}))})}}),o&&(0,R.jsx)(oe,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:"browse docs",iconOnly:!0})]})};var Yp,qp=E.ZP.figure.withConfig({displayName:"StyledPreview"})(Yp||(Yp=(0,P.Z)(["\n && {\n vertical-align: top;\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n margin: 0; //reset css overwrite\n\n img {\n margin-top: ",";\n border: 1px solid ",";\n border-radius: ",";\n max-width: ",";\n max-height: ",";\n min-width: 90px; // prevent collapse to 1px if there is no preview generated\n }\n\n figcaption {\n text-align: center;\n }\n }\n"])),C.bA.space(-2.2),C.FS.color("border"),C.FS.radii("form"),(function(e){return e.maxDimensionX||"100%"}),(function(e){return e.maxDimensionY||"100%"}));const Gp=qp;var Kp;const Xp=function(e){var t=e.thumbnailUrl,n=e.alt,r=e.srcUrl,o=(e.fileName,e.caption),a=e.maxDimensionX,i=e.maxDimensionY,c=t?(0,R.jsx)("img",{alt:n,title:n,src:t}):(0,R.jsx)("div",{title:n,children:Kp||(Kp=(0,R.jsx)(N.Z,{icon:"file-alt"}))});return(0,R.jsxs)(Gp,{maxDimensionX:a,maxDimensionY:i,children:[(0,R.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:r,children:c}),o&&(0,R.jsx)(Dt.ZP.Figcaption,{children:o})]})};var $p=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 Qp=function(e){var t=e.file,n=e.text;return(0,R.jsxs)(jd,{children:[(0,R.jsx)(Xp,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,R.jsxs)(Ad,{children:[(0,R.jsx)(H,{position:C.co.position.PREPEND}),(0,R.jsxs)(Td,{children:[n||"uploading"," (",$p(t.size),")"]})]})]})};var Jp=function(e,t,n){return"".concat(e).concat(e&&e.indexOf("?")>=0?"&":"?").concat(t,"=").concat(n)};const ef={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 Jp(e,"download",!0)},addParameterToURL:Jp};function tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tf(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const rf=function(e){var t,n=e.value,r=e.downloadTitle,o=e.immutable,a=e.onUpload,i=e.deleteTitle,c=null===(t=n.binaryLink)||void 0===t?void 0:t.startsWith("blob:");return(0,R.jsxs)(Id,{className:"StyledView",children:[(0,R.jsx)(Xp,nf(nf({alt:n.fileName},c&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,R.jsxs)(Ed,{children:[!o&&(0,R.jsx)(oe,{icon:"trash",onClick:function(){return a(null)},tabIndex:-1,title:i||"delete"}),(0,R.jsx)(oe,{children:(0,R.jsx)(En.ZP,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:ef.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function of(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function af(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?of(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):of(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cf=function(e){var t=e.value,n=e.textResources,r=e.onUpload,o=e.onChoose,a=(0,k.useRef)(t),i=(0,k.useState)({isUploading:!1,previewFile:null}),c=(0,B.Z)(i,2),s=c[0],u=c[1];return(0,k.useEffect)((function(){fl()(a.current,t)||u({isUploading:!1,previewFile:null}),a.current=t}),[t]),null!=t&&t.binaryLink?(0,R.jsx)(rf,af(af({},e),{},{deleteTitle:n.delete,downloadTitle:n.download})):s.isUploading?(0,R.jsx)(Qp,af({file:s.previewFile,text:n.uploading},e)):(0,R.jsx)(zp,af(af({},e),{},{onDrop:function(e){!function(e){u({isUploading:!0,previewFile:e})}(e),r(e)},onChoose:o}))};cf.defaultProps={textResources:{}};const sf=cf;var uf=function(e){return(0,R.jsx)(sf,{onUpload:function(t){null===t?e.onChange&&e.onChange(null):e.options.upload&&e.options.upload(t)},onChoose:e.options.choose,immutable:e.immutable,textResources:{upload:e.options.uploadText,uploading:e.options.uploadingText,delete:e.options.deleteText,download:e.options.downloadText},value:e.value?e.value:null})};uf.defaultProps={options:{}};var lf,df,pf=E.ZP.input.withConfig({displayName:"StyledDurationEdit"})(lf||(lf=(0,P.Z)(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),jn,(function(e){return e.width})),ff=E.ZP.label.withConfig({displayName:"StyledDurationEditFocusable"})(df||(df=(0,P.Z)(["\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"])),C.bA.space(1),(function(e){return e.immutable?C.FS.color("textDisabled"):C.FS.color("text")}),(function(e){return e.immutable?"not-allowed":"default"})),hf=function(e){var t=e.id,n=e.value,r=e.immutable,o=e.onChange,a=e.options,i=fu(n),c=(0,k.useState)(!1),s=(0,B.Z)(c,2),u=s[0],l=s[1],d=function(e,t){var n,r,a=null!==t?t:i.minutes,c=null!==e?e:i.hours;""!==a||""!==c?(a>=60&&(c=0),o((r=a,(n=c)||r?((n<0||r<0)&&(n=Mn(n),r=Mn(r)),60*(n||0)*6e4+6e4*(r||0)):null))):o(null)},p=function(){l(!0)},f=function(e){e.charCode>=48&&e.charCode<=57||45===e.charCode&&!0===a.allowNegative||e.preventDefault()},h=function(){return!0===a.allowNegative?"-?d+":"d+"},m=function(){return u||"number"==typeof n},g=function(e){return 9*(e+"").length},v=r&&Boolean(i.seconds);return(0,R.jsxs)(Dn,{onBlur:function(){l(!1)},immutable:r,id:t,children:[(0,R.jsxs)(ff,{immutable:r,children:[(0,R.jsx)(pf,{disabled:r,immutable:r,min:!0===a.allowNegative?void 0:0,onChange:function(){},onFocus:p,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");d(t,null)},onKeyPress:f,pattern:h(),step:1,width:g(i.hours),type:"number",value:"number"!=typeof i.hours||0===i.hours&&!r?"":i.hours+"","data-cy":"input-hours"}),m()&&(0,R.jsx)(Dt.ZP.Span,{children:a.hoursLabel})]}),(0,R.jsxs)(ff,{immutable:r,children:[(0,R.jsx)(pf,{disabled:r,immutable:r,min:!0!==a.allowNegative||null!==i.hours&&0!==i.hours?0:void 0,onChange:function(){},onFocus:p,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");d(null,t)},onKeyPress:f,pattern:h(),step:1,width:g(i.minutes),type:"number",value:i.minutes+"","data-cy":"input-minutes"}),m()&&(0,R.jsx)(Dt.ZP.Span,{children:a.minutesLabel})]}),v&&(0,R.jsxs)(ff,{immutable:r,children:[(0,R.jsx)(pf,{disabled:r,immutable:r,onChange:function(){},width:g(i.seconds),type:"number",value:i.seconds+""}),m()&&(0,R.jsx)(Dt.ZP.Span,{children:a.secondsLabel})]})]})};hf.defaultProps={options:{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}};var mf;const gf=E.ZP.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(mf||(mf=(0,P.Z)(["\n &&&& {\n ","\n }\n"])),jn);od.Debouncer((function(e){return(0,R.jsxs)(Dn,{immutable:e.immutable,children:[(0,R.jsx)(gf,{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,R.jsx)(An,{children:(0,R.jsx)(En.ZP,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));i(89611);var vf=i(78718),yf=i.n(vf);var bf;function wf(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 xf(){}function Of(e){return!!(e||"").match(/\d/)}function kf(e){return null==e}function Sf(e){return kf(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function Pf(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function _f(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 Ef(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function Cf(e,t){return Array(t+1).join(e)}function Df(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],a=r[1];if(!(a=Number(a)))return n+o;var i=1+a,c=(o=o.replace(".","")).length;return i<0?o="0."+Cf("0",Math.abs(i))+o:i>=c?o+=Cf("0",i-c):o=(o.substring(0,i)||"0")+"."+o.substring(i),n+o}function jf(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=_f(e),a=o.beforeDecimal,i=o.afterDecimal,c=o.hasNegation,s=parseFloat("0."+(i||"0")),u=(i.length<=t?"0."+i:s.toFixed(t)).split(".");return""+(c?"-":"")+a.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),u[0])+(r?".":"")+Ef(u[1]||"",t,n)}function Tf(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"}(bf||(bf={}));var Af,If,Mf,Nf=(Af=function(e,t){for(var n=0,r=0,o=e.length,a=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[a-1-r]&&a-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:a-r}}},Mf=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return If&&e.length===If.length&&e.every((function(e,t){return e===If[t]}))?Mf:(If=e,Mf=Af.apply(void 0,e))});function Rf(e){return Math.max(e.selectionStart,e.selectionEnd)}function Ff(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Lf(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function Zf(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 Hf(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(Of(e[n])||Of(e[n-1]));return t}function Bf(e,t,n,r,o,a){void 0===a&&(a=xf);var i=function(e){var t=(0,k.useRef)(e);t.current=e;var n=(0,k.useRef)((function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}));return n.current}((function(e,t){var n,a;return Sf(e)?(a="",n=""):"number"==typeof e||t?(a="number"==typeof e?Df(e):e,n=r(a)):(a=o(e,void 0),n=r(a)),{formattedValue:n,numAsString:a}})),c=(0,k.useState)((function(){return i(kf(e)?t:e,n)})),s=c[0],u=c[1],l=e,d=n;kf(e)&&(l=s.numAsString,d=!0);var p=i(l,d);return(0,k.useMemo)((function(){u(p)}),[p.formattedValue]),[s,function(e,t){e.formattedValue!==s.formattedValue&&u({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}]}function Uf(e){return e.replace(/[^0-9]/g,"")}function Wf(e){return e}function Vf(e){var t=e.type;void 0===t&&(t="text");var n=e.displayType;void 0===n&&(n="input");var r=e.customInput,o=e.renderText,a=e.getInputRef,i=e.format;void 0===i&&(i=Wf);var c=e.removeFormatting;void 0===c&&(c=Uf);var s=e.defaultValue,u=e.valueIsNumericString,l=e.onValueChange,d=e.isAllowed,p=e.onChange;void 0===p&&(p=xf);var f=e.onKeyDown;void 0===f&&(f=xf);var h=e.onMouseUp;void 0===h&&(h=xf);var m=e.onFocus;void 0===m&&(m=xf);var g=e.onBlur;void 0===g&&(g=xf);var v=e.value,y=e.getCaretBoundary;void 0===y&&(y=Hf);var b=e.isValidInputCharacter;void 0===b&&(b=Of);var w=e.isCharacterSame,x=wf(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),O=Bf(v,s,Boolean(u),i,c,l),P=O[0],_=P.formattedValue,E=P.numAsString,C=O[1],D=(0,k.useRef)({formattedValue:_,numAsString:E}),j=function(e,t){D.current={formattedValue:e.formattedValue,numAsString:e.value},C(e,t)},T=(0,k.useState)(!1),A=T[0],I=T[1],M=(0,k.useRef)(null),N=(0,k.useRef)({setCaretTimeout:null,focusTimeout:null});(0,k.useEffect)((function(){return I(!0),function(){clearTimeout(N.current.setCaretTimeout),clearTimeout(N.current.focusTimeout)}}),[]);var R=i,F=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},L=function(e,t,n){0===e.selectionStart&&e.selectionEnd===e.value.length||(Tf(e,t),N.current.setCaretTimeout=setTimeout((function(){e.value===n&&e.selectionStart!==e.selectionEnd&&Tf(e,t)}),0))},Z=function(e,t,n){return Zf(e,t,y(e),n)},H=function(e,t,n){var r=y(t),o=function(e,t,n,r,o,a,i){void 0===i&&(i=Lf);var c=o.findIndex((function(e){return e})),s=e.slice(0,c);t||n.startsWith(s)||(t=s,n=s+n,r+=s.length);for(var u=n.length,l=e.length,d={},p=new Array(u),f=0;f<u;f++){p[f]=-1;for(var h=0,m=l;h<m;h++)if(i({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:f,formattedValueIndex:h})&&!0!==d[h]){p[f]=h,d[h]=!0;break}}for(var g=r;g<u&&(-1===p[g]||!a(n[g]));)g++;var v=g===u||-1===p[g]?l:p[g];for(g=r-1;g>0&&-1===p[g];)g--;var y=-1===g||-1===p[g]?0:p[g]+1;return y>v?v:r-y<v-r?y:v}(t,_,e,n,r,b,w);return o=Zf(t,o,r)};(0,k.useEffect)((function(){var e=D.current,t=e.formattedValue,n=e.numAsString;_===t||_===E&&t===n||j(F(_,E),{event:void 0,source:bf.props})}),[_,E]);var B=M.current?Rf(M.current):void 0;("undefined"!=typeof window?k.useLayoutEffect:k.useEffect)((function(){var e=M.current;if(_!==D.current.formattedValue&&e){var t=H(D.current.formattedValue,_,B);e.value=_,L(e,t,_)}}),[_]);var U=function(e,t,n){var r=Nf(_,e),o=Object.assign(Object.assign({},r),{lastValue:_}),a=c(e,o),i=R(a);if(a=c(i,void 0),d&&!d(F(i,a))){var s=t.target,u=Rf(s),l=H(e,_,u);return s.value=_,L(s,l,_),!1}return function(e){var t=e.formattedValue;void 0===t&&(t="");var n=e.input,r=e.setCaretPosition;void 0===r&&(r=!0);var o=e.source,a=e.event,i=e.numAsString,c=e.caretPos;if(n){if(void 0===c&&r){var s=e.inputValue||n.value,u=Rf(n);n.value=t,c=H(s,t,u)}n.value=t,r&&void 0!==c&&L(n,c,t)}t!==_&&j(F(t,i),{event:a,source:o})}({formattedValue:i,numAsString:a,inputValue:e,event:t,source:n,setCaretPosition:!0,input:t.target}),!0},W=!A||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",V=Object.assign({inputMode:W},x,{type:t,value:_,onChange:function(e){var t=e.target.value;U(t,e,bf.event)&&p(e)},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,a=n.selectionEnd,i=n.value;if(void 0===i&&(i=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,i.length):"Delete"===r&&(t=o),void 0!==t&&o===a){var c=t;if("ArrowLeft"===r||"ArrowRight"===r)(c=Z(i,t,"ArrowLeft"===r?"left":"right"))!==t&&e.preventDefault();else"Delete"!==r||b(i[t])?"Backspace"!==r||b(i[t])||(c=Z(i,t,"left")):c=Z(i,t,"right");c!==t&&L(n,c,i),e.isUnitTestRun&&L(n,c,i),f(e)}else f(e)},onMouseUp:function(e){var t=e.target,n=t.selectionStart,r=t.selectionEnd,o=t.value;if(void 0===o&&(o=""),n===r){var a=Z(o,n);a!==n&&L(t,a,o)}h(e)},onFocus:function(e){e.persist&&e.persist();var t=e.target;M.current=t,N.current.focusTimeout=setTimeout((function(){var n=t.selectionStart,r=t.selectionEnd,o=t.value;void 0===o&&(o="");var a=Z(o,n);a===n||0===n&&r===o.length||L(t,a,o),m(e)}),0)},onBlur:function(e){M.current=null,clearTimeout(N.current.focusTimeout),clearTimeout(N.current.setCaretTimeout),g(e)}});if("text"===n)return o?S().createElement(S().Fragment,null,o(_,x)||null):S().createElement("span",Object.assign({},x,{ref:a}),_);if(r){var z=r;return S().createElement(z,Object.assign({},V,{ref:a}))}return S().createElement("input",Object.assign({},V,{ref:a}))}function zf(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var a=t.suffix;void 0===a&&(a="");var i=t.allowNegative,c=t.thousandsGroupStyle;if(void 0===c&&(c="thousand"),""===e||"-"===e)return e;var s=Yf(t),u=s.thousandSeparator,l=s.decimalSeparator,d=0!==n&&-1!==e.indexOf(".")||n&&r,p=_f(e,i),f=p.beforeDecimal,h=p.afterDecimal,m=p.addNegation;return void 0!==n&&(h=Ef(h,n,!!r)),u&&(f=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)}(f,u,c)),o&&(f=o+f),a&&(h+=a),m&&(f="-"+f),e=f+(d&&l||"")+h}function Yf(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 qf(e,t,n){var r;void 0===t&&(t=Ff(e));var o=n.allowNegative,a=n.prefix;void 0===a&&(a="");var i=n.suffix;void 0===i&&(i="");var c=n.decimalScale,s=t.from,u=t.to,l=u.start,d=u.end,p=Yf(n),f=p.allowedDecimalSeparators,h=p.decimalSeparator,m=e[d]===h;if(Of(e)&&(e===a||e===i)&&""===t.lastValue)return e;if(d-l==1&&-1!==f.indexOf(e[l])){var g=0===c?"":h;e=e.substring(0,l)+g+e.substring(l+1,e.length)}var v=function(e,t,n){var r=!1,o=!1;a.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):i.startsWith("-")&&e.length===i.length?r=!1:"-"===e[0]&&(r=!0);var c=r?1:0;return o&&(c=2),c&&(e=e.substring(c),t-=c,n-=c),{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,s.start,s.end),x=w.start,O=w.end,k=w.value,S=e.substring(l,d);!(e.length&&k.length&&(x>k.length-i.length||O<a.length))||S&&i.startsWith(S)||(e=k);var P=0;e.startsWith(a)?P+=a.length:l<a.length&&(P=l),d-=P;var _=(e=e.substring(P)).length,E=e.length-i.length;e.endsWith(i)?_=E:(d>E||d>e.length-i.length)&&(_=d),e=e.substring(0,_),e=function(e,t){void 0===e&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&t&&(e="-"+e),e}(b?"-"+e:e,o),e=(e.match(function(e,t){return new RegExp("(^-)|[0-9]|"+Pf(e),t?"g":void 0)}(h,!0))||[]).join("");var C=e.indexOf(h);e=e.replace(new RegExp(Pf(h),"g"),(function(e,t){return t===C?".":""}));var D=_f(e,o),j=D.beforeDecimal,T=D.afterDecimal,A=D.addNegation;return u.end-u.start<s.end-s.start&&""===j&&m&&!parseFloat(T)&&(e=A?"-":""),e}function Gf(e){e=function(e){var t=Yf(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var a=e.allowNegative;if(void 0===a&&(a=!0),n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+r+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&a&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+a+"\n "),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}(e);e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=xf);var a=e.onBlur;void 0===a&&(a=xf);var i=e.thousandSeparator,c=e.decimalScale,s=e.fixedDecimalScale,u=e.prefix;void 0===u&&(u="");var l=e.defaultValue,d=e.value,p=e.valueIsNumericString,f=e.onValueChange,h=wf(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=Yf(e),g=m.decimalSeparator,v=m.allowedDecimalSeparators,y=function(t){return zf(t,e)},b=function(t,n){return qf(t,n,e)},w=kf(d)?l:d,x=null!=p?p: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);kf(d)?kf(l)||(x=x||"number"==typeof l):x=x||"number"==typeof d;var O=function(e){return Sf(e)?e:("number"==typeof e&&(e=Df(e)),x&&"number"==typeof c?jf(e,c,Boolean(s)):e)},k=Bf(O(d),O(l),Boolean(x),y,b,f),S=k[0],P=S.numAsString,_=S.formattedValue,E=k[1];return Object.assign(Object.assign({},h),{value:_,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===g||Of(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,o=e.currentValueIndex,a=e.formattedValueIndex,i=t[o],c=r[a],s=Nf(n,t).to;return!!(o>=s.start&&o<s.end&&v&&v.includes(i)&&c===g)||i===c},onValueChange:E,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})),a="-"===e[0];o.fill(!1,0,n.length+(a?1:0));var i=e.length;return o.fill(!1,i-r.length+1,i+1),o}(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,a=t.selectionStart,l=t.selectionEnd,d=t.value;if(void 0===d&&(d=""),a===l){"Backspace"===r&&"-"===d[0]&&a===u.length+1&&n&&Tf(t,1),c&&s&&("Backspace"===r&&d[a-1]===g?(Tf(t,a-1),e.preventDefault()):"Delete"===r&&d[a]===g&&e.preventDefault()),(null==v?void 0:v.includes(r))&&d[a]===g&&Tf(t,a+1);var p=!0===i?",":i;"Backspace"===r&&d[a-1]===p&&Tf(t,a-1),"Delete"===r&&d[a]===p&&Tf(t,a+1),o(e)}else o(e)},onBlur:function(t){var n=P;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)),s&&c&&(n=jf(n,c,s)),n!==P){var o=zf(n,e);E({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:bf.event})}a(t)}})}function Kf(e){var t=Gf(e);return S().createElement(Vf,Object.assign({},t))}var Xf,$f=["immutable"];function Qf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Jf=(0,E.ZP)((function(e){e.immutable;var t=(0,M.Z)(e,$f);return(0,R.jsx)(Kf,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qf(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(Xf||(Xf=(0,P.Z)(["\n &&&& {\n ","\n }\n"])),jn);const eh=Jf;function th(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?th(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):th(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rh=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},oh=function(e){return null!=e&&!isNaN(parseFloat(e))},ah=function(e,t,n){return!oh(n)||!(oh(t)&&n>t)&&!(oh(e)&&n<e)},ih=function(e,t){return function(n){var r=n.floatValue;return rh(r)<rh(e)||ah(e,t,r)}};(0,h.injectIntl)(od.Debouncer((function(e){var t,n=(t=e.intl.locale,{thousandSeparator:1111..toLocaleString(t).replace(/1/g,""),decimalSeparator:1.1.toLocaleString(t).replace(/1/g,"")}),r=n.thousandSeparator,o=n.decimalSeparator,a=e.options||{},i=a.prePointDigits,c=a.postPointDigits,s=a.minValue,u=a.maxValue,l=a.allowNegative,d=a.fixedDecimalScale,p=a.suffix,f=a.prefix,h=a.format,m=function(e,t,n){if(e){var r=Math.pow(10,e)-(t?1/Math.pow(10,t):1);return n&&n>r?n:r}return n}(i,c,u),g=nh(nh({isAllowed:ih(s,m),allowNegative:!!l},isNaN(c)?{}:{decimalScale:c}),{},{fixedDecimalScale:!!d}),v=void 0===e.value?"":e.value;return(0,R.jsx)(Dn,{immutable:e.immutable,children:(0,R.jsx)(eh,nh(nh({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&ah(s,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:v,suffix:p,prefix:f},g),{},{format:h,placeholder:e.placeholder,onBlur:function(t){var n,r=!(n=t.target.value)||isNaN(n)?null:parseFloat(n);e.onChange&&!ah(s,m,r)&&(t.target.value=null)}}))})}),800));od.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.options,o=e.immutable,a=e.name,i=e.id,c=e.placeholder,s=r||{},u=s.minValue,l=s.maxValue,d=s.format,p=s.allowLeadingZeros,f=s.suffix,h=void 0===t?"":t;return(0,R.jsx)(Dn,{immutable:o,children:(0,R.jsx)(eh,{isAllowed:ih(u,l),allowNegative:!0,decimalScale:0,disabled:o,id:i,name:a,onValueChange:function(e){var t=e.value,r=e.floatValue,o=p?t:r;void 0===o&&(o=null),ah(u,l,r)&&n(o)},value:h,allowLeadingZeros:p,suffix:f,format:d,placeholder:c,immutable:o})})}),800);var ch,sh,uh;E.ZP.div.withConfig({displayName:"StyledWrapper"})(ch||(ch=(0,P.Z)(["\n display: flex;\n justify-content: stretch;\n"]))),E.ZP.div.withConfig({displayName:"StyledLocationWrapper"})(sh||(sh=(0,P.Z)(["\n flex-grow: 1;\n"]))),E.ZP.div.withConfig({displayName:"StyledDistanceWrapper"})(uh||(uh=(0,P.Z)(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),C.FS.color("border"),C.bA.space(-.8),C.bA.space(.5));var lh,dh=(0,k.lazy)((function(){return i.e(802).then(i.bind(i,27352))})),ph=function(e){var t=e.id,n=e.onChange,r=e.immutable,o=e.value,a=e.options;if(r)return(0,R.jsx)(Dt.ZP.Span,{children:(0,R.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})});var i=a||{},c=i.contentLang,s=i.defaultLinkTarget,u=i.ckEditorConfig;return(0,R.jsx)(k.Suspense,{fallback:lh||(lh=(0,R.jsx)("i",{})),children:(0,R.jsx)(dh,{id:t,onChange:function(e){n&&n(e)},value:o,contentLang:c,defaultLinkTarget:s,ckEditorConfig:u})})};ph.defaultProps={value:""};var fh;E.ZP.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(fh||(fh=(0,P.Z)(["\n &&&& {\n ","\n }\n"])),jn);od.Debouncer((function(e){return(0,R.jsx)(Dn,{immutable:e.immutable,children:(0,R.jsx)(gf,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||""})})}));var hh,mh,gh,vh,yh,bh=i(28002),wh=(E.ZP.div.withConfig({displayName:"StyledTermsEdit"})(hh||(hh=(0,P.Z)(["\n margin: "," 0;\n display: flex;\n"])),C.bA.space(-1.4)),E.ZP.input.withConfig({displayName:"StyledCheckbox"})(mh||(mh=(0,P.Z)(["\n margin-right: ",";\n"])),C.bA.space(-1.5)),(0,E.iv)(gh||(gh=(0,P.Z)(["\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"])),C.FS.color("secondary"),C.FS.color("secondaryLight"),C.FS.color("secondary")));E.ZP.a.withConfig({displayName:"StyledTermsLink"})(vh||(vh=(0,P.Z)(["\n ","\n"])),wh),(0,E.ZP)(Ml).withConfig({displayName:"StyledHtmlFormatter"})(yh||(yh=(0,P.Z)(["\n &&& {\n p {\n margin: 0;\n }\n\n a {\n ","\n }\n }\n"])),wh);const xh=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)};var Oh,kh,Sh,Ph=(0,E.iv)(Oh||(Oh=(0,P.Z)(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),jn),_h=E.ZP.div.withConfig({displayName:"StyledSizeWrapper"})(kh||(kh=(0,P.Z)(["\n display: grid;\n width: 100%;\n\n &:after {\n content: attr(data-replicated-value) ' ';\n white-space: pre-wrap;\n word-break: break-all;\n visibility: hidden;\n ","\n\n /* prevent scrollbar on Firefox */\n padding-right: 15px;\n }\n"])),Ph),Eh=E.ZP.textarea.withConfig({displayName:"StyledTextarea"})(Sh||(Sh=(0,P.Z)(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: ",";\n position: relative;\n top: ",";\n }\n"])),Ph,(function(e){var t=e.disabled,n=e.isSafari;return!t||n?"4.5em":"0"}),(function(e){return e.disabled?C.bA.space(-1.2):"0"}));function Ch(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ch(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ch(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const jh=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,a=e.disabled,i=e.immutable,c=(0,k.useState)(t),s=(0,B.Z)(c,2),u=s[0],l=s[1],d=!xh(),p=xh(),f=(0,k.useCallback)(Zn()(l,500,{trailing:!0}),[]);return(0,k.useEffect)((function(){d&&f(t)}),[t,d,f]),(0,R.jsx)(_h,Dh(Dh({"data-testid":"replicated-test"},d?{"data-replicated-value":u}:{}),{},{children:(0,R.jsx)(Eh,{value:t||"",name:r,id:o,onChange:n,disabled:a,immutable:i,rows:"1",isSafari:p})}))};od.Debouncer((function(e){return(0,R.jsx)(Dn,{immutable:e.immutable,children:(0,R.jsx)(jh,{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 Th;E.ZP.input.withConfig({displayName:"StyledTimeEdit"})(Th||(Th=(0,P.Z)(["\n &&&& {\n ","\n }\n"])),jn);var Ah;const Ih=E.ZP.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(Ah||(Ah=(0,P.Z)(["\n &&&& {\n ","\n }\n"])),jn);od.Debouncer((function(e){return(0,R.jsxs)(Dn,{immutable:e.immutable,children:[(0,R.jsx)(Ih,{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,R.jsx)(An,{children:(0,R.jsx)(En.ZP,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));const Mh=(0,E.Zz)((function(e){return(0,R.jsx)(N.Z,{style:{fontSize:"".concat(e.theme.fontSize.base,"rem")},icon:e.value?"check":"times"})}));const Nh=function(e){var t=(0,h.useIntl)();return(0,R.jsx)(Dt.ZP.Time,{dateTime:e.value,title:t.formatDate(e.value),children:(0,R.jsx)(h.FormattedDate,{value:e.value,year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC"})})};var Rh;const Fh=(0,h.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),Rh||(Rh=(0,R.jsx)(Dt.ZP.Span,{}));var o=(0,fs.default)(r,"HH:mm");return(0,R.jsxs)(Dt.ZP.Time,{dateTime:r.toISOString(),title:"".concat(n.formatDate(r),", ").concat(o),children:[(0,R.jsx)(h.FormattedDate,{value:r,year:"numeric",month:"2-digit",day:"2-digit"}),", ",o]})}));function Lh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lh(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Hh=function(e){var t=(0,k.useContext)(E.Ni),n=e.options||{},r=(0,R.jsxs)(R.Fragment,{children:[n.title&&(0,R.jsx)(Dt.ZP.H5,{children:n.title}),(0,R.jsx)(Ml,Zh({},e))]}),o={color:C.rS.color("text")({theme:t}),fontSize:"".concat(C.rS.fontSize("base")({theme:t})*C.rS.fontSize("factor")({theme:t}),"rem"),marginLeft:"-".concat(C.bA.space(-1.9)({theme:t}))};return"text"===n.mode?r:(0,R.jsx)(il,{content:r,isPlainHtml:!0,children:(0,R.jsx)(N.Z,{style:o,icon:"question-circle"})})};const Bh=function(e){var t=e.value,n=e.options||{},r=n.tooltips,o=n.loadTooltip,a=Rn()(r,t.resourceKey,null);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(il,{content:a?(0,R.jsx)("div",{dangerouslySetInnerHTML:{__html:Ct.sanitizeHtml(a)}}):null,children:(0,R.jsx)("span",{onMouseOver:function(){return o&&!a&&o(t.resourceKey)},children:(0,R.jsx)(En.ZP,{alt:t.alt||t.fileName,icon:"eye",look:"raised",target:"_blank",href:t.binaryLink,onClick:function(e){e.stopPropagation()}})})}),(0,R.jsx)(En.ZP,{alt:t.alt||t.fileName,icon:"arrow-to-bottom",look:"raised",target:"_blank",href:ef.getDownloadUrl(t.binaryLink),onClick:function(e){e.stopPropagation()}})]})};const Uh=function(e){return(0,R.jsx)(sf,{onUpload:function(){},immutable:!0,textResources:{download:e.options.downloadText},value:e.value?e.value:null})};const Wh=function(e){var t=e.value,n=parseInt(t),r=hu(n);return(0,R.jsx)(Dt.ZP.Time,{dateTime:r,title:r,children:r})};const Vh=function(e){return(0,R.jsx)(En.ZP,{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 zh=function(e){return(0,R.jsx)(Dt.ZP.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};function Yh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yh(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gh=function(){return"; "};const Kh=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.useTitle,a=n||{},i=a.navigationStrategy,c=a.linkProps,s=(null==t?void 0:t.length)>0?t.map((function(e){return null!=i&&i.DetailLink?(0,R.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,R.jsx)(i.DetailLink,qh(qh({},c),{},{entityKey:e.key,children:e.display}))}):e.display})).reduce((function(e,t,n){return[e,(0,R.jsx)(Gh,{},"sep".concat(n)),t]})):null;return(0,R.jsx)(Dt.ZP.Span,{breakWords:r,useTitle:o,children:s})};const Xh=function(e){return(0,R.jsx)(Dt.ZP.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,R.jsx)(h.FormattedNumber,{value:e.value,style:"decimal",minimumFractionDigits:e.options&&e.options.postPointDigits||2})})};const $h=function(e){var t;return(0,R.jsx)(Dt.ZP.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,R.jsx)(h.FormattedNumber,{value:e.value,style:"percent",minimumFractionDigits:null==e||null===(t=e.options)||void 0===t?void 0:t.postPointDigits})})};function Qh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qh(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var em=(0,k.lazy)((function(){return Promise.all([i.e(877),i.e(698)]).then(i.bind(i,48078))}));const tm=function(e){return(0,R.jsx)(k.Suspense,{fallback:"",children:(0,R.jsx)(em,Jh({},e))})};function nm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nm(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const om=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.useTitle;t=yl(t);var a=(0,R.jsx)(Dt.ZP.Span,{breakWords:r,useTitle:o,children:t.display}),i=n||{},c=i.tooltips,s=i.loadTooltip,u=i.navigationStrategy,l=i.linkProps,d=Rn()(c,t.key,null);return(null!=u&&u.DetailLink?(0,R.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,R.jsx)(u.DetailLink,rm(rm({},l),{},{entityKey:t.key,children:(0,R.jsx)(il,{content:d?(0,R.jsx)("div",{dangerouslySetInnerHTML:{__html:Ct.sanitizeHtml(d)}}):null,children:(0,R.jsx)("span",{onMouseOver:function(){return s&&!d&&s(t.key)},children:a})})}))}):null)||a};const am=function(e){return(0,R.jsx)(Dt.ZP.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};const im=function(e){return e.breakWords?e.value.split("\n").map((function(t,n){return(0,R.jsx)(Dt.ZP.P,{useTitle:e.useTitle,children:t},n)})):(0,R.jsx)(Dt.ZP.Span,{breakWords:!1,useTitle:e.useTitle,children:e.value.replace("/\n/g"," ")})};var cm=function(e,t){return parseInt(e.split(":")[t])||0};const sm=(0,h.injectIntl)((function(e){var t=e.value,n=(e.intl,cm(t,0)),r=cm(t,1),o=cm(t,2),a=cm(t,3),i=new Date(2e3,1,1,n,r,o,a),c=(0,fs.default)(i,"HH:mm:ss.SSS"),s=(0,fs.default)(i,"HH:mm");return(0,R.jsx)(Dt.ZP.Time,{dateTime:c,title:s,children:s})}));const um=function(e){var t=e.value,n=e.breakWords,r=e.useTitle;return(0,R.jsx)(En.ZP,{onClick:function(e){e.stopPropagation()},href:t,target:"_blank",rel:"noopener noreferrer",label:t,breakWords:n,useTitle:r,neutral:!1})};var lm,dm={boolean:Mh,date:Nh,datetime:Fh,document:Uh,"document-compact":Bh,duration:Wh,email:Vh,html:Ml,integer:zh,"multi-remote":Kh,"multi-select":Kh,number:Xh,percent:$h,phone:tm,remote:om,"single-select":om,string:am,text:im,time:sm,url:um,description:Hh};const pm=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.breakWords,a=void 0===o||o,i=e.useTitle,c=void 0===i||i;if(dm[t]){var s=dm[t];return(0,R.jsx)(s,{value:n,options:r,breakWords:a,useTitle:c})}return console.log("No FormattedValue mapper defined for component type",t,n),lm||(lm=(0,R.jsx)("div",{}))};var fm;const hm=function(e){var t=e.type,n=e.value,r=e.options,o=e.breakWords,a=e.useTitle;return null==n||""===n?fm||(fm=(0,R.jsx)("span",{})):(0,R.jsx)(pm,{componentType:t,value:n,options:r,breakWords:o,useTitle:a})},mm=hm;var gm;E.ZP.div.withConfig({displayName:"StyledLayoutBox"})(gm||(gm=(0,P.Z)(["\n height: fit-content;\n margin-bottom: ",";\n"])),C.bA.space(.25));var vm,ym=E.ZP.div.withConfig({displayName:"StyledLayoutContainer"})(vm||(vm=(0,P.Z)(["\n display: grid;\n padding-right: ",";\n ",";\n ",";\n"])),C.bA.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(C.bA.space(.25)({theme:n}))}),(function(e){return e.occupiesRemainingHeight&&"\n flex: 1;\n "}));const bm=ym;var wm=function(e){var t=e.children,n=e.occupiesRemainingHeight,r=e.minBoxWidth,o=(0,k.useRef)(null),a=(0,k.useState)(0),i=(0,B.Z)(a,2),c=i[0],s=i[1],u=function(){s(o.current.offsetWidth)};return(0,k.useEffect)((function(){return u(),window.addEventListener("resize",u),function(){return window.removeEventListener("resize",u)}}),[]),(0,R.jsx)(bm,{ref:o,containerWidth:c,occupiesRemainingHeight:n,minBoxWidth:r,children:t})};wm.defaultProps={minBoxWidth:250};var xm,Om,km,Sm,Pm=i(69829),_m=(0,E.F4)(xm||(xm=(0,P.Z)(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),Em=(0,E.iv)(Om||(Om=(0,P.Z)(["\n animation: "," 400ms ease-in-out both;\n"])),_m),Cm=E.ZP.div.withConfig({displayName:"StyledLoadingIconAndTest"})(km||(km=(0,P.Z)(["\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"])),C.bA.space(-1),Em,Pm.Fe,C.bA.space(-1));const Dm=E.ZP.div.withConfig({displayName:"StyledLoadMask"})(Sm||(Sm=(0,P.Z)(["\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 jm;const Tm=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,a=e.className,i=(0,k.useState)(!1),c=(0,B.Z)(i,2),s=c[0],u=c[1],l=(0,k.useState)(!0),d=(0,B.Z)(l,2),p=d[0],f=d[1];(0,k.useEffect)((function(){return t&&Promise.all(t).then((function(){var e;e=!0,p&&u(e)})),function(){f(!1)}}),[]);var h=n&&Array.isArray(n)?!n.some((function(e){return!e})):!!t&&s;return(0,R.jsx)(Dm,{className:a,children:h?r:(0,R.jsxs)(Cm,{children:[jm||(jm=(0,R.jsx)(H,{size:"30px"},"loading-spinner")),o&&(0,R.jsx)(Dt.ZP.Span,{children:o},"loadingText")]})})};var Am,Im=E.ZP.div.withConfig({displayName:"StyledPanel"})(Am||(Am=(0,P.Z)(["\n && {\n background-color: ",";\n border: 1px "," ",";\n border-radius: ",";\n }\n"])),C.FS.color("paper"),(function(e){return e.isFramed?"solid":"none"}),C.FS.color("borderLight"),C.FS.radii("form"));const Mm=Im;const Nm=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.controlledIsOpen,a=e.isOpenInitial,i=void 0===a||a,c=e.isToggleable,s=void 0===c||c,u=e.onToggle,l=(0,k.useState)(i),d=(0,B.Z)(l,2),p=d[0],f=d[1],h="boolean"==typeof o,m=function(){s&&(h?"function"==typeof u&&u(!o):f(!p))};return(0,R.jsx)(Mm,{isFramed:r,children:S().Children.map(t,(function(e){return S().cloneElement(e,{isFramed:r,isOpen:h?o:p,isToggleable:s,toggleOpenState:m})}))})};var Rm,Fm=E.ZP.div.withConfig({displayName:"StyledPanelBody"})(Rm||(Rm=(0,P.Z)(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?C.bA.space(-.375):0}),(function(e){return e.isOpen?"block":"none"}));const Lm=Fm;const Zm=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,R.jsx)(Lm,{isFramed:n,isOpen:r,children:(0,R.jsx)("div",{children:t})})};const Hm=function(e){var t=e.initialOpenPanelIndex,n=e.children,r=(0,k.useState)(t),o=(0,B.Z)(r,2),a=o[0],i=o[1];return(0,R.jsx)(R.Fragment,{children:S().Children.map(n,(function(e,t){return S().cloneElement(e,{controlledIsOpen:a===t,onToggle:function(e){return function(e,t){i(!0===t?e:void 0)}(t,e)}})}))})};var Bm;const Um=E.ZP.div.withConfig({displayName:"StyledPanelGroup"})(Bm||(Bm=(0,P.Z)(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),C.bA.space(0),Mm,C.bA.space(-1));function Wm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wm(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const zm=function(e){return(0,R.jsx)(Um,{children:(0,R.jsx)(Hm,Vm({},e))})};var Ym,qm,Gm,Km,Xm,$m,Qm,Jm="1px",eg=E.ZP.span.withConfig({displayName:"StyledIconWrapper"})(Ym||(Ym=(0,P.Z)(["\n font-size: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),C.bA.font(1),!C.b1&&(0,E.iv)(qm||(qm=(0,P.Z)(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),C.FS.color("secondaryLight"))),tg=E.ZP.div.withConfig({displayName:"StyledPanelHeader"})(Gm||(Gm=(0,P.Z)(["\n && {\n background-color: ",";\n display: flex;\n border-radius: ",";\n padding: ",";\n align-items: center;\n\n /* only apply arrow styles on non-touch devices */\n ","\n > div {\n flex: 1 1 auto;\n }\n ","\n }\n"])),C.FS.color("backgroundPanelHeaderFooter"),(function(e){return e.isOpen?(0,E.iv)(Km||(Km=(0,P.Z)(["\n calc("," - ",") calc("," - ",") 0 0;\n "])),C.FS.radii("form"),Jm,C.FS.radii("form"),Jm):(0,E.iv)(Xm||(Xm=(0,P.Z)(["\n calc("," - ",")\n "])),C.FS.radii("form"),Jm)}),(function(e){return e.isFramed?(0,E.iv)($m||($m=(0,P.Z)(["\n "," ","\n "])),C.bA.space(-1.7),C.bA.space(-.375)):0}),!C.b1&&(0,E.iv)(Qm||(Qm=(0,P.Z)(["\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n "])),eg),(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(Jm,";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-width: ").concat(Jm,";\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(Jm,";\n }\n ")}(e)}));const ng=tg;var rg=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,a=e.showToggler,i=e.toggleOpenState,c=e.options;return(0,R.jsxs)(ng,{isFramed:n,isOpen:r,onClick:i,children:[(0,R.jsx)("div",{children:S().Children.map(t,(function(e){return S().cloneElement(e)}))}),o&&a&&(0,R.jsx)(eg,{children:(0,R.jsx)(N.Z,{icon:r?"chevron-up":"chevron-down",onClick:i,title:r?c.collapseButtonText:c.unfoldButtonText})})]})};rg.defaultProps={showToggler:!0,options:{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}};const og={Body:Zm,Group:zm,Header:rg,Wrapper:Nm};var ag,ig=E.ZP.div.withConfig({displayName:"StyledPanel"})(ag||(ag=(0,P.Z)(["\n && {\n background-color: ",";\n border: 1.5px "," ",";\n border-radius: ",";\n }\n"])),C.FS.color("paper"),(function(e){return e.isFramed?"solid":"none"}),C.FS.color("borderLight"),C.FS.radii("form"));const cg=ig;const sg=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n;return(0,R.jsx)(cg,{isFramed:r,children:S().Children.map(t,(function(e){return S().cloneElement(e,{isFramed:r})}))})};var ug,lg,dg=E.ZP.div.withConfig({displayName:"StyledPanelBody"})(ug||(ug=(0,P.Z)(["\n && {\n padding: ",";\n }\n"])),(function(e){return e.isFramed?(0,E.iv)(lg||(lg=(0,P.Z)(["\n "," "," "," ","\n "])),C.bA.space(-1),C.bA.space(.2),C.bA.space(.2),C.bA.space(.2)):0}));const pg=dg;const fg=function(e){var t=e.children,n=e.isFramed;return(0,R.jsx)(pg,{isFramed:n,children:(0,R.jsx)("div",{children:t})})};var hg;const mg=E.ZP.div.withConfig({displayName:"StyledPanelGroup"})(hg||(hg=(0,P.Z)(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),C.bA.space(0),cg,C.bA.space(-1));function gg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gg(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const yg=function(e){return(0,R.jsx)(mg,{children:(0,R.jsx)(Hm,vg({},e))})};var bg,wg="1px",xg=E.ZP.div.withConfig({displayName:"StyledPanelHeader"})(bg||(bg=(0,P.Z)(["\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"])),C.FS.color("paper"),C.FS.radii("form"),wg,C.FS.radii("form"),wg,(function(e){return e.isFramed?C.bA.space(.2):0}),C.FS.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(wg,";\n }\n ")}(e)}));const Og=xg;const kg=function(e){var t=e.children,n=e.isFramed;return(0,R.jsx)(Og,{isFramed:n,children:(0,R.jsx)("div",{children:S().Children.map(t,(function(e){return S().cloneElement(e)}))})})},Sg={Body:fg,Group:yg,Header:kg,Wrapper:sg};var Pg,_g,Eg,Cg,Dg={Body:(Pg={},(0,I.Z)(Pg,bh.Z.EmbedType.admin,og.Body),(0,I.Z)(Pg,bh.Z.EmbedType.widget,Sg.Body),Pg),Group:(_g={},(0,I.Z)(_g,bh.Z.EmbedType.admin,og.Group),(0,I.Z)(_g,bh.Z.EmbedType.widget,Sg.Group),_g),Header:(Eg={},(0,I.Z)(Eg,bh.Z.EmbedType.admin,og.Header),(0,I.Z)(Eg,bh.Z.EmbedType.widget,Sg.Header),Eg),Wrapper:(Cg={},(0,I.Z)(Cg,bh.Z.EmbedType.admin,og.Wrapper),(0,I.Z)(Cg,bh.Z.EmbedType.widget,Sg.Wrapper),Cg)};bh.Z.embedStrategyFactory({mapping:Dg.Body}),bh.Z.embedStrategyFactory({mapping:Dg.Group}),bh.Z.embedStrategyFactory({mapping:Dg.Header}),bh.Z.embedStrategyFactory({mapping:Dg.Wrapper});var jg;E.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(jg||(jg=(0,P.Z)(["\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: flex-end;\n"])),C.bA.space(0),C.FS.color("paper"));i(56746);var Tg=new AbortController,Ag=!1;window.addEventListener("beforeunload",(function(e){Ag?(e.preventDefault(),e.returnValue=""):Tg.abort()})),window.addEventListener("pagehide",(function(){Tg.signal.aborted||Tg.abort()}));var Ig=function(e){return"@@redux-saga/"+e},Mg=Ig("CANCEL_PROMISE"),Ng=Ig("CHANNEL_END"),Rg=Ig("IO"),Fg=Ig("MATCH"),Lg=Ig("MULTICAST"),Zg=Ig("SAGA_ACTION"),Hg=Ig("SELF_CANCELLATION"),Bg=Ig("TASK"),Ug=Ig("TASK_CANCEL"),Wg=Ig("TERMINATE"),Vg=Ig("LOCATION");function zg(){return zg=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},zg.apply(this,arguments)}var Yg=function(e){return null==e},qg=function(e){return null!=e},Gg=function(e){return"function"==typeof e},Kg=function(e){return"string"==typeof e},Xg=Array.isArray,$g=function(e){return e&&Gg(e.then)},Qg=function(e){return e&&Gg(e.next)&&Gg(e.throw)},Jg=function e(t){return t&&(Kg(t)||nv(t)||Gg(t)||Xg(t)&&t.every(e))},ev=function(e){return e&&Gg(e.take)&&Gg(e.close)},tv=function(e){return Gg(e)&&e.hasOwnProperty("toString")},nv=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},rv=function(e){return ev(e)&&e[Lg]};var ov=function(e){return function(){return e}},av=ov(!0),iv=function(){};var cv=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var sv=function(e,t){zg(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function uv(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function lv(e){var t=!1;return function(){t||(t=!0,e())}}var dv=function(e){throw e},pv=function(e){return{value:e,done:!0}};function fv(e,t,n){void 0===t&&(t=dv),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:pv,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function hv(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var mv=function(e){return Array.apply(null,new Array(e))},gv=function(e){return function(t){return e(Object.defineProperty(t,Zg,{value:!0}))}},vv=function(e){return e===Wg},yv=function(e){return e===Ug},bv=function(e){return vv(e)||yv(e)};function wv(e,t){var n=Object.keys(e),r=n.length;var o,a=0,i=Xg(e)?mv(r):{},c={};return n.forEach((function(e){var n=function(n,c){o||(c||bv(n)?(t.cancel(),t(n,c)):(i[e]=n,++a===r&&(o=!0,t(i))))};n.cancel=iv,c[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return c[e].cancel()})))},c}function xv(e){return{name:e.name||"anonymous",location:Ov(e)}}function Ov(e){return e[Vg]}var kv={isEmpty:av,put:iv,take:iv};function Sv(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,a=0,i=function(t){n[o]=t,o=(o+1)%e,r++},c=function(){if(0!=r){var t=n[a];return n[a]=null,r--,a=(a+1)%e,t}},s=function(){for(var e=[];r;)e.push(c());return e};return{isEmpty:function(){return 0==r},put:function(c){var u;if(r<e)i(c);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=c,a=o=(o+1)%e;break;case 4:u=2*e,n=s(),r=n.length,o=n.length,a=0,n.length=u,e=u,i(c)}},take:c,flush:s}}var Pv=function(){return kv},_v=function(e){return Sv(e,4)},Ev="TAKE",Cv="PUT",Dv="ALL",jv="RACE",Tv="CALL",Av="CPS",Iv="FORK",Mv="JOIN",Nv="CANCEL",Rv="SELECT",Fv="ACTION_CHANNEL",Lv="CANCELLED",Zv="FLUSH",Hv="GET_CONTEXT",Bv="SET_CONTEXT",Uv=function(e,t){var n;return(n={})[Rg]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function Wv(e,t){return void 0===e&&(e="*"),Jg(e)?(qg(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),Uv(Ev,{pattern:e})):rv(e)&&qg(t)&&Jg(t)?Uv(Ev,{channel:e,pattern:t}):ev(e)?(qg(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),Uv(Ev,{channel:e})):void 0}function Vv(e,t){return Yg(t)&&(t=e,e=void 0),Uv(Cv,{channel:e,action:t})}function zv(e){var t=Uv(Dv,e);return t.combinator=!0,t}function Yv(e,t){var n,r=null;return Gg(e)?n=e:(Xg(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&Kg(n)&&Gg(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function qv(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 Uv(Tv,Yv(e,n))}function Gv(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 Uv(Iv,Yv(e,n))}function Kv(e){void 0===e&&(e=cv);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Uv(Rv,{selector:e,args:n})}var Xv=function(e){return{done:!0,value:e}},$v={};function Qv(e){return ev(e)?"channel":tv(e)?String(e):Gg(e)?e.name:String(e)}function Jv(e,t,n){var r,o,a,i=t;function c(t,n){if(i===$v)return Xv(t);if(n&&!o)throw i=$v,n;r&&r(t);var c=n?e[o](n):e[i]();return i=c.nextState,a=c.effect,r=c.stateUpdater,o=c.errorState,i===$v?Xv(t):a}return fv(c,(function(e){return c(null,e)}),n)}function ey(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a,i={done:!1,value:Wv(e)},c=function(e){return a=e};return Jv({q1:function(){return{nextState:"q2",effect:i,stateUpdater:c}},q2:function(){return{nextState:"q1",effect:(e=a,{done:!1,value:Gv.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+Qv(e)+", "+t.name+")")}function ty(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a,i,c={done:!1,value:Wv(e)},s=function(e){return{done:!1,value:Gv.apply(void 0,[t].concat(r,[e]))}},u=function(e){return{done:!1,value:(t=e,void 0===t&&(t=Hg),Uv(Nv,t))};var t},l=function(e){return a=e},d=function(e){return i=e};return Jv({q1:function(){return{nextState:"q2",effect:c,stateUpdater:d}},q2:function(){return a?{nextState:"q3",effect:u(a)}:{nextState:"q1",effect:s(i),stateUpdater:l}},q3:function(){return{nextState:"q1",effect:s(i),stateUpdater:l}}},"q1","takeLatest("+Qv(e)+", "+t.name+")")}function ny(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 Gv.apply(void 0,[ey,e,t].concat(r))}function ry(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 Gv.apply(void 0,[ty,e,t].concat(r))}var oy=function(e,t,n){return a().mark((function r(){var o,i,c,s=arguments;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(o=s.length,i=new Array(o),c=0;c<o;c++)i[c]=s[c];case 1:return r.prev=2,r.next=5,qv.apply(void 0,[e,t].concat(i));case 5:r.next=16;break;case 7:if(r.prev=7,r.t0=r.catch(2),!1!==Tg.signal.aborted){r.next=16;break}if(!n){r.next=15;break}return r.next=13,Vv(n("client.common.unexpectedError","client.common.unexpectedError",r.t0));case 13:r.next=16;break;case 15:d.Z.logError("error",r.t0);case 16:r.next=1;break;case 18:case"end":return r.stop()}}),r,null,[[2,7]])}))};const ay={autoRestartSaga:oy,createGenerator:function(e){return a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,zv(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(oy(t,null,n)))},abortController:Tg,deactivatePreventFromLeaving:function(){Ag=!1},activatePreventFromLeaving:function(){Ag=!0}};O().node,O().bool,O().string,O().bool,O().objectOf(O().arrayOf(O().oneOfType([O().node,O().string]))),O().bool,O().bool,O().string,O().string,O().oneOf(["inside","outside-responsive","outside"]),O().bool,O().string,O().bool,O().string,O().bool;var iy,cy,sy,uy,ly=(iy={},(0,I.Z)(iy,C.co.condition.BASE,"inherit"),(0,I.Z)(iy,C.co.condition.DANGER,C.FS.color("signal.danger")),(0,I.Z)(iy,C.co.condition.SUCCESS,C.FS.color("signal.success")),(0,I.Z)(iy,C.co.condition.WARNING,C.FS.color("signal.warning")),(0,I.Z)(iy,C.co.condition.INFO,C.FS.color("signal.info")),iy),dy=(0,E.ZP)(Dt.hc).withConfig({displayName:"StyledSignalList"})(cy||(cy=(0,P.Z)(["\n && {\n list-style-type: none;\n }\n"]))),py=E.ZP.span.withConfig({displayName:"StyledSignalListIcon"})(sy||(sy=(0,P.Z)(["\n position: absolute;\n left: -1.6rem;\n text-align: left;\n"]))),fy=(0,E.ZP)(Dt.EF).withConfig({displayName:"StyledSignalListItem"})(uy||(uy=(0,P.Z)(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){return ly[e.condition]||"inherit"}(e)}));const hy=function(e){return(0,R.jsx)(dy,{as:"ul",children:S().Children.map(e.children,(function(e){return S().cloneElement(e)}))})};var my,gy,vy=(my={},(0,I.Z)(my,C.co.condition.BASE,!1),(0,I.Z)(my,C.co.condition.DANGER,"times"),(0,I.Z)(my,C.co.condition.SUCCESS,"check"),(0,I.Z)(my,C.co.condition.WARNING,"exclamation-triangle"),(0,I.Z)(my,C.co.condition.INFO,"info"),my),yy=function(e){var t=vy[e.condition];return t?(0,R.jsx)(N.Z,{icon:t,position:C.co.position.SOLE}):gy||(gy=(0,R.jsx)("i",{children:"•"}))},by=function(e){return(0,R.jsxs)(fy,{condition:e.condition,children:[(0,R.jsx)(py,{children:yy(e)}),e.label,S().Children.map(e.children,(function(e){return S().cloneElement(e)}))]})};by.defaultProps={condition:C.co.condition.BASE};const wy={List:hy,Item:by};const xy=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,(0,ve.Z)(e.error[n]))})),(0,R.jsx)(wy.List,{children:t.map((function(e,t){return(0,R.jsx)(wy.Item,{condition:"danger",label:e},t)}))})};var Oy,ky,Sy,Py,_y,Ey,Cy,Dy,jy,Ty,Ay,Iy,My,Ny,Ry="1.1px",Fy=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"not-allowed":"auto",";")},Ly=E.ZP.label.withConfig({displayName:"StyledStatedValueLabel"})(Oy||(Oy=(0,P.Z)(["\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,C.wy)({lineHeight:C.FS.lineHeight("dense")}),C.FS.color("paper"),(function(e){return Fy(e)}),(function(e){return"outside"===e.labelPosition&&(0,E.iv)(ky||(ky=(0,P.Z)(["\n margin-bottom: ",";\n display: block;\n width: auto;\n "])),C.bA.space(-1.5))}),(function(e){return"inside"===e.labelPosition&&(0,E.iv)(Sy||(Sy=(0,P.Z)(["\n flex-basis: unset;\n position: absolute;\n top: 0;\n z-index: 1;\n display: inline-block;\n padding: 0 "," 0 ","; // if immutable remove left padding\n width: fit-content;\n left: ",";\n "])),C.bA.space(-2),(function(e){return e.immutable&&"0"}),(function(e){return e.immutable?"0":C.bA.space(-1.8)}))}),(function(e){return e.styles})),Zy=E.ZP.div.withConfig({displayName:"StyledInputArea"})(Py||(Py=(0,P.Z)(["\n width: 60%;\n flex-grow: 1;\n ","\n"])),(function(e){return"outside"===e.labelPosition&&(0,E.iv)(_y||(_y=(0,P.Z)(["\n width: auto;\n "])))})),Hy=E.ZP.div.withConfig({displayName:"StyledStatedValueBox"})(Ey||(Ey=(0,P.Z)(["\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 ","\n ","\n\n > "," {\n display: inline-block;\n\n p:first-of-type {\n margin-top: 0;\n }\n }\n ","\n ","\n }\n"])),Ry,(function(e){return C.mT[function(e){var t=e.immutable,n=e.isDisplay,r=e.signal;return e.isDirty?"isDirty":n||t?"transparent":r?"signal":"base"}(e)](e)}),C.FS.radii("form"),C.bA.space(-2.5),C.bA.space(-1.5),(function(e){return!e.immutable&&(0,C.kk)(e)}),(function(e){return Fy(e)}),Qu,(function(e){return"inside"===e.labelPosition&&(0,E.iv)(Cy||(Cy=(0,P.Z)(["\n padding: "," "," "," ",";\n "])),C.bA.space(-1),C.bA.space(-1.7),C.bA.space(-2),C.bA.space(-1))}),(function(e){return e.styles})),By=E.ZP.p.withConfig({displayName:"StyledStatedValueDescription"})(Dy||(Dy=(0,P.Z)(["\n &&& {\n ","\n }\n"])),(0,C.wy)({fontSize:C.bA.font(-1)})),Uy=E.ZP.div.withConfig({displayName:"StyledStatedValueError"})(jy||(jy=(0,P.Z)([""]))),Wy=E.ZP.div.withConfig({displayName:"StyledStatedValueOuterWrapper"})(Ty||(Ty=(0,P.Z)(["\n &:not(:last-child) {\n margin-bottom: ",";\n }\n ","\n"])),C.bA.space(-.7),(function(e){return"inside"===e.labelPosition&&(0,E.iv)(Ay||(Ay=(0,P.Z)(["\n padding-top: ",";\n margin-bottom: 0.65rem;\n position: relative;\n "])),C.bA.space(-1.5))})),Vy=E.ZP.div.withConfig({displayName:"StyledStatedValueInnerWrapper"})(Iy||(Iy=(0,P.Z)(["\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"])),C.bA.space(-1.5),Hy,By,Uy,C.bA.space(-2),By,C.bA.space(-1),Ry,(function(e){return"outside"===e.labelPosition&&(0,E.iv)(My||(My=(0,P.Z)(["\n display: block;\n "])))}),(function(e){return"inside"===e.labelPosition&&(0,E.iv)(Ny||(Ny=(0,P.Z)(["\n padding-top: 0;\n "])))}),(function(e){return e.styles}));function zy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zy(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const qy=function(e){var t,n,r,o=e.children,a=e.description,i=e.dirty,c=e.isDisplay,s=e.error,u=e.hasValue,l=e.id,d=e.label,p=e.mandatory,f=e.mandatoryTitle,h=e.immutable,m=e.touched,g=e.signal,v=e.labelPosition,y=e.styles,b=!h&&m&&s&&Object.keys(s).length>0,w=p&&f?", ".concat(f):"",x="".concat(bl(d)).concat(w),O=g||function(e,t,n,r){return t?C.co.condition.DANGER:e?C.co.condition.INFO:n&&!r?C.co.condition.WARNING:void 0}(i,b,p,u),k={__html:"".concat(Ct.sanitizeHtml(d)).concat(p?" *":"")},S=!c&&!h&&{htmlFor:l};return(0,R.jsx)(yn,{children:function(e){var l=e.getRef;return(0,R.jsx)(Wy,{labelPosition:v,children:(0,R.jsxs)(Vy,{labelPosition:v,ref:l,label:d,styles:null==y?void 0:y.innerWrapperStyles,children:[d&&(0,R.jsx)(Ly,Yy(Yy({},S),{},{hasValue:u,dirty:i,title:x,immutable:h,isDisplay:c,signal:O,labelPosition:v,styles:null==y?void 0:y.labelStyles,children:t||(t=(0,R.jsx)("span",{dangerouslySetInnerHTML:k}))})),(0,R.jsxs)(Zy,{labelPosition:v,children:[(0,R.jsx)(Hy,{hasValue:u,immutable:h,isDisplay:c,signal:O,labelPosition:v,styles:null==y?void 0:y.valueStyles,children:o}),b&&(n||(n=(0,R.jsx)(Uy,{children:(0,R.jsx)(xy,{error:s})}))),a&&(r||(r=(0,R.jsx)(By,{children:a})))]})]})})}})};var Gy,Ky,Xy,$y=function(e){return(0,E.iv)(Gy||(Gy=(0,P.Z)(["\n color: ",";\n font-weight: ",";\n"])),C.v5[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?C.FS.fontWeight("bold"):C.FS.fontWeight("regular")}))},Qy=function(){return(0,E.iv)(Ky||(Ky=(0,P.Z)(["\n padding-top: ",";\n padding-left: ",";\n"])),(function(e){var t=e.isDisplay,n=e.immutable;if(t&&n)return(0,E.iv)(Xy||(Xy=(0,P.Z)(["\n ","\n "])),C.bA.space(-2.5))}),(function(e){return e.immutable&&0}))},Jy=["labelPosition"];function eb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 tb=function(e){var t=e.labelPosition,n=(0,M.Z)(e,Jy);return(0,R.jsx)(qy,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eb(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{labelStyles:$y,valueStyles:Qy},labelPosition:t||"outside-responsive"},n))};var nb,rb,ob,ab,ib,cb,sb=function(e){return e.signal?"signal":"shade2"},ub=function(){return(0,E.iv)(nb||(nb=(0,P.Z)(["\n align-items: flex-start;\n"])))},lb=function(e){return(0,E.iv)(rb||(rb=(0,P.Z)(["\n padding-top: ",";\n color: ",";\n"])),(function(e){var t=e.immutable;return"inside"===e.labelPosition?0:t?(0,E.iv)(ob||(ob=(0,P.Z)(["\n ","\n "])),C.bA.space(-1.8)):(0,E.iv)(ab||(ab=(0,P.Z)(["\n ","\n "])),C.bA.space(.1))}),C.v5[sb(e)](e))},db=function(){return(0,E.iv)(ib||(ib=(0,P.Z)(["\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,E.iv)(cb||(cb=(0,P.Z)(["\n ","\n "])),C.bA.space(-1)):void 0}),(function(e){return e.immutable&&0}))},pb=["labelPosition"];function fb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 hb=function(e){var t=e.labelPosition,n=(0,M.Z)(e,pb);return(0,R.jsx)(qy,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fb(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{innerWrapperStyles:ub,labelStyles:lb,valueStyles:db},labelPosition:t||"outside-responsive"},n))};var mb,gb=(mb={},(0,I.Z)(mb,bh.Z.EmbedType.admin,tb),(0,I.Z)(mb,bh.Z.EmbedType.widget,hb),mb);const vb=bh.Z.embedStrategyFactory({mapping:gb});var yb,bb,wb,xb,Ob=E.ZP.span.withConfig({displayName:"StyledSearchIconWrapper"})(yb||(yb=(0,P.Z)(["\n margin-right: ",";\n"])),C.bA.space(-.8)),kb=E.ZP.div.withConfig({displayName:"StyledSearchBox"})(bb||(bb=(0,P.Z)(["\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"]))),Sb=E.ZP.input.attrs((function(e){return{type:"search",placeholder:e.placeholder}})).withConfig({displayName:"StyledSearchBoxInput"})(wb||(wb=(0,P.Z)(["\n &&&& {\n ","\n }\n"])),jn),Pb=S().forwardRef((function(e,t){var n=e.value,r=e.minInputLength,o=e.onSearch,a=e.placeholder,i=(0,k.useState)(n||""),c=(0,B.Z)(i,2),s=c[0],u=c[1];return(0,R.jsx)(kb,{children:(0,R.jsx)(vb,{hasValue:Boolean(s),labelPosition:"inside",children:(0,R.jsxs)(Dn,{children:[xb||(xb=(0,R.jsx)(Ob,{children:(0,R.jsx)(N.Z,{icon:"search"})})),(0,R.jsx)(Sb,{"data-cy":"input-search-box",ref:t,onChange:function(e){var t=e.target.value;u(t),(0===t.length||t.length>=r)&&o(t)},value:s,"aria-label":a,placeholder:a}),(null==s?void 0:s.length)>0&&(0,R.jsx)(pe,{"data-cy":"btn-reset",icon:"times",onClick:function(){u(""),o("")}})]})})})}));Pb.defaultProps={debounce:200,minInputLength:3};const _b=od.Debouncer(Pb,100,"onSearch");var Eb,Cb,Db=[C.co.condition.INFO,C.co.condition.DANGER,C.co.condition.SUCCESS,C.co.condition.WARNING],jb=(Eb={},(0,I.Z)(Eb,C.co.condition.DANGER,C.FS.color("signal.danger")),(0,I.Z)(Eb,C.co.condition.SUCCESS,C.FS.color("signal.success")),(0,I.Z)(Eb,C.co.condition.WARNING,C.FS.color("signal.warning")),(0,I.Z)(Eb,C.co.condition.INFO,C.FS.color("signal.info")),Eb),Tb=E.ZP.div.withConfig({displayName:"StyledSignalBox"})(Cb||(Cb=(0,P.Z)(["\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 jb[e.condition]||jb[C.co.condition.INFO]}(e)}),C.bA.space(-1),C.bA.space(-1),C.FS.color("paper"));Tb.propTypes={condition:C.co.oneOfPropTypeAndCompletelyMapped(Db,jb)};var Ab=function(e){var t=e.condition,n=e.title,r=e.children,o=e.meta;return(0,R.jsxs)(Tb,{condition:t,children:[n&&(0,R.jsx)(Dt.ZP.H5,{children:n}),S().Children.map(r,(function(e){return S().cloneElement(e)})),o&&(0,R.jsx)(Dt.ZP.Small,{children:o})]})};Ab.defaultProps={condition:C.co.condition.BASE};var Ib=function(e){return(0,R.jsxs)(Dt.ZP.Span,{children:[e.some," / ",e.of]})};Ib.defaultProps={some:0};function Mb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mb(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Rb={currentlyDragging:null,currentlyDragOver:null,dropPosition:null,offset:null},Fb={Top:"Top",Bottom:"Bottom"};const Lb=function(e){var t=(0,k.useState)(Rb),n=(0,B.Z)(t,2),r=n[0],o=n[1],a=r.currentlyDragging,i=r.currentlyDragOver,c=r.dropPosition,s=r.offset;return{dndEvents:(0,k.useCallback)((function(t){return{onDragStart:function(e){o((function(e){return Nb(Nb({},e),{},{currentlyDragging:t})}));var n=e.target;n&&n.addEventListener("dragend",(function e(t){o(Rb),t.stopPropagation(),n&&n.removeEventListener("dragend",e)}),!1),e.stopPropagation()},onDragEnter:function(e){if(a&&!fl()(i,t)){var n=e.target?e.target.getBoundingClientRect():{},r=n.y+n.height/2;o((function(e){return Nb(Nb({},e),{},{currentlyDragOver:t,offset:r})}))}e.stopPropagation()},onDragOver:function(e){if(a){var t=e.clientY-s>0?Fb.Bottom:Fb.Top;return o((function(e){return Nb(Nb({},e),{},{dropPosition:t})})),e.preventDefault(),e.stopPropagation(),!0}},onDrop:function(t){a&&i&&(e(a,i,c),o(Rb),t.stopPropagation())}}}),[i,a,c,s,e]),dndState:(0,k.useMemo)((function(){return{currentlyDragOver:i,currentlyDragging:a,dropPosition:c,offset:s}}),[i,a,c,s])}};var Zb,Hb,Bb,Ub,Wb,Vb,zb,Yb=E.ZP.div.withConfig({displayName:"StyledColumnPickerWrapper"})(Zb||(Zb=(0,P.Z)([""]))),qb=E.ZP.div.withConfig({displayName:"StyledControlsWrapper"})(Hb||(Hb=(0,P.Z)(["\n margin-top: ",";\n"])),C.bA.space(.7)),Gb=E.ZP.ul.withConfig({displayName:"StyledUl"})(Bb||(Bb=(0,P.Z)(["\n list-style-type: none;\n margin-top: "," !important; // Nice2 Reset\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"])),C.bA.space(-.5),Dt.ar),Kb=E.ZP.input.withConfig({displayName:"StyledCheckbox"})(Ub||(Ub=(0,P.Z)(["\n vertical-align: top;\n margin-right: "," !important; // Nice2 Reset\n\n &:hover {\n cursor: pointer;\n }\n"])),C.bA.space(-1)),Xb=E.ZP.span.withConfig({displayName:"StyledId"})(Wb||(Wb=(0,P.Z)(["\n color: ",";\n font-style: italic;\n"])),C.FS.color("text")),$b=(0,E.ZP)(Dt.EF).withConfig({displayName:"StyledItem"})(Vb||(Vb=(0,P.Z)(["\n display: flex;\n padding: "," "," "," 0;\n border-right: ",";\n ","\n"])),C.bA.space(-2),C.bA.space(-2),C.bA.space(-2),(function(e){var t=e.isDraggedOver,n=e.theme;return t?"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 ")})),Qb=E.ZP.span.withConfig({displayName:"StyledNumber"})(zb||(zb=(0,P.Z)(["\n display: inline-block;\n margin-right: ",";\n color: ",";\n font-size: ",";\n"])),C.bA.space(-1),C.FS.color("text"),C.bA.font(0));function Jb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ew(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jb(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hidden";return e.sort((function(e,n){return e[t]-n[t]}))},nw=function(e,t){return e.filter((function(e){return null===t||e.label.match(new RegExp(t,"i"))}))};const rw=function(e){var t=e.dndEnabled,n=e.columns,r=void 0===n?[]:n,o=e.onColumnsChange,a=e.intl,i=tw(r),c=(0,k.useState)(null),s=(0,B.Z)(c,2),u=s[0],l=s[1],d=(0,k.useCallback)((function(e,t){if(e!==t){var n=i.find((function(t){return t.id===e}));o((function(e){return e.filter((function(e){return e!==n})).reduce((function(e,r){return[].concat((0,ve.Z)(e),[r],(0,ve.Z)(r.id===t?[n]:[]))}),[])}))}}),[i,o]),p=Lb(d),f=p.dndEvents,h=p.dndState,m=(0,k.useMemo)((function(){return nw(i,u)}),[i,u]),g=m.some((function(e){return e.hidden})),v=(0,k.useMemo)((function(){return m.map((function(e,n){var r=h.currentlyDragOver===e.id&&h.currentlyDragging!==e.id;return(0,R.jsxs)($b,ew(ew({draggable:t,isDraggedOver:r},t&&ew({},f(e.id))),{},{children:[(0,R.jsx)(Kb,{type:"checkbox",id:e.id,checked:!e.hidden,onChange:function(t){o((function(n){return tw(n.map((function(n){return n.id===e.id?ew(ew({},n),{},{hidden:!t.target.checked}):n})))}))}}),(0,R.jsxs)(Dt.ZP.Label,{for:e.id,children:[(0,R.jsxs)(Qb,{children:[n+1,"."]}),e.label?(0,R.jsx)("span",{dangerouslySetInnerHTML:{__html:Ct.sanitizeHtml(e.label)}}):(0,R.jsx)(Xb,{children:e.id})]})]}),e.id)}))}),[h,t,f,m,o]);return(0,R.jsxs)(Yb,{children:[(0,R.jsx)(_b,{placeholder:a.formatMessage({id:"client.entity-list.preferences.columns.search"}),onSearch:l}),(0,R.jsxs)(qb,{children:[(0,R.jsx)(Kb,{type:"checkbox",onChange:function(e){var t=e.target.checked;o((function(e){var n=nw(e,u);return tw((0,ve.Z)(e.map((function(e){return ew(ew({},e),{},{hidden:n.includes(e)?!t:e.hidden})}))))}))},checked:!g}),(0,R.jsx)(Dt.ZP.Span,{children:a.formatMessage({id:"client.entity-list.preferences.columns.selectDeselectAllCheckbox"})})]}),(0,R.jsx)(Gb,{children:v})]})};(0,h.injectIntl)(rw);var ow,aw,iw,cw;E.ZP.div.withConfig({displayName:"StyledIconWrapper"})(ow||(ow=(0,P.Z)(["\n font-size: ",";\n"])),C.bA.font(-2.7)),E.ZP.div.withConfig({displayName:"StyledRange"})(aw||(aw=(0,P.Z)(["\n display: flex;\n align-items: baseline;\n"]))),E.ZP.div.withConfig({displayName:"StyledInput"})(iw||(iw=(0,P.Z)(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"]))),(0,E.ZP)(pe).withConfig({displayName:"StyledBall"})(cw||(cw=(0,P.Z)(["\n position: relative;\n top: 0.5px; // offset false vertical alignment\n"])));var sw,uw,lw,dw,pw,fw=E.ZP.div.withConfig({displayName:"StyledBurgerButton"})(sw||(sw=(0,P.Z)(["\n width: 24px;\n height: 24px;\n position: absolute;\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"])),C.rS.color("paper"),(function(e){return e.isOpen&&(0,E.iv)(uw||(uw=(0,P.Z)(["\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,h.injectIntl)((function(e){var t,n=e.isOpen,r=e.intl;return(0,R.jsxs)(fw,{isOpen:n,"aria-label":(t="client.component.burgerButton.Label",r.formatMessage({id:t})),children:[lw||(lw=(0,R.jsx)("span",{})),dw||(dw=(0,R.jsx)("span",{})),pw||(pw=(0,R.jsx)("span",{}))]})}));var hw,mw,gw=E.ZP.div.withConfig({displayName:"StyledPagination"})(hw||(hw=(0,P.Z)(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-wrap: wrap;\n gap: ",";\n margin-left: ",";\n"])),C.bA.space(-1),C.bA.space(-1.4)),vw=(0,E.ZP)(oe).withConfig({displayName:"StyledPaginationButton"})(mw||(mw=(0,P.Z)(["\n padding: "," ",";\n"])),C.bA.space(-2),C.bA.space(-.5));const yw=(0,h.injectIntl)((function(e){var t=e.totalCount,n=e.recordsPerPage,r=e.currentPage,o=e.onPageChange,a=e.intl,i=e.tableEl,c=e.children,s=Math.ceil(t/n),u=Math.min((r-1)*n+1,t),l=Math.min(r*n,t),d=function(e){return a.formatMessage({id:e})},p=function(e){o(e),i.current.scrollTop=0};return(0,R.jsxs)(gw,{children:[(0,R.jsxs)(cn,{children:[(0,R.jsx)(vw,{disabled:1===r,label:d("client.component.pagination.firstPageTitle"),iconOnly:!0,icon:"chevron-double-left",onClick:function(){return p(1)}}),(0,R.jsx)(vw,{disabled:1===r,label:d("client.component.pagination.prePageTitle"),iconOnly:!0,icon:"chevron-left",onClick:function(){return p(r-1)}}),(0,R.jsx)(vw,{disabled:r>=s,label:d("client.component.pagination.nextPageTitle"),iconOnly:!0,icon:"chevron-right",onClick:function(){return p(r+1)}}),(0,R.jsx)(vw,{disabled:r>=s,label:d("client.component.pagination.lastPageTitle"),iconOnly:!0,icon:"chevron-double-right",onClick:function(){return p(s)}})]}),t>0&&(0,R.jsx)(Dt.ZP.Span,{children:(0,R.jsx)(h.FormattedMessage,{id:"client.component.pagination.text",values:{start:u,to:l,total:t}})}),c]})})),bw=yw;var ww;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 i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const c=this.addEccAndInterleave(r);if(this.drawCodewords(c),-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)}}a(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,i=40,s=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=i&&i<=t.MAX_VERSION)||s<-1||s>7)throw new RangeError("Invalid value");let l,d;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=c.getTotalBits(e,l);if(o<=r){d=o;break}if(l>=i)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 p=[];for(const t of e){r(t.mode.modeBits,4,p),r(t.numChars,t.mode.numCharCountBits(l),p);for(const e of t.getData())p.push(e)}a(p.length==d);const f=8*t.getNumDataCodewords(l,n);a(p.length<=f),r(0,Math.min(4,f-p.length),p),r(0,(8-p.length%8)%8,p),a(p.length%8==0);for(let e=236;p.length<f;e^=253)r(e,8,p);let h=[];for(;8*h.length<p.length;)h.push(0);return p.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,n,h,s)}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);a(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;a(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(r,a,n),this.setFunctionModule(a,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)),a=e+r,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],c=Math.floor(t.getNumRawDataModules(n)/8),s=o-c%o,u=Math.floor(c/o);let l=[];const d=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-i+(n<s?0:1));r+=o.length;const a=t.reedSolomonComputeRemainder(o,d);n<s&&o.push(0),l.push(o.concat(a))}let p=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-i||n>=s)&&p.push(t[e])}));return a(p.length==c),p}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 a=0;a<2;a++){const i=t-a,c=0==(t+1&2)?this.size-1-r:r;!this.isFunction[c][i]&&n<8*e.length&&(this.modules[c][i]=o(e[n>>>3],7-(7&n)),n++)}}a(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][i],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[i][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return a(0<=o&&o<=9),e+=o*t.PENALTY_N4,a(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 a(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 a(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];a(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 a(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 i=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 i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.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 i(i.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!i.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*i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new i(i.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:i.isNumeric(e)?[i.makeNumeric(e)]:i.isAlphanumeric(e)?[i.makeAlphanumeric(e)]:[i.makeBytes(i.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 i(i.Mode.ECI,0,t)}static isNumeric(e){return i.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return i.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 c=i;c.NUMERIC_REGEX=/^[0-9]*$/,c.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,c.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=c})(ww||(ww={})),(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={}))})(ww||(ww={})),(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={}))})(ww||(ww={}));var xw=ww;
|
|
57
|
+
*/var r=n(1024),o=n(61688);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,c=r.useRef,s=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=c(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=u((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return c=t}return c=e}if(t=c,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,c=n)}var i,c,s=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var f=i(e,d[0],d[1]);return s((function(){p.hasValue=!0,p.value=f}),[f]),l(f),f}},61688:(e,t,n)=>{"use strict";e.exports=n(53250)},52798:(e,t,n)=>{"use strict";e.exports=n(50139)},77017:(e,t,n)=>{"use strict";let r;n.d(t,{v4:()=>w});const o=new Uint8Array(16);function a(){if(!r&&(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}const i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const c=function(e){return"string"==typeof e&&i.test(e)},s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));function u(e,t=0){return s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]}const l=function(e){if(!c(e))throw TypeError("Invalid UUID");let t;const 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};function d(e,t,n){function r(e,r,o,a){var i;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=l(r)),16!==(null===(i=r)||void 0===i?void 0:i.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(r),c.set(e,r.length),c=n(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,o){a=a||0;for(let e=0;e<16;++e)o[a+e]=c[e];return o}return u(c)}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 f(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function h(e,t,n,r,o,a){return f((i=f(f(t,e),f(r,a)))<<(c=o)|i>>>32-c,n);var i,c}function m(e,t,n,r,o,a,i){return h(t&n|~t&r,e,t,o,a,i)}function g(e,t,n,r,o,a,i){return h(t&r|n&~r,e,t,o,a,i)}function v(e,t,n,r,o,a,i){return h(t^n^r,e,t,o,a,i)}function y(e,t,n,r,o,a,i){return h(n^(t|~r),e,t,o,a,i)}d("v3",48,(function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length,r="0123456789abcdef";for(let o=0;o<n;o+=8){const n=e[o>>5]>>>o%32&255,a=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[p(t)-1]=t;let n=1732584193,r=-271733879,o=-1732584194,a=271733878;for(let t=0;t<e.length;t+=16){const i=n,c=r,s=o,u=a;n=m(n,r,o,a,e[t],7,-680876936),a=m(a,n,r,o,e[t+1],12,-389564586),o=m(o,a,n,r,e[t+2],17,606105819),r=m(r,o,a,n,e[t+3],22,-1044525330),n=m(n,r,o,a,e[t+4],7,-176418897),a=m(a,n,r,o,e[t+5],12,1200080426),o=m(o,a,n,r,e[t+6],17,-1473231341),r=m(r,o,a,n,e[t+7],22,-45705983),n=m(n,r,o,a,e[t+8],7,1770035416),a=m(a,n,r,o,e[t+9],12,-1958414417),o=m(o,a,n,r,e[t+10],17,-42063),r=m(r,o,a,n,e[t+11],22,-1990404162),n=m(n,r,o,a,e[t+12],7,1804603682),a=m(a,n,r,o,e[t+13],12,-40341101),o=m(o,a,n,r,e[t+14],17,-1502002290),r=m(r,o,a,n,e[t+15],22,1236535329),n=g(n,r,o,a,e[t+1],5,-165796510),a=g(a,n,r,o,e[t+6],9,-1069501632),o=g(o,a,n,r,e[t+11],14,643717713),r=g(r,o,a,n,e[t],20,-373897302),n=g(n,r,o,a,e[t+5],5,-701558691),a=g(a,n,r,o,e[t+10],9,38016083),o=g(o,a,n,r,e[t+15],14,-660478335),r=g(r,o,a,n,e[t+4],20,-405537848),n=g(n,r,o,a,e[t+9],5,568446438),a=g(a,n,r,o,e[t+14],9,-1019803690),o=g(o,a,n,r,e[t+3],14,-187363961),r=g(r,o,a,n,e[t+8],20,1163531501),n=g(n,r,o,a,e[t+13],5,-1444681467),a=g(a,n,r,o,e[t+2],9,-51403784),o=g(o,a,n,r,e[t+7],14,1735328473),r=g(r,o,a,n,e[t+12],20,-1926607734),n=v(n,r,o,a,e[t+5],4,-378558),a=v(a,n,r,o,e[t+8],11,-2022574463),o=v(o,a,n,r,e[t+11],16,1839030562),r=v(r,o,a,n,e[t+14],23,-35309556),n=v(n,r,o,a,e[t+1],4,-1530992060),a=v(a,n,r,o,e[t+4],11,1272893353),o=v(o,a,n,r,e[t+7],16,-155497632),r=v(r,o,a,n,e[t+10],23,-1094730640),n=v(n,r,o,a,e[t+13],4,681279174),a=v(a,n,r,o,e[t],11,-358537222),o=v(o,a,n,r,e[t+3],16,-722521979),r=v(r,o,a,n,e[t+6],23,76029189),n=v(n,r,o,a,e[t+9],4,-640364487),a=v(a,n,r,o,e[t+12],11,-421815835),o=v(o,a,n,r,e[t+15],16,530742520),r=v(r,o,a,n,e[t+2],23,-995338651),n=y(n,r,o,a,e[t],6,-198630844),a=y(a,n,r,o,e[t+7],10,1126891415),o=y(o,a,n,r,e[t+14],15,-1416354905),r=y(r,o,a,n,e[t+5],21,-57434055),n=y(n,r,o,a,e[t+12],6,1700485571),a=y(a,n,r,o,e[t+3],10,-1894986606),o=y(o,a,n,r,e[t+10],15,-1051523),r=y(r,o,a,n,e[t+1],21,-2054922799),n=y(n,r,o,a,e[t+8],6,1873313359),a=y(a,n,r,o,e[t+15],10,-30611744),o=y(o,a,n,r,e[t+6],15,-1560198380),r=y(r,o,a,n,e[t+13],21,1309151649),n=y(n,r,o,a,e[t+4],6,-145523070),a=y(a,n,r,o,e[t+11],10,-1120210379),o=y(o,a,n,r,e[t+2],15,718787259),r=y(r,o,a,n,e[t+9],21,-343485551),n=f(n,i),r=f(r,c),o=f(o,s),a=f(a,u)}return[n,r,o,a]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(p(t));for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}));const b={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};const w=function(e,t,n){if(b.randomUUID&&!t&&!e)return b.randomUUID();const r=(e=e||{}).random||(e.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return u(r)};function x(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 O(e,t){return e<<t|e>>>32-t}d("v5",80,(function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const r=e.length/4+2,o=Math.ceil(r/16),a=new Array(o);for(let t=0;t<o;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];a[t]=n}a[o-1][14]=8*(e.length-1)/Math.pow(2,32),a[o-1][14]=Math.floor(a[o-1][14]),a[o-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<o;++e){const r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=a[e][t];for(let e=16;e<80;++e)r[e]=O(r[e-3]^r[e-8]^r[e-14]^r[e-16],1);let o=n[0],i=n[1],c=n[2],s=n[3],u=n[4];for(let e=0;e<80;++e){const n=Math.floor(e/20),a=O(o,5)+x(n,i,c,s)+u+t[n]+r[e]>>>0;u=s,s=c,c=O(i,30)>>>0,i=o,o=a}n[0]=n[0]+o>>>0,n[1]=n[1]+i>>>0,n[2]=n[2]+c>>>0,n[3]=n[3]+s>>>0,n[4]=n[4]+u>>>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]]}))},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},17061:(e,t,n)=>{var r=n(18698).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,a=Object.create(o.prototype),c=new C(r||[]);return i(a,"_invoke",{value:S(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h={};function m(){}function g(){}function v(){}var y={};d(y,s,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(D([])));w&&w!==n&&a.call(w,s)&&(y=w);var x=v.prototype=m.prototype=Object.create(y);function O(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(o,i,c,s){var u=f(e[o],e,i);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,c,s)}),(function(e){n("throw",e,c,s)})):t.resolve(d).then((function(e){l.value=e,c(l)}),(function(e){return n("throw",e,c,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(a,a):a()}})}function S(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return j()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var c=P(i,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function P(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,P(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function D(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(a.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:j}}function j(){return{value:void 0,done:!0}}return g.prototype=v,i(x,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:g,configurable:!0}),g.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},O(k.prototype),d(k.prototype,u,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new k(p(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},O(x),d(x,l,"Generator"),d(x,s,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=D,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:D(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},18698:e=>{function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},64687:(e,t,n)=>{var r=n(17061)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},71298: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},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},30907:(e,t,n)=>{"use strict";function r(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}n.d(t,{Z:()=>r})},83878:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:()=>r})},15671:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},43144:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(49142);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.Z)(o.key),o)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},4942:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(49142);function o(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},61120:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:()=>r})},60136:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(89611);function o(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&&(0,r.Z)(e,t)}},59199:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:()=>r})},25267:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},44925:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},73930:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(71002);function o(e,t){if(t&&("object"===(0,r.Z)(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)}},89611:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})},29439:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(83878);var o=n(40181),a=n(25267);function i(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,c=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,t)||(0,o.Z)(e,t)||(0,a.Z)()}},30168:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:()=>r})},93433:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(30907);var o=n(59199),a=n(40181);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,a.Z)(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.")}()}},49142:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(71002);function o(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},71002:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}n.d(t,{Z:()=>r})},40181:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(30907);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(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)?(0,r.Z)(e,t):void 0}}},86:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}n.d(t,{Z:()=>r})}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",698:"phone-formatter",802:"html-editor",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"c6f9acd670fd0a493a7e",198:"e2ad8562eb1ead40e8f5",251:"4c90293f0bbcb53eddc5",557:"e62be44ebee708ef3843",608:"88db078639481255222d",614:"f6f7d2b42b4c82617e1b",698:"5bc9602e05ef67f46fff",802:"204229f5f0b8af056f53",877:"8b531a22f4b2530fb852"}[e]+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)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")==r+o){c=d;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var p=(t,r)=>{c.onerror=c.onload=null,clearTimeout(f);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=p.bind(null,c.onerror),c.onload=p.bind(null,c.onload),s&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.p="/",(()=>{var e={30:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(s)s(i)}for(t&&t(n);u<a.length;u++)o=a[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";function e(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function t(t){return function(){var n=this,r=arguments;return new Promise((function(o,a){var i=t.apply(n,r);function c(t){e(i,o,a,c,s,"next",t)}function s(t){e(i,o,a,c,s,"throw",t)}c(void 0)}))}}i.r(c),i.d(c,{app:()=>HN});var n,r,o=i(64687),a=i.n(o),s=i(93386),u=i.n(s),l=i(20745),d=i(44759),p="tocco-util/LOG_ERROR",f=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:p,payload:{title:e,description:t,error:n,dateTime:r}}},h=i(70340),m=i(75508),g=i(15671),v=i(43144),y=i(60136),b=i(73930),w=i(61120),x=i(45697),O=i.n(x),k=i(1024),S=i.n(k),P=i(30168),_=i(9481),E=i(67165),C=i(17995),D=(0,E.iv)(n||(n=(0,P.Z)(["\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,C.wy)(),C.rS.color("text"),C.rS.color("text"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}));(0,E.ZP)(_.OL)(r||(r=(0,P.Z)(["\n ",";\n"])),D);var j;const T=(0,E.ZP)(_.rU).withConfig({shouldForwardProp:function(e,t){return!["neutral"].includes(e)&&t(e)}})(j||(j=(0,P.Z)(["\n ","\n"])),D);var A,I=i(4942),M=i(44925),N=i(46395),R=i(85893);function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Z=(0,k.lazy)((function(){return i.e(251).then(i.bind(i,81251))}));const H=function(e){return(0,R.jsx)(k.Suspense,{fallback:A||(A=(0,R.jsx)(S().Fragment,{})),children:(0,R.jsx)(Z,L({},e))})};var B=i(29439);var U="hidden",W="responsive",V={labelVisibility:W},z=S().createContext(V);var Y,q,G,K,X,$,Q=(0,E.iv)(K||(K=(0,P.Z)(["\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"])),C.rS.radii("button"),C.bA.space(-1.38),C.bA.space(-2.1),C.bA.space(0),(0,C.wy)(),(function(e){return e.withoutBackground?(0,E.iv)(G||(G=(0,P.Z)(["\n background: transparent;\n"]))):(0,C.Hx)(e)}),(function(e){return function(e){var t=e.dense,n=e.theme;return t?(0,E.iv)(Y||(Y=(0,P.Z)(["\n line-height: ",";\n padding: "," ",";\n "])),C.rS.lineHeight("dense")({theme:n}),C.bA.space(-3.5)({theme:n}),C.bA.space(-1.5)({theme:n})):null}(e)}),(function(e){return n=(t=e).iconOnly,r=t.removePadding,n||r?(0,E.iv)(q||(q=(0,P.Z)(["\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===C.co.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(J," {\n display: none;\n }\n ");return t&&n===U?r:t&&n===W&&"\n @media screen and (max-width: 1024px) {\n ".concat(r,"\n }\n ")})),J=E.ZP.span.withConfig({displayName:"StyledLabelWrapper"})(X||(X=(0,P.Z)([""])));const ee=E.ZP.button.withConfig({displayName:"StyledButton"})($||($=(0,P.Z)(["\n ","\n"])),Q);function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var re=S().forwardRef((function(e,t){var n=e.aria,r=e.ink,o=e.label,a=e.icon,i=e.pending,c=e.look,s=e.iconPosition,u=e.iconOnly,l=e.children,d=(0,k.useContext)(z).labelVisibility;return(0,R.jsxs)(ee,ne(ne(ne({ref:t},n),e),{},{ink:r||C.co.ink.BASE,"data-cy":e["data-cy"],title:o,labelVisibility:d,children:[a&&!i&&(0,R.jsx)(N.Z,{icon:a}),i&&(0,R.jsx)(H,{ink:r||C.co.ink.BASE,look:c,position:s,size:"1em"}),!u&&o?(0,R.jsx)(J,{children:o}):l||""]}))}));re.defaultProps={iconPosition:C.co.position.PREPEND,look:C.co.look.FLAT,type:"button"};const oe=re;var ae;(0,E.ZP)(_.rU).withConfig({shouldForwardProp:function(e,t){return!["labelVisibility"].includes(e)&&t(e)}}).withConfig({displayName:"StyledRouterLinkButton"})(ae||(ae=(0,P.Z)(["\n text-decoration: none;\n\n &:hover,\n &:focus {\n text-decoration: none; // nice2 reset\n }\n ","\n"])),Q);var ie,ce;const se=E.ZP.button.withConfig({displayName:"StyledButton"})(ce||(ce=(0,P.Z)(["\n ","\n ","\n ","\n cursor: pointer;\n"])),(0,C.wy)(),C.Hx,(function(){return(0,E.iv)(ie||(ie=(0,P.Z)(["\n border-radius: 50%;\n justify-content: center;\n align-items: center;\n padding: ",";\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"])),C.bA.space(-3),C.rS.fontSize("base"),C.rS.lineHeight("regular"),C.bA.space(-3))}));function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var de=S().forwardRef((function(e,t){return(0,R.jsx)(se,le(le({ref:t,type:"button"},e),{},{children:(0,R.jsx)(N.Z,{icon:e.icon})}))}));de.propTypes={disabled:O().bool,icon:O().string.isRequired,ink:C.co.inkPropTypes,look:O().oneOf([C.co.look.FLAT,C.co.look.RAISED]),onClick:O().func,title:O().string,tabIndex:O().number,"data-cy":O().string};const pe=de;var fe,he,me,ge,ve=i(93433),ye=i(89324),be=i.n(ye),we=i(83524),xe=i.n(we),Oe=i(69590),ke=i.n(Oe),Se=i(27418),Pe=i.n(Se),_e="bodyAttributes",Ee="htmlAttributes",Ce="titleAttributes",De={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},je=(Object.keys(De).map((function(e){return De[e]})),"charset"),Te="cssText",Ae="href",Ie="http-equiv",Me="innerHTML",Ne="itemprop",Re="name",Fe="property",Le="rel",Ze="src",He="target",Be={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Ue="defaultTitle",We="defer",Ve="encodeSpecialCharacters",ze="onChangeClientState",Ye="titleTemplate",qe=Object.keys(Be).reduce((function(e,t){return e[Be[t]]=t,e}),{}),Ge=[De.NOSCRIPT,De.SCRIPT,De.STYLE],Ke="data-react-helmet",Xe="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},$e=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}}(),Qe=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},Je=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},et=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,"'")},tt=function(e){var t=it(e,De.TITLE),n=it(e,Ye);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=it(e,Ue);return t||r||void 0},nt=function(e){return it(e,ze)||function(){}},rt=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return Qe({},e,t)}),{})},ot=function(e,t){return t.filter((function(e){return void 0!==e[De.BASE]})).map((function(e){return e[De.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var a=r[o].toLowerCase();if(-1!==e.indexOf(a)&&n[a])return t.concat(n)}return t}),[])},at=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&dt("Helmet: "+e+' should be of type "Array". Instead found type "'+Xe(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,a=Object.keys(e),i=0;i<a.length;i++){var c=a[i],s=c.toLowerCase();-1===t.indexOf(s)||n===Le&&"canonical"===e[n].toLowerCase()||s===Le&&"stylesheet"===e[s].toLowerCase()||(n=s),-1===t.indexOf(c)||c!==Me&&c!==Te&&c!==Ne||(n=c)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][u]&&(o[n][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var a=Object.keys(o),i=0;i<a.length;i++){var c=a[i],s=Pe()({},r[c],o[c]);r[c]=s}return e}),[]).reverse()},it=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},ct=(fe=Date.now(),function(e){var t=Date.now();t-fe>16?(fe=t,e(t)):setTimeout((function(){ct(e)}),0)}),st=function(e){return clearTimeout(e)},ut="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||ct:i.g.requestAnimationFrame||ct,lt="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||st:i.g.cancelAnimationFrame||st,dt=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},pt=null,ft=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,a=e.linkTags,i=e.metaTags,c=e.noscriptTags,s=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,d=e.title,p=e.titleAttributes;gt(De.BODY,r),gt(De.HTML,o),mt(d,p);var f={baseTag:vt(De.BASE,n),linkTags:vt(De.LINK,a),metaTags:vt(De.META,i),noscriptTags:vt(De.NOSCRIPT,c),scriptTags:vt(De.SCRIPT,u),styleTags:vt(De.STYLE,l)},h={},m={};Object.keys(f).forEach((function(e){var t=f[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(m[e]=f[e].oldTags)})),t&&t(),s(e,h,m)},ht=function(e){return Array.isArray(e)?e.join(""):e},mt=function(e,t){void 0!==e&&document.title!==e&&(document.title=ht(e)),gt(De.TITLE,t)},gt=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(Ke),o=r?r.split(","):[],a=[].concat(o),i=Object.keys(t),c=0;c<i.length;c++){var s=i[c],u=t[s]||"";n.getAttribute(s)!==u&&n.setAttribute(s,u),-1===o.indexOf(s)&&o.push(s);var l=a.indexOf(s);-1!==l&&a.splice(l,1)}for(var d=a.length-1;d>=0;d--)n.removeAttribute(a[d]);o.length===a.length?n.removeAttribute(Ke):n.getAttribute(Ke)!==i.join(",")&&n.setAttribute(Ke,i.join(","))}},vt=function(e,t){var n=document.head||document.querySelector(De.HEAD),r=n.querySelectorAll(e+"["+Ke+"]"),o=Array.prototype.slice.call(r),a=[],i=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===Me)n.innerHTML=t.innerHTML;else if(r===Te)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var c=void 0===t[r]?"":t[r];n.setAttribute(r,c)}n.setAttribute(Ke,"true"),o.some((function(e,t){return i=t,n.isEqualNode(e)}))?o.splice(i,1):a.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:a}},yt=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}),"")},bt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[Be[n]||n]=e[n],t}),t)},wt=function(e,t,n){switch(e){case De.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[Ke]=!0,o=bt(n,r),[S().createElement(De.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=yt(n),a=ht(t);return o?"<"+e+" "+Ke+'="true" '+o+">"+et(a,r)+"</"+e+">":"<"+e+" "+Ke+'="true">'+et(a,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case _e:case Ee:return{toComponent:function(){return bt(t)},toString:function(){return yt(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[Ke]=!0,r);return Object.keys(t).forEach((function(e){var n=Be[e]||e;if(n===Me||n===Te){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),S().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===Me||e===Te)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+et(r[t],n)+'"';return e?e+" "+o:o}),""),a=r.innerHTML||r.cssText||"",i=-1===Ge.indexOf(e);return t+"<"+e+" "+Ke+'="true" '+o+(i?"/>":">"+a+"</"+e+">")}),"")}(e,t,n)}}}},xt=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,a=e.linkTags,i=e.metaTags,c=e.noscriptTags,s=e.scriptTags,u=e.styleTags,l=e.title,d=void 0===l?"":l,p=e.titleAttributes;return{base:wt(De.BASE,t,r),bodyAttributes:wt(_e,n,r),htmlAttributes:wt(Ee,o,r),link:wt(De.LINK,a,r),meta:wt(De.META,i,r),noscript:wt(De.NOSCRIPT,c,r),script:wt(De.SCRIPT,s,r),style:wt(De.STYLE,u,r),title:wt(De.TITLE,{title:d,titleAttributes:p},r)}},Ot=xe()((function(e){return{baseTag:ot([Ae,He],e),bodyAttributes:rt(_e,e),defer:it(e,We),encode:it(e,Ve),htmlAttributes:rt(Ee,e),linkTags:at(De.LINK,[Le,Ae],e),metaTags:at(De.META,[Re,je,Ie,Fe,Ne],e),noscriptTags:at(De.NOSCRIPT,[Me],e),onChangeClientState:nt(e),scriptTags:at(De.SCRIPT,[Ze,Me],e),styleTags:at(De.STYLE,[Te],e),title:tt(e),titleAttributes:rt(Ce,e)}}),(function(e){pt&<(pt),e.defer?pt=ut((function(){ft(e,(function(){pt=null}))})):(ft(e),pt=null)}),xt)((function(){return null})),kt=(he=Ot,ge=me=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!ke()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case De.SCRIPT:case De.NOSCRIPT:return{innerHTML:t};case De.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,a=e.nestedChildren;return Qe({},r,((t={})[n.type]=[].concat(r[n.type]||[],[Qe({},o,this.mapNestedChildrenToProps(n,a))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,a=e.newChildProps,i=e.nestedChildren;switch(r.type){case De.TITLE:return Qe({},o,((t={})[r.type]=i,t.titleAttributes=Qe({},a),t));case De.BODY:return Qe({},o,{bodyAttributes:Qe({},a)});case De.HTML:return Qe({},o,{htmlAttributes:Qe({},a)})}return Qe({},o,((n={})[r.type]=Qe({},a),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=Qe({},t);return Object.keys(e).forEach((function(t){var r;n=Qe({},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 S().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,a=o.children,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[qe[n]||n]=e[n],t}),t)}(Je(o,["children"]));switch(n.warnOnInvalidChildren(e,a),e.type){case De.LINK:case De.META:case De.NOSCRIPT:case De.SCRIPT:case De.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:i,nestedChildren:a});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:i,nestedChildren:a})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=Je(e,["children"]),r=Qe({},n);return t&&(r=this.mapChildrenToProps(t,r)),S().createElement(he,r)},$e(t,null,[{key:"canUseDOM",set:function(e){he.canUseDOM=e}}]),t}(S().Component),me.propTypes={base:be().object,bodyAttributes:be().object,children:be().oneOfType([be().arrayOf(be().node),be().node]),defaultTitle:be().string,defer:be().bool,encodeSpecialCharacters:be().bool,htmlAttributes:be().object,link:be().arrayOf(be().object),meta:be().arrayOf(be().object),noscript:be().arrayOf(be().object),onChangeClientState:be().func,script:be().arrayOf(be().object),style:be().arrayOf(be().object),title:be().string,titleAttributes:be().object,titleTemplate:be().string},me.defaultProps={defer:!0,encodeSpecialCharacters:!0},me.peek=he.peek,me.rewind=function(){var e=he.rewind();return e||(e=xt({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},ge);kt.renderStatic=kt.rewind;var St=i(27856),Pt=i.n(St),_t=["border","border-spacing","padding","margin","text-align","width"];Pt().addHook("afterSanitizeAttributes",(function(e){if(e&&"function"==typeof e.hasAttribute&&e.hasAttribute("style")){var t=function(e){return _t.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 Et=function(e){return e?Pt().sanitize(e,{FORBID_TAGS:["style"],ADD_ATTR:["target"]}):e},Ct={sanitizeHtml:Et};var Dt=i(48921),jt={error:"exclamation-circle",home:"house-blank"},Tt=function(e){return jt[e]||e};const At=function(e){var t=e.type;return t&&"record"!==t?(0,R.jsx)(N.Z,{icon:Tt(t)}):null};var It,Mt,Nt,Rt,Ft,Lt,Zt=["component"],Ht=E.ZP.div.withConfig({displayName:"StyledBreadcrumbs"})(It||(It=(0,P.Z)(["\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||C.rS.color("backgroundBreadcrumbs")(e)}),C.bA.space(-.7),C.bA.space(.39)),Bt=(0,E.ZP)((function(e){var t=e.component,n=(0,M.Z)(e,Zt);return S().cloneElement(t,n)})).withConfig({displayName:"StyledBreadcrumbsLink"})(Mt||(Mt=(0,P.Z)(["\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"])),C.rS.fontWeight("bold"),(function(e){return e.active&&C.rS.color("primary")}),C.rS.fontWeight("bold"),(function(e){return e.active&&C.rS.color("primary")}),C.rS.color("secondaryLight"),C.rS.color("primary")),Ut=E.ZP.span.withConfig({displayName:"StyledBreadcrumbsTitle"})(Nt||(Nt=(0,P.Z)(["\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"])),C.rS.fontWeight("bold"),(function(e){return e.active&&C.rS.color("primary")}),C.rS.fontWeight("bold"),(function(e){return e.active&&C.rS.color("primary")}),C.rS.color("primary")),Wt=(0,E.ZP)(Dt.Fe).withConfig({displayName:"StyledBreadcrumbSeparator"})(Rt||(Rt=(0,P.Z)(["\n margin-left: ",";\n margin-right: ",";\n"])),C.bA.space(-2),C.bA.space(-2)),Vt=E.ZP.span.withConfig({displayName:"StyledBreadcrumbWrapper"})(Ft||(Ft=(0,P.Z)(["\n "," {\n margin-right: ",";\n }\n"])),N.q,C.bA.space(-1));const zt=function(){return Lt||(Lt=(0,R.jsx)(Wt,{breakWords:!0,children:(0,R.jsx)(N.Z,{icon:"chevron-right"})}))};var Yt;function qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kt=function(e){return e.title||e.display},Xt=function(e,t){if(!e||0===e.length)return"Tocco";var n=e.at(-1),r="";switch(n.type){case"create":r="".concat(Kt(n)," - ").concat(t);break;case"detail":r=e.slice(e.length-2).map(Kt).join(" - ");break;default:r=Kt(n)}return r},$t=function(e){var t,n=e.intl,r=e.pathPrefix,o=e.breadcrumbsInfo,a=void 0===o?[]:o,i=e.currentView,c=e.backgroundColor,s=e.onClick,u=e.linkComp,l=e.updateDocumentTitle,d=[].concat((0,ve.Z)(a),(0,ve.Z)(i?[i]:[]));if(0===d.length)return null;var p,f=d.map((function(e,n){var o,a=e.display||"",i=n===d.length-1?Ut:Bt,c=n===d.length-1&&{active:"true"},l=void 0!==e.path?{to:"".concat(r,"/").concat(e.path)}:{},p=u?t||(t=(0,R.jsx)(u,{})):Yt||(Yt=(0,R.jsx)(T,{}));return(0,R.jsx)(Dt.ZP.Span,{children:(0,R.jsx)(Vt,{children:(0,R.jsxs)(i,Gt(Gt(Gt({neutral:!0},c),l),{},{onClick:(o=e,function(){s&&!1!==o.clickable&&s(o)}),component:p,children:[(0,R.jsx)(At,{type:e.type}),(0,R.jsx)("span",{"data-cy":"breadcrumb-item",dangerouslySetInnerHTML:{__html:Ct.sanitizeHtml(a)}})]}))})},"breadcrumbItem-".concat(n))})).reduce((function(e,t,n){return[e,(0,R.jsx)(zt,{},"icon".concat(n)),t]}));return(0,R.jsxs)(Ht,{backgroundColor:c,children:[l?(0,R.jsx)(kt,{defer:!1,children:(0,R.jsx)("title",{children:Xt(d,(p="client.component.breadcrumbs.createTitle",n.formatMessage({id:p})))})}):null,(0,R.jsx)(R.Fragment,{children:f})]})};$t.defaultProps={pathPrefix:""};const Qt=$t;(0,h.injectIntl)(Qt);var Jt,en,tn=E.ZP.div.withConfig({displayName:"StyledWrapper"})(Jt||(Jt=(0,P.Z)(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,C.wy)(),(function(e){return e.theme.colors.signal.danger}),C.FS.color("paper"),C.bA.space(-.5));const nn=function(){return en||(en=(0,R.jsx)(tn,{children:(0,R.jsx)(h.FormattedMessage,{id:"client.component.errorBoundary.text"})}))};var rn;const on=E.ZP.div.withConfig({displayName:"StyledButtonGroup"})(rn||(rn=(0,P.Z)(["\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"])),ee);var an=S().forwardRef((function(e,t){return(0,R.jsx)(on,{ref:t,children:e.children})}));an.propTypes={children:O().node};const cn=an;var sn=i(57557),un=i.n(sn),ln=i(41609),dn=i.n(ln),pn=(i(58808),i(41505)),fn=i.n(pn),hn=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},mn=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},gn={outline:"none"},vn=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=mn(this,e.call.apply(e,[this].concat(a))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=S().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)},mn(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?S().cloneElement(e({focused:t,getRef:this.ref}),n):S().createElement("div",hn({ref:this.ref,style:gn},n),e)},t}(S().Component);vn.propTypes={children:fn().oneOfType([fn().node,fn().func]).isRequired,onBlur:fn().func,onFocus:fn().func},vn.defaultProps={onBlur:function(){},onFocus:function(){}};const yn=vn;var bn,wn,xn,On,kn,Sn,Pn,_n,En=i(84265),Cn=(0,E.iv)(bn||(bn=(0,P.Z)(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),Dn=E.ZP.label.withConfig({displayName:"StyledEditableWrapper"})(wn||(wn=(0,P.Z)(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),Cn),jn=(0,E.iv)(xn||(xn=(0,P.Z)(["\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 &::-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?"not-allowed":"default"}),(function(e){return e.immutable?"0":"2.6rem"}),(function(){return(0,C.wy)({color:C.FS.color("text")})}),C.FS.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),Tn=(0,E.iv)(On||(On=(0,P.Z)(["\n display: flex;\n align-items: center;\n"]))),An=E.ZP.div.withConfig({displayName:"StyledEditableControl"})(kn||(kn=(0,P.Z)(["\n &&& {\n ","\n }\n"])),Tn),In=(E.ZP.span.withConfig({displayName:"StyledEditableValue"})(Sn||(Sn=(0,P.Z)(["\n width: 100%;\n\n && {\n //url\n [type='url'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //url\n [type='tel'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //date\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: not-allowed;\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"])),C.FS.color("signal.danger")),i(71002)),Mn=function(e){return-1*Math.abs(e)},Nn=i(27361),Rn=i.n(Nn),Fn=E.ZP.div.withConfig({displayName:"StyledLocationEdit"})(Pn||(Pn=(0,P.Z)(["\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 .react-autosuggest__input {\n ","\n width: 100%;\n }\n\n .react-autosuggest__suggestions-container--open {\n width: calc(100% + 17.5px);\n background-color: ",";\n box-shadow: 0 0 6px ",";\n border: 1px solid ",";\n bottom: -9px;\n left: -10px;\n max-height: 300px;\n overflow-y: auto;\n position: absolute;\n transform: translateY(100%);\n z-index: 2; // higher than StyledIndicatorsContainerWrapper\n }\n\n .react-autosuggest__suggestions-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .react-autosuggest__suggestion {\n cursor: pointer;\n padding: 8px 12px;\n }\n\n .react-autosuggest__suggestion--highlighted {\n background-color: ",";\n }\n }\n"])),Cn,C.bA.space(-2),C.bA.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?Rn()(n,"colors.textDisabled"):Rn()(n,"colors.text")}),jn,C.FS.color("paper"),C.FS.color("signal.info"),C.FS.color("secondaryLight"),C.FS.color("backgroundItemHover"));(0,E.ZP)(Fn).withConfig({displayName:"StyledAddressEdit"})(_n||(_n=(0,P.Z)(["\n && {\n div {\n :nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n }\n"])));i(14293);var Ln=i(23493),Zn=i.n(Ln);function Hn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Un(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bn(Object(n),!0).forEach((function(t){Hn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wn(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 Vn(e,t){if(e){if("string"==typeof e)return Wn(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)?Wn(e,t):void 0}}function zn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||Vn(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 Yn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var qn=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Gn(){return Gn=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},Gn.apply(this,arguments)}function Kn(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 Xn(e,t){return Xn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xn(e,t)}function $n(e){return $n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$n(e)}function Qn(e){return Qn="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},Qn(e)}function Jn(e,t){if(t&&("object"===Qn(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 er(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=$n(e);if(t){var o=$n(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Jn(this,n)}}function tr(e){return function(e){if(Array.isArray(e))return Wn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Vn(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 nr=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}(),rr="-ms-",or="-moz-",ar="-webkit-",ir="comm",cr="rule",sr="decl",ur="@keyframes",lr=Math.abs,dr=String.fromCharCode,pr=Object.assign;function fr(e){return e.trim()}function hr(e,t,n){return e.replace(t,n)}function mr(e,t){return e.indexOf(t)}function gr(e,t){return 0|e.charCodeAt(t)}function vr(e,t,n){return e.slice(t,n)}function yr(e){return e.length}function br(e){return e.length}function wr(e,t){return t.push(e),e}var xr=1,Or=1,kr=0,Sr=0,Pr=0,_r="";function Er(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:xr,column:Or,length:i,return:""}}function Cr(e,t){return pr(Er("",null,null,"",null,null,0),e,{length:-e.length},t)}function Dr(){return Pr=Sr>0?gr(_r,--Sr):0,Or--,10===Pr&&(Or=1,xr--),Pr}function jr(){return Pr=Sr<kr?gr(_r,Sr++):0,Or++,10===Pr&&(Or=1,xr++),Pr}function Tr(){return gr(_r,Sr)}function Ar(){return Sr}function Ir(e,t){return vr(_r,e,t)}function Mr(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 Nr(e){return xr=Or=1,kr=yr(_r=e),Sr=0,[]}function Rr(e){return _r="",e}function Fr(e){return fr(Ir(Sr-1,Hr(91===e?e+2:40===e?e+1:e)))}function Lr(e){for(;(Pr=Tr())&&Pr<33;)jr();return Mr(e)>2||Mr(Pr)>3?"":" "}function Zr(e,t){for(;--t&&jr()&&!(Pr<48||Pr>102||Pr>57&&Pr<65||Pr>70&&Pr<97););return Ir(e,Ar()+(t<6&&32==Tr()&&32==jr()))}function Hr(e){for(;jr();)switch(Pr){case e:return Sr;case 34:case 39:34!==e&&39!==e&&Hr(Pr);break;case 40:41===e&&Hr(e);break;case 92:jr()}return Sr}function Br(e,t){for(;jr()&&e+Pr!==57&&(e+Pr!==84||47!==Tr()););return"/*"+Ir(t,Sr-1)+"*"+dr(47===e?e:jr())}function Ur(e){for(;!Mr(Tr());)jr();return Ir(e,Sr)}function Wr(e){return Rr(Vr("",null,null,null,[""],e=Nr(e),0,[0],e))}function Vr(e,t,n,r,o,a,i,c,s){for(var u=0,l=0,d=i,p=0,f=0,h=0,m=1,g=1,v=1,y=0,b="",w=o,x=a,O=r,k=b;g;)switch(h=y,y=jr()){case 40:if(108!=h&&58==gr(k,d-1)){-1!=mr(k+=hr(Fr(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=Fr(y);break;case 9:case 10:case 13:case 32:k+=Lr(h);break;case 92:k+=Zr(Ar()-1,7);continue;case 47:switch(Tr()){case 42:case 47:wr(Yr(Br(jr(),Ar()),t,n),s);break;default:k+="/"}break;case 123*m:c[u++]=yr(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+l:f>0&&yr(k)-d&&wr(f>32?qr(k+";",r,n,d-1):qr(hr(k," ","")+";",r,n,d-2),s);break;case 59:k+=";";default:if(wr(O=zr(k,t,n,u,l,o,c,b,w=[],x=[],d),a),123===y)if(0===l)Vr(k,t,O,O,w,a,d,c,x);else switch(99===p&&110===gr(k,3)?100:p){case 100:case 109:case 115:Vr(e,O,O,r&&wr(zr(e,O,O,0,0,o,c,b,o,w=[],d),x),o,x,d,c,r?w:x);break;default:Vr(k,O,O,O,[""],x,0,c,x)}}u=l=f=0,m=v=1,b=k="",d=i;break;case 58:d=1+yr(k),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Dr())continue;switch(k+=dr(y),y*m){case 38:v=l>0?1:(k+="\f",-1);break;case 44:c[u++]=(yr(k)-1)*v,v=1;break;case 64:45===Tr()&&(k+=Fr(jr())),p=Tr(),l=d=yr(b=k+=Ur(Ar())),y++;break;case 45:45===h&&2==yr(k)&&(m=0)}}return a}function zr(e,t,n,r,o,a,i,c,s,u,l){for(var d=o-1,p=0===o?a:[""],f=br(p),h=0,m=0,g=0;h<r;++h)for(var v=0,y=vr(e,d+1,d=lr(m=i[h])),b=e;v<f;++v)(b=fr(m>0?p[v]+" "+y:hr(y,/&\f/g,p[v])))&&(s[g++]=b);return Er(e,t,n,0===o?cr:c,s,u,l)}function Yr(e,t,n){return Er(e,t,n,ir,dr(Pr),vr(e,2,-2),0)}function qr(e,t,n,r){return Er(e,t,n,sr,vr(e,0,r),vr(e,r+1,-1),r)}function Gr(e,t){for(var n="",r=br(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Kr(e,t,n,r){switch(e.type){case"@import":case sr:return e.return=e.return||e.value;case ir:return"";case ur:return e.return=e.value+"{"+Gr(e.children,r)+"}";case cr:e.value=e.props.join(",")}return yr(n=Gr(e.children,r))?e.return=e.value+"{"+n+"}":""}const Xr=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}};var $r=function(e,t,n){for(var r=0,o=0;r=o,o=Tr(),38===r&&12===o&&(t[n]=1),!Mr(o);)jr();return Ir(e,Sr)},Qr=function(e,t){return Rr(function(e,t){var n=-1,r=44;do{switch(Mr(r)){case 0:38===r&&12===Tr()&&(t[n]=1),e[n]+=$r(Sr-1,t,n);break;case 2:e[n]+=Fr(r);break;case 4:if(44===r){e[++n]=58===Tr()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=dr(r)}}while(r=jr());return e}(Nr(e),t))},Jr=new WeakMap,eo=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)||Jr.get(n))&&!r){Jr.set(e,!0);for(var o=[],a=Qr(t,o),i=n.props,c=0,s=0;c<a.length;c++)for(var u=0;u<i.length;u++,s++)e.props[s]=o[c]?a[c].replace(/&\f/g,i[u]):i[u]+" "+a[c]}}},to=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function no(e,t){switch(function(e,t){return 45^gr(e,0)?(((t<<2^gr(e,0))<<2^gr(e,1))<<2^gr(e,2))<<2^gr(e,3):0}(e,t)){case 5103:return ar+"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 ar+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ar+e+or+e+rr+e+e;case 6828:case 4268:return ar+e+rr+e+e;case 6165:return ar+e+rr+"flex-"+e+e;case 5187:return ar+e+hr(e,/(\w+).+(:[^]+)/,ar+"box-$1$2"+rr+"flex-$1$2")+e;case 5443:return ar+e+rr+"flex-item-"+hr(e,/flex-|-self/,"")+e;case 4675:return ar+e+rr+"flex-line-pack"+hr(e,/align-content|flex-|-self/,"")+e;case 5548:return ar+e+rr+hr(e,"shrink","negative")+e;case 5292:return ar+e+rr+hr(e,"basis","preferred-size")+e;case 6060:return ar+"box-"+hr(e,"-grow","")+ar+e+rr+hr(e,"grow","positive")+e;case 4554:return ar+hr(e,/([^-])(transform)/g,"$1"+ar+"$2")+e;case 6187:return hr(hr(hr(e,/(zoom-|grab)/,ar+"$1"),/(image-set)/,ar+"$1"),e,"")+e;case 5495:case 3959:return hr(e,/(image-set\([^]*)/,ar+"$1$`$1");case 4968:return hr(hr(e,/(.+:)(flex-)?(.*)/,ar+"box-pack:$3"+rr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ar+e+e;case 4095:case 3583:case 4068:case 2532:return hr(e,/(.+)-inline(.+)/,ar+"$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(yr(e)-1-t>6)switch(gr(e,t+1)){case 109:if(45!==gr(e,t+4))break;case 102:return hr(e,/(.+:)(.+)-([^]+)/,"$1"+ar+"$2-$3$1"+or+(108==gr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~mr(e,"stretch")?no(hr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==gr(e,t+1))break;case 6444:switch(gr(e,yr(e)-3-(~mr(e,"!important")&&10))){case 107:return hr(e,":",":"+ar)+e;case 101:return hr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ar+(45===gr(e,14)?"inline-":"")+"box$3$1"+ar+"$2$3$1"+rr+"$2box$3")+e}break;case 5936:switch(gr(e,t+11)){case 114:return ar+e+rr+hr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ar+e+rr+hr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ar+e+rr+hr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ar+e+rr+e+e}return e}var ro=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case sr:e.return=no(e.value,e.length);break;case ur:return Gr([Cr(e,{value:hr(e.value,"@","@"+ar)})],r);case cr: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 Gr([Cr(e,{props:[hr(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Gr([Cr(e,{props:[hr(t,/:(plac\w+)/,":"+ar+"input-$1")]}),Cr(e,{props:[hr(t,/:(plac\w+)/,":-moz-$1")]}),Cr(e,{props:[hr(t,/:(plac\w+)/,rr+"input-$1")]})],r)}return""}))}}];const oo=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||ro;var o,a,i={},c=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;c.push(e)}));var s,u,l,d,p=[Kr,(d=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(u=[eo,to].concat(r,p),l=br(u),function(e,t,n,r){for(var o="",a=0;a<l;a++)o+=u[a](e,t,n,r)||"";return o});a=function(e,t,n,r){s=n,function(e){Gr(Wr(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new nr({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return h.sheet.hydrate(c),h};i(8679);var ao=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};const io=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 co={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};var so=/[A-Z]|^ms/g,uo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lo=function(e){return 45===e.charCodeAt(1)},po=function(e){return null!=e&&"boolean"!=typeof e},fo=Xr((function(e){return lo(e)?e:e.replace(so,"-$&").toLowerCase()})),ho=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(uo,(function(e,t,n){return go={name:t,styles:n,next:go},t}))}return 1===co[e]||lo(e)||"number"!=typeof t||0===t?t:t+"px"};function mo(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 go={name:n.name,styles:n.styles,next:go},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)go={name:r.name,styles:r.styles,next:go},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+=mo(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":po(i)&&(r+=fo(a)+":"+ho(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var c=mo(e,t,i);switch(a){case"animation":case"animationName":r+=fo(a)+":"+c+";";break;default:r+=a+"{"+c+"}"}}else for(var s=0;s<i.length;s++)po(i[s])&&(r+=fo(a)+":"+ho(a,i[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=go,a=n(e);return go=o,mo(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var go,vo=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var yo=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="";go=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=mo(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=mo(n,t,e[i]),r&&(o+=a[i]);vo.lastIndex=0;for(var c,s="";null!==(c=vo.exec(o));)s+="-"+c[1];return{name:io(o)+s,styles:o,next:go}},bo=!!k.useInsertionEffect&&k.useInsertionEffect,wo=bo||function(e){return e()},xo={}.hasOwnProperty,Oo=(0,k.createContext)("undefined"!=typeof HTMLElement?oo({key:"css"}):null);Oo.Provider;var ko=function(e){return(0,k.forwardRef)((function(t,n){var r=(0,k.useContext)(Oo);return e(t,r,n)}))},So=(0,k.createContext)({});var Po="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",_o=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;ao(t,n,r);wo((function(){return function(e,t,n){ao(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},Eo=ko((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Po],a=[r],i="";"string"==typeof e.className?i=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var c=yo(a,void 0,(0,k.useContext)(So));i+=t.key+"-"+c.name;var s={};for(var u in e)xo.call(e,u)&&"css"!==u&&u!==Po&&(s[u]=e[u]);return s.ref=n,s.className=i,(0,k.createElement)(k.Fragment,null,(0,k.createElement)(_o,{cache:t,serialized:c,isStringTag:"string"==typeof o}),(0,k.createElement)(o,s))}));var Co=function(e,t){var n=arguments;if(null==t||!xo.call(t,"css"))return k.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Eo,o[1]=function(e,t){var n={};for(var r in t)xo.call(t,r)&&(n[r]=t[r]);return n[Po]=e,n}(e,t);for(var a=2;a<r;a++)o[a]=n[a];return k.createElement.apply(null,o)};function Do(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return yo(t)}var jo=i(30314),To=i.n(jo);Math.min,Math.max;const Ao=["top","right","bottom","left"];Ao.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function Io(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Mo(e){if(null==e)return window;if(!Io(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function No(e){return Mo(e).getComputedStyle(e)}function Ro(e){return Io(e)?"":e?(e.nodeName||"").toLowerCase():""}function Fo(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function Lo(e){return e instanceof Mo(e).HTMLElement}function Zo(e){return e instanceof Mo(e).Element}function Ho(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Mo(e).ShadowRoot||e instanceof ShadowRoot)}function Bo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=No(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function Uo(){return!/^((?!chrome|android).)*safari/i.test(Fo())}function Wo(e){return["html","body","#document"].includes(Ro(e))}Math.min,Math.max;const Vo=Math.round;function zo(e,t,n){var r,o,a,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const c=e.getBoundingClientRect();let s=1,u=1;t&&Lo(e)&&(s=e.offsetWidth>0&&Vo(c.width)/e.offsetWidth||1,u=e.offsetHeight>0&&Vo(c.height)/e.offsetHeight||1);const l=Zo(e)?Mo(e):window,d=!Uo()&&n,p=(c.left+(d&&null!=(r=null==(o=l.visualViewport)?void 0:o.offsetLeft)?r:0))/s,f=(c.top+(d&&null!=(a=null==(i=l.visualViewport)?void 0:i.offsetTop)?a:0))/u,h=c.width/s,m=c.height/u;return{width:h,height:m,top:f,right:p+h,bottom:f+m,left:p,x:p,y:f}}function Yo(e){return(t=e,(t instanceof Mo(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function qo(e){if("html"===Ro(e))return e;const t=e.assignedSlot||e.parentNode||(Ho(e)?e.host:null)||Yo(e);return Ho(t)?t.host:t}function Go(e){const t=qo(e);return Wo(t)?e.ownerDocument.body:Lo(t)&&Bo(t)?t:Go(t)}function Ko(e,t){var n;void 0===t&&(t=[]);const r=Go(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Mo(r),i=o?[a].concat(a.visualViewport||[],Bo(r)?r:[]):r,c=t.concat(i);return o?c:c.concat(Ko(i))}const Xo=k.useLayoutEffect;var $o=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Qo=function(){};function Jo(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function ea(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=[].concat(r);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&a.push("".concat(Jo(e,i)));return a.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var ta=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===Qn(e)&&null!==e?[e]:[];var t},na=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,Un({},Yn(e,$o))},ra=function(e,t,n){var r=e.cx,o=e.getStyles,a=e.getClassNames,i=e.className;return{css:o(t,e),className:r(null!=n?n:{},a(t,e),i)}};function oa(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function aa(e){return oa(e)?window.pageYOffset:e.scrollTop}function ia(e,t){oa(e)?window.scrollTo(0,t):e.scrollTop=t}function ca(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Qo,o=aa(e),a=t-o,i=0;!function t(){var c=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(i+=10,o,a,n);ia(e,c),i<n?window.requestAnimationFrame(t):r(e)}()}function sa(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?ia(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&ia(e,Math.max(t.offsetTop-o,0))}function ua(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var la=!1,da={get passive(){return la=!0}},pa="undefined"!=typeof window?window:{};pa.addEventListener&&pa.removeEventListener&&(pa.addEventListener("p",Qo,da),pa.removeEventListener("p",Qo,!1));var fa=la;function ha(e){return null!=e}function ma(e,t,n){return e?t:n}var ga=["children","innerProps"],va=["children","innerProps"];function ya(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,c=e.controlHeight,s=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=s.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,h=p.height,m=p.top,g=n.offsetParent.getBoundingClientRect().top,v=i?window.innerHeight:oa(l=s)?window.innerHeight:l.clientHeight,y=aa(s),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,P=f-v+y+b,_=y+m-w,E=160;switch(o){case"auto":case"bottom":if(O>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!i)return a&&ca(s,P,E),{placement:"bottom",maxHeight:t};if(!i&&S>=r||i&&O>=r)return a&&ca(s,P,E),{placement:"bottom",maxHeight:i?O-b:S-b};if("auto"===o||i){var C=t,D=i?x:k;return D>=r&&(C=Math.min(D-b-c,t)),{placement:"top",maxHeight:C}}if("bottom"===o)return a&&ia(s,P),{placement:"bottom",maxHeight:t};break;case"top":if(x>=h)return{placement:"top",maxHeight:t};if(k>=h&&!i)return a&&ca(s,_,E),{placement:"top",maxHeight:t};if(!i&&k>=r||i&&x>=r){var j=t;return(!i&&k>=r||i&&x>=r)&&(j=i?x-w:k-w),a&&ca(s,_,E),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var ba,wa=function(e){return"auto"===e?"bottom":e},xa=(0,k.createContext)(null),Oa=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,a=e.menuPosition,i=e.menuShouldScrollIntoView,c=e.theme,s=((0,k.useContext)(xa)||{}).setPortalPlacement,u=(0,k.useRef)(null),l=zn((0,k.useState)(r),2),d=l[0],p=l[1],f=zn((0,k.useState)(null),2),h=f[0],m=f[1],g=c.spacing.controlHeight;return Xo((function(){var e=u.current;if(e){var t="fixed"===a,c=ya({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:i&&!t,isFixedPosition:t,controlHeight:g});p(c.maxHeight),m(c.placement),null==s||s(c.placement)}}),[r,o,a,i,n,s,g]),t({ref:u,placerProps:Un(Un({},e),{},{placement:h||wa(o),maxHeight:d})})},ka=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Co("div",Gn({},ra(e,"menu",{menu:!0}),{ref:n},r),t)},Sa=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Un({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Pa=Sa,_a=Sa,Ea=["size"],Ca=["innerProps","isRtl","size"];var Da,ja,Ta={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Aa=function(e){var t=e.size,n=Yn(e,Ea);return Co("svg",Gn({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ta},n))},Ia=function(e){return Co(Aa,Gn({size:20},e),Co("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"}))},Ma=function(e){return Co(Aa,Gn({size:20},e),Co("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"}))},Na=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return Un({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*o,":hover":{color:n?a.neutral80:a.neutral40}})},Ra=Na,Fa=Na,La=function(){var e=Do.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_"}}}(ba||(Da=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],ja||(ja=Da.slice(0)),ba=Object.freeze(Object.defineProperties(Da,{raw:{value:Object.freeze(ja)}})))),Za=function(e){var t=e.delay,n=e.offset;return Co("span",{css:Do({animation:"".concat(La," 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"},"","")})},Ha=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,a=e.innerProps,i=e.menuIsOpen;return Co("div",Gn({ref:o},ra(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":i}),a,{"aria-disabled":n||void 0}),t)},Ba=["data"],Ua=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,a=e.Heading,i=e.headingProps,c=e.innerProps,s=e.label,u=e.theme,l=e.selectProps;return Co("div",Gn({},ra(e,"group",{group:!0}),c),Co(a,Gn({},i,{selectProps:l,theme:u,getStyles:r,getClassNames:o,cx:n}),s),Co("div",null,t))},Wa=["innerRef","isDisabled","isHidden","inputClassName"],Va={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},za={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Un({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Va)},Ya=function(e){return Un({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Va)},qa=function(e){var t=e.children,n=e.innerProps;return Co("div",n,t)};var Ga=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,a=e.isDisabled,i=e.removeProps,c=e.selectProps,s=n.Container,u=n.Label,l=n.Remove;return Co(s,{data:r,innerProps:Un(Un({},ra(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:c},Co(u,{data:r,innerProps:Un({},ra(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},t),Co(l,{data:r,innerProps:Un(Un({},ra(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},i),selectProps:c}))},Ka={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Co("div",Gn({},ra(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Co(Ia,null))},Control:Ha,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Co("div",Gn({},ra(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Co(Ma,null))},DownChevron:Ma,CrossIcon:Ia,Group:Ua,GroupHeading:function(e){var t=na(e);t.data;var n=Yn(t,Ba);return Co("div",Gn({},ra(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Co("div",Gn({},ra(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Co("span",Gn({},t,ra(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=na(e),o=r.innerRef,a=r.isDisabled,i=r.isHidden,c=r.inputClassName,s=Yn(r,Wa);return Co("div",Gn({},ra(e,"input",{"input-container":!0}),{"data-value":n||""}),Co("input",Gn({className:t({input:!0},c),ref:o,style:Ya(i),disabled:a},s)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,a=Yn(e,Ca);return Co("div",Gn({},ra(Un(Un({},a),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Co(Za,{delay:0,offset:n}),Co(Za,{delay:160,offset:!0}),Co(Za,{delay:320,offset:!n}))},Menu:ka,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Co("div",Gn({},ra(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,a=e.menuPlacement,i=e.menuPosition,c=(0,k.useRef)(null),s=(0,k.useRef)(null),u=zn((0,k.useState)(wa(a)),2),l=u[0],d=u[1],p=(0,k.useMemo)((function(){return{setPortalPlacement:d}}),[]),f=zn((0,k.useState)(null),2),h=f[0],m=f[1],g=(0,k.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===i?0:window.pageYOffset,n=e[l]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||m({offset:n,rect:e})}}),[r,i,l,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);Xo((function(){g()}),[g]);var v=(0,k.useCallback)((function(){"function"==typeof s.current&&(s.current(),s.current=null),r&&c.current&&(s.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=!0,animationFrame:c=!1}=r,s=o&&!c,u=s||a?[...Zo(e)?Ko(e):e.contextElement?Ko(e.contextElement):[],...Ko(t)]:[];u.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));let l,d=null;if(i){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),Zo(e)&&!c&&d.observe(e),Zo(e)||!e.contextElement||c||d.observe(e.contextElement),d.observe(t)}let p=c?zo(e):null;return c&&function t(){const r=zo(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{s&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,c&&cancelAnimationFrame(l)}}(r,c.current,g,{elementResize:"ResizeObserver"in window}))}),[r,g]);Xo((function(){v()}),[v]);var y=(0,k.useCallback)((function(e){c.current=e,v()}),[v]);if(!t&&"fixed"!==i||!h)return null;var b=Co("div",Gn({ref:y},ra(Un(Un({},e),{},{offset:h.offset,position:i,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),n);return Co(xa.Provider,{value:p},t?(0,jo.createPortal)(b,t):b)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=Yn(e,va);return Co("div",Gn({},ra(Un(Un({},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=Yn(e,ga);return Co("div",Gn({},ra(Un(Un({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Ga,MultiValueContainer:qa,MultiValueLabel:qa,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Co("div",Gn({role:"button"},n),t||Co(Ia,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.innerRef,i=e.innerProps;return Co("div",Gn({},ra(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:a,"aria-disabled":n},i),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Co("div",Gn({},ra(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Co("div",Gn({},ra(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Co("div",Gn({},ra(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return Co("div",Gn({},ra(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Xa=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function $a(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||Xa(r)&&Xa(o)))return!1;var r,o;return!0}for(var Qa={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"},Ja=function(e){return Co("span",Gn({css:Qa},e))},ei={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=void 0===o?"":o,i=e.selectValue,c=e.isDisabled,s=e.isSelected,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(a," focused, ").concat(u(i,n),".");if("menu"===t){var l=c?" disabled":"",d="".concat(s?"selected":"focused").concat(l);return"option ".concat(a," ").concat(d,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},ti=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=e.selectValue,c=e.selectProps,s=e.id,u=c.ariaLiveMessages,l=c.getOptionLabel,d=c.inputValue,p=c.isMulti,f=c.isOptionDisabled,h=c.isSearchable,m=c.menuIsOpen,g=c.options,v=c.screenReaderStatus,y=c.tabSelectsValue,b=c["aria-label"],w=c["aria-live"],x=(0,k.useMemo)((function(){return Un(Un({},ei),u||{})}),[u]),O=(0,k.useMemo)((function(){var e,n="";if(t&&x.onChange){var r=t.option,o=t.options,a=t.removedValue,c=t.removedValues,s=t.value,u=a||r||(e=s,Array.isArray(e)?null:e),d=u?l(u):"",p=o||c||void 0,h=p?p.map(l):[],m=Un({isDisabled:u&&f(u,i),label:d,labels:h},t);n=x.onChange(m)}return n}),[t,x,f,i,l]),S=(0,k.useMemo)((function(){var e="",t=n||r,a=!!(n&&i&&i.includes(n));if(t&&x.onFocus){var c={focused:t,label:l(t),isDisabled:f(t,i),isSelected:a,options:o,context:t===n?"menu":"value",selectValue:i};e=x.onFocus(c)}return e}),[n,r,l,f,x,o,i]),P=(0,k.useMemo)((function(){var e="";if(m&&g.length&&x.onFilter){var t=v({count:o.length});e=x.onFilter({inputValue:d,resultsMessage:t})}return e}),[o,d,m,x,g,v]),_=(0,k.useMemo)((function(){var e="";if(x.guidance){var t=r?"value":m?"menu":"input";e=x.guidance({"aria-label":b,context:t,isDisabled:n&&f(n,i),isMulti:p,isSearchable:h,tabSelectsValue:y})}return e}),[b,n,r,p,f,h,m,x,i,y]),E="".concat(S," ").concat(P," ").concat(_),C=Co(k.Fragment,null,Co("span",{id:"aria-selection"},O),Co("span",{id:"aria-context"},E)),D="initial-input-focus"===(null==t?void 0:t.action);return Co(k.Fragment,null,Co(Ja,{id:s},D&&C),Co(Ja,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},a&&!D&&C))},ni=[{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źẑżžẓẕƶȥɀⱬꝣ"}],ri=new RegExp("["+ni.map((function(e){return e.letters})).join("")+"]","g"),oi={},ai=0;ai<ni.length;ai++)for(var ii=ni[ai],ci=0;ci<ii.letters.length;ci++)oi[ii.letters[ci]]=ii.base;var si=function(e){return e.replace(ri,(function(e){return oi[e]}))},ui=function(e,t){void 0===t&&(t=$a);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}(si),li=function(e){return e.replace(/^\s+|\s+$/g,"")},di=function(e){return"".concat(e.label," ").concat(e.value)},pi=["innerRef"];function fi(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=zn(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=zn(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(Yn(e,pi),"onExited","in","enter","exit","appear");return Co("input",Gn({ref:t},n,{css:Do({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 hi=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var mi=["boxSizing","height","overflow","paddingRight","position"],gi={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function vi(e){e.preventDefault()}function yi(e){e.stopPropagation()}function bi(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function wi(){return"ontouchstart"in window||navigator.maxTouchPoints}var xi=!("undefined"==typeof window||!window.document||!window.document.createElement),Oi=0,ki={capture:!1,passive:!1};var Si=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Pi={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function _i(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=(0,k.useRef)(!1),c=(0,k.useRef)(!1),s=(0,k.useRef)(0),u=(0,k.useRef)(null),l=(0,k.useCallback)((function(e,t){if(null!==u.current){var s=u.current,l=s.scrollTop,d=s.scrollHeight,p=s.clientHeight,f=u.current,h=t>0,m=d-p-l,g=!1;m>t&&i.current&&(r&&r(e),i.current=!1),h&&c.current&&(a&&a(e),c.current=!1),h&&t>m?(n&&!i.current&&n(e),f.scrollTop=d,g=!0,i.current=!0):!h&&-t>l&&(o&&!c.current&&o(e),f.scrollTop=0,g=!0,c.current=!0),g&&hi(e)}}),[n,r,o,a]),d=(0,k.useCallback)((function(e){l(e,e.deltaY)}),[l]),p=(0,k.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),f=(0,k.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;l(e,t)}),[l]),h=(0,k.useCallback)((function(e){if(e){var t=!!fa&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",f,t)}}),[f,p,d]),m=(0,k.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",f,!1))}),[f,p,d]);return(0,k.useEffect)((function(){if(t){var e=u.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,k.useRef)({}),a=(0,k.useRef)(null),i=(0,k.useCallback)((function(e){if(xi){var t=document.body,n=t&&t.style;if(r&&mi.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Oi<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,c=window.innerWidth-i+a||0;Object.keys(gi).forEach((function(e){var t=gi[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(c,"px"))}t&&wi()&&(t.addEventListener("touchmove",vi,ki),e&&(e.addEventListener("touchstart",bi,ki),e.addEventListener("touchmove",yi,ki))),Oi+=1}}),[r]),c=(0,k.useCallback)((function(e){if(xi){var t=document.body,n=t&&t.style;Oi=Math.max(Oi-1,0),r&&Oi<1&&mi.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&wi()&&(t.removeEventListener("touchmove",vi,ki),e&&(e.removeEventListener("touchstart",bi,ki),e.removeEventListener("touchmove",yi,ki)))}}),[r]);return(0,k.useEffect)((function(){if(t){var e=a.current;return i(e),function(){c(e)}}}),[t,i,c]),function(e){a.current=e}}({isEnabled:n});return Co(k.Fragment,null,n&&Co("div",{onClick:Si,css:Pi}),t((function(e){o(e),a(e)})))}var Ei={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Ci=function(e){var t=e.name,n=e.onFocus;return Co("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Ei,value:"",onChange:function(){}})},Di={clearIndicator:Fa,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,a=o.colors,i=o.borderRadius;return Un({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},dropdownIndicator:Ra,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 Un({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return Un({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,a=o.spacing,i=o.colors;return Un(Un({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},za),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,a=o.colors,i=o.spacing.baseUnit;return Un({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i})},loadingMessage:_a,menu:function(e,t){var n,r=e.placement,o=e.theme,a=o.borderRadius,i=o.spacing,c=o.colors;return Un((Hn(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Hn(n,"position","absolute"),Hn(n,"width","100%"),Hn(n,"zIndex",1),n),t?{}:{backgroundColor:c.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:i.menuGutter,marginTop:i.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Un({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors;return Un({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,a=e.cropWithEllipsis;return Un({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors,i=e.isFocused;return Un({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:i?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:Pa,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.theme,i=a.spacing,c=a.colors;return Un({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?c.primary:r?c.primary25:"transparent",color:n?c.neutral20:o?c.neutral0:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?c.primary:c.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return Un({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,a=r.colors;return Un({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,a=e.selectProps.controlShouldRenderValue;return Un({alignItems:"center",display:r&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var ji,Ti={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}},Ai={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ua(),captureMenuScroll:!ua(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Un({ignoreCase:!0,ignoreAccents:!0,stringify:di,trim:!0,matchFrom:"any"},ji),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,c=n.matchFrom,s=i?li(t):t,u=i?li(a(e)):a(e);return r&&(s=s.toLowerCase(),u=u.toLowerCase()),o&&(s=ui(s),u=si(u)),"start"===c?u.substr(0,s.length)===s:u.indexOf(s)>-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 Ii(e,t,n,r){return{type:"option",data:t,isDisabled:Zi(e,t,n),isSelected:Hi(e,t,n),label:Fi(e,t),value:Li(e,t),index:r}}function Mi(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Ii(e,n,t,r)})).filter((function(t){return Ri(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=Ii(e,n,t,r);return Ri(e,a)?a:void 0})).filter(ha)}function Ni(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,tr(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Ri(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,c=t.value;return(!Ui(e)||!a)&&Bi(e,{label:i,value:c,data:o},r)}var Fi=function(e,t){return e.getOptionLabel(t)},Li=function(e,t){return e.getOptionValue(t)};function Zi(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Hi(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Li(e,t);return n.some((function(t){return Li(e,t)===r}))}function Bi(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Ui=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Wi=1,Vi=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&&Xn(e,t)}(a,e);var t,n,r,o=er(a);function a(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,a=o.closeMenuOnSelect,i=o.isMulti,c=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:c}),a&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=n.name,i=t.state.selectValue,c=o&&t.isOptionSelected(e,i),s=t.isOptionDisabled(e,i);if(c){var u=t.getOptionValue(e);t.setValue(i.filter((function(e){return t.getOptionValue(e)!==u})),"deselect-option",e)}else{if(s)return void t.ariaOnChange(e,{action:"select-option",option:e,name:a});o?t.setValue([].concat(tr(i),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),a=r.filter((function(e){return t.getOptionValue(e)!==o})),i=ma(n,a,a[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(ma(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),a=ma(e,o,o[0]||null);t.onChange(a,{action:"pop-value",removedValue:r})},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 ea.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return Fi(t.props,e)},t.getOptionValue=function(e){return Li(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=Di[e](n,r);o.boxSizing="border-box";var a=t.props.styles[e];return a?a(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Un(Un({},Ka),e.components);var e},t.buildCategorizedOptions=function(){return Mi(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Ni(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:Un({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&&oa(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return Ui(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,i=n.inputValue,c=n.isClearable,s=n.isDisabled,u=n.menuIsOpen,l=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,f=t.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(s||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():c&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!d||!h||p&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):c&&a&&t.clearValue();break;case" ":if(i)return;if(!u){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++Wi),t.state.selectValue=ta(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.buildFocusableOptions(),r=n.indexOf(t.state.selectValue[0]);t.state.focusedOption=n[r]}return t}return t=a,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&sa(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&&(sa(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var c=a.indexOf(r[0]);c>-1&&(i=c)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Ti):Un(Un({},Ti),this.props.theme):Ti}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,c=this.props,s=c.isMulti,u=c.isRtl,l=c.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:u,options:l,selectOption:a,selectProps:c,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Zi(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Hi(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Bi(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,i=e.form,c=e.menuIsOpen,s=e.required,u=this.getComponents().Input,l=this.state,d=l.inputIsHidden,p=l.ariaSelection,f=this.commonProps,h=r||this.getElementId("input"),m=Un(Un(Un({"aria-autocomplete":"list","aria-expanded":c,"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":s,role:"combobox"},c&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?k.createElement(u,Gn({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:i,type:"text",value:o},m)):k.createElement(fi,Gn({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Qo,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:i,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,c=t.Placeholder,s=this.commonProps,u=this.props,l=u.controlShouldRenderValue,d=u.isDisabled,p=u.isMulti,f=u.inputValue,h=u.placeholder,m=this.state,g=m.selectValue,v=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!l)return f?null:k.createElement(c,Gn({},s,{key:"placeholder",isDisabled:d,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return g.map((function(t,i){var c=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return k.createElement(n,Gn({},s,{components:{Container:r,Label:o,Remove:a},isFocused:c,isDisabled:d,key:u,index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(f)return null;var b=g[0];return k.createElement(i,Gn({},s,{data:b,isDisabled:d}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(e,Gn({},t,{innerProps:i,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;return e&&o?k.createElement(e,Gn({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return k.createElement(n,Gn({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(e,Gn({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,i=t.MenuPortal,c=t.LoadingMessage,s=t.NoOptionsMessage,u=t.Option,l=this.commonProps,d=this.state.focusedOption,p=this.props,f=p.captureMenuScroll,h=p.inputValue,m=p.isLoading,g=p.loadingMessage,v=p.minMenuHeight,y=p.maxMenuHeight,b=p.menuIsOpen,w=p.menuPlacement,x=p.menuPosition,O=p.menuPortalTarget,S=p.menuShouldBlockScroll,P=p.menuShouldScrollIntoView,_=p.noOptionsMessage,E=p.onMenuScrollToTop,C=p.onMenuScrollToBottom;if(!b)return null;var D,j=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,i=t.isSelected,c=t.label,s=t.value,p=d===o,f=a?void 0:function(){return e.onOptionHover(o)},h=a?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),g={id:m,onClick:h,onMouseMove:f,onMouseOver:f,tabIndex:-1};return k.createElement(u,Gn({},l,{innerProps:g,data:o,isDisabled:a,isSelected:i,key:m,label:c,type:r,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())D=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,a=t.options,i=t.index,c="".concat(e.getElementId("group"),"-").concat(i),s="".concat(c,"-heading");return k.createElement(n,Gn({},l,{key:c,data:o,options:a,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return j(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return j(t,"".concat(t.index))}));else if(m){var T=g({inputValue:h});if(null===T)return null;D=k.createElement(c,l,T)}else{var A=_({inputValue:h});if(null===A)return null;D=k.createElement(s,l,A)}var I={minMenuHeight:v,maxMenuHeight:y,menuPlacement:w,menuPosition:x,menuShouldScrollIntoView:P},M=k.createElement(Oa,Gn({},l,I),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,c=r.maxHeight;return k.createElement(o,Gn({},l,I,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:m,placement:i}),k.createElement(_i,{captureEnabled:f,onTopArrive:E,onBottomArrive:C,lockEnabled:S},(function(t){return k.createElement(a,Gn({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:m,maxHeight:c,focusedOption:d}),D)})))}));return O||"fixed"===x?k.createElement(i,Gn({},l,{appendTo:O,controlElement:this.controlRef,menuPlacement:w,menuPosition:x}),M):M}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=t.required,c=this.state.selectValue;if(i&&!this.hasValue()&&!r)return k.createElement(Ci,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(o){if(n){var s=c.map((function(t){return e.getOptionValue(t)})).join(n);return k.createElement("input",{name:a,type:"hidden",value:s})}var u=c.length>0?c.map((function(t,n){return k.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):k.createElement("input",{name:a,type:"hidden",value:""});return k.createElement("div",null,u)}var l=c[0]?this.getOptionValue(c[0]):"";return k.createElement("input",{name:a,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.isFocused,i=t.selectValue,c=this.getFocusableOptions();return k.createElement(ti,Gn({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:a,selectValue:i,focusableOptions:c}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,i=a.className,c=a.id,s=a.isDisabled,u=a.menuIsOpen,l=this.state.isFocused,d=this.commonProps=this.getCommonProps();return k.createElement(r,Gn({},d,{className:i,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:l}),this.renderLiveRegion(),k.createElement(t,Gn({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:l,menuIsOpen:u}),k.createElement(o,Gn({},d,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),k.createElement(n,Gn({},d,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,c=t.prevWasFocused,s=e.options,u=e.value,l=e.menuIsOpen,d=e.inputValue,p=e.isMulti,f=ta(u),h={};if(n&&(u!==n.value||s!==n.options||l!==n.menuIsOpen||d!==n.inputValue)){var m=l?function(e,t){return Ni(Mi(e,t))}(e,f):[],g=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,f):null,v=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m);h={selectValue:f,focusedOption:v,focusedValue:g,clearFocusValueOnUpdate:!1}}var y=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},b=a,w=i&&c;return i&&!w&&(b={value:ma(p,f,f[0]||null),options:f,action:"initial-input-focus"},w=!c),"initial-input-focus"===(null==a?void 0:a.action)&&(b=null),Un(Un(Un({},h),y),{},{prevProps:e,ariaSelection:b,prevWasFocused:w})}}],n&&Kn(t.prototype,n),r&&Kn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(k.Component);Vi.defaultProps=Ai;var zi=(0,k.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,a=e.defaultValue,i=void 0===a?null:a,c=e.inputValue,s=e.menuIsOpen,u=e.onChange,l=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,f=e.value,h=Yn(e,qn),m=zn((0,k.useState)(void 0!==c?c:n),2),g=m[0],v=m[1],y=zn((0,k.useState)(void 0!==s?s:o),2),b=y[0],w=y[1],x=zn((0,k.useState)(void 0!==f?f:i),2),O=x[0],S=x[1],P=(0,k.useCallback)((function(e,t){"function"==typeof u&&u(e,t),S(e)}),[u]),_=(0,k.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),v(void 0!==n?n:e)}),[l]),E=(0,k.useCallback)((function(){"function"==typeof p&&p(),w(!0)}),[p]),C=(0,k.useCallback)((function(){"function"==typeof d&&d(),w(!1)}),[d]),D=void 0!==c?c:g,j=void 0!==s?s:b,T=void 0!==f?f:O;return Un(Un({},h),{},{inputValue:D,menuIsOpen:j,onChange:P,onInputChange:_,onMenuClose:C,onMenuOpen:E,value:T})}(e);return k.createElement(Vi,Gn({ref:t},n))})),Yi=zi;function qi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qi(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ki=(0,h.injectIntl)((function(e){var t;return(0,R.jsx)("span",Gi(Gi({},e.innerProps),{},{children:(0,R.jsx)(pe,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t})),"data-cy":"btn-clear"})}))}));var Xi=i(46076);function $i(){return $i=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},$i.apply(this,arguments)}const Qi=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class Ji extends k.Component{constructor(...e){super(...e),this._targetNode=k.createRef(),this._elementNode=k.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,k.isValidElement)(e)||(e=null),(0,k.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new Xi(e),this._registerEventListeners()}_destroyTetherInstance(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}_registerEventListeners(){this.on("update",((...e)=>this.props.onUpdate&&this.props.onUpdate.apply(this,e))),this.on("repositioned",((...e)=>this.props.onRepositioned&&this.props.onRepositioned.apply(this,e)))}get _renderNode(){const{renderElementTo:e}=this.props;return"string"==typeof e?document.querySelector(e):e||document.body}_destroy(){this._destroyTetherInstance(),this._removeContainer()}_createContainer(){this._removeContainer();const{renderElementTag:e="div",className:t}=this.props;this._elementParentNode=document.createElement(e),this._elementParentNode.className=t||""}_addContainerToDOM(){this._elementParentNode&&this._renderNode&&this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.append(this._elementParentNode)}_removeContainer(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.remove()}_update(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}_updateTether(){var e;const t=this.props,{id:n,style:r}=t,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(t,Qi),a=$i({target:this._targetNode.current,element:this._elementParentNode},o),i=n||"";if(this._elementParentNode&&this._elementParentNode.id!==i&&(this._elementParentNode.id=i),this._elementParentNode&&r){const e=this._elementParentNode.style;for(const t in r)if(e[t]!==r[t]){let n=r[t];n&&(e[t]=n)}}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(a):this._createTetherInstance(a),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?k.createElement(k.Fragment,null,e,t&&this._elementParentNode&&jo.createPortal(t,this._elementParentNode)):null}}var ec,tc,nc,rc,oc,ac,ic,cc,sc,uc,lc,dc,pc;function fc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fc(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mc=E.ZP.span.withConfig({displayName:"StyledClickableWrapper"})(ec||(ec=(0,P.Z)(["\n pointer-events: auto;\n cursor: pointer;\n"]))),gc=E.ZP.div.withConfig({displayName:"StyledReactSelectOuterWrapper"})(tc||(tc=(0,P.Z)(["\n outline-style: none;\n cursor: ",";\n"])),(function(e){return e.immutable?"not-allowed":"default"})),vc=E.ZP.div.withConfig({displayName:"StyledReactSelectInnerWrapper"})(nc||(nc=(0,P.Z)(["\n outline-style: none;\n"]))),yc=E.ZP.div.withConfig({displayName:"StyledIndicatorsContainerWrapper"})(rc||(rc=(0,P.Z)(["\n position: relative;\n z-index: 1;\n background-color: ",";\n border-radius: ",";\n ",";\n"])),C.FS.color("paper"),C.FS.radii("form"),(function(e){return e.isTopAligned&&(0,E.iv)(oc||(oc=(0,P.Z)(["\n position: absolute;\n right: 0;\n top: 0;\n "])))})),bc=(0,E.ZP)(Ji).withConfig({displayName:"StyledTether"})(ac||(ac=(0,P.Z)(["\n && {\n z-index: 1;\n }\n"]))),wc=(E.ZP.div.withConfig({displayName:"StyledNonTether"})(ic||(ic=(0,P.Z)(["\n position: absolute;\n padding-bottom: ",";\n z-index: 2; // higher than StyledTether and StyledIndicatorsContainerWrapper\n"])),C.bA.space(1.5)),(0,E.ZP)(Ka.Menu).withConfig({displayName:"StyledMenu"})(cc||(cc=(0,P.Z)(["\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}))),xc=E.ZP.div.withConfig({displayName:"StyledMoreOptionsAvailable"})(sc||(sc=(0,P.Z)(["\n && {\n ","\n cursor: default;\n padding: "," ",";\n }\n"])),(0,C.wy)({color:C.FS.color("signal.info"),lineHeight:"normal"}),C.bA.space(-.5),C.bA.space(-.2)),Oc=E.ZP.div.withConfig({displayName:"StyledSingleValueWrapper"})(uc||(uc=(0,P.Z)(["\n overflow-x: hidden;\n position: relative;\n color: ",";\n"])),(function(e){return e.isDisabled?C.FS.color("text"):"inherit"})),kc=E.ZP.div.withConfig({displayName:"StyledDropdownIndicatorWrapper"})(lc||(lc=(0,P.Z)(["\n && {\n position: relative;\n width: 25px;\n height: 25px;\n display: flex;\n align-items: center;\n }\n"]))),Sc=E.ZP.div.withConfig({displayName:"StyledMultiValueWrapper"})(dc||(dc=(0,P.Z)(["\n overflow: hidden;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n"]))),Pc=E.ZP.span.withConfig({displayName:"StyledMultiValueLabelWrapper"})(pc||(pc=(0,P.Z)(["\n overflow: hidden;\n text-overflow: ellipsis;\n"]))),_c=function(e){var t=e.colors.paper,n=e.colors.backgroundItemHover,r=e.colors.backgroundItemSelected,o=e.colors.text,a=e.colors.borderSelect,i=e.colors.textDisabled,c=e.radii.form,s=C.bA.space(-1)({theme:e}),u=C.bA.space(-2)({theme:e}),l={color:o,fontFamily:e.fontFamily.regular,fontSize:"".concat(e.fontSize.base,"rem"),fontWeight:e.fontWeights.regular,lineHeight:e.lineHeights.regular},d=function(e){return e.isMulti&&(e.selectProps.hasAdvancedSearch||e.selectProps.hasDocsTreeSearch)},p=function(t){return hc(hc({},t),{},{color:e.colors.signal.info,cursor:"default",textAlign:"left"})};return{container:function(e,t){return hc(hc(hc({},e),l),{},{outline:0})},control:function(t,n){return hc(hc({},t),{},{backgroundColor:e.colors.paper,borderWidth:0,boxShadow:null,minHeight:0,flexWrap:"nowrap",position:"relative",display:d(n)?"block":t.display})},noOptionsMessage:p,loadingMessage:p,option:function(o,a){var i=t;return a.isSelected?i=r:a.isFocused&&(i=n),hc(hc({},o),{},{color:e.colors.text,backgroundColor:i,cursor:"pointer",":active":{backgroundColor:a.isSelected?r:n}})},indicatorsContainer:function(e,t){return hc(hc({},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),hc(hc(hc({},e),{},{minHeight:t.isDisabled?"0":"2.6rem",paddingTop:t.isDisabled?"0":"2px",paddingBottom:t.isDisabled?"0":"2px"},d(t)?{width:"calc(100% - ".concat(n,"px)")}:{}),{},{overflow:"hidden",margin:"0"})},menu:function(t,n){return{backgroundColor:e.colors.paper,boxShadow:"0 0 6px ".concat(a),borderRadius:c}},menuList:function(e,t){return hc(hc(hc({},e),l),{},{border:"1px solid ".concat(a),borderRadius:c,padding:"0"})},multiValue:function(e,t){return hc(hc({},e),{},{borderRadius:c,margin:"".concat(s," ").concat(u," 0 0"),justifyContent:"space-between"},d(t)&&!t.isDisabled?{width:"100%",maxWidth:"300px"}:{})},multiValueLabel:function(e,t){return hc(hc({},e),{},{borderRadius:c,fontSize:"inherit",lineHeight:1.8})},multiValueRemove:function(e,t){return hc(hc({},e),{},{borderRadius:0,color:o,display:t.isDisabled?"none":"flex",":hover":hc(hc({},e[":hover"]),{},{color:o,backgroundColor:r,cursor:"pointer"})})},singleValue:function(e,t){return hc(hc({},e),{},{color:t.isDisabled?i:o,margin:0})},valueContainer:function(e,t){return hc(hc({},e),{},{padding:0,margin:0})}}};function Ec(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ec(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ec(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Dc=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,R.jsx)(Ka.DropdownIndicator,Cc(Cc({},e),{},{children:(0,R.jsx)(kc,{children:(0,R.jsx)(pe,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};O().shape({key:O().any.isRequired,display:O().string});var jc,Tc,Ac;function Ic(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ic(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ic(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nc=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},Rc=function(e,t){return function(n){n.stopPropagation(),e(t)}},Fc=function(e,t){return function(n){n.stopPropagation(),e(t)}},Lc=function(e){e.stopPropagation()};const Zc=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,a=t.isDisabled,i=t.hasDocsTreeSearch,c=t.hasAdvancedSearch,s=t.createPermission,u=t.value,l=t.isMulti,d=t.inputValue,p=l&&(c||i);return(0,R.jsx)(yc,{isTopAligned:p,children:(0,R.jsxs)(Ka.IndicatorsContainer,Mc(Mc({},e),{},{children:[e.children,n&&!a&&(0,R.jsx)("span",{onTouchEnd:Lc,onMouseDown:Rc(n,u),children:jc||(jc=(0,R.jsx)(pe,{icon:"folder",tabIndex:-1,"data-cy":"btn-docsTreeSearch"}))}),r&&!a&&(0,R.jsx)("span",{onTouchEnd:Lc,onMouseDown:Nc(r,d,u),children:Tc||(Tc=(0,R.jsx)(pe,{icon:"search",tabIndex:-1,"data-cy":"btn-advancedSearch"}))}),s&&!a&&(0,R.jsx)("span",{onTouchEnd:Lc,onMouseDown:Fc(o,u),children:Ac||(Ac=(0,R.jsx)(pe,{icon:"plus",tabIndex:-1,"data-cy":"btn-remoteCreate"}))})]}))})};var Hc;const Bc=function(){return Hc||(Hc=(0,R.jsx)("span",{children:(0,R.jsx)(H,{size:"1.8rem"})}))};var Uc="tocco-app",Wc=i(93379),Vc=i.n(Wc),zc=i(7795),Yc=i.n(zc),qc=i(90569),Gc=i.n(qc),Kc=i(3565),Xc=i.n(Kc),$c=i(19216),Qc=i.n($c),Jc=i(44589),es=i.n(Jc),ts=i(16721),ns={};ns.styleTagTransform=es(),ns.setAttributes=Xc(),ns.insert=Gc().bind(null,"head"),ns.domAPI=Yc(),ns.insertStyleElement=Qc();Vc()(ts.Z,ns);ts.Z&&ts.Z.locals&&ts.Z.locals;var rs,os=i(9198),as=i.n(os),is=E.ZP.span.withConfig({displayName:"StyledChildrenWrapper"})(rs||(rs=(0,P.Z)(["\n cursor: pointer;\n user-select: none;\n"]))),cs=S().forwardRef((function(e,t){var n=e.children,r=e.onOpen;return(0,R.jsx)(is,{onClick:r,ref:t,children:n})}));cs.propTypes={children:O().any,onOpen:O().func};const ss=cs;i(86),i(77349),i(11640);var us=i(19013),ls=i(13882),ds=i(83946);i(78343),i(85425),i(546),i(92300);i(51820),i(58545),i(8791);i(63500),i(21593);i(99890),i(37950);i(36948);i(3151);var ps=i(12274);i(24262),i(86573);i(84129),i(56605);i(584);i(91857);Math.ceil,Math.round,Math.floor;i(83894),i(4135);i(94431);i(43703);i(10876),i(38148);i(67090);var fs=i(95639);i(84314),i(44941),i(52149);i(4810);i(91218);i(55855),i(20466);i(30890);var hs=i(85817);i(90911);var ms=i(39159);i(78966);var gs=i(77881);i(28789);i(95570);i(42699),i(313),i(71381),i(96843);var vs=i(63191);function ys(e,t,n){return(0,ls.Z)(2,arguments),(0,ps.default)((0,vs.default)(e,t,new Date,n))}i(49160),i(86117);i(60792);i(24257),i(7069);i(65834);var bs=i(23855);i(92311);var ws=i(37042);var xs=i(4543),Os=(i(66623),i(11503),i(39880));i(44749);var ks=i(69119);i(54559);i(58793);i(77982),i(59319);var Ss={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}};const Ps=function(e,t,n){var r,o=null!=n&&n.addSuffix?Ss[e].withPreposition:Ss[e].standalone;return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:"vor "+r:r};var _s=i(49526);const Es={date:(0,_s.Z)({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,_s.Z)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,_s.Z)({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};var Cs={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"};const Ds=function(e,t,n,r){return Cs[e]};var js=i(88486),Ts={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},As={narrow:Ts.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:Ts.wide};const Is={ordinalNumber:function(e){return Number(e)+"."},era:(0,js.Z)({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:(0,js.Z)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,js.Z)({values:Ts,formattingValues:As,defaultWidth:"wide"}),day:(0,js.Z)({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},defaultWidth:"wide"}),dayPeriod:(0,js.Z)({values:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},defaultFormattingWidth:"wide"})};var Ms=i(76723),Ns=i(60974),Rs={ordinalNumber:(0,Ns.Z)({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:(0,Ms.Z)({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:"any"}),quarter:(0,Ms.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,Ms.Z)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/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:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,Ms.Z)({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,Ms.Z)({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:"any"})};const Fs={code:"de",formatDistance:Ps,formatLong:Es,formatRelative:Ds,localize:Is,match:Rs,options:{weekStartsOn:1,firstWeekContainsDate:4}};var Ls=i(41695),Zs={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}};const Hs=function(e,t,n){var r,o=Zs[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"dans "+r:"il y a "+r:r};var Bs={ordinalNumber:function(e,t){var n=Number(e),r=null==t?void 0:t.unit;if(0===n)return"0";return n+(1===n?r&&["year","week","hour","minute","second"].includes(r)?"ère":"er":"ème")},era:(0,js.Z)({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},defaultWidth:"wide"}),quarter:(0,js.Z)({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,js.Z)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},defaultWidth:"wide"}),day:(0,js.Z)({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:(0,js.Z)({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})};const Us=Bs;var Ws={ordinalNumber:(0,Ns.Z)({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:(0,Ms.Z)({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:(0,Ms.Z)({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,Ms.Z)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,Ms.Z)({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,Ms.Z)({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})};const Vs=Ws;var zs={date:(0,_s.Z)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,_s.Z)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,_s.Z)({formats:{full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var Ys={lastWeek:"eeee 'la semaine dernière à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'la semaine prochaine à' p",other:"P"};const qs=function(e,t,n,r){return Ys[e]};const Gs={code:"fr-CH",formatDistance:Hs,formatLong:zs,formatRelative:qs,localize:Us,match:Vs,options:{weekStartsOn:1,firstWeekContainsDate:4}};var Ks={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}};const Xs=function(e,t,n){var r,o=Ks[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"tra "+r:r+" fa":r};const $s={date:(0,_s.Z)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,_s.Z)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,_s.Z)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};var Qs=i(59025);function Js(e,t,n){(0,ls.Z)(2,arguments);var r=(0,Qs.Z)(e,n),o=(0,Qs.Z)(t,n);return r.getTime()===o.getTime()}var eu=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function tu(e){return"'"+eu[e]+" alle' p"}var nu={lastWeek:function(e,t,n){var r=e.getUTCDay();return Js(e,t,n)?tu(r):function(e){return 0===e?"'domenica scorsa alle' p":"'"+eu[e]+" scorso alle' p"}(r)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(e,t,n){var r=e.getUTCDay();return Js(e,t,n)?tu(r):function(e){return 0===e?"'domenica prossima alle' p":"'"+eu[e]+" prossimo alle' p"}(r)},other:"P"};const ru=function(e,t,n,r){var o=nu[e];return"function"==typeof o?o(t,n,r):o};var ou={ordinalNumber:function(e,t){var n=Number(e);return String(n)},era:(0,js.Z)({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:(0,js.Z)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,js.Z)({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:(0,js.Z)({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},defaultWidth:"wide"}),dayPeriod:(0,js.Z)({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})};const au=ou;var iu={ordinalNumber:(0,Ns.Z)({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,Ms.Z)({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:(0,Ms.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,Ms.Z)({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,Ms.Z)({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:(0,Ms.Z)({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})};const cu={code:"it",formatDistance:Xs,formatLong:$s,formatRelative:ru,localize:au,match:iu,options:{weekStartsOn:1,firstWeekContainsDate:4}};var su=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},uu=function(e){if(!e&&0!==e)return{hours:"",minutes:"",seconds:""};var t=su(e/1e3%60,3);e-=1e3*t;var n=parseInt(e/6e4%60);e-=1e3*n*60;var r=parseInt(e/36e5);return(n<0||r<0)&&(t=Math.abs(t)),r<0&&(n=Math.abs(n)),{hours:r,minutes:n,seconds:t}},lu=function(e){switch(e){case"fr":return Gs;case"en":return Ls.Z;case"it":return cu;default:return Fs}},du=function(e){return lu(e).formatLong.date({width:"short"})},pu=function(e){return du(e).replace(/[/.]/g,"")};const fu=uu,hu=function(e){var t=uu(e),n=t.hours,r=t.minutes,o=t.seconds,a="".concat(n.toString().padStart(2,"0"),":").concat(r.toString().padStart(2,"0")),i="".concat(a,":").concat(o.toFixed(3).padStart(6,"0"));return o?i:a},mu=lu,gu=du,vu=function(e){return"".concat(du(e)," HH:mm")},yu=pu,bu=function(e){return"".concat(pu(e)," HHmm")},wu=function(e){return e.replace(/y+/,"yy")},xu=function(e){var t=new Date,n=new Date(e);return n=(0,ws.default)(n,(0,hs.default)(t)),n=(0,xs.default)(n,(0,ms.default)(t)),n=function(e,t){(0,ls.Z)(2,arguments);var n=(0,us.default)(e),r=(0,ds.Z)(t);return n.setMilliseconds(r),n}(n=(0,Os.default)(n,0),0),n},Ou=function(e){var t=864e5,n=e-(new Date).getTime();if(n>-864e5){var r=Math.round(n/1e3);return r>-60?{diffValue:r,unit:"second"}:r>-3600?{diffValue:Math.ceil(r/60),unit:"minute"}:{diffValue:Math.ceil(r/3600),unit:"hour"}}var o=Math.round(n/t);return o>-30?{diffValue:o,unit:"day"}:o>-365?{diffValue:Math.ceil(o/30),unit:"month"}:{diffValue:Math.ceil(o/365),unit:"year"}};var ku=function(){(0,os.registerLocale)("en",mu("en")),(0,os.registerLocale)("en-US",mu("en")),(0,os.registerLocale)("de-CH",mu("de-CH")),(0,os.registerLocale)("de-DE",mu("de-DE")),(0,os.registerLocale)("de",mu("de")),(0,os.registerLocale)("fr",mu("fr")),(0,os.registerLocale)("fr-CH",mu("fr")),(0,os.registerLocale)("it",mu("it")),(0,os.registerLocale)("it-CH",mu("it")),(0,os.setDefaultLocale)("de")};ku();(0,E.Zz)((0,h.injectIntl)((function(e){var t,n=e.children,r=e.value,o=e.onChange,a=e.intl,i=a.locale,c=(0,k.useRef)(null),s=(0,k.useState)(!1),u=(0,B.Z)(s,2),l=u[0],d=u[1],p=function(e){var t,n;(d(e),null!==(t=c.current)&&void 0!==t&&t.setPreSelection)&&(null===(n=c.current)||void 0===n||n.setPreSelection(r))};return(0,R.jsx)(as(),{ref:c,selected:r,preSelection:null,onChange:o,showTimeInput:!1,dateFormat:"P",showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,open:l,onFocus:function(){p(!0)},onClickOutside:function(){p(!1)},locale:i,enableTabLoop:!1,customInput:(0,R.jsx)(ss,{onOpen:function(){p(!0)},children:n}),todayButton:(t="client.component.datePicker.todayLabel",a.formatMessage({id:t}))})})));var Su,Pu,_u,Eu,Cu,Du,ju=C.FS.color("secondaryLight"),Tu=C.FS.color("paper"),Au=C.FS.color("secondary"),Iu=C.FS.radii("form"),Mu=(0,E.vJ)(Su||(Su=(0,P.Z)(["\n .react-datepicker-popper {\n && {\n z-index: 5;\n margin: 0;\n }\n }\n\n .react-datepicker-wrapper {\n width: 100%;\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 ","\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--selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\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\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 .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:hover,\n .react-datepicker__month-text:hover,\n .react-datepicker__quarter-text:hover,\n .react-datepicker__year-text:hover {\n border-color: ",";\n background-color: ",";\n border-radius: 50%;\n color: ",";\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 .react-datepicker__time .react-datepicker__time-box {\n height: 100%;\n border-radius: ",";\n\n ul.react-datepicker__time-list {\n height: 100% !important;\n }\n\n ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected {\n background-color: ",";\n }\n\n ul.react-datepicker__time-list li.react-datepicker__time-list-item {\n height: auto;\n }\n }\n\n .react-datepicker__time-container--with-today-button {\n border-color: ",";\n border-radius: ",";\n right: -88px;\n top: -1px;\n height: 100%;\n }\n\n .react-datepicker__header--time {\n display: none;\n }\n }\n }\n"])),C.FS.radii("form"),Iu,ju,(0,C.wy)(),(0,C.wy)(),ju,Iu,Iu,C.bA.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",Tu,C.bA.font(1),C.FS.fontWeight("bold"),(0,C.wy)({fontWeight:C.FS.fontWeight("bold")}),Tu,C.bA.font(-2),C.bA.space(-1.8),Au,Au,Au,ju,ju,ju,Au,(0,C.wy)(),Tu,C.bA.space(-.5),C.FS.color("backgroundItemHover"),Iu,C.bA.space(-.5),C.FS.color("border"),C.FS.radii("form"),C.bA.space(-1),C.bA.space(-1),C.bA.font(1),C.FS.color("paper"),C.FS.fontWeight("bold"),C.bA.space(-1),Tu,C.bA.font(0),ju,ju,Tu,C.FS.color("text"),C.FS.color("text"),Tu,ju,C.FS.color("backgroundItemHover"),C.FS.color("textDisabled"),C.FS.radii("form"),Au,C.FS.color("border"),C.FS.radii("form")),Nu=(0,E.vJ)(Pu||(Pu=(0,P.Z)(["\n /****** Global text colors *****/\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"])),C.FS.color("signal.success"),C.FS.color("signal.info"),C.FS.color("signal.warning"),C.FS.color("signal.danger"),C.FS.color("textDisabled")),Ru=(0,E.vJ)(_u||(_u=(0,P.Z)(["\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"])),C.FS.color("backgroundScrollbar"),C.FS.color("backgroundScrollbarHover"),C.FS.color("backgroundScrollbar"));const Fu=function(){return(0,R.jsxs)(R.Fragment,{children:[Eu||(Eu=(0,R.jsx)(Nu,{})),Cu||(Cu=(0,R.jsx)(Mu,{})),Du||(Du=(0,R.jsx)(Ru,{}))]})};function Lu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lu(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Hu=function(e){var t=e.selectProps,n=e.children;return(0,R.jsx)(bc,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,R.jsx)("div",{ref:e})},renderElement:function(r){return(0,R.jsx)("div",{ref:r,className:Uc,children:(0,R.jsx)(wc,Zu(Zu({},un()(e,["innerRef"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,children:n}))})}})};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 Uu(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){(0,I.Z)(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}const Wu=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,R.jsxs)(Ka.MenuList,Uu(Uu({},e),{},{className:"MenuList",children:[n,r&&(0,R.jsx)(xc,{children:o})]}))};var Vu,zu,Yu,qu,Gu,Ku=i(3210),Xu=i(40342),$u=(0,E.iv)(Vu||(Vu=(0,P.Z)(["\n display: inline-block;\n color: unset; // 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"])),C.FS.lineHeight("regular"),C.FS.fontWeight("regular"),C.bA.space(-3),C.bA.space(-1.5),C.FS.radii("statusLabel")),Qu=(0,E.ZP)(Dt.Fe).withConfig({displayName:"StyledHtmlFormatter"})(zu||(zu=(0,P.Z)(["\n &&& {\n ","\n margin: 0 0 ",";\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 }\n\n .label-info {\n background-color: "," !important; // nice2 reset\n }\n\n .label-warning {\n background-color: "," !important; // nice2 reset\n }\n\n .label-success {\n background-color: "," !important; // nice2 reset\n }\n\n .label-neutral {\n ","\n background-color: "," !important; // nice2 reset\n }\n\n .label-status {\n border-radius: ",";\n padding: "," ",";\n\n &.filled {\n color: ",";\n background-color: ",";\n }\n }\n }\n"])),(function(e){return(0,Dt.Ly)(e,"html")}),C.bA.space(-1),$u,(function(e){var t=e.theme;return(0,Xu.$n)(.35,t.colors.signal.danger)}),(function(e){var t=e.theme;return(0,Xu.$n)(.35,t.colors.signal.info)}),(function(e){var t=e.theme;return(0,Xu.$n)(.35,t.colors.signal.warning)}),(function(e){var t=e.theme;return(0,Xu.$n)(.35,t.colors.signal.success)}),$u,C.FS.color("signal.neutral"),C.FS.radii("statusLabel"),C.bA.space(-2.1),C.bA.space(0),C.FS.color("paper"),C.FS.color("signal.info")),Ju=16,el=E.ZP.div.withConfig({displayName:"StyledBoxWrapper"})(Yu||(Yu=(0,P.Z)(["\n && {\n pointer-events: none; // prevent flickering of tooltip\n background-color: ",";\n max-width: 400px;\n z-index: 100000010;\n padding: ",";\n }\n"])),C.rS.color("backgroundPopover"),(function(e){return e.rimless?"0":C.bA.space(0)})),tl=E.ZP.div.withConfig({displayName:"StyledBox"})(qu||(qu=(0,P.Z)(["\n && {\n ",";\n\n &,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n "," {\n color: ",";\n }\n }\n"])),(function(e){return e.isPlainHtml&&(0,Dt.Ly)(e,"html")}),Qu,C.rS.color("paper")),nl=E.ZP.i.withConfig({displayName:"StyledArrow"})(Gu||(Gu=(0,P.Z)(["\n position: absolute;\n width: ","px;\n height: ","px;\n left: 0;\n\n &[data-popper-placement*='bottom'] {\n top: ","px;\n\n &:before {\n border-width: 0 ","px ","px ","px;\n border-color: transparent transparent "," transparent;\n }\n }\n\n &[data-popper-placement*='top'] {\n bottom: ","px;\n\n &:before {\n border-width: ","px ","px 0 ","px;\n border-color: "," transparent transparent transparent;\n }\n }\n\n &[data-popper-placement*='right'] {\n left: -","px;\n top: -6px !important;\n\n &:before {\n border-width: ","px;\n border-color: transparent "," transparent transparent;\n }\n }\n\n &:before {\n content: '';\n display: block;\n border-style: solid;\n width: 0;\n height: 0;\n }\n"])),Ju,8,-8,8,8,8,C.rS.color("backgroundPopover"),-6.4,8,8,8,C.rS.color("backgroundPopover"),Ju,8,C.rS.color("backgroundPopover"));function rl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ol(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rl(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var al=function(e){var t=e.children,n=e.content,r=e.isPlainHtml,o=e.rimless,a=(0,k.useState)(null),i=(0,B.Z)(a,2),c=i[0],s=i[1],u=(0,k.useState)(null),l=(0,B.Z)(u,2),d=l[0],p=l[1],f=(0,k.useState)(null),h=(0,B.Z)(f,2),m=h[0],g=h[1],v=(0,k.useState)(!1),y=(0,B.Z)(v,2),b=y[0],w=y[1],x=[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:10}},{name:"arrow",options:{element:m}}],O=(0,Ku.usePopper)(c,d,{modifiers:x}),S=O.styles,P=O.attributes;return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("span",{ref:s,onMouseOut:function(){w(!1)},onMouseOver:function(){w(!0)},children:t}),b&&n&&To().createPortal((0,R.jsxs)(el,ol(ol({ref:p,style:S.popper,rimless:o},P.popper),{},{className:Uc,children:[(0,R.jsx)(tl,{isPlainHtml:r,children:n}),(0,R.jsx)(nl,ol({ref:g,style:S.arrow},P.popper))]})),document.body)]})};al.defaultProps={isPlainHtml:!0,rimless:!1};const il=al;const cl=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,a=o.tooltips,i=o.loadTooltip,c=o.DetailLink,s=Rn()(a,t.key,null),u=(0,R.jsx)("span",{style:n.css,children:r}),l=c?(0,R.jsx)(mc,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,R.jsx)(c,{entityKey:t.key,tabIndex:-1,children:(0,R.jsx)(il,{content:s?(0,R.jsx)("div",{dangerouslySetInnerHTML:{__html:Ct.sanitizeHtml(s)}}):null,children:(0,R.jsx)("span",{onMouseOver:function(){return i&&!s&&i(t.key)},children:u})})})}):u;return(0,R.jsx)(Pc,{children:l})};var sl=i(47037),ul=i.n(sl),ll=i(14176),dl=i.n(ll),pl=i(18446),fl=i.n(pl),hl=i(68718),ml=i.n(hl),gl=function(e){return"object"===(0,In.Z)(e)&&null!==e};const vl=function e(t,n){return ml()(t,(function(t,r,o){fl()(r,n[o])||(t[o]=gl(r)&&gl(n[o])?e(r,n[o]):r)}))},yl=function(e){return e&&Array.isArray(e)?e.length>0?e[0]:[]:e},bl=function(e){return e?e.replace(/­/g,""):e};function wl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wl(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ol=["linkComp"],kl=function(e,t){var n=vl(e,t),r=dl()(un()(n,Ol),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},Sl=(0,k.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&ul()(n)?(0,R.jsx)(mc,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,R.jsx)(t,{entityKey:n,children:r})}):r}),kl);Sl.propTypes={children:O().node,entityKey:O().any,linkComp:O().func};const Pl=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,a=n.tooltips,i=n.loadTooltip,c=n.DetailLink,s=Rn()(a,t.key,null);return(0,R.jsx)(Ka.SingleValue,xl(xl({},e),{},{children:(0,R.jsx)(Oc,{onMouseOver:function(){return i&&!s&&i(t.key)},isDisabled:r,children:(0,R.jsx)(il,{content:s?(0,R.jsx)("div",{dangerouslySetInnerHTML:{__html:Ct.sanitizeHtml(s)}}):null,children:(0,R.jsx)(Sl,{linkComp:c,entityKey:t.key,children:o})})})}))};function _l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var El=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const Cl=function(e){var t=e.selectProps,n=e.hasValue,r=e.children,o=t.isMulti,a=t.hasAdvancedSearch,i=t.hasDocsTreeSearch,c=t.isDisabled;if(!(o&&(a||i)))return(0,R.jsx)(Ka.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_l(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var s=k.Children.map(r,(function(e){return El(e)?e:null})),u=k.Children.map(r,(function(e){return El(e)?null:e})),l=c&&n;return(0,R.jsxs)(R.Fragment,{children:[!l&&(0,R.jsx)(R.Fragment,{children:s}),(0,R.jsx)(Sc,{children:u})]})};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 jl(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){(0,I.Z)(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}(0,E.Zz)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,a=e.isMulti,i=e.loadTooltip,c=e.moreOptionsAvailable,s=e.moreOptionsAvailableText,u=e.noResultsText,l=e.noResultsComp,d=e.onChange,p=e.openDocsTreeSearch,f=e.openAdvancedSearch,h=e.options,m=e.searchOptions,g=e.theme,v=e.tooltips,y=e.value,b=e.DetailLink,w=e.createPermission,x=e.openRemoteCreate,O=(0,k.useRef)(null),S=(0,k.useRef)(null),P=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientWidth)||300},_=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientHeight)||35},E=(0,k.useState)(P()),C=(0,B.Z)(E,2),D=C[0],j=C[1],T=(0,k.useState)(_()),A=(0,B.Z)(T,2),I=A[0],M=A[1],N=(0,k.useState)(!1),F=(0,B.Z)(N,2),L=F[0],Z=F[1],H=function(e){t&&t(e)},U=(0,k.useCallback)(m||function(){},[]),W=(0,k.useCallback)(Zn()(U,800,{trailing:!0}),[]),V=Boolean(f),z=Boolean(p),Y=Boolean(w);return(0,R.jsx)(gc,{tabIndex:"-1",id:n,onFocus:function(){O.current.focus(),setTimeout((function(){j(P()),M(_())}),0)},children:(0,R.jsx)(vc,{ref:S,children:(0,R.jsx)(Yi,jl(jl({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:D,wrapperHeight:I,components:{ClearIndicator:Ki,LoadingIndicator:Bc,DropdownIndicator:Dc,IndicatorsContainer:Zc,IndicatorSeparator:null,Menu:Hu,MenuList:Wu,MultiValueLabel:cl,SingleValue:Pl,ValueContainer:Cl},noOptionsMessage:function(e){return u||("function"==typeof l?(0,R.jsx)(l,jl({},e)):" - ")},isMulti:a,closeMenuOnSelect:!a,isSearchable:!0},m?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,tabSelectsValue:!1,value:y||null,onChange:function(e){d(e),H(e)},onInputChange:function(e,t){var n=t.action;m&&e&&W(e,y),""===e&&"input-change"===n&&H(y)},options:(0,ve.Z)(h||[]),onKeyDown:function(e){"Enter"===e.key&&L&&(e.stopPropagation(),O.current&&null===O.current.focusedOptionRef&&e.preventDefault())},isLoading:o,isDisabled:r,ref:O,onMenuOpen:function(){H(y),Z(!0)},onMenuClose:function(){Z(!1)},styles:_c(g),loadTooltip:i,tooltips:v,DetailLink:b,hasDocsTreeSearch:z,openDocsTreeSearch:p,hasAdvancedSearch:V,openAdvancedSearch:f,moreOptionsAvailable:c,moreOptionsAvailableText:s,blurInputOnSelect:!1,hasCreatePermission:Y,createPermission:w,openRemoteCreate:x,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));var Tl;E.ZP.div.withConfig({displayName:"StyledBoolEdit"})(Tl||(Tl=(0,P.Z)(["\n margin: 5px 0;\n"])));var Al,Il,Ml=function(e){var t=e.value,n=e.breakWords,r=e.className;return(0,R.jsx)(Qu,{dangerouslySetInnerHTML:{__html:Ct.sanitizeHtml(t)},breakWords:n,className:r})};E.ZP.div.withConfig({displayName:"StyledOption"})(Al||(Al=(0,P.Z)(["\n margin: "," 0;\n"])),C.bA.space(-1.4)),E.ZP.span.withConfig({displayName:"StyledLabel"})(Il||(Il=(0,P.Z)(["\n ","\n display: inline-block;\n margin-left: ",";\n vertical-align: middle;\n"])),(0,C.wy)(),C.bA.space(-1.5));i(23279),i(56038);var Nl;E.ZP.div.withConfig({displayName:"StyledEditorWrapper"})(Nl||(Nl=(0,P.Z)(["\n margin-top: ",";\n"])),C.bA.space(-1.5));var Rl,Fl,Ll,Zl=E.ZP.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(Rl||(Rl=(0,P.Z)(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),Hl=E.ZP.div.withConfig({displayName:"StyledDatePickerWrapper"})(Fl||(Fl=(0,P.Z)(["\n &&&& {\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"])),Cn,jn,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),Bl=E.ZP.input.withConfig({displayName:"StyledTimeInput"})(Ll||(Ll=(0,P.Z)(["\n &&&& {\n ","\n }\n"])),jn),Ul="react-datepicker-time__input",Wl="react-datepicker__day",Vl="react-datepicker__input",zl=function(e){return e.classList.contains(Wl)},Yl=function(e){return e.classList.contains(Ul)},ql=function(e){return e.classList.contains(Vl)},Gl=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(Wl,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},Kl=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},Xl=function(e){var t=(0,bs.default)(e);return isNaN(t)?null:t},$l=function(e){return e?e.toISOString():null};const Ql=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,a=n.minDate,i=n.maxDate,c=n.hasTime,s=n.valueToDate,u=void 0===s?Xl:s,l=n.dateToValue,d=void 0===l?$l:l,p=(0,k.useRef)(null),f=(0,k.useState)(!1),h=(0,B.Z)(f,2),m=h[0],g=h[1],v=(0,k.useState)(!1),y=(0,B.Z)(v,2),b=y[0],w=y[1],x=u(e),O=a?u(a):void 0,S=i?u(i):void 0;(0,k.useEffect)((function(){(p.current&&"function"==typeof p.current.setOpen&&p.current.setOpen(m),m)&&document.querySelectorAll("button.react-datepicker__navigation").forEach((function(e){return e.setAttribute("tabindex","-1")}))}),[m]);var P=function(){return g(!1)},_=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(p.current&&"function"==typeof p.current.getPreSelection){var t,n=e?p.current.getPreSelection():null;return(null===(t=p.current.state)||void 0===t?void 0:t.preSelection)||n}return null},E=function(e){p.current&&"function"==typeof p.current.setPreSelection&&p.current.setPreSelection(e)},C=function(){t(null),E(null)},D=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=_(!1);if(n){var r=x||new Date,o=t?function(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,a=void 0===o?0:o,i=t.second,c=void 0===i?0:i;return(0,ws.default)((0,xs.default)((0,Os.default)(e,c),a),r)}(n,{hour:(0,hs.default)(r),minute:(0,ms.default)(r),second:(0,gs.default)(r)}):n;j(o,e)}},j=function(n,r){if(n){var a,i=!e&&Boolean(n),s=null==r||null===(a=r.target)||void 0===a?void 0:a.value,u=!!s&&o.some((function(e){return ys(s,e)})),l=(0,ks.default)(n),f=(0,hs.default)(n)!==(0,hs.default)(l)||(0,ms.default)(n)!==(0,ms.default)(l);(i&&!f||u)&&c&&(n=xu(n)),t(d(n))}else C();var h;c||"click"!==(null==r?void 0:r.type)||(P(),Kl(null===(h=p.current)||void 0===h?void 0:h.input))},T=function(e){if("Tab"===e.key)if(e.shiftKey)if(ql(e.target))setTimeout((function(){return P()}),0);else if(Yl(e.target)){var t;E(x||_(!0)),Gl(null===(t=p.current)||void 0===t||null===(t=t.calendar)||void 0===t?void 0:t.componentNode)}else zl(e.target)&&P();else ql(e.target)&&m?(D(e),setTimeout((function(){return P()}),0)):Yl(e.target)?P():zl(e.target)&&(c?(D(e,!0),E(null),w(!0),setTimeout((function(){var e,t;t=null===(e=p.current)||void 0===e||null===(e=e.calendar)||void 0===e?void 0:e.componentNode,setTimeout((function(){if(t){var e=t.querySelector("input.".concat(Ul));e&&e.focus({preventScroll:!0})}}),0),w(!1)}),0)):(D(e),P()));var n;"Enter"===e.key&&(P(),e.preventDefault(),e.stopPropagation(),Kl(null===(n=p.current)||void 0===n?void 0:n.input));if(["ArrowDown","ArrowUp","Enter"].includes(e.key))if(m){if(m&&null===_(!1)){var r;E(x||_(!0)),Gl(null===(r=p.current)||void 0===r||null===(r=r.calendar)||void 0===r?void 0:r.componentNode)}}else g(!0),e.key="Handled".concat(e.key)},A=function(){var e;g((function(e){return!e})),E(null),Kl(null===(e=p.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{onClickOutside:P,onInputClick:A,onKeyDown:T,onChange:j,onCalendarOpen:function(){E(null)},onBlur:function(){p.current&&p.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:m,selected:x,showTimeInput:c,minDate:O,maxDate:S,ref:p,className:Vl},timeInputProps:{onKeyDown:T,className:Ul,tabIndex:b?void 0:"-1"},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),C()}},calendarButtonProps:{onClick:A,className:m?"react-datepicker-ignore-onclickoutside":""}}};function Jl(e,t){var n=(0,k.useState)(e),r=(0,B.Z)(n,2),o=r[0],a=r[1];return(0,k.useEffect)((function(){var n=setTimeout((function(){a(e)}),t);return function(){clearTimeout(n)}}),[e,t]),[o,a]}function ed(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function td(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ed(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ed(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const nd=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"onChange";return S().forwardRef((function(r,o){var a=r.value,i=(0,k.useState)(a),c=(0,B.Z)(i,2),s=c[0],u=c[1],l=Jl(s,t),d=(0,B.Z)(l,2),p=d[0],f=d[1],h=(0,k.useRef)(a),m=r[n];return(0,k.useEffect)((function(){s!==a&&s===p&&(u(a),h.current=a,f(a))}),[a]),(0,k.useEffect)((function(){m&&h.current!==p&&(m(p),h.current=p)}),[p,m]),(0,R.jsx)(e,td(td(td({},r),{},{value:s},(0,I.Z)({},n,u)),{},{ref:o}))}))};const rd=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,k.useEffect)((function(){if(e.current){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]), textarea:not([disabled])');r&&setTimeout((function(){r.focus()}),0)}}),n)};const od={useAutofocus:rd,useDebounce:Jl,Debouncer:nd,useUserActive:function(e){var t=(0,k.useRef)(null),n=(0,k.useState)(null),r=(0,B.Z)(n,2),o=r[0],a=r[1],i=(0,k.useCallback)((function(){o>0&&(t.current=setTimeout((function(){e()}),o))}),[o,e]),c=(0,k.useCallback)((function(){t.current&&clearTimeout(t.current)}),[]);return(0,k.useEffect)((function(){return c(),window.addEventListener("mousemove",i,{once:!0}),window.addEventListener("touchstart",i,{once:!0}),function(){c()}}),[c,i]),[a,c,i]},usePrevious:function(e){var t=(0,k.useRef)();return(0,k.useEffect)((function(){t.current=e}),[e]),t.current},useDidUpdate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,k.useRef)(!1);(0,k.useEffect)((function(){n.current?e():n.current=!0}),t)}};var ad="HH:mm:ss",id="HH:mm",cd=function(e){return ys(e,id)},sd=function(e){var t=function(e){return ys(e,ad)?(0,vs.default)(e,ad,new Date):ys(e,id)?(0,vs.default)(e,id,new Date):ys(e,"HH:")?(0,vs.default)(e,"HH:",new Date):ys(e,"H")?(0,vs.default)(e,"H",new Date):null}(e);return t&&!isNaN(t)?function(e){return(0,fs.default)(e,id)}(t):""};const ud=function(e,t){var n=sd(e),r=(0,k.useState)(n),o=(0,B.Z)(r,2),a=o[0],i=o[1],c=(0,k.useRef)(a),s=od.usePrevious(n);(0,k.useEffect)((function(){s!==n&&a===s&&i(n)}),[n,a,s]);var u={onChange:function(e){if(e.target.value!==a&&function(e){return/^(\d{0,2}|\d{1,2}:\d{0,2})$/.test(e)}(e.target.value)){var n=function(e,t){return e&&t?2!==e.length||3===t.length||e.includes(":")?e.length+1===t.length&&t.indexOf(":")===t.length-1?e.slice(0,-1):e:"".concat(e,":"):e}(e.target.value,c.current),r=n.indexOf(":"),o=n.substring(0,r),s=n.substring(r+1),u=parseInt(o,10),l=parseInt(s,10),d=!o||!Number.isNaN(u)&&u<24,p=!s||!Number.isNaN(l)&&l<60;if(!d||!p)return!1;c.current=n,i(n),n&&!cd(n)||t(n)}},onBlur:function(){if(a!==n){var e=sd(a);e&&cd(e)?(c.current=e,i(e),t(e)):i(n)}},onFocus:function(e){a&&"function"==typeof e.target.select&&e.target.select()},value:a||""};return{inputProps:u,clearButtonProps:{onClick:function(){t(""),i("")}}}};var ld=["value","onChange","onKeyDown"];function dd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dd(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}ku();var fd=function(e){var t=e.onChange,n=e.label;return(0,R.jsx)(oe,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},hd=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=(0,M.Z)(e,ld),a=ud(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,R.jsx)(Bl,pd(pd(pd({},a),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},md={strategy:"fixed"};const gd=(0,E.Zz)((0,h.injectIntl)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,a=e.maxDate,i=e.valueToDate,c=e.dateToValue,s=e.onChange,u=e.intl,l=e.placeholder,d=e.hasTime,p=e.dateFormats,f=void 0===p?[]:p,h=e.dateTimeFormats,m=void 0===h?[]:h,g=e.events,v=(0,k.useRef)(void 0),y=u.locale,b=function(e){return u.formatMessage({id:e})},w=(0,k.useRef)(null),x=Boolean(r),O=!t&&x,S=function(e){v.current=e,s(e)},P=Ql(r,S,{dateFormats:f,dateTimeFormats:m,minDate:o,maxDate:a,valueToDate:i,dateToValue:c,hasTime:d}),_=P.reactDatePickerProps,E=P.timeInputProps,C=P.clearButtonProps,D=P.calendarButtonProps;return(0,R.jsx)(Zl,{immutable:t,id:n,tabIndex:"-1",children:(0,R.jsxs)(Hl,{immutable:t,ref:w,hasTime:d,onBlur:function(e){if("function"==typeof(null==g?void 0:g.onBlur)){var t=void 0!==v.current?v.current:r;g.onBlur(t)}e.stopPropagation()},children:[(0,R.jsx)(as(),pd(pd({id:n?"".concat(n,"-datepicker"):null},_),{},{disabled:t,dateFormat:[].concat((0,ve.Z)(m),(0,ve.Z)(f)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,yearDropdownItemNumber:100,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,locale:y,timeInputLabel:b("client.component.datePicker.timeLabel"),customTimeInput:(0,R.jsx)(hd,pd({},E)),showTimeSelect:d,timeIntervals:15,popperProps:md,todayButton:(0,R.jsx)(fd,{onChange:S,label:b("client.component.datePicker.todayLabel")})})),O&&(0,R.jsx)(pe,pd({"data-cy":"btn-clear",icon:"times",tabIndex:-1,"aria-label":b("client.component.datePicker.clearDateLabel")},C)),!t&&(0,R.jsx)(pe,pd({"data-cy":"btn-calendar",icon:"calendar",tabIndex:-1},D))]})})})));function vd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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,h.injectIntl)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,a=e.placeholder,i=(0,h.useIntl)(),c=(null==n?void 0:n.datePickerOptions)||{},s="".concat(vu(i.locale)),u="".concat(gu(i.locale)),l=bu(i.locale),d=[s,l,wu(s),wu(l)],p=yu(i.locale),f=[u,p,wu(u),wu(p)];return(0,R.jsx)(gd,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vd(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({value:r,onChange:t,dateTimeFormats:d,dateFormats:f,hasTime:!0,immutable:o,placeholder:a},c))}));var yd,bd,wd,xd,Od,kd,Sd,Pd,_d=E.ZP.section.withConfig({displayName:"StyledSection"})(yd||(yd=(0,P.Z)(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),Ed=E.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(bd||(bd=(0,P.Z)(["\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"])),ee,C.bA.space(-2)),Cd=E.ZP.div.withConfig({displayName:"StyledDropzone"})(wd||(wd=(0,P.Z)(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),ee,C.FS.color("backgroundItemHover")),Dd=E.ZP.div.withConfig({displayName:"StyledUploadInput"})(xd||(xd=(0,P.Z)(["\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,C.wy)(),(function(e){return e.immutable?"not-allowed":"pointer"}),C.FS.color("paper"),(function(e){return e.immutable?C.v5.shade2(e):C.v5.base(e)}),C.bA.space(-2),ee,C.bA.space(-3.1),C.bA.space(-1.5)),jd=E.ZP.div.withConfig({displayName:"StyledUploadProgress"})(Od||(Od=(0,P.Z)(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),C.bA.space(-2)),Td=(0,E.ZP)(Dt.Fe).withConfig({displayName:"StyledUploadProgressText"})(kd||(kd=(0,P.Z)(["\n && {\n ","\n }\n"])),(0,C.wy)({fontSize:C.bA.font(-1)})),Ad=E.ZP.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(Sd||(Sd=(0,P.Z)(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),C.bA.space(-2)),Id=E.ZP.div.withConfig({displayName:"StyledView"})(Pd||(Pd=(0,P.Z)(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),C.bA.space(-2));function Md(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{s(r.next(e))}catch(e){a(e)}}function c(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}s((r=r.apply(e,t||[])).next())}))}function Nd(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}Object.create;function Rd(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Fd(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var Ld=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 Zd(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=Ld.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 Hd=[".DS_Store","Thumbs.db"];function Bd(e){return"object"==typeof e&&null!==e}function Ud(e){return Yd(e.target.files).map((function(e){return Zd(e)}))}function Wd(e){return Md(this,void 0,void 0,(function(){return Nd(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 Zd(e)}))]}}))}))}function Vd(e,t){return Md(this,void 0,void 0,(function(){var n;return Nd(this,(function(r){switch(r.label){case 0:return e.items?(n=Yd(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(qd))]):[3,2];case 1:return[2,zd(Gd(r.sent()))];case 2:return[2,zd(Yd(e.files).map((function(e){return Zd(e)})))]}}))}))}function zd(e){return e.filter((function(e){return-1===Hd.indexOf(e.name)}))}function Yd(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function qd(e){if("function"!=typeof e.webkitGetAsEntry)return Kd(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?$d(t):Kd(e)}function Gd(e){return e.reduce((function(e,t){return Fd(Fd([],Rd(e),!1),Rd(Array.isArray(t)?Gd(t):[t]),!1)}),[])}function Kd(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Zd(t);return Promise.resolve(n)}function Xd(e){return Md(this,void 0,void 0,(function(){return Nd(this,(function(t){return[2,e.isDirectory?$d(e):Qd(e)]}))}))}function $d(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var a=this;t.readEntries((function(t){return Md(a,void 0,void 0,(function(){var a,i,c;return Nd(this,(function(s){switch(s.label){case 0:if(t.length)return[3,5];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return a=s.sent(),e(a),[3,4];case 3:return i=s.sent(),n(i),[3,4];case 4:return[3,6];case 5:c=Promise.all(t.map(Xd)),r.push(c),o(),s.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function Qd(e){return Md(this,void 0,void 0,(function(){return Nd(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=Zd(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var Jd=i(58363);function ep(e){return function(e){if(Array.isArray(e))return ip(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ap(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 tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function np(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tp(Object(n),!0).forEach((function(t){rp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function op(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}(e,t)||ap(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 ap(e,t){if(e){if("string"==typeof e)return ip(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)?ip(e,t):void 0}}function ip(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 cp="file-invalid-type",sp="file-too-large",up="file-too-small",lp="too-many-files",dp=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:cp,message:"File type must be ".concat(t)}},pp=function(e){return{code:sp,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},fp=function(e){return{code:up,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},hp={code:lp,message:"Too many files"};function mp(e,t){var n="application/x-moz-file"===e.type||(0,Jd.Z)(e,t);return[n,n?null:dp(t)]}function gp(e,t,n){if(vp(e.size))if(vp(t)&&vp(n)){if(e.size>n)return[!1,pp(n)];if(e.size<t)return[!1,fp(t)]}else{if(vp(t)&&e.size<t)return[!1,fp(t)];if(vp(n)&&e.size>n)return[!1,pp(n)]}return[!0,null]}function vp(e){return null!=e}function yp(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function bp(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 wp(e){e.preventDefault()}function xp(){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!yp(e)&&t&&t.apply(void 0,[e].concat(r)),yp(e)}))}}function Op(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function kp(e){return/^.*\.[\w]+$/.test(e)}var Sp=["children"],Pp=["open"],_p=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Ep=["refKey","onChange","onClick"];function Cp(e){return function(e){if(Array.isArray(e))return Tp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||jp(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 Dp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}(e,t)||jp(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 jp(e,t){if(e){if("string"==typeof e)return Tp(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)?Tp(e,t):void 0}}function Tp(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 Ap(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ip(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ap(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ap(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Np(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Rp=(0,k.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Ip(Ip({},Fp),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,i=t.minSize,c=t.multiple,s=t.maxFiles,u=t.onDragEnter,l=t.onDragLeave,d=t.onDragOver,p=t.onDrop,f=t.onDropAccepted,h=t.onDropRejected,m=t.onFileDialogCancel,g=t.onFileDialogOpen,v=t.useFsAccessApi,y=t.autoFocus,b=t.preventDropOnDocument,w=t.noClick,x=t.noKeyboard,O=t.noDrag,S=t.noDragEventsBubbling,P=t.onError,_=t.validator,E=(0,k.useMemo)((function(){return function(e){if(vp(e))return Object.entries(e).reduce((function(e,t){var n=op(t,2),r=n[0],o=n[1];return[].concat(ep(e),[r],ep(o))}),[]).filter((function(e){return Op(e)||kp(e)})).join(",")}(n)}),[n]),C=(0,k.useMemo)((function(){return function(e){if(vp(e)){var t=Object.entries(e).filter((function(e){var t=op(e,2),n=t[0],r=t[1],o=!0;return Op(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(kp)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=op(t,2),r=n[0],o=n[1];return np(np({},e),{},rp({},r,o))}),{});return[{description:"Files",accept:t}]}return e}(n)}),[n]),D=(0,k.useMemo)((function(){return"function"==typeof g?g:Up}),[g]),j=(0,k.useMemo)((function(){return"function"==typeof m?m:Up}),[m]),T=(0,k.useRef)(null),A=(0,k.useRef)(null),I=Dp((0,k.useReducer)(Bp,Hp),2),M=I[0],N=I[1],R=M.isFocused,F=M.isFileDialogActive,L=(0,k.useRef)("undefined"!=typeof window&&window.isSecureContext&&v&&"showOpenFilePicker"in window),Z=function(){!L.current&&F&&setTimeout((function(){A.current&&(A.current.files.length||(N({type:"closeDialog"}),j()))}),300)};(0,k.useEffect)((function(){return window.addEventListener("focus",Z,!1),function(){window.removeEventListener("focus",Z,!1)}}),[A,F,j,L]);var H=(0,k.useRef)([]),B=function(e){T.current&&T.current.contains(e.target)||(e.preventDefault(),H.current=[])};(0,k.useEffect)((function(){return b&&(document.addEventListener("dragover",wp,!1),document.addEventListener("drop",B,!1)),function(){b&&(document.removeEventListener("dragover",wp),document.removeEventListener("drop",B))}}),[T,b]),(0,k.useEffect)((function(){return!r&&y&&T.current&&T.current.focus(),function(){}}),[T,y,r]);var U=(0,k.useCallback)((function(e){P?P(e):console.error(e)}),[P]),W=(0,k.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),H.current=[].concat(Cp(H.current),[e.target]),bp(e)&&Promise.resolve(o(e)).then((function(t){if(!yp(e)||S){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,a=e.multiple,i=e.maxFiles,c=e.validator;return!(!a&&t.length>1||a&&i>=1&&t.length>i)&&t.every((function(e){var t=op(mp(e,n),1)[0],a=op(gp(e,r,o),1)[0],i=c?c(e):null;return t&&a&&!i}))}({files:t,accept:E,minSize:i,maxSize:a,multiple:c,maxFiles:s,validator:_});N({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return U(e)}))}),[o,u,U,S,E,i,a,c,s,_]),V=(0,k.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=bp(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1}),[d,S]),z=(0,k.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=H.current.filter((function(e){return T.current&&T.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),H.current=t,t.length>0||(N({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),bp(e)&&l&&l(e))}),[T,l,S]),Y=(0,k.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=Dp(mp(e,E),2),o=t[0],c=t[1],s=Dp(gp(e,i,a),2),u=s[0],l=s[1],d=_?_(e):null;if(o&&u&&!d)n.push(e);else{var p=[c,l];d&&(p=p.concat(d)),r.push({file:e,errors:p.filter((function(e){return e}))})}})),(!c&&n.length>1||c&&s>=1&&n.length>s)&&(n.forEach((function(e){r.push({file:e,errors:[hp]})})),n.splice(0)),N({acceptedFiles:n,fileRejections:r,type:"setFiles"}),p&&p(n,r,t),r.length>0&&h&&h(r,t),n.length>0&&f&&f(n,t)}),[N,c,E,i,a,s,p,f,h,_]),q=(0,k.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),H.current=[],bp(e)&&Promise.resolve(o(e)).then((function(t){yp(e)&&!S||Y(t,e)})).catch((function(e){return U(e)})),N({type:"reset"})}),[o,Y,U,S]),G=(0,k.useCallback)((function(){if(L.current){N({type:"openDialog"}),D();var e={multiple:c,types:C};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){Y(e,null),N({type:"closeDialog"})})).catch((function(e){!function(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?U(e):(L.current=!1,A.current?(A.current.value=null,A.current.click()):U(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):(j(e),N({type:"closeDialog"}))}))}else A.current&&(N({type:"openDialog"}),D(),A.current.value=null,A.current.click())}),[N,D,j,v,Y,U,C,c]),K=(0,k.useCallback)((function(e){T.current&&T.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),G()))}),[T,G]),X=(0,k.useCallback)((function(){N({type:"focus"})}),[]),$=(0,k.useCallback)((function(){N({type:"blur"})}),[]),Q=(0,k.useCallback)((function(){w||(!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)}()?G():setTimeout(G,0))}),[w,G]),J=function(e){return r?null:e},ee=function(e){return x?null:J(e)},te=function(e){return O?null:J(e)},ne=function(e){S&&e.stopPropagation()},re=(0,k.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.role,a=e.onKeyDown,i=e.onFocus,c=e.onBlur,s=e.onClick,u=e.onDragEnter,l=e.onDragOver,d=e.onDragLeave,p=e.onDrop,f=Np(e,_p);return Ip(Ip(Mp({onKeyDown:ee(xp(a,K)),onFocus:ee(xp(i,X)),onBlur:ee(xp(c,$)),onClick:J(xp(s,Q)),onDragEnter:te(xp(u,W)),onDragOver:te(xp(l,V)),onDragLeave:te(xp(d,z)),onDrop:te(xp(p,q)),role:"string"==typeof o&&""!==o?o:"presentation"},n,T),r||x?{}:{tabIndex:0}),f)}}),[T,K,X,$,Q,W,V,z,q,x,O,r]),oe=(0,k.useCallback)((function(e){e.stopPropagation()}),[]),ae=(0,k.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,a=Np(e,Ep);return Ip(Ip({},Mp({accept:E,multiple:c,type:"file",style:{display:"none"},onChange:J(xp(r,q)),onClick:J(xp(o,oe)),tabIndex:-1},n,A)),a)}}),[A,n,c,q,r]);return Ip(Ip({},M),{},{isFocused:R&&!r,getRootProps:re,getInputProps:ae,rootRef:T,inputRef:A,open:J(G)})}(Np(e,Sp)),o=r.open,a=Np(r,Pp);return(0,k.useImperativeHandle)(t,(function(){return{open:o}}),[o]),S().createElement(k.Fragment,null,n(Ip(Ip({},a),{},{open:o})))}));Rp.displayName="Dropzone";var Fp={disabled:!1,getFilesFromEvent:function(e){return Md(this,void 0,void 0,(function(){return Nd(this,(function(t){return Bd(e)&&Bd(e.dataTransfer)?[2,Vd(e.dataTransfer,e.type)]:function(e){return Bd(e)&&Bd(e.target)}(e)?[2,Ud(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,Wd(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};Rp.defaultProps=Fp,Rp.propTypes={children:O().func,accept:O().objectOf(O().arrayOf(O().string)),multiple:O().bool,preventDropOnDocument:O().bool,noClick:O().bool,noKeyboard:O().bool,noDrag:O().bool,noDragEventsBubbling:O().bool,minSize:O().number,maxSize:O().number,maxFiles:O().number,disabled:O().bool,getFilesFromEvent:O().func,onFileDialogCancel:O().func,onFileDialogOpen:O().func,useFsAccessApi:O().bool,autoFocus:O().bool,onDragEnter:O().func,onDragLeave:O().func,onDragOver:O().func,onDrop:O().func,onDropAccepted:O().func,onDropRejected:O().func,onError:O().func,validator:O().func};const Lp=Rp;var Zp,Hp={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Bp(e,t){switch(t.type){case"focus":return Ip(Ip({},e),{},{isFocused:!0});case"blur":return Ip(Ip({},e),{},{isFocused:!1});case"openDialog":return Ip(Ip({},Hp),{},{isFileDialogActive:!0});case"closeDialog":return Ip(Ip({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ip(Ip({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ip(Ip({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Ip({},Hp);default:return e}}function Up(){}function Wp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wp(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const zp=function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose;return(0,R.jsxs)(Dd,{immutable:n,children:[(0,R.jsx)(Lp,{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,R.jsx)(_d,{children:(0,R.jsxs)(Cd,Vp(Vp({},t()),{},{children:[(0,R.jsx)("input",Vp({},n())),Zp||(Zp=(0,R.jsx)(oe,{icon:"arrow-to-top"}))]}))})}}),o&&(0,R.jsx)(oe,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:"browse docs",iconOnly:!0})]})};var Yp,qp=E.ZP.figure.withConfig({displayName:"StyledPreview"})(Yp||(Yp=(0,P.Z)(["\n && {\n vertical-align: top;\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n margin: 0; //reset css overwrite\n\n img {\n margin-top: ",";\n border: 1px solid ",";\n border-radius: ",";\n max-width: ",";\n max-height: ",";\n min-width: 90px; // prevent collapse to 1px if there is no preview generated\n }\n\n figcaption {\n text-align: center;\n }\n }\n"])),C.bA.space(-2.2),C.FS.color("border"),C.FS.radii("form"),(function(e){return e.maxDimensionX||"100%"}),(function(e){return e.maxDimensionY||"100%"}));const Gp=qp;var Kp;const Xp=function(e){var t=e.thumbnailUrl,n=e.alt,r=e.srcUrl,o=(e.fileName,e.caption),a=e.maxDimensionX,i=e.maxDimensionY,c=t?(0,R.jsx)("img",{alt:n,title:n,src:t}):(0,R.jsx)("div",{title:n,children:Kp||(Kp=(0,R.jsx)(N.Z,{icon:"file-alt"}))});return(0,R.jsxs)(Gp,{maxDimensionX:a,maxDimensionY:i,children:[(0,R.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:r,children:c}),o&&(0,R.jsx)(Dt.ZP.Figcaption,{children:o})]})};var $p=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 Qp=function(e){var t=e.file,n=e.text;return(0,R.jsxs)(jd,{children:[(0,R.jsx)(Xp,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,R.jsxs)(Ad,{children:[(0,R.jsx)(H,{position:C.co.position.PREPEND}),(0,R.jsxs)(Td,{children:[n||"uploading"," (",$p(t.size),")"]})]})]})};var Jp=function(e,t,n){return"".concat(e).concat(e&&e.indexOf("?")>=0?"&":"?").concat(t,"=").concat(n)};const ef={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 Jp(e,"download",!0)},addParameterToURL:Jp};function tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tf(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const rf=function(e){var t,n=e.value,r=e.downloadTitle,o=e.immutable,a=e.onUpload,i=e.deleteTitle,c=null===(t=n.binaryLink)||void 0===t?void 0:t.startsWith("blob:");return(0,R.jsxs)(Id,{className:"StyledView",children:[(0,R.jsx)(Xp,nf(nf({alt:n.fileName},c&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,R.jsxs)(Ed,{children:[!o&&(0,R.jsx)(oe,{icon:"trash",onClick:function(){return a(null)},tabIndex:-1,title:i||"delete"}),(0,R.jsx)(oe,{children:(0,R.jsx)(En.ZP,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:ef.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function of(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function af(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?of(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):of(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cf=function(e){var t=e.value,n=e.textResources,r=e.onUpload,o=e.onChoose,a=(0,k.useRef)(t),i=(0,k.useState)({isUploading:!1,previewFile:null}),c=(0,B.Z)(i,2),s=c[0],u=c[1];return(0,k.useEffect)((function(){fl()(a.current,t)||u({isUploading:!1,previewFile:null}),a.current=t}),[t]),null!=t&&t.binaryLink?(0,R.jsx)(rf,af(af({},e),{},{deleteTitle:n.delete,downloadTitle:n.download})):s.isUploading?(0,R.jsx)(Qp,af({file:s.previewFile,text:n.uploading},e)):(0,R.jsx)(zp,af(af({},e),{},{onDrop:function(e){!function(e){u({isUploading:!0,previewFile:e})}(e),r(e)},onChoose:o}))};cf.defaultProps={textResources:{}};const sf=cf;var uf=function(e){return(0,R.jsx)(sf,{onUpload:function(t){null===t?e.onChange&&e.onChange(null):e.options.upload&&e.options.upload(t)},onChoose:e.options.choose,immutable:e.immutable,textResources:{upload:e.options.uploadText,uploading:e.options.uploadingText,delete:e.options.deleteText,download:e.options.downloadText},value:e.value?e.value:null})};uf.defaultProps={options:{}};var lf,df,pf=E.ZP.input.withConfig({displayName:"StyledDurationEdit"})(lf||(lf=(0,P.Z)(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),jn,(function(e){return e.width})),ff=E.ZP.label.withConfig({displayName:"StyledDurationEditFocusable"})(df||(df=(0,P.Z)(["\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"])),C.bA.space(1),(function(e){return e.immutable?C.FS.color("textDisabled"):C.FS.color("text")}),(function(e){return e.immutable?"not-allowed":"default"})),hf=function(e){var t=e.id,n=e.value,r=e.immutable,o=e.onChange,a=e.options,i=fu(n),c=(0,k.useState)(!1),s=(0,B.Z)(c,2),u=s[0],l=s[1],d=function(e,t){var n,r,a=null!==t?t:i.minutes,c=null!==e?e:i.hours;""!==a||""!==c?(a>=60&&(c=0),o((r=a,(n=c)||r?((n<0||r<0)&&(n=Mn(n),r=Mn(r)),60*(n||0)*6e4+6e4*(r||0)):null))):o(null)},p=function(){l(!0)},f=function(e){e.charCode>=48&&e.charCode<=57||45===e.charCode&&!0===a.allowNegative||e.preventDefault()},h=function(){return!0===a.allowNegative?"-?d+":"d+"},m=function(){return u||"number"==typeof n},g=function(e){return 9*(e+"").length},v=r&&Boolean(i.seconds);return(0,R.jsxs)(Dn,{onBlur:function(){l(!1)},immutable:r,id:t,children:[(0,R.jsxs)(ff,{immutable:r,children:[(0,R.jsx)(pf,{disabled:r,immutable:r,min:!0===a.allowNegative?void 0:0,onChange:function(){},onFocus:p,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");d(t,null)},onKeyPress:f,pattern:h(),step:1,width:g(i.hours),type:"number",value:"number"!=typeof i.hours||0===i.hours&&!r?"":i.hours+"","data-cy":"input-hours"}),m()&&(0,R.jsx)(Dt.ZP.Span,{children:a.hoursLabel})]}),(0,R.jsxs)(ff,{immutable:r,children:[(0,R.jsx)(pf,{disabled:r,immutable:r,min:!0!==a.allowNegative||null!==i.hours&&0!==i.hours?0:void 0,onChange:function(){},onFocus:p,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");d(null,t)},onKeyPress:f,pattern:h(),step:1,width:g(i.minutes),type:"number",value:i.minutes+"","data-cy":"input-minutes"}),m()&&(0,R.jsx)(Dt.ZP.Span,{children:a.minutesLabel})]}),v&&(0,R.jsxs)(ff,{immutable:r,children:[(0,R.jsx)(pf,{disabled:r,immutable:r,onChange:function(){},width:g(i.seconds),type:"number",value:i.seconds+""}),m()&&(0,R.jsx)(Dt.ZP.Span,{children:a.secondsLabel})]})]})};hf.defaultProps={options:{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}};var mf;const gf=E.ZP.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(mf||(mf=(0,P.Z)(["\n &&&& {\n ","\n }\n"])),jn);od.Debouncer((function(e){return(0,R.jsxs)(Dn,{immutable:e.immutable,children:[(0,R.jsx)(gf,{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,R.jsx)(An,{children:(0,R.jsx)(En.ZP,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));i(89611);var vf=i(78718),yf=i.n(vf);var bf;function wf(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 xf(){}function Of(e){return!!(e||"").match(/\d/)}function kf(e){return null==e}function Sf(e){return kf(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function Pf(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function _f(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 Ef(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function Cf(e,t){return Array(t+1).join(e)}function Df(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],a=r[1];if(!(a=Number(a)))return n+o;var i=1+a,c=(o=o.replace(".","")).length;return i<0?o="0."+Cf("0",Math.abs(i))+o:i>=c?o+=Cf("0",i-c):o=(o.substring(0,i)||"0")+"."+o.substring(i),n+o}function jf(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=_f(e),a=o.beforeDecimal,i=o.afterDecimal,c=o.hasNegation,s=parseFloat("0."+(i||"0")),u=(i.length<=t?"0."+i:s.toFixed(t)).split(".");return""+(c?"-":"")+a.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),u[0])+(r?".":"")+Ef(u[1]||"",t,n)}function Tf(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"}(bf||(bf={}));var Af,If,Mf,Nf=(Af=function(e,t){for(var n=0,r=0,o=e.length,a=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[a-1-r]&&a-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:a-r}}},Mf=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return If&&e.length===If.length&&e.every((function(e,t){return e===If[t]}))?Mf:(If=e,Mf=Af.apply(void 0,e))});function Rf(e){return Math.max(e.selectionStart,e.selectionEnd)}function Ff(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Lf(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function Zf(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 Hf(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(Of(e[n])||Of(e[n-1]));return t}function Bf(e,t,n,r,o,a){void 0===a&&(a=xf);var i=function(e){var t=(0,k.useRef)(e);t.current=e;var n=(0,k.useRef)((function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}));return n.current}((function(e,t){var n,a;return Sf(e)?(a="",n=""):"number"==typeof e||t?(a="number"==typeof e?Df(e):e,n=r(a)):(a=o(e,void 0),n=r(a)),{formattedValue:n,numAsString:a}})),c=(0,k.useState)((function(){return i(kf(e)?t:e,n)})),s=c[0],u=c[1],l=e,d=n;kf(e)&&(l=s.numAsString,d=!0);var p=i(l,d);return(0,k.useMemo)((function(){u(p)}),[p.formattedValue]),[s,function(e,t){e.formattedValue!==s.formattedValue&&u({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}]}function Uf(e){return e.replace(/[^0-9]/g,"")}function Wf(e){return e}function Vf(e){var t=e.type;void 0===t&&(t="text");var n=e.displayType;void 0===n&&(n="input");var r=e.customInput,o=e.renderText,a=e.getInputRef,i=e.format;void 0===i&&(i=Wf);var c=e.removeFormatting;void 0===c&&(c=Uf);var s=e.defaultValue,u=e.valueIsNumericString,l=e.onValueChange,d=e.isAllowed,p=e.onChange;void 0===p&&(p=xf);var f=e.onKeyDown;void 0===f&&(f=xf);var h=e.onMouseUp;void 0===h&&(h=xf);var m=e.onFocus;void 0===m&&(m=xf);var g=e.onBlur;void 0===g&&(g=xf);var v=e.value,y=e.getCaretBoundary;void 0===y&&(y=Hf);var b=e.isValidInputCharacter;void 0===b&&(b=Of);var w=e.isCharacterSame,x=wf(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),O=Bf(v,s,Boolean(u),i,c,l),P=O[0],_=P.formattedValue,E=P.numAsString,C=O[1],D=(0,k.useRef)({formattedValue:_,numAsString:E}),j=function(e,t){D.current={formattedValue:e.formattedValue,numAsString:e.value},C(e,t)},T=(0,k.useState)(!1),A=T[0],I=T[1],M=(0,k.useRef)(null),N=(0,k.useRef)({setCaretTimeout:null,focusTimeout:null});(0,k.useEffect)((function(){return I(!0),function(){clearTimeout(N.current.setCaretTimeout),clearTimeout(N.current.focusTimeout)}}),[]);var R=i,F=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},L=function(e,t,n){0===e.selectionStart&&e.selectionEnd===e.value.length||(Tf(e,t),N.current.setCaretTimeout=setTimeout((function(){e.value===n&&e.selectionStart!==e.selectionEnd&&Tf(e,t)}),0))},Z=function(e,t,n){return Zf(e,t,y(e),n)},H=function(e,t,n){var r=y(t),o=function(e,t,n,r,o,a,i){void 0===i&&(i=Lf);var c=o.findIndex((function(e){return e})),s=e.slice(0,c);t||n.startsWith(s)||(t=s,n=s+n,r+=s.length);for(var u=n.length,l=e.length,d={},p=new Array(u),f=0;f<u;f++){p[f]=-1;for(var h=0,m=l;h<m;h++)if(i({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:f,formattedValueIndex:h})&&!0!==d[h]){p[f]=h,d[h]=!0;break}}for(var g=r;g<u&&(-1===p[g]||!a(n[g]));)g++;var v=g===u||-1===p[g]?l:p[g];for(g=r-1;g>0&&-1===p[g];)g--;var y=-1===g||-1===p[g]?0:p[g]+1;return y>v?v:r-y<v-r?y:v}(t,_,e,n,r,b,w);return o=Zf(t,o,r)};(0,k.useEffect)((function(){var e=D.current,t=e.formattedValue,n=e.numAsString;_===t||_===E&&t===n||j(F(_,E),{event:void 0,source:bf.props})}),[_,E]);var B=M.current?Rf(M.current):void 0;("undefined"!=typeof window?k.useLayoutEffect:k.useEffect)((function(){var e=M.current;if(_!==D.current.formattedValue&&e){var t=H(D.current.formattedValue,_,B);e.value=_,L(e,t,_)}}),[_]);var U=function(e,t,n){var r=Nf(_,e),o=Object.assign(Object.assign({},r),{lastValue:_}),a=c(e,o),i=R(a);if(a=c(i,void 0),d&&!d(F(i,a))){var s=t.target,u=Rf(s),l=H(e,_,u);return s.value=_,L(s,l,_),!1}return function(e){var t=e.formattedValue;void 0===t&&(t="");var n=e.input,r=e.setCaretPosition;void 0===r&&(r=!0);var o=e.source,a=e.event,i=e.numAsString,c=e.caretPos;if(n){if(void 0===c&&r){var s=e.inputValue||n.value,u=Rf(n);n.value=t,c=H(s,t,u)}n.value=t,r&&void 0!==c&&L(n,c,t)}t!==_&&j(F(t,i),{event:a,source:o})}({formattedValue:i,numAsString:a,inputValue:e,event:t,source:n,setCaretPosition:!0,input:t.target}),!0},W=!A||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",V=Object.assign({inputMode:W},x,{type:t,value:_,onChange:function(e){var t=e.target.value;U(t,e,bf.event)&&p(e)},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,a=n.selectionEnd,i=n.value;if(void 0===i&&(i=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,i.length):"Delete"===r&&(t=o),void 0!==t&&o===a){var c=t;if("ArrowLeft"===r||"ArrowRight"===r)(c=Z(i,t,"ArrowLeft"===r?"left":"right"))!==t&&e.preventDefault();else"Delete"!==r||b(i[t])?"Backspace"!==r||b(i[t])||(c=Z(i,t,"left")):c=Z(i,t,"right");c!==t&&L(n,c,i),e.isUnitTestRun&&L(n,c,i),f(e)}else f(e)},onMouseUp:function(e){var t=e.target,n=t.selectionStart,r=t.selectionEnd,o=t.value;if(void 0===o&&(o=""),n===r){var a=Z(o,n);a!==n&&L(t,a,o)}h(e)},onFocus:function(e){e.persist&&e.persist();var t=e.target;M.current=t,N.current.focusTimeout=setTimeout((function(){var n=t.selectionStart,r=t.selectionEnd,o=t.value;void 0===o&&(o="");var a=Z(o,n);a===n||0===n&&r===o.length||L(t,a,o),m(e)}),0)},onBlur:function(e){M.current=null,clearTimeout(N.current.focusTimeout),clearTimeout(N.current.setCaretTimeout),g(e)}});if("text"===n)return o?S().createElement(S().Fragment,null,o(_,x)||null):S().createElement("span",Object.assign({},x,{ref:a}),_);if(r){var z=r;return S().createElement(z,Object.assign({},V,{ref:a}))}return S().createElement("input",Object.assign({},V,{ref:a}))}function zf(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var a=t.suffix;void 0===a&&(a="");var i=t.allowNegative,c=t.thousandsGroupStyle;if(void 0===c&&(c="thousand"),""===e||"-"===e)return e;var s=Yf(t),u=s.thousandSeparator,l=s.decimalSeparator,d=0!==n&&-1!==e.indexOf(".")||n&&r,p=_f(e,i),f=p.beforeDecimal,h=p.afterDecimal,m=p.addNegation;return void 0!==n&&(h=Ef(h,n,!!r)),u&&(f=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)}(f,u,c)),o&&(f=o+f),a&&(h+=a),m&&(f="-"+f),e=f+(d&&l||"")+h}function Yf(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 qf(e,t,n){var r;void 0===t&&(t=Ff(e));var o=n.allowNegative,a=n.prefix;void 0===a&&(a="");var i=n.suffix;void 0===i&&(i="");var c=n.decimalScale,s=t.from,u=t.to,l=u.start,d=u.end,p=Yf(n),f=p.allowedDecimalSeparators,h=p.decimalSeparator,m=e[d]===h;if(Of(e)&&(e===a||e===i)&&""===t.lastValue)return e;if(d-l==1&&-1!==f.indexOf(e[l])){var g=0===c?"":h;e=e.substring(0,l)+g+e.substring(l+1,e.length)}var v=function(e,t,n){var r=!1,o=!1;a.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):i.startsWith("-")&&e.length===i.length?r=!1:"-"===e[0]&&(r=!0);var c=r?1:0;return o&&(c=2),c&&(e=e.substring(c),t-=c,n-=c),{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,s.start,s.end),x=w.start,O=w.end,k=w.value,S=e.substring(l,d);!(e.length&&k.length&&(x>k.length-i.length||O<a.length))||S&&i.startsWith(S)||(e=k);var P=0;e.startsWith(a)?P+=a.length:l<a.length&&(P=l),d-=P;var _=(e=e.substring(P)).length,E=e.length-i.length;e.endsWith(i)?_=E:(d>E||d>e.length-i.length)&&(_=d),e=e.substring(0,_),e=function(e,t){void 0===e&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&t&&(e="-"+e),e}(b?"-"+e:e,o),e=(e.match(function(e,t){return new RegExp("(^-)|[0-9]|"+Pf(e),t?"g":void 0)}(h,!0))||[]).join("");var C=e.indexOf(h);e=e.replace(new RegExp(Pf(h),"g"),(function(e,t){return t===C?".":""}));var D=_f(e,o),j=D.beforeDecimal,T=D.afterDecimal,A=D.addNegation;return u.end-u.start<s.end-s.start&&""===j&&m&&!parseFloat(T)&&(e=A?"-":""),e}function Gf(e){e=function(e){var t=Yf(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var a=e.allowNegative;if(void 0===a&&(a=!0),n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+r+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&a&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+a+"\n "),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}(e);e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=xf);var a=e.onBlur;void 0===a&&(a=xf);var i=e.thousandSeparator,c=e.decimalScale,s=e.fixedDecimalScale,u=e.prefix;void 0===u&&(u="");var l=e.defaultValue,d=e.value,p=e.valueIsNumericString,f=e.onValueChange,h=wf(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=Yf(e),g=m.decimalSeparator,v=m.allowedDecimalSeparators,y=function(t){return zf(t,e)},b=function(t,n){return qf(t,n,e)},w=kf(d)?l:d,x=null!=p?p: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);kf(d)?kf(l)||(x=x||"number"==typeof l):x=x||"number"==typeof d;var O=function(e){return Sf(e)?e:("number"==typeof e&&(e=Df(e)),x&&"number"==typeof c?jf(e,c,Boolean(s)):e)},k=Bf(O(d),O(l),Boolean(x),y,b,f),S=k[0],P=S.numAsString,_=S.formattedValue,E=k[1];return Object.assign(Object.assign({},h),{value:_,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===g||Of(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,o=e.currentValueIndex,a=e.formattedValueIndex,i=t[o],c=r[a],s=Nf(n,t).to;return!!(o>=s.start&&o<s.end&&v&&v.includes(i)&&c===g)||i===c},onValueChange:E,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})),a="-"===e[0];o.fill(!1,0,n.length+(a?1:0));var i=e.length;return o.fill(!1,i-r.length+1,i+1),o}(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,a=t.selectionStart,l=t.selectionEnd,d=t.value;if(void 0===d&&(d=""),a===l){"Backspace"===r&&"-"===d[0]&&a===u.length+1&&n&&Tf(t,1),c&&s&&("Backspace"===r&&d[a-1]===g?(Tf(t,a-1),e.preventDefault()):"Delete"===r&&d[a]===g&&e.preventDefault()),(null==v?void 0:v.includes(r))&&d[a]===g&&Tf(t,a+1);var p=!0===i?",":i;"Backspace"===r&&d[a-1]===p&&Tf(t,a-1),"Delete"===r&&d[a]===p&&Tf(t,a+1),o(e)}else o(e)},onBlur:function(t){var n=P;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)),s&&c&&(n=jf(n,c,s)),n!==P){var o=zf(n,e);E({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:bf.event})}a(t)}})}function Kf(e){var t=Gf(e);return S().createElement(Vf,Object.assign({},t))}var Xf,$f=["immutable"];function Qf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Jf=(0,E.ZP)((function(e){e.immutable;var t=(0,M.Z)(e,$f);return(0,R.jsx)(Kf,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qf(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(Xf||(Xf=(0,P.Z)(["\n &&&& {\n ","\n }\n"])),jn);const eh=Jf;function th(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?th(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):th(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rh=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},oh=function(e){return null!=e&&!isNaN(parseFloat(e))},ah=function(e,t,n){return!oh(n)||!(oh(t)&&n>t)&&!(oh(e)&&n<e)},ih=function(e,t){return function(n){var r=n.floatValue;return rh(r)<rh(e)||ah(e,t,r)}};(0,h.injectIntl)(od.Debouncer((function(e){var t,n=(t=e.intl.locale,{thousandSeparator:1111..toLocaleString(t).replace(/1/g,""),decimalSeparator:1.1.toLocaleString(t).replace(/1/g,"")}),r=n.thousandSeparator,o=n.decimalSeparator,a=e.options||{},i=a.prePointDigits,c=a.postPointDigits,s=a.minValue,u=a.maxValue,l=a.allowNegative,d=a.fixedDecimalScale,p=a.suffix,f=a.prefix,h=a.format,m=function(e,t,n){if(e){var r=Math.pow(10,e)-(t?1/Math.pow(10,t):1);return n&&n>r?n:r}return n}(i,c,u),g=nh(nh({isAllowed:ih(s,m),allowNegative:!!l},isNaN(c)?{}:{decimalScale:c}),{},{fixedDecimalScale:!!d}),v=void 0===e.value?"":e.value;return(0,R.jsx)(Dn,{immutable:e.immutable,children:(0,R.jsx)(eh,nh(nh({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&ah(s,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:v,suffix:p,prefix:f},g),{},{format:h,placeholder:e.placeholder,onBlur:function(t){var n,r=!(n=t.target.value)||isNaN(n)?null:parseFloat(n);e.onChange&&!ah(s,m,r)&&(t.target.value=null)}}))})}),800));od.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.options,o=e.immutable,a=e.name,i=e.id,c=e.placeholder,s=r||{},u=s.minValue,l=s.maxValue,d=s.format,p=s.allowLeadingZeros,f=s.suffix,h=void 0===t?"":t;return(0,R.jsx)(Dn,{immutable:o,children:(0,R.jsx)(eh,{isAllowed:ih(u,l),allowNegative:!0,decimalScale:0,disabled:o,id:i,name:a,onValueChange:function(e){var t=e.value,r=e.floatValue,o=p?t:r;void 0===o&&(o=null),ah(u,l,r)&&n(o)},value:h,allowLeadingZeros:p,suffix:f,format:d,placeholder:c,immutable:o})})}),800);var ch,sh,uh;E.ZP.div.withConfig({displayName:"StyledWrapper"})(ch||(ch=(0,P.Z)(["\n display: flex;\n justify-content: stretch;\n"]))),E.ZP.div.withConfig({displayName:"StyledLocationWrapper"})(sh||(sh=(0,P.Z)(["\n flex-grow: 1;\n"]))),E.ZP.div.withConfig({displayName:"StyledDistanceWrapper"})(uh||(uh=(0,P.Z)(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),C.FS.color("border"),C.bA.space(-.8),C.bA.space(.5));var lh,dh=(0,k.lazy)((function(){return i.e(802).then(i.bind(i,27352))})),ph=function(e){var t=e.id,n=e.onChange,r=e.immutable,o=e.value,a=e.options;if(r)return(0,R.jsx)(Dt.ZP.Span,{children:(0,R.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})});var i=a||{},c=i.contentLang,s=i.defaultLinkTarget,u=i.ckEditorConfig;return(0,R.jsx)(k.Suspense,{fallback:lh||(lh=(0,R.jsx)("i",{})),children:(0,R.jsx)(dh,{id:t,onChange:function(e){n&&n(e)},value:o,contentLang:c,defaultLinkTarget:s,ckEditorConfig:u})})};ph.defaultProps={value:""};var fh;E.ZP.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(fh||(fh=(0,P.Z)(["\n &&&& {\n ","\n }\n"])),jn);od.Debouncer((function(e){return(0,R.jsx)(Dn,{immutable:e.immutable,children:(0,R.jsx)(gf,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||""})})}));var hh,mh,gh,vh,yh,bh=i(28002),wh=(E.ZP.div.withConfig({displayName:"StyledTermsEdit"})(hh||(hh=(0,P.Z)(["\n margin: "," 0;\n display: flex;\n"])),C.bA.space(-1.4)),E.ZP.input.withConfig({displayName:"StyledCheckbox"})(mh||(mh=(0,P.Z)(["\n margin-right: ",";\n"])),C.bA.space(-1.5)),(0,E.iv)(gh||(gh=(0,P.Z)(["\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"])),C.FS.color("secondary"),C.FS.color("secondaryLight"),C.FS.color("secondary")));E.ZP.a.withConfig({displayName:"StyledTermsLink"})(vh||(vh=(0,P.Z)(["\n ","\n"])),wh),(0,E.ZP)(Ml).withConfig({displayName:"StyledHtmlFormatter"})(yh||(yh=(0,P.Z)(["\n &&& {\n p {\n margin: 0;\n }\n\n a {\n ","\n }\n }\n"])),wh);const xh=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)};var Oh,kh,Sh,Ph=(0,E.iv)(Oh||(Oh=(0,P.Z)(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),jn),_h=E.ZP.div.withConfig({displayName:"StyledSizeWrapper"})(kh||(kh=(0,P.Z)(["\n display: grid;\n width: 100%;\n\n &:after {\n content: attr(data-replicated-value) ' ';\n white-space: pre-wrap;\n word-break: break-all;\n visibility: hidden;\n ","\n\n /* prevent scrollbar on Firefox */\n padding-right: 15px;\n }\n"])),Ph),Eh=E.ZP.textarea.withConfig({displayName:"StyledTextarea"})(Sh||(Sh=(0,P.Z)(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: ",";\n position: relative;\n top: ",";\n }\n"])),Ph,(function(e){var t=e.disabled,n=e.isSafari;return!t||n?"4.5em":"0"}),(function(e){return e.disabled?C.bA.space(-1.2):"0"}));function Ch(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ch(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ch(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const jh=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,a=e.disabled,i=e.immutable,c=(0,k.useState)(t),s=(0,B.Z)(c,2),u=s[0],l=s[1],d=!xh(),p=xh(),f=(0,k.useCallback)(Zn()(l,500,{trailing:!0}),[]);return(0,k.useEffect)((function(){d&&f(t)}),[t,d,f]),(0,R.jsx)(_h,Dh(Dh({"data-testid":"replicated-test"},d?{"data-replicated-value":u}:{}),{},{children:(0,R.jsx)(Eh,{value:t||"",name:r,id:o,onChange:n,disabled:a,immutable:i,rows:"1",isSafari:p})}))};od.Debouncer((function(e){return(0,R.jsx)(Dn,{immutable:e.immutable,children:(0,R.jsx)(jh,{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 Th;E.ZP.input.withConfig({displayName:"StyledTimeEdit"})(Th||(Th=(0,P.Z)(["\n &&&& {\n ","\n }\n"])),jn);var Ah;const Ih=E.ZP.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(Ah||(Ah=(0,P.Z)(["\n &&&& {\n ","\n }\n"])),jn);od.Debouncer((function(e){return(0,R.jsxs)(Dn,{immutable:e.immutable,children:[(0,R.jsx)(Ih,{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,R.jsx)(An,{children:(0,R.jsx)(En.ZP,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));const Mh=(0,E.Zz)((function(e){return(0,R.jsx)(N.Z,{style:{fontSize:"".concat(e.theme.fontSize.base,"rem")},icon:e.value?"check":"times"})}));const Nh=function(e){var t=(0,h.useIntl)();return(0,R.jsx)(Dt.ZP.Time,{dateTime:e.value,title:t.formatDate(e.value),children:(0,R.jsx)(h.FormattedDate,{value:e.value,year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC"})})};var Rh;const Fh=(0,h.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),Rh||(Rh=(0,R.jsx)(Dt.ZP.Span,{}));var o=(0,fs.default)(r,"HH:mm");return(0,R.jsxs)(Dt.ZP.Time,{dateTime:r.toISOString(),title:"".concat(n.formatDate(r),", ").concat(o),children:[(0,R.jsx)(h.FormattedDate,{value:r,year:"numeric",month:"2-digit",day:"2-digit"}),", ",o]})}));function Lh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lh(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Hh=function(e){var t=(0,k.useContext)(E.Ni),n=e.options||{},r=(0,R.jsxs)(R.Fragment,{children:[n.title&&(0,R.jsx)(Dt.ZP.H5,{children:n.title}),(0,R.jsx)(Ml,Zh({},e))]}),o={color:C.rS.color("text")({theme:t}),fontSize:"".concat(C.rS.fontSize("base")({theme:t})*C.rS.fontSize("factor")({theme:t}),"rem"),marginLeft:"-".concat(C.bA.space(-1.9)({theme:t}))};return"text"===n.mode?r:(0,R.jsx)(il,{content:r,isPlainHtml:!0,children:(0,R.jsx)(N.Z,{style:o,icon:"question-circle"})})};const Bh=function(e){var t=e.value,n=e.options||{},r=n.tooltips,o=n.loadTooltip,a=Rn()(r,t.resourceKey,null);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(il,{content:a?(0,R.jsx)("div",{dangerouslySetInnerHTML:{__html:Ct.sanitizeHtml(a)}}):null,children:(0,R.jsx)("span",{onMouseOver:function(){return o&&!a&&o(t.resourceKey)},children:(0,R.jsx)(En.ZP,{alt:t.alt||t.fileName,icon:"eye",look:"raised",target:"_blank",href:t.binaryLink,onClick:function(e){e.stopPropagation()}})})}),(0,R.jsx)(En.ZP,{alt:t.alt||t.fileName,icon:"arrow-to-bottom",look:"raised",target:"_blank",href:ef.getDownloadUrl(t.binaryLink),onClick:function(e){e.stopPropagation()}})]})};const Uh=function(e){return(0,R.jsx)(sf,{onUpload:function(){},immutable:!0,textResources:{download:e.options.downloadText},value:e.value?e.value:null})};const Wh=function(e){var t=e.value,n=parseInt(t),r=hu(n);return(0,R.jsx)(Dt.ZP.Time,{dateTime:r,title:r,children:r})};const Vh=function(e){return(0,R.jsx)(En.ZP,{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 zh=function(e){return(0,R.jsx)(Dt.ZP.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};function Yh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yh(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gh=function(){return"; "};const Kh=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.useTitle,a=n||{},i=a.navigationStrategy,c=a.linkProps,s=(null==t?void 0:t.length)>0?t.map((function(e){return null!=i&&i.DetailLink?(0,R.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,R.jsx)(i.DetailLink,qh(qh({},c),{},{entityKey:e.key,children:e.display}))}):e.display})).reduce((function(e,t,n){return[e,(0,R.jsx)(Gh,{},"sep".concat(n)),t]})):null;return(0,R.jsx)(Dt.ZP.Span,{breakWords:r,useTitle:o,children:s})};const Xh=function(e){return(0,R.jsx)(Dt.ZP.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,R.jsx)(h.FormattedNumber,{value:e.value,style:"decimal",minimumFractionDigits:e.options&&e.options.postPointDigits||2})})};const $h=function(e){var t;return(0,R.jsx)(Dt.ZP.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,R.jsx)(h.FormattedNumber,{value:e.value,style:"percent",minimumFractionDigits:null==e||null===(t=e.options)||void 0===t?void 0:t.postPointDigits})})};function Qh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qh(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var em=(0,k.lazy)((function(){return Promise.all([i.e(877),i.e(698)]).then(i.bind(i,48078))}));const tm=function(e){return(0,R.jsx)(k.Suspense,{fallback:"",children:(0,R.jsx)(em,Jh({},e))})};function nm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nm(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const om=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.useTitle;t=yl(t);var a=(0,R.jsx)(Dt.ZP.Span,{breakWords:r,useTitle:o,children:t.display}),i=n||{},c=i.tooltips,s=i.loadTooltip,u=i.navigationStrategy,l=i.linkProps,d=Rn()(c,t.key,null);return(null!=u&&u.DetailLink?(0,R.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,R.jsx)(u.DetailLink,rm(rm({},l),{},{entityKey:t.key,children:(0,R.jsx)(il,{content:d?(0,R.jsx)("div",{dangerouslySetInnerHTML:{__html:Ct.sanitizeHtml(d)}}):null,children:(0,R.jsx)("span",{onMouseOver:function(){return s&&!d&&s(t.key)},children:a})})}))}):null)||a};const am=function(e){return(0,R.jsx)(Dt.ZP.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};const im=function(e){return e.breakWords?e.value.split("\n").map((function(t,n){return(0,R.jsx)(Dt.ZP.P,{useTitle:e.useTitle,children:t},n)})):(0,R.jsx)(Dt.ZP.Span,{breakWords:!1,useTitle:e.useTitle,children:e.value.replace("/\n/g"," ")})};var cm=function(e,t){return parseInt(e.split(":")[t])||0};const sm=(0,h.injectIntl)((function(e){var t=e.value,n=(e.intl,cm(t,0)),r=cm(t,1),o=cm(t,2),a=cm(t,3),i=new Date(2e3,1,1,n,r,o,a),c=(0,fs.default)(i,"HH:mm:ss.SSS"),s=(0,fs.default)(i,"HH:mm");return(0,R.jsx)(Dt.ZP.Time,{dateTime:c,title:s,children:s})}));const um=function(e){var t=e.value,n=e.breakWords,r=e.useTitle;return(0,R.jsx)(En.ZP,{onClick:function(e){e.stopPropagation()},href:t,target:"_blank",rel:"noopener noreferrer",label:t,breakWords:n,useTitle:r,neutral:!1})};var lm,dm={boolean:Mh,date:Nh,datetime:Fh,document:Uh,"document-compact":Bh,duration:Wh,email:Vh,html:Ml,integer:zh,"multi-remote":Kh,"multi-select":Kh,number:Xh,percent:$h,phone:tm,remote:om,"single-select":om,string:am,text:im,time:sm,url:um,description:Hh};const pm=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.breakWords,a=void 0===o||o,i=e.useTitle,c=void 0===i||i;if(dm[t]){var s=dm[t];return(0,R.jsx)(s,{value:n,options:r,breakWords:a,useTitle:c})}return console.log("No FormattedValue mapper defined for component type",t,n),lm||(lm=(0,R.jsx)("div",{}))};var fm;const hm=function(e){var t=e.type,n=e.value,r=e.options,o=e.breakWords,a=e.useTitle;return null==n||""===n?fm||(fm=(0,R.jsx)("span",{})):(0,R.jsx)(pm,{componentType:t,value:n,options:r,breakWords:o,useTitle:a})},mm=hm;var gm;E.ZP.div.withConfig({displayName:"StyledLayoutBox"})(gm||(gm=(0,P.Z)(["\n height: fit-content;\n margin-bottom: ",";\n"])),C.bA.space(.25));var vm,ym=E.ZP.div.withConfig({displayName:"StyledLayoutContainer"})(vm||(vm=(0,P.Z)(["\n display: grid;\n padding-right: ",";\n ",";\n ",";\n"])),C.bA.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(C.bA.space(.25)({theme:n}))}),(function(e){return e.occupiesRemainingHeight&&"\n flex: 1;\n "}));const bm=ym;var wm=function(e){var t=e.children,n=e.occupiesRemainingHeight,r=e.minBoxWidth,o=(0,k.useRef)(null),a=(0,k.useState)(0),i=(0,B.Z)(a,2),c=i[0],s=i[1],u=function(){s(o.current.offsetWidth)};return(0,k.useEffect)((function(){return u(),window.addEventListener("resize",u),function(){return window.removeEventListener("resize",u)}}),[]),(0,R.jsx)(bm,{ref:o,containerWidth:c,occupiesRemainingHeight:n,minBoxWidth:r,children:t})};wm.defaultProps={minBoxWidth:250};var xm,Om,km,Sm,Pm=i(69829),_m=(0,E.F4)(xm||(xm=(0,P.Z)(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),Em=(0,E.iv)(Om||(Om=(0,P.Z)(["\n animation: "," 400ms ease-in-out both;\n"])),_m),Cm=E.ZP.div.withConfig({displayName:"StyledLoadingIconAndTest"})(km||(km=(0,P.Z)(["\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"])),C.bA.space(-1),Em,Pm.Fe,C.bA.space(-1));const Dm=E.ZP.div.withConfig({displayName:"StyledLoadMask"})(Sm||(Sm=(0,P.Z)(["\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 jm;const Tm=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,a=e.className,i=(0,k.useState)(!1),c=(0,B.Z)(i,2),s=c[0],u=c[1],l=(0,k.useState)(!0),d=(0,B.Z)(l,2),p=d[0],f=d[1];(0,k.useEffect)((function(){return t&&Promise.all(t).then((function(){var e;e=!0,p&&u(e)})),function(){f(!1)}}),[]);var h=n&&Array.isArray(n)?!n.some((function(e){return!e})):!!t&&s;return(0,R.jsx)(Dm,{className:a,children:h?r:(0,R.jsxs)(Cm,{children:[jm||(jm=(0,R.jsx)(H,{size:"30px"},"loading-spinner")),o&&(0,R.jsx)(Dt.ZP.Span,{children:o},"loadingText")]})})};var Am,Im=E.ZP.div.withConfig({displayName:"StyledPanel"})(Am||(Am=(0,P.Z)(["\n && {\n background-color: ",";\n border: 1px "," ",";\n border-radius: ",";\n }\n"])),C.FS.color("paper"),(function(e){return e.isFramed?"solid":"none"}),C.FS.color("borderLight"),C.FS.radii("form"));const Mm=Im;const Nm=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.controlledIsOpen,a=e.isOpenInitial,i=void 0===a||a,c=e.isToggleable,s=void 0===c||c,u=e.onToggle,l=(0,k.useState)(i),d=(0,B.Z)(l,2),p=d[0],f=d[1],h="boolean"==typeof o,m=function(){s&&(h?"function"==typeof u&&u(!o):f(!p))};return(0,R.jsx)(Mm,{isFramed:r,children:S().Children.map(t,(function(e){return S().cloneElement(e,{isFramed:r,isOpen:h?o:p,isToggleable:s,toggleOpenState:m})}))})};var Rm,Fm=E.ZP.div.withConfig({displayName:"StyledPanelBody"})(Rm||(Rm=(0,P.Z)(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?C.bA.space(-.375):0}),(function(e){return e.isOpen?"block":"none"}));const Lm=Fm;const Zm=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,R.jsx)(Lm,{isFramed:n,isOpen:r,children:(0,R.jsx)("div",{children:t})})};const Hm=function(e){var t=e.initialOpenPanelIndex,n=e.children,r=(0,k.useState)(t),o=(0,B.Z)(r,2),a=o[0],i=o[1];return(0,R.jsx)(R.Fragment,{children:S().Children.map(n,(function(e,t){return S().cloneElement(e,{controlledIsOpen:a===t,onToggle:function(e){return function(e,t){i(!0===t?e:void 0)}(t,e)}})}))})};var Bm;const Um=E.ZP.div.withConfig({displayName:"StyledPanelGroup"})(Bm||(Bm=(0,P.Z)(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),C.bA.space(0),Mm,C.bA.space(-1));function Wm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wm(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const zm=function(e){return(0,R.jsx)(Um,{children:(0,R.jsx)(Hm,Vm({},e))})};var Ym,qm,Gm,Km,Xm,$m,Qm,Jm="1px",eg=E.ZP.span.withConfig({displayName:"StyledIconWrapper"})(Ym||(Ym=(0,P.Z)(["\n font-size: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),C.bA.font(1),!C.b1&&(0,E.iv)(qm||(qm=(0,P.Z)(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),C.FS.color("secondaryLight"))),tg=E.ZP.div.withConfig({displayName:"StyledPanelHeader"})(Gm||(Gm=(0,P.Z)(["\n && {\n background-color: ",";\n display: flex;\n border-radius: ",";\n padding: ",";\n align-items: center;\n\n /* only apply arrow styles on non-touch devices */\n ","\n > div {\n flex: 1 1 auto;\n }\n ","\n }\n"])),C.FS.color("backgroundPanelHeaderFooter"),(function(e){return e.isOpen?(0,E.iv)(Km||(Km=(0,P.Z)(["\n calc("," - ",") calc("," - ",") 0 0;\n "])),C.FS.radii("form"),Jm,C.FS.radii("form"),Jm):(0,E.iv)(Xm||(Xm=(0,P.Z)(["\n calc("," - ",")\n "])),C.FS.radii("form"),Jm)}),(function(e){return e.isFramed?(0,E.iv)($m||($m=(0,P.Z)(["\n "," ","\n "])),C.bA.space(-1.7),C.bA.space(-.375)):0}),!C.b1&&(0,E.iv)(Qm||(Qm=(0,P.Z)(["\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n "])),eg),(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(Jm,";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-width: ").concat(Jm,";\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(Jm,";\n }\n ")}(e)}));const ng=tg;var rg=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,a=e.showToggler,i=e.toggleOpenState,c=e.options;return(0,R.jsxs)(ng,{isFramed:n,isOpen:r,onClick:i,children:[(0,R.jsx)("div",{children:S().Children.map(t,(function(e){return S().cloneElement(e)}))}),o&&a&&(0,R.jsx)(eg,{children:(0,R.jsx)(N.Z,{icon:r?"chevron-up":"chevron-down",onClick:i,title:r?c.collapseButtonText:c.unfoldButtonText})})]})};rg.defaultProps={showToggler:!0,options:{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}};const og={Body:Zm,Group:zm,Header:rg,Wrapper:Nm};var ag,ig=E.ZP.div.withConfig({displayName:"StyledPanel"})(ag||(ag=(0,P.Z)(["\n && {\n background-color: ",";\n border: 1.5px "," ",";\n border-radius: ",";\n }\n"])),C.FS.color("paper"),(function(e){return e.isFramed?"solid":"none"}),C.FS.color("borderLight"),C.FS.radii("form"));const cg=ig;const sg=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n;return(0,R.jsx)(cg,{isFramed:r,children:S().Children.map(t,(function(e){return S().cloneElement(e,{isFramed:r})}))})};var ug,lg,dg=E.ZP.div.withConfig({displayName:"StyledPanelBody"})(ug||(ug=(0,P.Z)(["\n && {\n padding: ",";\n }\n"])),(function(e){return e.isFramed?(0,E.iv)(lg||(lg=(0,P.Z)(["\n "," "," "," ","\n "])),C.bA.space(-1),C.bA.space(.2),C.bA.space(.2),C.bA.space(.2)):0}));const pg=dg;const fg=function(e){var t=e.children,n=e.isFramed;return(0,R.jsx)(pg,{isFramed:n,children:(0,R.jsx)("div",{children:t})})};var hg;const mg=E.ZP.div.withConfig({displayName:"StyledPanelGroup"})(hg||(hg=(0,P.Z)(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),C.bA.space(0),cg,C.bA.space(-1));function gg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gg(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const yg=function(e){return(0,R.jsx)(mg,{children:(0,R.jsx)(Hm,vg({},e))})};var bg,wg="1px",xg=E.ZP.div.withConfig({displayName:"StyledPanelHeader"})(bg||(bg=(0,P.Z)(["\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"])),C.FS.color("paper"),C.FS.radii("form"),wg,C.FS.radii("form"),wg,(function(e){return e.isFramed?C.bA.space(.2):0}),C.FS.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(wg,";\n }\n ")}(e)}));const Og=xg;const kg=function(e){var t=e.children,n=e.isFramed;return(0,R.jsx)(Og,{isFramed:n,children:(0,R.jsx)("div",{children:S().Children.map(t,(function(e){return S().cloneElement(e)}))})})},Sg={Body:fg,Group:yg,Header:kg,Wrapper:sg};var Pg,_g,Eg,Cg,Dg={Body:(Pg={},(0,I.Z)(Pg,bh.Z.EmbedType.admin,og.Body),(0,I.Z)(Pg,bh.Z.EmbedType.widget,Sg.Body),Pg),Group:(_g={},(0,I.Z)(_g,bh.Z.EmbedType.admin,og.Group),(0,I.Z)(_g,bh.Z.EmbedType.widget,Sg.Group),_g),Header:(Eg={},(0,I.Z)(Eg,bh.Z.EmbedType.admin,og.Header),(0,I.Z)(Eg,bh.Z.EmbedType.widget,Sg.Header),Eg),Wrapper:(Cg={},(0,I.Z)(Cg,bh.Z.EmbedType.admin,og.Wrapper),(0,I.Z)(Cg,bh.Z.EmbedType.widget,Sg.Wrapper),Cg)};bh.Z.embedStrategyFactory({mapping:Dg.Body}),bh.Z.embedStrategyFactory({mapping:Dg.Group}),bh.Z.embedStrategyFactory({mapping:Dg.Header}),bh.Z.embedStrategyFactory({mapping:Dg.Wrapper});var jg;E.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(jg||(jg=(0,P.Z)(["\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: flex-end;\n"])),C.bA.space(0),C.FS.color("paper"));i(56746);var Tg=new AbortController,Ag=!1;window.addEventListener("beforeunload",(function(e){Ag?(e.preventDefault(),e.returnValue=""):Tg.abort()})),window.addEventListener("pagehide",(function(){Tg.signal.aborted||Tg.abort()}));var Ig=function(e){return"@@redux-saga/"+e},Mg=Ig("CANCEL_PROMISE"),Ng=Ig("CHANNEL_END"),Rg=Ig("IO"),Fg=Ig("MATCH"),Lg=Ig("MULTICAST"),Zg=Ig("SAGA_ACTION"),Hg=Ig("SELF_CANCELLATION"),Bg=Ig("TASK"),Ug=Ig("TASK_CANCEL"),Wg=Ig("TERMINATE"),Vg=Ig("LOCATION");function zg(){return zg=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},zg.apply(this,arguments)}var Yg=function(e){return null==e},qg=function(e){return null!=e},Gg=function(e){return"function"==typeof e},Kg=function(e){return"string"==typeof e},Xg=Array.isArray,$g=function(e){return e&&Gg(e.then)},Qg=function(e){return e&&Gg(e.next)&&Gg(e.throw)},Jg=function e(t){return t&&(Kg(t)||nv(t)||Gg(t)||Xg(t)&&t.every(e))},ev=function(e){return e&&Gg(e.take)&&Gg(e.close)},tv=function(e){return Gg(e)&&e.hasOwnProperty("toString")},nv=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},rv=function(e){return ev(e)&&e[Lg]};var ov=function(e){return function(){return e}},av=ov(!0),iv=function(){};var cv=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var sv=function(e,t){zg(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function uv(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function lv(e){var t=!1;return function(){t||(t=!0,e())}}var dv=function(e){throw e},pv=function(e){return{value:e,done:!0}};function fv(e,t,n){void 0===t&&(t=dv),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:pv,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function hv(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var mv=function(e){return Array.apply(null,new Array(e))},gv=function(e){return function(t){return e(Object.defineProperty(t,Zg,{value:!0}))}},vv=function(e){return e===Wg},yv=function(e){return e===Ug},bv=function(e){return vv(e)||yv(e)};function wv(e,t){var n=Object.keys(e),r=n.length;var o,a=0,i=Xg(e)?mv(r):{},c={};return n.forEach((function(e){var n=function(n,c){o||(c||bv(n)?(t.cancel(),t(n,c)):(i[e]=n,++a===r&&(o=!0,t(i))))};n.cancel=iv,c[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return c[e].cancel()})))},c}function xv(e){return{name:e.name||"anonymous",location:Ov(e)}}function Ov(e){return e[Vg]}var kv={isEmpty:av,put:iv,take:iv};function Sv(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,a=0,i=function(t){n[o]=t,o=(o+1)%e,r++},c=function(){if(0!=r){var t=n[a];return n[a]=null,r--,a=(a+1)%e,t}},s=function(){for(var e=[];r;)e.push(c());return e};return{isEmpty:function(){return 0==r},put:function(c){var u;if(r<e)i(c);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=c,a=o=(o+1)%e;break;case 4:u=2*e,n=s(),r=n.length,o=n.length,a=0,n.length=u,e=u,i(c)}},take:c,flush:s}}var Pv=function(){return kv},_v=function(e){return Sv(e,4)},Ev="TAKE",Cv="PUT",Dv="ALL",jv="RACE",Tv="CALL",Av="CPS",Iv="FORK",Mv="JOIN",Nv="CANCEL",Rv="SELECT",Fv="ACTION_CHANNEL",Lv="CANCELLED",Zv="FLUSH",Hv="GET_CONTEXT",Bv="SET_CONTEXT",Uv=function(e,t){var n;return(n={})[Rg]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function Wv(e,t){return void 0===e&&(e="*"),Jg(e)?(qg(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),Uv(Ev,{pattern:e})):rv(e)&&qg(t)&&Jg(t)?Uv(Ev,{channel:e,pattern:t}):ev(e)?(qg(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),Uv(Ev,{channel:e})):void 0}function Vv(e,t){return Yg(t)&&(t=e,e=void 0),Uv(Cv,{channel:e,action:t})}function zv(e){var t=Uv(Dv,e);return t.combinator=!0,t}function Yv(e,t){var n,r=null;return Gg(e)?n=e:(Xg(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&Kg(n)&&Gg(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function qv(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 Uv(Tv,Yv(e,n))}function Gv(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 Uv(Iv,Yv(e,n))}function Kv(e){void 0===e&&(e=cv);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Uv(Rv,{selector:e,args:n})}var Xv=function(e){return{done:!0,value:e}},$v={};function Qv(e){return ev(e)?"channel":tv(e)?String(e):Gg(e)?e.name:String(e)}function Jv(e,t,n){var r,o,a,i=t;function c(t,n){if(i===$v)return Xv(t);if(n&&!o)throw i=$v,n;r&&r(t);var c=n?e[o](n):e[i]();return i=c.nextState,a=c.effect,r=c.stateUpdater,o=c.errorState,i===$v?Xv(t):a}return fv(c,(function(e){return c(null,e)}),n)}function ey(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a,i={done:!1,value:Wv(e)},c=function(e){return a=e};return Jv({q1:function(){return{nextState:"q2",effect:i,stateUpdater:c}},q2:function(){return{nextState:"q1",effect:(e=a,{done:!1,value:Gv.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+Qv(e)+", "+t.name+")")}function ty(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a,i,c={done:!1,value:Wv(e)},s=function(e){return{done:!1,value:Gv.apply(void 0,[t].concat(r,[e]))}},u=function(e){return{done:!1,value:(t=e,void 0===t&&(t=Hg),Uv(Nv,t))};var t},l=function(e){return a=e},d=function(e){return i=e};return Jv({q1:function(){return{nextState:"q2",effect:c,stateUpdater:d}},q2:function(){return a?{nextState:"q3",effect:u(a)}:{nextState:"q1",effect:s(i),stateUpdater:l}},q3:function(){return{nextState:"q1",effect:s(i),stateUpdater:l}}},"q1","takeLatest("+Qv(e)+", "+t.name+")")}function ny(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 Gv.apply(void 0,[ey,e,t].concat(r))}function ry(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 Gv.apply(void 0,[ty,e,t].concat(r))}var oy=function(e,t,n){return a().mark((function r(){var o,i,c,s=arguments;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(o=s.length,i=new Array(o),c=0;c<o;c++)i[c]=s[c];case 1:return r.prev=2,r.next=5,qv.apply(void 0,[e,t].concat(i));case 5:r.next=16;break;case 7:if(r.prev=7,r.t0=r.catch(2),!1!==Tg.signal.aborted){r.next=16;break}if(!n){r.next=15;break}return r.next=13,Vv(n("client.common.unexpectedError","client.common.unexpectedError",r.t0));case 13:r.next=16;break;case 15:d.Z.logError("error",r.t0);case 16:r.next=1;break;case 18:case"end":return r.stop()}}),r,null,[[2,7]])}))};const ay={autoRestartSaga:oy,createGenerator:function(e){return a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,zv(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(oy(t,null,n)))},abortController:Tg,deactivatePreventFromLeaving:function(){Ag=!1},activatePreventFromLeaving:function(){Ag=!0}};O().node,O().bool,O().string,O().bool,O().objectOf(O().arrayOf(O().oneOfType([O().node,O().string]))),O().bool,O().bool,O().string,O().string,O().oneOf(["inside","outside-responsive","outside"]),O().bool,O().string,O().bool,O().string,O().bool;var iy,cy,sy,uy,ly=(iy={},(0,I.Z)(iy,C.co.condition.BASE,"inherit"),(0,I.Z)(iy,C.co.condition.DANGER,C.FS.color("signal.danger")),(0,I.Z)(iy,C.co.condition.SUCCESS,C.FS.color("signal.success")),(0,I.Z)(iy,C.co.condition.WARNING,C.FS.color("signal.warning")),(0,I.Z)(iy,C.co.condition.INFO,C.FS.color("signal.info")),iy),dy=(0,E.ZP)(Dt.hc).withConfig({displayName:"StyledSignalList"})(cy||(cy=(0,P.Z)(["\n && {\n list-style-type: none;\n }\n"]))),py=E.ZP.span.withConfig({displayName:"StyledSignalListIcon"})(sy||(sy=(0,P.Z)(["\n position: absolute;\n left: -1.6rem;\n text-align: left;\n"]))),fy=(0,E.ZP)(Dt.EF).withConfig({displayName:"StyledSignalListItem"})(uy||(uy=(0,P.Z)(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){return ly[e.condition]||"inherit"}(e)}));const hy=function(e){return(0,R.jsx)(dy,{as:"ul",children:S().Children.map(e.children,(function(e){return S().cloneElement(e)}))})};var my,gy,vy=(my={},(0,I.Z)(my,C.co.condition.BASE,!1),(0,I.Z)(my,C.co.condition.DANGER,"times"),(0,I.Z)(my,C.co.condition.SUCCESS,"check"),(0,I.Z)(my,C.co.condition.WARNING,"exclamation-triangle"),(0,I.Z)(my,C.co.condition.INFO,"info"),my),yy=function(e){var t=vy[e.condition];return t?(0,R.jsx)(N.Z,{icon:t,position:C.co.position.SOLE}):gy||(gy=(0,R.jsx)("i",{children:"•"}))},by=function(e){return(0,R.jsxs)(fy,{condition:e.condition,children:[(0,R.jsx)(py,{children:yy(e)}),e.label,S().Children.map(e.children,(function(e){return S().cloneElement(e)}))]})};by.defaultProps={condition:C.co.condition.BASE};const wy={List:hy,Item:by};const xy=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,(0,ve.Z)(e.error[n]))})),(0,R.jsx)(wy.List,{children:t.map((function(e,t){return(0,R.jsx)(wy.Item,{condition:"danger",label:e},t)}))})};var Oy,ky,Sy,Py,_y,Ey,Cy,Dy,jy,Ty,Ay,Iy,My,Ny,Ry="1.1px",Fy=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"not-allowed":"auto",";")},Ly=E.ZP.label.withConfig({displayName:"StyledStatedValueLabel"})(Oy||(Oy=(0,P.Z)(["\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,C.wy)({lineHeight:C.FS.lineHeight("dense")}),C.FS.color("paper"),(function(e){return Fy(e)}),(function(e){return"outside"===e.labelPosition&&(0,E.iv)(ky||(ky=(0,P.Z)(["\n margin-bottom: ",";\n display: block;\n width: auto;\n "])),C.bA.space(-1.5))}),(function(e){return"inside"===e.labelPosition&&(0,E.iv)(Sy||(Sy=(0,P.Z)(["\n flex-basis: unset;\n position: absolute;\n top: 0;\n z-index: 1;\n display: inline-block;\n padding: 0 "," 0 ","; // if immutable remove left padding\n width: fit-content;\n left: ",";\n "])),C.bA.space(-2),(function(e){return e.immutable&&"0"}),(function(e){return e.immutable?"0":C.bA.space(-1.8)}))}),(function(e){return e.styles})),Zy=E.ZP.div.withConfig({displayName:"StyledInputArea"})(Py||(Py=(0,P.Z)(["\n width: 60%;\n flex-grow: 1;\n ","\n"])),(function(e){return"outside"===e.labelPosition&&(0,E.iv)(_y||(_y=(0,P.Z)(["\n width: auto;\n "])))})),Hy=E.ZP.div.withConfig({displayName:"StyledStatedValueBox"})(Ey||(Ey=(0,P.Z)(["\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 ","\n ","\n\n > "," {\n display: inline-block;\n\n p:first-of-type {\n margin-top: 0;\n }\n }\n ","\n ","\n }\n"])),Ry,(function(e){return C.mT[function(e){var t=e.immutable,n=e.isDisplay,r=e.signal;return e.isDirty?"isDirty":n||t?"transparent":r?"signal":"base"}(e)](e)}),C.FS.radii("form"),C.bA.space(-2.5),C.bA.space(-1.5),(function(e){return!e.immutable&&(0,C.kk)(e)}),(function(e){return Fy(e)}),Qu,(function(e){return"inside"===e.labelPosition&&(0,E.iv)(Cy||(Cy=(0,P.Z)(["\n padding: "," "," "," ",";\n "])),C.bA.space(-1),C.bA.space(-1.7),C.bA.space(-2),C.bA.space(-1))}),(function(e){return e.styles})),By=E.ZP.p.withConfig({displayName:"StyledStatedValueDescription"})(Dy||(Dy=(0,P.Z)(["\n &&& {\n ","\n }\n"])),(0,C.wy)({fontSize:C.bA.font(-1)})),Uy=E.ZP.div.withConfig({displayName:"StyledStatedValueError"})(jy||(jy=(0,P.Z)([""]))),Wy=E.ZP.div.withConfig({displayName:"StyledStatedValueOuterWrapper"})(Ty||(Ty=(0,P.Z)(["\n &:not(:last-child) {\n margin-bottom: ",";\n }\n ","\n"])),C.bA.space(-.7),(function(e){return"inside"===e.labelPosition&&(0,E.iv)(Ay||(Ay=(0,P.Z)(["\n padding-top: ",";\n margin-bottom: 0.65rem;\n position: relative;\n "])),C.bA.space(-1.5))})),Vy=E.ZP.div.withConfig({displayName:"StyledStatedValueInnerWrapper"})(Iy||(Iy=(0,P.Z)(["\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"])),C.bA.space(-1.5),Hy,By,Uy,C.bA.space(-2),By,C.bA.space(-1),Ry,(function(e){return"outside"===e.labelPosition&&(0,E.iv)(My||(My=(0,P.Z)(["\n display: block;\n "])))}),(function(e){return"inside"===e.labelPosition&&(0,E.iv)(Ny||(Ny=(0,P.Z)(["\n padding-top: 0;\n "])))}),(function(e){return e.styles}));function zy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zy(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const qy=function(e){var t,n,r,o=e.children,a=e.description,i=e.dirty,c=e.isDisplay,s=e.error,u=e.hasValue,l=e.id,d=e.label,p=e.mandatory,f=e.mandatoryTitle,h=e.immutable,m=e.touched,g=e.signal,v=e.labelPosition,y=e.styles,b=!h&&m&&s&&Object.keys(s).length>0,w=p&&f?", ".concat(f):"",x="".concat(bl(d)).concat(w),O=g||function(e,t,n,r){return t?C.co.condition.DANGER:e?C.co.condition.INFO:n&&!r?C.co.condition.WARNING:void 0}(i,b,p,u),k={__html:"".concat(Ct.sanitizeHtml(d)).concat(p?" *":"")},S=!c&&!h&&{htmlFor:l};return(0,R.jsx)(yn,{children:function(e){var l=e.getRef;return(0,R.jsx)(Wy,{labelPosition:v,children:(0,R.jsxs)(Vy,{labelPosition:v,ref:l,label:d,styles:null==y?void 0:y.innerWrapperStyles,children:[d&&(0,R.jsx)(Ly,Yy(Yy({},S),{},{hasValue:u,dirty:i,title:x,immutable:h,isDisplay:c,signal:O,labelPosition:v,styles:null==y?void 0:y.labelStyles,children:t||(t=(0,R.jsx)("span",{dangerouslySetInnerHTML:k}))})),(0,R.jsxs)(Zy,{labelPosition:v,children:[(0,R.jsx)(Hy,{hasValue:u,immutable:h,isDisplay:c,signal:O,labelPosition:v,styles:null==y?void 0:y.valueStyles,children:o}),b&&(n||(n=(0,R.jsx)(Uy,{children:(0,R.jsx)(xy,{error:s})}))),a&&(r||(r=(0,R.jsx)(By,{children:a})))]})]})})}})};var Gy,Ky,Xy,$y=function(e){return(0,E.iv)(Gy||(Gy=(0,P.Z)(["\n color: ",";\n font-weight: ",";\n"])),C.v5[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?C.FS.fontWeight("bold"):C.FS.fontWeight("regular")}))},Qy=function(){return(0,E.iv)(Ky||(Ky=(0,P.Z)(["\n padding-top: ",";\n padding-left: ",";\n"])),(function(e){var t=e.isDisplay,n=e.immutable;if(t&&n)return(0,E.iv)(Xy||(Xy=(0,P.Z)(["\n ","\n "])),C.bA.space(-2.5))}),(function(e){return e.immutable&&0}))},Jy=["labelPosition"];function eb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 tb=function(e){var t=e.labelPosition,n=(0,M.Z)(e,Jy);return(0,R.jsx)(qy,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eb(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{labelStyles:$y,valueStyles:Qy},labelPosition:t||"outside-responsive"},n))};var nb,rb,ob,ab,ib,cb,sb=function(e){return e.signal?"signal":"shade2"},ub=function(){return(0,E.iv)(nb||(nb=(0,P.Z)(["\n align-items: flex-start;\n"])))},lb=function(e){return(0,E.iv)(rb||(rb=(0,P.Z)(["\n padding-top: ",";\n color: ",";\n"])),(function(e){var t=e.immutable;return"inside"===e.labelPosition?0:t?(0,E.iv)(ob||(ob=(0,P.Z)(["\n ","\n "])),C.bA.space(-1.8)):(0,E.iv)(ab||(ab=(0,P.Z)(["\n ","\n "])),C.bA.space(.1))}),C.v5[sb(e)](e))},db=function(){return(0,E.iv)(ib||(ib=(0,P.Z)(["\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,E.iv)(cb||(cb=(0,P.Z)(["\n ","\n "])),C.bA.space(-1)):void 0}),(function(e){return e.immutable&&0}))},pb=["labelPosition"];function fb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 hb=function(e){var t=e.labelPosition,n=(0,M.Z)(e,pb);return(0,R.jsx)(qy,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fb(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{innerWrapperStyles:ub,labelStyles:lb,valueStyles:db},labelPosition:t||"outside-responsive"},n))};var mb,gb=(mb={},(0,I.Z)(mb,bh.Z.EmbedType.admin,tb),(0,I.Z)(mb,bh.Z.EmbedType.widget,hb),mb);const vb=bh.Z.embedStrategyFactory({mapping:gb});var yb,bb,wb,xb,Ob=E.ZP.span.withConfig({displayName:"StyledSearchIconWrapper"})(yb||(yb=(0,P.Z)(["\n margin-right: ",";\n"])),C.bA.space(-.8)),kb=E.ZP.div.withConfig({displayName:"StyledSearchBox"})(bb||(bb=(0,P.Z)(["\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"]))),Sb=E.ZP.input.attrs((function(e){return{type:"search",placeholder:e.placeholder}})).withConfig({displayName:"StyledSearchBoxInput"})(wb||(wb=(0,P.Z)(["\n &&&& {\n ","\n }\n"])),jn),Pb=S().forwardRef((function(e,t){var n=e.value,r=e.minInputLength,o=e.onSearch,a=e.placeholder,i=(0,k.useState)(n||""),c=(0,B.Z)(i,2),s=c[0],u=c[1];return(0,R.jsx)(kb,{children:(0,R.jsx)(vb,{hasValue:Boolean(s),labelPosition:"inside",children:(0,R.jsxs)(Dn,{children:[xb||(xb=(0,R.jsx)(Ob,{children:(0,R.jsx)(N.Z,{icon:"search"})})),(0,R.jsx)(Sb,{"data-cy":"input-search-box",ref:t,onChange:function(e){var t=e.target.value;u(t),(0===t.length||t.length>=r)&&o(t)},value:s,"aria-label":a,placeholder:a}),(null==s?void 0:s.length)>0&&(0,R.jsx)(pe,{"data-cy":"btn-reset",icon:"times",onClick:function(){u(""),o("")}})]})})})}));Pb.defaultProps={debounce:200,minInputLength:3};const _b=od.Debouncer(Pb,100,"onSearch");var Eb,Cb,Db=[C.co.condition.INFO,C.co.condition.DANGER,C.co.condition.SUCCESS,C.co.condition.WARNING],jb=(Eb={},(0,I.Z)(Eb,C.co.condition.DANGER,C.FS.color("signal.danger")),(0,I.Z)(Eb,C.co.condition.SUCCESS,C.FS.color("signal.success")),(0,I.Z)(Eb,C.co.condition.WARNING,C.FS.color("signal.warning")),(0,I.Z)(Eb,C.co.condition.INFO,C.FS.color("signal.info")),Eb),Tb=E.ZP.div.withConfig({displayName:"StyledSignalBox"})(Cb||(Cb=(0,P.Z)(["\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 jb[e.condition]||jb[C.co.condition.INFO]}(e)}),C.bA.space(-1),C.bA.space(-1),C.FS.color("paper"));Tb.propTypes={condition:C.co.oneOfPropTypeAndCompletelyMapped(Db,jb)};var Ab=function(e){var t=e.condition,n=e.title,r=e.children,o=e.meta;return(0,R.jsxs)(Tb,{condition:t,children:[n&&(0,R.jsx)(Dt.ZP.H5,{children:n}),S().Children.map(r,(function(e){return S().cloneElement(e)})),o&&(0,R.jsx)(Dt.ZP.Small,{children:o})]})};Ab.defaultProps={condition:C.co.condition.BASE};var Ib=function(e){return(0,R.jsxs)(Dt.ZP.Span,{children:[e.some," / ",e.of]})};Ib.defaultProps={some:0};function Mb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mb(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Rb={currentlyDragging:null,currentlyDragOver:null,dropPosition:null,offset:null},Fb={Top:"Top",Bottom:"Bottom"};const Lb=function(e){var t=(0,k.useState)(Rb),n=(0,B.Z)(t,2),r=n[0],o=n[1],a=r.currentlyDragging,i=r.currentlyDragOver,c=r.dropPosition,s=r.offset;return{dndEvents:(0,k.useCallback)((function(t){return{onDragStart:function(e){o((function(e){return Nb(Nb({},e),{},{currentlyDragging:t})}));var n=e.target;n&&n.addEventListener("dragend",(function e(t){o(Rb),t.stopPropagation(),n&&n.removeEventListener("dragend",e)}),!1),e.stopPropagation()},onDragEnter:function(e){if(a&&!fl()(i,t)){var n=e.target?e.target.getBoundingClientRect():{},r=n.y+n.height/2;o((function(e){return Nb(Nb({},e),{},{currentlyDragOver:t,offset:r})}))}e.stopPropagation()},onDragOver:function(e){if(a){var t=e.clientY-s>0?Fb.Bottom:Fb.Top;return o((function(e){return Nb(Nb({},e),{},{dropPosition:t})})),e.preventDefault(),e.stopPropagation(),!0}},onDrop:function(t){a&&i&&(e(a,i,c),o(Rb),t.stopPropagation())}}}),[i,a,c,s,e]),dndState:(0,k.useMemo)((function(){return{currentlyDragOver:i,currentlyDragging:a,dropPosition:c,offset:s}}),[i,a,c,s])}};var Zb,Hb,Bb,Ub,Wb,Vb,zb,Yb=E.ZP.div.withConfig({displayName:"StyledColumnPickerWrapper"})(Zb||(Zb=(0,P.Z)([""]))),qb=E.ZP.div.withConfig({displayName:"StyledControlsWrapper"})(Hb||(Hb=(0,P.Z)(["\n margin-top: ",";\n"])),C.bA.space(.7)),Gb=E.ZP.ul.withConfig({displayName:"StyledUl"})(Bb||(Bb=(0,P.Z)(["\n list-style-type: none;\n margin-top: "," !important; // Nice2 Reset\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"])),C.bA.space(-.5),Dt.ar),Kb=E.ZP.input.withConfig({displayName:"StyledCheckbox"})(Ub||(Ub=(0,P.Z)(["\n vertical-align: top;\n margin-right: "," !important; // Nice2 Reset\n\n &:hover {\n cursor: pointer;\n }\n"])),C.bA.space(-1)),Xb=E.ZP.span.withConfig({displayName:"StyledId"})(Wb||(Wb=(0,P.Z)(["\n color: ",";\n font-style: italic;\n"])),C.FS.color("text")),$b=(0,E.ZP)(Dt.EF).withConfig({displayName:"StyledItem"})(Vb||(Vb=(0,P.Z)(["\n display: flex;\n padding: "," "," "," 0;\n border-right: ",";\n ","\n"])),C.bA.space(-2),C.bA.space(-2),C.bA.space(-2),(function(e){var t=e.isDraggedOver,n=e.theme;return t?"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 ")})),Qb=E.ZP.span.withConfig({displayName:"StyledNumber"})(zb||(zb=(0,P.Z)(["\n display: inline-block;\n margin-right: ",";\n color: ",";\n font-size: ",";\n"])),C.bA.space(-1),C.FS.color("text"),C.bA.font(0));function Jb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ew(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jb(Object(n),!0).forEach((function(t){(0,I.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hidden";return e.sort((function(e,n){return e[t]-n[t]}))},nw=function(e,t){return e.filter((function(e){return null===t||e.label.match(new RegExp(t,"i"))}))};const rw=function(e){var t=e.dndEnabled,n=e.columns,r=void 0===n?[]:n,o=e.onColumnsChange,a=e.intl,i=tw(r),c=(0,k.useState)(null),s=(0,B.Z)(c,2),u=s[0],l=s[1],d=(0,k.useCallback)((function(e,t){if(e!==t){var n=i.find((function(t){return t.id===e}));o((function(e){return e.filter((function(e){return e!==n})).reduce((function(e,r){return[].concat((0,ve.Z)(e),[r],(0,ve.Z)(r.id===t?[n]:[]))}),[])}))}}),[i,o]),p=Lb(d),f=p.dndEvents,h=p.dndState,m=(0,k.useMemo)((function(){return nw(i,u)}),[i,u]),g=m.some((function(e){return e.hidden})),v=(0,k.useMemo)((function(){return m.map((function(e,n){var r=h.currentlyDragOver===e.id&&h.currentlyDragging!==e.id;return(0,R.jsxs)($b,ew(ew({draggable:t,isDraggedOver:r},t&&ew({},f(e.id))),{},{children:[(0,R.jsx)(Kb,{type:"checkbox",id:e.id,checked:!e.hidden,onChange:function(t){o((function(n){return tw(n.map((function(n){return n.id===e.id?ew(ew({},n),{},{hidden:!t.target.checked}):n})))}))}}),(0,R.jsxs)(Dt.ZP.Label,{for:e.id,children:[(0,R.jsxs)(Qb,{children:[n+1,"."]}),e.label?(0,R.jsx)("span",{dangerouslySetInnerHTML:{__html:Ct.sanitizeHtml(e.label)}}):(0,R.jsx)(Xb,{children:e.id})]})]}),e.id)}))}),[h,t,f,m,o]);return(0,R.jsxs)(Yb,{children:[(0,R.jsx)(_b,{placeholder:a.formatMessage({id:"client.entity-list.preferences.columns.search"}),onSearch:l}),(0,R.jsxs)(qb,{children:[(0,R.jsx)(Kb,{type:"checkbox",onChange:function(e){var t=e.target.checked;o((function(e){var n=nw(e,u);return tw((0,ve.Z)(e.map((function(e){return ew(ew({},e),{},{hidden:n.includes(e)?!t:e.hidden})}))))}))},checked:!g}),(0,R.jsx)(Dt.ZP.Span,{children:a.formatMessage({id:"client.entity-list.preferences.columns.selectDeselectAllCheckbox"})})]}),(0,R.jsx)(Gb,{children:v})]})};(0,h.injectIntl)(rw);var ow,aw,iw,cw;E.ZP.div.withConfig({displayName:"StyledIconWrapper"})(ow||(ow=(0,P.Z)(["\n font-size: ",";\n"])),C.bA.font(-2.7)),E.ZP.div.withConfig({displayName:"StyledRange"})(aw||(aw=(0,P.Z)(["\n display: flex;\n align-items: baseline;\n"]))),E.ZP.div.withConfig({displayName:"StyledInput"})(iw||(iw=(0,P.Z)(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"]))),(0,E.ZP)(pe).withConfig({displayName:"StyledBall"})(cw||(cw=(0,P.Z)(["\n position: relative;\n top: 0.5px; // offset false vertical alignment\n"])));var sw,uw,lw,dw,pw,fw=E.ZP.div.withConfig({displayName:"StyledBurgerButton"})(sw||(sw=(0,P.Z)(["\n width: 24px;\n height: 24px;\n position: absolute;\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"])),C.rS.color("paper"),(function(e){return e.isOpen&&(0,E.iv)(uw||(uw=(0,P.Z)(["\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,h.injectIntl)((function(e){var t,n=e.isOpen,r=e.intl;return(0,R.jsxs)(fw,{isOpen:n,"aria-label":(t="client.component.burgerButton.Label",r.formatMessage({id:t})),children:[lw||(lw=(0,R.jsx)("span",{})),dw||(dw=(0,R.jsx)("span",{})),pw||(pw=(0,R.jsx)("span",{}))]})}));var hw,mw,gw=E.ZP.div.withConfig({displayName:"StyledPagination"})(hw||(hw=(0,P.Z)(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-wrap: wrap;\n gap: ",";\n margin-left: ",";\n"])),C.bA.space(-1),C.bA.space(-1.4)),vw=(0,E.ZP)(oe).withConfig({displayName:"StyledPaginationButton"})(mw||(mw=(0,P.Z)(["\n padding: "," ",";\n"])),C.bA.space(-2),C.bA.space(-.5));const yw=(0,h.injectIntl)((function(e){var t=e.totalCount,n=e.recordsPerPage,r=e.currentPage,o=e.onPageChange,a=e.intl,i=e.tableEl,c=e.children,s=Math.ceil(t/n),u=Math.min((r-1)*n+1,t),l=Math.min(r*n,t),d=function(e){return a.formatMessage({id:e})},p=function(e){o(e),i.current.scrollTop=0};return(0,R.jsxs)(gw,{children:[(0,R.jsxs)(cn,{children:[(0,R.jsx)(vw,{disabled:1===r,label:d("client.component.pagination.firstPageTitle"),iconOnly:!0,icon:"chevron-double-left",onClick:function(){return p(1)}}),(0,R.jsx)(vw,{disabled:1===r,label:d("client.component.pagination.prePageTitle"),iconOnly:!0,icon:"chevron-left",onClick:function(){return p(r-1)}}),(0,R.jsx)(vw,{disabled:r>=s,label:d("client.component.pagination.nextPageTitle"),iconOnly:!0,icon:"chevron-right",onClick:function(){return p(r+1)}}),(0,R.jsx)(vw,{disabled:r>=s,label:d("client.component.pagination.lastPageTitle"),iconOnly:!0,icon:"chevron-double-right",onClick:function(){return p(s)}})]}),t>0&&(0,R.jsx)(Dt.ZP.Span,{children:(0,R.jsx)(h.FormattedMessage,{id:"client.component.pagination.text",values:{start:u,to:l,total:t}})}),c]})})),bw=yw;var ww;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 i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const c=this.addEccAndInterleave(r);if(this.drawCodewords(c),-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)}}a(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,i=40,s=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=i&&i<=t.MAX_VERSION)||s<-1||s>7)throw new RangeError("Invalid value");let l,d;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=c.getTotalBits(e,l);if(o<=r){d=o;break}if(l>=i)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 p=[];for(const t of e){r(t.mode.modeBits,4,p),r(t.numChars,t.mode.numCharCountBits(l),p);for(const e of t.getData())p.push(e)}a(p.length==d);const f=8*t.getNumDataCodewords(l,n);a(p.length<=f),r(0,Math.min(4,f-p.length),p),r(0,(8-p.length%8)%8,p),a(p.length%8==0);for(let e=236;p.length<f;e^=253)r(e,8,p);let h=[];for(;8*h.length<p.length;)h.push(0);return p.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,n,h,s)}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);a(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;a(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(r,a,n),this.setFunctionModule(a,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)),a=e+r,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],c=Math.floor(t.getNumRawDataModules(n)/8),s=o-c%o,u=Math.floor(c/o);let l=[];const d=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-i+(n<s?0:1));r+=o.length;const a=t.reedSolomonComputeRemainder(o,d);n<s&&o.push(0),l.push(o.concat(a))}let p=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-i||n>=s)&&p.push(t[e])}));return a(p.length==c),p}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 a=0;a<2;a++){const i=t-a,c=0==(t+1&2)?this.size-1-r:r;!this.isFunction[c][i]&&n<8*e.length&&(this.modules[c][i]=o(e[n>>>3],7-(7&n)),n++)}}a(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][i],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[i][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return a(0<=o&&o<=9),e+=o*t.PENALTY_N4,a(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 a(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 a(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];a(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 a(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 i=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 i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.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 i(i.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!i.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*i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new i(i.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:i.isNumeric(e)?[i.makeNumeric(e)]:i.isAlphanumeric(e)?[i.makeAlphanumeric(e)]:[i.makeBytes(i.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 i(i.Mode.ECI,0,t)}static isNumeric(e){return i.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return i.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 c=i;c.NUMERIC_REGEX=/^[0-9]*$/,c.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,c.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=c})(ww||(ww={})),(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={}))})(ww||(ww={})),(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={}))})(ww||(ww={}));var xw=ww;
|
|
58
58
|
/**
|
|
59
59
|
* @license qrcode.react
|
|
60
60
|
* Copyright (c) Paul O'Shannessy
|