tocco-legacy-bundle 0.1.8 → 0.1.9

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/dist/merge.js CHANGED
@@ -61,4 +61,4 @@ object-assign
61
61
  * LICENSE file in the root directory of this source tree.
62
62
  */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case d:case a:case c:case i:case f:return e;default:switch(e=e&&e.$$typeof){case u:case p:case g:case m:case s:return e;default:return t}}case o:return t}}}function x(e){return k(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=c,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return x(e)||k(e)===l},t.isConcurrentMode=x,t.isContextConsumer=function(e){return k(e)===u},t.isContextProvider=function(e){return k(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return k(e)===p},t.isFragment=function(e){return k(e)===a},t.isLazy=function(e){return k(e)===g},t.isMemo=function(e){return k(e)===m},t.isPortal=function(e){return k(e)===o},t.isProfiler=function(e){return k(e)===c},t.isStrictMode=function(e){return k(e)===i},t.isSuspense=function(e){return k(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===c||e===i||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===u||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=k},51976:(e,t,n)=>{"use strict";e.exports=n(9734)},2393:(e,t,n)=>{"use strict";n.d(t,{h3:()=>P});var r,o=n(1024),a=n.n(o);function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function c(){}function s(e){return!!(e||"").match(/\d/)}function u(e){return null==e}function l(e){return"number"==typeof e&&isNaN(e)}function d(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function p(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 f(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function h(e,t){return Array(t+1).join(e)}function m(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."+h("0",Math.abs(i))+o:i>=c?o+=h("0",i-c):o=(o.substring(0,i)||"0")+"."+o.substring(i),n+o}function g(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=p(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?".":"")+f(u[1]||"",t,n)}function v(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 y(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function b(e,t,n,r){var o,a,i,c=e.length;if(o=t,a=0,i=c,t=Math.min(Math.max(o,a),i),"left"===r){for(;t>=0&&!n[t];)t--;-1===t&&(t=n.indexOf(!0))}else{for(;t<=c&&!n[t];)t++;t>c&&(t=n.lastIndexOf(!0))}return-1===t&&(t=c),t}function w(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(s(e[n])||s(e[n-1]));return t}function k(e,t,n,r,a,i){void 0===i&&(i=c);var s=(0,o.useRef)(),d=function(e){var t=(0,o.useRef)(e);t.current=e;var n=(0,o.useRef)((function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}));return n.current}((function(e){var t,o;return u(e)||l(e)?(o="",t=""):"number"==typeof e||n?(o="number"==typeof e?m(e):e,t=r(o)):(o=a(e,void 0),t=e),{formattedValue:t,numAsString:o}})),p=(0,o.useState)((function(){return d(t)})),f=p[0],h=p[1];return(0,o.useMemo)((function(){u(e)?s.current=void 0:(s.current=d(e),h(s.current))}),[e,d]),[f,function(e,t){h({formattedValue:e.formattedValue,numAsString:e.value}),i(e,t)}]}function x(e){return e.replace(/[^0-9]/g,"")}function O(e){return e}function _(e){var t=e.type;void 0===t&&(t="text");var n=e.displayType;void 0===n&&(n="input");var u=e.customInput,l=e.renderText,d=e.getInputRef,p=e.format;void 0===p&&(p=O);var f=e.removeFormatting;void 0===f&&(f=x);var h=e.defaultValue,m=e.valueIsNumericString,g=e.onValueChange,y=e.isAllowed,_=e.onChange;void 0===_&&(_=c);var S=e.onKeyDown;void 0===S&&(S=c);var A=e.onMouseUp;void 0===A&&(A=c);var E=e.onFocus;void 0===E&&(E=c);var C=e.onBlur;void 0===C&&(C=c);var P=e.value,j=e.getCaretBoundary;void 0===j&&(j=w);var D=e.isValidInputCharacter;void 0===D&&(D=s);var T=i(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter"]),M=k(P,h,Boolean(m),p,f,g),Z=M[0],I=Z.formattedValue,N=Z.numAsString,R=M[1],B=(0,o.useRef)();(0,o.useEffect)((function(){var e=p(N);if(void 0===B.current||e!==B.current){var t=W.current;K({formattedValue:e,numAsString:N,input:t,setCaretPosition:!0,source:r.props,event:void 0})}}));var L=(0,o.useState)(!1),F=L[0],H=L[1],W=(0,o.useRef)(null),U=(0,o.useRef)({setCaretTimeout:null,focusTimeout:null});(0,o.useEffect)((function(){return H(!0),function(){clearTimeout(U.current.setCaretTimeout),clearTimeout(U.current.focusTimeout)}}),[]);var z=p,V=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},Y=function(e,t,n){v(e,t),U.current.setCaretTimeout=setTimeout((function(){e.value===n&&v(e,t)}),0)},q=function(e,t,n){return b(e,t,j(e),n)},G=function(e,t,n){var r=j(t),o=function(e,t,n,r,o,a){var i=o.findIndex((function(e){return e})),c=e.slice(0,i);t||n.startsWith(c)||(n=c+n,r+=c.length);for(var s=n.length,u=e.length,l={},d=new Array(s),p=0;p<s;p++){d[p]=-1;for(var f=0,h=u;f<h;f++)if(n[p]===e[f]&&!0!==l[f]){d[p]=f,l[f]=!0;break}}for(var m=r;m<s&&(-1===d[m]||!a(n[m]));)m++;var g=m===s||-1===d[m]?u:d[m];for(m=r-1;m>0&&-1===d[m];)m--;var v=-1===m||-1===d[m]?0:d[m]+1;return v>g?g:r-v<g-r?v:g}(t,I,e,n,r,D);return o=b(t,o,r)},K=function(e){var t=e.formattedValue;void 0===t&&(t="");var n=e.input,r=e.setCaretPosition;void 0===r&&(r=!0);var o,a=e.source,i=e.event,c=e.numAsString,s=e.caretPos;if(n){if(void 0===s&&r){var u=e.inputValue||n.value,l=(o=n,Math.max(o.selectionStart,o.selectionEnd));n.value=t,s=G(u,t,l)}n.value=t,r&&void 0!==s&&Y(n,s,t)}t!==I&&function(e,t){B.current=e.formattedValue,R(e,t)}(V(t,c),{event:i,source:a})},X=!F||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",$=Object.assign({inputMode:X},T,{type:t,value:I,onChange:function(e){var t=function(e,t,n){var r=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}}}(I,e),o=Object.assign(Object.assign({},r),{lastValue:I}),a=f(e,o),i=z(a);return!(y&&!y(V(i,a))||(K({formattedValue:i,numAsString:a,inputValue:e,event:t,source:n,setCaretPosition:!0,input:t.target}),0))}(e.target.value,e,r.event);t&&_(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=q(i,t,"ArrowLeft"===r?"left":"right");else"Delete"!==r||D(i[t])?"Backspace"!==r||D(i[t])||(c=q(i,t,"left")):c=q(i,t,"right");c!==t&&Y(n,c,i),e.isUnitTestRun&&Y(n,c,i),S(e)}else S(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=q(o,n);a!==n&&Y(t,a,o)}A(e)},onFocus:function(e){e.persist();var t=e.target;W.current=t,U.current.focusTimeout=setTimeout((function(){var n=t.selectionStart,r=t.selectionEnd,o=t.value;void 0===o&&(o="");var a=q(o,n);a===n||0===n&&r===o.length||Y(t,a,o),E(e)}),0)},onBlur:function(e){W.current=null,clearTimeout(U.current.focusTimeout),clearTimeout(U.current.setCaretTimeout),C(e)}});if("text"===n)return l?a().createElement(a().Fragment,null,l(I,T)||null):a().createElement("span",Object.assign({},T,{ref:d}),I);if(u){var Q=u;return a().createElement(Q,Object.assign({},$,{ref:d}))}return a().createElement("input",Object.assign({},$,{ref:d}))}function S(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;void 0===i&&(i=!0);var c=t.thousandsGroupStyle;if(void 0===c&&(c="thousand"),""===e||"-"===e)return e;var s=A(t),u=s.thousandSeparator,l=s.decimalSeparator,d=0!==n&&-1!==e.indexOf(".")||n&&r,h=p(e,i),m=h.beforeDecimal,g=h.afterDecimal,v=h.addNegation;return void 0!==n&&(g=f(g,n,!!r)),u&&(m=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)}(m,u,c)),o&&(m=o+m),a&&(g+=a),v&&(m="-"+m),e=m+(d&&l||"")+g}function A(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 E(e,t,n){void 0===t&&(t=y(e));var r=n.allowNegative;void 0===r&&(r=!0);var o=n.prefix;void 0===o&&(o="");var a=n.suffix;void 0===a&&(a="");var i=n.decimalScale,c=t.from,s=t.to,u=s.start,l=s.end,f=A(n),h=f.allowedDecimalSeparators,m=f.decimalSeparator,g=e[l]===m;if(l-u==1&&-1!==h.indexOf(e[u])){var v=0===i?"":m;e=e.substring(0,u)+v+e.substring(u+1,e.length)}var b=!1;o.startsWith("-")?b=e.startsWith("--"):a.startsWith("-")&&e.length===a.length?b=!1:"-"===e[0]&&(b=!0),b&&(e=e.substring(1),u-=1,l-=1);var w=0;e.startsWith(o)?w+=o.length:u<o.length&&(w=u),l-=w;var k=(e=e.substring(w)).length,x=e.length-a.length;e.endsWith(a)?k=x:l>e.length-a.length&&(k=l),e=e.substring(0,k),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,r),e=(e.match(function(e,t){return new RegExp("(^-)|[0-9]|"+d(e),t?"g":void 0)}(m,!0))||[]).join("");var O=e.indexOf(m),_=p(e=e.replace(new RegExp(d(m),"g"),(function(e,t){return t===O?".":""})),r),S=_.beforeDecimal,E=_.afterDecimal,C=_.addNegation;return s.end-s.start<c.end-c.start&&""===S&&g&&!parseFloat(E)&&(e=C?"-":""),e}function C(e){var t=e.decimalSeparator;void 0===t&&(t=".");e.allowedDecimalSeparators,e.thousandsGroupStyle,e.suffix,e.allowNegative;var n=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=c);var a=e.onBlur;void 0===a&&(a=c);var d=e.thousandSeparator,p=e.decimalScale,f=e.fixedDecimalScale,h=e.prefix;void 0===h&&(h="");var y=e.defaultValue,b=e.value,w=e.valueIsNumericString,x=e.onValueChange,O=i(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]);!function(e){var t=A(e),n=t.thousandSeparator,r=t.decimalSeparator;if(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 ")}(e);var _=function(t){return S(t,e)},C=function(t,n){return E(t,n,e)},P=w;u(b)?u(y)||(P=null!=w?w:"number"==typeof y):P=null!=w?w:"number"==typeof b;var j=function(e){return u(e)||l(e)?e:("number"==typeof e&&(e=m(e)),P&&"number"==typeof p?g(e,p,Boolean(f)):e)},D=k(j(b),j(y),Boolean(P),_,C,x),T=D[0],M=T.numAsString,Z=T.formattedValue,I=D[1];return Object.assign(Object.assign({},O),{value:Z,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===t||s(e)},onValueChange:I,format:_,removeFormatting:C,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(t){var n=t.target,r=t.key,a=n.selectionStart,i=n.selectionEnd,c=n.value;if(void 0===c&&(c=""),a===i){"Backspace"===r&&"-"===c[0]&&a===h.length+1&&v(n,1);var s=A(e).decimalSeparator;"Backspace"===r&&c[a-1]===s&&p&&f&&(v(n,a-1),t.preventDefault());var u=!0===d?",":d;"Backspace"===r&&c[a-1]===u&&v(n,a-1),"Delete"===r&&c[a]===u&&v(n,a+1),o(t)}else o(t)},onBlur:function(t){var o=M;if(o.match(/\d/g)||(o=""),n||(o=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:"")}(o)),f&&p&&(o=g(o,p,f)),o!==M){var i=S(o,e);I({formattedValue:i,value:o,floatValue:parseFloat(o)},{event:t,source:r.event})}a(t)}})}function P(e){var t=C(e);return a().createElement(_,Object.assign({},t))}!function(e){e.event="event",e.props="prop"}(r||(r={}))},94842:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IGNORE_CLASS_NAME:()=>h,default:()=>g});var r=n(1024),o=n(30314);function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var s,u,l=(void 0===s&&(s=0),function(){return++s}),d={},p={},f=["touchstart","touchmove"],h="ignore-react-onclickoutside";function m(e,t){var n=null;return-1!==f.indexOf(t)&&u&&(n={passive:!e.props.preventDefault}),n}const g=function(e,t){var n,s,f=e.displayName||e.name||"Component";return s=n=function(n){var s,h;function g(e){var r;return(r=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof r.__clickOutsideHandlerProp){var t=r.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+f+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else r.__clickOutsideHandlerProp(e)},r.__getComponentNode=function(){var e=r.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():(0,o.findDOMNode)(e)},r.enableOnClickOutside=function(){if("undefined"!=typeof document&&!p[r._uid]){void 0===u&&(u=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),p[r._uid]=!0;var e=r.props.eventTypes;e.forEach||(e=[e]),d[r._uid]=function(e){var t;null!==r.componentNode&&(r.props.preventDefault&&e.preventDefault(),r.props.stopPropagation&&e.stopPropagation(),r.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&c(e,t,n))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,d[r._uid],m(i(r),e))}))}},r.disableOnClickOutside=function(){delete p[r._uid];var e=d[r._uid];if(e&&"undefined"!=typeof document){var t=r.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,m(i(r),t))})),delete d[r._uid]}},r.getRef=function(e){return r.instanceRef=e},r._uid=l(),r}h=n,(s=g).prototype=Object.create(h.prototype),s.prototype.constructor=s,a(s,h);var v=g.prototype;return v.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},v.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+f+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},v.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},v.componentWillUnmount=function(){this.disableOnClickOutside()},v.render=function(){var t=this.props;t.excludeScrollbar;var n=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}(t,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,(0,r.createElement)(e,n)},g}(r.Component),n.displayName="OnClickOutside("+f+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:h,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},s}},28384:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Manager:()=>i,Popper:()=>p,Reference:()=>m,usePopper:()=>s.D});var r=n(1024),o=r.createContext(),a=r.createContext();function i(e){var t=e.children,n=r.useState(null),i=n[0],c=n[1],s=r.useRef(!1);r.useEffect((function(){return function(){s.current=!0}}),[]);var u=r.useCallback((function(e){s.current||c(e)}),[]);return r.createElement(o.Provider,{value:i},r.createElement(a.Provider,{value:u},t))}var c=n(87568),s=n(32654),u=function(){},l=function(){return Promise.resolve(null)},d=[];function p(e){var t=e.placement,n=void 0===t?"bottom":t,a=e.strategy,i=void 0===a?"absolute":a,p=e.modifiers,f=void 0===p?d:p,h=e.referenceElement,m=e.onFirstUpdate,g=e.innerRef,v=e.children,y=r.useContext(o),b=r.useState(null),w=b[0],k=b[1],x=r.useState(null),O=x[0],_=x[1];r.useEffect((function(){(0,c.k$)(g,w)}),[g,w]);var S=r.useMemo((function(){return{placement:n,strategy:i,onFirstUpdate:m,modifiers:[].concat(f,[{name:"arrow",enabled:null!=O,options:{element:O}}])}}),[n,i,m,f,O]),A=(0,s.D)(h||y,w,S),E=A.state,C=A.styles,P=A.forceUpdate,j=A.update,D=r.useMemo((function(){return{ref:k,style:C.popper,placement:E?E.placement:n,hasPopperEscaped:E&&E.modifiersData.hide?E.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:E&&E.modifiersData.hide?E.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:C.arrow,ref:_},forceUpdate:P||u,update:j||l}}),[k,_,n,E,C,j,P]);return(0,c.$p)(v)(D)}var f=n(99874),h=n.n(f);function m(e){var t=e.children,n=e.innerRef,o=r.useContext(a),i=r.useCallback((function(e){(0,c.k$)(n,e),(0,c.DL)(o,e)}),[n,o]);return r.useEffect((function(){return function(){return(0,c.k$)(n,null)}}),[]),r.useEffect((function(){h()(Boolean(o),"`Reference` should not be used outside of a `Manager` component.")}),[o]),(0,c.$p)(t)({ref:i})}},32654:(e,t,n)=>{"use strict";n.d(t,{D:()=>be});var r=n(1024),o=n(30314);function a(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){return e instanceof a(e).Element||e instanceof Element}function c(e){return e instanceof a(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof a(e).ShadowRoot||e instanceof ShadowRoot)}var u=Math.max,l=Math.min,d=Math.round;function p(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(c(e)&&t){var a=e.offsetHeight,i=e.offsetWidth;i>0&&(r=d(n.width)/i||1),a>0&&(o=d(n.height)/a||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function f(e){var t=a(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function h(e){return e?(e.nodeName||"").toLowerCase():null}function m(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function g(e){return p(m(e)).left+f(e).scrollLeft}function v(e){return a(e).getComputedStyle(e)}function y(e){var t=v(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function b(e,t,n){void 0===n&&(n=!1);var r,o,i=c(t),s=c(t)&&function(e){var t=e.getBoundingClientRect(),n=d(t.width)/e.offsetWidth||1,r=d(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),u=m(t),l=p(e,s),v={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(i||!i&&!n)&&(("body"!==h(t)||y(u))&&(v=(r=t)!==a(r)&&c(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:f(r)),c(t)?((b=p(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):u&&(b.x=g(u))),{x:l.left+v.scrollLeft-b.x,y:l.top+v.scrollTop-b.y,width:l.width,height:l.height}}function w(e){var t=p(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function k(e){return"html"===h(e)?e:e.assignedSlot||e.parentNode||(s(e)?e.host:null)||m(e)}function x(e){return["html","body","#document"].indexOf(h(e))>=0?e.ownerDocument.body:c(e)&&y(e)?e:x(k(e))}function O(e,t){var n;void 0===t&&(t=[]);var r=x(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=a(r),c=o?[i].concat(i.visualViewport||[],y(r)?r:[]):r,s=t.concat(c);return o?s:s.concat(O(k(c)))}function _(e){return["table","td","th"].indexOf(h(e))>=0}function S(e){return c(e)&&"fixed"!==v(e).position?e.offsetParent:null}function A(e){for(var t=a(e),n=S(e);n&&_(n)&&"static"===v(n).position;)n=S(n);return n&&("html"===h(n)||"body"===h(n)&&"static"===v(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&c(e)&&"fixed"===v(e).position)return null;var n=k(e);for(s(n)&&(n=n.host);c(n)&&["html","body"].indexOf(h(n))<0;){var r=v(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var E="top",C="bottom",P="right",j="left",D="auto",T=[E,C,P,j],M="start",Z="end",I="viewport",N="popper",R=T.reduce((function(e,t){return e.concat([t+"-"+M,t+"-"+Z])}),[]),B=[].concat(T,[D]).reduce((function(e,t){return e.concat([t,t+"-"+M,t+"-"+Z])}),[]),L=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function F(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var H={placement:"bottom",modifiers:[],strategy:"absolute"};function W(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function U(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?H:o;return function(e,t,n){void 0===n&&(n=a);var o,c,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},H,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],l=!1,d={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;p(),s.options=Object.assign({},a,s.options,o),s.scrollParents={reference:i(e)?O(e):e.contextElement?O(e.contextElement):[],popper:O(t)};var c=function(e){var t=F(e);return L.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,s.options.modifiers)));return s.orderedModifiers=c.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:s,name:t,instance:d,options:r}),i=function(){};u.push(a||i)}})),d.update()},forceUpdate:function(){if(!l){var e=s.elements,t=e.reference,n=e.popper;if(W(t,n)){s.rects={reference:b(t,A(n),"fixed"===s.options.strategy),popper:w(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],a=o.fn,i=o.options,c=void 0===i?{}:i,u=o.name;"function"==typeof a&&(s=a({state:s,options:c,name:u,instance:d})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){d.forceUpdate(),e(s)}))},function(){return c||(c=new Promise((function(e){Promise.resolve().then((function(){c=void 0,e(o())}))}))),c}),destroy:function(){p(),l=!0}};if(!W(e,t))return d;function p(){u.forEach((function(e){return e()})),u=[]}return d.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),d}}var z={passive:!0};function V(e){return e.split("-")[0]}function Y(e){return e.split("-")[1]}function q(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function G(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?V(o):null,i=o?Y(o):null,c=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case E:t={x:c,y:n.y-r.height};break;case C:t={x:c,y:n.y+n.height};break;case P:t={x:n.x+n.width,y:s};break;case j:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=a?q(a):null;if(null!=u){var l="y"===u?"height":"width";switch(i){case M:t[u]=t[u]-(n[l]/2-r[l]/2);break;case Z:t[u]=t[u]+(n[l]/2-r[l]/2)}}return t}var K={top:"auto",right:"auto",bottom:"auto",left:"auto"};function X(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,c=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,p=e.roundOffsets,f=e.isFixed,h=c.x,g=void 0===h?0:h,y=c.y,b=void 0===y?0:y,w="function"==typeof p?p({x:g,y:b}):{x:g,y:b};g=w.x,b=w.y;var k=c.hasOwnProperty("x"),x=c.hasOwnProperty("y"),O=j,_=E,S=window;if(l){var D=A(n),T="clientHeight",M="clientWidth";if(D===a(n)&&"static"!==v(D=m(n)).position&&"absolute"===s&&(T="scrollHeight",M="scrollWidth"),D=D,o===E||(o===j||o===P)&&i===Z)_=C,b-=(f&&D===S&&S.visualViewport?S.visualViewport.height:D[T])-r.height,b*=u?1:-1;if(o===j||(o===E||o===C)&&i===Z)O=P,g-=(f&&D===S&&S.visualViewport?S.visualViewport.width:D[M])-r.width,g*=u?1:-1}var I,N=Object.assign({position:s},l&&K),R=!0===p?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:d(t*r)/r||0,y:d(n*r)/r||0}}({x:g,y:b}):{x:g,y:b};return g=R.x,b=R.y,u?Object.assign({},N,((I={})[_]=x?"0":"",I[O]=k?"0":"",I.transform=(S.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",I)):Object.assign({},N,((t={})[_]=x?b+"px":"",t[O]=k?g+"px":"",t.transform="",t))}const $={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=B.reduce((function(e,n){return e[n]=function(e,t,n){var r=V(e),o=[j,E].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],c=a[1];return i=i||0,c=(c||0)*o,[j,P].indexOf(r)>=0?{x:c,y:i}:{x:i,y:c}}(n,t.rects,a),e}),{}),c=i[t.placement],s=c.x,u=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}};var Q={left:"right",right:"left",bottom:"top",top:"bottom"};function J(e){return e.replace(/left|right|bottom|top/g,(function(e){return Q[e]}))}var ee={start:"end",end:"start"};function te(e){return e.replace(/start|end/g,(function(e){return ee[e]}))}function ne(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&s(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function re(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function oe(e,t){return t===I?re(function(e){var t=a(e),n=m(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,c=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(c=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:c+g(e),y:s}}(e)):i(t)?function(e){var t=p(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):re(function(e){var t,n=m(e),r=f(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=u(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=u(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+g(e),s=-r.scrollTop;return"rtl"===v(o||n).direction&&(c+=u(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:c,y:s}}(m(e)))}function ae(e,t,n){var r="clippingParents"===t?function(e){var t=O(k(e)),n=["absolute","fixed"].indexOf(v(e).position)>=0&&c(e)?A(e):e;return i(n)?t.filter((function(e){return i(e)&&ne(e,n)&&"body"!==h(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),a=o[0],s=o.reduce((function(t,n){var r=oe(e,n);return t.top=u(r.top,t.top),t.right=l(r.right,t.right),t.bottom=l(r.bottom,t.bottom),t.left=u(r.left,t.left),t}),oe(e,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ie(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ce(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function se(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.boundary,c=void 0===a?"clippingParents":a,s=n.rootBoundary,u=void 0===s?I:s,l=n.elementContext,d=void 0===l?N:l,f=n.altBoundary,h=void 0!==f&&f,g=n.padding,v=void 0===g?0:g,y=ie("number"!=typeof v?v:ce(v,T)),b=d===N?"reference":N,w=e.rects.popper,k=e.elements[h?b:d],x=ae(i(k)?k:k.contextElement||m(e.elements.popper),c,u),O=p(e.elements.reference),_=G({reference:O,element:w,strategy:"absolute",placement:o}),S=re(Object.assign({},w,_)),A=d===N?S:O,j={top:x.top-A.top+y.top,bottom:A.bottom-x.bottom+y.bottom,left:x.left-A.left+y.left,right:A.right-x.right+y.right},D=e.modifiersData.offset;if(d===N&&D){var M=D[o];Object.keys(j).forEach((function(e){var t=[P,C].indexOf(e)>=0?1:-1,n=[E,C].indexOf(e)>=0?"y":"x";j[e]+=M[n]*t}))}return j}function ue(e,t,n){return u(e,l(t,n))}const le={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,c=void 0!==i&&i,s=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.padding,h=n.tether,m=void 0===h||h,g=n.tetherOffset,v=void 0===g?0:g,y=se(t,{boundary:s,rootBoundary:d,padding:f,altBoundary:p}),b=V(t.placement),k=Y(t.placement),x=!k,O=q(b),_="x"===O?"y":"x",S=t.modifiersData.popperOffsets,D=t.rects.reference,T=t.rects.popper,Z="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,I="number"==typeof Z?{mainAxis:Z,altAxis:Z}:Object.assign({mainAxis:0,altAxis:0},Z),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(S){if(a){var B,L="y"===O?E:j,F="y"===O?C:P,H="y"===O?"height":"width",W=S[O],U=W+y[L],z=W-y[F],G=m?-T[H]/2:0,K=k===M?D[H]:T[H],X=k===M?-T[H]:-D[H],$=t.elements.arrow,Q=m&&$?w($):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=J[L],te=J[F],ne=ue(0,D[H],Q[H]),re=x?D[H]/2-G-ne-ee-I.mainAxis:K-ne-ee-I.mainAxis,oe=x?-D[H]/2+G+ne+te+I.mainAxis:X+ne+te+I.mainAxis,ae=t.elements.arrow&&A(t.elements.arrow),ie=ae?"y"===O?ae.clientTop||0:ae.clientLeft||0:0,ce=null!=(B=null==N?void 0:N[O])?B:0,le=W+oe-ce,de=ue(m?l(U,W+re-ce-ie):U,W,m?u(z,le):z);S[O]=de,R[O]=de-W}if(c){var pe,fe="x"===O?E:j,he="x"===O?C:P,me=S[_],ge="y"===_?"height":"width",ve=me+y[fe],ye=me-y[he],be=-1!==[E,j].indexOf(b),we=null!=(pe=null==N?void 0:N[_])?pe:0,ke=be?ve:me-D[ge]-T[ge]-we+I.altAxis,xe=be?me+D[ge]+T[ge]-we-I.altAxis:ye,Oe=m&&be?function(e,t,n){var r=ue(e,t,n);return r>n?n:r}(ke,me,xe):ue(m?ke:ve,me,m?xe:ye);S[_]=Oe,R[_]=Oe-me}t.modifiersData[r]=R}},requiresIfExists:["offset"]};const de={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,c=V(n.placement),s=q(c),u=[j,P].indexOf(c)>=0?"height":"width";if(a&&i){var l=function(e,t){return ie("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ce(e,T))}(o.padding,n),d=w(a),p="y"===s?E:j,f="y"===s?C:P,h=n.rects.reference[u]+n.rects.reference[s]-i[s]-n.rects.popper[u],m=i[s]-n.rects.reference[s],g=A(a),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=l[p],k=v-d[u]-l[f],x=v/2-d[u]/2+y,O=ue(b,x,k),_=s;n.modifiersData[r]=((t={})[_]=O,t.centerOffset=O-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ne(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pe(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function fe(e){return[E,P,C,j].some((function(t){return e[t]>=0}))}var he=U({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,c=r.resize,s=void 0===c||c,u=a(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&l.forEach((function(e){e.addEventListener("scroll",n.update,z)})),s&&u.addEventListener("resize",n.update,z),function(){i&&l.forEach((function(e){e.removeEventListener("scroll",n.update,z)})),s&&u.removeEventListener("resize",n.update,z)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=G({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,c=n.roundOffsets,s=void 0===c||c,u={placement:V(t.placement),variation:Y(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,X(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,X(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];c(o)&&h(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});c(r)&&h(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},$,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,c=void 0===i||i,s=n.fallbackPlacements,u=n.padding,l=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=V(g),y=s||(v===g||!h?[J(g)]:function(e){if(V(e)===D)return[];var t=J(e);return[te(e),t,te(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(V(n)===D?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,c=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?B:s,l=Y(r),d=l?c?R:R.filter((function(e){return Y(e)===l})):T,p=d.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=se(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[V(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:l,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,k=t.rects.popper,x=new Map,O=!0,_=b[0],S=0;S<b.length;S++){var A=b[S],Z=V(A),I=Y(A)===M,N=[E,C].indexOf(Z)>=0,L=N?"width":"height",F=se(t,{placement:A,boundary:l,rootBoundary:d,altBoundary:p,padding:u}),H=N?I?P:j:I?C:E;w[L]>k[L]&&(H=J(H));var W=J(H),U=[];if(a&&U.push(F[Z]<=0),c&&U.push(F[H]<=0,F[W]<=0),U.every((function(e){return e}))){_=A,O=!1;break}x.set(A,U)}if(O)for(var z=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return _=t,"break"},q=h?3:1;q>0;q--){if("break"===z(q))break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},le,de,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=se(t,{elementContext:"reference"}),c=se(t,{altBoundary:!0}),s=pe(i,r),u=pe(c,o,a),l=fe(s),d=fe(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}}]}),me=n(98836),ge=n.n(me),ve=n(87568),ye=[],be=function(e,t,n){void 0===n&&(n={});var a=r.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||ye},c=r.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=c[0],u=c[1],l=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);o.flushSync((function(){u({styles:(0,ve.sq)(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:(0,ve.sq)(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),d=r.useMemo((function(){var e={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[l,{name:"applyStyles",enabled:!1}])};return ge()(a.current,e)?a.current||e:(a.current=e,e)}),[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,l]),p=r.useRef();return(0,ve.LI)((function(){p.current&&p.current.setOptions(d)}),[d]),(0,ve.LI)((function(){if(null!=e&&null!=t){var r=(n.createPopper||he)(e,t,d);return p.current=r,function(){r.destroy(),p.current=null}}}),[e,t,n.createPopper]),{state:p.current?p.current.state:null,styles:s.styles,attributes:s.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}}},87568:(e,t,n)=>{"use strict";n.d(t,{$p:()=>o,DL:()=>a,LI:()=>s,k$:()=>i,sq:()=>c});var r=n(1024),o=function(e){return Array.isArray(e)?e[0]:e},a=function(e){if("function"==typeof 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 e.apply(void 0,n)}},i=function(e,t){if("function"==typeof e)return a(e,t);null!=e&&(e.current=t)},c=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},s="undefined"!=typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect},13508:(e,t,n)=>{"use strict";n.d(t,{A:()=>V,B:()=>J,C:()=>Q,D:()=>$,E:()=>I,F:()=>qe,G:()=>X,H:()=>B,I:()=>N,J:()=>U,K:()=>M,M:()=>ae,a:()=>_e,b:()=>he,c:()=>Ye,d:()=>je,e:()=>Oe,f:()=>Me,g:()=>Te,h:()=>Se,i:()=>ge,j:()=>Ie,k:()=>ue,l:()=>Ee,m:()=>re,n:()=>ie,o:()=>fe,p:()=>Le,q:()=>Fe,r:()=>ee,s:()=>K,t:()=>He,u:()=>se,v:()=>Ue,w:()=>ze,x:()=>Ve,y:()=>me,z:()=>z});var r=n(8486),o=n(3640),a=n(89178),i=n(91411),c=n(56315),s=n(68957),u=n(73891),l=n(46927),d=n(1024),p=n(30314);Math.min,Math.max;const f=["top","right","bottom","left"];f.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function h(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function m(e){if(null==e)return window;if(!h(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function g(e){return m(e).getComputedStyle(e)}function v(e){return h(e)?"":e?(e.nodeName||"").toLowerCase():""}function y(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function b(e){return e instanceof m(e).HTMLElement}function w(e){return e instanceof m(e).Element}function k(e){return"undefined"!=typeof ShadowRoot&&(e instanceof m(e).ShadowRoot||e instanceof ShadowRoot)}function x(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=g(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function O(){return!/^((?!chrome|android).)*safari/i.test(y())}function _(e){return["html","body","#document"].includes(v(e))}Math.min,Math.max;const S=Math.round;function A(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&&b(e)&&(s=e.offsetWidth>0&&S(c.width)/e.offsetWidth||1,u=e.offsetHeight>0&&S(c.height)/e.offsetHeight||1);const l=w(e)?m(e):window,d=!O()&&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,g=c.height/u;return{width:h,height:g,top:f,right:p+h,bottom:f+g,left:p,x:p,y:f}}function E(e){return(t=e,(t instanceof m(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function C(e){return"html"===v(e)?e:e.assignedSlot||e.parentNode||(k(e)?e.host:null)||E(e)}function P(e){const t=C(e);return _(t)?e.ownerDocument.body:b(t)&&x(t)?t:P(t)}function j(e,t){var n;void 0===t&&(t=[]);const r=P(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=m(r),i=o?[a].concat(a.visualViewport||[],x(r)?r:[]):r,c=t.concat(i);return o?c:c.concat(j(i))}var D=n(6919),T=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],M=function(){};function Z(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function I(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(Z(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var N=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,u.Z)(e)&&null!==e?[e]:[];var t},R=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=(0,c.Z)(e,T);return(0,r.Z)({},t)};function B(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function L(e){return B(e)?window.pageYOffset:e.scrollTop}function F(e,t){B(e)?window.scrollTo(0,t):e.scrollTop=t}function H(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function W(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:M,o=L(e),a=t-o,i=10,c=0;function s(){var t=H(c+=i,o,a,n);F(e,t),c<n?window.requestAnimationFrame(s):r(e)}s()}function U(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?F(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&F(e,Math.max(t.offsetTop-o,0))}function z(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function V(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}var Y=!1,q={get passive(){return Y=!0}},G="undefined"!=typeof window?window:{};G.addEventListener&&G.removeEventListener&&(G.addEventListener("p",M,q),G.removeEventListener("p",M,!1));var K=Y;function X(e){return null!=e}function $(e,t,n){return e?t:n}function Q(e){return e}function J(e){return e}var ee=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=(0,s.Z)(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=(0,s.Z)(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})};function te(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,c=e.theme.spacing,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:B(l=s)?window.innerHeight:l.clientHeight,y=L(s),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),k=g-w,x=v-m,O=k+y,_=d-y-m,S=f-v+y+b,A=y+m-w,E=160;switch(o){case"auto":case"bottom":if(x>=h)return{placement:"bottom",maxHeight:t};if(_>=h&&!i)return a&&W(s,S,E),{placement:"bottom",maxHeight:t};if(!i&&_>=r||i&&x>=r)return a&&W(s,S,E),{placement:"bottom",maxHeight:i?x-b:_-b};if("auto"===o||i){var C=t,P=i?k:O;return P>=r&&(C=Math.min(P-b-c.controlHeight,t)),{placement:"top",maxHeight:C}}if("bottom"===o)return a&&F(s,S),{placement:"bottom",maxHeight:t};break;case"top":if(k>=h)return{placement:"top",maxHeight:t};if(O>=h&&!i)return a&&W(s,A,E),{placement:"top",maxHeight:t};if(!i&&O>=r||i&&k>=r){var j=t;return(!i&&O>=r||i&&k>=r)&&(j=i?k-w:O-w),a&&W(s,A,E),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var ne=function(e){return"auto"===e?"bottom":e},re=function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,a=r.spacing,i=r.colors;return t={label:"menu"},(0,l.Z)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),(0,l.Z)(t,"backgroundColor",i.neutral0),(0,l.Z)(t,"borderRadius",o),(0,l.Z)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),(0,l.Z)(t,"marginBottom",a.menuGutter),(0,l.Z)(t,"marginTop",a.menuGutter),(0,l.Z)(t,"position","absolute"),(0,l.Z)(t,"width","100%"),(0,l.Z)(t,"zIndex",1),t},oe=(0,d.createContext)(null),ae=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,a=e.menuPlacement,i=e.menuPosition,c=e.menuShouldScrollIntoView,u=e.theme,l=((0,d.useContext)(oe)||{}).setPortalPlacement,p=(0,d.useRef)(null),f=(0,d.useState)(o),h=(0,s.Z)(f,2),m=h[0],g=h[1],v=(0,d.useState)(null),y=(0,s.Z)(v,2),b=y[0],w=y[1];return(0,D.Z)((function(){var e=p.current;if(e){var t="fixed"===i,r=te({maxHeight:o,menuEl:e,minHeight:n,placement:a,shouldScroll:c&&!t,isFixedPosition:t,theme:u});g(r.maxHeight),w(r.placement),null==l||l(r.placement)}}),[o,a,i,c,n,l,u]),t({ref:p,placerProps:(0,r.Z)((0,r.Z)({},e),{},{placement:b||ne(a),maxHeight:m})})},ie=function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},ce=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},se=ce,ue=ce,le=function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,c=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({css:i("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},c),t)};le.defaultProps={children:"No options"};var de=function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,c=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({css:i("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},c),t)};de.defaultProps={children:"Loading..."};var pe,fe=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}},he=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},me=function(e){var t=e.theme.spacing,n=e.isMulti,r=e.hasValue,o=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:n&&r&&o?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}},ge=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},ve=["size"];var ye={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},be=function(e){var t=e.size,n=(0,c.Z)(e,ve);return(0,a.tZ)("svg",(0,o.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ye},n))},we=function(e){return(0,a.tZ)(be,(0,o.Z)({size:20},e),(0,a.tZ)("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"}))},ke=function(e){return(0,a.tZ)(be,(0,o.Z)({size:20},e),(0,a.tZ)("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"}))},xe=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},Oe=xe,_e=xe,Se=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},Ae=(0,a.F4)(pe||(pe=(0,i.Z)(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),Ee=function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,a=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*a,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},Ce=function(e){var t=e.delay,n=e.offset;return(0,a.tZ)("span",{css:(0,a.iv)({animation:"".concat(Ae," 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"},"","")})},Pe=function(e){var t=e.className,n=e.cx,r=e.getStyles,i=e.innerProps,c=e.isRtl;return(0,a.tZ)("div",(0,o.Z)({css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},i),(0,a.tZ)(Ce,{delay:0,offset:c}),(0,a.tZ)(Ce,{delay:160,offset:!0}),(0,a.tZ)(Ce,{delay:320,offset:!c}))};Pe.defaultProps={size:4};var je=function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,a=r.borderRadius,i=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},De=["data"],Te=function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},Me=function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},Ze=["innerRef","isDisabled","isHidden","inputClassName"],Ie=function(e){var t=e.isDisabled,n=e.value,o=e.theme,a=o.spacing,i=o.colors;return(0,r.Z)({margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,visibility:t?"hidden":"visible",color:i.neutral80,transform:n?"translateZ(0)":""},Re)},Ne={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Re={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,r.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ne)},Be=function(e){return(0,r.Z)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ne)},Le=function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},Fe=function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"}},He=function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused?o.dangerLight:void 0,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},We=function(e){var t=e.children,n=e.innerProps;return(0,a.tZ)("div",n,t)};var Ue=function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,a=o.spacing,i=o.colors;return{label:"option",backgroundColor:r?i.primary:n?i.primary25:"transparent",color:t?i.neutral20:r?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:r?i.primary:i.primary50}}},ze=function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2}},Ve=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},Ye={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,c=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({css:i("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)},c),t||(0,a.tZ)(we,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.className,c=e.isDisabled,s=e.isFocused,u=e.innerRef,l=e.innerProps,d=e.menuIsOpen;return(0,a.tZ)("div",(0,o.Z)({ref:u,css:r("control",e),className:n({control:!0,"control--is-disabled":c,"control--is-focused":s,"control--menu-is-open":d},i)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,c=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({css:i("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)},c),t||(0,a.tZ)(ke,null))},DownChevron:ke,CrossIcon:we,Group:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,c=e.Heading,s=e.headingProps,u=e.innerProps,l=e.label,d=e.theme,p=e.selectProps;return(0,a.tZ)("div",(0,o.Z)({css:i("group",e),className:r({group:!0},n)},u),(0,a.tZ)(c,(0,o.Z)({},s,{selectProps:p,theme:d,getStyles:i,cx:r}),l),(0,a.tZ)("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,r=e.className,i=R(e);i.data;var s=(0,c.Z)(i,De);return(0,a.tZ)("div",(0,o.Z)({css:t("groupHeading",e),className:n({"group-heading":!0},r)},s))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,i=e.innerProps,c=e.getStyles;return(0,a.tZ)("div",(0,o.Z)({css:c("indicatorsContainer",e),className:r({indicators:!0},n)},i),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,i=e.innerProps;return(0,a.tZ)("span",(0,o.Z)({},i,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,i=e.value,s=R(e),u=s.innerRef,l=s.isDisabled,d=s.isHidden,p=s.inputClassName,f=(0,c.Z)(s,Ze);return(0,a.tZ)("div",{className:n({"input-container":!0},t),css:r("input",e),"data-value":i||""},(0,a.tZ)("input",(0,o.Z)({className:n({input:!0},p),ref:u,style:Be(d),disabled:l},f)))},LoadingIndicator:Pe,Menu:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,c=e.innerRef,s=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({css:i("menu",e),className:r({menu:!0},n),ref:c},s),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,c=e.innerProps,s=e.innerRef,u=e.isMulti;return(0,a.tZ)("div",(0,o.Z)({css:i("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":u},n),ref:s},c),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.className,i=e.controlElement,c=e.cx,u=e.innerProps,l=e.menuPlacement,f=e.menuPosition,h=e.getStyles,m=(0,d.useRef)(null),g=(0,d.useRef)(null),v=(0,d.useState)(ne(l)),y=(0,s.Z)(v,2),b=y[0],k=y[1],x=(0,d.useMemo)((function(){return{setPortalPlacement:k}}),[]),O=(0,d.useState)(null),_=(0,s.Z)(O,2),S=_[0],E=_[1],C=(0,d.useCallback)((function(){if(i){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}}(i),t="fixed"===f?0:window.pageYOffset,n=e[b]+t;n===(null==S?void 0:S.offset)&&e.left===(null==S?void 0:S.rect.left)&&e.width===(null==S?void 0:S.rect.width)||E({offset:n,rect:e})}}),[i,f,b,null==S?void 0:S.offset,null==S?void 0:S.rect.left,null==S?void 0:S.rect.width]);(0,D.Z)((function(){C()}),[C]);var P=(0,d.useCallback)((function(){"function"==typeof g.current&&(g.current(),g.current=null),i&&m.current&&(g.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?[...w(e)?j(e):[],...j(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})),w(e)&&!c&&d.observe(e),d.observe(t)}let p=c?A(e):null;return c&&function t(){const r=A(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)}}(i,m.current,C,{elementResize:"ResizeObserver"in window}))}),[i,C]);(0,D.Z)((function(){P()}),[P]);var T=(0,d.useCallback)((function(e){m.current=e,P()}),[P]);if(!t&&"fixed"!==f||!S)return null;var M=(0,a.tZ)("div",(0,o.Z)({ref:T,css:h("menuPortal",{offset:S.offset,position:f,rect:S.rect}),className:c({"menu-portal":!0},r)},u),n);return(0,a.tZ)(oe.Provider,{value:x},t?(0,p.createPortal)(M,t):M)},LoadingMessage:de,NoOptionsMessage:le,MultiValue:function(e){var t=e.children,n=e.className,o=e.components,i=e.cx,c=e.data,s=e.getStyles,u=e.innerProps,l=e.isDisabled,d=e.removeProps,p=e.selectProps,f=o.Container,h=o.Label,m=o.Remove;return(0,a.tZ)(a.ms,null,(function(o){var g=o.css,v=o.cx;return(0,a.tZ)(f,{data:c,innerProps:(0,r.Z)({className:v(g(s("multiValue",e)),i({"multi-value":!0,"multi-value--is-disabled":l},n))},u),selectProps:p},(0,a.tZ)(h,{data:c,innerProps:{className:v(g(s("multiValueLabel",e)),i({"multi-value__label":!0},n))},selectProps:p},t),(0,a.tZ)(m,{data:c,innerProps:(0,r.Z)({className:v(g(s("multiValueRemove",e)),i({"multi-value__remove":!0},n)),"aria-label":"Remove ".concat(t||"option")},d),selectProps:p}))}))},MultiValueContainer:We,MultiValueLabel:We,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({role:"button"},n),t||(0,a.tZ)(we,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,c=e.isDisabled,s=e.isFocused,u=e.isSelected,l=e.innerRef,d=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({css:i("option",e),className:r({option:!0,"option--is-disabled":c,"option--is-focused":s,"option--is-selected":u},n),ref:l,"aria-disabled":c},d),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,c=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({css:i("placeholder",e),className:r({placeholder:!0},n)},c),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,c=e.innerProps,s=e.isDisabled,u=e.isRtl;return(0,a.tZ)("div",(0,o.Z)({css:i("container",e),className:r({"--is-disabled":s,"--is-rtl":u},n)},c),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,c=e.isDisabled,s=e.innerProps;return(0,a.tZ)("div",(0,o.Z)({css:i("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":c},n)},s),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,i=e.innerProps,c=e.isMulti,s=e.getStyles,u=e.hasValue;return(0,a.tZ)("div",(0,o.Z)({css:s("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":c,"value-container--has-value":u},n)},i),t)}},qe=function(e){return(0,r.Z)((0,r.Z)({},Ye),e.components)}},46443:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>de});var r=n(8486),o=n(68957),a=n(56315),i=n(1024),c=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var s=n(3640),u=n(11259),l=n(44822),d=n(32208),p=n(19241);var f=n(99357);function h(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=(0,p.Z)(e);if(t){var o=(0,p.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,f.Z)(this,n)}}var m=n(45915),g=n(13508),v=n(89178),y=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function b(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||y(r)&&y(o)))return!1;var r,o;return!0}for(var w={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"},k=function(e){return(0,v.tZ)("span",(0,s.Z)({css:w},e))},x={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:"",".")}},O=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,a=e.focusableOptions,c=e.isFocused,s=e.selectValue,u=e.selectProps,l=e.id,d=u.ariaLiveMessages,p=u.getOptionLabel,f=u.inputValue,h=u.isMulti,m=u.isOptionDisabled,g=u.isSearchable,y=u.menuIsOpen,b=u.options,w=u.screenReaderStatus,O=u.tabSelectsValue,_=u["aria-label"],S=u["aria-live"],A=(0,i.useMemo)((function(){return(0,r.Z)((0,r.Z)({},x),d||{})}),[d]),E=(0,i.useMemo)((function(){var e,n="";if(t&&A.onChange){var o=t.option,a=t.options,i=t.removedValue,c=t.removedValues,u=t.value,l=i||o||(e=u,Array.isArray(e)?null:e),d=l?p(l):"",f=a||c||void 0,h=f?f.map(p):[],g=(0,r.Z)({isDisabled:l&&m(l,s),label:d,labels:h},t);n=A.onChange(g)}return n}),[t,A,m,s,p]),C=(0,i.useMemo)((function(){var e="",t=n||o,r=!!(n&&s&&s.includes(n));if(t&&A.onFocus){var a={focused:t,label:p(t),isDisabled:m(t,s),isSelected:r,options:b,context:t===n?"menu":"value",selectValue:s};e=A.onFocus(a)}return e}),[n,o,p,m,A,b,s]),P=(0,i.useMemo)((function(){var e="";if(y&&b.length&&A.onFilter){var t=w({count:a.length});e=A.onFilter({inputValue:f,resultsMessage:t})}return e}),[a,f,y,A,b,w]),j=(0,i.useMemo)((function(){var e="";if(A.guidance){var t=o?"value":y?"menu":"input";e=A.guidance({"aria-label":_,context:t,isDisabled:n&&m(n,s),isMulti:h,isSearchable:g,tabSelectsValue:O})}return e}),[_,n,o,h,m,g,y,A,s,O]),D="".concat(C," ").concat(P," ").concat(j),T=(0,v.tZ)(i.Fragment,null,(0,v.tZ)("span",{id:"aria-selection"},E),(0,v.tZ)("span",{id:"aria-context"},D)),M="initial-input-focus"===(null==t?void 0:t.action);return(0,v.tZ)(i.Fragment,null,(0,v.tZ)(k,{id:l},M&&T),(0,v.tZ)(k,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text"},c&&!M&&T))},_=[{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źẑżžẓẕƶȥɀⱬꝣ"}],S=new RegExp("["+_.map((function(e){return e.letters})).join("")+"]","g"),A={},E=0;E<_.length;E++)for(var C=_[E],P=0;P<C.letters.length;P++)A[C.letters[P]]=C.base;var j=function(e){return e.replace(S,(function(e){return A[e]}))},D=function(e,t){void 0===t&&(t=b);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}(j),T=function(e){return e.replace(/^\s+|\s+$/g,"")},M=function(e){return"".concat(e.label," ").concat(e.value)},Z=["innerRef"];function I(e){var t=e.innerRef,n=(0,a.Z)(e,Z),r=(0,g.r)(n,"onExited","in","enter","exit","appear");return(0,v.tZ)("input",(0,s.Z)({ref:t},r,{css:(0,v.iv)({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 N=["boxSizing","height","overflow","paddingRight","position"],R={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function B(e){e.preventDefault()}function L(e){e.stopPropagation()}function F(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function H(){return"ontouchstart"in window||navigator.maxTouchPoints}var W=!("undefined"==typeof window||!window.document||!window.document.createElement),U=0,z={capture:!1,passive:!1};var V=function(){return document.activeElement&&document.activeElement.blur()},Y={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function q(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,c=(0,i.useRef)(!1),s=(0,i.useRef)(!1),u=(0,i.useRef)(0),l=(0,i.useRef)(null),d=(0,i.useCallback)((function(e,t){if(null!==l.current){var i=l.current,u=i.scrollTop,d=i.scrollHeight,p=i.clientHeight,f=l.current,h=t>0,m=d-p-u,g=!1;m>t&&c.current&&(r&&r(e),c.current=!1),h&&s.current&&(a&&a(e),s.current=!1),h&&t>m?(n&&!c.current&&n(e),f.scrollTop=d,g=!0,c.current=!0):!h&&-t>u&&(o&&!s.current&&o(e),f.scrollTop=0,g=!0,s.current=!0),g&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,a]),p=(0,i.useCallback)((function(e){d(e,e.deltaY)}),[d]),f=(0,i.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),h=(0,i.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;d(e,t)}),[d]),m=(0,i.useCallback)((function(e){if(e){var t=!!g.s&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}}),[h,f,p]),v=(0,i.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))}),[h,f,p]);return(0,i.useEffect)((function(){if(t){var e=l.current;return m(e),function(){v(e)}}}),[t,m,v]),function(e){l.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,i.useRef)({}),a=(0,i.useRef)(null),c=(0,i.useCallback)((function(e){if(W){var t=document.body,n=t&&t.style;if(r&&N.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&U<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,c=window.innerWidth-i+a||0;Object.keys(R).forEach((function(e){var t=R[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(c,"px"))}t&&H()&&(t.addEventListener("touchmove",B,z),e&&(e.addEventListener("touchstart",F,z),e.addEventListener("touchmove",L,z))),U+=1}}),[r]),s=(0,i.useCallback)((function(e){if(W){var t=document.body,n=t&&t.style;U=Math.max(U-1,0),r&&U<1&&N.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&H()&&(t.removeEventListener("touchmove",B,z),e&&(e.removeEventListener("touchstart",F,z),e.removeEventListener("touchmove",L,z)))}}),[r]);return(0,i.useEffect)((function(){if(t){var e=a.current;return c(e),function(){s(e)}}}),[t,c,s]),function(e){a.current=e}}({isEnabled:n});return(0,v.tZ)(i.Fragment,null,n&&(0,v.tZ)("div",{onClick:V,css:Y}),t((function(e){o(e),a(e)})))}var G={clearIndicator:g.a,container:g.b,control:g.d,dropdownIndicator:g.e,group:g.g,groupHeading:g.f,indicatorsContainer:g.i,indicatorSeparator:g.h,input:g.j,loadingIndicator:g.l,loadingMessage:g.k,menu:g.m,menuList:g.n,menuPortal:g.o,multiValue:g.p,multiValueLabel:g.q,multiValueRemove:g.t,noOptionsMessage:g.u,option:g.v,placeholder:g.w,singleValue:g.x,valueContainer:g.y};var K,X={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}},$={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,g.z)(),captureMenuScroll:!(0,g.z)(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,r.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:M,trim:!0,matchFrom:"any"},K),o=n.ignoreCase,a=n.ignoreAccents,i=n.stringify,c=n.trim,s=n.matchFrom,u=c?T(t):t,l=c?T(i(e)):i(e);return o&&(u=u.toLowerCase(),l=l.toLowerCase()),a&&(u=D(u),l=j(l)),"start"===s?l.substr(0,u.length)===u:l.indexOf(u)>-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:!(0,g.A)(),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};function Q(e,t,n,r){return{type:"option",data:t,isDisabled:oe(e,t,n),isSelected:ae(e,t,n),label:ne(e,t),value:re(e,t),index:r}}function J(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Q(e,n,t,r)})).filter((function(t){return te(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=Q(e,n,t,r);return te(e,a)?a:void 0})).filter(g.G)}function ee(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,(0,m.Z)(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function te(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,c=t.value;return(!ce(e)||!a)&&ie(e,{label:i,value:c,data:o},r)}var ne=function(e,t){return e.getOptionLabel(t)},re=function(e,t){return e.getOptionValue(t)};function oe(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ae(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=re(e,t);return n.some((function(t){return re(e,t)===r}))}function ie(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ce=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},se=1,ue=function(e){(0,d.Z)(n,e);var t=h(n);function n(e){var o;return(0,u.Z)(this,n),(o=t.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},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.instancePrefix="",o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(e){o.controlRef=e},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var n=o.props,r=n.onChange,a=n.name;t.name=a,o.ariaOnChange(e,t),r(e,t)},o.setValue=function(e,t,n){var r=o.props,a=r.closeMenuOnSelect,i=r.isMulti,c=r.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:c}),a&&(o.setState({inputIsHiddenAfterUpdate:!i}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(e,{action:t,option:n})},o.selectOption=function(e){var t=o.props,n=t.blurInputOnSelect,r=t.isMulti,a=t.name,i=o.state.selectValue,c=r&&o.isOptionSelected(e,i),s=o.isOptionDisabled(e,i);if(c){var u=o.getOptionValue(e);o.setValue((0,g.B)(i.filter((function(e){return o.getOptionValue(e)!==u}))),"deselect-option",e)}else{if(s)return void o.ariaOnChange((0,g.C)(e),{action:"select-option",option:e,name:a});r?o.setValue((0,g.B)([].concat((0,m.Z)(i),[e])),"select-option",e):o.setValue((0,g.C)(e),"select-option")}n&&o.blurInput()},o.removeValue=function(e){var t=o.props.isMulti,n=o.state.selectValue,r=o.getOptionValue(e),a=n.filter((function(e){return o.getOptionValue(e)!==r})),i=(0,g.D)(t,a,a[0]||null);o.onChange(i,{action:"remove-value",removedValue:e}),o.focusInput()},o.clearValue=function(){var e=o.state.selectValue;o.onChange((0,g.D)(o.props.isMulti,[],null),{action:"clear",removedValues:e})},o.popValue=function(){var e=o.props.isMulti,t=o.state.selectValue,n=t[t.length-1],r=t.slice(0,t.length-1),a=(0,g.D)(e,r,r[0]||null);o.onChange(a,{action:"pop-value",removedValue:n})},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return g.E.apply(void 0,[o.props.classNamePrefix].concat(t))},o.getOptionLabel=function(e){return ne(o.props,e)},o.getOptionValue=function(e){return re(o.props,e)},o.getStyles=function(e,t){var n=G[e](t);n.boxSizing="border-box";var r=o.props.styles[e];return r?r(n,t):n},o.getElementId=function(e){return"".concat(o.instancePrefix,"-").concat(e)},o.getComponents=function(){return(0,g.F)(o.props)},o.buildCategorizedOptions=function(){return J(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return ee(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(e,t){o.setState({ariaSelection:(0,r.Z)({value:e},t)})},o.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(e){o.blockOptionHover=!1},o.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&o.onMenuClose():t&&o.openMenu("first"):(t&&(o.openAfterFocus=!0),o.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},o.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||o.props.isDisabled)){var t=o.props,n=t.isMulti,r=t.menuIsOpen;o.focusInput(),r?(o.setState({inputIsHiddenAfterUpdate:!n}),o.onMenuClose()):o.openMenu("first"),e.preventDefault()}},o.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(o.clearValue(),e.preventDefault(),o.openAfterFocus=!1,"touchend"===e.type?o.focusInput():setTimeout((function(){return o.focusInput()})))},o.onScroll=function(e){"boolean"==typeof o.props.closeMenuOnScroll?e.target instanceof HTMLElement&&(0,g.H)(e.target)&&o.props.onMenuClose():"function"==typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(e)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(o.initialTouchX=n.clientX,o.initialTouchY=n.clientY,o.userIsDragging=!1)},o.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var r=Math.abs(n.clientX-o.initialTouchX),a=Math.abs(n.clientY-o.initialTouchY);o.userIsDragging=r>5||a>5}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e)},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e)},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e)},o.handleInputChange=function(e){var t=o.props.inputValue,n=e.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(n,{action:"input-change",prevInputValue:t}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(e){var t=o.props.inputValue;o.menuListRef&&o.menuListRef.contains(document.activeElement)?o.inputRef.focus():(o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur",prevInputValue:t}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1}))},o.onOptionHover=function(e){o.blockOptionHover||o.state.focusedOption===e||o.setState({focusedOption:e})},o.shouldHideSelectedOptions=function(){return ce(o.props)},o.onKeyDown=function(e){var t=o.props,n=t.isMulti,r=t.backspaceRemovesValue,a=t.escapeClearsValue,i=t.inputValue,c=t.isClearable,s=t.isDisabled,u=t.menuIsOpen,l=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=o.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(s||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||i)return;o.focusValue("previous");break;case"ArrowRight":if(!n||i)return;o.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)o.removeValue(m);else{if(!r)return;n?o.popValue():c&&o.clearValue()}break;case"Tab":if(o.isComposing)return;if(e.shiftKey||!u||!d||!h||p&&o.isOptionSelected(h,g))return;o.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(o.isComposing)return;o.selectOption(h);break}return;case"Escape":u?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:i}),o.onMenuClose()):c&&a&&o.clearValue();break;case" ":if(i)return;if(!u){o.openMenu("first");break}if(!h)return;o.selectOption(h);break;case"ArrowUp":u?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":u?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!u)return;o.focusOption("pageup");break;case"PageDown":if(!u)return;o.focusOption("pagedown");break;case"Home":if(!u)return;o.focusOption("first");break;case"End":if(!u)return;o.focusOption("last");break;default:return}e.preventDefault()}},o.instancePrefix="react-select-"+(o.props.instanceId||++se),o.state.selectValue=(0,g.I)(e.value),o}return(0,l.Z)(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()}},{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&&((0,g.J)(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(X):(0,r.Z)((0,r.Z)({},X),this.props.theme):X}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.selectOption,a=this.setValue,i=this.props,c=i.isMulti,s=i.isRtl,u=i.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:c,isRtl:s,options:u,selectOption:o,selectProps:i,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return oe(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ae(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ie(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,o=e.inputId,a=e.inputValue,c=e.tabIndex,u=e.form,l=e.menuIsOpen,d=this.getComponents().Input,p=this.state,f=p.inputIsHidden,h=p.ariaSelection,m=this.commonProps,v=o||this.getElementId("input"),y=(0,r.Z)((0,r.Z)((0,r.Z)({"aria-autocomplete":"list","aria-expanded":l,"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"],role:"combobox"},l&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==h?void 0:h.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?i.createElement(d,(0,s.Z)({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:u,type:"text",value:a},y)):i.createElement(I,(0,s.Z)({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:g.K,onFocus:this.onInputFocus,disabled:t,tabIndex:c,inputMode:"none",form:u,value:""},y))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,c=t.SingleValue,u=t.Placeholder,l=this.commonProps,d=this.props,p=d.controlShouldRenderValue,f=d.isDisabled,h=d.isMulti,m=d.inputValue,g=d.placeholder,v=this.state,y=v.selectValue,b=v.focusedValue,w=v.isFocused;if(!this.hasValue()||!p)return m?null:i.createElement(u,(0,s.Z)({},l,{key:"placeholder",isDisabled:f,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),g);if(h)return y.map((function(t,c){var u=t===b,d="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return i.createElement(n,(0,s.Z)({},l,{components:{Container:r,Label:o,Remove:a},isFocused:u,isDisabled:f,key:d,index:c,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(m)return null;var k=y[0];return i.createElement(c,(0,s.Z)({},l,{data:k,isDisabled:f}),this.formatOptionLabel(k,"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 c={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return i.createElement(e,(0,s.Z)({},t,{innerProps:c,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;if(!e||!o)return null;return i.createElement(e,(0,s.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a}))}},{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 i.createElement(n,(0,s.Z)({},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 i.createElement(e,(0,s.Z)({},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,c=t.MenuPortal,u=t.LoadingMessage,l=t.NoOptionsMessage,d=t.Option,p=this.commonProps,f=this.state.focusedOption,h=this.props,m=h.captureMenuScroll,v=h.inputValue,y=h.isLoading,b=h.loadingMessage,w=h.minMenuHeight,k=h.maxMenuHeight,x=h.menuIsOpen,O=h.menuPlacement,_=h.menuPosition,S=h.menuPortalTarget,A=h.menuShouldBlockScroll,E=h.menuShouldScrollIntoView,C=h.noOptionsMessage,P=h.onMenuScrollToTop,j=h.onMenuScrollToBottom;if(!x)return null;var D,T=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,c=t.isSelected,u=t.label,l=t.value,h=f===o,m=a?void 0:function(){return e.onOptionHover(o)},g=a?void 0:function(){return e.selectOption(o)},v="".concat(e.getElementId("option"),"-").concat(n),y={id:v,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1};return i.createElement(d,(0,s.Z)({},p,{innerProps:y,data:o,isDisabled:a,isSelected:c,key:v,label:u,type:r,value:l,isFocused:h,innerRef:h?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,c=t.index,u="".concat(e.getElementId("group"),"-").concat(c),l="".concat(u,"-heading");return i.createElement(n,(0,s.Z)({},p,{key:u,data:o,options:a,Heading:r,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return T(e,"".concat(c,"-").concat(e.index))})))}if("option"===t.type)return T(t,"".concat(t.index))}));else if(y){var M=b({inputValue:v});if(null===M)return null;D=i.createElement(u,p,M)}else{var Z=C({inputValue:v});if(null===Z)return null;D=i.createElement(l,p,Z)}var I={minMenuHeight:w,maxMenuHeight:k,menuPlacement:O,menuPosition:_,menuShouldScrollIntoView:E},N=i.createElement(g.M,(0,s.Z)({},p,I),(function(t){var n=t.ref,r=t.placerProps,c=r.placement,u=r.maxHeight;return i.createElement(o,(0,s.Z)({},p,I,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:y,placement:c}),i.createElement(q,{captureEnabled:m,onTopArrive:P,onBottomArrive:j,lockEnabled:A},(function(t){return i.createElement(a,(0,s.Z)({},p,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:y,maxHeight:u,focusedOption:f}),D)})))}));return S||"fixed"===_?i.createElement(c,(0,s.Z)({},p,{appendTo:S,controlElement:this.controlRef,menuPlacement:O,menuPosition:_}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,c=this.state.selectValue;if(a&&!r){if(o){if(n){var s=c.map((function(t){return e.getOptionValue(t)})).join(n);return i.createElement("input",{name:a,type:"hidden",value:s})}var u=c.length>0?c.map((function(t,n){return i.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):i.createElement("input",{name:a,type:"hidden"});return i.createElement("div",null,u)}var l=c[0]?this.getOptionValue(c[0]):"";return i.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,c=t.selectValue,u=this.getFocusableOptions();return i.createElement(O,(0,s.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:a,selectValue:c,focusableOptions:u}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,c=a.className,u=a.id,l=a.isDisabled,d=a.menuIsOpen,p=this.state.isFocused,f=this.commonProps=this.getCommonProps();return i.createElement(r,(0,s.Z)({},f,{className:c,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:p}),this.renderLiveRegion(),i.createElement(t,(0,s.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:p,menuIsOpen:d}),i.createElement(o,(0,s.Z)({},f,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),i.createElement(n,(0,s.Z)({},f,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,a=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,c=t.isFocused,s=t.prevWasFocused,u=e.options,l=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,h=(0,g.I)(l),m={};if(n&&(l!==n.value||u!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var v=d?function(e,t){return ee(J(e,t))}(e,h):[],y=o?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,v);m={selectValue:h,focusedOption:b,focusedValue:y,clearFocusValueOnUpdate:!1}}var w=null!=a&&e!==n?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},k=i,x=c&&s;return c&&!x&&(k={value:(0,g.D)(f,h,h[0]||null),options:h,action:"initial-input-focus"},x=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(k=null),(0,r.Z)((0,r.Z)((0,r.Z)({},m),w),{},{prevProps:e,ariaSelection:k,prevWasFocused:x})}}]),n}(i.Component);ue.defaultProps=$;Math.abs,String.fromCharCode;n(30314),n(6919);var le=(0,i.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,s=e.defaultMenuIsOpen,u=void 0!==s&&s,l=e.defaultValue,d=void 0===l?null:l,p=e.inputValue,f=e.menuIsOpen,h=e.onChange,m=e.onInputChange,g=e.onMenuClose,v=e.onMenuOpen,y=e.value,b=(0,a.Z)(e,c),w=(0,i.useState)(void 0!==p?p:n),k=(0,o.Z)(w,2),x=k[0],O=k[1],_=(0,i.useState)(void 0!==f?f:u),S=(0,o.Z)(_,2),A=S[0],E=S[1],C=(0,i.useState)(void 0!==y?y:d),P=(0,o.Z)(C,2),j=P[0],D=P[1],T=(0,i.useCallback)((function(e,t){"function"==typeof h&&h(e,t),D(e)}),[h]),M=(0,i.useCallback)((function(e,t){var n;"function"==typeof m&&(n=m(e,t)),O(void 0!==n?n:e)}),[m]),Z=(0,i.useCallback)((function(){"function"==typeof v&&v(),E(!0)}),[v]),I=(0,i.useCallback)((function(){"function"==typeof g&&g(),E(!1)}),[g]),N=void 0!==p?p:x,R=void 0!==f?f:A,B=void 0!==y?y:j;return(0,r.Z)((0,r.Z)({},b),{},{inputValue:N,menuIsOpen:R,onChange:T,onInputChange:M,onMenuClose:I,onMenuOpen:Z,value:B})}(e);return i.createElement(ue,(0,s.Z)({ref:t},n))}));const de=le},44066:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(1024),o=n.n(r),a=n(66462),i=n.n(a),c=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},s=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},u=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},l={outline:"none"},d=function(e){function t(){var n,r;c(this,t);for(var a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];return n=r=u(this,e.call.apply(e,[this].concat(i))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=o().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)},u(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?o().cloneElement(e({focused:t,getRef:this.ref}),n):o().createElement("div",s({ref:this.ref,style:l},n),e)},t}(o().Component);d.propTypes={children:i().oneOfType([i().node,i().func]).isRequired,onBlur:i().func,onFocus:i().func},d.defaultProps={onBlur:function(){},onFocus:function(){}};const p=d},46335:(e,t,n)=>{"use strict";var r=n(33890);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},66462:(e,t,n)=>{e.exports=n(46335)()},33890:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},77208:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var a,i=n(6663),c=(a=i)&&a.__esModule?a:{default:a},s=function(e){return e};t.default=function(e){var t=Array.isArray(e)&&2===e.length?e:[e,null],n=r(t,2),a=n[0],i=n[1];return function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var u=n.map((function(e){return a[e]})).filter(s);return"string"==typeof u[0]||"function"==typeof i?{key:e,className:i?i.apply(void 0,o(u)):u.join(" ")}:{key:e,style:c.default.apply(void 0,[{}].concat(o(u)))}}},e.exports=t.default},6663:e=>{"use strict";var t=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(e){var n=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(e))),n.filter((function(n){return t.call(e,n)}))}e.exports=Object.assign||function(e,t){for(var o,a,i=n(e),c=1;c<arguments.length;c++){o=arguments[c],a=r(Object(o));for(var s=0;s<a.length;s++)i[a[s]]=o[a[s]]}return i}},59211:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),i=new C(r||[]);return a._invoke=function(e,t,n){var r=d;return function(o,a){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw a;return j()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var c=S(i,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var s=l(e,t,n);if("normal"===s.type){if(r=n.done?h:p,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=h,n.method="throw",n.arg=s.arg)}}}(e,n,i),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",f="executing",h="completed",m={};function g(){}function v(){}function y(){}var b={};b[a]=function(){return this};var w=Object.getPrototypeOf,k=w&&w(w(P([])));k&&k!==n&&r.call(k,a)&&(b=k);var x=y.prototype=g.prototype=Object.create(b);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(o,a,i,c){var s=l(e[o],e,a);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,i,c)}),(function(e){n("throw",e,i,c)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,c)}))}c(s.arg)}var o;this._invoke=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,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function A(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(A,this),this.reset(!0)}function P(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}return{next:j}}function j(){return{value:t,done:!0}}return v.prototype=x.constructor=y,y.constructor=v,v.displayName=s(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},O(_.prototype),_.prototype[i]=function(){return this},e.AsyncIterator=_,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new _(u(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},O(x),s(x,c,"Generator"),x[a]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=P,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},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 n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):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),m},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),m}},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,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},53090:e=>{"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var n=e.data,r=e.multiSection;function o(e){var o=t(e,2),a=o[0],i=o[1];return r?null===i||i===n[a]-1?null===(a=function(e){for(null===e?e=0:e++;e<n.length&&0===n[e];)e++;return e===n.length?null:e}(a))?[null,null]:[a,0]:[a,i+1]:0===n||i===n-1?[null,null]:null===i?[null,0]:[null,i+1]}return{next:o,prev:function(e){var o=t(e,2),a=o[0],i=o[1];return r?null===i||0===i?null===(a=function(e){for(null===e?e=n.length-1:e--;e>=0&&0===n[e];)e--;return-1===e?null:e}(a))?[null,null]:[a,n[a]-1]:[a,i-1]:0===n||0===i?[null,null]:null===i?[null,n-1]:[null,i-1]},isLast:function(e){return null===o(e)[1]}}}},78858:e=>{"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}},83109:function(e,t){var n,r,o;/*! tether 1.4.7 */r=[],n=function(){"use strict";var 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}}();function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=void 0;void 0===n&&(n={modules:[]});var r=null;function o(e){var t=e.getBoundingClientRect(),n={};for(var r in t)n[r]=t[r];try{if(e.ownerDocument!==document){var a=e.ownerDocument.defaultView.frameElement;if(a){var i=o(a);n.top+=i.top,n.bottom+=i.top,n.left+=i.left,n.right+=i.left}}}catch(e){}return n}function a(e){var t=(getComputedStyle(e)||{}).position,n=[];if("fixed"===t)return[e];for(var r=e;(r=r.parentNode)&&r&&1===r.nodeType;){var o=void 0;try{o=getComputedStyle(r)}catch(e){}if(null==o)return n.push(r),n;var a=o,i=a.overflow,c=a.overflowX,s=a.overflowY;/(auto|scroll|overlay)/.test(i+s+c)&&("absolute"!==t||["relative","absolute","fixed"].indexOf(o.position)>=0)&&n.push(r)}return n.push(e.ownerDocument.body),e.ownerDocument!==document&&n.push(e.ownerDocument.defaultView),n}var i,c=(i=0,function(){return++i}),s={},u=function(){var e=r;e&&document.body.contains(e)||((e=document.createElement("div")).setAttribute("data-tether-id",c()),m(e.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(e),r=e);var t=e.getAttribute("data-tether-id");return void 0===s[t]&&(s[t]=o(e),O((function(){delete s[t]}))),s[t]};function l(){r&&document.body.removeChild(r),r=null}function d(e){var t=void 0;e===document?(t=document,e=document.documentElement):t=e.ownerDocument;var n=t.documentElement,r=o(e),a=u();return r.top-=a.top,r.left-=a.left,void 0===r.width&&(r.width=document.body.scrollWidth-r.left-r.right),void 0===r.height&&(r.height=document.body.scrollHeight-r.top-r.bottom),r.top=r.top-n.clientTop,r.left=r.left-n.clientLeft,r.right=t.body.clientWidth-r.width-r.left,r.bottom=t.body.clientHeight-r.height-r.top,r}function p(e){return e.offsetParent||document.documentElement}var f=null;function h(){if(f)return f;var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");m(t.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var r=e.offsetWidth;n===r&&(r=t.clientWidth),document.body.removeChild(t);var o=n-r;return f={width:o,height:o}}function m(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=[];return Array.prototype.push.apply(t,arguments),t.slice(1).forEach((function(t){if(t)for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])})),e}function g(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.remove(t)}));else{var n=new RegExp("(^| )"+t.split(" ").join("|")+"( |$)","gi"),r=b(e).replace(n," ");w(e,r)}}function v(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.add(t)}));else{g(e,t);var n=b(e)+" "+t;w(e,n)}}function y(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=b(e);return new RegExp("(^| )"+t+"( |$)","gi").test(n)}function b(e){return e.className instanceof e.ownerDocument.defaultView.SVGAnimatedString?e.className.baseVal:e.className}function w(e,t){e.setAttribute("class",t)}function k(e,t,n){n.forEach((function(n){-1===t.indexOf(n)&&y(e,n)&&g(e,n)})),t.forEach((function(t){y(e,t)||v(e,t)}))}var x=[],O=function(e){x.push(e)},_=function(){for(var e=void 0;e=x.pop();)e()},S=function(){function n(){t(this,n)}return e(n,[{key:"on",value:function(e,t,n){var r=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[e]&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:n,once:r})}},{key:"once",value:function(e,t,n){this.on(e,t,n,!0)}},{key:"off",value:function(e,t){if(void 0!==this.bindings&&void 0!==this.bindings[e])if(void 0===t)delete this.bindings[e];else for(var n=0;n<this.bindings[e].length;)this.bindings[e][n].handler===t?this.bindings[e].splice(n,1):++n}},{key:"trigger",value:function(e){if(void 0!==this.bindings&&this.bindings[e]){for(var t=0,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(;t<this.bindings[e].length;){var a=this.bindings[e][t],i=a.handler,c=a.ctx,s=a.once,u=c;void 0===u&&(u=this),i.apply(u,r),s?this.bindings[e].splice(t,1):++t}}}}]),n}();n.Utils={getActualBoundingClientRect:o,getScrollParents:a,getBounds:d,getOffsetParent:p,extend:m,addClass:v,removeClass:g,hasClass:y,updateClasses:k,defer:O,flush:_,uniqueId:c,Evented:S,getScrollBarSize:h,removeUtilElements:l};var A=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),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}}(),function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;r=!1,null===o&&(o=Function.prototype);var c=Object.getOwnPropertyDescriptor(o,a);if(void 0!==c){if("value"in c)return c.value;var s=c.get;if(void 0===s)return;return s.call(i)}var u=Object.getPrototypeOf(o);if(null===u)return;e=u,t=a,n=i,r=!0,c=u=void 0}});function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(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)}if(void 0===n)throw new Error("You must include the utils.js file before tether.js");var a=($=n.Utils).getScrollParents,p=(d=$.getBounds,$.getOffsetParent),v=(m=$.extend,$.addClass),g=$.removeClass,h=(k=$.updateClasses,O=$.defer,_=$.flush,$.getScrollBarSize),l=$.removeUtilElements;function P(e,t){var n=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return e+n>=t&&t>=e-n}var j,D,T,M,Z=function(){if("undefined"==typeof document)return"";for(var e=document.createElement("div"),t=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],n=0;n<t.length;++n){var r=t[n];if(void 0!==e.style[r])return r}}(),I=[],N=function(){I.forEach((function(e){e.position(!1)})),_()};function R(){return"object"==typeof performance&&"function"==typeof performance.now?performance.now():+new Date}j=null,D=null,T=null,M=function e(){if(void 0!==D&&D>16)return D=Math.min(D-16,250),void(T=setTimeout(e,250));void 0!==j&&R()-j<10||(null!=T&&(clearTimeout(T),T=null),j=R(),N(),D=R()-j)},"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach((function(e){window.addEventListener(e,M)}));var B={center:"center",left:"right",right:"left"},L={middle:"middle",top:"bottom",bottom:"top"},F={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},H=function(e,t){var n=e.left,r=e.top;return"auto"===n&&(n=B[t.left]),"auto"===r&&(r=L[t.top]),{left:n,top:r}},W=function(e){var t=e.left,n=e.top;return void 0!==F[e.left]&&(t=F[e.left]),void 0!==F[e.top]&&(n=F[e.top]),{left:t,top:n}};function U(){for(var e={top:0,left:0},t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){var n=t.top,r=t.left;"string"==typeof n&&(n=parseFloat(n,10)),"string"==typeof r&&(r=parseFloat(r,10)),e.top+=n,e.left+=r})),e}function z(e,t){return"string"==typeof e.left&&-1!==e.left.indexOf("%")&&(e.left=parseFloat(e.left,10)/100*t.width),"string"==typeof e.top&&-1!==e.top.indexOf("%")&&(e.top=parseFloat(e.top,10)/100*t.height),e}var V=function(e){var t=e.split(" "),n=A(t,2);return{top:n[0],left:n[1]}},Y=V,q=function(r){function o(e){var r=this;t(this,o),E(Object.getPrototypeOf(o.prototype),"constructor",this).call(this),this.position=this.position.bind(this),I.push(this),this.history=[],this.setOptions(e,!1),n.modules.forEach((function(e){void 0!==e.initialize&&e.initialize.call(r)})),this.position()}return C(o,r),e(o,[{key:"getClass",value:function(){var e=arguments.length<=0||void 0===arguments[0]?"":arguments[0],t=this.options.classes;return void 0!==t&&t[e]?this.options.classes[e]:this.options.classPrefix?this.options.classPrefix+"-"+e:e}},{key:"setOptions",value:function(e){var t=this,n=arguments.length<=1||void 0===arguments[1]||arguments[1],r={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=m(r,e);var o=this.options,i=o.element,c=o.target,s=o.targetModifier;if(this.element=i,this.target=c,this.targetModifier=s,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach((function(e){if(void 0===t[e])throw new Error("Tether Error: Both element and target must be defined");void 0!==t[e].jquery?t[e]=t[e][0]:"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),v(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&v(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=Y(this.options.targetAttachment),this.attachment=Y(this.options.attachment),this.offset=V(this.options.offset),this.targetOffset=V(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=a(this.target),!1!==this.options.enabled&&this.enable(n)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return d(this.target);if("visible"===this.targetModifier)return this.target===document.body?{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth}:((a={height:(e=d(this.target)).height,width:e.width,top:e.top,left:e.left}).height=Math.min(a.height,e.height-(pageYOffset-e.top)),a.height=Math.min(a.height,e.height-(e.top+e.height-(pageYOffset+innerHeight))),a.height=Math.min(innerHeight,a.height),a.height-=2,a.width=Math.min(a.width,e.width-(pageXOffset-e.left)),a.width=Math.min(a.width,e.width-(e.left+e.width-(pageXOffset+innerWidth))),a.width=Math.min(innerWidth,a.width),a.width-=2,a.top<pageYOffset&&(a.top=pageYOffset),a.left<pageXOffset&&(a.left=pageXOffset),a);if("scroll-handle"===this.targetModifier){var e=void 0,t=this.target;t===document.body?(t=document.documentElement,e={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):e=d(t);var n=getComputedStyle(t),r=0;(t.scrollWidth>t.clientWidth||[n.overflow,n.overflowX].indexOf("scroll")>=0||this.target!==document.body)&&(r=15);var o=e.height-parseFloat(n.borderTopWidth)-parseFloat(n.borderBottomWidth)-r,a={width:15,height:.975*o*(o/t.scrollHeight),left:e.left+e.width-parseFloat(n.borderLeftWidth)-15},i=0;o<408&&this.target===document.body&&(i=-11e-5*Math.pow(o,2)-.00727*o+22.58),this.target!==document.body&&(a.height=Math.max(a.height,24));var c=this.target.scrollTop/(t.scrollHeight-o);return a.top=c*(o-a.height-i)+e.top+parseFloat(n.borderTopWidth),this.target===document.body&&(a.height=Math.max(a.height,24)),a}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(e,t){return void 0===this._cache&&(this._cache={}),void 0===this._cache[e]&&(this._cache[e]=t.call(this)),this._cache[e]}},{key:"enable",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&v(this.target,this.getClass("enabled")),v(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach((function(t){t!==e.target.ownerDocument&&t.addEventListener("scroll",e.position)})),t&&this.position()}},{key:"disable",value:function(){var e=this;g(this.target,this.getClass("enabled")),g(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.position)}))}},{key:"destroy",value:function(){var e=this;this.disable(),I.forEach((function(t,n){t===e&&I.splice(n,1)})),0===I.length&&l()}},{key:"updateAttachClasses",value:function(e,t){var n=this;e=e||this.attachment,t=t||this.targetAttachment;var r=["left","top","bottom","right","middle","center"];void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var o=this._addAttachClasses;e.top&&o.push(this.getClass("element-attached")+"-"+e.top),e.left&&o.push(this.getClass("element-attached")+"-"+e.left),t.top&&o.push(this.getClass("target-attached")+"-"+t.top),t.left&&o.push(this.getClass("target-attached")+"-"+t.left);var a=[];r.forEach((function(e){a.push(n.getClass("element-attached")+"-"+e),a.push(n.getClass("target-attached")+"-"+e)})),O((function(){void 0!==n._addAttachClasses&&(k(n.element,n._addAttachClasses,a),!1!==n.options.addTargetClasses&&k(n.target,n._addAttachClasses,a),delete n._addAttachClasses)}))}},{key:"position",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var r=H(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,r);var o=this.cache("element-bounds",(function(){return d(e.element)})),a=o.width,i=o.height;if(0===a&&0===i&&void 0!==this.lastSize){var c=this.lastSize;a=c.width,i=c.height}else this.lastSize={width:a,height:i};var s=this.cache("target-bounds",(function(){return e.getTargetBounds()})),u=s,l=z(W(this.attachment),{width:a,height:i}),f=z(W(r),u),m=z(this.offset,{width:a,height:i}),g=z(this.targetOffset,u);l=U(l,m),f=U(f,g);for(var v=s.left+f.left-l.left,y=s.top+f.top-l.top,b=0;b<n.modules.length;++b){var w=n.modules[b].position.call(this,{left:v,top:y,targetAttachment:r,targetPos:s,elementPos:o,offset:l,targetOffset:f,manualOffset:m,manualTargetOffset:g,scrollbarSize:S,attachment:this.attachment});if(!1===w)return!1;void 0!==w&&"object"==typeof w&&(y=w.top,v=w.left)}var k={page:{top:y,left:v},viewport:{top:y-pageYOffset,bottom:pageYOffset-y-i+innerHeight,left:v-pageXOffset,right:pageXOffset-v-a+innerWidth}},x=this.target.ownerDocument,O=x.defaultView,S=void 0;return O.innerHeight>x.documentElement.clientHeight&&(S=this.cache("scrollbar-size",h),k.viewport.bottom-=S.height),O.innerWidth>x.documentElement.clientWidth&&(S=this.cache("scrollbar-size",h),k.viewport.right-=S.width),-1!==["","static"].indexOf(x.body.style.position)&&-1!==["","static"].indexOf(x.body.parentElement.style.position)||(k.page.bottom=x.body.scrollHeight-y-i,k.page.right=x.body.scrollWidth-v-a),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var t=e.cache("target-offsetparent",(function(){return p(e.target)})),n=e.cache("target-offsetparent-bounds",(function(){return d(t)})),r=getComputedStyle(t),o=n,a={};if(["Top","Left","Bottom","Right"].forEach((function(e){a[e.toLowerCase()]=parseFloat(r["border"+e+"Width"])})),n.right=x.body.scrollWidth-n.left-o.width+a.right,n.bottom=x.body.scrollHeight-n.top-o.height+a.bottom,k.page.top>=n.top+a.top&&k.page.bottom>=n.bottom&&k.page.left>=n.left+a.left&&k.page.right>=n.right){var i=t.scrollTop,c=t.scrollLeft;k.offset={top:k.page.top-n.top+i-a.top,left:k.page.left-n.left+c-a.left}}}(),this.move(k),this.history.unshift(k),this.history.length>3&&this.history.pop(),t&&_(),!0}}},{key:"move",value:function(e){var t=this;if(void 0!==this.element.parentNode){var n={};for(var r in e)for(var o in n[r]={},e[r]){for(var a=!1,i=0;i<this.history.length;++i){var c=this.history[i];if(void 0!==c[r]&&!P(c[r][o],e[r][o])){a=!0;break}}a||(n[r][o]=!0)}var s={top:"",left:"",right:"",bottom:""},u=function(e,n){if(!1!==(void 0!==t.options.optimizations?t.options.optimizations.gpu:null)){var r=void 0,o=void 0;e.top?(s.top=0,r=n.top):(s.bottom=0,r=-n.bottom),e.left?(s.left=0,o=n.left):(s.right=0,o=-n.right),"number"==typeof window.devicePixelRatio&&devicePixelRatio%1==0&&(o=Math.round(o*devicePixelRatio)/devicePixelRatio,r=Math.round(r*devicePixelRatio)/devicePixelRatio),s[Z]="translateX("+o+"px) translateY("+r+"px)","msTransform"!==Z&&(s[Z]+=" translateZ(0)")}else e.top?s.top=n.top+"px":s.bottom=n.bottom+"px",e.left?s.left=n.left+"px":s.right=n.right+"px"},l=!1;if((n.page.top||n.page.bottom)&&(n.page.left||n.page.right)?(s.position="absolute",u(n.page,e.page)):(n.viewport.top||n.viewport.bottom)&&(n.viewport.left||n.viewport.right)?(s.position="fixed",u(n.viewport,e.viewport)):void 0!==n.offset&&n.offset.top&&n.offset.left?function(){s.position="absolute";var r=t.cache("target-offsetparent",(function(){return p(t.target)}));p(t.element)!==r&&O((function(){t.element.parentNode.removeChild(t.element),r.appendChild(t.element)})),u(n.offset,e.offset),l=!0}():(s.position="absolute",u({top:!0,left:!0},e.page)),!l)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var d=function(e){var t=e.ownerDocument;return(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)===e},f=!0,h=this.element.parentNode;h&&1===h.nodeType&&"BODY"!==h.tagName&&!d(h);){if("static"!==getComputedStyle(h).position){f=!1;break}h=h.parentNode}f||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var g={},v=!1;for(var o in s){var y=s[o];this.element.style[o]!==y&&(v=!0,g[o]=y)}v&&O((function(){m(t.element.style,g),t.trigger("repositioned")}))}}}]),o}(S);q.modules=[],n.position=N;var G=m(q,n);A=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=($=n.Utils).getBounds;var m=$.extend,K=(k=$.updateClasses,O=$.defer,["left","top","right","bottom"]);function X(e,t){return"scrollParent"===t?t=e.scrollParents[0]:"window"===t&&(t=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),t===document&&(t=t.documentElement),void 0!==t.nodeType&&function(){var e=t,n=d(t),r=n,o=getComputedStyle(t);if(t=[r.left,r.top,n.width+r.left,n.height+r.top],e.ownerDocument!==document){var a=e.ownerDocument.defaultView;t[0]+=a.pageXOffset,t[1]+=a.pageYOffset,t[2]+=a.pageXOffset,t[3]+=a.pageYOffset}K.forEach((function(e,n){"Top"===(e=e[0].toUpperCase()+e.substr(1))||"Left"===e?t[n]+=parseFloat(o["border"+e+"Width"]):t[n]-=parseFloat(o["border"+e+"Width"])}))}(),t}n.modules.push({position:function(e){var t=this,n=e.top,r=e.left,o=e.targetAttachment;if(!this.options.constraints)return!0;var a=this.cache("element-bounds",(function(){return d(t.element)})),i=a.height,c=a.width;if(0===c&&0===i&&void 0!==this.lastSize){var s=this.lastSize;c=s.width,i=s.height}var u=this.cache("target-bounds",(function(){return t.getTargetBounds()})),l=u.height,p=u.width,f=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach((function(e){var t=e.outOfBoundsClass,n=e.pinnedClass;t&&f.push(t),n&&f.push(n)})),f.forEach((function(e){["left","top","right","bottom"].forEach((function(t){f.push(e+"-"+t)}))}));var h=[],g=m({},o),v=m({},this.attachment);return this.options.constraints.forEach((function(e){var a=e.to,s=e.attachment,u=e.pin;void 0===s&&(s="");var d=void 0,f=void 0;if(s.indexOf(" ")>=0){var m=s.split(" "),y=A(m,2);f=y[0],d=y[1]}else d=f=s;var b=X(t,a);"target"!==f&&"both"!==f||(n<b[1]&&"top"===g.top&&(n+=l,g.top="bottom"),n+i>b[3]&&"bottom"===g.top&&(n-=l,g.top="top")),"together"===f&&("top"===g.top&&("bottom"===v.top&&n<b[1]?(n+=l,g.top="bottom",n+=i,v.top="top"):"top"===v.top&&n+i>b[3]&&n-(i-l)>=b[1]&&(n-=i-l,g.top="bottom",v.top="bottom")),"bottom"===g.top&&("top"===v.top&&n+i>b[3]?(n-=l,g.top="top",n-=i,v.top="bottom"):"bottom"===v.top&&n<b[1]&&n+(2*i-l)<=b[3]&&(n+=i-l,g.top="top",v.top="top")),"middle"===g.top&&(n+i>b[3]&&"top"===v.top?(n-=i,v.top="bottom"):n<b[1]&&"bottom"===v.top&&(n+=i,v.top="top"))),"target"!==d&&"both"!==d||(r<b[0]&&"left"===g.left&&(r+=p,g.left="right"),r+c>b[2]&&"right"===g.left&&(r-=p,g.left="left")),"together"===d&&(r<b[0]&&"left"===g.left?"right"===v.left?(r+=p,g.left="right",r+=c,v.left="left"):"left"===v.left&&(r+=p,g.left="right",r-=c,v.left="right"):r+c>b[2]&&"right"===g.left?"left"===v.left?(r-=p,g.left="left",r-=c,v.left="right"):"right"===v.left&&(r-=p,g.left="left",r+=c,v.left="left"):"center"===g.left&&(r+c>b[2]&&"left"===v.left?(r-=c,v.left="right"):r<b[0]&&"right"===v.left&&(r+=c,v.left="left"))),"element"!==f&&"both"!==f||(n<b[1]&&"bottom"===v.top&&(n+=i,v.top="top"),n+i>b[3]&&"top"===v.top&&(n-=i,v.top="bottom")),"element"!==d&&"both"!==d||(r<b[0]&&("right"===v.left?(r+=c,v.left="left"):"center"===v.left&&(r+=c/2,v.left="left")),r+c>b[2]&&("left"===v.left?(r-=c,v.left="right"):"center"===v.left&&(r-=c/2,v.left="right"))),"string"==typeof u?u=u.split(",").map((function(e){return e.trim()})):!0===u&&(u=["top","left","right","bottom"]),u=u||[];var w,k,x=[],O=[];n<b[1]&&(u.indexOf("top")>=0?(n=b[1],x.push("top")):O.push("top")),n+i>b[3]&&(u.indexOf("bottom")>=0?(n=b[3]-i,x.push("bottom")):O.push("bottom")),r<b[0]&&(u.indexOf("left")>=0?(r=b[0],x.push("left")):O.push("left")),r+c>b[2]&&(u.indexOf("right")>=0?(r=b[2]-c,x.push("right")):O.push("right")),x.length&&(w=void 0,w=void 0!==t.options.pinnedClass?t.options.pinnedClass:t.getClass("pinned"),h.push(w),x.forEach((function(e){h.push(w+"-"+e)}))),O.length&&(k=void 0,k=void 0!==t.options.outOfBoundsClass?t.options.outOfBoundsClass:t.getClass("out-of-bounds"),h.push(k),O.forEach((function(e){h.push(k+"-"+e)}))),(x.indexOf("left")>=0||x.indexOf("right")>=0)&&(v.left=g.left=!1),(x.indexOf("top")>=0||x.indexOf("bottom")>=0)&&(v.top=g.top=!1),g.top===o.top&&g.left===o.left&&v.top===t.attachment.top&&v.left===t.attachment.left||(t.updateAttachClasses(v,g),t.trigger("update",{attachment:v,targetAttachment:g}))})),O((function(){!1!==t.options.addTargetClasses&&k(t.target,h,f),k(t.element,h,f)})),{top:n,left:r}}});var $,d=($=n.Utils).getBounds,k=$.updateClasses;return O=$.defer,n.modules.push({position:function(e){var t=this,n=e.top,r=e.left,o=this.cache("element-bounds",(function(){return d(t.element)})),a=o.height,i=o.width,c=this.getTargetBounds(),s=n+a,u=r+i,l=[];n<=c.bottom&&s>=c.top&&["left","right"].forEach((function(e){var t=c[e];t!==r&&t!==u||l.push(e)})),r<=c.right&&u>=c.left&&["top","bottom"].forEach((function(e){var t=c[e];t!==n&&t!==s||l.push(e)}));var p=[],f=[],h=["left","top","right","bottom"];return p.push(this.getClass("abutted")),h.forEach((function(e){p.push(t.getClass("abutted")+"-"+e)})),l.length&&f.push(this.getClass("abutted")),l.forEach((function(e){f.push(t.getClass("abutted")+"-"+e)})),O((function(){!1!==t.options.addTargetClasses&&k(t.target,f,p),k(t.element,f,p)})),!0}}),A=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n.modules.push({position:function(e){var t=e.top,n=e.left;if(this.options.shift){var r=this.options.shift;"function"==typeof this.options.shift&&(r=this.options.shift.call(this,{top:t,left:n}));var o=void 0,a=void 0;if("string"==typeof r){(r=r.split(" "))[1]=r[1]||r[0];var i=A(r,2);o=i[0],a=i[1],o=parseFloat(o,10),a=parseFloat(a,10)}else o=r.top,a=r.left;return{top:t+=o,left:n+=a}}}}),G},void 0===(o="function"==typeof n?n.apply(t,r):n)||(e.exports=o)},6919:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(1024);const o=r.useLayoutEffect},99874:e=>{"use strict";var t=function(){};e.exports=t},13615:function(e){
63
63
  /*! @license DOMPurify 2.4.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.0/LICENSE */
64
- e.exports=function(){"use strict";function e(t){return e="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(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){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}}function r(e,o,a){return r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var a=new(Function.bind.apply(e,o));return r&&t(a,r.prototype),a},r.apply(null,arguments)}function o(e){return a(e)||i(e)||c(e)||u()}function a(e){if(Array.isArray(e))return s(e)}function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function c(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}function s(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 u(){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 l=Object.hasOwnProperty,d=Object.setPrototypeOf,p=Object.isFrozen,f=Object.getPrototypeOf,h=Object.getOwnPropertyDescriptor,m=Object.freeze,g=Object.seal,v=Object.create,y="undefined"!=typeof Reflect&&Reflect,b=y.apply,w=y.construct;b||(b=function(e,t,n){return e.apply(t,n)}),m||(m=function(e){return e}),g||(g=function(e){return e}),w||(w=function(e,t){return r(e,o(t))});var k=D(Array.prototype.forEach),x=D(Array.prototype.pop),O=D(Array.prototype.push),_=D(String.prototype.toLowerCase),S=D(String.prototype.match),A=D(String.prototype.replace),E=D(String.prototype.indexOf),C=D(String.prototype.trim),P=D(RegExp.prototype.test),j=T(TypeError);function D(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return b(e,t,r)}}function T(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(e,n)}}function M(e,t,n){n=n||_,d&&d(e,null);for(var r=t.length;r--;){var o=t[r];if("string"==typeof o){var a=n(o);a!==o&&(p(t)||(t[r]=a),o=a)}e[o]=!0}return e}function Z(e){var t,n=v(null);for(t in e)b(l,e,[t])&&(n[t]=e[t]);return n}function I(e,t){for(;null!==e;){var n=h(e,t);if(n){if(n.get)return D(n.get);if("function"==typeof n.value)return D(n.value)}e=f(e)}function r(e){return console.warn("fallback value for",e),null}return r}var N=m(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),R=m(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),B=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),L=m(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),F=m(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),H=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),W=m(["#text"]),U=m(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),z=m(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),V=m(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Y=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),q=g(/\{\{[\w\W]*|[\w\W]*\}\}/gm),G=g(/<%[\w\W]*|[\w\W]*%>/gm),K=g(/^data-[\-\w.\u00B7-\uFFFF]/),X=g(/^aria-[\-\w]+$/),$=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Q=g(/^(?:\w+script|data):/i),J=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee=g(/^html$/i),te=function(){return"undefined"==typeof window?null:window},ne=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function re(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te(),n=function(e){return re(e)};if(n.version="2.4.0",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,a=t.document,i=t.DocumentFragment,c=t.HTMLTemplateElement,s=t.Node,u=t.Element,l=t.NodeFilter,d=t.NamedNodeMap,p=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,f=t.HTMLFormElement,h=t.DOMParser,g=t.trustedTypes,v=u.prototype,y=I(v,"cloneNode"),b=I(v,"nextSibling"),w=I(v,"childNodes"),D=I(v,"parentNode");if("function"==typeof c){var T=a.createElement("template");T.content&&T.content.ownerDocument&&(a=T.content.ownerDocument)}var oe=ne(g,r),ae=oe?oe.createHTML(""):"",ie=a,ce=ie.implementation,se=ie.createNodeIterator,ue=ie.createDocumentFragment,le=ie.getElementsByTagName,de=r.importNode,pe={};try{pe=Z(a).documentMode?a.documentMode:{}}catch(e){}var fe={};n.isSupported="function"==typeof D&&ce&&void 0!==ce.createHTMLDocument&&9!==pe;var he,me,ge=q,ve=G,ye=K,be=X,we=Q,ke=J,xe=$,Oe=null,_e=M({},[].concat(o(N),o(R),o(B),o(F),o(W))),Se=null,Ae=M({},[].concat(o(U),o(z),o(V),o(Y))),Ee=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ce=null,Pe=null,je=!0,De=!0,Te=!1,Me=!1,Ze=!1,Ie=!1,Ne=!1,Re=!1,Be=!1,Le=!1,Fe=!0,He=!1,We="user-content-",Ue=!0,ze=!1,Ve={},Ye=null,qe=M({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ge=null,Ke=M({},["audio","video","img","source","image","track"]),Xe=null,$e=M({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qe="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml",tt=et,nt=!1,rt=["application/xhtml+xml","text/html"],ot="text/html",at=null,it=a.createElement("form"),ct=function(e){return e instanceof RegExp||e instanceof Function},st=function(t){at&&at===t||(t&&"object"===e(t)||(t={}),t=Z(t),he=he=-1===rt.indexOf(t.PARSER_MEDIA_TYPE)?ot:t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===he?function(e){return e}:_,Oe="ALLOWED_TAGS"in t?M({},t.ALLOWED_TAGS,me):_e,Se="ALLOWED_ATTR"in t?M({},t.ALLOWED_ATTR,me):Ae,Xe="ADD_URI_SAFE_ATTR"in t?M(Z($e),t.ADD_URI_SAFE_ATTR,me):$e,Ge="ADD_DATA_URI_TAGS"in t?M(Z(Ke),t.ADD_DATA_URI_TAGS,me):Ke,Ye="FORBID_CONTENTS"in t?M({},t.FORBID_CONTENTS,me):qe,Ce="FORBID_TAGS"in t?M({},t.FORBID_TAGS,me):{},Pe="FORBID_ATTR"in t?M({},t.FORBID_ATTR,me):{},Ve="USE_PROFILES"in t&&t.USE_PROFILES,je=!1!==t.ALLOW_ARIA_ATTR,De=!1!==t.ALLOW_DATA_ATTR,Te=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=t.SAFE_FOR_TEMPLATES||!1,Ze=t.WHOLE_DOCUMENT||!1,Re=t.RETURN_DOM||!1,Be=t.RETURN_DOM_FRAGMENT||!1,Le=t.RETURN_TRUSTED_TYPE||!1,Ne=t.FORCE_BODY||!1,Fe=!1!==t.SANITIZE_DOM,He=t.SANITIZE_NAMED_PROPS||!1,Ue=!1!==t.KEEP_CONTENT,ze=t.IN_PLACE||!1,xe=t.ALLOWED_URI_REGEXP||xe,tt=t.NAMESPACE||et,t.CUSTOM_ELEMENT_HANDLING&&ct(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ee.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ct(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ee.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ee.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Me&&(De=!1),Be&&(Re=!0),Ve&&(Oe=M({},o(W)),Se=[],!0===Ve.html&&(M(Oe,N),M(Se,U)),!0===Ve.svg&&(M(Oe,R),M(Se,z),M(Se,Y)),!0===Ve.svgFilters&&(M(Oe,B),M(Se,z),M(Se,Y)),!0===Ve.mathMl&&(M(Oe,F),M(Se,V),M(Se,Y))),t.ADD_TAGS&&(Oe===_e&&(Oe=Z(Oe)),M(Oe,t.ADD_TAGS,me)),t.ADD_ATTR&&(Se===Ae&&(Se=Z(Se)),M(Se,t.ADD_ATTR,me)),t.ADD_URI_SAFE_ATTR&&M(Xe,t.ADD_URI_SAFE_ATTR,me),t.FORBID_CONTENTS&&(Ye===qe&&(Ye=Z(Ye)),M(Ye,t.FORBID_CONTENTS,me)),Ue&&(Oe["#text"]=!0),Ze&&M(Oe,["html","head","body"]),Oe.table&&(M(Oe,["tbody"]),delete Ce.tbody),m&&m(t),at=t)},ut=M({},["mi","mo","mn","ms","mtext"]),lt=M({},["foreignobject","desc","title","annotation-xml"]),dt=M({},["title","style","font","a","script"]),pt=M({},R);M(pt,B),M(pt,L);var ft=M({},F);M(ft,H);var ht=function(e){var t=D(e);t&&t.tagName||(t={namespaceURI:et,tagName:"template"});var n=_(e.tagName),r=_(t.tagName);return e.namespaceURI===Je?t.namespaceURI===et?"svg"===n:t.namespaceURI===Qe?"svg"===n&&("annotation-xml"===r||ut[r]):Boolean(pt[n]):e.namespaceURI===Qe?t.namespaceURI===et?"math"===n:t.namespaceURI===Je?"math"===n&&lt[r]:Boolean(ft[n]):e.namespaceURI===et&&!(t.namespaceURI===Je&&!lt[r])&&!(t.namespaceURI===Qe&&!ut[r])&&!ft[n]&&(dt[n]||!pt[n])},mt=function(e){O(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ae}catch(t){e.remove()}}},gt=function(e,t){try{O(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){O(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Se[e])if(Re||Be)try{mt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},vt=function(e){var t,n;if(Ne)e="<remove></remove>"+e;else{var r=S(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===he&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=oe?oe.createHTML(e):e;if(tt===et)try{t=(new h).parseFromString(o,he)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(tt,"template",null);try{t.documentElement.innerHTML=nt?"":o}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),tt===et?le.call(t,Ze?"html":"body")[0]:Ze?t.documentElement:i},yt=function(e){return se.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},bt=function(e){return e instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof p)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},wt=function(t){return"object"===e(s)?t instanceof s:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},kt=function(e,t,r){fe[e]&&k(fe[e],(function(e){e.call(n,t,r,at)}))},xt=function(e){var t;if(kt("beforeSanitizeElements",e,null),bt(e))return mt(e),!0;if(P(/[\u0080-\uFFFF]/,e.nodeName))return mt(e),!0;var r=me(e.nodeName);if(kt("uponSanitizeElement",e,{tagName:r,allowedTags:Oe}),e.hasChildNodes()&&!wt(e.firstElementChild)&&(!wt(e.content)||!wt(e.content.firstElementChild))&&P(/<[/\w]/g,e.innerHTML)&&P(/<[/\w]/g,e.textContent))return mt(e),!0;if("select"===r&&P(/<template/i,e.innerHTML))return mt(e),!0;if(!Oe[r]||Ce[r]){if(!Ce[r]&&_t(r)){if(Ee.tagNameCheck instanceof RegExp&&P(Ee.tagNameCheck,r))return!1;if(Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(r))return!1}if(Ue&&!Ye[r]){var o=D(e)||e.parentNode,a=w(e)||e.childNodes;if(a&&o)for(var i=a.length-1;i>=0;--i)o.insertBefore(y(a[i],!0),b(e))}return mt(e),!0}return e instanceof u&&!ht(e)?(mt(e),!0):"noscript"!==r&&"noembed"!==r||!P(/<\/no(script|embed)/i,e.innerHTML)?(Me&&3===e.nodeType&&(t=e.textContent,t=A(t,ge," "),t=A(t,ve," "),e.textContent!==t&&(O(n.removed,{element:e.cloneNode()}),e.textContent=t)),kt("afterSanitizeElements",e,null),!1):(mt(e),!0)},Ot=function(e,t,n){if(Fe&&("id"===t||"name"===t)&&(n in a||n in it))return!1;if(De&&!Pe[t]&&P(ye,t));else if(je&&P(be,t));else if(!Se[t]||Pe[t]){if(!(_t(e)&&(Ee.tagNameCheck instanceof RegExp&&P(Ee.tagNameCheck,e)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(e))&&(Ee.attributeNameCheck instanceof RegExp&&P(Ee.attributeNameCheck,t)||Ee.attributeNameCheck instanceof Function&&Ee.attributeNameCheck(t))||"is"===t&&Ee.allowCustomizedBuiltInElements&&(Ee.tagNameCheck instanceof RegExp&&P(Ee.tagNameCheck,n)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(n))))return!1}else if(Xe[t]);else if(P(xe,A(n,ke,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(n,"data:")||!Ge[e])if(Te&&!P(we,A(n,ke,"")));else if(n)return!1;return!0},_t=function(e){return e.indexOf("-")>0},St=function(t){var r,o,a,i;kt("beforeSanitizeAttributes",t,null);var c=t.attributes;if(c){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se};for(i=c.length;i--;){var u=r=c[i],l=u.name,d=u.namespaceURI;if(o="value"===l?r.value:C(r.value),a=me(l),s.attrName=a,s.attrValue=o,s.keepAttr=!0,s.forceKeepAttr=void 0,kt("uponSanitizeAttribute",t,s),o=s.attrValue,!s.forceKeepAttr&&(gt(l,t),s.keepAttr))if(P(/\/>/i,o))gt(l,t);else{Me&&(o=A(o,ge," "),o=A(o,ve," "));var p=me(t.nodeName);if(Ot(p,a,o)){if(!He||"id"!==a&&"name"!==a||(gt(l,t),o=We+o),oe&&"object"===e(g)&&"function"==typeof g.getAttributeType)if(d);else switch(g.getAttributeType(p,a)){case"TrustedHTML":o=oe.createHTML(o);break;case"TrustedScriptURL":o=oe.createScriptURL(o)}try{d?t.setAttributeNS(d,l,o):t.setAttribute(l,o),x(n.removed)}catch(e){}}}}kt("afterSanitizeAttributes",t,null)}},At=function e(t){var n,r=yt(t);for(kt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)kt("uponSanitizeShadowNode",n,null),xt(n)||(n.content instanceof i&&e(n.content),St(n));kt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(o){var a,c,u,l,d,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((nt=!o)&&(o="\x3c!--\x3e"),"string"!=typeof o&&!wt(o)){if("function"!=typeof o.toString)throw j("toString is not a function");if("string"!=typeof(o=o.toString()))throw j("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof o)return t.toStaticHTML(o);if(wt(o))return t.toStaticHTML(o.outerHTML)}return o}if(Ie||st(p),n.removed=[],"string"==typeof o&&(ze=!1),ze){if(o.nodeName){var f=me(o.nodeName);if(!Oe[f]||Ce[f])throw j("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof s)1===(c=(a=vt("\x3c!----\x3e")).ownerDocument.importNode(o,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!Re&&!Me&&!Ze&&-1===o.indexOf("<"))return oe&&Le?oe.createHTML(o):o;if(!(a=vt(o)))return Re?null:Le?ae:""}a&&Ne&&mt(a.firstChild);for(var h=yt(ze?o:a);u=h.nextNode();)3===u.nodeType&&u===l||xt(u)||(u.content instanceof i&&At(u.content),St(u),l=u);if(l=null,ze)return o;if(Re){if(Be)for(d=ue.call(a.ownerDocument);a.firstChild;)d.appendChild(a.firstChild);else d=a;return Se.shadowroot&&(d=de.call(r,d,!0)),d}var m=Ze?a.outerHTML:a.innerHTML;return Ze&&Oe["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&P(ee,a.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+m),Me&&(m=A(m,ge," "),m=A(m,ve," ")),oe&&Le?oe.createHTML(m):m},n.setConfig=function(e){st(e),Ie=!0},n.clearConfig=function(){at=null,Ie=!1},n.isValidAttribute=function(e,t,n){at||st({});var r=me(e),o=me(t);return Ot(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(fe[e]=fe[e]||[],O(fe[e],t))},n.removeHook=function(e){if(fe[e])return x(fe[e])},n.removeHooks=function(e){fe[e]&&(fe[e]=[])},n.removeAllHooks=function(){fe={}},n}return re()}()},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},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},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},88911:(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})},83029:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:()=>r})},61086:(e,t,n)=>{"use strict";function r(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 o(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function c(e){r(i,o,a,c,s,"next",e)}function s(e){r(i,o,a,c,s,"throw",e)}c(void 0)}))}}n.d(t,{Z:()=>o})},11259:(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})},44822:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{Z:()=>o})},46927:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},3640:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},19241:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:()=>r})},32208:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}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}}),t&&r(e,t)}n.d(t,{Z:()=>o})},72753:(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})},56265:(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})},8486:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(46927);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},56315:(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})},99357:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(73891);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)}},68957:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(83029);var o=n(61917),a=n(56265);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=!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)||(0,o.Z)(e,t)||(0,a.Z)()}},91411:(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})},45915:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(88911);var o=n(72753),a=n(61917);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.")}()}},73891:(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})},61917:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(88911);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}}}},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=>288===e?"chunk-ckeditor.d18e28a1b9ec3378a234.js":"chunk-"+({85:"code-editor",614:"vendor-icons",802:"html-editor",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"f6100b45012f6b8c82ef",414:"92d4d9c8e30bb8ce3835",614:"92f690eeeca73483c55d",759:"5dc8bcb2d35d9727cb21",802:"d9a55253fa7eb3857e2a",817:"32a024d3c7e2fc5be22e",877:"d0e1a624b281ea60375f",909:"7cc6eb29ce4023a06dd0"}[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-legacy-bundle:",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.j=381,i.p="/",(()=>{var e={381: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_legacy_bundle=self.webpackChunktocco_legacy_bundle||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c);var e,t,n=i(55954),r=i(59713),o=i.n(r),a=i(45697),s=i.n(a),u=i(50600),l=i(22731),d=i(45430),p=i(47490),f=i(91411),h=i(76538),m=i(58804),g=i(24875),v=i(30759),y=i(7281),b=g.FS.color("secondaryLight"),w=g.FS.color("paper"),k=g.FS.color("secondary"),x=(0,m.vJ)(e||(e=(0,f.Z)(["\n .react-datepicker-popper {\n && {\n z-index: 5;\n margin: 0;\n }\n }\n\n .react-datepicker {\n && {\n * {\n box-sizing: content-box; // prevent box-sizing problems in widgets\n }\n border-radius: 0;\n border: 1px solid ",";\n ","\n\n .react-datepicker__header {\n ","\n border-radius: 0;\n background-color: ",";\n padding-bottom: 0;\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__header__dropdown {\n font-size: ",";\n\n /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n font-size: ",";\n }\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 /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n padding: ",";\n }\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\n .react-datepicker__input-time-container {\n display: flex;\n justify-content: center;\n margin: 5px 0;\n\n .react-datepicker-time__input {\n margin: 0;\n\n input {\n text-align: center;\n }\n }\n }\n\n .react-datepicker__header__dropdown.react-datepicker__header__dropdown--scroll {\n width: 190px;\n margin: 8px auto 0;\n display: grid;\n grid-template-columns: 100px 85px;\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: 6px;\n right: -10px;\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-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 }\n"])),b,(0,v.Z)(),(0,v.Z)(),b,y.Z.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",w,y.Z.font(2.85),y.Z.font(1.8),(0,v.Z)({fontWeight:g.FS.fontWeight("bold")}),w,y.Z.font(-2),y.Z.space(-.6),y.Z.space(-1.2),k,k,k,b,b,b,k,(0,v.Z)(),w,y.Z.space(-.5),(function(e){var t=e.theme;return(0,h._j)(.1,t.colors.paper)}),w,y.Z.font(0),b,b,w,g.FS.color("text"),g.FS.color("text"),w,b,(function(e){var t=e.theme;return(0,h._j)(.1,t.colors.paper)}),(function(e){var t=e.theme;return(0,h.$n)(.7,t.colors.text)})),O=i(85893);const _=function(){return(0,O.jsx)(O.Fragment,{children:t||(t=(0,O.jsx)(x,{}))})};var S,A,E,C,P,j,D,T,M,Z,I,N,R=i(74806),B=i(50558),L="merge/INITIALIZE",F="merge/SET_SOURCE_DATA",H="merge/SET_SELECTED_SINGLE",W="merge/SET_SELECTED_MULTIPLE",U="merge/SET_SELECTED_MULTIPLE_ALL",z="merge/SET_TARGET_ENTITY",V="merge/EXECUTE_MERGE",Y="merge/SET_MERGE_RESPONSE",q="merge/SET_MERGE_ERROR",G="merge/CLOSE",K=function(e){return{type:F,payload:{sourceData:e}}},X=function(e){return{type:z,payload:{entityKey:e}}},$=function(e,t){return{type:q,payload:{errorMsg:e,validationErrors:t}}},Q=i(1024),J=i.n(Q),ee=i(319),te=i.n(ee),ne=i(63038),re=i.n(ne),oe=i(7739),ae=i.n(oe),ie=i(44012),ce=i(88162),se=i(34206),ue=function(e){var t=e.model,n=e.keys,r=e.totalKeys,o=e.navigationStrategy;return 0===r?(0,O.jsx)(se.ZP.Span,{children:r}):(0,O.jsxs)(o.ListLink,{entityName:t,entityKeys:n.slice(0,100),children:["(",r,")"]})},le=i(28655),de=i.n(le),pe=i(88601),fe=i(65035),he=m.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(S||(S=de()(["\n border-bottom: 3px solid ",";\n"])),pe.Z.color("backgroundBody")),me=(0,m.ZP)(fe.Z).withConfig({displayName:"StyledButton"})(A||(A=de()(["\n align-self: flex-start;\n margin-top: ",";\n margin-bottom: ",";\n margin-left: ",";\n"])),y.Z.space(-.7),y.Z.space(-.7),y.Z.space(0)),ge=m.ZP.div.withConfig({displayName:"StyledSummarySuccessWrapper"})(E||(E=de()(["\n display: grid;\n align-items: center;\n grid-template-columns: "," 1fr;\n grid-column-gap: ",";\n margin-bottom: ",";\n"])),y.Z.font(10),y.Z.space(-.5),y.Z.space(-.7)),ve=m.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(C||(C=de()(["\n margin-bottom: ",";\n\n && {\n p {\n margin-bottom: 0;\n }\n }\n"])),y.Z.space(-.7)),ye=m.ZP.div.withConfig({displayName:"StyledResultsWrapper"})(P||(P=de()(["\n padding: "," 0 0 ",";\n"])),y.Z.space(-1),y.Z.space(0)),be=m.ZP.span.withConfig({displayName:"StyledIconWrapper"})(j||(j=de()(["\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n"])),pe.Z.color("signal.success.text"),y.Z.font(10));const we=function(e){var t=e.mergeResponse,n=e.navigationStrategy,r=e.close,o=function(e){return Object.entries(ae()(e,(function(e){return e.entityLabel}))).map((function(t){var r=re()(t,2),o=r[0],a=r[1],i=e.find((function(e){return e.entityLabel===o})).entity,c=a.map((function(e){return e.pk}));return(0,O.jsxs)("span",{children:[o," ",(0,O.jsx)(ue,{model:i,keys:c,totalKeys:c.length,navigationStrategy:n})]},i)})).reduce((function(e,t){return null===e?[t]:[].concat(te()(e),[", ",t])}),null)},a=o(t.notCopiedRelations),i=o(t.notDeletedEntities);return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(he,{children:(0,O.jsx)(me,{onClick:r,look:"raised",ink:"primary",children:D||(D=(0,O.jsx)(ie.Z,{id:"client.merge.close"}))})}),(0,O.jsxs)(ye,{children:[T||(T=(0,O.jsxs)(ge,{children:[(0,O.jsx)(be,{children:(0,O.jsx)(ce.Z,{icon:"check"})}),(0,O.jsx)(se.ZP.P,{children:(0,O.jsx)(ie.Z,{id:"client.merge.summary.success"})})]})),(t.notCopiedRelations.length>0||t.notDeletedEntities.length>0)&&(M||(M=(0,O.jsx)(se.ZP.P,{children:(0,O.jsx)(ie.Z,{id:"client.merge.summary.successHint"})}))),t.notCopiedRelations.length>0&&(0,O.jsxs)(ve,{children:[Z||(Z=(0,O.jsxs)(se.ZP.P,{children:[(0,O.jsx)(ie.Z,{id:"client.merge.summary.notCopiedRelations"}),":"]})),(0,O.jsx)(se.ZP.B,{children:a})]}),t.notDeletedEntities.length>0&&(0,O.jsxs)(ve,{children:[I||(I=(0,O.jsxs)(se.ZP.P,{children:[(0,O.jsx)(ie.Z,{id:"client.merge.summary.notDeletedEntities"}),":"]})),(0,O.jsx)(se.ZP.B,{children:i})]}),t.showPermissionMessage&&(N||(N=(0,O.jsx)(se.ZP.P,{children:(0,O.jsx)(ie.Z,{id:"client.merge.summary.permission"})})))]})]})};var ke={close:function(){return{type:G}}};const xe=(0,B.connect)((function(e){return{mergeResponse:e.merge.mergeResponse,navigationStrategy:e.input.navigationStrategy}}),ke)((0,R.ZP)(we));var Oe=i(50258),_e=i(46927),Se=i(45915),Ae=i(68957),Ee=i(46444),Ce=i.n(Ee),Pe=i(70696),je={INLINE:"inline",NONE:"none"},De="checked",Te="indeterminate",Me="unchecked";const Ze=function(e){var t=e.value,n=e.id,r=e.onChange,o=e.label,a=(0,Q.useRef)(null);return(0,Q.useLayoutEffect)((function(){a.current.indeterminate=t===Te,a.current.checked=t===De}),[t]),(0,O.jsx)("input",{ref:a,onChange:function(e){r(t===Te?Me:e.target.checked?De:Me)},id:n,type:"checkbox","aria-checked":"checked"===t,"aria-label":o})};const Ie=function(e){var t,n=e.rowData,r=e.isSelected,o=e.selectionChange,a=e.rowIdx;return(0,O.jsx)("div",{onClick:function(e){e.shiftKey&&o(n.__key,!0,!0),e.stopPropagation()},"data-cy":"list-selection-checkbox",children:(0,O.jsx)(Ze,{value:(t=n,r(t.__key)?"checked":"unchecked"),onChange:function(e){return function(t){return o(e.__key,"checked"===t)}}(n),label:"".concat(n.__model," ").concat(a+1),id:"list-selection-checkbox "+n.__key})})};const Ne=function(e){var t=e.data,n=e.isSelected,r=e.selectionChange,o=t.map((function(e){return e.__key})),a=function(e,t){return e?"checked":t?"indeterminate":"unchecked"}(o.every((function(e){return n(e)})),o.some((function(e){return n(e)})));return 0===t.length?null:(0,O.jsx)(Ze,{value:a,onChange:function(e){r(o,"checked"===e)}})};var Re={SINGLE:"single",MULTI:"multi",NONE:"none"};Ce().oneOf(Object.keys(Re).map((function(e){return Re[e]})));const Be=function(e){var t=e.rowData,n=e.isSelected,r=e.selectionChange;return(0,O.jsx)("div",{onClick:function(e){return e.stopPropagation()},children:(0,O.jsx)("input",{type:"radio",checked:n(t.__key),onChange:function(e){r(t.__key,e.target.value)}})})};function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach((function(t){(0,_e.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var He=function(e,t){return{id:"single-selection",width:30,resizable:!1,fixedPosition:!0,dynamic:!0,sorting:{sortable:!1},HeaderRenderer:function(){return null},CellRenderer:function(n){return(0,O.jsx)(Be,Fe(Fe({},n),{},{isSelected:e,selectionChange:t}))}}},We=function(e,t){return{id:"multi-selection",dynamic:!0,resizable:!1,fixedPosition:!0,width:30,sorting:{sortable:!1},HeaderRenderer:function(n){return(0,O.jsx)(Ne,Fe(Fe({},n),{},{isSelected:e,selectionChange:t}))},CellRenderer:function(n){return(0,O.jsx)(Ie,Fe(Fe({},n),{},{isSelected:e,selectionChange:t}))}}};const Ue=function(e,t,n){var r=(0,Q.useState)(null),o=(0,Ae.Z)(r,2),a=o[0],i=o[1],c=(0,Q.useCallback)((function(t){return(e||[]).includes(t)}),[e]),s=(0,Q.useCallback)((function(e,r,o){if(Array.isArray(e))n(e,r),i(null);else if(o){document.getSelection&&document.getSelection().removeAllRanges();var s=a?t.findIndex((function(e){return e===a})):0,u=t.findIndex((function(t){return t===e}));n(t.slice(Math.min(s,u),Math.max(s,u)+1),r)}else n([e],r||!c(e)),i(e)}),[t,n,c,a]);return{isSelected:c,selectionChange:s}};var ze,Ve,Ye,qe,Ge,Ke,Xe,$e,Qe,Je,et,tt,nt,rt,ot,at,it,ct,st,ut,lt=i(27361),dt=i.n(lt),pt=i(58664),ft=i(28926),ht=i(40493),mt=i(11347),gt=function(e){var t=e.theme;return(0,pt.HO)(dt()(t,"colors.paper"),3)},vt=y.Z.space(-1.5),yt=m.ZP.div.withConfig({displayName:"StyledTableFooter"})(ze||(ze=(0,f.Z)(["\n grid-row-start: pagination-start;\n display: flex;\n align-items: flex-start;\n padding-top: ",";\n padding-bottom: ",";\n border-top: 1px solid ",";\n\n "," {\n margin-right: ",";\n }\n"])),y.Z.space(-.5),y.Z.space(-1),gt,ft.Z,y.Z.space(-1)),bt=m.ZP.td.withConfig({displayName:"StyledTableCell"})(Ve||(Ve=(0,f.Z)(["\n && {\n padding: ",";\n background-color: ",";\n border-bottom: 1px solid ",";\n align-content: center;\n box-sizing: content-box;\n text-align: ",";\n\n "," {\n display: inline-block;\n margin-right: ",";\n }\n }\n"])),vt,g.FS.color("paper"),gt,(function(e){var t=e.column;return null!=t&&t.rightAligned?"right":"left"}),ht.q,y.Z.space(-2)),wt=m.ZP.div.withConfig({displayName:"StyledDnD"})(Ye||(Ye=(0,f.Z)(["\n padding: ",";\n width: 100%;\n display: flex;\n align-items: center;\n opacity: ",";\n"])),vt,(function(e){return e.isDragged?.2:1})),kt=m.ZP.span.withConfig({displayName:"StyledResizeHandle"})(qe||(qe=(0,f.Z)(["\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n background: ",";\n opacity: 0;\n width: 3px;\n cursor: col-resize;\n"])),(function(e){var t=e.theme;return(0,pt.HO)(dt()(t,"colors.paper"),3)})),xt=m.ZP.th.withConfig({displayName:"StyledTableHeaderCell"})(Ge||(Ge=(0,f.Z)(["\n && {\n position: sticky;\n top: 0;\n background-color: ",";\n text-align: ",";\n border-bottom: 2px solid ",";\n ",";\n user-select: none;\n cursor: ",";\n white-space: nowrap;\n display: flex;\n border-right: ",";\n padding: 1px; /* default th padding */\n ",";\n ","\n ","\n ","\n }\n"])),g.FS.color("paper"),(function(e){return e.rightAligned?"right":"left"}),gt,(0,v.Z)({fontWeight:g.FS.fontWeight("bold")}),(function(e){return e.isSortable?"pointer":"auto"}),(function(e){var t=e.isDraggedOver,n=e.theme;return t?"3px solid ".concat(n.colors.text):"none"}),(function(e){return"header-cell-navigation-column"===e.id&&"z-index: 1"}),(function(e){var t=e.isResizingThisCell,n=e.theme;return t&&"\n background-color: ".concat((0,pt.xn)(n.colors.paper)[1],";\n\n > ").concat(kt," {\n opacity: 1;\n }\n ")}),(function(e){var t=e.isResizingAnyCell,n=e.theme;return!t&&"\n &:hover {\n background-color: ".concat((0,pt.xn)(n.colors.paper)[1],";\n\n > ").concat(kt," {\n opacity: 1;\n }\n }\n ")}),(function(e){var t=e.isResizingThisCell,n=e.isSortable,r=e.fixedPosition,o=e.theme;return n?!t&&!n&&!r&&"\n &:hover {\n background-color: transparent;\n }\n ":"\n &:hover {\n background-color: ".concat(o.colors.paper,";\n }\n ")})),Ot=(0,m.iv)(Ke||(Ke=(0,f.Z)(["\n display: contents;\n ","\n\n &.selected {\n > "," {\n background-color: ",";\n }\n }\n\n &.selectableRow:not(.selected):hover {\n > "," {\n background-color: ",";\n }\n }\n"])),(function(e){return e.clickable&&"cursor: pointer;"}),bt,(function(e){var t=e.theme;return(0,pt.xn)(t.colors.paper)[2]}),bt,(function(e){var t=e.theme;return(0,pt.xn)(t.colors.paper)[1]})),_t=m.ZP.span.withConfig({displayName:"StyledSortingSpan"})(Xe||(Xe=(0,f.Z)(["\n height: 100%;\n margin-right: 2px;\n"]))),St=m.ZP.span.withConfig({displayName:"StyledSortingRank"})($e||($e=(0,f.Z)(["\n position: relative;\n top: -0.5rem;\n font-weight: ",";\n"])),g.FS.fontWeight("regular")),At=m.ZP.td.withConfig({displayName:"StyledFullRowProgress"})(Qe||(Qe=(0,f.Z)(["\n && {\n grid-column: 1 / -1;\n padding-top: "," 0 0 0;\n height: 50px;\n text-align: center;\n border: 0;\n }\n"])),vt),Et=m.ZP.td.withConfig({displayName:"StyledFullRow"})(Je||(Je=(0,f.Z)(["\n && {\n grid-column: 1 / -1;\n padding-top: "," 0 0 0;\n height: 50px;\n text-align: center;\n border: 0;\n ",";\n }\n"])),vt,(0,v.Z)()),Ct=m.ZP.thead.withConfig({displayName:"StyledTableHead"})(et||(et=(0,f.Z)(["\n ","\n"])),Ot),Pt=m.ZP.tr.withConfig({displayName:"StyledTableRow"})(tt||(tt=(0,f.Z)(["\n ","\n\n &:nth-child(even) td {\n background-color: ",";\n }\n"])),Ot,(function(e){var t=e.theme;return(0,h._j)(.05,t.colors.paper)})),jt=m.ZP.tbody.withConfig({displayName:"StyledTableBody"})(nt||(nt=(0,f.Z)(["\n ","\n"])),Ot),Dt=m.ZP.table.withConfig({displayName:"StyledTable"})(rt||(rt=(0,f.Z)(["\n overflow: auto;\n display: grid;\n border-collapse: collapse;\n grid-template-columns: ",";\n grid-auto-rows: min-content;\n min-width: 100%;\n ","\n ","\n"])),(function(e){return e.columns.map((function(e){return e.width?e.width+"px":e.shrinkToContent?"max-content":"minmax(100px, auto)"})).join(" ")}),(function(e){return e.scrollBehaviour===je.INLINE&&(0,m.iv)(ot||(ot=(0,f.Z)(["\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n "])))}),mt.C),Tt=m.ZP.div.withConfig({displayName:"StretchingTableContainer"})(at||(at=(0,f.Z)(["\n grid-row-start: table-start;\n position: relative;\n overflow-x: auto;\n"]))),Mt=m.ZP.div.withConfig({displayName:"StyledTableWrapper"})(it||(it=(0,f.Z)(["\n display: grid;\n background-color: ",";\n grid-template-rows: [table-start] 1fr [pagination-start] auto auto;\n grid-template-columns: 100%;\n height: 100%;\n\n // reset external styles in old client\n input[type='checkbox'],\n input[type='radio'] {\n margin: 3px 3px 3px 4px !important;\n min-width: 12px;\n }\n"])),g.FS.color("paper")),Zt=m.ZP.div.withConfig({displayName:"StyledDraggable"})(ct||(ct=(0,f.Z)(["\n width: 100%;\n height: 100%;\n display: flex;\n"]))),It=m.ZP.span.withConfig({displayName:"StyledHeaderContentWrapper"})(st||(st=(0,f.Z)(["\n display: flex;\n"]))),Nt=m.ZP.div.withConfig({displayName:"StyledHeaderContent"})(ut||(ut=(0,f.Z)(["\n width: 100%;\n"]))),Rt=i(93235),Bt=Ce().oneOfType([Ce().string,Ce().number]),Lt=Ce().shape({__key:Bt}),Ft=(Ce().arrayOf(Lt),Ce().oneOf(Object.keys(je).map((function(e){return je[e]}))),Ce().shape({id:Ce().string.isRequired,label:Ce().string,sorting:Ce().shape({sortable:Ce().bool,sortRank:Ce().number,order:Ce().oneOf(["asc","desc"])}),resizable:Ce().bool,width:Ce().number,HeaderRenderer:Ce().elementType,CellRenderer:Ce().elementType,rightAligned:Ce().bool})),Ht=J().memo((function(e){var t=e.column,n=e.rowData,r=e.rowIdx;return(0,O.jsx)(bt,{"data-cy":"list-cell",children:t.CellRenderer?(0,O.jsx)(t.CellRenderer,{rowData:n,column:t,rowIdx:r}):(0,O.jsx)(se.ZP.Span,{children:n[t.id]})})}));Ht.propTypes={rowData:Lt.isRequired,column:Ft.isRequired,rowIdx:Ce().number};var Wt=function(e,t){return!e.column.dynamic||0===Object.keys(Pe.Z.difference(e,t)).length};const Ut=J().memo(Ht,Wt);var zt,Vt,Yt,qt,Gt=function(){return zt||(zt=(0,O.jsx)(Pt,{children:(0,O.jsxs)(At,{children:[(0,O.jsx)(Rt.Z,{size:"20"}),(0,O.jsx)(se.ZP.P,{children:(0,O.jsx)(ie.Z,{id:"client.component.table.dataLoading"})})]})}))},Kt=function(){return Vt||(Vt=(0,O.jsx)(Pt,{children:(0,O.jsx)(Et,{children:(0,O.jsx)(se.ZP.Span,{children:(0,O.jsx)(ie.Z,{id:"client.component.table.noData"})})})}))};const Xt=function(e){var t=e.data,n=e.columns,r=e.isSelected,o=e.selectionChange,a=e.dataLoadingInProgress,i=e.onRowClick,c=e.clickable;return a?Yt||(Yt=(0,O.jsx)(jt,{children:(0,O.jsx)(Gt,{})})):(0,O.jsx)(jt,{children:t.length>0?t.map((function(e,t){return(0,O.jsx)(Pt,{className:"selectableRow ".concat(r(e.__key)&&"selected"),onClick:(a=e,function(e){e.shiftKey?o(a.__key,!0,!0):e.metaKey||e.ctrlKey?o(a.__key):c&&i&&i(a.__key)}),clickable:c,"data-cy":"list-row",children:n.map((function(n){return(0,O.jsx)(Ut,{selected:r(e.__key),rowData:e,column:n,rowIdx:t},"table-static-cell-".concat(e.__key,"-").concat(n.id))}))},"list-row-".concat(e.__key));var a})):qt||(qt=(0,O.jsx)(Kt,{}))})};var $t,Qt=i(58129);const Jt=m.ZP.div.withConfig({displayName:"StyledButtonGroup"})($t||($t=(0,f.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"])),Qt.Z);var en=J().forwardRef((function(e,t){return(0,O.jsx)(Jt,{ref:t,children:e.children})}));en.propTypes={children:Ce().node};const tn=en;var nn,rn,on=m.ZP.div.withConfig({displayName:"StyledPagination"})(nn||(nn=(0,f.Z)(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-wrap: wrap;\n gap: ",";\n margin-left: 5px;\n\n span {\n padding-right: 6px;\n }\n"])),y.Z.space(-1)),an=(0,m.ZP)(fe.Z).withConfig({displayName:"StyledPaginationButton"})(rn||(rn=(0,f.Z)(["\n padding: "," ",";\n"])),y.Z.space(-2),y.Z.space(-.8));const cn=(0,R.ZP)((function(e){var t=e.totalCount,n=e.recordsPerPage,r=e.currentPage,o=e.onPageChange,a=e.intl,i=Math.ceil(t/n),c=Math.min((r-1)*n+1,t),s=Math.min(r*n,t),u=function(e){return a.formatMessage({id:e})};return(0,O.jsxs)(on,{children:[(0,O.jsxs)(tn,{children:[(0,O.jsx)(an,{disabled:1===r,label:u("client.component.pagination.firstPageTitle"),iconOnly:!0,icon:"chevron-double-left",onClick:function(){return o(1)}}),(0,O.jsx)(an,{disabled:1===r,label:u("client.component.pagination.prePageTitle"),iconOnly:!0,icon:"chevron-left",onClick:function(){return o(r-1)}}),(0,O.jsx)(an,{disabled:r>=i,label:u("client.component.pagination.nextPageTitle"),iconOnly:!0,icon:"chevron-right",onClick:function(){return o(r+1)}}),(0,O.jsx)(an,{disabled:r>=i,label:u("client.component.pagination.lastPageTitle"),iconOnly:!0,icon:"chevron-double-right",onClick:function(){return o(i)}})]}),t>0&&(0,O.jsx)(se.ZP.Span,{children:(0,O.jsx)(ie.Z,{id:"client.component.pagination.text",values:{start:c,to:s,total:t}})})]})}));var sn=i(80470);const un=(0,R.ZP)((function(e){var t,n=e.onPageChange,r=e.onPageRefresh,o=e.paginationInfo,a=e.intl,i=Boolean(o),c="function"==typeof r;return i||c?(0,O.jsxs)(yt,{children:[i&&(0,O.jsx)(cn,{onPageChange:n,currentPage:o.currentPage,totalCount:o.totalCount,recordsPerPage:o.recordsPerPage}),c&&(0,O.jsx)(sn.Z,{type:"button",title:(t="client.component.table.refreshTitle",a.formatMessage({id:t})),icon:"sync",onClick:r})]}):null}));var ln=i(18446),dn=i.n(ln);function pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pn(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hn={currentlyDragging:null,currentlyDragOver:null,dropPosition:null,offset:null},mn={Top:"Top",Bottom:"Bottom"};const gn=function(e){var t=(0,Q.useState)(hn),n=re()(t,2),r=n[0],o=n[1],a=r.currentlyDragging,i=r.currentlyDragOver,c=r.dropPosition,s=r.offset;return{dndEvents:(0,Q.useCallback)((function(t){return{onDragStart:function(e){o((function(e){return fn(fn({},e),{},{currentlyDragging:t})}));var n=e.target;n&&n.addEventListener("dragend",(function e(t){o(hn),t.stopPropagation(),n&&n.removeEventListener("dragend",e)}),!1),e.stopPropagation()},onDragEnter:function(e){if(a&&!dn()(i,t)){var n=e.target?e.target.getBoundingClientRect():{},r=n.y+n.height/2;o((function(e){return fn(fn({},e),{},{currentlyDragOver:t,offset:r})}))}e.stopPropagation()},onDragOver:function(e){if(a){var t=e.clientY-s>0?mn.Bottom:mn.Top;return o((function(e){return fn(fn({},e),{},{dropPosition:t})})),e.preventDefault(),e.stopPropagation(),!0}},onDrop:function(t){a&&i&&(e(a,i,c),o(hn),t.stopPropagation())}}}),[i,a,c,s,e]),dndState:(0,Q.useMemo)((function(){return{currentlyDragOver:i,currentlyDragging:a,dropPosition:c,offset:s}}),[i,a,c,s])}};const vn=function(e,t,n){var r=t-e;return Math.max(50,n+r)},yn=function(e,t,n){var r=(0,Q.useState)(null),o=re()(r,2),a=o[0],i=o[1],c=(0,Q.useRef)(null),s=(0,Q.useRef)(),u=(0,Q.useState)(!1),l=re()(u,2),d=l[0],p=l[1],f=(0,Q.useState)(!1),h=re()(f,2),m=h[0],g=h[1],v=(0,Q.useMemo)((function(){return{resizingElement:a,isResizing:d}}),[a,d]),y=(0,Q.useCallback)((function(){a&&(n(a),g(!1),setTimeout((function(){p(!1),i(null),c.current=void 0}),0))}),[a,n]),b={onMouseMove:(0,Q.useCallback)((function(n){a&&m&&(s.current=requestAnimationFrame((function(){if(c.current){var r=e(a),o=vn(c.current.y,n.clientY,r.clientHeight),i=vn(c.current.x,n.clientX,r.clientWidth);t(a,{height:o,width:i})}c.current={y:n.clientY,x:n.clientX}})))}),[a,t,m,e]),onMouseUp:y};return(0,Q.useEffect)((function(){return m||cancelAnimationFrame(s.current),function(){cancelAnimationFrame(s.current)}}),[m]),{resizeState:v,startResize:function(e){return function(t){i(e),p(!0),g(!0),c.current=void 0,t.stopPropagation(),t.preventDefault()}},resizingEvents:b}};const bn=function(e){var t=e.column,n=e.startResize;return(0,O.jsx)(kt,{"data-cy":"header-cell-".concat(t.id,"-resizing-controller"),onMouseDown:n(t)})};const wn=(0,R.ZP)((function(e){var t,n,r,o=e.column,a=e.intl,i=o.sorting&&o.sorting.sortRank&&o.sorting.order,c=(null===(t=o.sorting)||void 0===t?void 0:t.sortRank)>1&&(0,O.jsx)(St,{children:o.sorting.sortRank}),s="sort-".concat("asc"===(null===(n=o.sorting)||void 0===n?void 0:n.order)?"up":"down");return i?(0,O.jsxs)(_t,{title:(r="client.component.table.sortingTitle",a.formatMessage({id:r})),children:[(0,O.jsx)(ce.Z,{icon:s}),c]}):null}));function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach((function(t){(0,_e.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var On=function(e){var t=e.column,n=e.data;return t.HeaderRenderer?(0,O.jsx)(t.HeaderRenderer,{column:t,data:n}):(0,O.jsxs)(It,{children:[(0,O.jsx)(Nt,{title:t.label,dangerouslySetInnerHTML:{__html:t.label}}),(0,O.jsx)(wn,{column:t})]})};const _n=function(e){var t=e.columns,n=e.data,r=e.onColumnPositionChange,o=e.onSortingChange,a=e.tableEl,i=e.onColumnWidthChanging,c=e.onColumnWidthChanged,s=gn(r),u=s.dndEvents,l=s.dndState,d=(0,Q.useCallback)((function(e){return a.current.querySelector("th[id='header-cell-".concat(e.id,"']"))}),[]),p=(0,Q.useCallback)((function(e,t){var n=t.width;return i(e.id,n)}),[i]),f=(0,Q.useCallback)((function(e){return c(e.id)}),[c]),h=yn(d,p,f),m=h.startResize,g=h.resizingEvents,v=h.resizeState,y=v.isResizing,b=v.resizingElement,w=function(e){return function(t){!y&&e.sorting&&e.sorting.sortable&&o(e.id,t.shiftKey)}},k=t.map((function(e){var t="header-cell-".concat(e.id),r="header-cell-drop-".concat(e.id),o=e.sorting&&e.sorting.sortable,a=y&&e.id===(null==b?void 0:b.id),i=l.currentlyDragOver===e.id&&l.currentlyDragging!==e.id,c=l.currentlyDragging===e.id;return(0,O.jsxs)(xt,{"data-cy":t,id:t,onClick:w(e),isResizingAnyCell:y,isResizingThisCell:a,isSortable:o,isDraggedOver:i,rightAligned:e.rightAligned,children:[(0,O.jsx)(Zt,xn(xn({id:r},!e.fixedPosition&&xn({draggable:!0},u(e.id))),{},{children:(0,O.jsx)(wt,{isDragged:c,children:(0,O.jsx)(On,{column:e,data:n})})}),r),e.resizable&&(0,O.jsx)(bn,{column:e,startResize:m})]},t)}));return(0,O.jsx)(Ct,xn(xn({},g),{},{children:(0,O.jsx)(Pt,{children:k})}))};function Sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function An(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(n),!0).forEach((function(t){(0,_e.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var En=function(e){var t=e.columns,n=e.selection,r=e.data,o=e.onSelectionChange,a=e.selectionStyle,i=e.paginationInfo,c=e.onColumnPositionChange,s=e.onSortingChange,u=e.dataLoadingInProgress,l=e.onRowClick,d=e.clickable,p=e.onPageChange,f=e.onPageRefresh,h=e.scrollBehaviour,m=void 0===h?je.INLINE:h,g=e.onColumnWidthChange,v=(0,Q.useState)(t),y=(0,Ae.Z)(v,2),b=y[0],w=y[1],k=(0,Q.useRef)(null),x=(0,Q.useCallback)((function(e){var t,n=null===(t=b.find((function(t){return t.id===e})))||void 0===t?void 0:t.width;g&&g(e,n)}),[b,g]),_=(0,Q.useCallback)((function(e,t){w((0,Se.Z)(b.map((function(n){return n.id===e?An(An({},n),{},{width:t}):n}))))}),[b]),S=(0,Q.useMemo)((function(){return r?r.map((function(e){return e.__key})):[]}),[r]),A=Ue(n,S,o),E=A.isSelected,C=A.selectionChange;return(0,Q.useEffect)((function(){var e=function(e,t,n,r){return e&&e!==Re.NONE?e===Re.MULTI?We(n,r):He(n,r):null}(a,0,E,C);w([].concat((0,Se.Z)(e?[e]:[]),(0,Se.Z)(t)))}),[t,n,E,C,a]),(0,O.jsxs)(Mt,{children:[(0,O.jsx)(Tt,{children:(0,O.jsxs)(Dt,{ref:k,columns:b,scrollBehaviour:m,children:[(0,O.jsx)(_n,{columns:b,data:r,onColumnWidthChanging:_,onColumnWidthChanged:x,onColumnPositionChange:c,tableEl:k,onSortingChange:s}),(0,O.jsx)(Xt,{columns:b,data:r,isSelected:E,selectionChange:C,dataLoadingInProgress:u,onRowClick:l,clickable:d})]})}),(0,O.jsx)(un,{onPageChange:p,onPageRefresh:f,paginationInfo:i})]})},Cn=function(e,t){return 0===Object.keys(Pe.Z.difference(e,t)).length};const Pn=J().memo(En,Cn);function jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jn(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tn=function(e){return Object.keys(e.entities[0].paths)},Mn=function(e){return te()(new Set(e.relations.map((function(e){return e.relationName}))))},Zn=function(e){var t=Object.entries(e.entities[0].paths).filter((function(e){var t=re()(e,2);t[0];return"counter"===t[1].type})).map((function(e){var t=re()(e,2),n=t[0];t[1];return n})),n=function(e){return[].concat(te()(Tn(e)),te()(Mn(e)))}(e).filter((function(e){return!t.includes(e)})),r=function(t){return t.map((function(t){return{name:t,label:e.labels[t]}})).sort((function(e,t){return e.label<t.label?-1:1})).map((function(e){return e.name}))};return[].concat(te()(r(t)),te()(r(n)))},In=function(e,t,n){var r="PK: ".concat(n),o=e.displays.find((function(e){return e.model===t}));if(void 0===o)return r;var a=o.values.find((function(e){return e.key===n}));return a?a.display:r};const Nn={fixLabel:function(){return!0}},Rn={getOptions:function(e){var t=e.formData;return{trueLabel:t.intl.formatMessage({id:"client.common.yes"}),falseLabel:t.intl.formatMessage({id:"client.common.no"})}},hasValue:function(e){var t=e.value;return!0===t||!1===t}};var Bn=function(e,t){return{entityModel:e.model,key:e.key,field:t}},Ln=function(e,t){if(e.implicitModelField&&t.formValues){var n=e.implicitModelField,r=n.indexOf(".");return r?function(e,t,n){var r=e.substring(0,t),o=e.substring(t+1),a=n.formValues[r];if(a){if(!Array.isArray(a))return Bn(a,o);if(1===a.length)return Bn(a[0],o)}return null}(n,r,t):t.formValues[n]}return e.implicitModel},Fn=function(e){if(e.implicitModelField){var t=e.implicitModelField,n=t.indexOf(".");return n?[t.substring(0,n)]:[t]}return[]};const Hn={fixLabel:function(){return!0},getOptions:function(e){var t=e.formField,n=e.formData;return{mode:t.mode,implicitModel:Ln(t,n)}},dataContainerProps:function(e){var t=e.formField;return{formValues:{formName:e.formName,fields:Fn(t)}}}};var Wn=function(e){if(!e||isNaN(e))return null;var t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return[t,(n>9?"":"0")+n,(r>9?"":"0")+r].join("-")};const Un={getOptions:function(){return{datePickerOptions:{dateToValue:Wn}}}},zn={getOptions:function(e){var t=e.entityField;if("long"===(null==t?void 0:t.type))return{datePickerOptions:{valueToDate:function(e){var t=e?new Date(e):null;return isNaN(t)?null:t},dateToValue:function(e){return e?e.getTime():null}}}}},Vn={getOptions:function(e){var t=e.formField;return{postPointDigits:dt()(t,"validation.decimalDigits.postPointDigits",null),prePointDigits:dt()(t,"validation.decimalDigits.prePointDigits",null),minValue:dt()(t,"validation.numberRange.fromIncluding",null),maxValue:dt()(t,"validation.numberRange.toIncluding",null),allowNegative:!0}}};function Yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yn(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Gn={getOptions:function(e){var t=e.formField,n=e.formName,r=e.formData;return qn(qn({upload:function(e){r.uploadDocument(n,t.id,e)}},r.chooseDocument?{choose:function(){return r.chooseDocument(r.setDocument,n,t.id)}}:{}),{},{uploadText:r.intl.formatMessage({id:"client.component.upload.upload"}),uploadingText:r.intl.formatMessage({id:"client.component.upload.uploading"}),downloadText:r.intl.formatMessage({id:"client.component.upload.downloadTitle"}),deleteText:r.intl.formatMessage({id:"client.component.upload.deleteTitle"})})},fixLabel:function(){return!0}};var Kn=function(e){return!e.validation||!e.validation.numberRange||"number"!=typeof e.validation.numberRange.fromIncluding||e.validation.numberRange.fromIncluding<0};const Xn={getOptions:function(e){var t=e.formField,n=e.formData;return{hoursLabel:n.intl.formatMessage({id:"client.component.duration.hoursLabel"}),minutesLabel:n.intl.formatMessage({id:"client.component.duration.minutesLabel"}),secondsLabel:n.intl.formatMessage({id:"client.component.duration.secondsLabel"}),allowNegative:Kn(t)}}};var $n=function(e){if(!["email_editor","correspondence_editor"].includes(e))return{toolbar:{removeItems:["fontFamily","fontSize","fontColor"]}}};const Qn={fixLabel:function(){return!0},getOptions:function(e){var t=e.formField;return{ckEditorConfig:$n(t.htmlconfig)}}},Jn={getOptions:function(e){var t=e.formField;return{minValue:dt()(t,"validation.numberRange.fromIncluding",null),maxValue:dt()(t,"validation.numberRange.toIncluding",null)}}};var er=i(99460);function tr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tr(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const rr={getOptions:function(e){var t=e.formField;return{prePointDigits:dt()(t,"validation.decimalDigits.prePointDigits",null),postPointDigits:dt()(t,"validation.decimalDigits.postPointDigits",null),minValue:dt()(t,"validation.numberRange.fromIncluding",null),maxValue:dt()(t,"validation.numberRange.toIncluding",null),allowNegative:!0}}};var or=50,ar=10,ir=function(e){return e.filter(Boolean).join(" and ")},cr=function(e){return e&&Array.isArray(e)&&0!==e.length?"not KEYS(".concat(e.map((function(e){return e.key})).join(", "),")"):void 0};const sr={dataContainerProps:function(e){var t=e.formField;return{relationEntities:[t.id],tooltips:[t.targetEntity],navigationStrategy:!0}},getOptions:function(e){var t=e.formField,n=e.formName,r=e.formData;return{options:dt()(r,["relationEntities",t.id,"data"],[]),moreOptionsAvailable:dt()(r,["relationEntities",t.id,"moreEntitiesAvailable"],!1),isLoading:dt()(r,["relationEntities",t.id,"isLoading"],!1),fetchOptions:function(e){r.loadRelationEntities(t.id,t.targetEntity,{forceReload:!0,limit:ar,formBase:t.formBase,formName:t.formName,where:ir([t.condition,cr(e)]),loadRemoteFieldConfiguration:!0,constriction:t.constriction})},searchOptions:function(e,n){r.loadRelationEntities(t.id,t.targetEntity,{searchTerm:e,limit:or,forceReload:!0,formBase:t.formBase,formName:t.formName,where:ir([t.condition,cr(n)]),loadRemoteFieldConfiguration:!0,constriction:t.constriction})},openAdvancedSearch:function(e,o){return r.openAdvancedSearch(n,t,e,o)},tooltips:dt()(r.tooltips,t.targetEntity,null),loadTooltip:function(e){return r.loadTooltip(t.targetEntity,e)},noResultsText:r.intl.formatMessage({id:"client.component.remoteselect.noResultsText"}),moreOptionsAvailableText:r.intl.formatMessage({id:"client.component.remoteselect.moreOptionsAvailableText"}),DetailLink:r.navigationStrategy&&r.navigationStrategy.DetailLink?function(e){var n=e.entityKey,o=e.children;return(0,O.jsx)(r.navigationStrategy.DetailLink,{entityName:t.targetEntity,entityKey:n,children:o})}:null,createPermission:t.relationName&&dt()(r,["entityModel","paths",t.relationName,"createPermission"],!1),openRemoteCreate:function(e){return r.openRemoteCreate(t,n,e)}}}};var ur=1e4;const lr={dataContainerProps:function(e){var t=e.formField;return{relationEntities:[t.id],tooltips:[t.targetEntity]}},getOptions:function(e){var t=e.formField,n=e.formData;return{options:dt()(n,["relationEntities",t.id,"data"],[]),isLoading:dt()(n,["relationEntities",t.id,"isLoading"],!1),tooltips:dt()(n.tooltips,t.targetEntity,null),loadTooltip:function(e){return n.loadTooltip(t.targetEntity,e)},noResultsText:n.intl.formatMessage({id:"client.component.remoteselect.noResultsText"}),fetchOptions:function(){return n.loadRelationEntities(t.id,t.targetEntity,{forceReload:!1,limit:ur,constriction:t.constriction,where:t.condition})}}}};function dr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dr(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fr={binary:Gn,boolean:Nn,code:Hn,counter:rr,"data-amount":rr,datetime:zn,date:Un,birthdate:Un,"pulldown-date":Un,decimal:Vn,document:Gn,double:Vn,duration:Xn,html:Qn,image:Gn,integer:Jn,location:{hasValue:function(e){var t=e.formValues,n=e.formField.locationMapping;return!(!t[(0,er.vq)(n.city)]&&!t[(0,er.vq)(n.postcode)])},getValue:function(e){var t=e.formField,n=e.formData,r=t.locationMapping;return{postcode:n.formValues[(0,er.vq)(r.postcode)],city:n.formValues[(0,er.vq)(r.city)]}},getEvents:function(e){var t=e.formField,n=e.formName,r=e.formData,o=e.events,a=t.locationMapping||{};return nr(nr({},o),{},{onChange:function(e){for(var o in a)if(a[o]&&void 0!==e[o]){var i=null!==e[o]?e[o]:"";r.changeFieldValue(n,a[o],i)}var c=e.postcode,s=e.city;r.changeFieldValue(n,t.id,nr(nr({},void 0!==c?{postcode:c||""}:{}),void 0!==s?{city:s||""}:{}))},onBlur:function(){r.touchField(n,t.id)}})},dataContainerProps:function(e){var t=e.formField,n=e.formName;return{locations:[t.id],formValues:{formName:n,fields:t.locationMapping?Object.values(t.locationMapping).map((function(e){return(0,er.vq)(e)})):{}}}},getOptions:function(e){var t=e.formField,n=e.formData;return{fetchSuggestions:function(e,r){return n.loadLocationsSuggestions(t.id,e,r,dt()(t,"countries"))},isLoading:dt()(n,["locations",t.id,"isLoading"],!1),suggestions:dt()(n,["locations",t.id,"suggestions"],null),mapButtonTitle:n.intl.formatMessage({id:"client.component.location.mapButtonTitle"}),locationValues:Object.keys(t.locationMapping||{}).reduce((function(e,r){return nr(nr({},e),{},o()({},r,n.formValues[(0,er.vq)(t.locationMapping[r])]))}),{})}},getMandatoryValidation:function(e){var t,n,r=e.formField,o=r.locationMapping,a=null===(t=r.siblings.find((function(e){return e.id===o.city})))||void 0===t?void 0:t.validation,i=null===(n=r.siblings.find((function(e){return e.id===o.postcode})))||void 0===n?void 0:n.validation;return(null==a?void 0:a.mandatory)||(null==i?void 0:i.mandatory)}},long:Jn,moneyamount:{getOptions:function(e){var t=e.formField;return{postPointDigits:dt()(t,"validation.decimalDigits.postPointDigits",2),prePointDigits:dt()(t,"validation.decimalDigits.prePointDigits",null),minValue:dt()(t,"validation.numberRange.fromIncluding",null),maxValue:dt()(t,"validation.numberRange.toIncluding",null),allowNegative:!0,fixedDecimalScale:!0}}},marking:Nn,"multi-remote-field":sr,"multi-select-box":lr,"named-upload":Gn,number:rr,phone:{getOptions:function(e){var t=e.formField;return{customPhoneRegex:dt()(t,"validation.phone.customRegex",null),defaultCountry:dt()(t,"validation.phone.defaultRegion",null)}}},"search-filter":{dataContainerProps:function(e){return{searchFilters:[e.formField.model]}},getOptions:function(e){var t=e.formField,n=e.formData;return{isMulti:t.multiple,options:dt()(n.searchFilters,t.model,null),fetchOptions:function(){return n.loadSearchFilters(t.model,t.group)},noResultsText:n.intl.formatMessage({id:"client.component.searchfilter.noResultsText"})}}},"single-remote-field":sr,"single-select-box":lr,sorting:rr,percent:{getOptions:function(e){var t=e.formField;return{prePointDigits:dt()(t,"validation.decimalDigits.prePointDigits",null),postPointDigits:dt()(t,"validation.decimalDigits.postPointDigits",null),minValue:dt()(t,"validation.numberRange.fromIncluding",null),maxValue:dt()(t,"validation.numberRange.toIncluding",null),allowNegative:!1,suffix:"%"}}}},hr=pr({},fr);const mr={editable:fr,readOnly:pr({},fr),list:hr,search:pr(pr({},fr),{},{boolean:Rn,marking:Rn})};var gr=i(44759),vr=i(57557),yr=i.n(vr),br=i(13439),wr=i(84541),kr=i(81084),xr=i(75502),Or=i(87486),_r=i(95395);function Sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(n),!0).forEach((function(t){(0,_e.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Er="yyyy-MM-dd",Cr=function(e){return(0,wr.Z)(e,Er)?(0,kr.default)(e,Er,new Date):(0,wr.Z)(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||(0,wr.Z)(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?(0,xr.default)(new Date(e)):null};const Pr={number:{icons:{range:"square-plus",single:"square-minus"}},integer:{icons:{range:"square-plus",single:"square-minus"}},datetime:{type:"date",icons:{range:"calendar-plus",single:"calendar-minus"},toRange:function(e){return{from:e?Cr(e).toISOString():null,to:e?(0,Or.default)(Cr(e),1).toISOString():null,isRangeValue:!0}},fromRange:function(e){return e&&e.from?(0,_r.default)(new Date(e.from),Er):e&&e.to?(0,_r.default)(new Date(e.to),Er):null},getToOptions:function(e,t){return Ar(Ar({},e),{},{datePickerOptions:Ar({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return Ar(Ar({},e),{},{datePickerOptions:Ar({maxDate:t},null==e?void 0:e.datePickerOptions)})}},date:{icons:{range:"calendar-plus",single:"calendar-minus"},getToOptions:function(e,t){return Ar(Ar({},e),{},{datePickerOptions:Ar({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return Ar(Ar({},e),{},{datePickerOptions:Ar({maxDate:t},null==e?void 0:e.datePickerOptions)})}}};var jr,Dr,Tr,Mr,Zr,Ir,Nr,Rr=m.ZP.div.withConfig({displayName:"StyledInputWrapper"})(jr||(jr=(0,f.Z)(["\n width: calc(100% - 20px); // subtract extender width\n"]))),Br=m.ZP.div.withConfig({displayName:"StyledInputItemWrapper"})(Dr||(Dr=(0,f.Z)(["\n display: inline-block;\n width: 50%;\n\n * {\n text-align: center;\n }\n"]))),Lr=m.ZP.div.withConfig({displayName:"StyledIconWrapper"})(Tr||(Tr=(0,f.Z)(["\n font-size: ",";\n display: flex;\n align-items: center;\n"])),y.Z.font(-2.7)),Fr=m.ZP.div.withConfig({displayName:"StyledRange"})(Mr||(Mr=(0,f.Z)(["\n display: flex;\n"]))),Hr=m.ZP.div.withConfig({displayName:"StyledInput"})(Zr||(Zr=(0,f.Z)(["\n flex: 1;\n display: flex;\n justify-content: space-between;\n align-items: baseline;\n width: inherit;\n"]))),Wr=m.ZP.div.withConfig({displayName:"StyledExtender"})(Ir||(Ir=(0,f.Z)(["\n display: flex;\n align-items: center;\n position: relative;\n left: 2px;\n z-index: 1;\n"])));function Ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ur(Object(n),!0).forEach((function(t){(0,_e.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ur(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vr="expanded_initial",Yr="expanded",qr="collapsed";const Gr=function(e){var t,n,r=e.value,o=e.events,a=e.readOnly,i=e.type,c=e.options,s=e.fromText,u=e.toText,l=e.expanded,d=(0,Q.useState)(l?Vr:qr),p=(0,Ae.Z)(d,2),f=p[0],h=p[1],m=Pr[i];(0,Q.useEffect)((function(){var e;f===Vr&&r&&!r.isRangeValue?o.onChange({from:r,to:void 0,isRangeValue:!0}):f!==Yr||null!=r&&r.isRangeValue?f===qr&&null!=r&&r.isRangeValue&&o.onChange(function(e){return null!=m&&m.fromRange?m.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(r)):o.onChange((e=r,null!=m&&m.toRange?m.toRange(e):{from:e,to:e,isRangeValue:!0}))}),[f,r,o,m]);var g=(null==r?void 0:r.isRangeValue)||!1,v=(0,Q.useRef)(r);v.current=r;var y,b,w=(0,Q.useMemo)((function(){return zr(zr({},o),{},{onChange:o.onChange})}),[o]),k={onChange:function(e){o.onChange(zr(zr({},v.current),{},{to:e}))}},x={onChange:function(e){o.onChange(zr(zr({},v.current),{},{from:e}))}},_=(null==m||null===(t=m.icons)||void 0===t?void 0:t.range)||"chevron-down",S=(null==m||null===(n=m.icons)||void 0===n?void 0:n.single)||"chevron-left",A=(null==m?void 0:m.type)||i;return(0,O.jsxs)(Fr,{children:[(0,O.jsx)(Rr,{children:g?(0,O.jsxs)(Hr,{children:[(0,O.jsx)(Br,{children:(0,O.jsx)(br.Z,zr(zr({},e),{},{options:(y=c,b=r.to,null!=m&&m.getFromOptions?m.getFromOptions(y,b):y),value:(null==r?void 0:r.from)||null,events:x,placeholder:s}))}),Nr||(Nr=(0,O.jsx)(Lr,{children:(0,O.jsx)(ce.Z,{icon:"horizontal-rule"})})),(0,O.jsx)(Br,{children:(0,O.jsx)(br.Z,zr(zr({},e),{},{options:function(e,t){return null!=m&&m.getToOptions?m.getToOptions(e,t):e}(c,r.from),value:(null==r?void 0:r.to)||null,events:k,placeholder:u}))})]}):(0,O.jsx)(br.Z,zr(zr({type:A},yr()(e,["type"])),{},{events:w}))}),(0,O.jsx)(Wr,{children:(0,O.jsx)(sn.Z,{disabled:a,icon:g?S:_,onClick:function(){h(g?qr:Yr)}})})]})};function Kr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kr(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $r=function(e){var t,n=e.componentType,r=e.mappingType,o=e.range,a=e.formField,i=e.entityField,c=e.formName,s=e.value,u=e.info,l=e.events,d=e.formData,p=a.dataType||a.componentType,f=null===(t=mr[r||"editable"])||void 0===t?void 0:t[p],h=function(e,t,n,r,o){return null!=e&&e.getOptions?e.getOptions({formField:t,formName:n,formData:r,entityField:o}):{}}(f,a,c,d,i),m=function(e,t,n,r,o,a){return null!=e&&e.getValue?e.getValue({formField:t,formName:n,formData:r,entityField:o,value:a}):a}(f,a,c,d,i,s),g=function(e,t,n,r,o,a){return null!=e&&e.getEvents?e.getEvents({formField:t,formName:n,formData:r,entityField:o,events:a}):a}(f,a,c,d,i,l),v=o?Gr:br.Z;return(0,O.jsx)(v,Xr(Xr({type:n,events:g,value:m},u),{},{options:h},o&&{fromText:d.intl.formatMessage({id:"client.component.range.from"}),toText:d.intl.formatMessage({id:"client.component.range.to"}),expanded:a.expanded}))};const Qr=function(e,t){return function(n){return(0,O.jsx)($r,Xr({componentType:e,range:t},n))}};var Jr=i(42060);const eo={dataContainerProps:function(){return{tooltips:["Resource"],navigationStrategy:!0}},getOptions:function(e){var t=e.formData;return t?{downloadTitle:t.intl.formatMessage({id:"client.component.upload.downloadTitle"}),tooltips:dt()(t.tooltips,"Resource",null),loadTooltip:function(e){return t.loadTooltip("Resource",e)}}:{}}},to={dataContainerProps:function(e){return{tooltips:[e.formField.targetEntity],navigationStrategy:!0}},getOptions:function(e){var t=e.formField,n=e.formData;return{tooltips:dt()(n.tooltips,t.targetEntity,null),loadTooltip:function(e){return n.loadTooltip(t.targetEntity,e)},navigationStrategy:n.navigationStrategy,linkProps:{entityName:t.targetEntity}}}},no={binary:eo,document:eo,image:eo,"multi-remote-field":to,"single-remote-field":to,description:{getOptions:function(e){var t=e.formField;return{mode:t.mode,title:t.title}},getValue:function(e){return e.formField.text}},number:{getOptions:function(e){var t=e.formField;return{postPointDigits:dt()(t,"validation.decimalDigits.postPointDigits",null)}}},moneyamount:{getOptions:function(e){var t=e.formField;return{postPointDigits:dt()(t,"validation.decimalDigits.postPointDigits",2)}}},percent:{getValue:function(e){return e.value/100},getOptions:function(e){var t=e.formField;return{postPointDigits:dt()(t,"validation.decimalDigits.postPointDigits",null)}}}};function ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ro(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ao=function(e){var t=e.componentType,n=e.formField,r=e.value,o=e.formData,a=e.key,i=e.breakWords,c=n.dataType||n.componentType,s=no[c],u=function(e,t,n){return null!=e&&e.getOptions?e.getOptions({formField:t,formData:n}):{}}(s,n,o),l=function(e,t,n,r){return null!=e&&e.getValue?e.getValue({formField:t,formData:n,value:r}):r}(s,n,o,r);return(0,O.jsx)(Jr.Z,{type:t,value:l,options:u,breakWords:i},a)};const io=function(e){return function(t){return(0,O.jsx)(ao,oo(oo({},t),{},{componentType:e}))}};function co(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function so(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?co(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):co(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var uo={binary:Qr("document"),birthdate:Qr("date"),boolean:Qr("boolean"),char:Qr("string"),code:Qr("code"),count:Qr("string"),counter:Qr("integer"),createts:Qr("datetime"),createuser:Qr("string"),"compressed-text":Qr("text"),date:Qr("date"),datetime:Qr("datetime"),decimal:Qr("number"),display:io("html"),description:io("description"),document:Qr("document"),double:Qr("number"),duration:Qr("duration"),email:Qr("email"),"fulltext-search":Qr("string"),html:Qr("html"),image:Qr("document"),identifier:Qr("string"),integer:Qr("integer"),ipaddress:Qr("string"),latitude:Qr("string"),location:Qr("location"),login:Qr("string"),long:Qr("integer"),longitude:Qr("string"),marking:Qr("boolean"),moneyamount:Qr("number"),"multi-remote-field":Qr("multi-remote"),"multi-select-box":Qr("multi-select"),"named-upload":Qr("document"),percent:Qr("number"),phone:Qr("phone"),postcode:Qr("string"),"pulldown-date":Qr("date"),"search-filter":Qr("search-filter"),serial:Qr("string"),"single-remote-field":Qr("remote"),"single-select-box":Qr("single-select"),sorting:Qr("integer"),string:Qr("string"),text:Qr("text"),"text-area":Qr("text"),time:Qr("time"),updatets:Qr("datetime"),updateuser:Qr("string"),upload:Qr("document"),url:Qr("url"),uuid:Qr("string"),version:Qr("integer")},lo={binary:io("document"),birthdate:io("date"),boolean:io("boolean"),code:io("text"),char:io("string"),counter:io("integer"),createuser:io("string"),createts:io("datetime"),"compressed-text":io("text"),"data-amount":io("number"),date:io("date"),datetime:io("datetime"),decimal:io("number"),display:io("html"),description:io("description"),duration:io("duration"),document:io("document"),double:io("number"),email:io("email"),html:io("html"),image:io("document"),ipaddress:io("string"),identifier:io("string"),latitude:io("string"),login:io("string"),long:io("integer"),longitude:io("string"),moneyamount:io("number"),"multi-remote-field":io("multi-remote"),"multi-select-box":io("multi-select"),"named-upload":io("document"),integer:io("integer"),percent:io("percent"),phone:io("phone"),postcode:io("string"),"pulldown-date":io("date"),remote:io("remote"),"search-filter":io("search-filter"),serial:io("string"),"single-remote-field":io("remote"),"single-select-box":io("single-select"),sorting:io("integer"),string:io("string"),text:io("text"),"text-area":io("text"),time:io("time"),updatets:io("datetime"),updateuser:io("string"),upload:io("document"),url:io("url"),uuid:io("string"),version:io("integer")};const po={editable:uo,readOnly:lo,list:so(so({},lo),{},{binary:io("document-compact"),document:io("document-compact"),image:io("document-compact")}),search:so(so({},uo),{},{text:Qr("string"),birthdate:Qr("date",!0),code:io("text",!0),date:Qr("date",!0),updatets:Qr("datetime",!0),createts:Qr("datetime",!0),datetime:Qr("datetime",!0),moneyamount:Qr("number",!0),percent:Qr("number",!0),long:Qr("integer",!0),integer:Qr("integer",!0),decimal:Qr("number",!0),counter:Qr("integer",!0),time:Qr("time",!0),boolean:Qr("boolean-select"),marking:Qr("boolean-select")})};var fo;const ho=function(e,t){return po[e]&&po[e][t]?po[e][t]:(gr.Z.log("Unable to display field: unknown mapping type combination (".concat(e," / ").concat(t,")")),function(){return fo||(fo=(0,O.jsx)("span",{}))})};var mo,go,vo,yo,bo,wo,ko,xo,Oo,_o=m.ZP.div.withConfig({displayName:"StyledMergeErrorWrapper"})(mo||(mo=de()(["\n ","\n padding: "," 0 0 ",";\n"])),(0,v.Z)(),y.Z.space(-1),y.Z.space(0)),So=m.ZP.div.withConfig({displayName:"StyledSummaryErrorWrapper"})(go||(go=de()(["\n display: grid;\n align-items: center;\n grid-template-columns: "," 1fr;\n grid-column-gap: ",";\n margin-bottom: ",";\n"])),y.Z.font(10),y.Z.space(-.5),y.Z.space(-.7)),Ao=m.ZP.span.withConfig({displayName:"StyledIconWrapper"})(vo||(vo=de()(["\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n"])),pe.Z.color("signal.danger.text"),y.Z.font(10)),Eo=m.ZP.p.withConfig({displayName:"StyledError"})(yo||(yo=de()([""]))),Co=m.ZP.div.withConfig({displayName:"StyledLabelWrapper"})(bo||(bo=de()(["\n display: flex;\n align-items: center;\n\n label {\n vertical-align: bottom;\n }\n"]))),Po=m.ZP.div.withConfig({displayName:"StyledTableWrapper"})(wo||(wo=de()(["\n flex: 1;\n"]))),jo=m.ZP.span.withConfig({displayName:"StyledStatusWrapper"})(ko||(ko=de()(["\n color: ",";\n"])),(function(e){return e.isChecked?pe.Z.color("signal.success.text"):pe.Z.color("signal.danger.text")})),Do=function(e,t){return 0===Object.keys(Pe.Z.difference(e,t)).length},To=J().memo((function(e){var t=e.entityData,n=e.entityKey,r=e.name,o=e.setSelectedMultipleAll,a=e.isSelected,i=e.navigationStrategy;if(0===t.value.totalKeys)return null;return(0,O.jsxs)(Co,{children:[(0,O.jsx)("input",{type:"checkbox",onChange:function(e){return o(r,n,e.target.checked)},checked:a,id:"".concat(r).concat(n)}),(0,O.jsxs)(se.ZP.Label,{for:"".concat(r).concat(n),children:[xo||(xo=(0,O.jsx)(ie.Z,{id:"client.merge.allRelations"}))," ",(0,O.jsx)(ue,{model:t.value.relationEntity,keys:t.value.keys,totalKeys:t.value.totalKeys,navigationStrategy:i})]})]})}),Do),Mo=J().memo((function(e){var t=e.entityData,n=e.entityKey,r=e.name,o=e.setSelectedMultiple,a=e.selectedMultiple,i=function(e){return dt()(a,[r,e])===n},c=function(e,t){return o(r,n,e,t)},s=function(e,t){return e===t?"checked":t>0?"indeterminate":"unchecked"}(t.value.length,t.value.filter((function(e){return i(e.key)})).length);return(0,O.jsxs)(O.Fragment,{children:[t.value.length>0&&(0,O.jsxs)(Co,{children:[(0,O.jsx)(Ze,{value:s,onChange:function(e){t.value.forEach((function(t){var n="checked"===e;i(t.key)!==n&&c(t.key,n)}))},id:"".concat(r).concat(n)}),(0,O.jsx)(se.ZP.Label,{for:"".concat(r).concat(n),children:Oo||(Oo=(0,O.jsx)(ie.Z,{id:"client.merge.allRelations"}))})]}),t.value.map((function(e){return(0,O.jsxs)(Co,{children:[(0,O.jsx)("input",{type:"checkbox",onChange:function(t){return c(e.key,t.target.checked)},checked:i(e.key),id:"".concat(r).concat(n,"-").concat(e.key)}),(0,O.jsx)(se.ZP.Label,{for:"".concat(r).concat(n,"-").concat(e.key),children:(0,O.jsx)(Jr.Z,{type:"single-select",value:e})})]},"relation-checkbox-".concat(e.key))}))]})}),Do),Zo=J().memo((function(e){var t=e.entityData,n=e.entityKey,r=e.name,o=e.setSelectedSingle,a=e.isSelected,i=t.type,c=t.writable,s={entity:"single-select-box"}[i]||i,u=ho("list",s);return(0,O.jsxs)(Co,{children:[(0,O.jsx)("input",{type:"radio",name:r,onChange:function(){o(r,n)},checked:a,id:"".concat(r).concat(n),disabled:!c}),(0,O.jsx)(se.ZP.Label,{for:"".concat(r).concat(n),children:(0,O.jsx)(u,{mappingType:"list",formField:{dataType:s},value:t.value})})]})}),Do);const Io=function(e){var t=e.rowData,n=e.column,r=e.setSelectedSingle,o=e.selectedSingle,a=e.setSelectedMultiple,i=e.selectedMultiple,c=e.setSelectedMultipleAll,s=e.selectedMultipleAll,u=e.navigationStrategy,l=n.entityKey,d=t[l],p=d.type,f=t.__key;return"relations"===p?(0,O.jsx)(To,{entityData:d,entityKey:l,name:f,setSelectedMultipleAll:c,isSelected:dt()(s,[f],[]).includes(l),navigationStrategy:u}):"entity-list"===p?(0,O.jsx)(Mo,{entityData:d,entityKey:l,name:f,setSelectedMultiple:a,selectedMultiple:i}):(0,O.jsx)(Zo,{entityData:d,entityKey:l,name:f,setSelectedSingle:r,isSelected:o[f]===l})};var No={setSelectedSingle:function(e,t){return{type:H,payload:{name:e,entityKey:t}}},setSelectedMultiple:function(e,t,n,r){return{type:W,payload:{name:e,entityKey:t,relatedEntityKey:n,isSelected:r}}},setSelectedMultipleAll:function(e,t,n){return{type:U,payload:{name:e,entityKey:t,isSelected:n}}}};const Ro=(0,B.connect)((function(e){return{selectedSingle:e.merge.selected.single,selectedMultiple:e.merge.selected.multiple,selectedMultipleAll:e.merge.selected.multipleAll,navigationStrategy:e.input.navigationStrategy}}),No)((0,R.ZP)(Io));var Bo;const Lo=function(e){var t=e.label,n=e.entityKey,r=e.setTargetEntity,o=e.targetEntity,a=e.mergeStrategyDisplay,i=o===n,c=i?Bo||(Bo=(0,O.jsx)(ie.Z,{id:"client.merge.strategy.keep"})):a;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("input",{type:"radio",name:"column",onChange:function(){return r(n)},checked:i,id:"targetEntity".concat(n)}),(0,O.jsxs)(se.ZP.Label,{for:"targetEntity".concat(n),children:[(0,O.jsx)(se.ZP.B,{children:t}),(0,O.jsxs)(jo,{isChecked:i,children:[" (",c,")"]})]})]})};var Fo={setTargetEntity:X};const Ho=(0,B.connect)((function(e){return{targetEntity:e.merge.selected.targetEntity,mergeStrategyDisplay:e.merge.sourceData.mergeStrategyDisplay}}),Fo)((0,R.ZP)(Lo));var Wo;s().arrayOf(s().shape({model:s().string,key:s().string,paths:s().objectOf(s().objectOf(s().arrayOf(s().string))),entityValidatorErrors:s().objectOf(s().arrayOf(s().string))}));const Uo=function(e){var t=e.sourceData,n=e.mergeErrorMsg,r=e.mergeValidationErrors.map((function(e){var n=Object.keys(e.paths).map((function(n){return Object.keys(e.paths[n]).map((function(r){return e.paths[n][r].map((function(e,o){return(0,O.jsxs)(Eo,{children:[t.labels[n],": ",e]},"paths-".concat(n,"-").concat(r,"-").concat(o))}))}))})),r=Object.keys(e.entityValidatorErrors).map((function(t){return e.entityValidatorErrors[t].map((function(e,n){return(0,O.jsx)(Eo,{children:e},"entity-".concat(t,"-").concat(n))}))}));return[].concat(te()(n),te()(r))}));return(0,O.jsxs)(_o,{children:[(r.length>0||Boolean(n))&&(Wo||(Wo=(0,O.jsxs)(So,{children:[(0,O.jsx)(Ao,{children:(0,O.jsx)(ce.Z,{icon:"times"})}),(0,O.jsx)(se.ZP.P,{children:(0,O.jsx)(ie.Z,{id:"client.merge.summary.error"})})]}))),Boolean(n)&&(0,O.jsx)(Eo,{children:n}),r]})};var zo,Vo,Yo=function(e){var t=e.rowIdx,n=e.sourceData,r=e.allPaths[t];return(0,O.jsx)(se.ZP.B,{children:n.labels[r]})};const qo=function(e){var t=e.sourceData,n=e.mergePending,r=e.mergeErrorMsg,a=e.mergeValidationErrors,i=e.executeMerge,c=(0,Q.useMemo)((function(){return t?function(e){var t=Tn(e).map((function(t,n){return e.entities.reduce((function(n,r){var a=r.paths[t];return a&&a.value&&("entity"===a.type&&(a.value.display=In(e,a.value.model,a.value.key)),"entity-list"===a.type&&(a.value=a.value.map((function(t){return t.display=In(e,t.model,t.key),t})))),Dn(Dn({},n),{},o()({},r.key,a))}),{__key:t})})),n=Mn(e).map((function(t,n){return e.relations.filter((function(e){return e.relationName===t})).reduce((function(e,t){return Dn(Dn({},e),{},o()({},t.entityKey,{type:"relations",value:{keys:t.keys,totalKeys:t.totalKeys,relationEntity:t.relationEntity}}))}),{__key:t})})),r=Zn(e);return[].concat(te()(t),te()(n)).sort((function(e,t){return r.findIndex((function(t){return t===e.__key}))-r.findIndex((function(e){return e===t.__key}))}))}(t):[]}),[t]),s=(0,Q.useMemo)((function(){return t?function(e,t,n,r){var o=e.entities.map((function(r){return{id:r.key,entityKey:r.key,resizable:!0,sorting:{sortable:!1},CellRenderer:n,HeaderRenderer:function(n){return(0,O.jsx)(t,Dn(Dn({},n),{},{entityKey:r.key,label:In(e,r.model,r.key)}))}}}));return[{id:"column-label",label:"",resizable:!0,sorting:{sortable:!1},CellRenderer:function(t){return(0,O.jsx)(r,Dn(Dn({},t),{},{sourceData:e,allPaths:Zn(e)}))}}].concat(te()(o))}(t,Ho,Ro,Yo):[]}),[t]);return n?zo||(zo=(0,O.jsx)(Oe.Z,{})):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(he,{children:(0,O.jsx)(me,{onClick:i,look:"raised",ink:"primary",disabled:null===t,children:Vo||(Vo=(0,O.jsx)(ie.Z,{id:"client.merge.saveButton"}))})}),(0,O.jsxs)(Po,{children:[(0,O.jsx)(Uo,{sourceData:t,mergeErrorMsg:r,mergeValidationErrors:a}),(0,O.jsx)(Pn,{columns:s,data:c,selectionStyle:"none",dataLoadingInProgress:null===t,onColumnPositionChange:function(){}})]})]})};var Go={executeMerge:function(){return{type:V}}};const Ko=(0,B.connect)((function(e){return{sourceData:e.merge.sourceData,mergePending:e.merge.mergePending,mergeErrorMsg:e.merge.mergeErrorMsg,mergeValidationErrors:e.merge.mergeValidationErrors}}),Go)((0,R.ZP)(qo));var Xo,$o,Qo,Jo=m.ZP.div.withConfig({displayName:"StyledMerge"})(Xo||(Xo=de()(["\n height: 100%;\n overflow: hidden;\n background-color: ",";\n display: flex;\n flex-direction: column;\n"])),pe.Z.color("paper"));const ea=function(e){var t=e.initialize,n=e.mergeDone;return(0,Q.useEffect)((function(){t()}),[t]),(0,O.jsx)(Jo,{children:n?$o||($o=(0,O.jsx)(xe,{})):Qo||(Qo=(0,O.jsx)(Ko,{}))})};var ta={initialize:function(){return{type:L}}};const na=(0,B.connect)((function(e){return{mergeDone:!!e.merge.mergeResponse}}),ta)((0,R.ZP)(ea));var ra,oa=i(87757),aa=i.n(oa),ia=i(34857),ca=i(31921),sa=i.n(ca),ua=i(81770);function la(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function da(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?la(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):la(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pa=function(e,t){for(var n=function(){var n=re()(o[r],2),a=n[0],i=n[1];"entity-list"===i.type&&i.value.map((function(e){return e.key})).forEach((function(n){sa()(e,[a,n],t.key,Object)}))},r=0,o=Object.entries(t.paths);r<o.length;r++)n()},fa=(ra={},o()(ra,F,ua.Z.singleTransferReducer("sourceData")),o()(ra,V,(function(e){return da(da({},e),{},{mergePending:!0})})),o()(ra,Y,(function(e,t){var n=t.payload.mergeResponse;return da(da({},e),{},{mergePending:!1,mergeResponse:n})})),o()(ra,q,(function(e,t){var n=t.payload,r=n.errorMsg,o=n.validationErrors;return da(da({},e),{},{mergePending:!1,mergeErrorMsg:r,mergeValidationErrors:o})})),o()(ra,H,(function(e,t){var n=t.payload,r=n.name,a=n.entityKey;return da(da({},e),{},{selected:da(da({},e.selected),{},{single:da(da({},e.selected.single),{},o()({},r,a))})})})),o()(ra,W,(function(e,t){var n,r=t.payload,a=r.name,i=r.entityKey,c=r.relatedEntityKey;return r.isSelected?n=da(da({},e.selected.multiple),{},o()({},a,da(da({},e.selected.multiple[a]),{},o()({},c,i)))):(n=da({},e.selected.multiple))[a]=yr()(n[a],[c]),da(da({},e),{},{selected:da(da({},e.selected),{},{multiple:n})})})),o()(ra,U,(function(e,t){var n,r=t.payload,a=r.name,i=r.entityKey;return n=r.isSelected?[].concat(te()(e.selected.multipleAll[a]||[]),[i]):e.selected.multipleAll[a].filter((function(e){return e!==i})),da(da({},e),{},{selected:da(da({},e.selected),{},{multipleAll:da(da({},e.selected.multipleAll),{},o()({},a,n))})})})),o()(ra,z,(function(e,t){for(var n=t.payload.entityKey,r={},a={},i=e.sourceData.entities.find((function(e){return e.key===n})),c=0,s=Object.entries(i.paths);c<s.length;c++){var u=re()(s[c],2),l=u[0];"entity-list"!==u[1].type&&(r[l]=n)}e.sourceData.entities.filter((function(e){return e.key!==n})).forEach((function(e){return pa(a,e)})),pa(a,i);var d=e.sourceData.relations.reduce((function(e,t){return da(da({},e),{},o()({},t.relationName,[].concat(te()(e[t.relationName]||[]),[t.entityKey])))}),{});return da(da({},e),{},{selected:da(da({},e.selected),{},{targetEntity:n,single:r,multiple:a,multipleAll:d})})})),ra),ha={sourceData:null,mergePending:!1,mergeResponse:null,mergeErrorMsg:null,mergeValidationErrors:[],selected:{targetEntity:null,single:{},multiple:{},multipleAll:{}}};var ma=i(44908),ga=i.n(ma),va=i(63094),ya=aa().mark(Aa),ba=aa().mark(Ea),wa=aa().mark(Ca),ka=aa().mark(Pa),xa=aa().mark(ja),Oa=aa().mark(Da),_a=function(e){return e.merge},Sa=function(e){return e.input};function Aa(){return aa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ia.$6)([(0,ia.Fm)(L,Ea),(0,ia.Fm)(V,ja),(0,ia.Fm)(G,Da)]);case 2:case"end":return e.stop()}}),ya)}function Ea(){var e,t;return aa().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,ia.Ys)(Sa);case 2:return e=n.sent,t=e.selection,n.next=6,(0,ia.RE)(Ca,t);case 6:case"end":return n.stop()}}),ba)}function Ca(e){var t,n,r;return aa().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return"merge/sourceData",t={method:"POST",body:e},o.next=4,(0,ia.RE)(va.Z.requestSaga,"merge/sourceData",t);case 4:return n=o.sent,r=n.body,o.next=8,(0,ia.gz)(K(r));case 8:return o.next=10,(0,ia.gz)(X(r.entities[0].key));case 10:case"end":return o.stop()}}),wa)}function Pa(){var e,t,n,r,o,a,i,c,s,u,l;return aa().wrap((function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,(0,ia.Ys)(_a);case 2:for(e=d.sent,t=e.selected,n=e.sourceData,r={},o=function(){var e=re()(i[a],2),t=e[0],o=e[1],c=n.entities.find((function(e){return e.key===o})).paths[t];c.writable&&("entity"===c.type?null===c.value?r[t]=null:r[t]={key:c.value.key}:r[t]=o)},a=0,i=Object.entries(t.single);a<i.length;a++)o();for(c=function(){var e=re()(u[s],2),t=e[0],n=e[1];r[t]=[],Object.keys(n).forEach((function(e){return r[t].push({key:e})}))},s=0,u=Object.entries(t.multiple);s<u.length;s++)c();return l=ga()(n.relations.map((function(e){return e.relationName}))).map((function(e){return{relationName:e,sourceKey:t.multipleAll[e]||[]}})),d.abrupt("return",{entities:n.entities,targetEntity:{key:t.targetEntity,paths:r},mergeRelations:l});case 12:case"end":return d.stop()}}),ka)}function ja(){var e,t,n;return aa().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e="merge/merge",r.t0=[400,500],r.next=4,(0,ia.RE)(Pa);case 4:return r.t1=r.sent,t={method:"POST",acceptedStatusCodes:r.t0,body:r.t1},r.next=8,(0,ia.RE)(va.Z.requestSaga,e,t);case 8:if(200!==(n=r.sent).status){r.next=14;break}return r.next=12,(0,ia.gz)((o=n.body,{type:Y,payload:{mergeResponse:o}}));case 12:case 17:r.next=21;break;case 14:if(!n.body||"VALIDATION_FAILED"!==n.body.errorCode){r.next=19;break}return r.next=17,(0,ia.gz)($(null,n.body.errors));case 19:return r.next=21,(0,ia.gz)($(n.body.message,[]));case 21:case"end":return r.stop()}var o}),xa)}function Da(){var e,t,n,r;return aa().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,ia.Ys)(_a);case 2:return e=o.sent,t=e.sourceData,n=t.entities.map((function(e){return{entityName:e.model,key:e.key}})),r=[{type:"entity-update-event",payload:{entities:n}}],o.next=8,(0,ia.gz)(d.Z.fireExternalEvent("onSuccess",{remoteEvents:r}));case 8:case"end":return o.stop()}}),Oa)}var Ta=aa().mark(Ma);function Ma(){return aa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ia.$6)([(0,ia.rM)(Aa)]);case 2:case"end":return e.stop()}}),Ta)}const Za={merge:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ha,t=arguments.length>1?arguments[1]:void 0,n=fa[t.type];return n?n(e,t):e}};var Ia,Na,Ra,Ba=[Ma];function La(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Fa="merge",Ha=["emitAction","onSuccess"],Wa=function(e,t,r,o){var a=n.Z.createStore(Za,Ba,t,Fa);u.Z.addToStore(a,(function(e){return e.input.emitAction})),d.Z.addToStore(a,(function(e){return n.Z.getEvents(Ha,e.input)}));var i=!r.emitAction;p.Z.addToStore(a,i),l.Z.addToStore(a);var c=(0,O.jsxs)(O.Fragment,{children:[Ia||(Ia=(0,O.jsx)(_,{})),i&&(Na||(Na=(0,O.jsx)(p.Z.Notifications,{}))),Ra||(Ra=(0,O.jsx)(na,{}))]});return n.Z.createApp(Fa,c,a,{input:t,events:r,publicPath:o,textResourceModules:["component","common",Fa]})},Ua=function(e){return n.Z.useApp({initApp:Wa,props:e,packageName:Fa,externalEvents:Ha}).component};Ua.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?La(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):La(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({selection:s().object},Ha.reduce((function(e,t){return e[t]=s().func,e}),{}));var za=n.Z.createBundleableApp(Fa,Wa,Ua);n.Z.registerAppInRegistry(za.name,za.init)})(),c})()));
64
+ e.exports=function(){"use strict";function e(t){return e="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(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){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}}function r(e,o,a){return r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var a=new(Function.bind.apply(e,o));return r&&t(a,r.prototype),a},r.apply(null,arguments)}function o(e){return a(e)||i(e)||c(e)||u()}function a(e){if(Array.isArray(e))return s(e)}function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function c(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}function s(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 u(){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 l=Object.hasOwnProperty,d=Object.setPrototypeOf,p=Object.isFrozen,f=Object.getPrototypeOf,h=Object.getOwnPropertyDescriptor,m=Object.freeze,g=Object.seal,v=Object.create,y="undefined"!=typeof Reflect&&Reflect,b=y.apply,w=y.construct;b||(b=function(e,t,n){return e.apply(t,n)}),m||(m=function(e){return e}),g||(g=function(e){return e}),w||(w=function(e,t){return r(e,o(t))});var k=D(Array.prototype.forEach),x=D(Array.prototype.pop),O=D(Array.prototype.push),_=D(String.prototype.toLowerCase),S=D(String.prototype.match),A=D(String.prototype.replace),E=D(String.prototype.indexOf),C=D(String.prototype.trim),P=D(RegExp.prototype.test),j=T(TypeError);function D(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return b(e,t,r)}}function T(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(e,n)}}function M(e,t,n){n=n||_,d&&d(e,null);for(var r=t.length;r--;){var o=t[r];if("string"==typeof o){var a=n(o);a!==o&&(p(t)||(t[r]=a),o=a)}e[o]=!0}return e}function Z(e){var t,n=v(null);for(t in e)b(l,e,[t])&&(n[t]=e[t]);return n}function I(e,t){for(;null!==e;){var n=h(e,t);if(n){if(n.get)return D(n.get);if("function"==typeof n.value)return D(n.value)}e=f(e)}function r(e){return console.warn("fallback value for",e),null}return r}var N=m(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),R=m(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),B=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),L=m(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),F=m(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),H=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),W=m(["#text"]),U=m(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),z=m(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),V=m(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Y=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),q=g(/\{\{[\w\W]*|[\w\W]*\}\}/gm),G=g(/<%[\w\W]*|[\w\W]*%>/gm),K=g(/^data-[\-\w.\u00B7-\uFFFF]/),X=g(/^aria-[\-\w]+$/),$=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Q=g(/^(?:\w+script|data):/i),J=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee=g(/^html$/i),te=function(){return"undefined"==typeof window?null:window},ne=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function re(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te(),n=function(e){return re(e)};if(n.version="2.4.0",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,a=t.document,i=t.DocumentFragment,c=t.HTMLTemplateElement,s=t.Node,u=t.Element,l=t.NodeFilter,d=t.NamedNodeMap,p=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,f=t.HTMLFormElement,h=t.DOMParser,g=t.trustedTypes,v=u.prototype,y=I(v,"cloneNode"),b=I(v,"nextSibling"),w=I(v,"childNodes"),D=I(v,"parentNode");if("function"==typeof c){var T=a.createElement("template");T.content&&T.content.ownerDocument&&(a=T.content.ownerDocument)}var oe=ne(g,r),ae=oe?oe.createHTML(""):"",ie=a,ce=ie.implementation,se=ie.createNodeIterator,ue=ie.createDocumentFragment,le=ie.getElementsByTagName,de=r.importNode,pe={};try{pe=Z(a).documentMode?a.documentMode:{}}catch(e){}var fe={};n.isSupported="function"==typeof D&&ce&&void 0!==ce.createHTMLDocument&&9!==pe;var he,me,ge=q,ve=G,ye=K,be=X,we=Q,ke=J,xe=$,Oe=null,_e=M({},[].concat(o(N),o(R),o(B),o(F),o(W))),Se=null,Ae=M({},[].concat(o(U),o(z),o(V),o(Y))),Ee=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ce=null,Pe=null,je=!0,De=!0,Te=!1,Me=!1,Ze=!1,Ie=!1,Ne=!1,Re=!1,Be=!1,Le=!1,Fe=!0,He=!1,We="user-content-",Ue=!0,ze=!1,Ve={},Ye=null,qe=M({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ge=null,Ke=M({},["audio","video","img","source","image","track"]),Xe=null,$e=M({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qe="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml",tt=et,nt=!1,rt=["application/xhtml+xml","text/html"],ot="text/html",at=null,it=a.createElement("form"),ct=function(e){return e instanceof RegExp||e instanceof Function},st=function(t){at&&at===t||(t&&"object"===e(t)||(t={}),t=Z(t),he=he=-1===rt.indexOf(t.PARSER_MEDIA_TYPE)?ot:t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===he?function(e){return e}:_,Oe="ALLOWED_TAGS"in t?M({},t.ALLOWED_TAGS,me):_e,Se="ALLOWED_ATTR"in t?M({},t.ALLOWED_ATTR,me):Ae,Xe="ADD_URI_SAFE_ATTR"in t?M(Z($e),t.ADD_URI_SAFE_ATTR,me):$e,Ge="ADD_DATA_URI_TAGS"in t?M(Z(Ke),t.ADD_DATA_URI_TAGS,me):Ke,Ye="FORBID_CONTENTS"in t?M({},t.FORBID_CONTENTS,me):qe,Ce="FORBID_TAGS"in t?M({},t.FORBID_TAGS,me):{},Pe="FORBID_ATTR"in t?M({},t.FORBID_ATTR,me):{},Ve="USE_PROFILES"in t&&t.USE_PROFILES,je=!1!==t.ALLOW_ARIA_ATTR,De=!1!==t.ALLOW_DATA_ATTR,Te=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=t.SAFE_FOR_TEMPLATES||!1,Ze=t.WHOLE_DOCUMENT||!1,Re=t.RETURN_DOM||!1,Be=t.RETURN_DOM_FRAGMENT||!1,Le=t.RETURN_TRUSTED_TYPE||!1,Ne=t.FORCE_BODY||!1,Fe=!1!==t.SANITIZE_DOM,He=t.SANITIZE_NAMED_PROPS||!1,Ue=!1!==t.KEEP_CONTENT,ze=t.IN_PLACE||!1,xe=t.ALLOWED_URI_REGEXP||xe,tt=t.NAMESPACE||et,t.CUSTOM_ELEMENT_HANDLING&&ct(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ee.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ct(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ee.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ee.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Me&&(De=!1),Be&&(Re=!0),Ve&&(Oe=M({},o(W)),Se=[],!0===Ve.html&&(M(Oe,N),M(Se,U)),!0===Ve.svg&&(M(Oe,R),M(Se,z),M(Se,Y)),!0===Ve.svgFilters&&(M(Oe,B),M(Se,z),M(Se,Y)),!0===Ve.mathMl&&(M(Oe,F),M(Se,V),M(Se,Y))),t.ADD_TAGS&&(Oe===_e&&(Oe=Z(Oe)),M(Oe,t.ADD_TAGS,me)),t.ADD_ATTR&&(Se===Ae&&(Se=Z(Se)),M(Se,t.ADD_ATTR,me)),t.ADD_URI_SAFE_ATTR&&M(Xe,t.ADD_URI_SAFE_ATTR,me),t.FORBID_CONTENTS&&(Ye===qe&&(Ye=Z(Ye)),M(Ye,t.FORBID_CONTENTS,me)),Ue&&(Oe["#text"]=!0),Ze&&M(Oe,["html","head","body"]),Oe.table&&(M(Oe,["tbody"]),delete Ce.tbody),m&&m(t),at=t)},ut=M({},["mi","mo","mn","ms","mtext"]),lt=M({},["foreignobject","desc","title","annotation-xml"]),dt=M({},["title","style","font","a","script"]),pt=M({},R);M(pt,B),M(pt,L);var ft=M({},F);M(ft,H);var ht=function(e){var t=D(e);t&&t.tagName||(t={namespaceURI:et,tagName:"template"});var n=_(e.tagName),r=_(t.tagName);return e.namespaceURI===Je?t.namespaceURI===et?"svg"===n:t.namespaceURI===Qe?"svg"===n&&("annotation-xml"===r||ut[r]):Boolean(pt[n]):e.namespaceURI===Qe?t.namespaceURI===et?"math"===n:t.namespaceURI===Je?"math"===n&&lt[r]:Boolean(ft[n]):e.namespaceURI===et&&!(t.namespaceURI===Je&&!lt[r])&&!(t.namespaceURI===Qe&&!ut[r])&&!ft[n]&&(dt[n]||!pt[n])},mt=function(e){O(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ae}catch(t){e.remove()}}},gt=function(e,t){try{O(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){O(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Se[e])if(Re||Be)try{mt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},vt=function(e){var t,n;if(Ne)e="<remove></remove>"+e;else{var r=S(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===he&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=oe?oe.createHTML(e):e;if(tt===et)try{t=(new h).parseFromString(o,he)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(tt,"template",null);try{t.documentElement.innerHTML=nt?"":o}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),tt===et?le.call(t,Ze?"html":"body")[0]:Ze?t.documentElement:i},yt=function(e){return se.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},bt=function(e){return e instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof p)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},wt=function(t){return"object"===e(s)?t instanceof s:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},kt=function(e,t,r){fe[e]&&k(fe[e],(function(e){e.call(n,t,r,at)}))},xt=function(e){var t;if(kt("beforeSanitizeElements",e,null),bt(e))return mt(e),!0;if(P(/[\u0080-\uFFFF]/,e.nodeName))return mt(e),!0;var r=me(e.nodeName);if(kt("uponSanitizeElement",e,{tagName:r,allowedTags:Oe}),e.hasChildNodes()&&!wt(e.firstElementChild)&&(!wt(e.content)||!wt(e.content.firstElementChild))&&P(/<[/\w]/g,e.innerHTML)&&P(/<[/\w]/g,e.textContent))return mt(e),!0;if("select"===r&&P(/<template/i,e.innerHTML))return mt(e),!0;if(!Oe[r]||Ce[r]){if(!Ce[r]&&_t(r)){if(Ee.tagNameCheck instanceof RegExp&&P(Ee.tagNameCheck,r))return!1;if(Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(r))return!1}if(Ue&&!Ye[r]){var o=D(e)||e.parentNode,a=w(e)||e.childNodes;if(a&&o)for(var i=a.length-1;i>=0;--i)o.insertBefore(y(a[i],!0),b(e))}return mt(e),!0}return e instanceof u&&!ht(e)?(mt(e),!0):"noscript"!==r&&"noembed"!==r||!P(/<\/no(script|embed)/i,e.innerHTML)?(Me&&3===e.nodeType&&(t=e.textContent,t=A(t,ge," "),t=A(t,ve," "),e.textContent!==t&&(O(n.removed,{element:e.cloneNode()}),e.textContent=t)),kt("afterSanitizeElements",e,null),!1):(mt(e),!0)},Ot=function(e,t,n){if(Fe&&("id"===t||"name"===t)&&(n in a||n in it))return!1;if(De&&!Pe[t]&&P(ye,t));else if(je&&P(be,t));else if(!Se[t]||Pe[t]){if(!(_t(e)&&(Ee.tagNameCheck instanceof RegExp&&P(Ee.tagNameCheck,e)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(e))&&(Ee.attributeNameCheck instanceof RegExp&&P(Ee.attributeNameCheck,t)||Ee.attributeNameCheck instanceof Function&&Ee.attributeNameCheck(t))||"is"===t&&Ee.allowCustomizedBuiltInElements&&(Ee.tagNameCheck instanceof RegExp&&P(Ee.tagNameCheck,n)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(n))))return!1}else if(Xe[t]);else if(P(xe,A(n,ke,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(n,"data:")||!Ge[e])if(Te&&!P(we,A(n,ke,"")));else if(n)return!1;return!0},_t=function(e){return e.indexOf("-")>0},St=function(t){var r,o,a,i;kt("beforeSanitizeAttributes",t,null);var c=t.attributes;if(c){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se};for(i=c.length;i--;){var u=r=c[i],l=u.name,d=u.namespaceURI;if(o="value"===l?r.value:C(r.value),a=me(l),s.attrName=a,s.attrValue=o,s.keepAttr=!0,s.forceKeepAttr=void 0,kt("uponSanitizeAttribute",t,s),o=s.attrValue,!s.forceKeepAttr&&(gt(l,t),s.keepAttr))if(P(/\/>/i,o))gt(l,t);else{Me&&(o=A(o,ge," "),o=A(o,ve," "));var p=me(t.nodeName);if(Ot(p,a,o)){if(!He||"id"!==a&&"name"!==a||(gt(l,t),o=We+o),oe&&"object"===e(g)&&"function"==typeof g.getAttributeType)if(d);else switch(g.getAttributeType(p,a)){case"TrustedHTML":o=oe.createHTML(o);break;case"TrustedScriptURL":o=oe.createScriptURL(o)}try{d?t.setAttributeNS(d,l,o):t.setAttribute(l,o),x(n.removed)}catch(e){}}}}kt("afterSanitizeAttributes",t,null)}},At=function e(t){var n,r=yt(t);for(kt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)kt("uponSanitizeShadowNode",n,null),xt(n)||(n.content instanceof i&&e(n.content),St(n));kt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(o){var a,c,u,l,d,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((nt=!o)&&(o="\x3c!--\x3e"),"string"!=typeof o&&!wt(o)){if("function"!=typeof o.toString)throw j("toString is not a function");if("string"!=typeof(o=o.toString()))throw j("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof o)return t.toStaticHTML(o);if(wt(o))return t.toStaticHTML(o.outerHTML)}return o}if(Ie||st(p),n.removed=[],"string"==typeof o&&(ze=!1),ze){if(o.nodeName){var f=me(o.nodeName);if(!Oe[f]||Ce[f])throw j("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof s)1===(c=(a=vt("\x3c!----\x3e")).ownerDocument.importNode(o,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!Re&&!Me&&!Ze&&-1===o.indexOf("<"))return oe&&Le?oe.createHTML(o):o;if(!(a=vt(o)))return Re?null:Le?ae:""}a&&Ne&&mt(a.firstChild);for(var h=yt(ze?o:a);u=h.nextNode();)3===u.nodeType&&u===l||xt(u)||(u.content instanceof i&&At(u.content),St(u),l=u);if(l=null,ze)return o;if(Re){if(Be)for(d=ue.call(a.ownerDocument);a.firstChild;)d.appendChild(a.firstChild);else d=a;return Se.shadowroot&&(d=de.call(r,d,!0)),d}var m=Ze?a.outerHTML:a.innerHTML;return Ze&&Oe["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&P(ee,a.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+m),Me&&(m=A(m,ge," "),m=A(m,ve," ")),oe&&Le?oe.createHTML(m):m},n.setConfig=function(e){st(e),Ie=!0},n.clearConfig=function(){at=null,Ie=!1},n.isValidAttribute=function(e,t,n){at||st({});var r=me(e),o=me(t);return Ot(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(fe[e]=fe[e]||[],O(fe[e],t))},n.removeHook=function(e){if(fe[e])return x(fe[e])},n.removeHooks=function(e){fe[e]&&(fe[e]=[])},n.removeAllHooks=function(){fe={}},n}return re()}()},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},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},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},88911:(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})},83029:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:()=>r})},61086:(e,t,n)=>{"use strict";function r(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 o(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function c(e){r(i,o,a,c,s,"next",e)}function s(e){r(i,o,a,c,s,"throw",e)}c(void 0)}))}}n.d(t,{Z:()=>o})},11259:(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})},44822:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{Z:()=>o})},46927:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},3640:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},19241:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:()=>r})},32208:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}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}}),t&&r(e,t)}n.d(t,{Z:()=>o})},72753:(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})},56265:(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})},8486:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(46927);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},56315:(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})},99357:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(73891);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)}},68957:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(83029);var o=n(61917),a=n(56265);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=!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)||(0,o.Z)(e,t)||(0,a.Z)()}},91411:(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})},45915:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(88911);var o=n(72753),a=n(61917);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.")}()}},73891:(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})},61917:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(88911);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}}}},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=>288===e?"chunk-ckeditor.d18e28a1b9ec3378a234.js":"chunk-"+({85:"code-editor",614:"vendor-icons",802:"html-editor",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"f6100b45012f6b8c82ef",414:"92d4d9c8e30bb8ce3835",614:"d7a807775b87b4da1b98",759:"5dc8bcb2d35d9727cb21",802:"d9a55253fa7eb3857e2a",817:"32a024d3c7e2fc5be22e",877:"d0e1a624b281ea60375f",909:"7cc6eb29ce4023a06dd0"}[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-legacy-bundle:",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.j=381,i.p="/",(()=>{var e={381: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_legacy_bundle=self.webpackChunktocco_legacy_bundle||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c);var e,t,n=i(55954),r=i(59713),o=i.n(r),a=i(45697),s=i.n(a),u=i(50600),l=i(22731),d=i(45430),p=i(47490),f=i(91411),h=i(76538),m=i(58804),g=i(24875),v=i(30759),y=i(7281),b=g.FS.color("secondaryLight"),w=g.FS.color("paper"),k=g.FS.color("secondary"),x=(0,m.vJ)(e||(e=(0,f.Z)(["\n .react-datepicker-popper {\n && {\n z-index: 5;\n margin: 0;\n }\n }\n\n .react-datepicker {\n && {\n * {\n box-sizing: content-box; // prevent box-sizing problems in widgets\n }\n border-radius: 0;\n border: 1px solid ",";\n ","\n\n .react-datepicker__header {\n ","\n border-radius: 0;\n background-color: ",";\n padding-bottom: 0;\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__header__dropdown {\n font-size: ",";\n\n /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n font-size: ",";\n }\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 /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n padding: ",";\n }\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\n .react-datepicker__input-time-container {\n display: flex;\n justify-content: center;\n margin: 5px 0;\n\n .react-datepicker-time__input {\n margin: 0;\n\n input {\n text-align: center;\n }\n }\n }\n\n .react-datepicker__header__dropdown.react-datepicker__header__dropdown--scroll {\n width: 190px;\n margin: 8px auto 0;\n display: grid;\n grid-template-columns: 100px 85px;\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: 6px;\n right: -10px;\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-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 }\n"])),b,(0,v.Z)(),(0,v.Z)(),b,y.Z.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",w,y.Z.font(2.85),y.Z.font(1.8),(0,v.Z)({fontWeight:g.FS.fontWeight("bold")}),w,y.Z.font(-2),y.Z.space(-.6),y.Z.space(-1.2),k,k,k,b,b,b,k,(0,v.Z)(),w,y.Z.space(-.5),(function(e){var t=e.theme;return(0,h._j)(.1,t.colors.paper)}),w,y.Z.font(0),b,b,w,g.FS.color("text"),g.FS.color("text"),w,b,(function(e){var t=e.theme;return(0,h._j)(.1,t.colors.paper)}),(function(e){var t=e.theme;return(0,h.$n)(.7,t.colors.text)})),O=i(85893);const _=function(){return(0,O.jsx)(O.Fragment,{children:t||(t=(0,O.jsx)(x,{}))})};var S,A,E,C,P,j,D,T,M,Z,I,N,R=i(74806),B=i(50558),L="merge/INITIALIZE",F="merge/SET_SOURCE_DATA",H="merge/SET_SELECTED_SINGLE",W="merge/SET_SELECTED_MULTIPLE",U="merge/SET_SELECTED_MULTIPLE_ALL",z="merge/SET_TARGET_ENTITY",V="merge/EXECUTE_MERGE",Y="merge/SET_MERGE_RESPONSE",q="merge/SET_MERGE_ERROR",G="merge/CLOSE",K=function(e){return{type:F,payload:{sourceData:e}}},X=function(e){return{type:z,payload:{entityKey:e}}},$=function(e,t){return{type:q,payload:{errorMsg:e,validationErrors:t}}},Q=i(1024),J=i.n(Q),ee=i(319),te=i.n(ee),ne=i(63038),re=i.n(ne),oe=i(7739),ae=i.n(oe),ie=i(44012),ce=i(88162),se=i(34206),ue=function(e){var t=e.model,n=e.keys,r=e.totalKeys,o=e.navigationStrategy;return 0===r?(0,O.jsx)(se.ZP.Span,{children:r}):(0,O.jsxs)(o.ListLink,{entityName:t,entityKeys:n.slice(0,100),children:["(",r,")"]})},le=i(28655),de=i.n(le),pe=i(88601),fe=i(65035),he=m.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(S||(S=de()(["\n border-bottom: 3px solid ",";\n"])),pe.Z.color("backgroundBody")),me=(0,m.ZP)(fe.Z).withConfig({displayName:"StyledButton"})(A||(A=de()(["\n align-self: flex-start;\n margin-top: ",";\n margin-bottom: ",";\n margin-left: ",";\n"])),y.Z.space(-.7),y.Z.space(-.7),y.Z.space(0)),ge=m.ZP.div.withConfig({displayName:"StyledSummarySuccessWrapper"})(E||(E=de()(["\n display: grid;\n align-items: center;\n grid-template-columns: "," 1fr;\n grid-column-gap: ",";\n margin-bottom: ",";\n"])),y.Z.font(10),y.Z.space(-.5),y.Z.space(-.7)),ve=m.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(C||(C=de()(["\n margin-bottom: ",";\n\n && {\n p {\n margin-bottom: 0;\n }\n }\n"])),y.Z.space(-.7)),ye=m.ZP.div.withConfig({displayName:"StyledResultsWrapper"})(P||(P=de()(["\n padding: "," 0 0 ",";\n"])),y.Z.space(-1),y.Z.space(0)),be=m.ZP.span.withConfig({displayName:"StyledIconWrapper"})(j||(j=de()(["\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n"])),pe.Z.color("signal.success.text"),y.Z.font(10));const we=function(e){var t=e.mergeResponse,n=e.navigationStrategy,r=e.close,o=function(e){return Object.entries(ae()(e,(function(e){return e.entityLabel}))).map((function(t){var r=re()(t,2),o=r[0],a=r[1],i=e.find((function(e){return e.entityLabel===o})).entity,c=a.map((function(e){return e.pk}));return(0,O.jsxs)("span",{children:[o," ",(0,O.jsx)(ue,{model:i,keys:c,totalKeys:c.length,navigationStrategy:n})]},i)})).reduce((function(e,t){return null===e?[t]:[].concat(te()(e),[", ",t])}),null)},a=o(t.notCopiedRelations),i=o(t.notDeletedEntities);return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(he,{children:(0,O.jsx)(me,{onClick:r,look:"raised",ink:"primary",children:D||(D=(0,O.jsx)(ie.Z,{id:"client.merge.close"}))})}),(0,O.jsxs)(ye,{children:[T||(T=(0,O.jsxs)(ge,{children:[(0,O.jsx)(be,{children:(0,O.jsx)(ce.Z,{icon:"check"})}),(0,O.jsx)(se.ZP.P,{children:(0,O.jsx)(ie.Z,{id:"client.merge.summary.success"})})]})),(t.notCopiedRelations.length>0||t.notDeletedEntities.length>0)&&(M||(M=(0,O.jsx)(se.ZP.P,{children:(0,O.jsx)(ie.Z,{id:"client.merge.summary.successHint"})}))),t.notCopiedRelations.length>0&&(0,O.jsxs)(ve,{children:[Z||(Z=(0,O.jsxs)(se.ZP.P,{children:[(0,O.jsx)(ie.Z,{id:"client.merge.summary.notCopiedRelations"}),":"]})),(0,O.jsx)(se.ZP.B,{children:a})]}),t.notDeletedEntities.length>0&&(0,O.jsxs)(ve,{children:[I||(I=(0,O.jsxs)(se.ZP.P,{children:[(0,O.jsx)(ie.Z,{id:"client.merge.summary.notDeletedEntities"}),":"]})),(0,O.jsx)(se.ZP.B,{children:i})]}),t.showPermissionMessage&&(N||(N=(0,O.jsx)(se.ZP.P,{children:(0,O.jsx)(ie.Z,{id:"client.merge.summary.permission"})})))]})]})};var ke={close:function(){return{type:G}}};const xe=(0,B.connect)((function(e){return{mergeResponse:e.merge.mergeResponse,navigationStrategy:e.input.navigationStrategy}}),ke)((0,R.ZP)(we));var Oe=i(50258),_e=i(46927),Se=i(45915),Ae=i(68957),Ee=i(46444),Ce=i.n(Ee),Pe=i(70696),je={INLINE:"inline",NONE:"none"},De="checked",Te="indeterminate",Me="unchecked";const Ze=function(e){var t=e.value,n=e.id,r=e.onChange,o=e.label,a=(0,Q.useRef)(null);return(0,Q.useLayoutEffect)((function(){a.current.indeterminate=t===Te,a.current.checked=t===De}),[t]),(0,O.jsx)("input",{ref:a,onChange:function(e){r(t===Te?Me:e.target.checked?De:Me)},id:n,type:"checkbox","aria-checked":"checked"===t,"aria-label":o})};const Ie=function(e){var t,n=e.rowData,r=e.isSelected,o=e.selectionChange,a=e.rowIdx;return(0,O.jsx)("div",{onClick:function(e){e.shiftKey&&o(n.__key,!0,!0),e.stopPropagation()},"data-cy":"list-selection-checkbox",children:(0,O.jsx)(Ze,{value:(t=n,r(t.__key)?"checked":"unchecked"),onChange:function(e){return function(t){return o(e.__key,"checked"===t)}}(n),label:"".concat(n.__model," ").concat(a+1),id:"list-selection-checkbox "+n.__key})})};const Ne=function(e){var t=e.data,n=e.isSelected,r=e.selectionChange,o=t.map((function(e){return e.__key})),a=function(e,t){return e?"checked":t?"indeterminate":"unchecked"}(o.every((function(e){return n(e)})),o.some((function(e){return n(e)})));return 0===t.length?null:(0,O.jsx)(Ze,{value:a,onChange:function(e){r(o,"checked"===e)}})};var Re={SINGLE:"single",MULTI:"multi",NONE:"none"};Ce().oneOf(Object.keys(Re).map((function(e){return Re[e]})));const Be=function(e){var t=e.rowData,n=e.isSelected,r=e.selectionChange;return(0,O.jsx)("div",{onClick:function(e){return e.stopPropagation()},children:(0,O.jsx)("input",{type:"radio",checked:n(t.__key),onChange:function(e){r(t.__key,e.target.value)}})})};function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach((function(t){(0,_e.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var He=function(e,t){return{id:"single-selection",width:30,resizable:!1,fixedPosition:!0,dynamic:!0,sorting:{sortable:!1},HeaderRenderer:function(){return null},CellRenderer:function(n){return(0,O.jsx)(Be,Fe(Fe({},n),{},{isSelected:e,selectionChange:t}))}}},We=function(e,t){return{id:"multi-selection",dynamic:!0,resizable:!1,fixedPosition:!0,width:30,sorting:{sortable:!1},HeaderRenderer:function(n){return(0,O.jsx)(Ne,Fe(Fe({},n),{},{isSelected:e,selectionChange:t}))},CellRenderer:function(n){return(0,O.jsx)(Ie,Fe(Fe({},n),{},{isSelected:e,selectionChange:t}))}}};const Ue=function(e,t,n){var r=(0,Q.useState)(null),o=(0,Ae.Z)(r,2),a=o[0],i=o[1],c=(0,Q.useCallback)((function(t){return(e||[]).includes(t)}),[e]),s=(0,Q.useCallback)((function(e,r,o){if(Array.isArray(e))n(e,r),i(null);else if(o){document.getSelection&&document.getSelection().removeAllRanges();var s=a?t.findIndex((function(e){return e===a})):0,u=t.findIndex((function(t){return t===e}));n(t.slice(Math.min(s,u),Math.max(s,u)+1),r)}else n([e],r||!c(e)),i(e)}),[t,n,c,a]);return{isSelected:c,selectionChange:s}};var ze,Ve,Ye,qe,Ge,Ke,Xe,$e,Qe,Je,et,tt,nt,rt,ot,at,it,ct,st,ut,lt=i(27361),dt=i.n(lt),pt=i(58664),ft=i(28926),ht=i(40493),mt=i(11347),gt=function(e){var t=e.theme;return(0,pt.HO)(dt()(t,"colors.paper"),3)},vt=y.Z.space(-1.5),yt=m.ZP.div.withConfig({displayName:"StyledTableFooter"})(ze||(ze=(0,f.Z)(["\n grid-row-start: pagination-start;\n display: flex;\n align-items: flex-start;\n padding-top: ",";\n padding-bottom: ",";\n border-top: 1px solid ",";\n\n "," {\n margin-right: ",";\n }\n"])),y.Z.space(-.5),y.Z.space(-1),gt,ft.Z,y.Z.space(-1)),bt=m.ZP.td.withConfig({displayName:"StyledTableCell"})(Ve||(Ve=(0,f.Z)(["\n && {\n padding: ",";\n background-color: ",";\n border-bottom: 1px solid ",";\n align-content: center;\n box-sizing: content-box;\n text-align: ",";\n\n "," {\n display: inline-block;\n margin-right: ",";\n }\n }\n"])),vt,g.FS.color("paper"),gt,(function(e){var t=e.column;return null!=t&&t.rightAligned?"right":"left"}),ht.q,y.Z.space(-2)),wt=m.ZP.div.withConfig({displayName:"StyledDnD"})(Ye||(Ye=(0,f.Z)(["\n padding: ",";\n width: 100%;\n display: flex;\n align-items: center;\n opacity: ",";\n"])),vt,(function(e){return e.isDragged?.2:1})),kt=m.ZP.span.withConfig({displayName:"StyledResizeHandle"})(qe||(qe=(0,f.Z)(["\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n background: ",";\n opacity: 0;\n width: 3px;\n cursor: col-resize;\n"])),(function(e){var t=e.theme;return(0,pt.HO)(dt()(t,"colors.paper"),3)})),xt=m.ZP.th.withConfig({displayName:"StyledTableHeaderCell"})(Ge||(Ge=(0,f.Z)(["\n && {\n position: sticky;\n top: 0;\n background-color: ",";\n text-align: ",";\n border-bottom: 2px solid ",";\n ",";\n user-select: none;\n cursor: ",";\n white-space: nowrap;\n display: flex;\n border-right: ",";\n padding: 1px; /* default th padding */\n ",";\n ","\n ","\n ","\n }\n"])),g.FS.color("paper"),(function(e){return e.rightAligned?"right":"left"}),gt,(0,v.Z)({fontWeight:g.FS.fontWeight("bold")}),(function(e){return e.isSortable?"pointer":"auto"}),(function(e){var t=e.isDraggedOver,n=e.theme;return t?"3px solid ".concat(n.colors.text):"none"}),(function(e){return"header-cell-navigation-column"===e.id&&"z-index: 1"}),(function(e){var t=e.isResizingThisCell,n=e.theme;return t&&"\n background-color: ".concat((0,pt.xn)(n.colors.paper)[1],";\n\n > ").concat(kt," {\n opacity: 1;\n }\n ")}),(function(e){var t=e.isResizingAnyCell,n=e.theme;return!t&&"\n &:hover {\n background-color: ".concat((0,pt.xn)(n.colors.paper)[1],";\n\n > ").concat(kt," {\n opacity: 1;\n }\n }\n ")}),(function(e){var t=e.isResizingThisCell,n=e.isSortable,r=e.fixedPosition,o=e.theme;return n?!t&&!n&&!r&&"\n &:hover {\n background-color: transparent;\n }\n ":"\n &:hover {\n background-color: ".concat(o.colors.paper,";\n }\n ")})),Ot=(0,m.iv)(Ke||(Ke=(0,f.Z)(["\n display: contents;\n ","\n\n &.selected {\n > "," {\n background-color: ",";\n }\n }\n\n &.selectableRow:not(.selected):hover {\n > "," {\n background-color: ",";\n }\n }\n"])),(function(e){return e.clickable&&"cursor: pointer;"}),bt,(function(e){var t=e.theme;return(0,pt.xn)(t.colors.paper)[2]}),bt,(function(e){var t=e.theme;return(0,pt.xn)(t.colors.paper)[1]})),_t=m.ZP.span.withConfig({displayName:"StyledSortingSpan"})(Xe||(Xe=(0,f.Z)(["\n height: 100%;\n margin-right: 2px;\n"]))),St=m.ZP.span.withConfig({displayName:"StyledSortingRank"})($e||($e=(0,f.Z)(["\n position: relative;\n top: -0.5rem;\n font-weight: ",";\n"])),g.FS.fontWeight("regular")),At=m.ZP.td.withConfig({displayName:"StyledFullRowProgress"})(Qe||(Qe=(0,f.Z)(["\n && {\n grid-column: 1 / -1;\n padding-top: "," 0 0 0;\n height: 50px;\n text-align: center;\n border: 0;\n }\n"])),vt),Et=m.ZP.td.withConfig({displayName:"StyledFullRow"})(Je||(Je=(0,f.Z)(["\n && {\n grid-column: 1 / -1;\n padding-top: "," 0 0 0;\n height: 50px;\n text-align: center;\n border: 0;\n ",";\n }\n"])),vt,(0,v.Z)()),Ct=m.ZP.thead.withConfig({displayName:"StyledTableHead"})(et||(et=(0,f.Z)(["\n ","\n"])),Ot),Pt=m.ZP.tr.withConfig({displayName:"StyledTableRow"})(tt||(tt=(0,f.Z)(["\n ","\n\n &:nth-child(even) td {\n background-color: ",";\n }\n"])),Ot,(function(e){var t=e.theme;return(0,h._j)(.05,t.colors.paper)})),jt=m.ZP.tbody.withConfig({displayName:"StyledTableBody"})(nt||(nt=(0,f.Z)(["\n ","\n"])),Ot),Dt=m.ZP.table.withConfig({displayName:"StyledTable"})(rt||(rt=(0,f.Z)(["\n overflow: auto;\n display: grid;\n border-collapse: collapse;\n grid-template-columns: ",";\n grid-auto-rows: min-content;\n min-width: 100%;\n ","\n ","\n"])),(function(e){return e.columns.map((function(e){return e.width?e.width+"px":e.shrinkToContent?"max-content":"minmax(100px, auto)"})).join(" ")}),(function(e){return e.scrollBehaviour===je.INLINE&&(0,m.iv)(ot||(ot=(0,f.Z)(["\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n "])))}),mt.C),Tt=m.ZP.div.withConfig({displayName:"StretchingTableContainer"})(at||(at=(0,f.Z)(["\n grid-row-start: table-start;\n position: relative;\n overflow-x: auto;\n"]))),Mt=m.ZP.div.withConfig({displayName:"StyledTableWrapper"})(it||(it=(0,f.Z)(["\n display: grid;\n background-color: ",";\n grid-template-rows: [table-start] 1fr [pagination-start] auto auto;\n grid-template-columns: 100%;\n height: 100%;\n\n // reset external styles in old client\n input[type='checkbox'],\n input[type='radio'] {\n margin: 3px 3px 3px 4px !important;\n min-width: 12px;\n }\n"])),g.FS.color("paper")),Zt=m.ZP.div.withConfig({displayName:"StyledDraggable"})(ct||(ct=(0,f.Z)(["\n width: 100%;\n height: 100%;\n display: flex;\n"]))),It=m.ZP.span.withConfig({displayName:"StyledHeaderContentWrapper"})(st||(st=(0,f.Z)(["\n display: flex;\n"]))),Nt=m.ZP.div.withConfig({displayName:"StyledHeaderContent"})(ut||(ut=(0,f.Z)(["\n width: 100%;\n"]))),Rt=i(93235),Bt=Ce().oneOfType([Ce().string,Ce().number]),Lt=Ce().shape({__key:Bt}),Ft=(Ce().arrayOf(Lt),Ce().oneOf(Object.keys(je).map((function(e){return je[e]}))),Ce().shape({id:Ce().string.isRequired,label:Ce().string,sorting:Ce().shape({sortable:Ce().bool,sortRank:Ce().number,order:Ce().oneOf(["asc","desc"])}),resizable:Ce().bool,width:Ce().number,HeaderRenderer:Ce().elementType,CellRenderer:Ce().elementType,rightAligned:Ce().bool})),Ht=J().memo((function(e){var t=e.column,n=e.rowData,r=e.rowIdx;return(0,O.jsx)(bt,{"data-cy":"list-cell",children:t.CellRenderer?(0,O.jsx)(t.CellRenderer,{rowData:n,column:t,rowIdx:r}):(0,O.jsx)(se.ZP.Span,{children:n[t.id]})})}));Ht.propTypes={rowData:Lt.isRequired,column:Ft.isRequired,rowIdx:Ce().number};var Wt=function(e,t){return!e.column.dynamic||0===Object.keys(Pe.Z.difference(e,t)).length};const Ut=J().memo(Ht,Wt);var zt,Vt,Yt,qt,Gt=function(){return zt||(zt=(0,O.jsx)(Pt,{children:(0,O.jsxs)(At,{children:[(0,O.jsx)(Rt.Z,{size:"20"}),(0,O.jsx)(se.ZP.P,{children:(0,O.jsx)(ie.Z,{id:"client.component.table.dataLoading"})})]})}))},Kt=function(){return Vt||(Vt=(0,O.jsx)(Pt,{children:(0,O.jsx)(Et,{children:(0,O.jsx)(se.ZP.Span,{children:(0,O.jsx)(ie.Z,{id:"client.component.table.noData"})})})}))};const Xt=function(e){var t=e.data,n=e.columns,r=e.isSelected,o=e.selectionChange,a=e.dataLoadingInProgress,i=e.onRowClick,c=e.clickable;return a?Yt||(Yt=(0,O.jsx)(jt,{children:(0,O.jsx)(Gt,{})})):(0,O.jsx)(jt,{children:t.length>0?t.map((function(e,t){return(0,O.jsx)(Pt,{className:"selectableRow ".concat(r(e.__key)&&"selected"),onClick:(a=e,function(e){e.shiftKey?o(a.__key,!0,!0):e.metaKey||e.ctrlKey?o(a.__key):c&&i&&i(a.__key)}),clickable:c,"data-cy":"list-row",children:n.map((function(n){return(0,O.jsx)(Ut,{selected:r(e.__key),rowData:e,column:n,rowIdx:t},"table-static-cell-".concat(e.__key,"-").concat(n.id))}))},"list-row-".concat(e.__key));var a})):qt||(qt=(0,O.jsx)(Kt,{}))})};var $t,Qt=i(58129);const Jt=m.ZP.div.withConfig({displayName:"StyledButtonGroup"})($t||($t=(0,f.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"])),Qt.Z);var en=J().forwardRef((function(e,t){return(0,O.jsx)(Jt,{ref:t,children:e.children})}));en.propTypes={children:Ce().node};const tn=en;var nn,rn,on=m.ZP.div.withConfig({displayName:"StyledPagination"})(nn||(nn=(0,f.Z)(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-wrap: wrap;\n gap: ",";\n margin-left: 5px;\n\n span {\n padding-right: 6px;\n }\n"])),y.Z.space(-1)),an=(0,m.ZP)(fe.Z).withConfig({displayName:"StyledPaginationButton"})(rn||(rn=(0,f.Z)(["\n padding: "," ",";\n"])),y.Z.space(-2),y.Z.space(-.8));const cn=(0,R.ZP)((function(e){var t=e.totalCount,n=e.recordsPerPage,r=e.currentPage,o=e.onPageChange,a=e.intl,i=Math.ceil(t/n),c=Math.min((r-1)*n+1,t),s=Math.min(r*n,t),u=function(e){return a.formatMessage({id:e})};return(0,O.jsxs)(on,{children:[(0,O.jsxs)(tn,{children:[(0,O.jsx)(an,{disabled:1===r,label:u("client.component.pagination.firstPageTitle"),iconOnly:!0,icon:"chevron-double-left",onClick:function(){return o(1)}}),(0,O.jsx)(an,{disabled:1===r,label:u("client.component.pagination.prePageTitle"),iconOnly:!0,icon:"chevron-left",onClick:function(){return o(r-1)}}),(0,O.jsx)(an,{disabled:r>=i,label:u("client.component.pagination.nextPageTitle"),iconOnly:!0,icon:"chevron-right",onClick:function(){return o(r+1)}}),(0,O.jsx)(an,{disabled:r>=i,label:u("client.component.pagination.lastPageTitle"),iconOnly:!0,icon:"chevron-double-right",onClick:function(){return o(i)}})]}),t>0&&(0,O.jsx)(se.ZP.Span,{children:(0,O.jsx)(ie.Z,{id:"client.component.pagination.text",values:{start:c,to:s,total:t}})})]})}));var sn=i(80470);const un=(0,R.ZP)((function(e){var t,n=e.onPageChange,r=e.onPageRefresh,o=e.paginationInfo,a=e.intl,i=Boolean(o),c="function"==typeof r;return i||c?(0,O.jsxs)(yt,{children:[i&&(0,O.jsx)(cn,{onPageChange:n,currentPage:o.currentPage,totalCount:o.totalCount,recordsPerPage:o.recordsPerPage}),c&&(0,O.jsx)(sn.Z,{type:"button",title:(t="client.component.table.refreshTitle",a.formatMessage({id:t})),icon:"sync",onClick:r})]}):null}));var ln=i(18446),dn=i.n(ln);function pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pn(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hn={currentlyDragging:null,currentlyDragOver:null,dropPosition:null,offset:null},mn={Top:"Top",Bottom:"Bottom"};const gn=function(e){var t=(0,Q.useState)(hn),n=re()(t,2),r=n[0],o=n[1],a=r.currentlyDragging,i=r.currentlyDragOver,c=r.dropPosition,s=r.offset;return{dndEvents:(0,Q.useCallback)((function(t){return{onDragStart:function(e){o((function(e){return fn(fn({},e),{},{currentlyDragging:t})}));var n=e.target;n&&n.addEventListener("dragend",(function e(t){o(hn),t.stopPropagation(),n&&n.removeEventListener("dragend",e)}),!1),e.stopPropagation()},onDragEnter:function(e){if(a&&!dn()(i,t)){var n=e.target?e.target.getBoundingClientRect():{},r=n.y+n.height/2;o((function(e){return fn(fn({},e),{},{currentlyDragOver:t,offset:r})}))}e.stopPropagation()},onDragOver:function(e){if(a){var t=e.clientY-s>0?mn.Bottom:mn.Top;return o((function(e){return fn(fn({},e),{},{dropPosition:t})})),e.preventDefault(),e.stopPropagation(),!0}},onDrop:function(t){a&&i&&(e(a,i,c),o(hn),t.stopPropagation())}}}),[i,a,c,s,e]),dndState:(0,Q.useMemo)((function(){return{currentlyDragOver:i,currentlyDragging:a,dropPosition:c,offset:s}}),[i,a,c,s])}};const vn=function(e,t,n){var r=t-e;return Math.max(50,n+r)},yn=function(e,t,n){var r=(0,Q.useState)(null),o=re()(r,2),a=o[0],i=o[1],c=(0,Q.useRef)(null),s=(0,Q.useRef)(),u=(0,Q.useState)(!1),l=re()(u,2),d=l[0],p=l[1],f=(0,Q.useState)(!1),h=re()(f,2),m=h[0],g=h[1],v=(0,Q.useMemo)((function(){return{resizingElement:a,isResizing:d}}),[a,d]),y=(0,Q.useCallback)((function(){a&&(n(a),g(!1),setTimeout((function(){p(!1),i(null),c.current=void 0}),0))}),[a,n]),b={onMouseMove:(0,Q.useCallback)((function(n){a&&m&&(s.current=requestAnimationFrame((function(){if(c.current){var r=e(a),o=vn(c.current.y,n.clientY,r.clientHeight),i=vn(c.current.x,n.clientX,r.clientWidth);t(a,{height:o,width:i})}c.current={y:n.clientY,x:n.clientX}})))}),[a,t,m,e]),onMouseUp:y};return(0,Q.useEffect)((function(){return m||cancelAnimationFrame(s.current),function(){cancelAnimationFrame(s.current)}}),[m]),{resizeState:v,startResize:function(e){return function(t){i(e),p(!0),g(!0),c.current=void 0,t.stopPropagation(),t.preventDefault()}},resizingEvents:b}};const bn=function(e){var t=e.column,n=e.startResize;return(0,O.jsx)(kt,{"data-cy":"header-cell-".concat(t.id,"-resizing-controller"),onMouseDown:n(t)})};const wn=(0,R.ZP)((function(e){var t,n,r,o=e.column,a=e.intl,i=o.sorting&&o.sorting.sortRank&&o.sorting.order,c=(null===(t=o.sorting)||void 0===t?void 0:t.sortRank)>1&&(0,O.jsx)(St,{children:o.sorting.sortRank}),s="sort-".concat("asc"===(null===(n=o.sorting)||void 0===n?void 0:n.order)?"up":"down");return i?(0,O.jsxs)(_t,{title:(r="client.component.table.sortingTitle",a.formatMessage({id:r})),children:[(0,O.jsx)(ce.Z,{icon:s}),c]}):null}));function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach((function(t){(0,_e.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var On=function(e){var t=e.column,n=e.data;return t.HeaderRenderer?(0,O.jsx)(t.HeaderRenderer,{column:t,data:n}):(0,O.jsxs)(It,{children:[(0,O.jsx)(Nt,{title:t.label,dangerouslySetInnerHTML:{__html:t.label}}),(0,O.jsx)(wn,{column:t})]})};const _n=function(e){var t=e.columns,n=e.data,r=e.onColumnPositionChange,o=e.onSortingChange,a=e.tableEl,i=e.onColumnWidthChanging,c=e.onColumnWidthChanged,s=gn(r),u=s.dndEvents,l=s.dndState,d=(0,Q.useCallback)((function(e){return a.current.querySelector("th[id='header-cell-".concat(e.id,"']"))}),[]),p=(0,Q.useCallback)((function(e,t){var n=t.width;return i(e.id,n)}),[i]),f=(0,Q.useCallback)((function(e){return c(e.id)}),[c]),h=yn(d,p,f),m=h.startResize,g=h.resizingEvents,v=h.resizeState,y=v.isResizing,b=v.resizingElement,w=function(e){return function(t){!y&&e.sorting&&e.sorting.sortable&&o(e.id,t.shiftKey)}},k=t.map((function(e){var t="header-cell-".concat(e.id),r="header-cell-drop-".concat(e.id),o=e.sorting&&e.sorting.sortable,a=y&&e.id===(null==b?void 0:b.id),i=l.currentlyDragOver===e.id&&l.currentlyDragging!==e.id,c=l.currentlyDragging===e.id;return(0,O.jsxs)(xt,{"data-cy":t,id:t,onClick:w(e),isResizingAnyCell:y,isResizingThisCell:a,isSortable:o,isDraggedOver:i,rightAligned:e.rightAligned,children:[(0,O.jsx)(Zt,xn(xn({id:r},!e.fixedPosition&&xn({draggable:!0},u(e.id))),{},{children:(0,O.jsx)(wt,{isDragged:c,children:(0,O.jsx)(On,{column:e,data:n})})}),r),e.resizable&&(0,O.jsx)(bn,{column:e,startResize:m})]},t)}));return(0,O.jsx)(Ct,xn(xn({},g),{},{children:(0,O.jsx)(Pt,{children:k})}))};function Sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function An(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(n),!0).forEach((function(t){(0,_e.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var En=function(e){var t=e.columns,n=e.selection,r=e.data,o=e.onSelectionChange,a=e.selectionStyle,i=e.paginationInfo,c=e.onColumnPositionChange,s=e.onSortingChange,u=e.dataLoadingInProgress,l=e.onRowClick,d=e.clickable,p=e.onPageChange,f=e.onPageRefresh,h=e.scrollBehaviour,m=void 0===h?je.INLINE:h,g=e.onColumnWidthChange,v=(0,Q.useState)(t),y=(0,Ae.Z)(v,2),b=y[0],w=y[1],k=(0,Q.useRef)(null),x=(0,Q.useCallback)((function(e){var t,n=null===(t=b.find((function(t){return t.id===e})))||void 0===t?void 0:t.width;g&&g(e,n)}),[b,g]),_=(0,Q.useCallback)((function(e,t){w((0,Se.Z)(b.map((function(n){return n.id===e?An(An({},n),{},{width:t}):n}))))}),[b]),S=(0,Q.useMemo)((function(){return r?r.map((function(e){return e.__key})):[]}),[r]),A=Ue(n,S,o),E=A.isSelected,C=A.selectionChange;return(0,Q.useEffect)((function(){var e=function(e,t,n,r){return e&&e!==Re.NONE?e===Re.MULTI?We(n,r):He(n,r):null}(a,0,E,C);w([].concat((0,Se.Z)(e?[e]:[]),(0,Se.Z)(t)))}),[t,n,E,C,a]),(0,O.jsxs)(Mt,{children:[(0,O.jsx)(Tt,{children:(0,O.jsxs)(Dt,{ref:k,columns:b,scrollBehaviour:m,children:[(0,O.jsx)(_n,{columns:b,data:r,onColumnWidthChanging:_,onColumnWidthChanged:x,onColumnPositionChange:c,tableEl:k,onSortingChange:s}),(0,O.jsx)(Xt,{columns:b,data:r,isSelected:E,selectionChange:C,dataLoadingInProgress:u,onRowClick:l,clickable:d})]})}),(0,O.jsx)(un,{onPageChange:p,onPageRefresh:f,paginationInfo:i})]})},Cn=function(e,t){return 0===Object.keys(Pe.Z.difference(e,t)).length};const Pn=J().memo(En,Cn);function jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jn(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tn=function(e){return Object.keys(e.entities[0].paths)},Mn=function(e){return te()(new Set(e.relations.map((function(e){return e.relationName}))))},Zn=function(e){var t=Object.entries(e.entities[0].paths).filter((function(e){var t=re()(e,2);t[0];return"counter"===t[1].type})).map((function(e){var t=re()(e,2),n=t[0];t[1];return n})),n=function(e){return[].concat(te()(Tn(e)),te()(Mn(e)))}(e).filter((function(e){return!t.includes(e)})),r=function(t){return t.map((function(t){return{name:t,label:e.labels[t]}})).sort((function(e,t){return e.label<t.label?-1:1})).map((function(e){return e.name}))};return[].concat(te()(r(t)),te()(r(n)))},In=function(e,t,n){var r="PK: ".concat(n),o=e.displays.find((function(e){return e.model===t}));if(void 0===o)return r;var a=o.values.find((function(e){return e.key===n}));return a?a.display:r};const Nn={fixLabel:function(){return!0}},Rn={getOptions:function(e){var t=e.formData;return{trueLabel:t.intl.formatMessage({id:"client.common.yes"}),falseLabel:t.intl.formatMessage({id:"client.common.no"})}},hasValue:function(e){var t=e.value;return!0===t||!1===t}};var Bn=function(e,t){return{entityModel:e.model,key:e.key,field:t}},Ln=function(e,t){if(e.implicitModelField&&t.formValues){var n=e.implicitModelField,r=n.indexOf(".");return r?function(e,t,n){var r=e.substring(0,t),o=e.substring(t+1),a=n.formValues[r];if(a){if(!Array.isArray(a))return Bn(a,o);if(1===a.length)return Bn(a[0],o)}return null}(n,r,t):t.formValues[n]}return e.implicitModel},Fn=function(e){if(e.implicitModelField){var t=e.implicitModelField,n=t.indexOf(".");return n?[t.substring(0,n)]:[t]}return[]};const Hn={fixLabel:function(){return!0},getOptions:function(e){var t=e.formField,n=e.formData;return{mode:t.mode,implicitModel:Ln(t,n)}},dataContainerProps:function(e){var t=e.formField;return{formValues:{formName:e.formName,fields:Fn(t)}}}};var Wn=function(e){if(!e||isNaN(e))return null;var t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return[t,(n>9?"":"0")+n,(r>9?"":"0")+r].join("-")};const Un={getOptions:function(){return{datePickerOptions:{dateToValue:Wn}}}},zn={getOptions:function(e){var t=e.entityField;if("long"===(null==t?void 0:t.type))return{datePickerOptions:{valueToDate:function(e){var t=e?new Date(e):null;return isNaN(t)?null:t},dateToValue:function(e){return e?e.getTime():null}}}}},Vn={getOptions:function(e){var t=e.formField;return{postPointDigits:dt()(t,"validation.decimalDigits.postPointDigits",null),prePointDigits:dt()(t,"validation.decimalDigits.prePointDigits",null),minValue:dt()(t,"validation.numberRange.fromIncluding",null),maxValue:dt()(t,"validation.numberRange.toIncluding",null),allowNegative:!0}}};function Yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yn(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Gn={getOptions:function(e){var t=e.formField,n=e.formName,r=e.formData;return qn(qn({upload:function(e){r.uploadDocument(n,t.id,e)}},r.chooseDocument?{choose:function(){return r.chooseDocument(r.setDocument,n,t.id)}}:{}),{},{uploadText:r.intl.formatMessage({id:"client.component.upload.upload"}),uploadingText:r.intl.formatMessage({id:"client.component.upload.uploading"}),downloadText:r.intl.formatMessage({id:"client.component.upload.downloadTitle"}),deleteText:r.intl.formatMessage({id:"client.component.upload.deleteTitle"})})},fixLabel:function(){return!0}};var Kn=function(e){return!e.validation||!e.validation.numberRange||"number"!=typeof e.validation.numberRange.fromIncluding||e.validation.numberRange.fromIncluding<0};const Xn={getOptions:function(e){var t=e.formField,n=e.formData;return{hoursLabel:n.intl.formatMessage({id:"client.component.duration.hoursLabel"}),minutesLabel:n.intl.formatMessage({id:"client.component.duration.minutesLabel"}),secondsLabel:n.intl.formatMessage({id:"client.component.duration.secondsLabel"}),allowNegative:Kn(t)}}};var $n=function(e){if(!["email_editor","correspondence_editor"].includes(e))return{toolbar:{removeItems:["fontFamily","fontSize","fontColor"]}}};const Qn={fixLabel:function(){return!0},getOptions:function(e){var t=e.formField;return{ckEditorConfig:$n(t.htmlconfig)}}},Jn={getOptions:function(e){var t=e.formField;return{minValue:dt()(t,"validation.numberRange.fromIncluding",null),maxValue:dt()(t,"validation.numberRange.toIncluding",null)}}};var er=i(99460);function tr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tr(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const rr={getOptions:function(e){var t=e.formField;return{prePointDigits:dt()(t,"validation.decimalDigits.prePointDigits",null),postPointDigits:dt()(t,"validation.decimalDigits.postPointDigits",null),minValue:dt()(t,"validation.numberRange.fromIncluding",null),maxValue:dt()(t,"validation.numberRange.toIncluding",null),allowNegative:!0}}};var or=50,ar=10,ir=function(e){return e.filter(Boolean).join(" and ")},cr=function(e){return e&&Array.isArray(e)&&0!==e.length?"not KEYS(".concat(e.map((function(e){return e.key})).join(", "),")"):void 0};const sr={dataContainerProps:function(e){var t=e.formField;return{relationEntities:[t.id],tooltips:[t.targetEntity],navigationStrategy:!0}},getOptions:function(e){var t=e.formField,n=e.formName,r=e.formData;return{options:dt()(r,["relationEntities",t.id,"data"],[]),moreOptionsAvailable:dt()(r,["relationEntities",t.id,"moreEntitiesAvailable"],!1),isLoading:dt()(r,["relationEntities",t.id,"isLoading"],!1),fetchOptions:function(e){r.loadRelationEntities(t.id,t.targetEntity,{forceReload:!0,limit:ar,formBase:t.formBase,formName:t.formName,where:ir([t.condition,cr(e)]),loadRemoteFieldConfiguration:!0,constriction:t.constriction})},searchOptions:function(e,n){r.loadRelationEntities(t.id,t.targetEntity,{searchTerm:e,limit:or,forceReload:!0,formBase:t.formBase,formName:t.formName,where:ir([t.condition,cr(n)]),loadRemoteFieldConfiguration:!0,constriction:t.constriction})},openAdvancedSearch:function(e,o){return r.openAdvancedSearch(n,t,e,o)},tooltips:dt()(r.tooltips,t.targetEntity,null),loadTooltip:function(e){return r.loadTooltip(t.targetEntity,e)},noResultsText:r.intl.formatMessage({id:"client.component.remoteselect.noResultsText"}),moreOptionsAvailableText:r.intl.formatMessage({id:"client.component.remoteselect.moreOptionsAvailableText"}),DetailLink:r.navigationStrategy&&r.navigationStrategy.DetailLink?function(e){var n=e.entityKey,o=e.children;return(0,O.jsx)(r.navigationStrategy.DetailLink,{entityName:t.targetEntity,entityKey:n,children:o})}:null,createPermission:t.relationName&&dt()(r,["entityModel","paths",t.relationName,"createPermission"],!1),openRemoteCreate:function(e){return r.openRemoteCreate(t,n,e)}}}};var ur=1e4;const lr={dataContainerProps:function(e){var t=e.formField;return{relationEntities:[t.id],tooltips:[t.targetEntity]}},getOptions:function(e){var t=e.formField,n=e.formData;return{options:dt()(n,["relationEntities",t.id,"data"],[]),isLoading:dt()(n,["relationEntities",t.id,"isLoading"],!1),tooltips:dt()(n.tooltips,t.targetEntity,null),loadTooltip:function(e){return n.loadTooltip(t.targetEntity,e)},noResultsText:n.intl.formatMessage({id:"client.component.remoteselect.noResultsText"}),fetchOptions:function(){return n.loadRelationEntities(t.id,t.targetEntity,{forceReload:!1,limit:ur,constriction:t.constriction,where:t.condition})}}}};function dr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dr(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fr={binary:Gn,boolean:Nn,code:Hn,counter:rr,"data-amount":rr,datetime:zn,date:Un,birthdate:Un,"pulldown-date":Un,decimal:Vn,document:Gn,double:Vn,duration:Xn,html:Qn,image:Gn,integer:Jn,location:{hasValue:function(e){var t=e.formValues,n=e.formField.locationMapping;return!(!t[(0,er.vq)(n.city)]&&!t[(0,er.vq)(n.postcode)])},getValue:function(e){var t=e.formField,n=e.formData,r=t.locationMapping;return{postcode:n.formValues[(0,er.vq)(r.postcode)],city:n.formValues[(0,er.vq)(r.city)]}},getEvents:function(e){var t=e.formField,n=e.formName,r=e.formData,o=e.events,a=t.locationMapping||{};return nr(nr({},o),{},{onChange:function(e){for(var o in a)if(a[o]&&void 0!==e[o]){var i=null!==e[o]?e[o]:"";r.changeFieldValue(n,a[o],i)}var c=e.postcode,s=e.city;r.changeFieldValue(n,t.id,nr(nr({},void 0!==c?{postcode:c||""}:{}),void 0!==s?{city:s||""}:{}))},onBlur:function(){r.touchField(n,t.id)}})},dataContainerProps:function(e){var t=e.formField,n=e.formName;return{locations:[t.id],formValues:{formName:n,fields:t.locationMapping?Object.values(t.locationMapping).map((function(e){return(0,er.vq)(e)})):{}}}},getOptions:function(e){var t=e.formField,n=e.formData;return{fetchSuggestions:function(e,r){return n.loadLocationsSuggestions(t.id,e,r,dt()(t,"countries"))},isLoading:dt()(n,["locations",t.id,"isLoading"],!1),suggestions:dt()(n,["locations",t.id,"suggestions"],null),mapButtonTitle:n.intl.formatMessage({id:"client.component.location.mapButtonTitle"}),locationValues:Object.keys(t.locationMapping||{}).reduce((function(e,r){return nr(nr({},e),{},o()({},r,n.formValues[(0,er.vq)(t.locationMapping[r])]))}),{})}},getMandatoryValidation:function(e){var t,n,r=e.formField,o=r.locationMapping,a=null===(t=r.siblings.find((function(e){return e.id===o.city})))||void 0===t?void 0:t.validation,i=null===(n=r.siblings.find((function(e){return e.id===o.postcode})))||void 0===n?void 0:n.validation;return(null==a?void 0:a.mandatory)||(null==i?void 0:i.mandatory)}},long:Jn,moneyamount:{getOptions:function(e){var t=e.formField;return{postPointDigits:dt()(t,"validation.decimalDigits.postPointDigits",2),prePointDigits:dt()(t,"validation.decimalDigits.prePointDigits",null),minValue:dt()(t,"validation.numberRange.fromIncluding",null),maxValue:dt()(t,"validation.numberRange.toIncluding",null),allowNegative:!0,fixedDecimalScale:!0}}},marking:Nn,"multi-remote-field":sr,"multi-select-box":lr,"named-upload":Gn,number:rr,phone:{getOptions:function(e){var t=e.formField;return{customPhoneRegex:dt()(t,"validation.phone.customRegex",null),defaultCountry:dt()(t,"validation.phone.defaultRegion",null)}}},"search-filter":{dataContainerProps:function(e){return{searchFilters:[e.formField.model]}},getOptions:function(e){var t=e.formField,n=e.formData;return{isMulti:t.multiple,options:dt()(n.searchFilters,t.model,null),fetchOptions:function(){return n.loadSearchFilters(t.model,t.group)},noResultsText:n.intl.formatMessage({id:"client.component.searchfilter.noResultsText"})}}},"single-remote-field":sr,"single-select-box":lr,sorting:rr,percent:{getOptions:function(e){var t=e.formField;return{prePointDigits:dt()(t,"validation.decimalDigits.prePointDigits",null),postPointDigits:dt()(t,"validation.decimalDigits.postPointDigits",null),minValue:dt()(t,"validation.numberRange.fromIncluding",null),maxValue:dt()(t,"validation.numberRange.toIncluding",null),allowNegative:!1,suffix:"%"}}}},hr=pr({},fr);const mr={editable:fr,readOnly:pr({},fr),list:hr,search:pr(pr({},fr),{},{boolean:Rn,marking:Rn})};var gr=i(44759),vr=i(57557),yr=i.n(vr),br=i(13439),wr=i(84541),kr=i(81084),xr=i(75502),Or=i(87486),_r=i(95395);function Sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(n),!0).forEach((function(t){(0,_e.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Er="yyyy-MM-dd",Cr=function(e){return(0,wr.Z)(e,Er)?(0,kr.default)(e,Er,new Date):(0,wr.Z)(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||(0,wr.Z)(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?(0,xr.default)(new Date(e)):null};const Pr={number:{icons:{range:"square-plus",single:"square-minus"}},integer:{icons:{range:"square-plus",single:"square-minus"}},datetime:{type:"date",icons:{range:"calendar-plus",single:"calendar-minus"},toRange:function(e){return{from:e?Cr(e).toISOString():null,to:e?(0,Or.default)(Cr(e),1).toISOString():null,isRangeValue:!0}},fromRange:function(e){return e&&e.from?(0,_r.default)(new Date(e.from),Er):e&&e.to?(0,_r.default)(new Date(e.to),Er):null},getToOptions:function(e,t){return Ar(Ar({},e),{},{datePickerOptions:Ar({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return Ar(Ar({},e),{},{datePickerOptions:Ar({maxDate:t},null==e?void 0:e.datePickerOptions)})}},date:{icons:{range:"calendar-plus",single:"calendar-minus"},getToOptions:function(e,t){return Ar(Ar({},e),{},{datePickerOptions:Ar({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return Ar(Ar({},e),{},{datePickerOptions:Ar({maxDate:t},null==e?void 0:e.datePickerOptions)})}}};var jr,Dr,Tr,Mr,Zr,Ir,Nr,Rr=m.ZP.div.withConfig({displayName:"StyledInputWrapper"})(jr||(jr=(0,f.Z)(["\n width: calc(100% - 25px); // subtract extender width\n"]))),Br=m.ZP.div.withConfig({displayName:"StyledInputItemWrapper"})(Dr||(Dr=(0,f.Z)(["\n display: inline-block;\n width: 50%;\n\n * {\n text-align: center;\n }\n"]))),Lr=m.ZP.div.withConfig({displayName:"StyledIconWrapper"})(Tr||(Tr=(0,f.Z)(["\n font-size: ",";\n display: flex;\n align-items: center;\n padding-left: ",";\n padding-right: ",";\n"])),y.Z.font(-2.7),y.Z.space(-.5),y.Z.space(-.9)),Fr=m.ZP.div.withConfig({displayName:"StyledRange"})(Mr||(Mr=(0,f.Z)(["\n display: flex;\n"]))),Hr=m.ZP.div.withConfig({displayName:"StyledInput"})(Zr||(Zr=(0,f.Z)(["\n flex: 1;\n display: flex;\n justify-content: space-between;\n align-items: baseline;\n"]))),Wr=m.ZP.div.withConfig({displayName:"StyledExtender"})(Ir||(Ir=(0,f.Z)(["\n display: flex;\n align-items: center;\n position: relative;\n left: 2px;\n z-index: 1;\n"])));function Ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ur(Object(n),!0).forEach((function(t){(0,_e.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ur(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vr="expanded_initial",Yr="expanded",qr="collapsed";const Gr=function(e){var t,n,r=e.value,o=e.events,a=e.readOnly,i=e.type,c=e.options,s=e.fromText,u=e.toText,l=e.expanded?Vr:qr,d=(0,Q.useState)(l),p=(0,Ae.Z)(d,2),f=p[0],h=p[1],m=Pr[i];(0,Q.useEffect)((function(){var e,t=f===Vr&&r&&!r.isRangeValue,n=f===Yr&&!(null!=r&&r.isRangeValue),a=f===qr&&(null==r?void 0:r.isRangeValue);t?o.onChange({from:r,to:void 0,isRangeValue:!0}):n?o.onChange((e=r,null!=m&&m.toRange?m.toRange(e):{from:e,to:e,isRangeValue:!0})):a&&o.onChange(function(e){return null!=m&&m.fromRange?m.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(r))}),[f,r,o,m]);var g=(null==r?void 0:r.isRangeValue)||!1,v=(0,Q.useRef)(r);v.current=r;var y,b,w=(0,Q.useMemo)((function(){return zr(zr({},o),{},{onChange:o.onChange})}),[o]),k={onChange:function(e){o.onChange(zr(zr({},v.current),{},{to:e}))}},x={onChange:function(e){o.onChange(zr(zr({},v.current),{},{from:e}))}},_=(null==m||null===(t=m.icons)||void 0===t?void 0:t.range)||"chevron-down",S=(null==m||null===(n=m.icons)||void 0===n?void 0:n.single)||"chevron-left",A=(null==m?void 0:m.type)||i;return(0,O.jsxs)(Fr,{children:[(0,O.jsx)(Rr,{children:g?(0,O.jsxs)(Hr,{children:[(0,O.jsx)(Br,{children:(0,O.jsx)(br.Z,zr(zr({},e),{},{options:(y=c,b=r.to,null!=m&&m.getFromOptions?m.getFromOptions(y,b):y),value:(null==r?void 0:r.from)||null,events:x,placeholder:s}))}),Nr||(Nr=(0,O.jsx)(Lr,{children:(0,O.jsx)(ce.Z,{icon:"horizontal-rule"})})),(0,O.jsx)(Br,{children:(0,O.jsx)(br.Z,zr(zr({},e),{},{options:function(e,t){return null!=m&&m.getToOptions?m.getToOptions(e,t):e}(c,r.from),value:(null==r?void 0:r.to)||null,events:k,placeholder:u}))})]}):(0,O.jsx)(br.Z,zr(zr({type:A},yr()(e,["type"])),{},{events:w}))}),(0,O.jsx)(Wr,{children:(0,O.jsx)(sn.Z,{disabled:a,icon:g?S:_,onClick:function(){h(g?qr:Yr)}})})]})};function Kr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kr(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $r=function(e){var t,n=e.componentType,r=e.mappingType,o=e.range,a=e.formField,i=e.entityField,c=e.formName,s=e.value,u=e.info,l=e.events,d=e.formData,p=a.dataType||a.componentType,f=null===(t=mr[r||"editable"])||void 0===t?void 0:t[p],h=function(e,t,n,r,o){return null!=e&&e.getOptions?e.getOptions({formField:t,formName:n,formData:r,entityField:o}):{}}(f,a,c,d,i),m=function(e,t,n,r,o,a){return null!=e&&e.getValue?e.getValue({formField:t,formName:n,formData:r,entityField:o,value:a}):a}(f,a,c,d,i,s),g=function(e,t,n,r,o,a){return null!=e&&e.getEvents?e.getEvents({formField:t,formName:n,formData:r,entityField:o,events:a}):a}(f,a,c,d,i,l),v=o?Gr:br.Z;return(0,O.jsx)(v,Xr(Xr({type:n,events:g,value:m},u),{},{options:h},o&&{fromText:d.intl.formatMessage({id:"client.component.range.from"}),toText:d.intl.formatMessage({id:"client.component.range.to"}),expanded:a.expanded}))};const Qr=function(e,t){return function(n){return(0,O.jsx)($r,Xr({componentType:e,range:t},n))}};var Jr=i(42060);const eo={dataContainerProps:function(){return{tooltips:["Resource"],navigationStrategy:!0}},getOptions:function(e){var t=e.formData;return t?{downloadTitle:t.intl.formatMessage({id:"client.component.upload.downloadTitle"}),tooltips:dt()(t.tooltips,"Resource",null),loadTooltip:function(e){return t.loadTooltip("Resource",e)}}:{}}},to={dataContainerProps:function(e){return{tooltips:[e.formField.targetEntity],navigationStrategy:!0}},getOptions:function(e){var t=e.formField,n=e.formData;return{tooltips:dt()(n.tooltips,t.targetEntity,null),loadTooltip:function(e){return n.loadTooltip(t.targetEntity,e)},navigationStrategy:n.navigationStrategy,linkProps:{entityName:t.targetEntity}}}},no={binary:eo,document:eo,image:eo,"multi-remote-field":to,"single-remote-field":to,description:{getOptions:function(e){var t=e.formField;return{mode:t.mode,title:t.title}},getValue:function(e){return e.formField.text}},number:{getOptions:function(e){var t=e.formField;return{postPointDigits:dt()(t,"validation.decimalDigits.postPointDigits",null)}}},moneyamount:{getOptions:function(e){var t=e.formField;return{postPointDigits:dt()(t,"validation.decimalDigits.postPointDigits",2)}}},percent:{getValue:function(e){return e.value/100},getOptions:function(e){var t=e.formField;return{postPointDigits:dt()(t,"validation.decimalDigits.postPointDigits",null)}}}};function ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ro(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ao=function(e){var t=e.componentType,n=e.formField,r=e.value,o=e.formData,a=e.key,i=e.breakWords,c=n.dataType||n.componentType,s=no[c],u=function(e,t,n){return null!=e&&e.getOptions?e.getOptions({formField:t,formData:n}):{}}(s,n,o),l=function(e,t,n,r){return null!=e&&e.getValue?e.getValue({formField:t,formData:n,value:r}):r}(s,n,o,r);return(0,O.jsx)(Jr.Z,{type:t,value:l,options:u,breakWords:i},a)};const io=function(e){return function(t){return(0,O.jsx)(ao,oo(oo({},t),{},{componentType:e}))}};function co(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function so(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?co(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):co(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var uo={binary:Qr("document"),birthdate:Qr("date"),boolean:Qr("boolean"),char:Qr("string"),code:Qr("code"),count:Qr("string"),counter:Qr("integer"),createts:Qr("datetime"),createuser:Qr("string"),"compressed-text":Qr("text"),date:Qr("date"),datetime:Qr("datetime"),decimal:Qr("number"),display:io("html"),description:io("description"),document:Qr("document"),double:Qr("number"),duration:Qr("duration"),email:Qr("email"),"fulltext-search":Qr("string"),html:Qr("html"),image:Qr("document"),identifier:Qr("string"),integer:Qr("integer"),ipaddress:Qr("string"),latitude:Qr("string"),location:Qr("location"),login:Qr("string"),long:Qr("integer"),longitude:Qr("string"),marking:Qr("boolean"),moneyamount:Qr("number"),"multi-remote-field":Qr("multi-remote"),"multi-select-box":Qr("multi-select"),"named-upload":Qr("document"),percent:Qr("number"),phone:Qr("phone"),postcode:Qr("string"),"pulldown-date":Qr("date"),"search-filter":Qr("search-filter"),serial:Qr("string"),"single-remote-field":Qr("remote"),"single-select-box":Qr("single-select"),sorting:Qr("integer"),string:Qr("string"),text:Qr("text"),"text-area":Qr("text"),time:Qr("time"),updatets:Qr("datetime"),updateuser:Qr("string"),upload:Qr("document"),url:Qr("url"),uuid:Qr("string"),version:Qr("integer")},lo={binary:io("document"),birthdate:io("date"),boolean:io("boolean"),code:io("text"),char:io("string"),counter:io("integer"),createuser:io("string"),createts:io("datetime"),"compressed-text":io("text"),"data-amount":io("number"),date:io("date"),datetime:io("datetime"),decimal:io("number"),display:io("html"),description:io("description"),duration:io("duration"),document:io("document"),double:io("number"),email:io("email"),html:io("html"),image:io("document"),ipaddress:io("string"),identifier:io("string"),latitude:io("string"),login:io("string"),long:io("integer"),longitude:io("string"),moneyamount:io("number"),"multi-remote-field":io("multi-remote"),"multi-select-box":io("multi-select"),"named-upload":io("document"),integer:io("integer"),percent:io("percent"),phone:io("phone"),postcode:io("string"),"pulldown-date":io("date"),remote:io("remote"),"search-filter":io("search-filter"),serial:io("string"),"single-remote-field":io("remote"),"single-select-box":io("single-select"),sorting:io("integer"),string:io("string"),text:io("text"),"text-area":io("text"),time:io("time"),updatets:io("datetime"),updateuser:io("string"),upload:io("document"),url:io("url"),uuid:io("string"),version:io("integer")};const po={editable:uo,readOnly:lo,list:so(so({},lo),{},{binary:io("document-compact"),document:io("document-compact"),image:io("document-compact")}),search:so(so({},uo),{},{text:Qr("string"),birthdate:Qr("date",!0),code:io("text",!0),date:Qr("date",!0),updatets:Qr("datetime",!0),createts:Qr("datetime",!0),datetime:Qr("datetime",!0),moneyamount:Qr("number",!0),percent:Qr("number",!0),long:Qr("integer",!0),integer:Qr("integer",!0),decimal:Qr("number",!0),counter:Qr("integer",!0),time:Qr("time",!0),boolean:Qr("boolean-select"),marking:Qr("boolean-select")})};var fo;const ho=function(e,t){return po[e]&&po[e][t]?po[e][t]:(gr.Z.log("Unable to display field: unknown mapping type combination (".concat(e," / ").concat(t,")")),function(){return fo||(fo=(0,O.jsx)("span",{}))})};var mo,go,vo,yo,bo,wo,ko,xo,Oo,_o=m.ZP.div.withConfig({displayName:"StyledMergeErrorWrapper"})(mo||(mo=de()(["\n ","\n padding: "," 0 0 ",";\n"])),(0,v.Z)(),y.Z.space(-1),y.Z.space(0)),So=m.ZP.div.withConfig({displayName:"StyledSummaryErrorWrapper"})(go||(go=de()(["\n display: grid;\n align-items: center;\n grid-template-columns: "," 1fr;\n grid-column-gap: ",";\n margin-bottom: ",";\n"])),y.Z.font(10),y.Z.space(-.5),y.Z.space(-.7)),Ao=m.ZP.span.withConfig({displayName:"StyledIconWrapper"})(vo||(vo=de()(["\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n"])),pe.Z.color("signal.danger.text"),y.Z.font(10)),Eo=m.ZP.p.withConfig({displayName:"StyledError"})(yo||(yo=de()([""]))),Co=m.ZP.div.withConfig({displayName:"StyledLabelWrapper"})(bo||(bo=de()(["\n display: flex;\n align-items: center;\n\n label {\n vertical-align: bottom;\n }\n"]))),Po=m.ZP.div.withConfig({displayName:"StyledTableWrapper"})(wo||(wo=de()(["\n flex: 1;\n"]))),jo=m.ZP.span.withConfig({displayName:"StyledStatusWrapper"})(ko||(ko=de()(["\n color: ",";\n"])),(function(e){return e.isChecked?pe.Z.color("signal.success.text"):pe.Z.color("signal.danger.text")})),Do=function(e,t){return 0===Object.keys(Pe.Z.difference(e,t)).length},To=J().memo((function(e){var t=e.entityData,n=e.entityKey,r=e.name,o=e.setSelectedMultipleAll,a=e.isSelected,i=e.navigationStrategy;if(0===t.value.totalKeys)return null;return(0,O.jsxs)(Co,{children:[(0,O.jsx)("input",{type:"checkbox",onChange:function(e){return o(r,n,e.target.checked)},checked:a,id:"".concat(r).concat(n)}),(0,O.jsxs)(se.ZP.Label,{for:"".concat(r).concat(n),children:[xo||(xo=(0,O.jsx)(ie.Z,{id:"client.merge.allRelations"}))," ",(0,O.jsx)(ue,{model:t.value.relationEntity,keys:t.value.keys,totalKeys:t.value.totalKeys,navigationStrategy:i})]})]})}),Do),Mo=J().memo((function(e){var t=e.entityData,n=e.entityKey,r=e.name,o=e.setSelectedMultiple,a=e.selectedMultiple,i=function(e){return dt()(a,[r,e])===n},c=function(e,t){return o(r,n,e,t)},s=function(e,t){return e===t?"checked":t>0?"indeterminate":"unchecked"}(t.value.length,t.value.filter((function(e){return i(e.key)})).length);return(0,O.jsxs)(O.Fragment,{children:[t.value.length>0&&(0,O.jsxs)(Co,{children:[(0,O.jsx)(Ze,{value:s,onChange:function(e){t.value.forEach((function(t){var n="checked"===e;i(t.key)!==n&&c(t.key,n)}))},id:"".concat(r).concat(n)}),(0,O.jsx)(se.ZP.Label,{for:"".concat(r).concat(n),children:Oo||(Oo=(0,O.jsx)(ie.Z,{id:"client.merge.allRelations"}))})]}),t.value.map((function(e){return(0,O.jsxs)(Co,{children:[(0,O.jsx)("input",{type:"checkbox",onChange:function(t){return c(e.key,t.target.checked)},checked:i(e.key),id:"".concat(r).concat(n,"-").concat(e.key)}),(0,O.jsx)(se.ZP.Label,{for:"".concat(r).concat(n,"-").concat(e.key),children:(0,O.jsx)(Jr.Z,{type:"single-select",value:e})})]},"relation-checkbox-".concat(e.key))}))]})}),Do),Zo=J().memo((function(e){var t=e.entityData,n=e.entityKey,r=e.name,o=e.setSelectedSingle,a=e.isSelected,i=t.type,c=t.writable,s={entity:"single-select-box"}[i]||i,u=ho("list",s);return(0,O.jsxs)(Co,{children:[(0,O.jsx)("input",{type:"radio",name:r,onChange:function(){o(r,n)},checked:a,id:"".concat(r).concat(n),disabled:!c}),(0,O.jsx)(se.ZP.Label,{for:"".concat(r).concat(n),children:(0,O.jsx)(u,{mappingType:"list",formField:{dataType:s},value:t.value})})]})}),Do);const Io=function(e){var t=e.rowData,n=e.column,r=e.setSelectedSingle,o=e.selectedSingle,a=e.setSelectedMultiple,i=e.selectedMultiple,c=e.setSelectedMultipleAll,s=e.selectedMultipleAll,u=e.navigationStrategy,l=n.entityKey,d=t[l],p=d.type,f=t.__key;return"relations"===p?(0,O.jsx)(To,{entityData:d,entityKey:l,name:f,setSelectedMultipleAll:c,isSelected:dt()(s,[f],[]).includes(l),navigationStrategy:u}):"entity-list"===p?(0,O.jsx)(Mo,{entityData:d,entityKey:l,name:f,setSelectedMultiple:a,selectedMultiple:i}):(0,O.jsx)(Zo,{entityData:d,entityKey:l,name:f,setSelectedSingle:r,isSelected:o[f]===l})};var No={setSelectedSingle:function(e,t){return{type:H,payload:{name:e,entityKey:t}}},setSelectedMultiple:function(e,t,n,r){return{type:W,payload:{name:e,entityKey:t,relatedEntityKey:n,isSelected:r}}},setSelectedMultipleAll:function(e,t,n){return{type:U,payload:{name:e,entityKey:t,isSelected:n}}}};const Ro=(0,B.connect)((function(e){return{selectedSingle:e.merge.selected.single,selectedMultiple:e.merge.selected.multiple,selectedMultipleAll:e.merge.selected.multipleAll,navigationStrategy:e.input.navigationStrategy}}),No)((0,R.ZP)(Io));var Bo;const Lo=function(e){var t=e.label,n=e.entityKey,r=e.setTargetEntity,o=e.targetEntity,a=e.mergeStrategyDisplay,i=o===n,c=i?Bo||(Bo=(0,O.jsx)(ie.Z,{id:"client.merge.strategy.keep"})):a;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("input",{type:"radio",name:"column",onChange:function(){return r(n)},checked:i,id:"targetEntity".concat(n)}),(0,O.jsxs)(se.ZP.Label,{for:"targetEntity".concat(n),children:[(0,O.jsx)(se.ZP.B,{children:t}),(0,O.jsxs)(jo,{isChecked:i,children:[" (",c,")"]})]})]})};var Fo={setTargetEntity:X};const Ho=(0,B.connect)((function(e){return{targetEntity:e.merge.selected.targetEntity,mergeStrategyDisplay:e.merge.sourceData.mergeStrategyDisplay}}),Fo)((0,R.ZP)(Lo));var Wo;s().arrayOf(s().shape({model:s().string,key:s().string,paths:s().objectOf(s().objectOf(s().arrayOf(s().string))),entityValidatorErrors:s().objectOf(s().arrayOf(s().string))}));const Uo=function(e){var t=e.sourceData,n=e.mergeErrorMsg,r=e.mergeValidationErrors.map((function(e){var n=Object.keys(e.paths).map((function(n){return Object.keys(e.paths[n]).map((function(r){return e.paths[n][r].map((function(e,o){return(0,O.jsxs)(Eo,{children:[t.labels[n],": ",e]},"paths-".concat(n,"-").concat(r,"-").concat(o))}))}))})),r=Object.keys(e.entityValidatorErrors).map((function(t){return e.entityValidatorErrors[t].map((function(e,n){return(0,O.jsx)(Eo,{children:e},"entity-".concat(t,"-").concat(n))}))}));return[].concat(te()(n),te()(r))}));return(0,O.jsxs)(_o,{children:[(r.length>0||Boolean(n))&&(Wo||(Wo=(0,O.jsxs)(So,{children:[(0,O.jsx)(Ao,{children:(0,O.jsx)(ce.Z,{icon:"times"})}),(0,O.jsx)(se.ZP.P,{children:(0,O.jsx)(ie.Z,{id:"client.merge.summary.error"})})]}))),Boolean(n)&&(0,O.jsx)(Eo,{children:n}),r]})};var zo,Vo,Yo=function(e){var t=e.rowIdx,n=e.sourceData,r=e.allPaths[t];return(0,O.jsx)(se.ZP.B,{children:n.labels[r]})};const qo=function(e){var t=e.sourceData,n=e.mergePending,r=e.mergeErrorMsg,a=e.mergeValidationErrors,i=e.executeMerge,c=(0,Q.useMemo)((function(){return t?function(e){var t=Tn(e).map((function(t,n){return e.entities.reduce((function(n,r){var a=r.paths[t];return a&&a.value&&("entity"===a.type&&(a.value.display=In(e,a.value.model,a.value.key)),"entity-list"===a.type&&(a.value=a.value.map((function(t){return t.display=In(e,t.model,t.key),t})))),Dn(Dn({},n),{},o()({},r.key,a))}),{__key:t})})),n=Mn(e).map((function(t,n){return e.relations.filter((function(e){return e.relationName===t})).reduce((function(e,t){return Dn(Dn({},e),{},o()({},t.entityKey,{type:"relations",value:{keys:t.keys,totalKeys:t.totalKeys,relationEntity:t.relationEntity}}))}),{__key:t})})),r=Zn(e);return[].concat(te()(t),te()(n)).sort((function(e,t){return r.findIndex((function(t){return t===e.__key}))-r.findIndex((function(e){return e===t.__key}))}))}(t):[]}),[t]),s=(0,Q.useMemo)((function(){return t?function(e,t,n,r){var o=e.entities.map((function(r){return{id:r.key,entityKey:r.key,resizable:!0,sorting:{sortable:!1},CellRenderer:n,HeaderRenderer:function(n){return(0,O.jsx)(t,Dn(Dn({},n),{},{entityKey:r.key,label:In(e,r.model,r.key)}))}}}));return[{id:"column-label",label:"",resizable:!0,sorting:{sortable:!1},CellRenderer:function(t){return(0,O.jsx)(r,Dn(Dn({},t),{},{sourceData:e,allPaths:Zn(e)}))}}].concat(te()(o))}(t,Ho,Ro,Yo):[]}),[t]);return n?zo||(zo=(0,O.jsx)(Oe.Z,{})):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(he,{children:(0,O.jsx)(me,{onClick:i,look:"raised",ink:"primary",disabled:null===t,children:Vo||(Vo=(0,O.jsx)(ie.Z,{id:"client.merge.saveButton"}))})}),(0,O.jsxs)(Po,{children:[(0,O.jsx)(Uo,{sourceData:t,mergeErrorMsg:r,mergeValidationErrors:a}),(0,O.jsx)(Pn,{columns:s,data:c,selectionStyle:"none",dataLoadingInProgress:null===t,onColumnPositionChange:function(){}})]})]})};var Go={executeMerge:function(){return{type:V}}};const Ko=(0,B.connect)((function(e){return{sourceData:e.merge.sourceData,mergePending:e.merge.mergePending,mergeErrorMsg:e.merge.mergeErrorMsg,mergeValidationErrors:e.merge.mergeValidationErrors}}),Go)((0,R.ZP)(qo));var Xo,$o,Qo,Jo=m.ZP.div.withConfig({displayName:"StyledMerge"})(Xo||(Xo=de()(["\n height: 100%;\n overflow: hidden;\n background-color: ",";\n display: flex;\n flex-direction: column;\n"])),pe.Z.color("paper"));const ea=function(e){var t=e.initialize,n=e.mergeDone;return(0,Q.useEffect)((function(){t()}),[t]),(0,O.jsx)(Jo,{children:n?$o||($o=(0,O.jsx)(xe,{})):Qo||(Qo=(0,O.jsx)(Ko,{}))})};var ta={initialize:function(){return{type:L}}};const na=(0,B.connect)((function(e){return{mergeDone:!!e.merge.mergeResponse}}),ta)((0,R.ZP)(ea));var ra,oa=i(87757),aa=i.n(oa),ia=i(34857),ca=i(31921),sa=i.n(ca),ua=i(81770);function la(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function da(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?la(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):la(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pa=function(e,t){for(var n=function(){var n=re()(o[r],2),a=n[0],i=n[1];"entity-list"===i.type&&i.value.map((function(e){return e.key})).forEach((function(n){sa()(e,[a,n],t.key,Object)}))},r=0,o=Object.entries(t.paths);r<o.length;r++)n()},fa=(ra={},o()(ra,F,ua.Z.singleTransferReducer("sourceData")),o()(ra,V,(function(e){return da(da({},e),{},{mergePending:!0})})),o()(ra,Y,(function(e,t){var n=t.payload.mergeResponse;return da(da({},e),{},{mergePending:!1,mergeResponse:n})})),o()(ra,q,(function(e,t){var n=t.payload,r=n.errorMsg,o=n.validationErrors;return da(da({},e),{},{mergePending:!1,mergeErrorMsg:r,mergeValidationErrors:o})})),o()(ra,H,(function(e,t){var n=t.payload,r=n.name,a=n.entityKey;return da(da({},e),{},{selected:da(da({},e.selected),{},{single:da(da({},e.selected.single),{},o()({},r,a))})})})),o()(ra,W,(function(e,t){var n,r=t.payload,a=r.name,i=r.entityKey,c=r.relatedEntityKey;return r.isSelected?n=da(da({},e.selected.multiple),{},o()({},a,da(da({},e.selected.multiple[a]),{},o()({},c,i)))):(n=da({},e.selected.multiple))[a]=yr()(n[a],[c]),da(da({},e),{},{selected:da(da({},e.selected),{},{multiple:n})})})),o()(ra,U,(function(e,t){var n,r=t.payload,a=r.name,i=r.entityKey;return n=r.isSelected?[].concat(te()(e.selected.multipleAll[a]||[]),[i]):e.selected.multipleAll[a].filter((function(e){return e!==i})),da(da({},e),{},{selected:da(da({},e.selected),{},{multipleAll:da(da({},e.selected.multipleAll),{},o()({},a,n))})})})),o()(ra,z,(function(e,t){for(var n=t.payload.entityKey,r={},a={},i=e.sourceData.entities.find((function(e){return e.key===n})),c=0,s=Object.entries(i.paths);c<s.length;c++){var u=re()(s[c],2),l=u[0];"entity-list"!==u[1].type&&(r[l]=n)}e.sourceData.entities.filter((function(e){return e.key!==n})).forEach((function(e){return pa(a,e)})),pa(a,i);var d=e.sourceData.relations.reduce((function(e,t){return da(da({},e),{},o()({},t.relationName,[].concat(te()(e[t.relationName]||[]),[t.entityKey])))}),{});return da(da({},e),{},{selected:da(da({},e.selected),{},{targetEntity:n,single:r,multiple:a,multipleAll:d})})})),ra),ha={sourceData:null,mergePending:!1,mergeResponse:null,mergeErrorMsg:null,mergeValidationErrors:[],selected:{targetEntity:null,single:{},multiple:{},multipleAll:{}}};var ma=i(44908),ga=i.n(ma),va=i(63094),ya=aa().mark(Aa),ba=aa().mark(Ea),wa=aa().mark(Ca),ka=aa().mark(Pa),xa=aa().mark(ja),Oa=aa().mark(Da),_a=function(e){return e.merge},Sa=function(e){return e.input};function Aa(){return aa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ia.$6)([(0,ia.Fm)(L,Ea),(0,ia.Fm)(V,ja),(0,ia.Fm)(G,Da)]);case 2:case"end":return e.stop()}}),ya)}function Ea(){var e,t;return aa().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,ia.Ys)(Sa);case 2:return e=n.sent,t=e.selection,n.next=6,(0,ia.RE)(Ca,t);case 6:case"end":return n.stop()}}),ba)}function Ca(e){var t,n,r;return aa().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return"merge/sourceData",t={method:"POST",body:e},o.next=4,(0,ia.RE)(va.Z.requestSaga,"merge/sourceData",t);case 4:return n=o.sent,r=n.body,o.next=8,(0,ia.gz)(K(r));case 8:return o.next=10,(0,ia.gz)(X(r.entities[0].key));case 10:case"end":return o.stop()}}),wa)}function Pa(){var e,t,n,r,o,a,i,c,s,u,l;return aa().wrap((function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,(0,ia.Ys)(_a);case 2:for(e=d.sent,t=e.selected,n=e.sourceData,r={},o=function(){var e=re()(i[a],2),t=e[0],o=e[1],c=n.entities.find((function(e){return e.key===o})).paths[t];c.writable&&("entity"===c.type?null===c.value?r[t]=null:r[t]={key:c.value.key}:r[t]=o)},a=0,i=Object.entries(t.single);a<i.length;a++)o();for(c=function(){var e=re()(u[s],2),t=e[0],n=e[1];r[t]=[],Object.keys(n).forEach((function(e){return r[t].push({key:e})}))},s=0,u=Object.entries(t.multiple);s<u.length;s++)c();return l=ga()(n.relations.map((function(e){return e.relationName}))).map((function(e){return{relationName:e,sourceKey:t.multipleAll[e]||[]}})),d.abrupt("return",{entities:n.entities,targetEntity:{key:t.targetEntity,paths:r},mergeRelations:l});case 12:case"end":return d.stop()}}),ka)}function ja(){var e,t,n;return aa().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e="merge/merge",r.t0=[400,500],r.next=4,(0,ia.RE)(Pa);case 4:return r.t1=r.sent,t={method:"POST",acceptedStatusCodes:r.t0,body:r.t1},r.next=8,(0,ia.RE)(va.Z.requestSaga,e,t);case 8:if(200!==(n=r.sent).status){r.next=14;break}return r.next=12,(0,ia.gz)((o=n.body,{type:Y,payload:{mergeResponse:o}}));case 12:case 17:r.next=21;break;case 14:if(!n.body||"VALIDATION_FAILED"!==n.body.errorCode){r.next=19;break}return r.next=17,(0,ia.gz)($(null,n.body.errors));case 19:return r.next=21,(0,ia.gz)($(n.body.message,[]));case 21:case"end":return r.stop()}var o}),xa)}function Da(){var e,t,n,r;return aa().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,ia.Ys)(_a);case 2:return e=o.sent,t=e.sourceData,n=t.entities.map((function(e){return{entityName:e.model,key:e.key}})),r=[{type:"entity-update-event",payload:{entities:n}}],o.next=8,(0,ia.gz)(d.Z.fireExternalEvent("onSuccess",{remoteEvents:r}));case 8:case"end":return o.stop()}}),Oa)}var Ta=aa().mark(Ma);function Ma(){return aa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ia.$6)([(0,ia.rM)(Aa)]);case 2:case"end":return e.stop()}}),Ta)}const Za={merge:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ha,t=arguments.length>1?arguments[1]:void 0,n=fa[t.type];return n?n(e,t):e}};var Ia,Na,Ra,Ba=[Ma];function La(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Fa="merge",Ha=["emitAction","onSuccess"],Wa=function(e,t,r,o){var a=n.Z.createStore(Za,Ba,t,Fa);u.Z.addToStore(a,(function(e){return e.input.emitAction})),d.Z.addToStore(a,(function(e){return n.Z.getEvents(Ha,e.input)}));var i=!r.emitAction;p.Z.addToStore(a,i),l.Z.addToStore(a);var c=(0,O.jsxs)(O.Fragment,{children:[Ia||(Ia=(0,O.jsx)(_,{})),i&&(Na||(Na=(0,O.jsx)(p.Z.Notifications,{}))),Ra||(Ra=(0,O.jsx)(na,{}))]});return n.Z.createApp(Fa,c,a,{input:t,events:r,publicPath:o,textResourceModules:["component","common",Fa]})},Ua=function(e){return n.Z.useApp({initApp:Wa,props:e,packageName:Fa,externalEvents:Ha}).component};Ua.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?La(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):La(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({selection:s().object},Ha.reduce((function(e,t){return e[t]=s().func,e}),{}));var za=n.Z.createBundleableApp(Fa,Wa,Ua);n.Z.registerAppInRegistry(za.name,za.init)})(),c})()));