tocco-legacy-bundle 0.1.136 → 0.1.138
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +9 -0
- package/dist/chunk-293.b948ff38fa8219c721cd.js +1 -0
- package/dist/chunk-actions.f0ca5a42fffa92a02ab0.js +1 -0
- package/dist/docs-browser.js +1 -1
- package/dist/entity-browser.js +1 -1
- package/dist/input-edit.js +2 -2
- package/dist/login.js +1 -1
- package/dist/merge.js +5 -5
- package/dist/password-update.js +1 -1
- package/dist/resource-scheduler.js +1 -1
- package/dist/two-factor-connector.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-293.8175cfee2237a4808e3c.js +0 -1
- package/dist/chunk-actions.355339e2fadd05563fa7.js +0 -1
|
@@ -54,4 +54,4 @@ e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,ge
|
|
|
54
54
|
* @license qrcode.react
|
|
55
55
|
* Copyright (c) Paul O'Shannessy
|
|
56
56
|
* SPDX-License-Identifier: ISC
|
|
57
|
-
*/function CP(e,t=0){const n=[];return e.forEach((function(e,r){let o=null;e.forEach((function(a,i){if(!a&&null!==o)return n.push(`M${o+t} ${r+t}h${i-o}v1H${o+t}z`),void(o=null);if(i!==e.length-1)a&&null===o&&(o=i);else{if(!a)return;null===o?n.push(`M${i+t},${r+t} h1v1H${i+t}z`):n.push(`M${o+t},${r+t} h${i+1-o}v1H${o+t}z`)}}))})),n.join("")}function DP(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function TP(e,t,n,r){if(null==r)return null;const o=n?4:0,a=e.length+2*o,i=Math.floor(.1*t),c=a/t,u=(r.width||i)*c,s=(r.height||i)*c,l=null==r.x?e.length/2-u/2:r.x*c,f=null==r.y?e.length/2-s/2:r.y*c;let p=null;if(r.excavate){let e=Math.floor(l),t=Math.floor(f);p={x:e,y:t,w:Math.ceil(u+l-e),h:Math.ceil(s+f-t)}}return{x:l,y:f,h:s,w:u,excavation:p}}var MP=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function IP(e){const t=e,{value:n,size:r=SP,level:o=PP,bgColor:a=_P,fgColor:i=jP,includeMargin:c=EP,style:u,imageSettings:s}=t,l=OP(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),f=null==s?void 0:s.src,p=(0,_.useRef)(null),d=(0,_.useRef)(null),[h,m]=(0,_.useState)(!1);(0,_.useEffect)((()=>{if(null!=p.current){const e=p.current,t=e.getContext("2d");if(!t)return;let u=xP.QrCode.encodeText(n,kP[o]).getModules();const l=c?4:0,f=u.length+2*l,h=TP(u,r,c,s),m=d.current,v=null!=h&&null!==m&&m.complete&&0!==m.naturalHeight&&0!==m.naturalWidth;v&&null!=h.excavation&&(u=DP(u,h.excavation));const g=window.devicePixelRatio||1;e.height=e.width=r*g;const y=r/f*g;t.scale(y,y),t.fillStyle=a,t.fillRect(0,0,f,f),t.fillStyle=i,MP?t.fill(new Path2D(CP(u,l))):u.forEach((function(e,n){e.forEach((function(e,r){e&&t.fillRect(r+l,n+l,1,1)}))})),v&&t.drawImage(m,h.x+l,h.y+l,h.w,h.h)}})),(0,_.useEffect)((()=>{m(!1)}),[f]);const v=wP({height:r,width:r},u);let g=null;return null!=f&&(g=j().createElement("img",{src:f,key:f,style:{display:"none"},onLoad:()=>{m(!0)},ref:d})),j().createElement(j().Fragment,null,j().createElement("canvas",wP({style:v,height:r,width:r,ref:p},l)),g)}function NP(e){const t=e,{value:n,size:r=SP,level:o=PP,bgColor:a=_P,fgColor:i=jP,includeMargin:c=EP,imageSettings:u}=t,s=OP(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let l=xP.QrCode.encodeText(n,kP[o]).getModules();const f=c?4:0,p=l.length+2*f,d=TP(l,r,c,u);let h=null;null!=u&&null!=d&&(null!=d.excavation&&(l=DP(l,d.excavation)),h=j().createElement("image",{xlinkHref:u.src,height:d.h,width:d.w,x:d.x+f,y:d.y+f,preserveAspectRatio:"none"}));const m=CP(l,f);return j().createElement("svg",wP({height:r,width:r,viewBox:`0 0 ${p} ${p}`},s),j().createElement("path",{fill:a,d:`M0,0 h${p}v${p}H0z`,shapeRendering:"crispEdges"}),j().createElement("path",{fill:i,d:m,shapeRendering:"crispEdges"}),h)}var RP=e=>{const t=e,{renderAs:n}=t,r=OP(t,["renderAs"]);return"svg"===n?j().createElement(NP,wP({},r)):j().createElement(IP,wP({},r))};const AP=function(e){var t=e.value;return(0,L.jsx)(RP,{value:t,renderAs:"svg"})};var LP,FP,ZP,HP,UP,BP,WP=T.ZP.div.withConfig({displayName:"StyledQRCodeWrapper"})(LP||(LP=D()(["\n display: flex;\n justify-content: center;\n margin: "," "," "," ",";\n"])),R.Z.space(1.2),R.Z.space(1),R.Z.space(1.5),R.Z.space(1)),YP=T.ZP.div.withConfig({displayName:"StyledParagraph"})(FP||(FP=D()(["\n display: flex;\n justify-content: center;\n margin-top: ",";\n margin-bottom: ",";\n"])),R.Z.space(-1),R.Z.space(-.9));const zP=function(e){var t=e.secret,n=e.goToSecretVerification;return Xy(n),(0,L.jsxs)(L.Fragment,{children:[ZP||(ZP=(0,L.jsx)(Yr,{children:(0,L.jsx)(E.Z,{id:"client.two-factor-connector.qrCodeInfo"})})),(0,L.jsx)(WP,{children:(0,L.jsx)(AP,{value:t.uri})}),HP||(HP=(0,L.jsx)(Yr,{children:(0,L.jsx)(E.Z,{id:"client.two-factor-connector.secretInfo"})})),(0,L.jsx)(YP,{children:(0,L.jsx)(Ur,{children:t.secret})}),UP||(UP=(0,L.jsx)(Yr,{children:(0,L.jsx)(E.Z,{id:"client.two-factor-connector.backupInfo"})})),(0,L.jsx)(cP,{children:(0,L.jsx)(Ju,{ink:"primary",look:"raised",onClick:n,children:BP||(BP=(0,L.jsx)(E.Z,{id:"client.two-factor-connector.nextButton"}))})})]})};var VP={goToSecretVerification:function(){return{type:GS}}};const qP=(0,m.connect)((function(e){return{secret:e.twoFactorConnector.secret}}),VP)((0,h.ZP)(zP));var GP;const KP=function(e){var t=e.twoFactorActive,n=e.forced,r=e.requestSecret,o=e.intl;Xy(r);var a=function(e){return o.formatMessage({id:e})};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Yr,{children:function(){if(t)return GP||(GP=(0,L.jsx)(E.Z,{id:"client.two-factor-connector.overwriteInfo"}));var e=a(n?"client.two-factor-connector.forcedInfo":"client.two-factor-connector.info");return(0,L.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})}()}),(0,L.jsx)(cP,{children:(0,L.jsx)(Ju,{label:a("client.two-factor-connector.nextButton"),ink:"primary",look:"raised",onClick:r})})]})};var XP={initialize:tP,requestSecret:function(){return{type:qS}}};const QP=(0,m.connect)((function(e){return{twoFactorActive:e.twoFactorConnector.twoFactorActive,secret:e.twoFactorConnector.secret,forced:e.input.forced}}),XP)((0,h.ZP)(KP));var $P=i(41505),JP=i.n($P),e_=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},t_=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},n_=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},r_={outline:"none"},o_=function(e){function t(){var n,r;e_(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=n_(this,e.call.apply(e,[this].concat(a))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=j().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)},n_(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?j().cloneElement(e({focused:t,getRef:this.ref}),n):j().createElement("div",t_({ref:this.ref,style:r_},n),e)},t}(j().Component);o_.propTypes={children:JP().oneOfType([JP().node,JP().func]).isRequired,onBlur:JP().func,onFocus:JP().func},o_.defaultProps={onBlur:function(){},onFocus:function(){}};const a_=o_;var i_,c_,u_,s_,l_=(i_={},Y()(i_,Uc.Z.condition.BASE,"inherit"),Y()(i_,Uc.Z.condition.DANGER,N.color("signal.danger")),Y()(i_,Uc.Z.condition.SUCCESS,N.color("signal.success")),Y()(i_,Uc.Z.condition.WARNING,N.color("signal.warning")),Y()(i_,Uc.Z.condition.INFO,N.color("signal.info")),i_),f_=(0,T.ZP)(Xn).withConfig({displayName:"StyledSignalList"})(c_||(c_=D()(["\n && {\n list-style-type: none;\n }\n"]))),p_=T.ZP.span.withConfig({displayName:"StyledSignalListIcon"})(u_||(u_=D()(["\n position: absolute;\n left: -1.6rem;\n text-align: left;\n"]))),d_=(0,T.ZP)(Gn).withConfig({displayName:"StyledSignalListItem"})(s_||(s_=D()(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){return l_[e.condition]||"inherit"}(e)}));const h_=function(e){return(0,L.jsx)(f_,{as:"ul",children:j().Children.map(e.children,(function(e){return j().cloneElement(e)}))})};var m_,v_,g_=(m_={},Y()(m_,Uc.Z.condition.BASE,!1),Y()(m_,Uc.Z.condition.DANGER,"times"),Y()(m_,Uc.Z.condition.SUCCESS,"check"),Y()(m_,Uc.Z.condition.WARNING,"exclamation-triangle"),Y()(m_,Uc.Z.condition.INFO,"info"),m_),y_=function(e){var t=g_[e.condition];return t?(0,L.jsx)(Kr.Z,{icon:t,position:Uc.Z.position.SOLE}):v_||(v_=(0,L.jsx)("i",{children:"•"}))},b_=function(e){return(0,L.jsxs)(d_,{condition:e.condition,children:[(0,L.jsx)(p_,{children:y_(e)}),e.label,j().Children.map(e.children,(function(e){return j().cloneElement(e)}))]})};b_.defaultProps={condition:Uc.Z.condition.BASE};const w_={List:h_,Item:b_};const O_=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,ge()(e.error[n]))})),(0,L.jsx)(w_.List,{children:t.map((function(e,t){return(0,L.jsx)(w_.Item,{condition:"danger",label:e},t)}))})};var x_,k_,S_,P_,__,j_,E_,C_,D_,T_,M_,I_,N_,R_,A_,L_={base:function(e){var t=e.theme;return Aa()(t,"colors.text")},shade1:function(e){var t=e.theme;return Aa()(t,"colors.textLight")},shade2:function(e){var t=e.theme;return Aa()(t,"colors.textLighter")},signal:function(e){var t=e.theme,n=e.signal;return Aa()(t,"colors.signal.".concat(n))},hasValue:function(e){var t=e.theme;return Aa()(t,"colors.signal.info")}},F_={base:function(e){var t=e.theme;return Aa()(t,"colors.border")},signal:function(e){var t=e.theme,n=e.signal;return Aa()(t,"colors.signal.".concat(n))},isDirty:function(e){var t=e.theme;return Aa()(t,"colors.secondaryLight")},transparent:function(){return"transparent"}},Z_="1.1px",H_=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"not-allowed":"auto",";")},U_=T.ZP.label.withConfig({displayName:"StyledStatedValueLabel"})(k_||(k_=D()(["\n &&& {\n display: flex;\n width: 40%;\n flex-grow: 1;\n flex-basis: 125px;\n ","\n background-color: ",";\n pointer-events: auto;\n ","\n word-break: break-word;\n white-space: pre-wrap;\n ","\n ","\n ","\n }\n"])),(0,M.Z)({lineHeight:N.lineHeight("dense")}),N.color("paper"),(function(e){return H_(e)}),(function(e){return"outside"===e.labelPosition&&(0,T.iv)(S_||(S_=D()(["\n margin-bottom: ",";\n display: block;\n width: auto;\n "])),R.Z.space(-1.5))}),(function(e){return"inside"===e.labelPosition&&(0,T.iv)(P_||(P_=D()(["\n flex-basis: unset;\n position: absolute;\n top: 0;\n z-index: 1;\n display: inline-block;\n padding: 0 "," 0 ","; // if immutable remove left padding\n width: fit-content;\n left: ",";\n "])),R.Z.space(-2),(function(e){return e.immutable&&"0"}),(function(e){return e.immutable?"0":R.Z.space(-1.8)}))}),(function(e){return e.styles})),B_=T.ZP.div.withConfig({displayName:"StyledInputArea"})(__||(__=D()(["\n width: 60%;\n flex-grow: 1;\n ","\n"])),(function(e){return"outside"===e.labelPosition&&(0,T.iv)(j_||(j_=D()(["\n width: auto;\n "])))})),W_=T.ZP.div.withConfig({displayName:"StyledStatedValueBox"})(E_||(E_=D()(["\n &&& {\n position: relative;\n height: fit-content; // prevent height getting bigger due to tall labels\n border: "," solid ",";\n border-radius: ",";\n padding: "," ",";\n ","\n ","\n\n > "," {\n padding-top: ",";\n position: relative;\n top: 5px;\n\n p:first-of-type {\n margin-top: 0;\n }\n }\n ","\n ","\n }\n"])),Z_,(function(e){return F_[function(e){var t=e.immutable,n=e.isDisplay,r=e.signal;return e.isDirty?"isDirty":n||t?"transparent":r?"signal":"base"}(e)](e)}),N.radii("form"),R.Z.space(-2.5),R.Z.space(-1.5),(function(e){return!e.immutable&&function(e){var t=Aa()(e.theme,"colors.signal.info",Uc.Z.fallbackColors.INFO);return(0,T.iv)(x_||(x_=D()(["\n transition: border-color ease-in-out 100ms;\n will-change: border-color;\n\n &:focus,\n &:focus-within {\n border-color: ",";\n box-shadow: 0 0 6px ",";\n outline: 0;\n\n /**\n * Disable box-shadow for Safari\n * in order to be able to tab through the form fluently\n */\n @media not all and (min-resolution: 0.001dpcm) {\n @supports (-webkit-appearance: none) {\n box-shadow: none;\n }\n }\n }\n "])),t,Lu(.4,t))}(e)}),(function(e){return H_(e)}),ya,(function(e){return e.isDisplay&&R.Z.space(-1)}),(function(e){return"inside"===e.labelPosition&&(0,T.iv)(C_||(C_=D()(["\n padding: "," "," "," ",";\n "])),R.Z.space(-1),R.Z.space(-1.7),R.Z.space(-2),R.Z.space(-1))}),(function(e){return e.styles})),Y_=T.ZP.p.withConfig({displayName:"StyledStatedValueDescription"})(D_||(D_=D()(["\n &&& {\n ","\n }\n"])),(0,M.Z)({fontSize:R.Z.font(-1)})),z_=T.ZP.div.withConfig({displayName:"StyledStatedValueError"})(T_||(T_=D()([""]))),V_=T.ZP.div.withConfig({displayName:"StyledStatedValueOuterWrapper"})(M_||(M_=D()(["\n &:not(:last-child) {\n margin-bottom: ",";\n }\n ","\n"])),R.Z.space(-.7),(function(e){return"inside"===e.labelPosition&&(0,T.iv)(I_||(I_=D()(["\n padding-top: ",";\n margin-bottom: 0.65rem;\n position: relative;\n "])),R.Z.space(-1.5))})),q_=T.ZP.div.withConfig({displayName:"StyledStatedValueInnerWrapper"})(N_||(N_=D()(["\n &&& {\n display: flex;\n flex-wrap: wrap;\n gap: ",";\n align-items: center;\n\n ",",\n ",",\n "," {\n margin-bottom: ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n "," {\n margin-left: calc("," + ",");\n }\n ","\n ","\n }\n"])),R.Z.space(-1.5),W_,Y_,z_,R.Z.space(-2),Y_,R.Z.space(-1),Z_,(function(e){return"outside"===e.labelPosition&&(0,T.iv)(R_||(R_=D()(["\n display: block;\n "])))}),(function(e){return"inside"===e.labelPosition&&(0,T.iv)(A_||(A_=D()(["\n padding-top: 0;\n "])))}));function G_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G_(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const X_=function(e){var t,n,r,o=e.children,a=e.description,i=e.dirty,c=e.isDisplay,u=e.error,s=e.hasValue,l=e.id,f=e.label,p=e.mandatory,d=e.mandatoryTitle,h=e.immutable,m=e.touched,v=e.signal,g=e.labelPosition,y=e.styles,b=!h&&m&&u&&Object.keys(u).length>0,w=p&&d?", ".concat(d):"",O="".concat(Ji(f)).concat(w),x=v||function(e,t,n,r){return t?Uc.Z.condition.DANGER:e?Uc.Z.condition.INFO:n&&!r?Uc.Z.condition.WARNING:void 0}(i,b,p,s),k={__html:"".concat(Da.sanitizeHtml(f)).concat(p?" *":"")},S=!c&&!h&&{htmlFor:l};return(0,L.jsx)(a_,{children:function(e){var l=e.getRef;return(0,L.jsx)(V_,{labelPosition:g,children:(0,L.jsxs)(q_,{labelPosition:g,ref:l,label:f,children:[f&&(0,L.jsx)(U_,K_(K_({},S),{},{hasValue:s,dirty:i,title:O,immutable:h,isDisplay:c,signal:x,labelPosition:g,styles:null==y?void 0:y.labelStyles,children:t||(t=(0,L.jsx)("span",{dangerouslySetInnerHTML:k}))})),(0,L.jsxs)(B_,{labelPosition:g,children:[(0,L.jsx)(W_,{hasValue:s,immutable:h,isDisplay:c,signal:x,labelPosition:g,styles:null==y?void 0:y.valueStyles,children:o}),b&&(n||(n=(0,L.jsx)(z_,{children:(0,L.jsx)(O_,{error:u})}))),a&&(r||(r=(0,L.jsx)(Y_,{children:a})))]})]})})}})};var Q_,$_,J_,ej=function(e){return(0,T.iv)(Q_||(Q_=D()(["\n color: ",";\n font-weight: ",";\n"])),L_[function(e){var t=e.isDisplay,n=e.immutable,r=e.signal,o=e.hasValue;return r?"signal":o?"hasValue":t?"shade1":n?"base":"shade1"}(e)](e),(function(e){return e.dirty?N.fontWeight("bold"):N.fontWeight("regular")}))},tj=function(){return(0,T.iv)($_||($_=D()(["\n padding-top: ",";\n padding-left: ",";\n"])),(function(e){var t=e.isDisplay,n=e.immutable;if(t&&n)return(0,T.iv)(J_||(J_=D()(["\n ","\n "])),R.Z.space(-1))}),(function(e){return e.immutable&&0}))},nj=["labelPosition"];function rj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const oj=function(e){var t=e.labelPosition,n=Jy()(e,nj);return(0,L.jsx)(X_,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rj(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{labelStyles:ej,valueStyles:tj},labelPosition:t||"outside-responsive"},n))};var aj,ij,cj,uj=function(e){return e.signal?"signal":"shade2"},sj=function(e){return(0,T.iv)(aj||(aj=D()(["\n color: ",";\n font-weight: ",";\n"])),L_[uj(e)](e),N.fontWeight("bold"))},lj=function(){return(0,T.iv)(ij||(ij=D()(["\n padding-top: ",";\n padding-left: ",";\n"])),(function(e){var t=e.isDisplay,n=e.immutable,r=e.labelPosition;return n&&"inside"!==r?0:t&&n?(0,T.iv)(cj||(cj=D()(["\n ","\n "])),R.Z.space(-1)):void 0}),(function(e){return e.immutable&&0}))},fj=["labelPosition"];function pj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const dj=function(e){var t=e.labelPosition,n=Jy()(e,fj);return(0,L.jsx)(X_,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pj(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{labelStyles:sj,valueStyles:lj},labelPosition:t||"outside"},n))};var hj,mj=(hj={},Y()(hj,Lv.Z.EmbedType.admin,oj),Y()(hj,Lv.Z.EmbedType.widget,dj),hj);const vj=Lv.Z.embedStrategyFactory({mapping:mj});var gj,yj,bj,wj,Oj,xj,kj,Sj,Pj,_j=i(58808),jj=i.n(_j),Ej=(0,T.iv)(gj||(gj=D()(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),Cj=T.ZP.label.withConfig({displayName:"StyledEditableWrapper"})(yj||(yj=D()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),Ej),Dj=(0,T.iv)(bj||(bj=D()(["\n background-color: transparent;\n border: 0;\n cursor: ",";\n flex-grow: 1;\n min-height: ",";\n min-width: 0;\n outline: 0;\n padding: 0;\n ","\n &::-ms-clear {\n display: none;\n }\n\n &::-webkit-clear-button {\n display: none;\n }\n\n &::-webkit-inner-spin-button {\n display: none;\n }\n\n &[type='number'] {\n appearance: textfield;\n }\n\n &[type='search'] {\n appearance: none;\n }\n\n &:disabled {\n -webkit-text-fill-color: ","; // Safari fix\n opacity: 1; // iOS fix\n }\n\n /* remove indicators */\n &[type='date'],\n &[type='datetime-local'],\n &[type='month'],\n &[type='time'],\n &[type='week'] {\n appearance: none;\n display: flex;\n\n /* reset margin on smaller screens */\n ::-webkit-date-and-time-value {\n ","\n }\n }\n\n // allow pointer event only on touch devices\n @media (pointer: coarse) {\n pointer-events: ",";\n }\n"])),(function(e){return e.immutable?"not-allowed":"default"}),(function(e){return e.immutable?"0":"2.6rem"}),(function(){return(0,M.Z)({color:N.color("text")})}),N.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),Tj=(0,T.iv)(wj||(wj=D()(["\n display: flex;\n align-items: center;\n"]))),Mj=T.ZP.div.withConfig({displayName:"StyledEditableControl"})(Oj||(Oj=D()(["\n &&& {\n ","\n }\n"])),Tj),Ij=T.ZP.span.withConfig({displayName:"StyledEditableValue"})(xj||(xj=D()(["\n width: 100%;\n\n && {\n //url\n [type='url'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //url\n [type='tel'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //date\n .date-edit {\n .input-group-addon {\n cursor: pointer;\n }\n\n input {\n z-index: 0;\n }\n\n &.disabled {\n input {\n cursor: not-allowed;\n }\n }\n\n .right-addon {\n position: relative;\n }\n\n .right-addon input {\n padding-right: 30px;\n }\n\n .reset {\n position: absolute;\n padding-right: 10px;\n padding-top: 5px;\n right: 0;\n color: #999;\n font-size: 18px;\n font-style: normal;\n cursor: pointer;\n }\n\n .reset:hover {\n color: ",";\n }\n }\n }\n"])),N.color("signal.danger")),Nj=function(e){return-1*Math.abs(e)},Rj=function(e){var t=[e.street,e.postcode,e.city,e.country].filter(Boolean).map((function(e){var t="object"===qt()(e)&&e.display?e.display:e;return encodeURIComponent(t)})).join("+");return"".concat("https://www.google.com/maps/search/?api=1&query=").concat(t)},Aj=T.ZP.div.withConfig({displayName:"StyledLocationEdit"})(kj||(kj=D()(["\n && {\n ","\n position: relative;\n\n div {\n :nth-of-type(1) {\n flex: 0 0 13ch;\n margin-right: ",";\n }\n\n :nth-of-type(2) {\n flex: 1 1 auto;\n }\n }\n\n > span {\n flex: 0 0 auto;\n margin-right: ",";\n color: ",";\n }\n\n .react-autosuggest__input {\n ","\n width: 100%;\n }\n\n .react-autosuggest__suggestions-container--open {\n width: calc(100% + 17.5px);\n background-color: ",";\n box-shadow: 0 0 6px ",";\n border: 1px solid ",";\n bottom: -9px;\n left: -10px;\n max-height: 300px;\n overflow-y: auto;\n position: absolute;\n transform: translateY(100%);\n z-index: 2; // higher than StyledIndicatorsContainerWrapper\n }\n\n .react-autosuggest__suggestions-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .react-autosuggest__suggestion {\n cursor: pointer;\n padding: 8px 12px;\n }\n\n .react-autosuggest__suggestion--highlighted {\n background-color: ",";\n }\n }\n"])),Ej,R.Z.space(-2),R.Z.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?Aa()(n,"colors.textDisabled"):Aa()(n,"colors.text")}),Dj,N.color("paper"),N.color("signal.info"),N.color("secondaryLight"),N.color("backgroundItemHover")),Lj=(0,T.ZP)(Aj).withConfig({displayName:"StyledAddressEdit"})(Sj||(Sj=D()(["\n && {\n div {\n :nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n }\n"])));function Fj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fj(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Hj=function(e){var t,n=e.onChange,r=e.options,o=e.value,a=e.id,i=e.immutable,c=e.name,u=function(e){var t=e.street,n=e.houseNr;return n?"".concat(t," ").concat(n):t},s=function(e){var t=e.street,n=e.state,r=e.country,o=e.postcode,a=e.city;if(!t)return null;var i=u(e),c=n?"- ".concat(n):"",s=r?"/ ".concat(r.display):"";return(0,L.jsxs)(zr,{children:[i,", ",o," ",a," ",c," ",s]})},l=function(e,t){var o=t.suggestion;!0===o.validationRequired?r.validateLocation(o,n):n(o)},f=function(e){var t=e.value,n=r.locationValues,o=n.postcode,a=n.city,i=n.country,c={street:t,postcode:o,city:a};r.fetchSuggestions(c,i)},p={id:a,value:o&&o.street?u(o):"",onChange:(t="street",function(e,r){var a=r.newValue;n(Zj(Zj({},o),{},Y()({},t,a)))}),disabled:i};return(0,L.jsx)(a_,{children:function(e){var t,n,o,a,u,d=e.getRef;return(0,L.jsxs)(Lj,{immutable:i,name:c,ref:d,children:[(0,L.jsx)(jj(),{suggestions:r.suggestions||[],onSuggestionsFetchRequested:f,getSuggestionValue:(u="street",function(e){return e[u]}),renderSuggestion:s,onSuggestionsClearRequested:function(){},inputProps:p,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(0,L.jsxs)(Mj,{children:[r.isLoading&&(Pj||(Pj=(0,L.jsx)(Hc,{size:"1.8rem"}))),(t=r.locationValues,n=t.street,o=t.city,a=t.postcode,Boolean(n&&(o||a))&&(0,L.jsx)(Za.Z,{href:Rj(r.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:r.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};var Uj=i(14293),Bj=i.n(Uj),Wj=i(23493),Yj=i.n(Wj),zj=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Vj(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 qj(e,t){return(qj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Gj(e){return(Gj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Kj(e,t){if(t&&("object"===Rl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Xj(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=Gj(e);if(t){var o=Gj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Kj(this,n)}}function Qj(e){return function(e){if(Array.isArray(e))return Tl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ml(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var $j=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Jj(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||$j(r)&&$j(o)))return!1;var r,o;return!0}for(var eE={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"},tE=function(e){return Cl("span",rs({css:eE},e))},nE={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,u=e.isSelected,s=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(s(i,n),".");if("menu"===t){var l=c?" disabled":"",f="".concat(u?"selected":"focused").concat(l);return"option ".concat(a," ").concat(f,", ").concat(s(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},rE=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=e.selectValue,c=e.selectProps,u=e.id,s=c.ariaLiveMessages,l=c.getOptionLabel,f=c.inputValue,p=c.isMulti,d=c.isOptionDisabled,h=c.isSearchable,m=c.menuIsOpen,v=c.options,g=c.screenReaderStatus,y=c.tabSelectsValue,b=c["aria-label"],w=c["aria-live"],O=(0,_.useMemo)((function(){return ns(ns({},nE),s||{})}),[s]),x=(0,_.useMemo)((function(){var e,n="";if(t&&O.onChange){var r=t.option,o=t.options,a=t.removedValue,c=t.removedValues,u=t.value,s=a||r||(e=u,Array.isArray(e)?null:e),f=s?l(s):"",p=o||c||void 0,h=p?p.map(l):[],m=ns({isDisabled:s&&d(s,i),label:f,labels:h},t);n=O.onChange(m)}return n}),[t,O,d,i,l]),k=(0,_.useMemo)((function(){var e="",t=n||r,a=!!(n&&i&&i.includes(n));if(t&&O.onFocus){var c={focused:t,label:l(t),isDisabled:d(t,i),isSelected:a,options:o,context:t===n?"menu":"value",selectValue:i};e=O.onFocus(c)}return e}),[n,r,l,d,O,o,i]),S=(0,_.useMemo)((function(){var e="";if(m&&v.length&&O.onFilter){var t=g({count:o.length});e=O.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,m,O,v,g]),P=(0,_.useMemo)((function(){var e="";if(O.guidance){var t=r?"value":m?"menu":"input";e=O.guidance({"aria-label":b,context:t,isDisabled:n&&d(n,i),isMulti:p,isSearchable:h,tabSelectsValue:y})}return e}),[b,n,r,p,d,h,m,O,i,y]),j="".concat(k," ").concat(S," ").concat(P),E=Cl(_.Fragment,null,Cl("span",{id:"aria-selection"},x),Cl("span",{id:"aria-context"},j)),C="initial-input-focus"===(null==t?void 0:t.action);return Cl(_.Fragment,null,Cl(tE,{id:u},C&&E),Cl(tE,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},a&&!C&&E))},oE=[{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źẑżžẓẕƶȥɀⱬꝣ"}],aE=new RegExp("["+oE.map((function(e){return e.letters})).join("")+"]","g"),iE={},cE=0;cE<oE.length;cE++)for(var uE=oE[cE],sE=0;sE<uE.letters.length;sE++)iE[uE.letters[sE]]=uE.base;var lE=function(e){return e.replace(aE,(function(e){return iE[e]}))},fE=function(e,t){void 0===t&&(t=Jj);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}(lE),pE=function(e){return e.replace(/^\s+|\s+$/g,"")},dE=function(e){return"".concat(e.label," ").concat(e.value)},hE=["innerRef"];function mE(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.entries(e).filter((function(e){var t=Il(e,1)[0];return!n.includes(t)})).reduce((function(e,t){var n=Il(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(Nl(e,hE),"onExited","in","enter","exit","appear");return Cl("input",rs({ref:t},n,{css:Dl({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 vE=["boxSizing","height","overflow","paddingRight","position"],gE={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function yE(e){e.preventDefault()}function bE(e){e.stopPropagation()}function wE(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function OE(){return"ontouchstart"in window||navigator.maxTouchPoints}var xE=!("undefined"==typeof window||!window.document||!window.document.createElement),kE=0,SE={capture:!1,passive:!1};var PE=function(){return document.activeElement&&document.activeElement.blur()},_E={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function jE(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=(0,_.useRef)(!1),c=(0,_.useRef)(!1),u=(0,_.useRef)(0),s=(0,_.useRef)(null),l=(0,_.useCallback)((function(e,t){if(null!==s.current){var u=s.current,l=u.scrollTop,f=u.scrollHeight,p=u.clientHeight,d=s.current,h=t>0,m=f-p-l,v=!1;m>t&&i.current&&(r&&r(e),i.current=!1),h&&c.current&&(a&&a(e),c.current=!1),h&&t>m?(n&&!i.current&&n(e),d.scrollTop=f,v=!0,i.current=!0):!h&&-t>l&&(o&&!c.current&&o(e),d.scrollTop=0,v=!0,c.current=!0),v&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,a]),f=(0,_.useCallback)((function(e){l(e,e.deltaY)}),[l]),p=(0,_.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),d=(0,_.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;l(e,t)}),[l]),h=(0,_.useCallback)((function(e){if(e){var t=!!bf&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",d,t)}}),[d,p,f]),m=(0,_.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",d,!1))}),[d,p,f]);return(0,_.useEffect)((function(){if(t){var e=s.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){s.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,_.useRef)({}),a=(0,_.useRef)(null),i=(0,_.useCallback)((function(e){if(xE){var t=document.body,n=t&&t.style;if(r&&vE.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&kE<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,c=window.innerWidth-i+a||0;Object.keys(gE).forEach((function(e){var t=gE[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(c,"px"))}t&&OE()&&(t.addEventListener("touchmove",yE,SE),e&&(e.addEventListener("touchstart",wE,SE),e.addEventListener("touchmove",bE,SE))),kE+=1}}),[r]),c=(0,_.useCallback)((function(e){if(xE){var t=document.body,n=t&&t.style;kE=Math.max(kE-1,0),r&&kE<1&&vE.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&OE()&&(t.removeEventListener("touchmove",yE,SE),e&&(e.removeEventListener("touchstart",wE,SE),e.removeEventListener("touchmove",bE,SE)))}}),[r]);return(0,_.useEffect)((function(){if(t){var e=a.current;return i(e),function(){c(e)}}}),[t,i,c]),function(e){a.current=e}}({isEnabled:n});return Cl(_.Fragment,null,n&&Cl("div",{onClick:PE,css:_E}),t((function(e){o(e),a(e)})))}var EE={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},CE=function(e){var t=e.name,n=e.onFocus;return Cl("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:EE,value:"",onChange:function(){}})},DE={clearIndicator:Bf,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,a=o.colors,i=o.borderRadius;return ns({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},dropdownIndicator:Uf,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return ns({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return ns({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,a=o.spacing,i=o.colors;return ns(ns({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Qf),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,a=o.colors,i=o.spacing.baseUnit;return ns({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i})},loadingMessage:Cf,menu:function(e,t){var n,r=e.placement,o=e.theme,a=o.borderRadius,i=o.spacing,c=o.colors;return ns((es(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),es(n,"position","absolute"),es(n,"width","100%"),es(n,"zIndex",1),n),t?{}:{backgroundColor:c.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:i.menuGutter,marginTop:i.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return ns({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors;return ns({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,a=e.cropWithEllipsis;return ns({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors,i=e.isFocused;return ns({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:i?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:Ef,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.theme,i=a.spacing,c=a.colors;return ns({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?c.primary:r?c.primary25:"transparent",color:n?c.neutral20:o?c.neutral0:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?c.primary:c.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return ns({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,a=r.colors;return ns({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,a=e.selectProps.controlShouldRenderValue;return ns({alignItems:"center",display:r&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var TE,ME={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}},IE={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:mf(),captureMenuScroll:!mf(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=ns({ignoreCase:!0,ignoreAccents:!0,stringify:dE,trim:!0,matchFrom:"any"},TE),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,c=n.matchFrom,u=i?pE(t):t,s=i?pE(a(e)):a(e);return r&&(u=u.toLowerCase(),s=s.toLowerCase()),o&&(u=fE(u),s=lE(s)),"start"===c?s.substr(0,u.length)===u:s.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:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function NE(e,t,n,r){return{type:"option",data:t,isDisabled:HE(e,t,n),isSelected:UE(e,t,n),label:FE(e,t),value:ZE(e,t),index:r}}function RE(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return NE(e,n,t,r)})).filter((function(t){return LE(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=NE(e,n,t,r);return LE(e,a)?a:void 0})).filter(wf)}function AE(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Qj(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function LE(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,c=t.value;return(!WE(e)||!a)&&BE(e,{label:i,value:c,data:o},r)}var FE=function(e,t){return e.getOptionLabel(t)},ZE=function(e,t){return e.getOptionValue(t)};function HE(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function UE(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=ZE(e,t);return n.some((function(t){return ZE(e,t)===r}))}function BE(e,t,n){return!e.filterOption||e.filterOption(t,n)}var WE=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},YE=1,zE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qj(e,t)}(a,e);var t,n,r,o=Xj(a);function a(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,a=o.closeMenuOnSelect,i=o.isMulti,c=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:c}),a&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=n.name,i=t.state.selectValue,c=o&&t.isOptionSelected(e,i),u=t.isOptionDisabled(e,i);if(c){var s=t.getOptionValue(e);t.setValue(i.filter((function(e){return t.getOptionValue(e)!==s})),"deselect-option",e)}else{if(u)return void t.ariaOnChange(e,{action:"select-option",option:e,name:a});o?t.setValue([].concat(Qj(i),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),a=r.filter((function(e){return t.getOptionValue(e)!==o})),i=Of(n,a,a[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Of(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),a=Of(e,o,o[0]||null);t.onChange(a,{action:"pop-value",removedValue:r})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return of.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return FE(t.props,e)},t.getOptionValue=function(e){return ZE(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=DE[e](n,r);o.boxSizing="border-box";var a=t.props.styles[e];return a?a(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,ns(ns({},ep),e.components);var e},t.buildCategorizedOptions=function(){return RE(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return AE(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:ns({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&sf(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return WE(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,i=n.inputValue,c=n.isClearable,u=n.isDisabled,s=n.menuIsOpen,l=n.onKeyDown,f=n.tabSelectsValue,p=n.openMenuOnFocus,d=t.state,h=d.focusedOption,m=d.focusedValue,v=d.selectValue;if(!(u||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():c&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!s||!f||!h||p&&t.isOptionSelected(h,v))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(s){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":s?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):c&&a&&t.clearValue();break;case" ":if(i)return;if(!s){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":s?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":s?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!s)return;t.focusOption("pageup");break;case"PageDown":if(!s)return;t.focusOption("pagedown");break;case"Home":if(!s)return;t.focusOption("first");break;case"End":if(!s)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++YE),t.state.selectValue=af(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.buildFocusableOptions(),r=n.indexOf(t.state.selectValue[0]);t.state.focusedOption=n[r]}return t}return t=a,r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,c=t.prevWasFocused,u=e.options,s=e.value,l=e.menuIsOpen,f=e.inputValue,p=e.isMulti,d=af(s),h={};if(n&&(s!==n.value||u!==n.options||l!==n.menuIsOpen||f!==n.inputValue)){var m=l?function(e,t){return AE(RE(e,t))}(e,d):[],v=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,d):null;h={selectValue:d,focusedOption:function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m),focusedValue:v,clearFocusValueOnUpdate:!1}}var g=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},y=a,b=i&&c;return i&&!b&&(y={value:Of(p,d,d[0]||null),options:d,action:"initial-input-focus"},b=!c),"initial-input-focus"===(null==a?void 0:a.action)&&(y=null),ns(ns(ns({},h),g),{},{prevProps:e,ariaSelection:y,prevWasFocused:b})}}],(n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&hf(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(hf(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(ME):ns(ns({},ME),this.props.theme):ME}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,c=this.props,u=c.isMulti,s=c.isRtl,l=c.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:u,isRtl:s,options:l,selectOption:a,selectProps:c,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return HE(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return UE(this.props,e,t)}},{key:"filterOption",value:function(e,t){return BE(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,i=e.form,c=e.menuIsOpen,u=e.required,s=this.getComponents().Input,l=this.state,f=l.inputIsHidden,p=l.ariaSelection,d=this.commonProps,h=r||this.getElementId("input"),m=ns(ns(ns({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox"},c&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?_.createElement(s,rs({},d,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:i,type:"text",value:o},m)):_.createElement(mE,rs({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:nf,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:i,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,c=t.Placeholder,u=this.commonProps,s=this.props,l=s.controlShouldRenderValue,f=s.isDisabled,p=s.isMulti,d=s.inputValue,h=s.placeholder,m=this.state,v=m.selectValue,g=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!l)return d?null:_.createElement(c,rs({},u,{key:"placeholder",isDisabled:f,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return v.map((function(t,i){var c=t===g,s="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return _.createElement(n,rs({},u,{components:{Container:r,Label:o,Remove:a},isFocused:c,isDisabled:f,key:s,index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(d)return null;var b=v[0];return _.createElement(i,rs({},u,{data:b,isDisabled:f}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return _.createElement(e,rs({},t,{innerProps:i,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;return e&&o?_.createElement(e,rs({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return _.createElement(n,rs({},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 _.createElement(e,rs({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,i=t.MenuPortal,c=t.LoadingMessage,u=t.NoOptionsMessage,s=t.Option,l=this.commonProps,f=this.state.focusedOption,p=this.props,d=p.captureMenuScroll,h=p.inputValue,m=p.isLoading,v=p.loadingMessage,g=p.minMenuHeight,y=p.maxMenuHeight,b=p.menuIsOpen,w=p.menuPlacement,O=p.menuPosition,x=p.menuPortalTarget,k=p.menuShouldBlockScroll,S=p.menuShouldScrollIntoView,P=p.noOptionsMessage,j=p.onMenuScrollToTop,E=p.onMenuScrollToBottom;if(!b)return null;var C,D=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,i=t.isSelected,c=t.label,u=t.value,p=f===o,d=a?void 0:function(){return e.onOptionHover(o)},h=a?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),v={id:m,onClick:h,onMouseMove:d,onMouseOver:d,tabIndex:-1};return _.createElement(s,rs({},l,{innerProps:v,data:o,isDisabled:a,isSelected:i,key:m,label:c,type:r,value:u,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())C=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,a=t.options,i=t.index,c="".concat(e.getElementId("group"),"-").concat(i),u="".concat(c,"-heading");return _.createElement(n,rs({},l,{key:c,data:o,options:a,Heading:r,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return D(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return D(t,"".concat(t.index))}));else if(m){var T=v({inputValue:h});if(null===T)return null;C=_.createElement(c,l,T)}else{var M=P({inputValue:h});if(null===M)return null;C=_.createElement(u,l,M)}var I={minMenuHeight:g,maxMenuHeight:y,menuPlacement:w,menuPosition:O,menuShouldScrollIntoView:S},N=_.createElement(Pf,rs({},l,I),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,c=r.maxHeight;return _.createElement(o,rs({},l,I,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:m,placement:i}),_.createElement(jE,{captureEnabled:d,onTopArrive:j,onBottomArrive:E,lockEnabled:k},(function(t){return _.createElement(a,rs({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:m,maxHeight:c,focusedOption:f}),C)})))}));return x||"fixed"===O?_.createElement(i,rs({},l,{appendTo:x,controlElement:this.controlRef,menuPlacement:w,menuPosition:O}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=t.required,c=this.state.selectValue;if(i&&!this.hasValue()&&!r)return _.createElement(CE,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(o){if(n){var u=c.map((function(t){return e.getOptionValue(t)})).join(n);return _.createElement("input",{name:a,type:"hidden",value:u})}var s=c.length>0?c.map((function(t,n){return _.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):_.createElement("input",{name:a,type:"hidden",value:""});return _.createElement("div",null,s)}var l=c[0]?this.getOptionValue(c[0]):"";return _.createElement("input",{name:a,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.isFocused,i=t.selectValue,c=this.getFocusableOptions();return _.createElement(rE,rs({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:a,selectValue:i,focusableOptions:c}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,i=a.className,c=a.id,u=a.isDisabled,s=a.menuIsOpen,l=this.state.isFocused,f=this.commonProps=this.getCommonProps();return _.createElement(r,rs({},f,{className:i,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:l}),this.renderLiveRegion(),_.createElement(t,rs({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:l,menuIsOpen:s}),_.createElement(o,rs({},f,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),_.createElement(n,rs({},f,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}])&&Vj(t.prototype,n),r&&Vj(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(_.Component);zE.defaultProps=IE;var VE=(0,_.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,a=e.defaultValue,i=void 0===a?null:a,c=e.inputValue,u=e.menuIsOpen,s=e.onChange,l=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,d=e.value,h=Nl(e,zj),m=Il((0,_.useState)(void 0!==c?c:n),2),v=m[0],g=m[1],y=Il((0,_.useState)(void 0!==u?u:o),2),b=y[0],w=y[1],O=Il((0,_.useState)(void 0!==d?d:i),2),x=O[0],k=O[1],S=(0,_.useCallback)((function(e,t){"function"==typeof s&&s(e,t),k(e)}),[s]),P=(0,_.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),g(void 0!==n?n:e)}),[l]),j=(0,_.useCallback)((function(){"function"==typeof p&&p(),w(!0)}),[p]),E=(0,_.useCallback)((function(){"function"==typeof f&&f(),w(!1)}),[f]),C=void 0!==c?c:v,D=void 0!==u?u:b,T=void 0!==d?d:x;return ns(ns({},h),{},{inputValue:C,menuIsOpen:D,onChange:S,onInputChange:P,onMenuClose:E,onMenuOpen:j,value:T})}(e);return _.createElement(zE,rs({ref:t},n))}));function qE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function GE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qE(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const KE=(0,h.ZP)((function(e){var t;return(0,L.jsx)("span",GE(GE({},e.innerProps),{},{children:(0,L.jsx)(Id,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t}))})}))}));function XE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function QE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XE(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const $E=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,L.jsx)(ep.DropdownIndicator,QE(QE({},e),{},{children:(0,L.jsx)(Zp,{children:(0,L.jsx)(Id,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};var JE,eC,tC;function nC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nC(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var oC=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},aC=function(e,t){return function(n){n.stopPropagation(),e(t)}},iC=function(e,t){return function(n){n.stopPropagation(),e(t)}},cC=function(e){e.stopPropagation()};const uC=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,a=t.isDisabled,i=t.hasDocsTreeSearch,c=t.hasAdvancedSearch,u=t.createPermission,s=t.value,l=t.isMulti,f=t.inputValue,p=l&&(c||i);return(0,L.jsx)(Np,{isTopAligned:p,children:(0,L.jsxs)(ep.IndicatorsContainer,rC(rC({},e),{},{children:[e.children,n&&!a&&(0,L.jsx)("span",{onTouchEnd:cC,onMouseDown:aC(n,s),children:JE||(JE=(0,L.jsx)(Id,{icon:"folder",tabIndex:-1}))}),r&&!a&&(0,L.jsx)("span",{onTouchEnd:cC,onMouseDown:oC(r,f,s),children:eC||(eC=(0,L.jsx)(Id,{icon:"search",tabIndex:-1}))}),u&&!a&&(0,L.jsx)("span",{onTouchEnd:cC,onMouseDown:iC(o,s),children:tC||(tC=(0,L.jsx)(Id,{icon:"plus",tabIndex:-1}))})]}))})};var sC;const lC=function(){return sC||(sC=(0,L.jsx)("span",{children:(0,L.jsx)(Hc,{size:"1.8rem"})}))};function fC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fC(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const dC=function(e){var t=e.selectProps,n=e.children;return(0,L.jsx)(Rp,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,L.jsx)("div",{ref:e})},renderElement:function(r){return(0,L.jsx)("div",{ref:r,className:zt,children:(0,L.jsx)(Ap,pC(pC({},Av()(e,["innerRef"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,children:n}))})}})};function hC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hC(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const vC=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,L.jsxs)(ep.MenuList,mC(mC({},e),{},{className:"MenuList",children:[n,r&&(0,L.jsx)(Lp,{children:o})]}))};function gC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gC(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const bC=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,a=o.tooltips,i=o.loadTooltip,c=o.DetailLink,u=Aa()(a,t.key,null),s=(0,L.jsx)("span",yC(yC({},n),{},{children:r})),l=c?(0,L.jsx)(Tp,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,L.jsx)(c,{entityKey:t.key,tabIndex:-1,children:(0,L.jsx)(_a,{content:u?(0,L.jsx)("div",{dangerouslySetInnerHTML:{__html:Da.sanitizeHtml(u)}}):null,children:(0,L.jsx)("span",{onMouseOver:function(){return i&&!u&&i(t.key)},children:s})})})}):s;return(0,L.jsx)(Up,{children:l})};var wC=i(14176),OC=i.n(wC);function xC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xC(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var SC=["linkComp"],PC=function(e,t){var n=Qi(e,t),r=OC()(Av()(n,SC),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},_C=(0,_.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&Gr()(n)?(0,L.jsx)(Tp,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,L.jsx)(t,{entityKey:n,children:r})}):r}),PC);_C.propTypes={children:Ed().node,entityKey:Ed().any,linkComp:Ed().func};const jC=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,a=n.tooltips,i=n.loadTooltip,c=n.DetailLink,u=Aa()(a,t.key,null);return(0,L.jsx)(ep.SingleValue,kC(kC({},e),{},{children:(0,L.jsx)(Fp,{onMouseOver:function(){return i&&!u&&i(t.key)},isDisabled:r,children:(0,L.jsx)(_a,{content:u?(0,L.jsx)("div",{dangerouslySetInnerHTML:{__html:Da.sanitizeHtml(u)}}):null,children:(0,L.jsx)(_C,{linkComp:c,entityKey:t.key,children:o})})})}))};function EC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var CC=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const DC=function(e){var t=e.selectProps,n=e.hasValue,r=e.children,o=t.isMulti,a=t.hasAdvancedSearch,i=t.hasDocsTreeSearch,c=t.isDisabled;if(!(o&&(a||i)))return(0,L.jsx)(ep.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EC(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var u=_.Children.map(r,(function(e){return CC(e)?e:null})),s=_.Children.map(r,(function(e){return CC(e)?null:e})),l=c&&n;return(0,L.jsxs)(L.Fragment,{children:[!l&&(0,L.jsx)(L.Fragment,{children:u}),(0,L.jsx)(Hp,{children:s})]})};function TC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TC(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const IC=(0,T.Zz)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,a=e.isMulti,i=e.loadTooltip,c=e.moreOptionsAvailable,u=e.moreOptionsAvailableText,s=e.noResultsText,l=e.noResultsComp,f=e.onChange,p=e.openDocsTreeSearch,d=e.openAdvancedSearch,h=e.options,m=e.searchOptions,v=e.theme,g=e.tooltips,y=e.value,b=e.DetailLink,w=e.createPermission,O=e.openRemoteCreate,x=(0,_.useRef)(null),k=(0,_.useRef)(null),S=function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.clientWidth)||300},P=function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.clientHeight)||35},j=(0,_.useState)(S()),E=ma()(j,2),C=E[0],D=E[1],T=(0,_.useState)(P()),M=ma()(T,2),I=M[0],N=M[1],R=(0,_.useState)(!1),A=ma()(R,2),F=A[0],Z=A[1],H=function(e){t&&t(e)},U=(0,_.useCallback)(m||function(){},[]),B=(0,_.useCallback)(Yj()(U,800,{trailing:!0}),[]),W=Boolean(d),Y=Boolean(p),z=Boolean(w);return(0,L.jsx)(Mp,{tabIndex:"-1",id:n,onFocus:function(){x.current.focus(),setTimeout((function(){D(S()),N(P())}),0)},children:(0,L.jsx)(Ip,{ref:k,children:(0,L.jsx)(VE,MC(MC({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:C,wrapperHeight:I,components:{ClearIndicator:KE,LoadingIndicator:lC,DropdownIndicator:$E,IndicatorsContainer:uC,IndicatorSeparator:null,Menu:dC,MenuList:vC,MultiValueLabel:bC,SingleValue:jC,ValueContainer:DC},noOptionsMessage:function(e){return s||("function"==typeof l?(0,L.jsx)(l,MC({},e)):" - ")},isMulti:a,closeMenuOnSelect:!a,isSearchable:!0},m?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,value:y||null,onChange:function(e){f(e),H(e)},onInputChange:function(e,t){var n=t.action;m&&e&&B(e,y),""===e&&"input-change"===n&&H(y)},options:ge()(h||[]),onKeyDown:function(e){"Enter"===e.key&&F?(e.stopPropagation(),x.current&&null===x.current.focusedOptionRef&&e.preventDefault()):"Tab"===e.key&&(e.preventDefault=function(){})},isLoading:o,isDisabled:r,ref:x,onMenuOpen:function(){H(y),Z(!0)},onMenuClose:function(){Z(!1)},styles:Bp(v),loadTooltip:i,tooltips:g,DetailLink:b,hasDocsTreeSearch:Y,openDocsTreeSearch:p,hasAdvancedSearch:W,openAdvancedSearch:d,moreOptionsAvailable:c,moreOptionsAvailableText:u,blurInputOnSelect:!1,hasCreatePermission:z,createPermission:w,openRemoteCreate:O,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const NC=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.options,a=o.trueLabel,i=o.falseLabel,c=e.onChange;return(0,L.jsx)(IC,{id:t,immutable:n,isMulti:!1,onChange:function(e){return c(e?e.key:null)},value:Bj()(r)?r:{key:r,display:r?a:i},openMenuOnClick:!0,options:[{key:!0,display:a},{key:!1,display:i}]})};var RC,AC=T.ZP.div.withConfig({displayName:"StyledBoolEdit"})(RC||(RC=D()(["\n margin: 5px 0;\n"])));const LC=function(e){return(0,L.jsx)(AC,{children:(0,L.jsx)("input",{type:"checkbox",checked:e.value||!1,name:e.name,onChange:function(t){e.onChange&&e.onChange(t.target.checked)},id:e.id,disabled:e.immutable})})};var FC,ZC,HC=T.ZP.div.withConfig({displayName:"StyledOption"})(FC||(FC=D()(["\n margin: "," 0;\n"])),R.Z.space(-1.4)),UC=T.ZP.span.withConfig({displayName:"StyledLabel"})(ZC||(ZC=D()(["\n ","\n display: inline-block;\n margin-left: ",";\n vertical-align: middle;\n"])),(0,M.Z)(),R.Z.space(-1.5));function BC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BC(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var YC={single:"radio",multiple:"checkbox"},zC={single:{checked:!1},multiple:{}},VC=function(e,t){return t?(0,L.jsx)(Ta,{value:e}):e},qC=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.labelComponent,a=e.checked,i=e.immutable,c=e.hideCheckbox,u=e.selectionType,s=e.renderHtmlInOptions,l=e.handleChange;return(0,L.jsxs)(HC,{children:[!c&&(0,L.jsx)("input",{name:t,type:YC[u],checked:a||!1,onChange:l,id:n,disabled:i}),(0,L.jsx)(UC,{children:o||VC(r,s)})]})};const GC=function(e){var t=e.onChange,n=e.value,r=e.options,o=e.id,a=e.immutable,i=function(e){if(t){var o=n.options.map((function(t){return WC(WC({},t),t.id===e.target.id?{checked:e.target.checked}:zC[r.selectionType])}));t({options:o})}};return(0,L.jsx)(L.Fragment,{children:n.options.map((function(e){return(0,L.jsx)(qC,{groupName:o,id:e.id,label:e.label,labelComponent:e.labelComponent,checked:e.checked,immutable:a||e.immutable,hideCheckbox:e.hideCheckbox,selectionType:r.selectionType,renderHtmlInOptions:r.renderHtmlInOptions,handleChange:i},e.id)}))})};var KC=i(23279),XC=i.n(KC);function QC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QC(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var JC=(0,_.lazy)((function(){return Promise.all([i.e(560),i.e(85)]).then(i.bind(i,24295))}));const eD=function(e){return(0,L.jsx)(_.Suspense,{fallback:(t=e.value,(0,L.jsx)("div",{children:(0,L.jsx)("p",{children:t})})),children:(0,L.jsx)(JC,$C({},e))});var t};var tD,nD=T.ZP.div.withConfig({displayName:"StyledEditorWrapper"})(tD||(tD=D()(["\n margin-top: ",";\n"])),R.Z.space(-1.5));const rD=function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options;return(0,L.jsx)(nD,{children:(0,L.jsx)(eD,{value:t,onChange:XC()(n,1e3),autoFocusOnMount:o.autoFocusOnMount,mode:o.mode,theme:"textmate",showGutter:!0,editorOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,minLines:5,maxLines:50,readOnly:r,wrap:!0,indentedSoftWrap:!1},implicitModel:o.implicitModel})})};var oD=i(16721),aD={};aD.styleTagTransform=IO(),aD.setAttributes=CO(),aD.insert=jO().bind(null,"head"),aD.domAPI=PO(),aD.insertStyleElement=TO();kO()(oD.Z,aD);oD.Z&&oD.Z.locals&&oD.Z.locals;var iD=i(9198),cD=i.n(iD),uD=(Math.pow(10,8),6e4),sD=36e5;var lD={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},fD=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,pD=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,dD=/^([+-])(\d{2})(?::?(\d{2}))?$/;function hD(e){var t,n={},r=e.split(lD.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],lD.timeZoneDelimiter.test(n.date)&&(n.date=e.split(lD.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=lD.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}function mD(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}function vD(e,t){if(null===t)return new Date(NaN);var n=e.match(fD);if(!n)return new Date(NaN);var r=!!n[4],o=gD(n[1]),a=gD(n[2])-1,i=gD(n[3]),c=gD(n[4]),u=gD(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,c,u)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}(t,c,u):new Date(NaN);var s=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(OD[t]||(xD(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(xD(e)?366:365)}(t,o)?(s.setUTCFullYear(t,a,Math.max(o,i)),s):new Date(NaN)}function gD(e){return e?parseInt(e):1}function yD(e){var t=e.match(pD);if(!t)return NaN;var n=bD(t[1]),r=bD(t[2]),o=bD(t[3]);return function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o)?n*sD+r*uD+1e3*o:NaN}function bD(e){return e&&parseFloat(e.replace(",","."))||0}function wD(e){if("Z"===e)return 0;var t=e.match(dD);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?n*(r*sD+o*uD):NaN}var OD=[31,null,31,30,31,30,31,31,30,31,30,31];function xD(e){return e%400==0||e%4==0&&e%100!=0}var kD,SD,PD,_D=T.ZP.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(kD||(kD=D()(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),jD=T.ZP.div.withConfig({displayName:"StyledDatePickerWrapper"})(SD||(SD=D()(["\n &&&& {\n ","\n\n & .react-datepicker__input-container {\n & input {\n ","\n width: calc(100% - 5px);\n }\n }\n\n & .react-datepicker {\n & .react-datepicker__today-button {\n ","\n }\n }\n }\n"])),Ej,Dj,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),ED=T.ZP.input.withConfig({displayName:"StyledTimeInput"})(PD||(PD=D()(["\n &&&& {\n ","\n }\n"])),Dj);function CD(e){to(1,arguments);var t=ro(e),n=t.getSeconds();return n}function DD(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 TD(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return DD(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)?DD(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function MD(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function ID(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ND(e,t){return(ND=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function RD(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ND(e,t)}function AD(e){return(AD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function LD(e,t){if(t&&("object"===eo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ID(e)}function FD(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=AD(e);if(t){var o=AD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return LD(this,n)}}function ZD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HD(e){var t=function(e,t){if("object"!==eo(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==eo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===eo(t)?t:String(t)}function UD(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,HD(r.key),r)}}function BD(e,t,n){return t&&UD(e.prototype,t),n&&UD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function WD(e,t,n){return(t=HD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var YD=function(){function e(){ZD(this,e),WD(this,"priority",void 0),WD(this,"subPriority",0)}return BD(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),zD=function(e){RD(n,e);var t=FD(n);function n(e,r,o,a,i){var c;return ZD(this,n),(c=t.call(this)).value=e,c.validateValue=r,c.setValue=o,c.priority=a,i&&(c.subPriority=i),c}return BD(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(YD),VD=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",10),WD(ID(e),"subPriority",-1),e}return BD(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(YD),qD=function(){function e(){ZD(this,e),WD(this,"incompatibleTokens",void 0),WD(this,"priority",void 0),WD(this,"subPriority",void 0)}return BD(e,[{key:"run",value:function(e,t,n,r){var o=this.parse(e,t,n,r);return o?{setter:new zD(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),GD=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",140),WD(ID(e),"incompatibleTokens",["R","u","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(qD),KD=/^(1[0-2]|0?\d)/,XD=/^(3[0-1]|[0-2]?\d)/,QD=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,$D=/^(5[0-3]|[0-4]?\d)/,JD=/^(2[0-3]|[0-1]?\d)/,eT=/^(2[0-4]|[0-1]?\d)/,tT=/^(1[0-1]|0?\d)/,nT=/^(1[0-2]|0?\d)/,rT=/^[0-5]?\d/,oT=/^[0-5]?\d/,aT=/^\d/,iT=/^\d{1,2}/,cT=/^\d{1,3}/,uT=/^\d{1,4}/,sT=/^-?\d+/,lT=/^-?\d/,fT=/^-?\d{1,2}/,pT=/^-?\d{1,3}/,dT=/^-?\d{1,4}/,hT=/^([+-])(\d{2})(\d{2})?|Z/,mT=/^([+-])(\d{2})(\d{2})|Z/,vT=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,gT=/^([+-])(\d{2}):(\d{2})|Z/,yT=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function bT(e,t){return e?{value:t(e.value),rest:e.rest}:e}function wT(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function OT(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(o*sD+a*uD+1e3*i),rest:t.slice(n[0].length)}}function xT(e){return wT(sT,e)}function kT(e,t){switch(e){case 1:return wT(aT,t);case 2:return wT(iT,t);case 3:return wT(cT,t);case 4:return wT(uT,t);default:return wT(new RegExp("^\\d{1,"+e+"}"),t)}}function ST(e,t){switch(e){case 1:return wT(lT,t);case 2:return wT(fT,t);case 3:return wT(pT,t);case 4:return wT(dT,t);default:return wT(new RegExp("^-?\\d{1,"+e+"}"),t)}}function PT(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function _T(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var a=o+50;n=e+100*Math.floor(a/100)-(e>=a%100?100:0)}return r?n:1-n}function jT(e){return e%400==0||e%4==0&&e%100!=0}var ET=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",130),WD(ID(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return bT(kT(4,e),r);case"yo":return bT(n.ordinalNumber(e,{unit:"year"}),r);default:return bT(kT(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=_T(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(qD),CT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",130),WD(ID(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return bT(kT(4,e),r);case"Yo":return bT(n.ordinalNumber(e,{unit:"year"}),r);default:return bT(kT(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,r){var o=yo(e,r);if(n.isTwoDigitYear){var a=_T(n.year,o);return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),go(e,r)}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),go(e,r)}}]),n}(qD),DT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",130),WD(ID(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t){return ST("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),so(r)}}]),n}(qD),TT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",130),WD(ID(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t){return ST("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(qD),MT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",120),WD(ID(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return kT(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(qD),IT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",120),WD(ID(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return kT(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(qD),NT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),WD(ID(e),"priority",110),e}return BD(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return bT(wT(KD,e),r);case"MM":return bT(kT(2,e),r);case"Mo":return bT(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(qD),RT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",110),WD(ID(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return bT(wT(KD,e),r);case"LL":return bT(kT(2,e),r);case"Lo":return bT(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(qD);var AT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",100),WD(ID(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return wT($D,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return kT(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return go(function(e,t,n){to(2,arguments);var r=ro(e),o=ao(t),a=Oo(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*a),r}(e,n,r),r)}}]),n}(qD);var LT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",100),WD(ID(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return wT($D,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return kT(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return so(function(e,t){to(2,arguments);var n=ro(e),r=ao(t),o=ho(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n))}}]),n}(qD),FT=[31,28,31,30,31,30,31,31,30,31,30,31],ZT=[31,29,31,30,31,30,31,31,30,31,30,31],HT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",90),WD(ID(e),"subPriority",1),WD(ID(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return wT(XD,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return kT(t.length,e)}}},{key:"validate",value:function(e,t){var n=jT(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=ZT[r]:t>=1&&t<=FT[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(qD),UT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",90),WD(ID(e),"subpriority",1),WD(ID(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return wT(QD,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return kT(t.length,e)}}},{key:"validate",value:function(e,t){return jT(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(qD);function BT(e,t,n){var r,o,a,i,c,u,s,l;to(2,arguments);var f=vo(),p=ao(null!==(r=null!==(o=null!==(a=null!==(i=null==n?void 0:n.weekStartsOn)&&void 0!==i?i:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==a?a:f.weekStartsOn)&&void 0!==o?o:null===(s=f.locale)||void 0===s||null===(l=s.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=ro(e),h=ao(t),m=d.getUTCDay(),v=h%7,g=(v+7)%7,y=(g<p?7:0)+h-m;return d.setUTCDate(d.getUTCDate()+y),d}var WT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",90),WD(ID(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=BT(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(qD),YT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",90),WD(ID(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return bT(kT(t.length,e),o);case"eo":return bT(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=BT(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(qD),zT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",90),WD(ID(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return bT(kT(t.length,e),o);case"co":return bT(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=BT(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(qD);var VT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",90),WD(ID(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return kT(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return bT(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return bT(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return bT(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiii":default:return bT(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return(e=function(e,t){to(2,arguments);var n=ao(t);n%7==0&&(n-=7);var r=1,o=ro(e),a=o.getUTCDay(),i=((n%7+7)%7<r?7:0)+n-a;return o.setUTCDate(o.getUTCDate()+i),o}(e,n)).setUTCHours(0,0,0,0),e}}]),n}(qD),qT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",80),WD(ID(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(PT(n),0,0,0),e}}]),n}(qD),GT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",80),WD(ID(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(PT(n),0,0,0),e}}]),n}(qD),KT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",80),WD(ID(e),"incompatibleTokens",["a","b","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(PT(n),0,0,0),e}}]),n}(qD),XT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",70),WD(ID(e),"incompatibleTokens",["H","K","k","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return wT(nT,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return kT(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(qD),QT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",70),WD(ID(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return wT(JD,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return kT(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(qD),$T=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",70),WD(ID(e),"incompatibleTokens",["h","H","k","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return wT(tT,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return kT(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(qD),JT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",70),WD(ID(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return wT(eT,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return kT(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}(qD),eM=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",60),WD(ID(e),"incompatibleTokens",["t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return wT(rT,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return kT(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(qD),tM=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",50),WD(ID(e),"incompatibleTokens",["t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return wT(oT,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return kT(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(qD),nM=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",30),WD(ID(e),"incompatibleTokens",["t","T"]),e}return BD(n,[{key:"parse",value:function(e,t){return bT(kT(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(qD),rM=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",10),WD(ID(e),"incompatibleTokens",["t","T","x"]),e}return BD(n,[{key:"parse",value:function(e,t){switch(t){case"X":return OT(hT,e);case"XX":return OT(mT,e);case"XXXX":return OT(vT,e);case"XXXXX":return OT(yT,e);case"XXX":default:return OT(gT,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(qD),oM=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",10),WD(ID(e),"incompatibleTokens",["t","T","X"]),e}return BD(n,[{key:"parse",value:function(e,t){switch(t){case"x":return OT(hT,e);case"xx":return OT(mT,e);case"xxxx":return OT(vT,e);case"xxxxx":return OT(yT,e);case"xxx":default:return OT(gT,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(qD),aM=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",40),WD(ID(e),"incompatibleTokens","*"),e}return BD(n,[{key:"parse",value:function(e){return xT(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(qD),iM=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",20),WD(ID(e),"incompatibleTokens","*"),e}return BD(n,[{key:"parse",value:function(e){return xT(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(qD),cM={G:new GD,y:new ET,Y:new CT,R:new DT,u:new TT,Q:new MT,q:new IT,M:new NT,L:new RT,w:new AT,I:new LT,d:new HT,D:new UT,E:new WT,e:new YT,c:new zT,i:new VT,a:new qT,b:new GT,B:new KT,h:new XT,H:new QT,K:new $T,k:new JT,m:new eM,s:new tM,S:new nM,X:new rM,x:new oM,t:new aM,T:new iM},uM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,sM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,lM=/^'([^]*?)'?$/,fM=/''/g,pM=/\S/,dM=/[a-zA-Z]/;function hM(e,t,n,r){var o,a,i,c,u,s,l,f,p,d,h,m,v,g,y,b,w,O;to(3,arguments);var x=String(e),k=String(t),S=vo(),P=null!==(o=null!==(a=null==r?void 0:r.locale)&&void 0!==a?a:S.locale)&&void 0!==o?o:ea;if(!P.match)throw new RangeError("locale must contain match property");var _=ao(null!==(i=null!==(c=null!==(u=null!==(s=null==r?void 0:r.firstWeekContainsDate)&&void 0!==s?s:null==r||null===(l=r.locale)||void 0===l||null===(f=l.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==u?u:S.firstWeekContainsDate)&&void 0!==c?c:null===(p=S.locale)||void 0===p||null===(d=p.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==i?i:1);if(!(_>=1&&_<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var j=ao(null!==(h=null!==(m=null!==(v=null!==(g=null==r?void 0:r.weekStartsOn)&&void 0!==g?g:null==r||null===(y=r.locale)||void 0===y||null===(b=y.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==v?v:S.weekStartsOn)&&void 0!==m?m:null===(w=S.locale)||void 0===w||null===(O=w.options)||void 0===O?void 0:O.weekStartsOn)&&void 0!==h?h:0);if(!(j>=0&&j<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===x?ro(n):new Date(NaN);var E,C={firstWeekContainsDate:_,weekStartsOn:j,locale:P},D=[new VD],T=k.match(sM).map((function(e){var t=e[0];return t in Ao?(0,Ao[t])(e,P.formatLong):e})).join("").match(uM),M=[],I=TD(T);try{var N=function(){var t=E.value;null!=r&&r.useAdditionalWeekYearTokens||!Uo(t)||Bo(t,k,e),null!=r&&r.useAdditionalDayOfYearTokens||!Ho(t)||Bo(t,k,e);var n=t[0],o=cM[n];if(o){var a=o.incompatibleTokens;if(Array.isArray(a)){var i=M.find((function(e){return a.includes(e.token)||e.token===n}));if(i)throw new RangeError("The format string mustn't contain `".concat(i.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===o.incompatibleTokens&&M.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));M.push({token:n,fullToken:t});var c=o.run(x,t,P.match,C);if(!c)return{v:new Date(NaN)};D.push(c.setter),x=c.rest}else{if(n.match(dM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=mM(t)),0!==x.indexOf(t))return{v:new Date(NaN)};x=x.slice(t.length)}};for(I.s();!(E=I.n()).done;){var R=N();if("object"===eo(R))return R.v}}catch(e){I.e(e)}finally{I.f()}if(x.length>0&&pM.test(x))return new Date(NaN);var A=D.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return D.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),L=ro(n);if(isNaN(L.getTime()))return new Date(NaN);var F,Z=co(L,Lo(L)),H={},U=TD(A);try{for(U.s();!(F=U.n()).done;){var B=F.value;if(!B.validate(Z,C))return new Date(NaN);var W=B.set(Z,H,C);Array.isArray(W)?(Z=W[0],MD(H,W[1])):Z=W}}catch(e){U.e(e)}finally{U.f()}return Z}function mM(e){return e.match(lM)[1].replace(fM,"'")}function vM(e,t,n){return to(2,arguments),oo(hM(e,t,new Date,n))}var gM="react-datepicker-time__input",yM="react-datepicker__day",bM="react-datepicker__input",wM=function(e){return e.classList.contains(yM)},OM=function(e){return e.classList.contains(gM)},xM=function(e){return e.classList.contains(bM)},kM=function(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,a=void 0===o?0:o,i=t.second;return Va(Ga(Xa(e,void 0===i?0:i),a),r)},SM=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(yM,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},PM=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},_M=function(e){var t=function(e,t){var n;to(1,arguments);var r=ao(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,a=hD(e);if(a.date){var i=mD(a.date,r);o=vD(i.restDateString,i.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var c,u=o.getTime(),s=0;if(a.time&&(s=yD(a.time),isNaN(s)))return new Date(NaN);if(!a.timezone){var l=new Date(u+s),f=new Date(0);return f.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),f.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),f}return c=wD(a.timezone),isNaN(c)?new Date(NaN):new Date(u+s+c)}(e);return isNaN(t)?null:t},jM=function(e){return e?e.toISOString():null};const EM=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,a=n.minDate,i=n.maxDate,c=n.hasTime,u=n.valueToDate,s=void 0===u?_M:u,l=n.dateToValue,f=void 0===l?jM:l,p=(0,_.useRef)(null),d=(0,_.useState)(!1),h=ma()(d,2),m=h[0],v=h[1],g=(0,_.useState)(!1),y=ma()(g,2),b=y[0],w=y[1],O=s(e),x=a?s(a):void 0,k=i?s(i):void 0;(0,_.useEffect)((function(){(p.current&&"function"==typeof p.current.setOpen&&p.current.setOpen(m),m)&&document.querySelectorAll("button.react-datepicker__navigation").forEach((function(e){return e.setAttribute("tabindex","-1")}))}),[m]);var S=function(){return v(!1)},P=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(p.current&&"function"==typeof p.current.getPreSelection){var t,n=e?p.current.getPreSelection():null;return(null===(t=p.current.state)||void 0===t?void 0:t.preSelection)||n}return null},j=function(e){p.current&&"function"==typeof p.current.setPreSelection&&p.current.setPreSelection(e)},E=function(){t(null),j(null)},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=P(!1);if(n){var r=O||new Date,o=t?kM(n,{hour:qa(r),minute:Ka(r),second:CD(r)}):n;D(o,e)}},D=function(n,r){if(n){var a,i=!e&&Boolean(n),u=null==r||null===(a=r.target)||void 0===a?void 0:a.value,s=!!u&&o.some((function(e){return vM(u,e)})),l=function(e){to(1,arguments);var t=ro(e);return t.setHours(0,0,0,0),t}(n),d=qa(n)!==qa(l)||Ka(n)!==Ka(l);(i&&!d||s)&&c&&(n=Mi(n)),t(f(n))}else E();var h;c||"click"!==(null==r?void 0:r.type)||(S(),PM(null===(h=p.current)||void 0===h?void 0:h.input))},T=function(e){if("Tab"===e.key)if(e.shiftKey)if(xM(e.target))setTimeout((function(){return S()}),0);else if(OM(e.target)){var t,n;j(O||P(!0)),SM(null===(t=p.current)||void 0===t||null===(n=t.calendar)||void 0===n?void 0:n.componentNode)}else wM(e.target)&&S();else xM(e.target)&&m?(C(e),setTimeout((function(){return S()}),0)):OM(e.target)?S():wM(e.target)&&(c?(C(e,!0),j(null),w(!0),setTimeout((function(){var e,t,n;n=null===(e=p.current)||void 0===e||null===(t=e.calendar)||void 0===t?void 0:t.componentNode,setTimeout((function(){if(n){var e=n.querySelector("input.".concat(gM));e&&e.focus({preventScroll:!0})}}),0),w(!1)}),0)):(C(e),S()));var r;"Enter"===e.key&&(S(),e.preventDefault(),e.stopPropagation(),PM(null===(r=p.current)||void 0===r?void 0:r.input));if(["ArrowDown","ArrowUp","Enter"].includes(e.key))if(m){if(m&&null===P(!1)){var o,a;j(O||P(!0)),SM(null===(o=p.current)||void 0===o||null===(a=o.calendar)||void 0===a?void 0:a.componentNode)}}else v(!0),e.key="Handled".concat(e.key)},M=function(){var e;v((function(e){return!e})),j(null),PM(null===(e=p.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{closeOnScroll:function(){return S(),!0},onClickOutside:S,onInputClick:M,onKeyDown:T,onChange:D,onCalendarOpen:function(){j(null)},onBlur:function(){p.current&&p.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:m,selected:O,showTimeInput:c,minDate:x,maxDate:k,ref:p,className:bM},timeInputProps:{onKeyDown:T,className:gM,tabIndex:b?void 0:"-1"},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),E()}},calendarButtonProps:{onClick:M,className:m?"react-datepicker-ignore-onclickoutside":""}}};var CM="HH:mm:ss",DM="HH:mm",TM=function(e){return vM(e,DM)},MM=function(e){var t=function(e){return vM(e,CM)?hM(e,CM,new Date):vM(e,DM)?hM(e,DM,new Date):vM(e,"HH:")?hM(e,"HH:",new Date):vM(e,"H")?hM(e,"H",new Date):null}(e);return t&&!isNaN(t)?function(e){return ca(e,DM)}(t):""};const IM=function(e,t){var n=MM(e),r=(0,_.useState)(n),o=ma()(r,2),a=o[0],i=o[1],c=(0,_.useRef)(a),u=th.usePrevious(n);(0,_.useEffect)((function(){u!==n&&a===u&&i(n)}),[n,a,u]);return{inputProps:{onChange:function(e){if(e.target.value!==a&&function(e){return/^(\d{0,2}|\d{1,2}:\d{0,2})$/.test(e)}(e.target.value)){var n=function(e,t){return e&&t?2!==e.length||3===t.length||e.includes(":")?e.length+1===t.length&&t.indexOf(":")===t.length-1?e.slice(0,-1):e:"".concat(e,":"):e}(e.target.value,c.current),r=n.indexOf(":"),o=n.substring(0,r),u=n.substring(r+1),s=parseInt(o,10),l=parseInt(u,10),f=!o||!Number.isNaN(s)&&s<24,p=!u||!Number.isNaN(l)&&l<60;if(!f||!p)return!1;c.current=n,i(n),n&&!TM(n)||t(n)}},onBlur:function(){if(a!==n){var e=MM(a);e&&TM(e)?(c.current=e,i(e),t(e)):i(n)}},onFocus:function(e){a&&"function"==typeof e.target.select&&e.target.select()},value:a||""},clearButtonProps:{onClick:function(){t(""),i("")}}}};var NM=["value","onChange","onKeyDown"];function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function AM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RM(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}(0,iD.registerLocale)("en",_i("en")),(0,iD.registerLocale)("en-US",_i("en")),(0,iD.registerLocale)("de-CH",_i("de-CH")),(0,iD.registerLocale)("de",_i("de")),(0,iD.registerLocale)("fr",_i("fr")),(0,iD.registerLocale)("fr-CH",_i("fr")),(0,iD.registerLocale)("it",_i("it")),(0,iD.registerLocale)("it-CH",_i("it")),(0,iD.setDefaultLocale)("de");var LM=function(e){var t=e.onChange,n=e.label;return(0,L.jsx)(Ju,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},FM=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=Jy()(e,NM),a=IM(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,L.jsx)(ED,AM(AM(AM({},a),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},ZM={strategy:"fixed"};const HM=(0,T.Zz)((0,h.ZP)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,a=e.maxDate,i=e.valueToDate,c=e.dateToValue,u=e.onChange,s=e.intl,l=e.placeholder,f=e.hasTime,p=e.dateFormats,d=void 0===p?[]:p,h=e.dateTimeFormats,m=void 0===h?[]:h,v=e.events,g=(0,_.useRef)(void 0),y=s.locale,b=function(e){return s.formatMessage({id:e})},w=(0,_.useRef)(null),O=Boolean(r),x=!t&&O,k=function(e){g.current=e,u(e)},S=EM(r,k,{dateFormats:d,dateTimeFormats:m,minDate:o,maxDate:a,valueToDate:i,dateToValue:c,hasTime:f}),P=S.reactDatePickerProps,j=S.timeInputProps,E=S.clearButtonProps,C=S.calendarButtonProps;return(0,L.jsx)(_D,{immutable:t,id:n,tabIndex:"-1",children:(0,L.jsxs)(jD,{immutable:t,ref:w,hasTime:f,onBlur:function(e){if("function"==typeof(null==v?void 0:v.onBlur)){var t=void 0!==g.current?g.current:r;v.onBlur(t)}e.stopPropagation()},children:[(0,L.jsx)(cD(),AM(AM({},P),{},{disabled:t,dateFormat:[].concat(ge()(m),ge()(d)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!1,fixedHeight:!0,showPopperArrow:!1,locale:y,customTimeInput:(0,L.jsx)(FM,AM({},j)),timeInputLabel:"",popperProps:ZM,todayButton:(0,L.jsx)(LM,{onChange:k,label:b("client.component.datePicker.todayLabel")})})),x&&(0,L.jsx)(Id,AM({icon:"times",tabIndex:-1,"aria-label":b("client.component.datePicker.clearDateLabel")},E)),!t&&(0,L.jsx)(Id,AM({icon:"calendar",tabIndex:-1},C))]})})})));function UM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const BM=function(e){var t=e.onChange,n=e.options,r=e.id,o=e.value,a=e.immutable,i=e.events,c=e.placeholder,u=(0,Qr.Z)(),s=(null==n?void 0:n.datePickerOptions)||{},l="".concat(ji(u.locale)),f=Ci(u.locale),p=[l,f,Ti(l),Ti(f)];return(0,L.jsx)(HM,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UM(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:r,value:o,onChange:t,dateFormats:p,hasTime:!1,immutable:a,placeholder:c,events:i},s))};function WM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const YM=(0,h.ZP)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,a=e.placeholder,i=(0,Qr.Z)(),c=(null==n?void 0:n.datePickerOptions)||{},u="".concat(Ei(i.locale)),s="".concat(ji(i.locale)),l=Di(i.locale),f=[u,l,Ti(u),Ti(l)],p=Ci(i.locale),d=[s,p,Ti(s),Ti(p)];return(0,L.jsx)(HM,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WM(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({value:r,onChange:t,dateTimeFormats:f,dateFormats:d,hasTime:!0,immutable:o,placeholder:a},c))}));function zM(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{u(r.next(e))}catch(e){a(e)}}function c(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}u((r=r.apply(e,t||[])).next())}))}function VM(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}Object.create;function qM(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function GM(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var KM=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function XM(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=KM.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var QM=[".DS_Store","Thumbs.db"];function $M(e){return"object"==typeof e&&null!==e}function JM(e){return rI(e.target.files).map((function(e){return XM(e)}))}function eI(e){return zM(this,void 0,void 0,(function(){return VM(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return XM(e)}))]}}))}))}function tI(e,t){return zM(this,void 0,void 0,(function(){var n;return VM(this,(function(r){switch(r.label){case 0:return e.items?(n=rI(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(oI))]):[3,2];case 1:return[2,nI(aI(r.sent()))];case 2:return[2,nI(rI(e.files).map((function(e){return XM(e)})))]}}))}))}function nI(e){return e.filter((function(e){return-1===QM.indexOf(e.name)}))}function rI(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function oI(e){if("function"!=typeof e.webkitGetAsEntry)return iI(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?uI(t):iI(e)}function aI(e){return e.reduce((function(e,t){return GM(GM([],qM(e),!1),qM(Array.isArray(t)?aI(t):[t]),!1)}),[])}function iI(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=XM(t);return Promise.resolve(n)}function cI(e){return zM(this,void 0,void 0,(function(){return VM(this,(function(t){return[2,e.isDirectory?uI(e):sI(e)]}))}))}function uI(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var a=this;t.readEntries((function(t){return zM(a,void 0,void 0,(function(){var a,i,c;return VM(this,(function(u){switch(u.label){case 0:if(t.length)return[3,5];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return a=u.sent(),e(a),[3,4];case 3:return i=u.sent(),n(i),[3,4];case 4:return[3,6];case 5:c=Promise.all(t.map(cI)),r.push(c),o(),u.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function sI(e){return zM(this,void 0,void 0,(function(){return VM(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=XM(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var lI=i(58363);function fI(e){return function(e){if(Array.isArray(e))return gI(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vI(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pI(Object(n),!0).forEach((function(t){hI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}(e,t)||vI(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vI(e,t){if(e){if("string"==typeof e)return gI(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)?gI(e,t):void 0}}function gI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var yI="file-invalid-type",bI="file-too-large",wI="file-too-small",OI="too-many-files",xI=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:yI,message:"File type must be ".concat(t)}},kI=function(e){return{code:bI,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},SI=function(e){return{code:wI,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},PI={code:OI,message:"Too many files"};function _I(e,t){var n="application/x-moz-file"===e.type||(0,lI.Z)(e,t);return[n,n?null:xI(t)]}function jI(e,t,n){if(EI(e.size))if(EI(t)&&EI(n)){if(e.size>n)return[!1,kI(n)];if(e.size<t)return[!1,SI(t)]}else{if(EI(t)&&e.size<t)return[!1,SI(t)];if(EI(n)&&e.size>n)return[!1,kI(n)]}return[!0,null]}function EI(e){return null!=e}function CI(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,a=e.multiple,i=e.maxFiles,c=e.validator;return!(!a&&t.length>1||a&&i>=1&&t.length>i)&&t.every((function(e){var t=mI(_I(e,n),1)[0],a=mI(jI(e,r,o),1)[0],i=c?c(e):null;return t&&a&&!i}))}function DI(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function TI(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function MI(e){e.preventDefault()}function II(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function NI(e){return-1!==e.indexOf("Edge/")}function RI(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return II(e)||NI(e)}function AI(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!DI(e)&&t&&t.apply(void 0,[e].concat(r)),DI(e)}))}}function LI(){return"showOpenFilePicker"in window}function FI(e){return EI(e)?[{description:"Files",accept:Object.entries(e).filter((function(e){var t=mI(e,2),n=t[0],r=t[1],o=!0;return BI(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(r)&&r.every(WI)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=mI(t,2),r=n[0],o=n[1];return dI(dI({},e),{},hI({},r,o))}),{})}]:e}function ZI(e){if(EI(e))return Object.entries(e).reduce((function(e,t){var n=mI(t,2),r=n[0],o=n[1];return[].concat(fI(e),[r],fI(o))}),[]).filter((function(e){return BI(e)||WI(e)})).join(",")}function HI(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}function UI(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}function BI(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function WI(e){return/^.*\.[\w]+$/.test(e)}var YI=["children"],zI=["open"],VI=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],qI=["refKey","onChange","onClick"];function GI(e){return function(e){if(Array.isArray(e))return QI(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||XI(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function KI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}(e,t)||XI(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function XI(e,t){if(e){if("string"==typeof e)return QI(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)?QI(e,t):void 0}}function QI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function JI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$I(Object(n),!0).forEach((function(t){eN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tN(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var nN=(0,_.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JI(JI({},rN),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,i=t.minSize,c=t.multiple,u=t.maxFiles,s=t.onDragEnter,l=t.onDragLeave,f=t.onDragOver,p=t.onDrop,d=t.onDropAccepted,h=t.onDropRejected,m=t.onFileDialogCancel,v=t.onFileDialogOpen,g=t.useFsAccessApi,y=t.autoFocus,b=t.preventDropOnDocument,w=t.noClick,O=t.noKeyboard,x=t.noDrag,k=t.noDragEventsBubbling,S=t.onError,P=t.validator,j=(0,_.useMemo)((function(){return ZI(n)}),[n]),E=(0,_.useMemo)((function(){return FI(n)}),[n]),C=(0,_.useMemo)((function(){return"function"==typeof v?v:mN}),[v]),D=(0,_.useMemo)((function(){return"function"==typeof m?m:mN}),[m]),T=(0,_.useRef)(null),M=(0,_.useRef)(null),I=KI((0,_.useReducer)(hN,dN),2),N=I[0],R=I[1],A=N.isFocused,L=N.isFileDialogActive,F=(0,_.useRef)("undefined"!=typeof window&&window.isSecureContext&&g&&LI()),Z=function(){!F.current&&L&&setTimeout((function(){M.current&&(M.current.files.length||(R({type:"closeDialog"}),D()))}),300)};(0,_.useEffect)((function(){return window.addEventListener("focus",Z,!1),function(){window.removeEventListener("focus",Z,!1)}}),[M,L,D,F]);var H=(0,_.useRef)([]),U=function(e){T.current&&T.current.contains(e.target)||(e.preventDefault(),H.current=[])};(0,_.useEffect)((function(){return b&&(document.addEventListener("dragover",MI,!1),document.addEventListener("drop",U,!1)),function(){b&&(document.removeEventListener("dragover",MI),document.removeEventListener("drop",U))}}),[T,b]),(0,_.useEffect)((function(){return!r&&y&&T.current&&T.current.focus(),function(){}}),[T,y,r]);var B=(0,_.useCallback)((function(e){S?S(e):console.error(e)}),[S]),W=(0,_.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),H.current=[].concat(GI(H.current),[e.target]),TI(e)&&Promise.resolve(o(e)).then((function(t){if(!DI(e)||k){var n=t.length,r=n>0&&CI({files:t,accept:j,minSize:i,maxSize:a,multiple:c,maxFiles:u,validator:P});R({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),s&&s(e)}})).catch((function(e){return B(e)}))}),[o,s,B,k,j,i,a,c,u,P]),Y=(0,_.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=TI(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1}),[f,k]),z=(0,_.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=H.current.filter((function(e){return T.current&&T.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),H.current=t,t.length>0||(R({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),TI(e)&&l&&l(e))}),[T,l,k]),V=(0,_.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=KI(_I(e,j),2),o=t[0],c=t[1],u=KI(jI(e,i,a),2),s=u[0],l=u[1],f=P?P(e):null;if(o&&s&&!f)n.push(e);else{var p=[c,l];f&&(p=p.concat(f)),r.push({file:e,errors:p.filter((function(e){return e}))})}})),(!c&&n.length>1||c&&u>=1&&n.length>u)&&(n.forEach((function(e){r.push({file:e,errors:[PI]})})),n.splice(0)),R({acceptedFiles:n,fileRejections:r,type:"setFiles"}),p&&p(n,r,t),r.length>0&&h&&h(r,t),n.length>0&&d&&d(n,t)}),[R,c,j,i,a,u,p,d,h,P]),q=(0,_.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),H.current=[],TI(e)&&Promise.resolve(o(e)).then((function(t){DI(e)&&!k||V(t,e)})).catch((function(e){return B(e)})),R({type:"reset"})}),[o,V,B,k]),G=(0,_.useCallback)((function(){if(F.current){R({type:"openDialog"}),C();var e={multiple:c,types:E};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){V(e,null),R({type:"closeDialog"})})).catch((function(e){HI(e)?(D(e),R({type:"closeDialog"})):UI(e)?(F.current=!1,M.current?(M.current.value=null,M.current.click()):B(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):B(e)}))}else M.current&&(R({type:"openDialog"}),C(),M.current.value=null,M.current.click())}),[R,C,D,g,V,B,E,c]),K=(0,_.useCallback)((function(e){T.current&&T.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),G()))}),[T,G]),X=(0,_.useCallback)((function(){R({type:"focus"})}),[]),Q=(0,_.useCallback)((function(){R({type:"blur"})}),[]),$=(0,_.useCallback)((function(){w||(RI()?setTimeout(G,0):G())}),[w,G]),J=function(e){return r?null:e},ee=function(e){return O?null:J(e)},te=function(e){return x?null:J(e)},ne=function(e){k&&e.stopPropagation()},re=(0,_.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.role,a=e.onKeyDown,i=e.onFocus,c=e.onBlur,u=e.onClick,s=e.onDragEnter,l=e.onDragOver,f=e.onDragLeave,p=e.onDrop,d=tN(e,VI);return JI(JI(eN({onKeyDown:ee(AI(a,K)),onFocus:ee(AI(i,X)),onBlur:ee(AI(c,Q)),onClick:J(AI(u,$)),onDragEnter:te(AI(s,W)),onDragOver:te(AI(l,Y)),onDragLeave:te(AI(f,z)),onDrop:te(AI(p,q)),role:"string"==typeof o&&""!==o?o:"presentation"},n,T),r||O?{}:{tabIndex:0}),d)}}),[T,K,X,Q,$,W,Y,z,q,O,x,r]),oe=(0,_.useCallback)((function(e){e.stopPropagation()}),[]),ae=(0,_.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,a=tN(e,qI);return JI(JI({},eN({accept:j,multiple:c,type:"file",style:{display:"none"},onChange:J(AI(r,q)),onClick:J(AI(o,oe)),tabIndex:-1},n,M)),a)}}),[M,n,c,q,r]);return JI(JI({},N),{},{isFocused:A&&!r,getRootProps:re,getInputProps:ae,rootRef:T,inputRef:M,open:J(G)})}(tN(e,YI)),o=r.open,a=tN(r,zI);return(0,_.useImperativeHandle)(t,(function(){return{open:o}}),[o]),j().createElement(_.Fragment,null,n(JI(JI({},a),{},{open:o})))}));nN.displayName="Dropzone";var rN={disabled:!1,getFilesFromEvent:function(e){return zM(this,void 0,void 0,(function(){return VM(this,(function(t){return $M(e)&&$M(e.dataTransfer)?[2,tI(e.dataTransfer,e.type)]:function(e){return $M(e)&&$M(e.target)}(e)?[2,JM(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,eI(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};nN.defaultProps=rN,nN.propTypes={children:Ed().func,accept:Ed().objectOf(Ed().arrayOf(Ed().string)),multiple:Ed().bool,preventDropOnDocument:Ed().bool,noClick:Ed().bool,noKeyboard:Ed().bool,noDrag:Ed().bool,noDragEventsBubbling:Ed().bool,minSize:Ed().number,maxSize:Ed().number,maxFiles:Ed().number,disabled:Ed().bool,getFilesFromEvent:Ed().func,onFileDialogCancel:Ed().func,onFileDialogOpen:Ed().func,useFsAccessApi:Ed().bool,autoFocus:Ed().bool,onDragEnter:Ed().func,onDragLeave:Ed().func,onDragOver:Ed().func,onDrop:Ed().func,onDropAccepted:Ed().func,onDropRejected:Ed().func,onError:Ed().func,validator:Ed().func};const oN=nN;var aN,iN,cN,uN,sN,lN,fN,pN,dN={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function hN(e,t){switch(t.type){case"focus":return JI(JI({},e),{},{isFocused:!0});case"blur":return JI(JI({},e),{},{isFocused:!1});case"openDialog":return JI(JI({},dN),{},{isFileDialogActive:!0});case"closeDialog":return JI(JI({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return JI(JI({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return JI(JI({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return JI({},dN);default:return e}}function mN(){}var vN,gN=T.ZP.section.withConfig({displayName:"StyledSection"})(aN||(aN=D()(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),yN=T.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(iN||(iN=D()(["\n display: flex;\n align-items: center;\n\n "," {\n margin: 0;\n border-radius: 50%;\n padding: ",";\n\n a:hover {\n color: unset;\n }\n }\n"])),Ku,R.Z.space(-2)),bN=T.ZP.div.withConfig({displayName:"StyledDropzone"})(cN||(cN=D()(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),Ku,N.color("backgroundItemHover")),wN=T.ZP.div.withConfig({displayName:"StyledUploadInput"})(uN||(uN=D()(["\n ","\n cursor: ",";\n background-color: ",";\n color: ",";\n padding: "," 0 0 0;\n display: flex;\n\n "," {\n float: right;\n position: relative;\n top: -",";\n margin: 0;\n border-radius: 50%;\n padding: ",";\n }\n"])),(0,M.Z)(),(function(e){return e.immutable?"not-allowed":"pointer"}),N.color("paper"),(function(e){return e.immutable?L_.shade2(e):L_.base(e)}),R.Z.space(-2),Ku,R.Z.space(-3.1),R.Z.space(-1.5)),ON=T.ZP.div.withConfig({displayName:"StyledUploadProgress"})(sN||(sN=D()(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),R.Z.space(-2)),xN=(0,T.ZP)(fr).withConfig({displayName:"StyledUploadProgressText"})(lN||(lN=D()(["\n && {\n ","\n }\n"])),(0,M.Z)({fontSize:R.Z.font(-1)})),kN=T.ZP.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(fN||(fN=D()(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),R.Z.space(-2)),SN=T.ZP.div.withConfig({displayName:"StyledView"})(pN||(pN=D()(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),R.Z.space(-2));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 _N(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){Y()(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}const jN=function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose;return(0,L.jsxs)(wN,{immutable:n,children:[(0,L.jsx)(oN,{onDrop:function(e){var n=e.map((function(e){return Object.assign(e,{preview:URL.createObjectURL(e)})}));t(n[0])},multiple:!1,disabled:n,title:r||"drag and drop or click",children:function(e){var t=e.getRootProps,n=e.getInputProps;return(0,L.jsx)(gN,{children:(0,L.jsxs)(bN,_N(_N({},t()),{},{children:[(0,L.jsx)("input",_N({},n())),vN||(vN=(0,L.jsx)(Ju,{icon:"arrow-to-top"}))]}))})}}),o&&(0,L.jsx)(Ju,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:"browse docs",iconOnly:!0})]})};var EN=function(e){var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat(1*(e/Math.pow(1024,t)).toFixed(2)," ").concat(["Bytes","KB","MB","GB","TB"][t])};const CN=function(e){var t=e.file,n=e.text;return(0,L.jsxs)(ON,{children:[(0,L.jsx)(Ya,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,L.jsxs)(kN,{children:[(0,L.jsx)(Hc,{position:Uc.Z.position.PREPEND}),(0,L.jsxs)(xN,{children:[n||"uploading"," (",EN(t.size),")"]})]})]})};function DN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DN(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const MN=function(e){var t,n=e.value,r=e.downloadTitle,o=e.immutable,a=e.onUpload,i=e.deleteTitle,c=null===(t=n.binaryLink)||void 0===t?void 0:t.startsWith("blob:");return(0,L.jsxs)(SN,{className:"StyledView",children:[(0,L.jsx)(Ya,TN(TN({alt:n.fileName},c&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,L.jsxs)(yN,{children:[!o&&(0,L.jsx)(Ju,{icon:"trash",onClick:function(){return a(null)},tabIndex:-1,title:i||"delete"}),(0,L.jsx)(Ju,{children:(0,L.jsx)(Za.Z,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:Fa.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function IN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function NN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IN(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var RN=function(e){var t=e.value,n=e.textResources,r=e.onUpload,o=e.onChoose,a=(0,_.useRef)(t),i=(0,_.useState)({isUploading:!1,previewFile:null}),c=ma()(i,2),u=c[0],s=c[1];return(0,_.useEffect)((function(){qi()(a.current,t)||s({isUploading:!1,previewFile:null}),a.current=t}),[t]),null!=t&&t.binaryLink?(0,L.jsx)(MN,NN(NN({},e),{},{deleteTitle:n.delete,downloadTitle:n.download})):u.isUploading?(0,L.jsx)(CN,NN({file:u.previewFile,text:n.uploading},e)):(0,L.jsx)(jN,NN(NN({},e),{},{onDrop:function(e){!function(e){s({isUploading:!0,previewFile:e})}(e),r(e)},onChoose:o}))};RN.defaultProps={textResources:{}};const AN=RN;var LN=function(e){return(0,L.jsx)(AN,{onUpload:function(t){null===t?e.onChange&&e.onChange(null):e.options.upload&&e.options.upload(t)},onChoose:e.options.choose,immutable:e.immutable,textResources:{upload:e.options.uploadText,uploading:e.options.uploadingText,delete:e.options.deleteText,download:e.options.downloadText},value:e.value?e.value:null})};LN.defaultProps={options:{}};const FN=LN;var ZN,HN,UN=T.ZP.input.withConfig({displayName:"StyledDurationEdit"})(ZN||(ZN=D()(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),Dj,(function(e){return e.width})),BN=T.ZP.label.withConfig({displayName:"StyledDurationEditFocusable"})(HN||(HN=D()(["\n &&& {\n align-items: center;\n display: flex;\n flex-wrap: nowrap;\n margin-bottom: 0; /* reset bootstrap */\n margin-left: ",";\n\n &:first-child {\n margin-left: 0;\n }\n\n > span {\n color: ",";\n cursor: ",";\n }\n }\n"])),R.Z.space(1),(function(e){return e.immutable?N.color("textDisabled"):N.color("text")}),(function(e){return e.immutable?"not-allowed":"default"})),WN=function(e){var t=e.value,n=e.immutable,r=e.onChange,o=e.options,a=Si(t),i=(0,_.useState)(!1),c=ma()(i,2),u=c[0],s=c[1],l=function(e,t){var n,o,i=null!==t?t:a.minutes,c=null!==e?e:a.hours;""!==i||""!==c?(i>=60&&(c=0),r((o=i,(n=c)||o?((n<0||o<0)&&(n=Nj(n),o=Nj(o)),60*(n||0)*6e4+6e4*(o||0)):null))):r(null)},f=function(){s(!0)},p=function(e){e.charCode>=48&&e.charCode<=57||45===e.charCode&&!0===o.allowNegative||e.preventDefault()},d=function(){return!0===o.allowNegative?"-?d+":"d+"},h=function(){return u||"number"==typeof t},m=function(e){return 9*(e+"").length},v=n&&Boolean(a.seconds);return(0,L.jsxs)(Cj,{onBlur:function(){s(!1)},immutable:n,children:[(0,L.jsxs)(BN,{immutable:n,children:[(0,L.jsx)(UN,{disabled:n,immutable:n,min:!0===o.allowNegative?void 0:0,onChange:function(){},onFocus:f,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");l(t,null)},onKeyPress:p,pattern:d(),step:1,width:m(a.hours),type:"number",value:"number"!=typeof a.hours||0===a.hours&&!n?"":a.hours+""}),h()&&(0,L.jsx)(zr,{children:o.hoursLabel})]}),(0,L.jsxs)(BN,{immutable:n,children:[(0,L.jsx)(UN,{disabled:n,immutable:n,min:!0!==o.allowNegative||null!==a.hours&&0!==a.hours?0:void 0,onChange:function(){},onFocus:f,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");l(null,t)},onKeyPress:p,pattern:d(),step:1,width:m(a.minutes),type:"number",value:a.minutes+""}),h()&&(0,L.jsx)(zr,{children:o.minutesLabel})]}),v&&(0,L.jsxs)(BN,{immutable:n,children:[(0,L.jsx)(UN,{disabled:n,immutable:n,onChange:function(){},width:m(a.seconds),type:"number",value:a.seconds+""}),h()&&(0,L.jsx)(zr,{children:o.secondsLabel})]})]})};WN.defaultProps={options:{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}};const YN=WN;var zN;const VN=T.ZP.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(zN||(zN=D()(["\n &&&& {\n ","\n }\n"])),Dj);const qN=th.Debouncer((function(e){return(0,L.jsxs)(Cj,{immutable:e.immutable,children:[(0,L.jsx)(VN,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||""}),e.value&&(0,L.jsx)(Mj,{children:(0,L.jsx)(Za.Z,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));var GN=i(99489),KN=i.n(GN);function XN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?XN(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $N(){$N=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var a=new RegExp(e,r);return t.set(a,o||t.get(e)),KN()(a,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var a=0;void 0===e[o[a]]&&a+1<o.length;)a++;t[n]=e[o[a]]}return t}),Object.create(null))}return O()(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var a=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=a[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var i=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=qt()(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,i)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},$N.apply(this,arguments)}var JN,eR=["key","display","postcode","city","country","latitude","longitude"],tR=function(e){return e*Math.PI/180},nR=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=e.latitude,i=e.longitude,c=t?"- ".concat(t):"",u=n?"/ ".concat(n.display):"";return{key:r,display:"".concat(r," ").concat(o," ").concat(c," ").concat(u),postcode:r,city:o,country:n,latitude:tR(a),longitude:tR(i)}};function rR(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 oR(){}function aR(e){return!!(e||"").match(/\d/)}function iR(e){return null==e}function cR(e){return"number"==typeof e&&isNaN(e)}function uR(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function sR(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 lR(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function fR(e,t){return Array(t+1).join(e)}function pR(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."+fR("0",Math.abs(i))+o:i>=c?o+=fR("0",i-c):o=(o.substring(0,i)||"0")+"."+o.substring(i),n+o}function dR(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=sR(e),a=o.beforeDecimal,i=o.afterDecimal,c=o.hasNegation,u=parseFloat("0."+(i||"0")),s=(i.length<=t?"0."+i:u.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}),s[0])+(r?".":"")+lR(s[1]||"",t,n)}function hR(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 mR(e){return Math.max(e.selectionStart,e.selectionEnd)}function vR(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function gR(e,t,n,r){var o=e.length;if(t=function(e,t,n){return Math.min(Math.max(e,t),n)}(t,0,o),"left"===r){for(;t>=0&&!n[t];)t--;-1===t&&(t=n.indexOf(!0))}else{for(;t<=o&&!n[t];)t++;t>o&&(t=n.lastIndexOf(!0))}return-1===t&&(t=o),t}function yR(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(aR(e[n])||aR(e[n-1]));return t}function bR(e,t,n,r,o,a){void 0===a&&(a=oR);var i,c,u=(0,_.useRef)(),s=(i=function(e){var t,a;return iR(e)||cR(e)?(a="",t=""):"number"==typeof e||n?(a="number"==typeof e?pR(e):e,t=r(a)):(a=o(e,void 0),t=e),{formattedValue:t,numAsString:a}},(c=(0,_.useRef)(i)).current=i,(0,_.useRef)((function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return c.current.apply(c,e)})).current),l=(0,_.useState)((function(){return s(t)})),f=l[0],p=l[1];return(0,_.useMemo)((function(){iR(e)?u.current=void 0:(u.current=s(e),p(u.current))}),[e,s]),[f,function(e,t){p({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}]}function wR(e){return e.replace(/[^0-9]/g,"")}function OR(e){return e}function xR(e){var t=e.type;void 0===t&&(t="text");var n=e.displayType;void 0===n&&(n="input");var r=e.customInput,o=e.renderText,a=e.getInputRef,i=e.format;void 0===i&&(i=OR);var c=e.removeFormatting;void 0===c&&(c=wR);var u=e.defaultValue,s=e.valueIsNumericString,l=e.onValueChange,f=e.isAllowed,p=e.onChange;void 0===p&&(p=oR);var d=e.onKeyDown;void 0===d&&(d=oR);var h=e.onMouseUp;void 0===h&&(h=oR);var m=e.onFocus;void 0===m&&(m=oR);var v=e.onBlur;void 0===v&&(v=oR);var g=e.value,y=e.getCaretBoundary;void 0===y&&(y=yR);var b=e.isValidInputCharacter;void 0===b&&(b=aR);var w=rR(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter"]),O=bR(g,u,Boolean(s),i,c,l),x=O[0],k=x.formattedValue,S=x.numAsString,P=O[1],E=(0,_.useRef)();(0,_.useEffect)((function(){var e=i(S);if(void 0===E.current||e!==E.current){var t=M.current,n=c(e,void 0);Z({formattedValue:e,numAsString:n,input:t,setCaretPosition:!0,source:JN.props,event:void 0})}}));var C=(0,_.useState)(!1),D=C[0],T=C[1],M=(0,_.useRef)(null),I=(0,_.useRef)({setCaretTimeout:null,focusTimeout:null});(0,_.useEffect)((function(){return T(!0),function(){clearTimeout(I.current.setCaretTimeout),clearTimeout(I.current.focusTimeout)}}),[]);var N=i,R=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},A=function(e,t,n){hR(e,t),I.current.setCaretTimeout=setTimeout((function(){e.value===n&&hR(e,t)}),0)},L=function(e,t,n){return gR(e,t,y(e),n)},F=function(e,t,n){var r=y(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 u=n.length,s=e.length,l={},f=new Array(u),p=0;p<u;p++){f[p]=-1;for(var d=0,h=s;d<h;d++)if(n[p]===e[d]&&!0!==l[d]){f[p]=d,l[d]=!0;break}}for(var m=r;m<u&&(-1===f[m]||!a(n[m]));)m++;var v=m===u||-1===f[m]?s:f[m];for(m=r-1;m>0&&-1===f[m];)m--;var g=-1===m||-1===f[m]?0:f[m]+1;return g>v?v:r-g<v-r?g:v}(t,k,e,n,r,b);return o=gR(t,o,r)},Z=function(e){var t=e.formattedValue;void 0===t&&(t="");var n=e.input,r=e.setCaretPosition;void 0===r&&(r=!0);var o=e.source,a=e.event,i=e.numAsString,c=e.caretPos;if(n){if(void 0===c&&r){var u=e.inputValue||n.value,s=mR(n);n.value=t,c=F(u,t,s)}n.value=t,r&&void 0!==c&&A(n,c,t)}t!==k&&function(e,t){E.current=e.formattedValue,P(e,t)}(R(t,i),{event:a,source:o})},H=!D||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",U=Object.assign({inputMode:H},w,{type:t,value:k,onChange:function(e){(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}}}(k,e),o=Object.assign(Object.assign({},r),{lastValue:k}),a=c(e,o),i=N(a);if(a=c(i,void 0),f&&!f(R(i,a))){var u=t.target,s=mR(u),l=F(e,k,s);return A(u,l,k),!1}return Z({formattedValue:i,numAsString:a,inputValue:e,event:t,source:n,setCaretPosition:!0,input:t.target}),!0})(e.target.value,e,JN.event)&&p(e)},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,a=n.selectionEnd,i=n.value;if(void 0===i&&(i=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,i.length):"Delete"===r&&(t=o),void 0!==t&&o===a){var c=t;if("ArrowLeft"===r||"ArrowRight"===r)c=L(i,t,"ArrowLeft"===r?"left":"right");else"Delete"!==r||b(i[t])?"Backspace"!==r||b(i[t])||(c=L(i,t,"left")):c=L(i,t,"right");c!==t&&A(n,c,i),e.isUnitTestRun&&A(n,c,i),d(e)}else d(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=L(o,n);a!==n&&A(t,a,o)}h(e)},onFocus:function(e){e.persist&&e.persist();var t=e.target;M.current=t,I.current.focusTimeout=setTimeout((function(){var n=t.selectionStart,r=t.selectionEnd,o=t.value;void 0===o&&(o="");var a=L(o,n);a===n||0===n&&r===o.length||A(t,a,o),m(e)}),0)},onBlur:function(e){M.current=null,clearTimeout(I.current.focusTimeout),clearTimeout(I.current.setCaretTimeout),v(e)}});if("text"===n)return o?j().createElement(j().Fragment,null,o(k,w)||null):j().createElement("span",Object.assign({},w,{ref:a}),k);if(r){var B=r;return j().createElement(B,Object.assign({},U,{ref:a}))}return j().createElement("input",Object.assign({},U,{ref:a}))}function kR(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var a=t.suffix;void 0===a&&(a="");var i=t.allowNegative,c=t.thousandsGroupStyle;if(void 0===c&&(c="thousand"),""===e||"-"===e)return e;var u=SR(t),s=u.thousandSeparator,l=u.decimalSeparator,f=0!==n&&-1!==e.indexOf(".")||n&&r,p=sR(e,i),d=p.beforeDecimal,h=p.afterDecimal,m=p.addNegation;return void 0!==n&&(h=lR(h,n,!!r)),s&&(d=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;case"thousand":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)}(d,s,c)),o&&(d=o+d),a&&(h+=a),m&&(d="-"+d),e=d+(f&&l||"")+h}function SR(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 PR(e,t,n){var r;void 0===t&&(t=vR(e));var o=n.allowNegative,a=n.prefix;void 0===a&&(a="");var i=n.suffix;void 0===i&&(i="");var c=n.decimalScale,u=t.from,s=t.to,l=s.start,f=s.end,p=SR(n),d=p.allowedDecimalSeparators,h=p.decimalSeparator,m=e[f]===h;if(aR(e)&&(e===a||e===i)&&""===t.lastValue)return e;if(f-l==1&&-1!==d.indexOf(e[l])){var v=0===c?"":h;e=e.substring(0,l)+v+e.substring(l+1,e.length)}var g=function(e,t,n){var r=!1,o=!1;a.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):i.startsWith("-")&&e.length===i.length?r=!1:"-"===e[0]&&(r=!0);var c=r?1:0;return o&&(c=2),c&&(e=e.substring(c),t-=c,n-=c),{value:e,start:t,end:n,hasNegation:r}},y=g(e,l,f),b=y.hasNegation;e=(r=y).value,l=r.start,f=r.end;var w=g(t.lastValue,u.start,u.end),O=w.start,x=w.end,k=w.value,S=e.substring(l,f);!(e.length&&k.length&&(O>k.length-i.length||x<a.length))||S&&i.startsWith(S)||(e=k);var P=0;e.startsWith(a)?P+=a.length:l<a.length&&(P=l),f-=P;var _=(e=e.substring(P)).length,j=e.length-i.length;e.endsWith(i)?_=j:(f>j||f>e.length-i.length)&&(_=f),e=e.substring(0,_);var E=(e=((e=function(e,t){void 0===e&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&t&&(e="-"+e),e}(b?"-"+e:e,o)).match(function(e,t){return new RegExp("(^-)|[0-9]|"+uR(e),t?"g":void 0)}(h,!0))||[]).join("")).indexOf(h),C=sR(e=e.replace(new RegExp(uR(h),"g"),(function(e,t){return t===E?".":""})),o),D=C.beforeDecimal,T=C.afterDecimal,M=C.addNegation;return s.end-s.start<u.end-u.start&&""===D&&m&&!parseFloat(T)&&(e=M?"-":""),e}function _R(e){var t=(e=function(e){var t=SR(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var a=e.allowNegative;if(void 0===a&&(a=!0),n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+r+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&a&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+a+"\n "),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}(e)).decimalSeparator;void 0===t&&(t=".");e.allowedDecimalSeparators,e.thousandsGroupStyle,e.suffix;var n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=oR);var a=e.onBlur;void 0===a&&(a=oR);var i=e.thousandSeparator,c=e.decimalScale,u=e.fixedDecimalScale,s=e.prefix;void 0===s&&(s="");var l=e.defaultValue,f=e.value,p=e.valueIsNumericString,d=e.onValueChange,h=rR(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=function(t){return kR(t,e)},v=function(t,n){return PR(t,n,e)},g=p;iR(f)?iR(l)||(g=null!=p?p:"number"==typeof l):g=null!=p?p:"number"==typeof f;var y=function(e){return iR(e)||cR(e)?e:("number"==typeof e&&(e=pR(e)),g&&"number"==typeof c?dR(e,c,Boolean(u)):e)},b=bR(y(f),y(l),Boolean(g),m,v,d),w=b[0],O=w.numAsString,x=w.formattedValue,k=b[1];return Object.assign(Object.assign({},h),{value:x,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===t||aR(e)},onValueChange:k,format:m,removeFormatting:v,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 r=t.target,a=t.key,l=r.selectionStart,f=r.selectionEnd,p=r.value;if(void 0===p&&(p=""),l===f){"Backspace"===a&&"-"===p[0]&&l===s.length+1&&n&&hR(r,1);var d=SR(e),h=d.decimalSeparator,m=d.allowedDecimalSeparators;"Backspace"===a&&p[l-1]===h&&c&&u&&(hR(r,l-1),t.preventDefault()),(null==m?void 0:m.includes(a))&&p[l]===h&&hR(r,l+1);var v=!0===i?",":i;"Backspace"===a&&p[l-1]===v&&hR(r,l-1),"Delete"===a&&p[l]===v&&hR(r,l+1),o(t)}else o(t)},onBlur:function(t){var n=O;if(n.match(/\d/g)||(n=""),r||(n=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}(n)),u&&c&&(n=dR(n,c,u)),n!==O){var o=kR(n,e);k({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:JN.event})}a(t)}})}function jR(e){var t=_R(e);return j().createElement(xR,Object.assign({},t))}!function(e){e.event="event",e.props="prop"}(JN||(JN={}));var ER,CR=["immutable"];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}const TR=(0,T.ZP)((function(e){e.immutable;var t=Jy()(e,CR);return(0,L.jsx)(jR,function(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){Y()(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}({},t))})).withConfig({displayName:"StyledNumberEdit"})(ER||(ER=D()(["\n &&&& {\n ","\n }\n"])),Dj);function MR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function IR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MR(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var NR=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},RR=function(e){return null!=e&&!isNaN(parseFloat(e))},AR=function(e,t,n){return!RR(n)||!(RR(t)&&n>t)&&!(RR(e)&&n<e)},LR=function(e,t){return function(n){var r=n.floatValue;return NR(r)<NR(e)||AR(e,t,r)}};const FR=(0,h.ZP)(th.Debouncer((function(e){var t,n=(t=e.intl.locale,{thousandSeparator:1111..toLocaleString(t).replace(/1/g,""),decimalSeparator:1.1.toLocaleString(t).replace(/1/g,"")}),r=n.thousandSeparator,o=n.decimalSeparator,a=e.options||{},i=a.prePointDigits,c=a.postPointDigits,u=a.minValue,s=a.maxValue,l=a.allowNegative,f=a.fixedDecimalScale,p=a.suffix,d=a.prefix,h=a.format,m=function(e,t,n){if(e){var r=Math.pow(10,e)-(t?1/Math.pow(10,t):1);return n&&n>r?n:r}return n}(i,c,s),v=IR(IR({isAllowed:LR(u,m),allowNegative:!!l},isNaN(c)?{}:{decimalScale:c}),{},{fixedDecimalScale:!!f}),g=void 0===e.value?"":e.value;return(0,L.jsx)(Cj,{immutable:e.immutable,children:(0,L.jsx)(TR,IR(IR({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&AR(u,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:g,suffix:p,prefix:d},v),{},{format:h,placeholder:e.placeholder,onBlur:function(t){var n,r=!(n=t.target.value)||isNaN(n)?null:parseFloat(n);e.onChange&&!AR(u,m,r)&&(t.target.value=null)}}))})}),800));const ZR=th.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.options,o=e.immutable,a=e.name,i=e.id,c=e.placeholder,u=r||{},s=u.minValue,l=u.maxValue,f=u.format,p=u.allowLeadingZeros,d=u.suffix,h=void 0===t?"":t;return(0,L.jsx)(Cj,{immutable:o,children:(0,L.jsx)(TR,{isAllowed:LR(s,l),allowNegative:!0,decimalScale:0,disabled:o,id:i,name:a,onValueChange:function(e){var t=e.value,r=e.floatValue,o=p?t:r;void 0===o&&(o=null),AR(s,l,r)&&n(o)},value:h,allowLeadingZeros:p,suffix:d,format:f,placeholder:c,immutable:o})})}),800);var HR,UR,BR,WR=T.ZP.div.withConfig({displayName:"StyledWrapper"})(HR||(HR=D()(["\n display: flex;\n justify-content: stretch;\n"]))),YR=T.ZP.div.withConfig({displayName:"StyledLocationWrapper"})(UR||(UR=D()(["\n flex-grow: 1;\n"]))),zR=T.ZP.div.withConfig({displayName:"StyledDistanceWrapper"})(BR||(BR=D()(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),N.color("border"),R.Z.space(-.8),R.Z.space(.5));function VR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VR(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const GR=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.onChange,a=e.options,i=void 0===a?{}:a,c=i.suggestions,u=i.isLoading,s=i.fetchSuggestions,l=i.latitudeField,f=i.longitudeField,p=i.emptySearchText,d=i.noResultsText,h=i.kmSuffixText,m=r?r.distance:0,v=function(e){return null!=e&&e.latitude&&null!=e&&e.longitude?G()(e,eR):void 0}(r),g=function(e){return e?e.map(nR):[]}(c);return(0,L.jsxs)(WR,{children:[(0,L.jsx)(YR,{children:(0,L.jsx)(IC,{id:t,immutable:n,onChange:function(e){o(qR(qR({},function(e,t){return t?QN(QN({},e),G()(t,eR)):Av()(e,eR)}(r,e)),{},{latitudeField:l,longitudeField:f}))},isLoading:u,options:g,searchOptions:function(e){var t=function(e){if(!e)return null;var t=ge()(e.matchAll($N(/([\d]*)([^\d\s]*)/g,{postcode:1,city:2}))).map((function(e){return e.groups})),n=t.find((function(e){return e.postcode})),r=t.find((function(e){return e.city}));return QN(QN({},r?{city:r.city}:{}),n?{postcode:n.postcode}:{})}(e);s(t,null)},fetchOptions:function(e){e||s(null,null)},value:v,noResultsComp:function(e){return e.inputValue?d:p}})}),(0,L.jsx)(zR,{children:(0,L.jsx)(ZR,{value:m,onChange:function(e){o(qR(qR({},r),{},{distance:e}))},immutable:n,options:{minValue:0,maxValue:100,suffix:" ".concat(h)}})})]})};var KR,XR=(0,_.lazy)((function(){return i.e(802).then(i.bind(i,78633))})),QR=function(e){var t=e.onChange,n=e.immutable,r=e.value,o=e.options;if(n)return(0,L.jsx)(zr,{children:(0,L.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})});var a=o||{},i=a.contentLang,c=a.ckEditorConfig;return(0,L.jsx)(_.Suspense,{fallback:KR||(KR=(0,L.jsx)("i",{})),children:(0,L.jsx)(XR,{onChange:function(e){t&&t(e)},value:r,contentLang:i,ckEditorConfig:c})})};QR.defaultProps={value:""};const $R=QR;var JR,eA;function tA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tA(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const rA=function(e){var t=e.onChange,n=e.options,r=e.value,o=e.id,a=e.immutable,i=e.name,c=function(e){return function(t){return t[e]}},u=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=t?"- ".concat(t):"",i=n?"/ ".concat(n.display):"";return(0,L.jsxs)(zr,{children:[r," ",o," ",a," ",i]})},s=function(e){return function(n,o){var a=o.newValue;t(nA(nA({},r),{},Y()({},e,a)))}},l=function(e,r){var o=r.suggestion;!0===o.validationRequired?n.validateLocation(o,t):t(o)},f=function(e){return function(t){var r=t.value;n.fetchSuggestions(Y()({},e,r),n.locationValues.country)}},p={id:o,value:r.postcode||"",onChange:s("postcode"),disabled:a},d={value:r.city||"",onChange:s("city"),disabled:a};return(0,L.jsx)(a_,{children:function(e){var t,o=e.focused,s=e.getRef;return(0,L.jsxs)(Aj,{immutable:a,name:i,ref:s,children:[(0,L.jsx)(jj(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:f("postcode"),getSuggestionValue:c("postcode"),renderSuggestion:u,onSuggestionsClearRequested:function(){},inputProps:p,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(o||r.city||r.postcode)&&(JR||(JR=(0,L.jsx)(zr,{children:"/"}))),(0,L.jsx)(jj(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:f("city"),getSuggestionValue:c("city"),renderSuggestion:u,onSuggestionsClearRequested:function(){},inputProps:d,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(0,L.jsxs)(Mj,{children:[n.isLoading&&(eA||(eA=(0,L.jsx)(Hc,{size:"1.8rem"}))),(t=n.locationValues,Boolean(t.city||t.postcode)&&!t.street&&(0,L.jsx)(Za.Z,{href:Rj(n.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:n.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};function oA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const aA=function(e){return(0,L.jsx)(IC,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oA(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function iA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const cA=function(e){return(0,L.jsx)(IC,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iA(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};var uA;const sA=T.ZP.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(uA||(uA=D()(["\n &&&& {\n ","\n }\n"])),Dj);const lA=function(e){var t=e.onChange,n=e.value,o=e.immutable,c=e.id,u=e.onLibLoaded,s=Aa()(e,"options.defaultCountry")||"CH",l=(0,_.useState)(null),f=ma()(l,2),p=f[0],d=f[1],h=j().createRef();(0,_.useEffect)((function(){(function(){var e=r()(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([i.e(631),i.e(877)]).then(i.bind(i,41866));case 2:t=e.sent,d(t),u&&u();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[u]);var m=function(e,t){var n=e.substring(0,t-1).match(/\s/g);return(null==n?void 0:n.length)||0},v=n&&null!=p&&p.AsYouType?new p.AsYouType(s).input(n):n||"";return(0,L.jsxs)(Cj,{immutable:o,children:[(0,L.jsx)(sA,{disabled:o||!p,id:c,name,onChange:function(e){var r=e.target.value,o=p?p.parseNumber(r,s):r,a=hS()(o)?new p.AsYouType(s).input(r).replace(/\s/g,""):p.formatNumber(o,"E.164");t(a);var i=e.target.selectionStart;!function(e,t,n){if(n&&e.length!==n){var r=new p.AsYouType(s).input(t),o=new p.AsYouType(s).input(e),a=m(r,n),i=m(o,n)-a;window.requestAnimationFrame(function(){var e=n+i;this.setSelectionRange(e,e)}.bind(h.current))}}(r,n,i)},immutable:o||!p,ref:h,value:v}),v&&(0,L.jsx)(Mj,{children:(0,L.jsx)(Za.Z,{href:"tel:".concat(n),icon:"phone",tabIndex:-1,target:"_blank",neutral:!0})})]})};function fA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fA(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dA=function(e){return e.map((function(e){return G()(e,["key","display"])}))};const hA=function(e){var t=e.id,n=e.immutable,r=e.onChange,o=e.options.isMulti,a=e.value;return(0,L.jsx)(IC,{id:t,immutable:n,isMulti:o,onChange:function(e){var t=o?e.map((function(e){return e.key})):[null==e?void 0:e.key],n=a.options.map((function(e){return pA(pA({},e),t.includes(e.key)?{selected:!0}:{selected:!1})}));r({options:n})},value:dA(a.options.filter((function(e){return e.selected}))),openMenuOnClick:!0,options:dA(a.options)})};function mA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const vA=function(e){return(0,L.jsx)(IC,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mA(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!1,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function gA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const yA=function(e){return(0,L.jsx)(IC,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gA(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function bA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const wA=function(e){return(0,L.jsx)(IC,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bA(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,immutable:e.immutable,isMulti:!1,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};const OA=th.Debouncer((function(e){return(0,L.jsx)(Cj,{immutable:e.immutable,children:(0,L.jsx)(VN,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||""})})}));const xA=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)};var kA,SA,PA,_A=(0,T.iv)(kA||(kA=D()(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),Dj),jA=T.ZP.div.withConfig({displayName:"StyledSizeWrapper"})(SA||(SA=D()(["\n display: grid;\n width: 100%;\n\n &:after {\n content: attr(data-replicated-value) ' ';\n white-space: pre-wrap;\n word-break: break-all;\n visibility: hidden;\n ","\n\n /* prevent scrollbar on Firefox */\n padding-right: 15px;\n }\n"])),_A),EA=T.ZP.textarea.withConfig({displayName:"StyledTextarea"})(PA||(PA=D()(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: 4em;\n }\n"])),_A);function CA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?CA(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const TA=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,a=e.disabled,i=e.immutable,c=(0,_.useState)(t),u=ma()(c,2),s=u[0],l=u[1],f=!xA(),p=(0,_.useCallback)(Yj()(l,500,{trailing:!0}),[]);return(0,_.useEffect)((function(){f&&p(t)}),[t,f,p]),(0,L.jsx)(jA,DA(DA({"data-testid":"replicated-test"},f?{"data-replicated-value":s}:{}),{},{children:(0,L.jsx)(EA,{value:t||"",name:r,id:o,onChange:n,disabled:a,immutable:i,rows:"1"})}))};const MA=th.Debouncer((function(e){return(0,L.jsx)(Cj,{immutable:e.immutable,children:(0,L.jsx)(TA,{id:e.id,immutable:e.immutable,maxRows:20,name:e.name,onChange:function(t){return e.onChange(t.target.value)},disabled:e.immutable,rows:2,value:e.value})})}));var IA;const NA=T.ZP.input.withConfig({displayName:"StyledTimeEdit"})(IA||(IA=D()(["\n &&&& {\n ","\n }\n"])),Dj);function RA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function AA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RA(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const LA=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.name,i=IM(n,t),c=i.inputProps,u=i.clearButtonProps,s=n&&!r;return(0,L.jsxs)(Cj,{immutable:r,children:[(0,L.jsx)(NA,AA({type:"text",disabled:r,id:o,immutable:r,name:a},c)),s&&(0,L.jsx)(Mj,{children:(0,L.jsx)(Id,AA(AA({icon:"times"},u),{},{tabIndex:-1}))})]})};var FA;const ZA=T.ZP.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(FA||(FA=D()(["\n &&&& {\n ","\n }\n"])),Dj);const HA=th.Debouncer((function(e){return(0,L.jsxs)(Cj,{immutable:e.immutable,children:[(0,L.jsx)(ZA,{disabled:e.immutable,id:e.id,immutable:e.immutable,name:e.name,onChange:function(t){return e.onChange((n=t.target.value,r=/^[a-zA-Z0-9]+:\/\//.test(n),n.indexOf(".")>0&&!r?"https://".concat(n):n));var n,r},value:e.value||""}),e.value&&(0,L.jsx)(Mj,{children:(0,L.jsx)(Za.Z,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));function UA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function BA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UA(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var WA={boolean:LC,"boolean-select":NC,choice:GC,code:rD,date:BM,datetime:YM,document:FN,duration:YN,email:qN,geosearch:GR,html:$R,integer:ZR,address:Hj,location:rA,"multi-remote":aA,"multi-select":cA,number:FR,phone:lA,"pseudo-select":hA,remote:vA,"search-filter":yA,"single-select":wA,string:OA,text:MA,url:HA,time:LA};const YA=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.id,a=e.events,i=e.placeholder,c=e.readOnly,u=void 0!==c&&c;if(WA[t]){var s=WA[t],l=BA(BA({},Av()(a,"onChange")),{},{onBlur:function(){"function"==typeof(null==a?void 0:a.onBlur)&&a.onBlur(n)}});return(0,L.jsx)("div",BA(BA({},l),{},{"data-cy":"form-field",children:(0,L.jsx)(s,BA(BA({value:n,onChange:null==a?void 0:a.onChange},hS()(r)?{}:{options:r}),{},{id:o,immutable:u,placeholder:i,events:a}))}))}return console.log("No type-editor defined for component type",t),null};function zA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zA(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const qA=function(e){return(0,L.jsx)(Ij,{children:(0,L.jsx)(YA,VA({componentType:e.type},Av()(e,"type")))})};var GA,KA,XA=T.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(GA||(GA=D()(["\n && {\n ","\n }\n"])),Ej);const QA=function(e){var t=e.verifyCode,n=e.intl,r=(0,_.useState)(null),o=ma()(r,2),a=o[0],i=o[1],c=function(e){return n.formatMessage({id:e})},u=a&&a.toString().length>=6,s=function(e){e&&(e.preventDefault(),e.stopPropagation()),u&&t(a)};Xy(s);var l=Lv.Z.isInAdminEmbedded();return(0,L.jsxs)(L.Fragment,{children:[KA||(KA=(0,L.jsx)(Yr,{children:(0,L.jsx)(E.Z,{id:"client.two-factor-connector.verificationText"})})),(0,L.jsxs)("form",{onSubmit:s,children:[(0,L.jsx)(vj,{hasValue:Boolean(a),id:"verification-input",label:c("client.two-factor-connector.verificationInputLabel"),labelPosition:l?"inside":"outside",children:(0,L.jsx)(XA,{children:(0,L.jsx)(qA,{type:"integer",value:a,events:{onChange:i},options:{format:"### ###",allowLeadingZeros:!0}})})}),(0,L.jsx)(cP,{children:(0,L.jsx)(Ju,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",type:"submit",disabled:!u})})]})]})};var $A={verifyCode:function(e){return{type:QS,payload:{userCode:e}}}};const JA=(0,m.connect)((function(e,t){return{}}),$A)((0,h.ZP)(QA));var eL,tL,nL,rL,oL,aL,iL=0,cL=1,uL=2,sL=3;const lL=function(e){var t=e.initialize,n=e.stage;(0,_.useEffect)((function(){t()}),[t]);return(0,L.jsxs)(L.Fragment,{children:[aL||(aL=(0,L.jsx)(fw.Notifications,{})),function(){switch(n){case iL:return eL||(eL=(0,L.jsx)(QP,{}));case cL:return tL||(tL=(0,L.jsx)(qP,{}));case uL:return nL||(nL=(0,L.jsx)(JA,{}));case sL:return rL||(rL=(0,L.jsx)(dP,{}));default:return oL||(oL=(0,L.jsx)($w,{}))}}()]})};var fL={initialize:tP};const pL=(0,m.connect)((function(e){return{stage:e.twoFactorConnector.stage}}),fL)((0,h.ZP)(lL));var dL;function hL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hL(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vL=function(e){return function(t){return mL(mL({},t),{},{stage:e})}},gL=(dL={},Y()(dL,YS,de("twoFactorActive")),Y()(dL,zS,de("secret")),Y()(dL,VS,de("username")),Y()(dL,JS,de("setupSuccessful")),Y()(dL,KS,vL(0)),Y()(dL,XS,vL(1)),Y()(dL,GS,vL(2)),Y()(dL,eP,vL(3)),dL),yL={stage:null,twoFactorActive:null,secret:null,username:null,setupSuccessful:null};var bL=a().mark(ML),wL=a().mark(NL),OL=a().mark(RL),xL=a().mark(LL),kL=a().mark(FL),SL=a().mark(ZL),PL=a().mark(HL),_L=a().mark(UL),jL=a().mark(BL),EL="relTwo_step_login_status",CL=function(e){return e.twoFactorConnector.username},DL=function(e){return e.twoFactorConnector.secret},TL=function(e){return e.input};function ML(){var e,t,n,r,o,i;return a().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Dt(TL);case 2:if(e=a.sent,e.secret){a.next=14;break}return a.next=7,Dt(CL);case 7:return t=a.sent,a.next=10,jt(Ey,"principals/".concat(t,"/two-factor"),{method:"GET"});case 10:return n=a.sent,r=n.body,o=r.secret,i=r.totpUri,a.next=14,St(rP({secret:o,uri:i}));case 14:return a.next=16,St({type:XS});case 16:case"end":return a.stop()}}),bL)}function IL(e,t){return Zv.Z.executeRequest(e,t).then(Zv.Z.extractBody)}function NL(e,t,n,r){var o,i;return a().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return o={secret:e,userCode:t,username:n,password:r},a.next=3,jt(IL,"login",{method:"POST",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}),body:Object.keys(o).filter((function(e){return!!o[e]})).sort().map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(o[e]))})).join("&")});case 3:return i=a.sent,a.next=6,St(iP(Aa()(i,"TWOSTEPLOGIN_ACTIVATION.success",!1)));case 6:case"end":return a.stop()}}),wL)}function RL(e,t,n){var r;return a().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,jt(Ey,"principals/".concat(e,"/two-factor"),{method:"POST",body:{secret:t,code:n},acceptedStatusCodes:[400]});case 2:return r=o.sent,o.next=5,St(iP(204===r.status));case 5:case"end":return o.stop()}}),OL)}function AL(e){var t=e.payload.userCode;return a().mark((function e(){var n,r,o,i,c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Dt(CL);case 2:return n=e.sent,e.next=5,Dt(DL);case 5:return r=e.sent,o=r.secret,e.next=9,Dt(TL);case 9:if(i=e.sent,c=i.password,!i.forced){e.next=17;break}return e.next=15,jt(NL,o,t,n,c);case 15:e.next=19;break;case 17:return e.next=19,jt(RL,n,o,t);case 19:return e.next=21,St({type:eP});case 21:case"end":return e.stop()}}),e)}))()}function LL(){var e,t;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,jt(ZL);case 2:return n.next=4,Dt(TL);case 4:if(e=n.sent,!(t=e.secret)){n.next=9;break}return n.next=9,St(rP(t));case 9:return n.next=11,St(aP());case 11:case"end":return n.stop()}}),xL)}function FL(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,St(RS("onSuccess"));case 2:case"end":return e.stop()}}),kL)}function ZL(){var e,t,n,r,o;return a().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,jt(HL);case 2:return e=a.sent,a.next=5,St(oP(e));case 5:return t='username === "'.concat(e,'"'),a.next=8,jt(Ty,"Principal",{where:t,paths:[EL]});case 8:if(!((n=a.sent).length>1)){a.next=11;break}throw new Error("More than one user found for username ".concat(e));case 11:return r=Aa()(n,"[0].paths.".concat(EL,".value.key")),o="1"===r,a.next=15,St(nP(o));case 15:case"end":return a.stop()}}),SL)}function HL(){var e,t,n;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Dt(TL);case 2:if(e=r.sent,!(t=e.username)){r.next=8;break}return r.abrupt("return",t);case 8:return r.next=10,jt(Ey,"principals");case 10:return n=r.sent,r.abrupt("return",n.body.username);case 12:case"end":return r.stop()}}),PL)}function UL(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,St(RS("onResize"));case 2:case"end":return e.stop()}}),_L)}function BL(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Pt([Ft(qS,ML),Ft(QS,AL),Ft(WS,LL),Ft($S,FL),Ft(KS,UL),Ft(XS,UL),Ft(GS,UL),Ft(eP,UL)]);case 2:case"end":return e.stop()}}),jL)}const WL={twoFactorConnector:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yL,t=arguments.length>1?arguments[1]:void 0,n=gL[t.type];return n?n(e,t):e}};var YL,zL=[BL];function VL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VL(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var GL="two-factor-connector",KL=function(e,t,n,r){var o=YL||(YL=(0,L.jsx)(pL,{})),a=wS.createStore(WL,zL,t,GL);return fw.addToStore(a,!0),Ew(a,!0,["console","remote","notification"]),AS(a,(function(e){return wS.getEvents(XL,e.input)})),wS.createApp(GL,o,a,{input:t,events:n,actions:[],publicPath:r,textResourceModules:["component","common",GL]})},XL=["onSuccess","onCancel","onResize"],QL=function(e){return wS.useApp({initApp:KL,props:e,packageName:GL,externalEvents:XL}).component};QL.propTypes=qL(qL({},XL.reduce((function(e,t){return qL(qL({},e),{},Y()({},t,Ed().func))}),{})),{},{username:Ed().string,password:Ed().string,secret:Ed().shape({secret:Ed().string.isRequired,uri:Ed().string.isRequired}),forced:Ed().bool});var $L=wS.createBundleableApp(GL,KL,QL);wS.registerAppInRegistry($L.name,$L.init)})(),c})()));
|
|
57
|
+
*/function CP(e,t=0){const n=[];return e.forEach((function(e,r){let o=null;e.forEach((function(a,i){if(!a&&null!==o)return n.push(`M${o+t} ${r+t}h${i-o}v1H${o+t}z`),void(o=null);if(i!==e.length-1)a&&null===o&&(o=i);else{if(!a)return;null===o?n.push(`M${i+t},${r+t} h1v1H${i+t}z`):n.push(`M${o+t},${r+t} h${i+1-o}v1H${o+t}z`)}}))})),n.join("")}function DP(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function TP(e,t,n,r){if(null==r)return null;const o=n?4:0,a=e.length+2*o,i=Math.floor(.1*t),c=a/t,u=(r.width||i)*c,s=(r.height||i)*c,l=null==r.x?e.length/2-u/2:r.x*c,f=null==r.y?e.length/2-s/2:r.y*c;let p=null;if(r.excavate){let e=Math.floor(l),t=Math.floor(f);p={x:e,y:t,w:Math.ceil(u+l-e),h:Math.ceil(s+f-t)}}return{x:l,y:f,h:s,w:u,excavation:p}}var MP=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function IP(e){const t=e,{value:n,size:r=SP,level:o=PP,bgColor:a=_P,fgColor:i=jP,includeMargin:c=EP,style:u,imageSettings:s}=t,l=OP(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),f=null==s?void 0:s.src,p=(0,_.useRef)(null),d=(0,_.useRef)(null),[h,m]=(0,_.useState)(!1);(0,_.useEffect)((()=>{if(null!=p.current){const e=p.current,t=e.getContext("2d");if(!t)return;let u=xP.QrCode.encodeText(n,kP[o]).getModules();const l=c?4:0,f=u.length+2*l,h=TP(u,r,c,s),m=d.current,v=null!=h&&null!==m&&m.complete&&0!==m.naturalHeight&&0!==m.naturalWidth;v&&null!=h.excavation&&(u=DP(u,h.excavation));const g=window.devicePixelRatio||1;e.height=e.width=r*g;const y=r/f*g;t.scale(y,y),t.fillStyle=a,t.fillRect(0,0,f,f),t.fillStyle=i,MP?t.fill(new Path2D(CP(u,l))):u.forEach((function(e,n){e.forEach((function(e,r){e&&t.fillRect(r+l,n+l,1,1)}))})),v&&t.drawImage(m,h.x+l,h.y+l,h.w,h.h)}})),(0,_.useEffect)((()=>{m(!1)}),[f]);const v=wP({height:r,width:r},u);let g=null;return null!=f&&(g=j().createElement("img",{src:f,key:f,style:{display:"none"},onLoad:()=>{m(!0)},ref:d})),j().createElement(j().Fragment,null,j().createElement("canvas",wP({style:v,height:r,width:r,ref:p},l)),g)}function NP(e){const t=e,{value:n,size:r=SP,level:o=PP,bgColor:a=_P,fgColor:i=jP,includeMargin:c=EP,imageSettings:u}=t,s=OP(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let l=xP.QrCode.encodeText(n,kP[o]).getModules();const f=c?4:0,p=l.length+2*f,d=TP(l,r,c,u);let h=null;null!=u&&null!=d&&(null!=d.excavation&&(l=DP(l,d.excavation)),h=j().createElement("image",{xlinkHref:u.src,height:d.h,width:d.w,x:d.x+f,y:d.y+f,preserveAspectRatio:"none"}));const m=CP(l,f);return j().createElement("svg",wP({height:r,width:r,viewBox:`0 0 ${p} ${p}`},s),j().createElement("path",{fill:a,d:`M0,0 h${p}v${p}H0z`,shapeRendering:"crispEdges"}),j().createElement("path",{fill:i,d:m,shapeRendering:"crispEdges"}),h)}var RP=e=>{const t=e,{renderAs:n}=t,r=OP(t,["renderAs"]);return"svg"===n?j().createElement(NP,wP({},r)):j().createElement(IP,wP({},r))};const AP=function(e){var t=e.value;return(0,L.jsx)(RP,{value:t,renderAs:"svg"})};var LP,FP,ZP,HP,UP,BP,WP=T.ZP.div.withConfig({displayName:"StyledQRCodeWrapper"})(LP||(LP=D()(["\n display: flex;\n justify-content: center;\n margin: "," "," "," ",";\n"])),R.Z.space(1.2),R.Z.space(1),R.Z.space(1.5),R.Z.space(1)),YP=T.ZP.div.withConfig({displayName:"StyledParagraph"})(FP||(FP=D()(["\n display: flex;\n justify-content: center;\n margin-top: ",";\n margin-bottom: ",";\n"])),R.Z.space(-1),R.Z.space(-.9));const zP=function(e){var t=e.secret,n=e.goToSecretVerification;return Xy(n),(0,L.jsxs)(L.Fragment,{children:[ZP||(ZP=(0,L.jsx)(Yr,{children:(0,L.jsx)(E.Z,{id:"client.two-factor-connector.qrCodeInfo"})})),(0,L.jsx)(WP,{children:(0,L.jsx)(AP,{value:t.uri})}),HP||(HP=(0,L.jsx)(Yr,{children:(0,L.jsx)(E.Z,{id:"client.two-factor-connector.secretInfo"})})),(0,L.jsx)(YP,{children:(0,L.jsx)(Ur,{children:t.secret})}),UP||(UP=(0,L.jsx)(Yr,{children:(0,L.jsx)(E.Z,{id:"client.two-factor-connector.backupInfo"})})),(0,L.jsx)(cP,{children:(0,L.jsx)(Ju,{ink:"primary",look:"raised",onClick:n,children:BP||(BP=(0,L.jsx)(E.Z,{id:"client.two-factor-connector.nextButton"}))})})]})};var VP={goToSecretVerification:function(){return{type:GS}}};const qP=(0,m.connect)((function(e){return{secret:e.twoFactorConnector.secret}}),VP)((0,h.ZP)(zP));var GP;const KP=function(e){var t=e.twoFactorActive,n=e.forced,r=e.requestSecret,o=e.intl;Xy(r);var a=function(e){return o.formatMessage({id:e})};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Yr,{children:function(){if(t)return GP||(GP=(0,L.jsx)(E.Z,{id:"client.two-factor-connector.overwriteInfo"}));var e=a(n?"client.two-factor-connector.forcedInfo":"client.two-factor-connector.info");return(0,L.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})}()}),(0,L.jsx)(cP,{children:(0,L.jsx)(Ju,{label:a("client.two-factor-connector.nextButton"),ink:"primary",look:"raised",onClick:r})})]})};var XP={initialize:tP,requestSecret:function(){return{type:qS}}};const QP=(0,m.connect)((function(e){return{twoFactorActive:e.twoFactorConnector.twoFactorActive,secret:e.twoFactorConnector.secret,forced:e.input.forced}}),XP)((0,h.ZP)(KP));var $P=i(41505),JP=i.n($P),e_=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},t_=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},n_=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},r_={outline:"none"},o_=function(e){function t(){var n,r;e_(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=n_(this,e.call.apply(e,[this].concat(a))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=j().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)},n_(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?j().cloneElement(e({focused:t,getRef:this.ref}),n):j().createElement("div",t_({ref:this.ref,style:r_},n),e)},t}(j().Component);o_.propTypes={children:JP().oneOfType([JP().node,JP().func]).isRequired,onBlur:JP().func,onFocus:JP().func},o_.defaultProps={onBlur:function(){},onFocus:function(){}};const a_=o_;var i_,c_,u_,s_,l_=(i_={},Y()(i_,Uc.Z.condition.BASE,"inherit"),Y()(i_,Uc.Z.condition.DANGER,N.color("signal.danger")),Y()(i_,Uc.Z.condition.SUCCESS,N.color("signal.success")),Y()(i_,Uc.Z.condition.WARNING,N.color("signal.warning")),Y()(i_,Uc.Z.condition.INFO,N.color("signal.info")),i_),f_=(0,T.ZP)(Xn).withConfig({displayName:"StyledSignalList"})(c_||(c_=D()(["\n && {\n list-style-type: none;\n }\n"]))),p_=T.ZP.span.withConfig({displayName:"StyledSignalListIcon"})(u_||(u_=D()(["\n position: absolute;\n left: -1.6rem;\n text-align: left;\n"]))),d_=(0,T.ZP)(Gn).withConfig({displayName:"StyledSignalListItem"})(s_||(s_=D()(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){return l_[e.condition]||"inherit"}(e)}));const h_=function(e){return(0,L.jsx)(f_,{as:"ul",children:j().Children.map(e.children,(function(e){return j().cloneElement(e)}))})};var m_,v_,g_=(m_={},Y()(m_,Uc.Z.condition.BASE,!1),Y()(m_,Uc.Z.condition.DANGER,"times"),Y()(m_,Uc.Z.condition.SUCCESS,"check"),Y()(m_,Uc.Z.condition.WARNING,"exclamation-triangle"),Y()(m_,Uc.Z.condition.INFO,"info"),m_),y_=function(e){var t=g_[e.condition];return t?(0,L.jsx)(Kr.Z,{icon:t,position:Uc.Z.position.SOLE}):v_||(v_=(0,L.jsx)("i",{children:"•"}))},b_=function(e){return(0,L.jsxs)(d_,{condition:e.condition,children:[(0,L.jsx)(p_,{children:y_(e)}),e.label,j().Children.map(e.children,(function(e){return j().cloneElement(e)}))]})};b_.defaultProps={condition:Uc.Z.condition.BASE};const w_={List:h_,Item:b_};const O_=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,ge()(e.error[n]))})),(0,L.jsx)(w_.List,{children:t.map((function(e,t){return(0,L.jsx)(w_.Item,{condition:"danger",label:e},t)}))})};var x_,k_,S_,P_,__,j_,E_,C_,D_,T_,M_,I_,N_,R_,A_,L_={base:function(e){var t=e.theme;return Aa()(t,"colors.text")},shade1:function(e){var t=e.theme;return Aa()(t,"colors.textLight")},shade2:function(e){var t=e.theme;return Aa()(t,"colors.textLighter")},signal:function(e){var t=e.theme,n=e.signal;return Aa()(t,"colors.signal.".concat(n))},hasValue:function(e){var t=e.theme;return Aa()(t,"colors.signal.info")}},F_={base:function(e){var t=e.theme;return Aa()(t,"colors.border")},signal:function(e){var t=e.theme,n=e.signal;return Aa()(t,"colors.signal.".concat(n))},isDirty:function(e){var t=e.theme;return Aa()(t,"colors.secondaryLight")},transparent:function(){return"transparent"}},Z_="1.1px",H_=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"not-allowed":"auto",";")},U_=T.ZP.label.withConfig({displayName:"StyledStatedValueLabel"})(k_||(k_=D()(["\n &&& {\n display: flex;\n width: 40%;\n flex-grow: 1;\n flex-basis: 125px;\n ","\n background-color: ",";\n pointer-events: auto;\n ","\n word-break: break-word;\n white-space: pre-wrap;\n ","\n ","\n ","\n }\n"])),(0,M.Z)({lineHeight:N.lineHeight("dense")}),N.color("paper"),(function(e){return H_(e)}),(function(e){return"outside"===e.labelPosition&&(0,T.iv)(S_||(S_=D()(["\n margin-bottom: ",";\n display: block;\n width: auto;\n "])),R.Z.space(-1.5))}),(function(e){return"inside"===e.labelPosition&&(0,T.iv)(P_||(P_=D()(["\n flex-basis: unset;\n position: absolute;\n top: 0;\n z-index: 1;\n display: inline-block;\n padding: 0 "," 0 ","; // if immutable remove left padding\n width: fit-content;\n left: ",";\n "])),R.Z.space(-2),(function(e){return e.immutable&&"0"}),(function(e){return e.immutable?"0":R.Z.space(-1.8)}))}),(function(e){return e.styles})),B_=T.ZP.div.withConfig({displayName:"StyledInputArea"})(__||(__=D()(["\n width: 60%;\n flex-grow: 1;\n ","\n"])),(function(e){return"outside"===e.labelPosition&&(0,T.iv)(j_||(j_=D()(["\n width: auto;\n "])))})),W_=T.ZP.div.withConfig({displayName:"StyledStatedValueBox"})(E_||(E_=D()(["\n &&& {\n position: relative;\n height: fit-content; // prevent height getting bigger due to tall labels\n border: "," solid ",";\n border-radius: ",";\n padding: "," ",";\n ","\n ","\n\n > "," {\n padding-top: ",";\n position: relative;\n top: 5px;\n\n p:first-of-type {\n margin-top: 0;\n }\n }\n ","\n ","\n }\n"])),Z_,(function(e){return F_[function(e){var t=e.immutable,n=e.isDisplay,r=e.signal;return e.isDirty?"isDirty":n||t?"transparent":r?"signal":"base"}(e)](e)}),N.radii("form"),R.Z.space(-2.5),R.Z.space(-1.5),(function(e){return!e.immutable&&function(e){var t=Aa()(e.theme,"colors.signal.info",Uc.Z.fallbackColors.INFO);return(0,T.iv)(x_||(x_=D()(["\n transition: border-color ease-in-out 100ms;\n will-change: border-color;\n\n &:focus,\n &:focus-within {\n border-color: ",";\n box-shadow: 0 0 6px ",";\n outline: 0;\n\n /**\n * Disable box-shadow for Safari\n * in order to be able to tab through the form fluently\n */\n @media not all and (min-resolution: 0.001dpcm) {\n @supports (-webkit-appearance: none) {\n box-shadow: none;\n }\n }\n }\n "])),t,Lu(.4,t))}(e)}),(function(e){return H_(e)}),ya,(function(e){return e.isDisplay&&R.Z.space(-1)}),(function(e){return"inside"===e.labelPosition&&(0,T.iv)(C_||(C_=D()(["\n padding: "," "," "," ",";\n "])),R.Z.space(-1),R.Z.space(-1.7),R.Z.space(-2),R.Z.space(-1))}),(function(e){return e.styles})),Y_=T.ZP.p.withConfig({displayName:"StyledStatedValueDescription"})(D_||(D_=D()(["\n &&& {\n ","\n }\n"])),(0,M.Z)({fontSize:R.Z.font(-1)})),z_=T.ZP.div.withConfig({displayName:"StyledStatedValueError"})(T_||(T_=D()([""]))),V_=T.ZP.div.withConfig({displayName:"StyledStatedValueOuterWrapper"})(M_||(M_=D()(["\n &:not(:last-child) {\n margin-bottom: ",";\n }\n ","\n"])),R.Z.space(-.7),(function(e){return"inside"===e.labelPosition&&(0,T.iv)(I_||(I_=D()(["\n padding-top: ",";\n margin-bottom: 0.65rem;\n position: relative;\n "])),R.Z.space(-1.5))})),q_=T.ZP.div.withConfig({displayName:"StyledStatedValueInnerWrapper"})(N_||(N_=D()(["\n &&& {\n display: flex;\n flex-wrap: wrap;\n gap: ",";\n align-items: center;\n\n ",",\n ",",\n "," {\n margin-bottom: ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n "," {\n margin-left: calc("," + ",");\n }\n ","\n ","\n }\n"])),R.Z.space(-1.5),W_,Y_,z_,R.Z.space(-2),Y_,R.Z.space(-1),Z_,(function(e){return"outside"===e.labelPosition&&(0,T.iv)(R_||(R_=D()(["\n display: block;\n "])))}),(function(e){return"inside"===e.labelPosition&&(0,T.iv)(A_||(A_=D()(["\n padding-top: 0;\n "])))}));function G_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G_(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const X_=function(e){var t,n,r,o=e.children,a=e.description,i=e.dirty,c=e.isDisplay,u=e.error,s=e.hasValue,l=e.id,f=e.label,p=e.mandatory,d=e.mandatoryTitle,h=e.immutable,m=e.touched,v=e.signal,g=e.labelPosition,y=e.styles,b=!h&&m&&u&&Object.keys(u).length>0,w=p&&d?", ".concat(d):"",O="".concat(Ji(f)).concat(w),x=v||function(e,t,n,r){return t?Uc.Z.condition.DANGER:e?Uc.Z.condition.INFO:n&&!r?Uc.Z.condition.WARNING:void 0}(i,b,p,s),k={__html:"".concat(Da.sanitizeHtml(f)).concat(p?" *":"")},S=!c&&!h&&{htmlFor:l};return(0,L.jsx)(a_,{children:function(e){var l=e.getRef;return(0,L.jsx)(V_,{labelPosition:g,children:(0,L.jsxs)(q_,{labelPosition:g,ref:l,label:f,children:[f&&(0,L.jsx)(U_,K_(K_({},S),{},{hasValue:s,dirty:i,title:O,immutable:h,isDisplay:c,signal:x,labelPosition:g,styles:null==y?void 0:y.labelStyles,children:t||(t=(0,L.jsx)("span",{dangerouslySetInnerHTML:k}))})),(0,L.jsxs)(B_,{labelPosition:g,children:[(0,L.jsx)(W_,{hasValue:s,immutable:h,isDisplay:c,signal:x,labelPosition:g,styles:null==y?void 0:y.valueStyles,children:o}),b&&(n||(n=(0,L.jsx)(z_,{children:(0,L.jsx)(O_,{error:u})}))),a&&(r||(r=(0,L.jsx)(Y_,{children:a})))]})]})})}})};var Q_,$_,J_,ej=function(e){return(0,T.iv)(Q_||(Q_=D()(["\n color: ",";\n font-weight: ",";\n"])),L_[function(e){var t=e.isDisplay,n=e.immutable,r=e.signal,o=e.hasValue;return r?"signal":o?"hasValue":t?"shade1":n?"base":"shade1"}(e)](e),(function(e){return e.dirty?N.fontWeight("bold"):N.fontWeight("regular")}))},tj=function(){return(0,T.iv)($_||($_=D()(["\n padding-top: ",";\n padding-left: ",";\n"])),(function(e){var t=e.isDisplay,n=e.immutable;if(t&&n)return(0,T.iv)(J_||(J_=D()(["\n ","\n "])),R.Z.space(-1))}),(function(e){return e.immutable&&0}))},nj=["labelPosition"];function rj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const oj=function(e){var t=e.labelPosition,n=Jy()(e,nj);return(0,L.jsx)(X_,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rj(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{labelStyles:ej,valueStyles:tj},labelPosition:t||"outside-responsive"},n))};var aj,ij,cj,uj=function(e){return e.signal?"signal":"shade2"},sj=function(e){return(0,T.iv)(aj||(aj=D()(["\n color: ",";\n font-weight: ",";\n"])),L_[uj(e)](e),N.fontWeight("bold"))},lj=function(){return(0,T.iv)(ij||(ij=D()(["\n padding-top: ",";\n padding-left: ",";\n"])),(function(e){var t=e.isDisplay,n=e.immutable,r=e.labelPosition;return n&&"inside"!==r?0:t&&n?(0,T.iv)(cj||(cj=D()(["\n ","\n "])),R.Z.space(-1)):void 0}),(function(e){return e.immutable&&0}))},fj=["labelPosition"];function pj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const dj=function(e){var t=e.labelPosition,n=Jy()(e,fj);return(0,L.jsx)(X_,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pj(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{labelStyles:sj,valueStyles:lj},labelPosition:t||"outside-responsive"},n))};var hj,mj=(hj={},Y()(hj,Lv.Z.EmbedType.admin,oj),Y()(hj,Lv.Z.EmbedType.widget,dj),hj);const vj=Lv.Z.embedStrategyFactory({mapping:mj});var gj,yj,bj,wj,Oj,xj,kj,Sj,Pj,_j=i(58808),jj=i.n(_j),Ej=(0,T.iv)(gj||(gj=D()(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),Cj=T.ZP.label.withConfig({displayName:"StyledEditableWrapper"})(yj||(yj=D()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),Ej),Dj=(0,T.iv)(bj||(bj=D()(["\n background-color: transparent;\n border: 0;\n cursor: ",";\n flex-grow: 1;\n min-height: ",";\n min-width: 0;\n outline: 0;\n padding: 0;\n ","\n &::-ms-clear {\n display: none;\n }\n\n &::-webkit-clear-button {\n display: none;\n }\n\n &::-webkit-inner-spin-button {\n display: none;\n }\n\n &[type='number'] {\n appearance: textfield;\n }\n\n &[type='search'] {\n appearance: none;\n }\n\n &:disabled {\n -webkit-text-fill-color: ","; // Safari fix\n opacity: 1; // iOS fix\n }\n\n /* remove indicators */\n &[type='date'],\n &[type='datetime-local'],\n &[type='month'],\n &[type='time'],\n &[type='week'] {\n appearance: none;\n display: flex;\n\n /* reset margin on smaller screens */\n ::-webkit-date-and-time-value {\n ","\n }\n }\n\n // allow pointer event only on touch devices\n @media (pointer: coarse) {\n pointer-events: ",";\n }\n"])),(function(e){return e.immutable?"not-allowed":"default"}),(function(e){return e.immutable?"0":"2.6rem"}),(function(){return(0,M.Z)({color:N.color("text")})}),N.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),Tj=(0,T.iv)(wj||(wj=D()(["\n display: flex;\n align-items: center;\n"]))),Mj=T.ZP.div.withConfig({displayName:"StyledEditableControl"})(Oj||(Oj=D()(["\n &&& {\n ","\n }\n"])),Tj),Ij=T.ZP.span.withConfig({displayName:"StyledEditableValue"})(xj||(xj=D()(["\n width: 100%;\n\n && {\n //url\n [type='url'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //url\n [type='tel'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //date\n .date-edit {\n .input-group-addon {\n cursor: pointer;\n }\n\n input {\n z-index: 0;\n }\n\n &.disabled {\n input {\n cursor: not-allowed;\n }\n }\n\n .right-addon {\n position: relative;\n }\n\n .right-addon input {\n padding-right: 30px;\n }\n\n .reset {\n position: absolute;\n padding-right: 10px;\n padding-top: 5px;\n right: 0;\n color: #999;\n font-size: 18px;\n font-style: normal;\n cursor: pointer;\n }\n\n .reset:hover {\n color: ",";\n }\n }\n }\n"])),N.color("signal.danger")),Nj=function(e){return-1*Math.abs(e)},Rj=function(e){var t=[e.street,e.postcode,e.city,e.country].filter(Boolean).map((function(e){var t="object"===qt()(e)&&e.display?e.display:e;return encodeURIComponent(t)})).join("+");return"".concat("https://www.google.com/maps/search/?api=1&query=").concat(t)},Aj=T.ZP.div.withConfig({displayName:"StyledLocationEdit"})(kj||(kj=D()(["\n && {\n ","\n position: relative;\n\n div {\n :nth-of-type(1) {\n flex: 0 0 13ch;\n margin-right: ",";\n }\n\n :nth-of-type(2) {\n flex: 1 1 auto;\n }\n }\n\n > span {\n flex: 0 0 auto;\n margin-right: ",";\n color: ",";\n }\n\n .react-autosuggest__input {\n ","\n width: 100%;\n }\n\n .react-autosuggest__suggestions-container--open {\n width: calc(100% + 17.5px);\n background-color: ",";\n box-shadow: 0 0 6px ",";\n border: 1px solid ",";\n bottom: -9px;\n left: -10px;\n max-height: 300px;\n overflow-y: auto;\n position: absolute;\n transform: translateY(100%);\n z-index: 2; // higher than StyledIndicatorsContainerWrapper\n }\n\n .react-autosuggest__suggestions-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .react-autosuggest__suggestion {\n cursor: pointer;\n padding: 8px 12px;\n }\n\n .react-autosuggest__suggestion--highlighted {\n background-color: ",";\n }\n }\n"])),Ej,R.Z.space(-2),R.Z.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?Aa()(n,"colors.textDisabled"):Aa()(n,"colors.text")}),Dj,N.color("paper"),N.color("signal.info"),N.color("secondaryLight"),N.color("backgroundItemHover")),Lj=(0,T.ZP)(Aj).withConfig({displayName:"StyledAddressEdit"})(Sj||(Sj=D()(["\n && {\n div {\n :nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n }\n"])));function Fj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fj(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Hj=function(e){var t,n=e.onChange,r=e.options,o=e.value,a=e.id,i=e.immutable,c=e.name,u=function(e){var t=e.street,n=e.houseNr;return n?"".concat(t," ").concat(n):t},s=function(e){var t=e.street,n=e.state,r=e.country,o=e.postcode,a=e.city;if(!t)return null;var i=u(e),c=n?"- ".concat(n):"",s=r?"/ ".concat(r.display):"";return(0,L.jsxs)(zr,{children:[i,", ",o," ",a," ",c," ",s]})},l=function(e,t){var o=t.suggestion;!0===o.validationRequired?r.validateLocation(o,n):n(o)},f=function(e){var t=e.value,n=r.locationValues,o=n.postcode,a=n.city,i=n.country,c={street:t,postcode:o,city:a};r.fetchSuggestions(c,i)},p={id:a,value:o&&o.street?u(o):"",onChange:(t="street",function(e,r){var a=r.newValue;n(Zj(Zj({},o),{},Y()({},t,a)))}),disabled:i};return(0,L.jsx)(a_,{children:function(e){var t,n,o,a,u,d=e.getRef;return(0,L.jsxs)(Lj,{immutable:i,name:c,ref:d,children:[(0,L.jsx)(jj(),{suggestions:r.suggestions||[],onSuggestionsFetchRequested:f,getSuggestionValue:(u="street",function(e){return e[u]}),renderSuggestion:s,onSuggestionsClearRequested:function(){},inputProps:p,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(0,L.jsxs)(Mj,{children:[r.isLoading&&(Pj||(Pj=(0,L.jsx)(Hc,{size:"1.8rem"}))),(t=r.locationValues,n=t.street,o=t.city,a=t.postcode,Boolean(n&&(o||a))&&(0,L.jsx)(Za.Z,{href:Rj(r.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:r.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};var Uj=i(14293),Bj=i.n(Uj),Wj=i(23493),Yj=i.n(Wj),zj=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Vj(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 qj(e,t){return(qj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Gj(e){return(Gj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Kj(e,t){if(t&&("object"===Rl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Xj(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=Gj(e);if(t){var o=Gj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Kj(this,n)}}function Qj(e){return function(e){if(Array.isArray(e))return Tl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ml(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var $j=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Jj(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||$j(r)&&$j(o)))return!1;var r,o;return!0}for(var eE={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"},tE=function(e){return Cl("span",rs({css:eE},e))},nE={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,u=e.isSelected,s=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(s(i,n),".");if("menu"===t){var l=c?" disabled":"",f="".concat(u?"selected":"focused").concat(l);return"option ".concat(a," ").concat(f,", ").concat(s(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},rE=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=e.selectValue,c=e.selectProps,u=e.id,s=c.ariaLiveMessages,l=c.getOptionLabel,f=c.inputValue,p=c.isMulti,d=c.isOptionDisabled,h=c.isSearchable,m=c.menuIsOpen,v=c.options,g=c.screenReaderStatus,y=c.tabSelectsValue,b=c["aria-label"],w=c["aria-live"],O=(0,_.useMemo)((function(){return ns(ns({},nE),s||{})}),[s]),x=(0,_.useMemo)((function(){var e,n="";if(t&&O.onChange){var r=t.option,o=t.options,a=t.removedValue,c=t.removedValues,u=t.value,s=a||r||(e=u,Array.isArray(e)?null:e),f=s?l(s):"",p=o||c||void 0,h=p?p.map(l):[],m=ns({isDisabled:s&&d(s,i),label:f,labels:h},t);n=O.onChange(m)}return n}),[t,O,d,i,l]),k=(0,_.useMemo)((function(){var e="",t=n||r,a=!!(n&&i&&i.includes(n));if(t&&O.onFocus){var c={focused:t,label:l(t),isDisabled:d(t,i),isSelected:a,options:o,context:t===n?"menu":"value",selectValue:i};e=O.onFocus(c)}return e}),[n,r,l,d,O,o,i]),S=(0,_.useMemo)((function(){var e="";if(m&&v.length&&O.onFilter){var t=g({count:o.length});e=O.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,m,O,v,g]),P=(0,_.useMemo)((function(){var e="";if(O.guidance){var t=r?"value":m?"menu":"input";e=O.guidance({"aria-label":b,context:t,isDisabled:n&&d(n,i),isMulti:p,isSearchable:h,tabSelectsValue:y})}return e}),[b,n,r,p,d,h,m,O,i,y]),j="".concat(k," ").concat(S," ").concat(P),E=Cl(_.Fragment,null,Cl("span",{id:"aria-selection"},x),Cl("span",{id:"aria-context"},j)),C="initial-input-focus"===(null==t?void 0:t.action);return Cl(_.Fragment,null,Cl(tE,{id:u},C&&E),Cl(tE,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},a&&!C&&E))},oE=[{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źẑżžẓẕƶȥɀⱬꝣ"}],aE=new RegExp("["+oE.map((function(e){return e.letters})).join("")+"]","g"),iE={},cE=0;cE<oE.length;cE++)for(var uE=oE[cE],sE=0;sE<uE.letters.length;sE++)iE[uE.letters[sE]]=uE.base;var lE=function(e){return e.replace(aE,(function(e){return iE[e]}))},fE=function(e,t){void 0===t&&(t=Jj);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}(lE),pE=function(e){return e.replace(/^\s+|\s+$/g,"")},dE=function(e){return"".concat(e.label," ").concat(e.value)},hE=["innerRef"];function mE(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.entries(e).filter((function(e){var t=Il(e,1)[0];return!n.includes(t)})).reduce((function(e,t){var n=Il(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(Nl(e,hE),"onExited","in","enter","exit","appear");return Cl("input",rs({ref:t},n,{css:Dl({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 vE=["boxSizing","height","overflow","paddingRight","position"],gE={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function yE(e){e.preventDefault()}function bE(e){e.stopPropagation()}function wE(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function OE(){return"ontouchstart"in window||navigator.maxTouchPoints}var xE=!("undefined"==typeof window||!window.document||!window.document.createElement),kE=0,SE={capture:!1,passive:!1};var PE=function(){return document.activeElement&&document.activeElement.blur()},_E={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function jE(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=(0,_.useRef)(!1),c=(0,_.useRef)(!1),u=(0,_.useRef)(0),s=(0,_.useRef)(null),l=(0,_.useCallback)((function(e,t){if(null!==s.current){var u=s.current,l=u.scrollTop,f=u.scrollHeight,p=u.clientHeight,d=s.current,h=t>0,m=f-p-l,v=!1;m>t&&i.current&&(r&&r(e),i.current=!1),h&&c.current&&(a&&a(e),c.current=!1),h&&t>m?(n&&!i.current&&n(e),d.scrollTop=f,v=!0,i.current=!0):!h&&-t>l&&(o&&!c.current&&o(e),d.scrollTop=0,v=!0,c.current=!0),v&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,a]),f=(0,_.useCallback)((function(e){l(e,e.deltaY)}),[l]),p=(0,_.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),d=(0,_.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;l(e,t)}),[l]),h=(0,_.useCallback)((function(e){if(e){var t=!!bf&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",d,t)}}),[d,p,f]),m=(0,_.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",d,!1))}),[d,p,f]);return(0,_.useEffect)((function(){if(t){var e=s.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){s.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,_.useRef)({}),a=(0,_.useRef)(null),i=(0,_.useCallback)((function(e){if(xE){var t=document.body,n=t&&t.style;if(r&&vE.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&kE<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,c=window.innerWidth-i+a||0;Object.keys(gE).forEach((function(e){var t=gE[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(c,"px"))}t&&OE()&&(t.addEventListener("touchmove",yE,SE),e&&(e.addEventListener("touchstart",wE,SE),e.addEventListener("touchmove",bE,SE))),kE+=1}}),[r]),c=(0,_.useCallback)((function(e){if(xE){var t=document.body,n=t&&t.style;kE=Math.max(kE-1,0),r&&kE<1&&vE.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&OE()&&(t.removeEventListener("touchmove",yE,SE),e&&(e.removeEventListener("touchstart",wE,SE),e.removeEventListener("touchmove",bE,SE)))}}),[r]);return(0,_.useEffect)((function(){if(t){var e=a.current;return i(e),function(){c(e)}}}),[t,i,c]),function(e){a.current=e}}({isEnabled:n});return Cl(_.Fragment,null,n&&Cl("div",{onClick:PE,css:_E}),t((function(e){o(e),a(e)})))}var EE={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},CE=function(e){var t=e.name,n=e.onFocus;return Cl("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:EE,value:"",onChange:function(){}})},DE={clearIndicator:Bf,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,a=o.colors,i=o.borderRadius;return ns({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},dropdownIndicator:Uf,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return ns({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return ns({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,a=o.spacing,i=o.colors;return ns(ns({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Qf),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,a=o.colors,i=o.spacing.baseUnit;return ns({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i})},loadingMessage:Cf,menu:function(e,t){var n,r=e.placement,o=e.theme,a=o.borderRadius,i=o.spacing,c=o.colors;return ns((es(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),es(n,"position","absolute"),es(n,"width","100%"),es(n,"zIndex",1),n),t?{}:{backgroundColor:c.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:i.menuGutter,marginTop:i.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return ns({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors;return ns({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,a=e.cropWithEllipsis;return ns({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors,i=e.isFocused;return ns({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:i?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:Ef,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.theme,i=a.spacing,c=a.colors;return ns({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?c.primary:r?c.primary25:"transparent",color:n?c.neutral20:o?c.neutral0:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?c.primary:c.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return ns({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,a=r.colors;return ns({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,a=e.selectProps.controlShouldRenderValue;return ns({alignItems:"center",display:r&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var TE,ME={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}},IE={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:mf(),captureMenuScroll:!mf(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=ns({ignoreCase:!0,ignoreAccents:!0,stringify:dE,trim:!0,matchFrom:"any"},TE),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,c=n.matchFrom,u=i?pE(t):t,s=i?pE(a(e)):a(e);return r&&(u=u.toLowerCase(),s=s.toLowerCase()),o&&(u=fE(u),s=lE(s)),"start"===c?s.substr(0,u.length)===u:s.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:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function NE(e,t,n,r){return{type:"option",data:t,isDisabled:HE(e,t,n),isSelected:UE(e,t,n),label:FE(e,t),value:ZE(e,t),index:r}}function RE(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return NE(e,n,t,r)})).filter((function(t){return LE(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=NE(e,n,t,r);return LE(e,a)?a:void 0})).filter(wf)}function AE(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Qj(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function LE(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,c=t.value;return(!WE(e)||!a)&&BE(e,{label:i,value:c,data:o},r)}var FE=function(e,t){return e.getOptionLabel(t)},ZE=function(e,t){return e.getOptionValue(t)};function HE(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function UE(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=ZE(e,t);return n.some((function(t){return ZE(e,t)===r}))}function BE(e,t,n){return!e.filterOption||e.filterOption(t,n)}var WE=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},YE=1,zE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qj(e,t)}(a,e);var t,n,r,o=Xj(a);function a(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,a=o.closeMenuOnSelect,i=o.isMulti,c=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:c}),a&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=n.name,i=t.state.selectValue,c=o&&t.isOptionSelected(e,i),u=t.isOptionDisabled(e,i);if(c){var s=t.getOptionValue(e);t.setValue(i.filter((function(e){return t.getOptionValue(e)!==s})),"deselect-option",e)}else{if(u)return void t.ariaOnChange(e,{action:"select-option",option:e,name:a});o?t.setValue([].concat(Qj(i),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),a=r.filter((function(e){return t.getOptionValue(e)!==o})),i=Of(n,a,a[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Of(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),a=Of(e,o,o[0]||null);t.onChange(a,{action:"pop-value",removedValue:r})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return of.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return FE(t.props,e)},t.getOptionValue=function(e){return ZE(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=DE[e](n,r);o.boxSizing="border-box";var a=t.props.styles[e];return a?a(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,ns(ns({},ep),e.components);var e},t.buildCategorizedOptions=function(){return RE(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return AE(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:ns({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&sf(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return WE(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,i=n.inputValue,c=n.isClearable,u=n.isDisabled,s=n.menuIsOpen,l=n.onKeyDown,f=n.tabSelectsValue,p=n.openMenuOnFocus,d=t.state,h=d.focusedOption,m=d.focusedValue,v=d.selectValue;if(!(u||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():c&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!s||!f||!h||p&&t.isOptionSelected(h,v))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(s){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":s?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):c&&a&&t.clearValue();break;case" ":if(i)return;if(!s){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":s?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":s?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!s)return;t.focusOption("pageup");break;case"PageDown":if(!s)return;t.focusOption("pagedown");break;case"Home":if(!s)return;t.focusOption("first");break;case"End":if(!s)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++YE),t.state.selectValue=af(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.buildFocusableOptions(),r=n.indexOf(t.state.selectValue[0]);t.state.focusedOption=n[r]}return t}return t=a,r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,c=t.prevWasFocused,u=e.options,s=e.value,l=e.menuIsOpen,f=e.inputValue,p=e.isMulti,d=af(s),h={};if(n&&(s!==n.value||u!==n.options||l!==n.menuIsOpen||f!==n.inputValue)){var m=l?function(e,t){return AE(RE(e,t))}(e,d):[],v=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,d):null;h={selectValue:d,focusedOption:function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m),focusedValue:v,clearFocusValueOnUpdate:!1}}var g=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},y=a,b=i&&c;return i&&!b&&(y={value:Of(p,d,d[0]||null),options:d,action:"initial-input-focus"},b=!c),"initial-input-focus"===(null==a?void 0:a.action)&&(y=null),ns(ns(ns({},h),g),{},{prevProps:e,ariaSelection:y,prevWasFocused:b})}}],(n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&hf(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(hf(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(ME):ns(ns({},ME),this.props.theme):ME}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,c=this.props,u=c.isMulti,s=c.isRtl,l=c.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:u,isRtl:s,options:l,selectOption:a,selectProps:c,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return HE(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return UE(this.props,e,t)}},{key:"filterOption",value:function(e,t){return BE(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,i=e.form,c=e.menuIsOpen,u=e.required,s=this.getComponents().Input,l=this.state,f=l.inputIsHidden,p=l.ariaSelection,d=this.commonProps,h=r||this.getElementId("input"),m=ns(ns(ns({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox"},c&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?_.createElement(s,rs({},d,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:i,type:"text",value:o},m)):_.createElement(mE,rs({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:nf,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:i,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,c=t.Placeholder,u=this.commonProps,s=this.props,l=s.controlShouldRenderValue,f=s.isDisabled,p=s.isMulti,d=s.inputValue,h=s.placeholder,m=this.state,v=m.selectValue,g=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!l)return d?null:_.createElement(c,rs({},u,{key:"placeholder",isDisabled:f,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return v.map((function(t,i){var c=t===g,s="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return _.createElement(n,rs({},u,{components:{Container:r,Label:o,Remove:a},isFocused:c,isDisabled:f,key:s,index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(d)return null;var b=v[0];return _.createElement(i,rs({},u,{data:b,isDisabled:f}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return _.createElement(e,rs({},t,{innerProps:i,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;return e&&o?_.createElement(e,rs({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return _.createElement(n,rs({},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 _.createElement(e,rs({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,i=t.MenuPortal,c=t.LoadingMessage,u=t.NoOptionsMessage,s=t.Option,l=this.commonProps,f=this.state.focusedOption,p=this.props,d=p.captureMenuScroll,h=p.inputValue,m=p.isLoading,v=p.loadingMessage,g=p.minMenuHeight,y=p.maxMenuHeight,b=p.menuIsOpen,w=p.menuPlacement,O=p.menuPosition,x=p.menuPortalTarget,k=p.menuShouldBlockScroll,S=p.menuShouldScrollIntoView,P=p.noOptionsMessage,j=p.onMenuScrollToTop,E=p.onMenuScrollToBottom;if(!b)return null;var C,D=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,i=t.isSelected,c=t.label,u=t.value,p=f===o,d=a?void 0:function(){return e.onOptionHover(o)},h=a?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),v={id:m,onClick:h,onMouseMove:d,onMouseOver:d,tabIndex:-1};return _.createElement(s,rs({},l,{innerProps:v,data:o,isDisabled:a,isSelected:i,key:m,label:c,type:r,value:u,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())C=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,a=t.options,i=t.index,c="".concat(e.getElementId("group"),"-").concat(i),u="".concat(c,"-heading");return _.createElement(n,rs({},l,{key:c,data:o,options:a,Heading:r,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return D(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return D(t,"".concat(t.index))}));else if(m){var T=v({inputValue:h});if(null===T)return null;C=_.createElement(c,l,T)}else{var M=P({inputValue:h});if(null===M)return null;C=_.createElement(u,l,M)}var I={minMenuHeight:g,maxMenuHeight:y,menuPlacement:w,menuPosition:O,menuShouldScrollIntoView:S},N=_.createElement(Pf,rs({},l,I),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,c=r.maxHeight;return _.createElement(o,rs({},l,I,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:m,placement:i}),_.createElement(jE,{captureEnabled:d,onTopArrive:j,onBottomArrive:E,lockEnabled:k},(function(t){return _.createElement(a,rs({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:m,maxHeight:c,focusedOption:f}),C)})))}));return x||"fixed"===O?_.createElement(i,rs({},l,{appendTo:x,controlElement:this.controlRef,menuPlacement:w,menuPosition:O}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=t.required,c=this.state.selectValue;if(i&&!this.hasValue()&&!r)return _.createElement(CE,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(o){if(n){var u=c.map((function(t){return e.getOptionValue(t)})).join(n);return _.createElement("input",{name:a,type:"hidden",value:u})}var s=c.length>0?c.map((function(t,n){return _.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):_.createElement("input",{name:a,type:"hidden",value:""});return _.createElement("div",null,s)}var l=c[0]?this.getOptionValue(c[0]):"";return _.createElement("input",{name:a,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.isFocused,i=t.selectValue,c=this.getFocusableOptions();return _.createElement(rE,rs({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:a,selectValue:i,focusableOptions:c}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,i=a.className,c=a.id,u=a.isDisabled,s=a.menuIsOpen,l=this.state.isFocused,f=this.commonProps=this.getCommonProps();return _.createElement(r,rs({},f,{className:i,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:l}),this.renderLiveRegion(),_.createElement(t,rs({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:l,menuIsOpen:s}),_.createElement(o,rs({},f,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),_.createElement(n,rs({},f,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}])&&Vj(t.prototype,n),r&&Vj(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(_.Component);zE.defaultProps=IE;var VE=(0,_.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,a=e.defaultValue,i=void 0===a?null:a,c=e.inputValue,u=e.menuIsOpen,s=e.onChange,l=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,d=e.value,h=Nl(e,zj),m=Il((0,_.useState)(void 0!==c?c:n),2),v=m[0],g=m[1],y=Il((0,_.useState)(void 0!==u?u:o),2),b=y[0],w=y[1],O=Il((0,_.useState)(void 0!==d?d:i),2),x=O[0],k=O[1],S=(0,_.useCallback)((function(e,t){"function"==typeof s&&s(e,t),k(e)}),[s]),P=(0,_.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),g(void 0!==n?n:e)}),[l]),j=(0,_.useCallback)((function(){"function"==typeof p&&p(),w(!0)}),[p]),E=(0,_.useCallback)((function(){"function"==typeof f&&f(),w(!1)}),[f]),C=void 0!==c?c:v,D=void 0!==u?u:b,T=void 0!==d?d:x;return ns(ns({},h),{},{inputValue:C,menuIsOpen:D,onChange:S,onInputChange:P,onMenuClose:E,onMenuOpen:j,value:T})}(e);return _.createElement(zE,rs({ref:t},n))}));function qE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function GE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qE(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const KE=(0,h.ZP)((function(e){var t;return(0,L.jsx)("span",GE(GE({},e.innerProps),{},{children:(0,L.jsx)(Id,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t}))})}))}));function XE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function QE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XE(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const $E=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,L.jsx)(ep.DropdownIndicator,QE(QE({},e),{},{children:(0,L.jsx)(Zp,{children:(0,L.jsx)(Id,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};var JE,eC,tC;function nC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nC(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var oC=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},aC=function(e,t){return function(n){n.stopPropagation(),e(t)}},iC=function(e,t){return function(n){n.stopPropagation(),e(t)}},cC=function(e){e.stopPropagation()};const uC=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,a=t.isDisabled,i=t.hasDocsTreeSearch,c=t.hasAdvancedSearch,u=t.createPermission,s=t.value,l=t.isMulti,f=t.inputValue,p=l&&(c||i);return(0,L.jsx)(Np,{isTopAligned:p,children:(0,L.jsxs)(ep.IndicatorsContainer,rC(rC({},e),{},{children:[e.children,n&&!a&&(0,L.jsx)("span",{onTouchEnd:cC,onMouseDown:aC(n,s),children:JE||(JE=(0,L.jsx)(Id,{icon:"folder",tabIndex:-1}))}),r&&!a&&(0,L.jsx)("span",{onTouchEnd:cC,onMouseDown:oC(r,f,s),children:eC||(eC=(0,L.jsx)(Id,{icon:"search",tabIndex:-1}))}),u&&!a&&(0,L.jsx)("span",{onTouchEnd:cC,onMouseDown:iC(o,s),children:tC||(tC=(0,L.jsx)(Id,{icon:"plus",tabIndex:-1}))})]}))})};var sC;const lC=function(){return sC||(sC=(0,L.jsx)("span",{children:(0,L.jsx)(Hc,{size:"1.8rem"})}))};function fC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fC(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const dC=function(e){var t=e.selectProps,n=e.children;return(0,L.jsx)(Rp,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,L.jsx)("div",{ref:e})},renderElement:function(r){return(0,L.jsx)("div",{ref:r,className:zt,children:(0,L.jsx)(Ap,pC(pC({},Av()(e,["innerRef"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,children:n}))})}})};function hC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hC(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const vC=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,L.jsxs)(ep.MenuList,mC(mC({},e),{},{className:"MenuList",children:[n,r&&(0,L.jsx)(Lp,{children:o})]}))};function gC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gC(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const bC=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,a=o.tooltips,i=o.loadTooltip,c=o.DetailLink,u=Aa()(a,t.key,null),s=(0,L.jsx)("span",yC(yC({},n),{},{children:r})),l=c?(0,L.jsx)(Tp,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,L.jsx)(c,{entityKey:t.key,tabIndex:-1,children:(0,L.jsx)(_a,{content:u?(0,L.jsx)("div",{dangerouslySetInnerHTML:{__html:Da.sanitizeHtml(u)}}):null,children:(0,L.jsx)("span",{onMouseOver:function(){return i&&!u&&i(t.key)},children:s})})})}):s;return(0,L.jsx)(Up,{children:l})};var wC=i(14176),OC=i.n(wC);function xC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xC(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var SC=["linkComp"],PC=function(e,t){var n=Qi(e,t),r=OC()(Av()(n,SC),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},_C=(0,_.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&Gr()(n)?(0,L.jsx)(Tp,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,L.jsx)(t,{entityKey:n,children:r})}):r}),PC);_C.propTypes={children:Ed().node,entityKey:Ed().any,linkComp:Ed().func};const jC=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,a=n.tooltips,i=n.loadTooltip,c=n.DetailLink,u=Aa()(a,t.key,null);return(0,L.jsx)(ep.SingleValue,kC(kC({},e),{},{children:(0,L.jsx)(Fp,{onMouseOver:function(){return i&&!u&&i(t.key)},isDisabled:r,children:(0,L.jsx)(_a,{content:u?(0,L.jsx)("div",{dangerouslySetInnerHTML:{__html:Da.sanitizeHtml(u)}}):null,children:(0,L.jsx)(_C,{linkComp:c,entityKey:t.key,children:o})})})}))};function EC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var CC=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const DC=function(e){var t=e.selectProps,n=e.hasValue,r=e.children,o=t.isMulti,a=t.hasAdvancedSearch,i=t.hasDocsTreeSearch,c=t.isDisabled;if(!(o&&(a||i)))return(0,L.jsx)(ep.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EC(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var u=_.Children.map(r,(function(e){return CC(e)?e:null})),s=_.Children.map(r,(function(e){return CC(e)?null:e})),l=c&&n;return(0,L.jsxs)(L.Fragment,{children:[!l&&(0,L.jsx)(L.Fragment,{children:u}),(0,L.jsx)(Hp,{children:s})]})};function TC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TC(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const IC=(0,T.Zz)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,a=e.isMulti,i=e.loadTooltip,c=e.moreOptionsAvailable,u=e.moreOptionsAvailableText,s=e.noResultsText,l=e.noResultsComp,f=e.onChange,p=e.openDocsTreeSearch,d=e.openAdvancedSearch,h=e.options,m=e.searchOptions,v=e.theme,g=e.tooltips,y=e.value,b=e.DetailLink,w=e.createPermission,O=e.openRemoteCreate,x=(0,_.useRef)(null),k=(0,_.useRef)(null),S=function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.clientWidth)||300},P=function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.clientHeight)||35},j=(0,_.useState)(S()),E=ma()(j,2),C=E[0],D=E[1],T=(0,_.useState)(P()),M=ma()(T,2),I=M[0],N=M[1],R=(0,_.useState)(!1),A=ma()(R,2),F=A[0],Z=A[1],H=function(e){t&&t(e)},U=(0,_.useCallback)(m||function(){},[]),B=(0,_.useCallback)(Yj()(U,800,{trailing:!0}),[]),W=Boolean(d),Y=Boolean(p),z=Boolean(w);return(0,L.jsx)(Mp,{tabIndex:"-1",id:n,onFocus:function(){x.current.focus(),setTimeout((function(){D(S()),N(P())}),0)},children:(0,L.jsx)(Ip,{ref:k,children:(0,L.jsx)(VE,MC(MC({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:C,wrapperHeight:I,components:{ClearIndicator:KE,LoadingIndicator:lC,DropdownIndicator:$E,IndicatorsContainer:uC,IndicatorSeparator:null,Menu:dC,MenuList:vC,MultiValueLabel:bC,SingleValue:jC,ValueContainer:DC},noOptionsMessage:function(e){return s||("function"==typeof l?(0,L.jsx)(l,MC({},e)):" - ")},isMulti:a,closeMenuOnSelect:!a,isSearchable:!0},m?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,value:y||null,onChange:function(e){f(e),H(e)},onInputChange:function(e,t){var n=t.action;m&&e&&B(e,y),""===e&&"input-change"===n&&H(y)},options:ge()(h||[]),onKeyDown:function(e){"Enter"===e.key&&F?(e.stopPropagation(),x.current&&null===x.current.focusedOptionRef&&e.preventDefault()):"Tab"===e.key&&(e.preventDefault=function(){})},isLoading:o,isDisabled:r,ref:x,onMenuOpen:function(){H(y),Z(!0)},onMenuClose:function(){Z(!1)},styles:Bp(v),loadTooltip:i,tooltips:g,DetailLink:b,hasDocsTreeSearch:Y,openDocsTreeSearch:p,hasAdvancedSearch:W,openAdvancedSearch:d,moreOptionsAvailable:c,moreOptionsAvailableText:u,blurInputOnSelect:!1,hasCreatePermission:z,createPermission:w,openRemoteCreate:O,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const NC=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.options,a=o.trueLabel,i=o.falseLabel,c=e.onChange;return(0,L.jsx)(IC,{id:t,immutable:n,isMulti:!1,onChange:function(e){return c(e?e.key:null)},value:Bj()(r)?r:{key:r,display:r?a:i},openMenuOnClick:!0,options:[{key:!0,display:a},{key:!1,display:i}]})};var RC,AC=T.ZP.div.withConfig({displayName:"StyledBoolEdit"})(RC||(RC=D()(["\n margin: 5px 0;\n"])));const LC=function(e){return(0,L.jsx)(AC,{children:(0,L.jsx)("input",{type:"checkbox",checked:e.value||!1,name:e.name,onChange:function(t){e.onChange&&e.onChange(t.target.checked)},id:e.id,disabled:e.immutable})})};var FC,ZC,HC=T.ZP.div.withConfig({displayName:"StyledOption"})(FC||(FC=D()(["\n margin: "," 0;\n"])),R.Z.space(-1.4)),UC=T.ZP.span.withConfig({displayName:"StyledLabel"})(ZC||(ZC=D()(["\n ","\n display: inline-block;\n margin-left: ",";\n vertical-align: middle;\n"])),(0,M.Z)(),R.Z.space(-1.5));function BC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BC(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var YC={single:"radio",multiple:"checkbox"},zC={single:{checked:!1},multiple:{}},VC=function(e,t){return t?(0,L.jsx)(Ta,{value:e}):e},qC=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.labelComponent,a=e.checked,i=e.immutable,c=e.hideCheckbox,u=e.selectionType,s=e.renderHtmlInOptions,l=e.handleChange;return(0,L.jsxs)(HC,{children:[!c&&(0,L.jsx)("input",{name:t,type:YC[u],checked:a||!1,onChange:l,id:n,disabled:i}),(0,L.jsx)(UC,{children:o||VC(r,s)})]})};const GC=function(e){var t=e.onChange,n=e.value,r=e.options,o=e.id,a=e.immutable,i=function(e){if(t){var o=n.options.map((function(t){return WC(WC({},t),t.id===e.target.id?{checked:e.target.checked}:zC[r.selectionType])}));t({options:o})}};return(0,L.jsx)(L.Fragment,{children:n.options.map((function(e){return(0,L.jsx)(qC,{groupName:o,id:e.id,label:e.label,labelComponent:e.labelComponent,checked:e.checked,immutable:a||e.immutable,hideCheckbox:e.hideCheckbox,selectionType:r.selectionType,renderHtmlInOptions:r.renderHtmlInOptions,handleChange:i},e.id)}))})};var KC=i(23279),XC=i.n(KC);function QC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QC(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var JC=(0,_.lazy)((function(){return Promise.all([i.e(560),i.e(85)]).then(i.bind(i,24295))}));const eD=function(e){return(0,L.jsx)(_.Suspense,{fallback:(t=e.value,(0,L.jsx)("div",{children:(0,L.jsx)("p",{children:t})})),children:(0,L.jsx)(JC,$C({},e))});var t};var tD,nD=T.ZP.div.withConfig({displayName:"StyledEditorWrapper"})(tD||(tD=D()(["\n margin-top: ",";\n"])),R.Z.space(-1.5));const rD=function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options;return(0,L.jsx)(nD,{children:(0,L.jsx)(eD,{value:t,onChange:XC()(n,1e3),autoFocusOnMount:o.autoFocusOnMount,mode:o.mode,theme:"textmate",showGutter:!0,editorOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,minLines:5,maxLines:50,readOnly:r,wrap:!0,indentedSoftWrap:!1},implicitModel:o.implicitModel})})};var oD=i(16721),aD={};aD.styleTagTransform=IO(),aD.setAttributes=CO(),aD.insert=jO().bind(null,"head"),aD.domAPI=PO(),aD.insertStyleElement=TO();kO()(oD.Z,aD);oD.Z&&oD.Z.locals&&oD.Z.locals;var iD=i(9198),cD=i.n(iD),uD=(Math.pow(10,8),6e4),sD=36e5;var lD={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},fD=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,pD=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,dD=/^([+-])(\d{2})(?::?(\d{2}))?$/;function hD(e){var t,n={},r=e.split(lD.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],lD.timeZoneDelimiter.test(n.date)&&(n.date=e.split(lD.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=lD.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}function mD(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}function vD(e,t){if(null===t)return new Date(NaN);var n=e.match(fD);if(!n)return new Date(NaN);var r=!!n[4],o=gD(n[1]),a=gD(n[2])-1,i=gD(n[3]),c=gD(n[4]),u=gD(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,c,u)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}(t,c,u):new Date(NaN);var s=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(OD[t]||(xD(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(xD(e)?366:365)}(t,o)?(s.setUTCFullYear(t,a,Math.max(o,i)),s):new Date(NaN)}function gD(e){return e?parseInt(e):1}function yD(e){var t=e.match(pD);if(!t)return NaN;var n=bD(t[1]),r=bD(t[2]),o=bD(t[3]);return function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o)?n*sD+r*uD+1e3*o:NaN}function bD(e){return e&&parseFloat(e.replace(",","."))||0}function wD(e){if("Z"===e)return 0;var t=e.match(dD);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?n*(r*sD+o*uD):NaN}var OD=[31,null,31,30,31,30,31,31,30,31,30,31];function xD(e){return e%400==0||e%4==0&&e%100!=0}var kD,SD,PD,_D=T.ZP.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(kD||(kD=D()(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),jD=T.ZP.div.withConfig({displayName:"StyledDatePickerWrapper"})(SD||(SD=D()(["\n &&&& {\n ","\n\n & .react-datepicker__input-container {\n & input {\n ","\n width: calc(100% - 5px);\n }\n }\n\n & .react-datepicker {\n & .react-datepicker__today-button {\n ","\n }\n }\n }\n"])),Ej,Dj,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),ED=T.ZP.input.withConfig({displayName:"StyledTimeInput"})(PD||(PD=D()(["\n &&&& {\n ","\n }\n"])),Dj);function CD(e){to(1,arguments);var t=ro(e),n=t.getSeconds();return n}function DD(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 TD(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return DD(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)?DD(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function MD(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function ID(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ND(e,t){return(ND=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function RD(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ND(e,t)}function AD(e){return(AD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function LD(e,t){if(t&&("object"===eo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ID(e)}function FD(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=AD(e);if(t){var o=AD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return LD(this,n)}}function ZD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HD(e){var t=function(e,t){if("object"!==eo(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==eo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===eo(t)?t:String(t)}function UD(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,HD(r.key),r)}}function BD(e,t,n){return t&&UD(e.prototype,t),n&&UD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function WD(e,t,n){return(t=HD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var YD=function(){function e(){ZD(this,e),WD(this,"priority",void 0),WD(this,"subPriority",0)}return BD(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),zD=function(e){RD(n,e);var t=FD(n);function n(e,r,o,a,i){var c;return ZD(this,n),(c=t.call(this)).value=e,c.validateValue=r,c.setValue=o,c.priority=a,i&&(c.subPriority=i),c}return BD(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(YD),VD=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",10),WD(ID(e),"subPriority",-1),e}return BD(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(YD),qD=function(){function e(){ZD(this,e),WD(this,"incompatibleTokens",void 0),WD(this,"priority",void 0),WD(this,"subPriority",void 0)}return BD(e,[{key:"run",value:function(e,t,n,r){var o=this.parse(e,t,n,r);return o?{setter:new zD(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),GD=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",140),WD(ID(e),"incompatibleTokens",["R","u","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(qD),KD=/^(1[0-2]|0?\d)/,XD=/^(3[0-1]|[0-2]?\d)/,QD=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,$D=/^(5[0-3]|[0-4]?\d)/,JD=/^(2[0-3]|[0-1]?\d)/,eT=/^(2[0-4]|[0-1]?\d)/,tT=/^(1[0-1]|0?\d)/,nT=/^(1[0-2]|0?\d)/,rT=/^[0-5]?\d/,oT=/^[0-5]?\d/,aT=/^\d/,iT=/^\d{1,2}/,cT=/^\d{1,3}/,uT=/^\d{1,4}/,sT=/^-?\d+/,lT=/^-?\d/,fT=/^-?\d{1,2}/,pT=/^-?\d{1,3}/,dT=/^-?\d{1,4}/,hT=/^([+-])(\d{2})(\d{2})?|Z/,mT=/^([+-])(\d{2})(\d{2})|Z/,vT=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,gT=/^([+-])(\d{2}):(\d{2})|Z/,yT=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function bT(e,t){return e?{value:t(e.value),rest:e.rest}:e}function wT(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function OT(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(o*sD+a*uD+1e3*i),rest:t.slice(n[0].length)}}function xT(e){return wT(sT,e)}function kT(e,t){switch(e){case 1:return wT(aT,t);case 2:return wT(iT,t);case 3:return wT(cT,t);case 4:return wT(uT,t);default:return wT(new RegExp("^\\d{1,"+e+"}"),t)}}function ST(e,t){switch(e){case 1:return wT(lT,t);case 2:return wT(fT,t);case 3:return wT(pT,t);case 4:return wT(dT,t);default:return wT(new RegExp("^-?\\d{1,"+e+"}"),t)}}function PT(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function _T(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var a=o+50;n=e+100*Math.floor(a/100)-(e>=a%100?100:0)}return r?n:1-n}function jT(e){return e%400==0||e%4==0&&e%100!=0}var ET=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",130),WD(ID(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return bT(kT(4,e),r);case"yo":return bT(n.ordinalNumber(e,{unit:"year"}),r);default:return bT(kT(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=_T(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(qD),CT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",130),WD(ID(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return bT(kT(4,e),r);case"Yo":return bT(n.ordinalNumber(e,{unit:"year"}),r);default:return bT(kT(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,r){var o=yo(e,r);if(n.isTwoDigitYear){var a=_T(n.year,o);return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),go(e,r)}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),go(e,r)}}]),n}(qD),DT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",130),WD(ID(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t){return ST("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),so(r)}}]),n}(qD),TT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",130),WD(ID(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t){return ST("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(qD),MT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",120),WD(ID(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return kT(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(qD),IT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",120),WD(ID(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return kT(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(qD),NT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),WD(ID(e),"priority",110),e}return BD(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return bT(wT(KD,e),r);case"MM":return bT(kT(2,e),r);case"Mo":return bT(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(qD),RT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",110),WD(ID(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return bT(wT(KD,e),r);case"LL":return bT(kT(2,e),r);case"Lo":return bT(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(qD);var AT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",100),WD(ID(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return wT($D,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return kT(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return go(function(e,t,n){to(2,arguments);var r=ro(e),o=ao(t),a=Oo(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*a),r}(e,n,r),r)}}]),n}(qD);var LT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",100),WD(ID(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return wT($D,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return kT(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return so(function(e,t){to(2,arguments);var n=ro(e),r=ao(t),o=ho(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n))}}]),n}(qD),FT=[31,28,31,30,31,30,31,31,30,31,30,31],ZT=[31,29,31,30,31,30,31,31,30,31,30,31],HT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",90),WD(ID(e),"subPriority",1),WD(ID(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return wT(XD,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return kT(t.length,e)}}},{key:"validate",value:function(e,t){var n=jT(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=ZT[r]:t>=1&&t<=FT[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(qD),UT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",90),WD(ID(e),"subpriority",1),WD(ID(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return wT(QD,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return kT(t.length,e)}}},{key:"validate",value:function(e,t){return jT(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(qD);function BT(e,t,n){var r,o,a,i,c,u,s,l;to(2,arguments);var f=vo(),p=ao(null!==(r=null!==(o=null!==(a=null!==(i=null==n?void 0:n.weekStartsOn)&&void 0!==i?i:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==a?a:f.weekStartsOn)&&void 0!==o?o:null===(s=f.locale)||void 0===s||null===(l=s.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=ro(e),h=ao(t),m=d.getUTCDay(),v=h%7,g=(v+7)%7,y=(g<p?7:0)+h-m;return d.setUTCDate(d.getUTCDate()+y),d}var WT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",90),WD(ID(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=BT(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(qD),YT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",90),WD(ID(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return bT(kT(t.length,e),o);case"eo":return bT(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=BT(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(qD),zT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",90),WD(ID(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return bT(kT(t.length,e),o);case"co":return bT(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=BT(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(qD);var VT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",90),WD(ID(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return kT(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return bT(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return bT(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return bT(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiii":default:return bT(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return(e=function(e,t){to(2,arguments);var n=ao(t);n%7==0&&(n-=7);var r=1,o=ro(e),a=o.getUTCDay(),i=((n%7+7)%7<r?7:0)+n-a;return o.setUTCDate(o.getUTCDate()+i),o}(e,n)).setUTCHours(0,0,0,0),e}}]),n}(qD),qT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",80),WD(ID(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(PT(n),0,0,0),e}}]),n}(qD),GT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",80),WD(ID(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(PT(n),0,0,0),e}}]),n}(qD),KT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",80),WD(ID(e),"incompatibleTokens",["a","b","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(PT(n),0,0,0),e}}]),n}(qD),XT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",70),WD(ID(e),"incompatibleTokens",["H","K","k","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return wT(nT,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return kT(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(qD),QT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",70),WD(ID(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return wT(JD,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return kT(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(qD),$T=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",70),WD(ID(e),"incompatibleTokens",["h","H","k","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return wT(tT,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return kT(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(qD),JT=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",70),WD(ID(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return wT(eT,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return kT(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}(qD),eM=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",60),WD(ID(e),"incompatibleTokens",["t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return wT(rT,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return kT(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(qD),tM=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",50),WD(ID(e),"incompatibleTokens",["t","T"]),e}return BD(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return wT(oT,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return kT(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(qD),nM=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",30),WD(ID(e),"incompatibleTokens",["t","T"]),e}return BD(n,[{key:"parse",value:function(e,t){return bT(kT(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(qD),rM=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",10),WD(ID(e),"incompatibleTokens",["t","T","x"]),e}return BD(n,[{key:"parse",value:function(e,t){switch(t){case"X":return OT(hT,e);case"XX":return OT(mT,e);case"XXXX":return OT(vT,e);case"XXXXX":return OT(yT,e);case"XXX":default:return OT(gT,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(qD),oM=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",10),WD(ID(e),"incompatibleTokens",["t","T","X"]),e}return BD(n,[{key:"parse",value:function(e,t){switch(t){case"x":return OT(hT,e);case"xx":return OT(mT,e);case"xxxx":return OT(vT,e);case"xxxxx":return OT(yT,e);case"xxx":default:return OT(gT,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(qD),aM=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",40),WD(ID(e),"incompatibleTokens","*"),e}return BD(n,[{key:"parse",value:function(e){return xT(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(qD),iM=function(e){RD(n,e);var t=FD(n);function n(){var e;ZD(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return WD(ID(e=t.call.apply(t,[this].concat(o))),"priority",20),WD(ID(e),"incompatibleTokens","*"),e}return BD(n,[{key:"parse",value:function(e){return xT(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(qD),cM={G:new GD,y:new ET,Y:new CT,R:new DT,u:new TT,Q:new MT,q:new IT,M:new NT,L:new RT,w:new AT,I:new LT,d:new HT,D:new UT,E:new WT,e:new YT,c:new zT,i:new VT,a:new qT,b:new GT,B:new KT,h:new XT,H:new QT,K:new $T,k:new JT,m:new eM,s:new tM,S:new nM,X:new rM,x:new oM,t:new aM,T:new iM},uM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,sM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,lM=/^'([^]*?)'?$/,fM=/''/g,pM=/\S/,dM=/[a-zA-Z]/;function hM(e,t,n,r){var o,a,i,c,u,s,l,f,p,d,h,m,v,g,y,b,w,O;to(3,arguments);var x=String(e),k=String(t),S=vo(),P=null!==(o=null!==(a=null==r?void 0:r.locale)&&void 0!==a?a:S.locale)&&void 0!==o?o:ea;if(!P.match)throw new RangeError("locale must contain match property");var _=ao(null!==(i=null!==(c=null!==(u=null!==(s=null==r?void 0:r.firstWeekContainsDate)&&void 0!==s?s:null==r||null===(l=r.locale)||void 0===l||null===(f=l.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==u?u:S.firstWeekContainsDate)&&void 0!==c?c:null===(p=S.locale)||void 0===p||null===(d=p.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==i?i:1);if(!(_>=1&&_<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var j=ao(null!==(h=null!==(m=null!==(v=null!==(g=null==r?void 0:r.weekStartsOn)&&void 0!==g?g:null==r||null===(y=r.locale)||void 0===y||null===(b=y.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==v?v:S.weekStartsOn)&&void 0!==m?m:null===(w=S.locale)||void 0===w||null===(O=w.options)||void 0===O?void 0:O.weekStartsOn)&&void 0!==h?h:0);if(!(j>=0&&j<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===x?ro(n):new Date(NaN);var E,C={firstWeekContainsDate:_,weekStartsOn:j,locale:P},D=[new VD],T=k.match(sM).map((function(e){var t=e[0];return t in Ao?(0,Ao[t])(e,P.formatLong):e})).join("").match(uM),M=[],I=TD(T);try{var N=function(){var t=E.value;null!=r&&r.useAdditionalWeekYearTokens||!Uo(t)||Bo(t,k,e),null!=r&&r.useAdditionalDayOfYearTokens||!Ho(t)||Bo(t,k,e);var n=t[0],o=cM[n];if(o){var a=o.incompatibleTokens;if(Array.isArray(a)){var i=M.find((function(e){return a.includes(e.token)||e.token===n}));if(i)throw new RangeError("The format string mustn't contain `".concat(i.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===o.incompatibleTokens&&M.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));M.push({token:n,fullToken:t});var c=o.run(x,t,P.match,C);if(!c)return{v:new Date(NaN)};D.push(c.setter),x=c.rest}else{if(n.match(dM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=mM(t)),0!==x.indexOf(t))return{v:new Date(NaN)};x=x.slice(t.length)}};for(I.s();!(E=I.n()).done;){var R=N();if("object"===eo(R))return R.v}}catch(e){I.e(e)}finally{I.f()}if(x.length>0&&pM.test(x))return new Date(NaN);var A=D.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return D.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),L=ro(n);if(isNaN(L.getTime()))return new Date(NaN);var F,Z=co(L,Lo(L)),H={},U=TD(A);try{for(U.s();!(F=U.n()).done;){var B=F.value;if(!B.validate(Z,C))return new Date(NaN);var W=B.set(Z,H,C);Array.isArray(W)?(Z=W[0],MD(H,W[1])):Z=W}}catch(e){U.e(e)}finally{U.f()}return Z}function mM(e){return e.match(lM)[1].replace(fM,"'")}function vM(e,t,n){return to(2,arguments),oo(hM(e,t,new Date,n))}var gM="react-datepicker-time__input",yM="react-datepicker__day",bM="react-datepicker__input",wM=function(e){return e.classList.contains(yM)},OM=function(e){return e.classList.contains(gM)},xM=function(e){return e.classList.contains(bM)},kM=function(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,a=void 0===o?0:o,i=t.second;return Va(Ga(Xa(e,void 0===i?0:i),a),r)},SM=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(yM,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},PM=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},_M=function(e){var t=function(e,t){var n;to(1,arguments);var r=ao(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,a=hD(e);if(a.date){var i=mD(a.date,r);o=vD(i.restDateString,i.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var c,u=o.getTime(),s=0;if(a.time&&(s=yD(a.time),isNaN(s)))return new Date(NaN);if(!a.timezone){var l=new Date(u+s),f=new Date(0);return f.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),f.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),f}return c=wD(a.timezone),isNaN(c)?new Date(NaN):new Date(u+s+c)}(e);return isNaN(t)?null:t},jM=function(e){return e?e.toISOString():null};const EM=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,a=n.minDate,i=n.maxDate,c=n.hasTime,u=n.valueToDate,s=void 0===u?_M:u,l=n.dateToValue,f=void 0===l?jM:l,p=(0,_.useRef)(null),d=(0,_.useState)(!1),h=ma()(d,2),m=h[0],v=h[1],g=(0,_.useState)(!1),y=ma()(g,2),b=y[0],w=y[1],O=s(e),x=a?s(a):void 0,k=i?s(i):void 0;(0,_.useEffect)((function(){(p.current&&"function"==typeof p.current.setOpen&&p.current.setOpen(m),m)&&document.querySelectorAll("button.react-datepicker__navigation").forEach((function(e){return e.setAttribute("tabindex","-1")}))}),[m]);var S=function(){return v(!1)},P=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(p.current&&"function"==typeof p.current.getPreSelection){var t,n=e?p.current.getPreSelection():null;return(null===(t=p.current.state)||void 0===t?void 0:t.preSelection)||n}return null},j=function(e){p.current&&"function"==typeof p.current.setPreSelection&&p.current.setPreSelection(e)},E=function(){t(null),j(null)},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=P(!1);if(n){var r=O||new Date,o=t?kM(n,{hour:qa(r),minute:Ka(r),second:CD(r)}):n;D(o,e)}},D=function(n,r){if(n){var a,i=!e&&Boolean(n),u=null==r||null===(a=r.target)||void 0===a?void 0:a.value,s=!!u&&o.some((function(e){return vM(u,e)})),l=function(e){to(1,arguments);var t=ro(e);return t.setHours(0,0,0,0),t}(n),d=qa(n)!==qa(l)||Ka(n)!==Ka(l);(i&&!d||s)&&c&&(n=Mi(n)),t(f(n))}else E();var h;c||"click"!==(null==r?void 0:r.type)||(S(),PM(null===(h=p.current)||void 0===h?void 0:h.input))},T=function(e){if("Tab"===e.key)if(e.shiftKey)if(xM(e.target))setTimeout((function(){return S()}),0);else if(OM(e.target)){var t,n;j(O||P(!0)),SM(null===(t=p.current)||void 0===t||null===(n=t.calendar)||void 0===n?void 0:n.componentNode)}else wM(e.target)&&S();else xM(e.target)&&m?(C(e),setTimeout((function(){return S()}),0)):OM(e.target)?S():wM(e.target)&&(c?(C(e,!0),j(null),w(!0),setTimeout((function(){var e,t,n;n=null===(e=p.current)||void 0===e||null===(t=e.calendar)||void 0===t?void 0:t.componentNode,setTimeout((function(){if(n){var e=n.querySelector("input.".concat(gM));e&&e.focus({preventScroll:!0})}}),0),w(!1)}),0)):(C(e),S()));var r;"Enter"===e.key&&(S(),e.preventDefault(),e.stopPropagation(),PM(null===(r=p.current)||void 0===r?void 0:r.input));if(["ArrowDown","ArrowUp","Enter"].includes(e.key))if(m){if(m&&null===P(!1)){var o,a;j(O||P(!0)),SM(null===(o=p.current)||void 0===o||null===(a=o.calendar)||void 0===a?void 0:a.componentNode)}}else v(!0),e.key="Handled".concat(e.key)},M=function(){var e;v((function(e){return!e})),j(null),PM(null===(e=p.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{closeOnScroll:function(){return S(),!0},onClickOutside:S,onInputClick:M,onKeyDown:T,onChange:D,onCalendarOpen:function(){j(null)},onBlur:function(){p.current&&p.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:m,selected:O,showTimeInput:c,minDate:x,maxDate:k,ref:p,className:bM},timeInputProps:{onKeyDown:T,className:gM,tabIndex:b?void 0:"-1"},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),E()}},calendarButtonProps:{onClick:M,className:m?"react-datepicker-ignore-onclickoutside":""}}};var CM="HH:mm:ss",DM="HH:mm",TM=function(e){return vM(e,DM)},MM=function(e){var t=function(e){return vM(e,CM)?hM(e,CM,new Date):vM(e,DM)?hM(e,DM,new Date):vM(e,"HH:")?hM(e,"HH:",new Date):vM(e,"H")?hM(e,"H",new Date):null}(e);return t&&!isNaN(t)?function(e){return ca(e,DM)}(t):""};const IM=function(e,t){var n=MM(e),r=(0,_.useState)(n),o=ma()(r,2),a=o[0],i=o[1],c=(0,_.useRef)(a),u=th.usePrevious(n);(0,_.useEffect)((function(){u!==n&&a===u&&i(n)}),[n,a,u]);return{inputProps:{onChange:function(e){if(e.target.value!==a&&function(e){return/^(\d{0,2}|\d{1,2}:\d{0,2})$/.test(e)}(e.target.value)){var n=function(e,t){return e&&t?2!==e.length||3===t.length||e.includes(":")?e.length+1===t.length&&t.indexOf(":")===t.length-1?e.slice(0,-1):e:"".concat(e,":"):e}(e.target.value,c.current),r=n.indexOf(":"),o=n.substring(0,r),u=n.substring(r+1),s=parseInt(o,10),l=parseInt(u,10),f=!o||!Number.isNaN(s)&&s<24,p=!u||!Number.isNaN(l)&&l<60;if(!f||!p)return!1;c.current=n,i(n),n&&!TM(n)||t(n)}},onBlur:function(){if(a!==n){var e=MM(a);e&&TM(e)?(c.current=e,i(e),t(e)):i(n)}},onFocus:function(e){a&&"function"==typeof e.target.select&&e.target.select()},value:a||""},clearButtonProps:{onClick:function(){t(""),i("")}}}};var NM=["value","onChange","onKeyDown"];function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function AM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RM(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}(0,iD.registerLocale)("en",_i("en")),(0,iD.registerLocale)("en-US",_i("en")),(0,iD.registerLocale)("de-CH",_i("de-CH")),(0,iD.registerLocale)("de",_i("de")),(0,iD.registerLocale)("fr",_i("fr")),(0,iD.registerLocale)("fr-CH",_i("fr")),(0,iD.registerLocale)("it",_i("it")),(0,iD.registerLocale)("it-CH",_i("it")),(0,iD.setDefaultLocale)("de");var LM=function(e){var t=e.onChange,n=e.label;return(0,L.jsx)(Ju,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},FM=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=Jy()(e,NM),a=IM(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,L.jsx)(ED,AM(AM(AM({},a),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},ZM={strategy:"fixed"};const HM=(0,T.Zz)((0,h.ZP)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,a=e.maxDate,i=e.valueToDate,c=e.dateToValue,u=e.onChange,s=e.intl,l=e.placeholder,f=e.hasTime,p=e.dateFormats,d=void 0===p?[]:p,h=e.dateTimeFormats,m=void 0===h?[]:h,v=e.events,g=(0,_.useRef)(void 0),y=s.locale,b=function(e){return s.formatMessage({id:e})},w=(0,_.useRef)(null),O=Boolean(r),x=!t&&O,k=function(e){g.current=e,u(e)},S=EM(r,k,{dateFormats:d,dateTimeFormats:m,minDate:o,maxDate:a,valueToDate:i,dateToValue:c,hasTime:f}),P=S.reactDatePickerProps,j=S.timeInputProps,E=S.clearButtonProps,C=S.calendarButtonProps;return(0,L.jsx)(_D,{immutable:t,id:n,tabIndex:"-1",children:(0,L.jsxs)(jD,{immutable:t,ref:w,hasTime:f,onBlur:function(e){if("function"==typeof(null==v?void 0:v.onBlur)){var t=void 0!==g.current?g.current:r;v.onBlur(t)}e.stopPropagation()},children:[(0,L.jsx)(cD(),AM(AM({},P),{},{disabled:t,dateFormat:[].concat(ge()(m),ge()(d)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!1,fixedHeight:!0,showPopperArrow:!1,locale:y,customTimeInput:(0,L.jsx)(FM,AM({},j)),timeInputLabel:"",popperProps:ZM,todayButton:(0,L.jsx)(LM,{onChange:k,label:b("client.component.datePicker.todayLabel")})})),x&&(0,L.jsx)(Id,AM({icon:"times",tabIndex:-1,"aria-label":b("client.component.datePicker.clearDateLabel")},E)),!t&&(0,L.jsx)(Id,AM({icon:"calendar",tabIndex:-1},C))]})})})));function UM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const BM=function(e){var t=e.onChange,n=e.options,r=e.id,o=e.value,a=e.immutable,i=e.events,c=e.placeholder,u=(0,Qr.Z)(),s=(null==n?void 0:n.datePickerOptions)||{},l="".concat(ji(u.locale)),f=Ci(u.locale),p=[l,f,Ti(l),Ti(f)];return(0,L.jsx)(HM,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UM(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:r,value:o,onChange:t,dateFormats:p,hasTime:!1,immutable:a,placeholder:c,events:i},s))};function WM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const YM=(0,h.ZP)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,a=e.placeholder,i=(0,Qr.Z)(),c=(null==n?void 0:n.datePickerOptions)||{},u="".concat(Ei(i.locale)),s="".concat(ji(i.locale)),l=Di(i.locale),f=[u,l,Ti(u),Ti(l)],p=Ci(i.locale),d=[s,p,Ti(s),Ti(p)];return(0,L.jsx)(HM,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WM(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({value:r,onChange:t,dateTimeFormats:f,dateFormats:d,hasTime:!0,immutable:o,placeholder:a},c))}));function zM(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{u(r.next(e))}catch(e){a(e)}}function c(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}u((r=r.apply(e,t||[])).next())}))}function VM(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}Object.create;function qM(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function GM(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var KM=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function XM(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=KM.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var QM=[".DS_Store","Thumbs.db"];function $M(e){return"object"==typeof e&&null!==e}function JM(e){return rI(e.target.files).map((function(e){return XM(e)}))}function eI(e){return zM(this,void 0,void 0,(function(){return VM(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return XM(e)}))]}}))}))}function tI(e,t){return zM(this,void 0,void 0,(function(){var n;return VM(this,(function(r){switch(r.label){case 0:return e.items?(n=rI(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(oI))]):[3,2];case 1:return[2,nI(aI(r.sent()))];case 2:return[2,nI(rI(e.files).map((function(e){return XM(e)})))]}}))}))}function nI(e){return e.filter((function(e){return-1===QM.indexOf(e.name)}))}function rI(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function oI(e){if("function"!=typeof e.webkitGetAsEntry)return iI(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?uI(t):iI(e)}function aI(e){return e.reduce((function(e,t){return GM(GM([],qM(e),!1),qM(Array.isArray(t)?aI(t):[t]),!1)}),[])}function iI(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=XM(t);return Promise.resolve(n)}function cI(e){return zM(this,void 0,void 0,(function(){return VM(this,(function(t){return[2,e.isDirectory?uI(e):sI(e)]}))}))}function uI(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var a=this;t.readEntries((function(t){return zM(a,void 0,void 0,(function(){var a,i,c;return VM(this,(function(u){switch(u.label){case 0:if(t.length)return[3,5];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return a=u.sent(),e(a),[3,4];case 3:return i=u.sent(),n(i),[3,4];case 4:return[3,6];case 5:c=Promise.all(t.map(cI)),r.push(c),o(),u.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function sI(e){return zM(this,void 0,void 0,(function(){return VM(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=XM(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var lI=i(58363);function fI(e){return function(e){if(Array.isArray(e))return gI(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vI(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pI(Object(n),!0).forEach((function(t){hI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}(e,t)||vI(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vI(e,t){if(e){if("string"==typeof e)return gI(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)?gI(e,t):void 0}}function gI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var yI="file-invalid-type",bI="file-too-large",wI="file-too-small",OI="too-many-files",xI=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:yI,message:"File type must be ".concat(t)}},kI=function(e){return{code:bI,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},SI=function(e){return{code:wI,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},PI={code:OI,message:"Too many files"};function _I(e,t){var n="application/x-moz-file"===e.type||(0,lI.Z)(e,t);return[n,n?null:xI(t)]}function jI(e,t,n){if(EI(e.size))if(EI(t)&&EI(n)){if(e.size>n)return[!1,kI(n)];if(e.size<t)return[!1,SI(t)]}else{if(EI(t)&&e.size<t)return[!1,SI(t)];if(EI(n)&&e.size>n)return[!1,kI(n)]}return[!0,null]}function EI(e){return null!=e}function CI(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,a=e.multiple,i=e.maxFiles,c=e.validator;return!(!a&&t.length>1||a&&i>=1&&t.length>i)&&t.every((function(e){var t=mI(_I(e,n),1)[0],a=mI(jI(e,r,o),1)[0],i=c?c(e):null;return t&&a&&!i}))}function DI(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function TI(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function MI(e){e.preventDefault()}function II(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function NI(e){return-1!==e.indexOf("Edge/")}function RI(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return II(e)||NI(e)}function AI(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!DI(e)&&t&&t.apply(void 0,[e].concat(r)),DI(e)}))}}function LI(){return"showOpenFilePicker"in window}function FI(e){return EI(e)?[{description:"Files",accept:Object.entries(e).filter((function(e){var t=mI(e,2),n=t[0],r=t[1],o=!0;return BI(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(r)&&r.every(WI)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=mI(t,2),r=n[0],o=n[1];return dI(dI({},e),{},hI({},r,o))}),{})}]:e}function ZI(e){if(EI(e))return Object.entries(e).reduce((function(e,t){var n=mI(t,2),r=n[0],o=n[1];return[].concat(fI(e),[r],fI(o))}),[]).filter((function(e){return BI(e)||WI(e)})).join(",")}function HI(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}function UI(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}function BI(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function WI(e){return/^.*\.[\w]+$/.test(e)}var YI=["children"],zI=["open"],VI=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],qI=["refKey","onChange","onClick"];function GI(e){return function(e){if(Array.isArray(e))return QI(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||XI(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function KI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}(e,t)||XI(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function XI(e,t){if(e){if("string"==typeof e)return QI(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)?QI(e,t):void 0}}function QI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function JI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$I(Object(n),!0).forEach((function(t){eN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tN(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var nN=(0,_.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JI(JI({},rN),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,i=t.minSize,c=t.multiple,u=t.maxFiles,s=t.onDragEnter,l=t.onDragLeave,f=t.onDragOver,p=t.onDrop,d=t.onDropAccepted,h=t.onDropRejected,m=t.onFileDialogCancel,v=t.onFileDialogOpen,g=t.useFsAccessApi,y=t.autoFocus,b=t.preventDropOnDocument,w=t.noClick,O=t.noKeyboard,x=t.noDrag,k=t.noDragEventsBubbling,S=t.onError,P=t.validator,j=(0,_.useMemo)((function(){return ZI(n)}),[n]),E=(0,_.useMemo)((function(){return FI(n)}),[n]),C=(0,_.useMemo)((function(){return"function"==typeof v?v:mN}),[v]),D=(0,_.useMemo)((function(){return"function"==typeof m?m:mN}),[m]),T=(0,_.useRef)(null),M=(0,_.useRef)(null),I=KI((0,_.useReducer)(hN,dN),2),N=I[0],R=I[1],A=N.isFocused,L=N.isFileDialogActive,F=(0,_.useRef)("undefined"!=typeof window&&window.isSecureContext&&g&&LI()),Z=function(){!F.current&&L&&setTimeout((function(){M.current&&(M.current.files.length||(R({type:"closeDialog"}),D()))}),300)};(0,_.useEffect)((function(){return window.addEventListener("focus",Z,!1),function(){window.removeEventListener("focus",Z,!1)}}),[M,L,D,F]);var H=(0,_.useRef)([]),U=function(e){T.current&&T.current.contains(e.target)||(e.preventDefault(),H.current=[])};(0,_.useEffect)((function(){return b&&(document.addEventListener("dragover",MI,!1),document.addEventListener("drop",U,!1)),function(){b&&(document.removeEventListener("dragover",MI),document.removeEventListener("drop",U))}}),[T,b]),(0,_.useEffect)((function(){return!r&&y&&T.current&&T.current.focus(),function(){}}),[T,y,r]);var B=(0,_.useCallback)((function(e){S?S(e):console.error(e)}),[S]),W=(0,_.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),H.current=[].concat(GI(H.current),[e.target]),TI(e)&&Promise.resolve(o(e)).then((function(t){if(!DI(e)||k){var n=t.length,r=n>0&&CI({files:t,accept:j,minSize:i,maxSize:a,multiple:c,maxFiles:u,validator:P});R({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),s&&s(e)}})).catch((function(e){return B(e)}))}),[o,s,B,k,j,i,a,c,u,P]),Y=(0,_.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=TI(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1}),[f,k]),z=(0,_.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=H.current.filter((function(e){return T.current&&T.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),H.current=t,t.length>0||(R({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),TI(e)&&l&&l(e))}),[T,l,k]),V=(0,_.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=KI(_I(e,j),2),o=t[0],c=t[1],u=KI(jI(e,i,a),2),s=u[0],l=u[1],f=P?P(e):null;if(o&&s&&!f)n.push(e);else{var p=[c,l];f&&(p=p.concat(f)),r.push({file:e,errors:p.filter((function(e){return e}))})}})),(!c&&n.length>1||c&&u>=1&&n.length>u)&&(n.forEach((function(e){r.push({file:e,errors:[PI]})})),n.splice(0)),R({acceptedFiles:n,fileRejections:r,type:"setFiles"}),p&&p(n,r,t),r.length>0&&h&&h(r,t),n.length>0&&d&&d(n,t)}),[R,c,j,i,a,u,p,d,h,P]),q=(0,_.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),H.current=[],TI(e)&&Promise.resolve(o(e)).then((function(t){DI(e)&&!k||V(t,e)})).catch((function(e){return B(e)})),R({type:"reset"})}),[o,V,B,k]),G=(0,_.useCallback)((function(){if(F.current){R({type:"openDialog"}),C();var e={multiple:c,types:E};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){V(e,null),R({type:"closeDialog"})})).catch((function(e){HI(e)?(D(e),R({type:"closeDialog"})):UI(e)?(F.current=!1,M.current?(M.current.value=null,M.current.click()):B(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):B(e)}))}else M.current&&(R({type:"openDialog"}),C(),M.current.value=null,M.current.click())}),[R,C,D,g,V,B,E,c]),K=(0,_.useCallback)((function(e){T.current&&T.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),G()))}),[T,G]),X=(0,_.useCallback)((function(){R({type:"focus"})}),[]),Q=(0,_.useCallback)((function(){R({type:"blur"})}),[]),$=(0,_.useCallback)((function(){w||(RI()?setTimeout(G,0):G())}),[w,G]),J=function(e){return r?null:e},ee=function(e){return O?null:J(e)},te=function(e){return x?null:J(e)},ne=function(e){k&&e.stopPropagation()},re=(0,_.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.role,a=e.onKeyDown,i=e.onFocus,c=e.onBlur,u=e.onClick,s=e.onDragEnter,l=e.onDragOver,f=e.onDragLeave,p=e.onDrop,d=tN(e,VI);return JI(JI(eN({onKeyDown:ee(AI(a,K)),onFocus:ee(AI(i,X)),onBlur:ee(AI(c,Q)),onClick:J(AI(u,$)),onDragEnter:te(AI(s,W)),onDragOver:te(AI(l,Y)),onDragLeave:te(AI(f,z)),onDrop:te(AI(p,q)),role:"string"==typeof o&&""!==o?o:"presentation"},n,T),r||O?{}:{tabIndex:0}),d)}}),[T,K,X,Q,$,W,Y,z,q,O,x,r]),oe=(0,_.useCallback)((function(e){e.stopPropagation()}),[]),ae=(0,_.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,a=tN(e,qI);return JI(JI({},eN({accept:j,multiple:c,type:"file",style:{display:"none"},onChange:J(AI(r,q)),onClick:J(AI(o,oe)),tabIndex:-1},n,M)),a)}}),[M,n,c,q,r]);return JI(JI({},N),{},{isFocused:A&&!r,getRootProps:re,getInputProps:ae,rootRef:T,inputRef:M,open:J(G)})}(tN(e,YI)),o=r.open,a=tN(r,zI);return(0,_.useImperativeHandle)(t,(function(){return{open:o}}),[o]),j().createElement(_.Fragment,null,n(JI(JI({},a),{},{open:o})))}));nN.displayName="Dropzone";var rN={disabled:!1,getFilesFromEvent:function(e){return zM(this,void 0,void 0,(function(){return VM(this,(function(t){return $M(e)&&$M(e.dataTransfer)?[2,tI(e.dataTransfer,e.type)]:function(e){return $M(e)&&$M(e.target)}(e)?[2,JM(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,eI(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};nN.defaultProps=rN,nN.propTypes={children:Ed().func,accept:Ed().objectOf(Ed().arrayOf(Ed().string)),multiple:Ed().bool,preventDropOnDocument:Ed().bool,noClick:Ed().bool,noKeyboard:Ed().bool,noDrag:Ed().bool,noDragEventsBubbling:Ed().bool,minSize:Ed().number,maxSize:Ed().number,maxFiles:Ed().number,disabled:Ed().bool,getFilesFromEvent:Ed().func,onFileDialogCancel:Ed().func,onFileDialogOpen:Ed().func,useFsAccessApi:Ed().bool,autoFocus:Ed().bool,onDragEnter:Ed().func,onDragLeave:Ed().func,onDragOver:Ed().func,onDrop:Ed().func,onDropAccepted:Ed().func,onDropRejected:Ed().func,onError:Ed().func,validator:Ed().func};const oN=nN;var aN,iN,cN,uN,sN,lN,fN,pN,dN={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function hN(e,t){switch(t.type){case"focus":return JI(JI({},e),{},{isFocused:!0});case"blur":return JI(JI({},e),{},{isFocused:!1});case"openDialog":return JI(JI({},dN),{},{isFileDialogActive:!0});case"closeDialog":return JI(JI({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return JI(JI({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return JI(JI({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return JI({},dN);default:return e}}function mN(){}var vN,gN=T.ZP.section.withConfig({displayName:"StyledSection"})(aN||(aN=D()(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),yN=T.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(iN||(iN=D()(["\n display: flex;\n align-items: center;\n\n "," {\n margin: 0;\n border-radius: 50%;\n padding: ",";\n\n a:hover {\n color: unset;\n }\n }\n"])),Ku,R.Z.space(-2)),bN=T.ZP.div.withConfig({displayName:"StyledDropzone"})(cN||(cN=D()(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),Ku,N.color("backgroundItemHover")),wN=T.ZP.div.withConfig({displayName:"StyledUploadInput"})(uN||(uN=D()(["\n ","\n cursor: ",";\n background-color: ",";\n color: ",";\n padding: "," 0 0 0;\n display: flex;\n\n "," {\n float: right;\n position: relative;\n top: -",";\n margin: 0;\n border-radius: 50%;\n padding: ",";\n }\n"])),(0,M.Z)(),(function(e){return e.immutable?"not-allowed":"pointer"}),N.color("paper"),(function(e){return e.immutable?L_.shade2(e):L_.base(e)}),R.Z.space(-2),Ku,R.Z.space(-3.1),R.Z.space(-1.5)),ON=T.ZP.div.withConfig({displayName:"StyledUploadProgress"})(sN||(sN=D()(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),R.Z.space(-2)),xN=(0,T.ZP)(fr).withConfig({displayName:"StyledUploadProgressText"})(lN||(lN=D()(["\n && {\n ","\n }\n"])),(0,M.Z)({fontSize:R.Z.font(-1)})),kN=T.ZP.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(fN||(fN=D()(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),R.Z.space(-2)),SN=T.ZP.div.withConfig({displayName:"StyledView"})(pN||(pN=D()(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),R.Z.space(-2));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 _N(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){Y()(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}const jN=function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose;return(0,L.jsxs)(wN,{immutable:n,children:[(0,L.jsx)(oN,{onDrop:function(e){var n=e.map((function(e){return Object.assign(e,{preview:URL.createObjectURL(e)})}));t(n[0])},multiple:!1,disabled:n,title:r||"drag and drop or click",children:function(e){var t=e.getRootProps,n=e.getInputProps;return(0,L.jsx)(gN,{children:(0,L.jsxs)(bN,_N(_N({},t()),{},{children:[(0,L.jsx)("input",_N({},n())),vN||(vN=(0,L.jsx)(Ju,{icon:"arrow-to-top"}))]}))})}}),o&&(0,L.jsx)(Ju,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:"browse docs",iconOnly:!0})]})};var EN=function(e){var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat(1*(e/Math.pow(1024,t)).toFixed(2)," ").concat(["Bytes","KB","MB","GB","TB"][t])};const CN=function(e){var t=e.file,n=e.text;return(0,L.jsxs)(ON,{children:[(0,L.jsx)(Ya,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,L.jsxs)(kN,{children:[(0,L.jsx)(Hc,{position:Uc.Z.position.PREPEND}),(0,L.jsxs)(xN,{children:[n||"uploading"," (",EN(t.size),")"]})]})]})};function DN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DN(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const MN=function(e){var t,n=e.value,r=e.downloadTitle,o=e.immutable,a=e.onUpload,i=e.deleteTitle,c=null===(t=n.binaryLink)||void 0===t?void 0:t.startsWith("blob:");return(0,L.jsxs)(SN,{className:"StyledView",children:[(0,L.jsx)(Ya,TN(TN({alt:n.fileName},c&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,L.jsxs)(yN,{children:[!o&&(0,L.jsx)(Ju,{icon:"trash",onClick:function(){return a(null)},tabIndex:-1,title:i||"delete"}),(0,L.jsx)(Ju,{children:(0,L.jsx)(Za.Z,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:Fa.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function IN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function NN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IN(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var RN=function(e){var t=e.value,n=e.textResources,r=e.onUpload,o=e.onChoose,a=(0,_.useRef)(t),i=(0,_.useState)({isUploading:!1,previewFile:null}),c=ma()(i,2),u=c[0],s=c[1];return(0,_.useEffect)((function(){qi()(a.current,t)||s({isUploading:!1,previewFile:null}),a.current=t}),[t]),null!=t&&t.binaryLink?(0,L.jsx)(MN,NN(NN({},e),{},{deleteTitle:n.delete,downloadTitle:n.download})):u.isUploading?(0,L.jsx)(CN,NN({file:u.previewFile,text:n.uploading},e)):(0,L.jsx)(jN,NN(NN({},e),{},{onDrop:function(e){!function(e){s({isUploading:!0,previewFile:e})}(e),r(e)},onChoose:o}))};RN.defaultProps={textResources:{}};const AN=RN;var LN=function(e){return(0,L.jsx)(AN,{onUpload:function(t){null===t?e.onChange&&e.onChange(null):e.options.upload&&e.options.upload(t)},onChoose:e.options.choose,immutable:e.immutable,textResources:{upload:e.options.uploadText,uploading:e.options.uploadingText,delete:e.options.deleteText,download:e.options.downloadText},value:e.value?e.value:null})};LN.defaultProps={options:{}};const FN=LN;var ZN,HN,UN=T.ZP.input.withConfig({displayName:"StyledDurationEdit"})(ZN||(ZN=D()(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),Dj,(function(e){return e.width})),BN=T.ZP.label.withConfig({displayName:"StyledDurationEditFocusable"})(HN||(HN=D()(["\n &&& {\n align-items: center;\n display: flex;\n flex-wrap: nowrap;\n margin-bottom: 0; /* reset bootstrap */\n margin-left: ",";\n\n &:first-child {\n margin-left: 0;\n }\n\n > span {\n color: ",";\n cursor: ",";\n }\n }\n"])),R.Z.space(1),(function(e){return e.immutable?N.color("textDisabled"):N.color("text")}),(function(e){return e.immutable?"not-allowed":"default"})),WN=function(e){var t=e.value,n=e.immutable,r=e.onChange,o=e.options,a=Si(t),i=(0,_.useState)(!1),c=ma()(i,2),u=c[0],s=c[1],l=function(e,t){var n,o,i=null!==t?t:a.minutes,c=null!==e?e:a.hours;""!==i||""!==c?(i>=60&&(c=0),r((o=i,(n=c)||o?((n<0||o<0)&&(n=Nj(n),o=Nj(o)),60*(n||0)*6e4+6e4*(o||0)):null))):r(null)},f=function(){s(!0)},p=function(e){e.charCode>=48&&e.charCode<=57||45===e.charCode&&!0===o.allowNegative||e.preventDefault()},d=function(){return!0===o.allowNegative?"-?d+":"d+"},h=function(){return u||"number"==typeof t},m=function(e){return 9*(e+"").length},v=n&&Boolean(a.seconds);return(0,L.jsxs)(Cj,{onBlur:function(){s(!1)},immutable:n,children:[(0,L.jsxs)(BN,{immutable:n,children:[(0,L.jsx)(UN,{disabled:n,immutable:n,min:!0===o.allowNegative?void 0:0,onChange:function(){},onFocus:f,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");l(t,null)},onKeyPress:p,pattern:d(),step:1,width:m(a.hours),type:"number",value:"number"!=typeof a.hours||0===a.hours&&!n?"":a.hours+""}),h()&&(0,L.jsx)(zr,{children:o.hoursLabel})]}),(0,L.jsxs)(BN,{immutable:n,children:[(0,L.jsx)(UN,{disabled:n,immutable:n,min:!0!==o.allowNegative||null!==a.hours&&0!==a.hours?0:void 0,onChange:function(){},onFocus:f,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");l(null,t)},onKeyPress:p,pattern:d(),step:1,width:m(a.minutes),type:"number",value:a.minutes+""}),h()&&(0,L.jsx)(zr,{children:o.minutesLabel})]}),v&&(0,L.jsxs)(BN,{immutable:n,children:[(0,L.jsx)(UN,{disabled:n,immutable:n,onChange:function(){},width:m(a.seconds),type:"number",value:a.seconds+""}),h()&&(0,L.jsx)(zr,{children:o.secondsLabel})]})]})};WN.defaultProps={options:{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}};const YN=WN;var zN;const VN=T.ZP.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(zN||(zN=D()(["\n &&&& {\n ","\n }\n"])),Dj);const qN=th.Debouncer((function(e){return(0,L.jsxs)(Cj,{immutable:e.immutable,children:[(0,L.jsx)(VN,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||""}),e.value&&(0,L.jsx)(Mj,{children:(0,L.jsx)(Za.Z,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));var GN=i(99489),KN=i.n(GN);function XN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?XN(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $N(){$N=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var a=new RegExp(e,r);return t.set(a,o||t.get(e)),KN()(a,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var a=0;void 0===e[o[a]]&&a+1<o.length;)a++;t[n]=e[o[a]]}return t}),Object.create(null))}return O()(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var a=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=a[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var i=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=qt()(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,i)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},$N.apply(this,arguments)}var JN,eR=["key","display","postcode","city","country","latitude","longitude"],tR=function(e){return e*Math.PI/180},nR=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=e.latitude,i=e.longitude,c=t?"- ".concat(t):"",u=n?"/ ".concat(n.display):"";return{key:r,display:"".concat(r," ").concat(o," ").concat(c," ").concat(u),postcode:r,city:o,country:n,latitude:tR(a),longitude:tR(i)}};function rR(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 oR(){}function aR(e){return!!(e||"").match(/\d/)}function iR(e){return null==e}function cR(e){return"number"==typeof e&&isNaN(e)}function uR(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function sR(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 lR(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function fR(e,t){return Array(t+1).join(e)}function pR(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."+fR("0",Math.abs(i))+o:i>=c?o+=fR("0",i-c):o=(o.substring(0,i)||"0")+"."+o.substring(i),n+o}function dR(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=sR(e),a=o.beforeDecimal,i=o.afterDecimal,c=o.hasNegation,u=parseFloat("0."+(i||"0")),s=(i.length<=t?"0."+i:u.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}),s[0])+(r?".":"")+lR(s[1]||"",t,n)}function hR(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 mR(e){return Math.max(e.selectionStart,e.selectionEnd)}function vR(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function gR(e,t,n,r){var o=e.length;if(t=function(e,t,n){return Math.min(Math.max(e,t),n)}(t,0,o),"left"===r){for(;t>=0&&!n[t];)t--;-1===t&&(t=n.indexOf(!0))}else{for(;t<=o&&!n[t];)t++;t>o&&(t=n.lastIndexOf(!0))}return-1===t&&(t=o),t}function yR(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(aR(e[n])||aR(e[n-1]));return t}function bR(e,t,n,r,o,a){void 0===a&&(a=oR);var i,c,u=(0,_.useRef)(),s=(i=function(e){var t,a;return iR(e)||cR(e)?(a="",t=""):"number"==typeof e||n?(a="number"==typeof e?pR(e):e,t=r(a)):(a=o(e,void 0),t=e),{formattedValue:t,numAsString:a}},(c=(0,_.useRef)(i)).current=i,(0,_.useRef)((function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return c.current.apply(c,e)})).current),l=(0,_.useState)((function(){return s(t)})),f=l[0],p=l[1];return(0,_.useMemo)((function(){iR(e)?u.current=void 0:(u.current=s(e),p(u.current))}),[e,s]),[f,function(e,t){p({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}]}function wR(e){return e.replace(/[^0-9]/g,"")}function OR(e){return e}function xR(e){var t=e.type;void 0===t&&(t="text");var n=e.displayType;void 0===n&&(n="input");var r=e.customInput,o=e.renderText,a=e.getInputRef,i=e.format;void 0===i&&(i=OR);var c=e.removeFormatting;void 0===c&&(c=wR);var u=e.defaultValue,s=e.valueIsNumericString,l=e.onValueChange,f=e.isAllowed,p=e.onChange;void 0===p&&(p=oR);var d=e.onKeyDown;void 0===d&&(d=oR);var h=e.onMouseUp;void 0===h&&(h=oR);var m=e.onFocus;void 0===m&&(m=oR);var v=e.onBlur;void 0===v&&(v=oR);var g=e.value,y=e.getCaretBoundary;void 0===y&&(y=yR);var b=e.isValidInputCharacter;void 0===b&&(b=aR);var w=rR(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter"]),O=bR(g,u,Boolean(s),i,c,l),x=O[0],k=x.formattedValue,S=x.numAsString,P=O[1],E=(0,_.useRef)();(0,_.useEffect)((function(){var e=i(S);if(void 0===E.current||e!==E.current){var t=M.current,n=c(e,void 0);Z({formattedValue:e,numAsString:n,input:t,setCaretPosition:!0,source:JN.props,event:void 0})}}));var C=(0,_.useState)(!1),D=C[0],T=C[1],M=(0,_.useRef)(null),I=(0,_.useRef)({setCaretTimeout:null,focusTimeout:null});(0,_.useEffect)((function(){return T(!0),function(){clearTimeout(I.current.setCaretTimeout),clearTimeout(I.current.focusTimeout)}}),[]);var N=i,R=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},A=function(e,t,n){hR(e,t),I.current.setCaretTimeout=setTimeout((function(){e.value===n&&hR(e,t)}),0)},L=function(e,t,n){return gR(e,t,y(e),n)},F=function(e,t,n){var r=y(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 u=n.length,s=e.length,l={},f=new Array(u),p=0;p<u;p++){f[p]=-1;for(var d=0,h=s;d<h;d++)if(n[p]===e[d]&&!0!==l[d]){f[p]=d,l[d]=!0;break}}for(var m=r;m<u&&(-1===f[m]||!a(n[m]));)m++;var v=m===u||-1===f[m]?s:f[m];for(m=r-1;m>0&&-1===f[m];)m--;var g=-1===m||-1===f[m]?0:f[m]+1;return g>v?v:r-g<v-r?g:v}(t,k,e,n,r,b);return o=gR(t,o,r)},Z=function(e){var t=e.formattedValue;void 0===t&&(t="");var n=e.input,r=e.setCaretPosition;void 0===r&&(r=!0);var o=e.source,a=e.event,i=e.numAsString,c=e.caretPos;if(n){if(void 0===c&&r){var u=e.inputValue||n.value,s=mR(n);n.value=t,c=F(u,t,s)}n.value=t,r&&void 0!==c&&A(n,c,t)}t!==k&&function(e,t){E.current=e.formattedValue,P(e,t)}(R(t,i),{event:a,source:o})},H=!D||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",U=Object.assign({inputMode:H},w,{type:t,value:k,onChange:function(e){(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}}}(k,e),o=Object.assign(Object.assign({},r),{lastValue:k}),a=c(e,o),i=N(a);if(a=c(i,void 0),f&&!f(R(i,a))){var u=t.target,s=mR(u),l=F(e,k,s);return A(u,l,k),!1}return Z({formattedValue:i,numAsString:a,inputValue:e,event:t,source:n,setCaretPosition:!0,input:t.target}),!0})(e.target.value,e,JN.event)&&p(e)},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,a=n.selectionEnd,i=n.value;if(void 0===i&&(i=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,i.length):"Delete"===r&&(t=o),void 0!==t&&o===a){var c=t;if("ArrowLeft"===r||"ArrowRight"===r)c=L(i,t,"ArrowLeft"===r?"left":"right");else"Delete"!==r||b(i[t])?"Backspace"!==r||b(i[t])||(c=L(i,t,"left")):c=L(i,t,"right");c!==t&&A(n,c,i),e.isUnitTestRun&&A(n,c,i),d(e)}else d(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=L(o,n);a!==n&&A(t,a,o)}h(e)},onFocus:function(e){e.persist&&e.persist();var t=e.target;M.current=t,I.current.focusTimeout=setTimeout((function(){var n=t.selectionStart,r=t.selectionEnd,o=t.value;void 0===o&&(o="");var a=L(o,n);a===n||0===n&&r===o.length||A(t,a,o),m(e)}),0)},onBlur:function(e){M.current=null,clearTimeout(I.current.focusTimeout),clearTimeout(I.current.setCaretTimeout),v(e)}});if("text"===n)return o?j().createElement(j().Fragment,null,o(k,w)||null):j().createElement("span",Object.assign({},w,{ref:a}),k);if(r){var B=r;return j().createElement(B,Object.assign({},U,{ref:a}))}return j().createElement("input",Object.assign({},U,{ref:a}))}function kR(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var a=t.suffix;void 0===a&&(a="");var i=t.allowNegative,c=t.thousandsGroupStyle;if(void 0===c&&(c="thousand"),""===e||"-"===e)return e;var u=SR(t),s=u.thousandSeparator,l=u.decimalSeparator,f=0!==n&&-1!==e.indexOf(".")||n&&r,p=sR(e,i),d=p.beforeDecimal,h=p.afterDecimal,m=p.addNegation;return void 0!==n&&(h=lR(h,n,!!r)),s&&(d=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;case"thousand":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)}(d,s,c)),o&&(d=o+d),a&&(h+=a),m&&(d="-"+d),e=d+(f&&l||"")+h}function SR(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 PR(e,t,n){var r;void 0===t&&(t=vR(e));var o=n.allowNegative,a=n.prefix;void 0===a&&(a="");var i=n.suffix;void 0===i&&(i="");var c=n.decimalScale,u=t.from,s=t.to,l=s.start,f=s.end,p=SR(n),d=p.allowedDecimalSeparators,h=p.decimalSeparator,m=e[f]===h;if(aR(e)&&(e===a||e===i)&&""===t.lastValue)return e;if(f-l==1&&-1!==d.indexOf(e[l])){var v=0===c?"":h;e=e.substring(0,l)+v+e.substring(l+1,e.length)}var g=function(e,t,n){var r=!1,o=!1;a.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):i.startsWith("-")&&e.length===i.length?r=!1:"-"===e[0]&&(r=!0);var c=r?1:0;return o&&(c=2),c&&(e=e.substring(c),t-=c,n-=c),{value:e,start:t,end:n,hasNegation:r}},y=g(e,l,f),b=y.hasNegation;e=(r=y).value,l=r.start,f=r.end;var w=g(t.lastValue,u.start,u.end),O=w.start,x=w.end,k=w.value,S=e.substring(l,f);!(e.length&&k.length&&(O>k.length-i.length||x<a.length))||S&&i.startsWith(S)||(e=k);var P=0;e.startsWith(a)?P+=a.length:l<a.length&&(P=l),f-=P;var _=(e=e.substring(P)).length,j=e.length-i.length;e.endsWith(i)?_=j:(f>j||f>e.length-i.length)&&(_=f),e=e.substring(0,_);var E=(e=((e=function(e,t){void 0===e&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&t&&(e="-"+e),e}(b?"-"+e:e,o)).match(function(e,t){return new RegExp("(^-)|[0-9]|"+uR(e),t?"g":void 0)}(h,!0))||[]).join("")).indexOf(h),C=sR(e=e.replace(new RegExp(uR(h),"g"),(function(e,t){return t===E?".":""})),o),D=C.beforeDecimal,T=C.afterDecimal,M=C.addNegation;return s.end-s.start<u.end-u.start&&""===D&&m&&!parseFloat(T)&&(e=M?"-":""),e}function _R(e){var t=(e=function(e){var t=SR(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var a=e.allowNegative;if(void 0===a&&(a=!0),n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+r+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&a&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+a+"\n "),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}(e)).decimalSeparator;void 0===t&&(t=".");e.allowedDecimalSeparators,e.thousandsGroupStyle,e.suffix;var n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=oR);var a=e.onBlur;void 0===a&&(a=oR);var i=e.thousandSeparator,c=e.decimalScale,u=e.fixedDecimalScale,s=e.prefix;void 0===s&&(s="");var l=e.defaultValue,f=e.value,p=e.valueIsNumericString,d=e.onValueChange,h=rR(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=function(t){return kR(t,e)},v=function(t,n){return PR(t,n,e)},g=p;iR(f)?iR(l)||(g=null!=p?p:"number"==typeof l):g=null!=p?p:"number"==typeof f;var y=function(e){return iR(e)||cR(e)?e:("number"==typeof e&&(e=pR(e)),g&&"number"==typeof c?dR(e,c,Boolean(u)):e)},b=bR(y(f),y(l),Boolean(g),m,v,d),w=b[0],O=w.numAsString,x=w.formattedValue,k=b[1];return Object.assign(Object.assign({},h),{value:x,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===t||aR(e)},onValueChange:k,format:m,removeFormatting:v,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 r=t.target,a=t.key,l=r.selectionStart,f=r.selectionEnd,p=r.value;if(void 0===p&&(p=""),l===f){"Backspace"===a&&"-"===p[0]&&l===s.length+1&&n&&hR(r,1);var d=SR(e),h=d.decimalSeparator,m=d.allowedDecimalSeparators;"Backspace"===a&&p[l-1]===h&&c&&u&&(hR(r,l-1),t.preventDefault()),(null==m?void 0:m.includes(a))&&p[l]===h&&hR(r,l+1);var v=!0===i?",":i;"Backspace"===a&&p[l-1]===v&&hR(r,l-1),"Delete"===a&&p[l]===v&&hR(r,l+1),o(t)}else o(t)},onBlur:function(t){var n=O;if(n.match(/\d/g)||(n=""),r||(n=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}(n)),u&&c&&(n=dR(n,c,u)),n!==O){var o=kR(n,e);k({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:JN.event})}a(t)}})}function jR(e){var t=_R(e);return j().createElement(xR,Object.assign({},t))}!function(e){e.event="event",e.props="prop"}(JN||(JN={}));var ER,CR=["immutable"];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}const TR=(0,T.ZP)((function(e){e.immutable;var t=Jy()(e,CR);return(0,L.jsx)(jR,function(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){Y()(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}({},t))})).withConfig({displayName:"StyledNumberEdit"})(ER||(ER=D()(["\n &&&& {\n ","\n }\n"])),Dj);function MR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function IR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MR(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var NR=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},RR=function(e){return null!=e&&!isNaN(parseFloat(e))},AR=function(e,t,n){return!RR(n)||!(RR(t)&&n>t)&&!(RR(e)&&n<e)},LR=function(e,t){return function(n){var r=n.floatValue;return NR(r)<NR(e)||AR(e,t,r)}};const FR=(0,h.ZP)(th.Debouncer((function(e){var t,n=(t=e.intl.locale,{thousandSeparator:1111..toLocaleString(t).replace(/1/g,""),decimalSeparator:1.1.toLocaleString(t).replace(/1/g,"")}),r=n.thousandSeparator,o=n.decimalSeparator,a=e.options||{},i=a.prePointDigits,c=a.postPointDigits,u=a.minValue,s=a.maxValue,l=a.allowNegative,f=a.fixedDecimalScale,p=a.suffix,d=a.prefix,h=a.format,m=function(e,t,n){if(e){var r=Math.pow(10,e)-(t?1/Math.pow(10,t):1);return n&&n>r?n:r}return n}(i,c,s),v=IR(IR({isAllowed:LR(u,m),allowNegative:!!l},isNaN(c)?{}:{decimalScale:c}),{},{fixedDecimalScale:!!f}),g=void 0===e.value?"":e.value;return(0,L.jsx)(Cj,{immutable:e.immutable,children:(0,L.jsx)(TR,IR(IR({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&AR(u,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:g,suffix:p,prefix:d},v),{},{format:h,placeholder:e.placeholder,onBlur:function(t){var n,r=!(n=t.target.value)||isNaN(n)?null:parseFloat(n);e.onChange&&!AR(u,m,r)&&(t.target.value=null)}}))})}),800));const ZR=th.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.options,o=e.immutable,a=e.name,i=e.id,c=e.placeholder,u=r||{},s=u.minValue,l=u.maxValue,f=u.format,p=u.allowLeadingZeros,d=u.suffix,h=void 0===t?"":t;return(0,L.jsx)(Cj,{immutable:o,children:(0,L.jsx)(TR,{isAllowed:LR(s,l),allowNegative:!0,decimalScale:0,disabled:o,id:i,name:a,onValueChange:function(e){var t=e.value,r=e.floatValue,o=p?t:r;void 0===o&&(o=null),AR(s,l,r)&&n(o)},value:h,allowLeadingZeros:p,suffix:d,format:f,placeholder:c,immutable:o})})}),800);var HR,UR,BR,WR=T.ZP.div.withConfig({displayName:"StyledWrapper"})(HR||(HR=D()(["\n display: flex;\n justify-content: stretch;\n"]))),YR=T.ZP.div.withConfig({displayName:"StyledLocationWrapper"})(UR||(UR=D()(["\n flex-grow: 1;\n"]))),zR=T.ZP.div.withConfig({displayName:"StyledDistanceWrapper"})(BR||(BR=D()(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),N.color("border"),R.Z.space(-.8),R.Z.space(.5));function VR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VR(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const GR=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.onChange,a=e.options,i=void 0===a?{}:a,c=i.suggestions,u=i.isLoading,s=i.fetchSuggestions,l=i.latitudeField,f=i.longitudeField,p=i.emptySearchText,d=i.noResultsText,h=i.kmSuffixText,m=r?r.distance:0,v=function(e){return null!=e&&e.latitude&&null!=e&&e.longitude?G()(e,eR):void 0}(r),g=function(e){return e?e.map(nR):[]}(c);return(0,L.jsxs)(WR,{children:[(0,L.jsx)(YR,{children:(0,L.jsx)(IC,{id:t,immutable:n,onChange:function(e){o(qR(qR({},function(e,t){return t?QN(QN({},e),G()(t,eR)):Av()(e,eR)}(r,e)),{},{latitudeField:l,longitudeField:f}))},isLoading:u,options:g,searchOptions:function(e){var t=function(e){if(!e)return null;var t=ge()(e.matchAll($N(/([\d]*)([^\d\s]*)/g,{postcode:1,city:2}))).map((function(e){return e.groups})),n=t.find((function(e){return e.postcode})),r=t.find((function(e){return e.city}));return QN(QN({},r?{city:r.city}:{}),n?{postcode:n.postcode}:{})}(e);s(t,null)},fetchOptions:function(e){e||s(null,null)},value:v,noResultsComp:function(e){return e.inputValue?d:p}})}),(0,L.jsx)(zR,{children:(0,L.jsx)(ZR,{value:m,onChange:function(e){o(qR(qR({},r),{},{distance:e}))},immutable:n,options:{minValue:0,maxValue:100,suffix:" ".concat(h)}})})]})};var KR,XR=(0,_.lazy)((function(){return i.e(802).then(i.bind(i,78633))})),QR=function(e){var t=e.onChange,n=e.immutable,r=e.value,o=e.options;if(n)return(0,L.jsx)(zr,{children:(0,L.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})});var a=o||{},i=a.contentLang,c=a.ckEditorConfig;return(0,L.jsx)(_.Suspense,{fallback:KR||(KR=(0,L.jsx)("i",{})),children:(0,L.jsx)(XR,{onChange:function(e){t&&t(e)},value:r,contentLang:i,ckEditorConfig:c})})};QR.defaultProps={value:""};const $R=QR;var JR,eA;function tA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tA(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const rA=function(e){var t=e.onChange,n=e.options,r=e.value,o=e.id,a=e.immutable,i=e.name,c=function(e){return function(t){return t[e]}},u=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=t?"- ".concat(t):"",i=n?"/ ".concat(n.display):"";return(0,L.jsxs)(zr,{children:[r," ",o," ",a," ",i]})},s=function(e){return function(n,o){var a=o.newValue;t(nA(nA({},r),{},Y()({},e,a)))}},l=function(e,r){var o=r.suggestion;!0===o.validationRequired?n.validateLocation(o,t):t(o)},f=function(e){return function(t){var r=t.value;n.fetchSuggestions(Y()({},e,r),n.locationValues.country)}},p={id:o,value:r.postcode||"",onChange:s("postcode"),disabled:a},d={value:r.city||"",onChange:s("city"),disabled:a};return(0,L.jsx)(a_,{children:function(e){var t,o=e.focused,s=e.getRef;return(0,L.jsxs)(Aj,{immutable:a,name:i,ref:s,children:[(0,L.jsx)(jj(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:f("postcode"),getSuggestionValue:c("postcode"),renderSuggestion:u,onSuggestionsClearRequested:function(){},inputProps:p,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(o||r.city||r.postcode)&&(JR||(JR=(0,L.jsx)(zr,{children:"/"}))),(0,L.jsx)(jj(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:f("city"),getSuggestionValue:c("city"),renderSuggestion:u,onSuggestionsClearRequested:function(){},inputProps:d,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(0,L.jsxs)(Mj,{children:[n.isLoading&&(eA||(eA=(0,L.jsx)(Hc,{size:"1.8rem"}))),(t=n.locationValues,Boolean(t.city||t.postcode)&&!t.street&&(0,L.jsx)(Za.Z,{href:Rj(n.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:n.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};function oA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const aA=function(e){return(0,L.jsx)(IC,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oA(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function iA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const cA=function(e){return(0,L.jsx)(IC,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iA(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};var uA;const sA=T.ZP.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(uA||(uA=D()(["\n &&&& {\n ","\n }\n"])),Dj);const lA=function(e){var t=e.onChange,n=e.value,o=e.immutable,c=e.id,u=e.onLibLoaded,s=Aa()(e,"options.defaultCountry")||"CH",l=(0,_.useState)(null),f=ma()(l,2),p=f[0],d=f[1],h=j().createRef();(0,_.useEffect)((function(){(function(){var e=r()(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([i.e(631),i.e(877)]).then(i.bind(i,41866));case 2:t=e.sent,d(t),u&&u();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[u]);var m=function(e,t){var n=e.substring(0,t-1).match(/\s/g);return(null==n?void 0:n.length)||0},v=n&&null!=p&&p.AsYouType?new p.AsYouType(s).input(n):n||"";return(0,L.jsxs)(Cj,{immutable:o,children:[(0,L.jsx)(sA,{disabled:o||!p,id:c,name,onChange:function(e){var r=e.target.value,o=p?p.parseNumber(r,s):r,a=hS()(o)?new p.AsYouType(s).input(r).replace(/\s/g,""):p.formatNumber(o,"E.164");t(a);var i=e.target.selectionStart;!function(e,t,n){if(n&&e.length!==n){var r=new p.AsYouType(s).input(t),o=new p.AsYouType(s).input(e),a=m(r,n),i=m(o,n)-a;window.requestAnimationFrame(function(){var e=n+i;this.setSelectionRange(e,e)}.bind(h.current))}}(r,n,i)},immutable:o||!p,ref:h,value:v}),v&&(0,L.jsx)(Mj,{children:(0,L.jsx)(Za.Z,{href:"tel:".concat(n),icon:"phone",tabIndex:-1,target:"_blank",neutral:!0})})]})};function fA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fA(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dA=function(e){return e.map((function(e){return G()(e,["key","display"])}))};const hA=function(e){var t=e.id,n=e.immutable,r=e.onChange,o=e.options.isMulti,a=e.value;return(0,L.jsx)(IC,{id:t,immutable:n,isMulti:o,onChange:function(e){var t=o?e.map((function(e){return e.key})):[null==e?void 0:e.key],n=a.options.map((function(e){return pA(pA({},e),t.includes(e.key)?{selected:!0}:{selected:!1})}));r({options:n})},value:dA(a.options.filter((function(e){return e.selected}))),openMenuOnClick:!0,options:dA(a.options)})};function mA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const vA=function(e){return(0,L.jsx)(IC,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mA(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!1,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function gA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const yA=function(e){return(0,L.jsx)(IC,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gA(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function bA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const wA=function(e){return(0,L.jsx)(IC,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bA(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,immutable:e.immutable,isMulti:!1,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};const OA=th.Debouncer((function(e){return(0,L.jsx)(Cj,{immutable:e.immutable,children:(0,L.jsx)(VN,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||""})})}));const xA=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)};var kA,SA,PA,_A=(0,T.iv)(kA||(kA=D()(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),Dj),jA=T.ZP.div.withConfig({displayName:"StyledSizeWrapper"})(SA||(SA=D()(["\n display: grid;\n width: 100%;\n\n &:after {\n content: attr(data-replicated-value) ' ';\n white-space: pre-wrap;\n word-break: break-all;\n visibility: hidden;\n ","\n\n /* prevent scrollbar on Firefox */\n padding-right: 15px;\n }\n"])),_A),EA=T.ZP.textarea.withConfig({displayName:"StyledTextarea"})(PA||(PA=D()(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: 4em;\n }\n"])),_A);function CA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?CA(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const TA=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,a=e.disabled,i=e.immutable,c=(0,_.useState)(t),u=ma()(c,2),s=u[0],l=u[1],f=!xA(),p=(0,_.useCallback)(Yj()(l,500,{trailing:!0}),[]);return(0,_.useEffect)((function(){f&&p(t)}),[t,f,p]),(0,L.jsx)(jA,DA(DA({"data-testid":"replicated-test"},f?{"data-replicated-value":s}:{}),{},{children:(0,L.jsx)(EA,{value:t||"",name:r,id:o,onChange:n,disabled:a,immutable:i,rows:"1"})}))};const MA=th.Debouncer((function(e){return(0,L.jsx)(Cj,{immutable:e.immutable,children:(0,L.jsx)(TA,{id:e.id,immutable:e.immutable,maxRows:20,name:e.name,onChange:function(t){return e.onChange(t.target.value)},disabled:e.immutable,rows:2,value:e.value})})}));var IA;const NA=T.ZP.input.withConfig({displayName:"StyledTimeEdit"})(IA||(IA=D()(["\n &&&& {\n ","\n }\n"])),Dj);function RA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function AA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RA(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const LA=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.name,i=IM(n,t),c=i.inputProps,u=i.clearButtonProps,s=n&&!r;return(0,L.jsxs)(Cj,{immutable:r,children:[(0,L.jsx)(NA,AA({type:"text",disabled:r,id:o,immutable:r,name:a},c)),s&&(0,L.jsx)(Mj,{children:(0,L.jsx)(Id,AA(AA({icon:"times"},u),{},{tabIndex:-1}))})]})};var FA;const ZA=T.ZP.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(FA||(FA=D()(["\n &&&& {\n ","\n }\n"])),Dj);const HA=th.Debouncer((function(e){return(0,L.jsxs)(Cj,{immutable:e.immutable,children:[(0,L.jsx)(ZA,{disabled:e.immutable,id:e.id,immutable:e.immutable,name:e.name,onChange:function(t){return e.onChange((n=t.target.value,r=/^[a-zA-Z0-9]+:\/\//.test(n),n.indexOf(".")>0&&!r?"https://".concat(n):n));var n,r},value:e.value||""}),e.value&&(0,L.jsx)(Mj,{children:(0,L.jsx)(Za.Z,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));function UA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function BA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UA(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var WA={boolean:LC,"boolean-select":NC,choice:GC,code:rD,date:BM,datetime:YM,document:FN,duration:YN,email:qN,geosearch:GR,html:$R,integer:ZR,address:Hj,location:rA,"multi-remote":aA,"multi-select":cA,number:FR,phone:lA,"pseudo-select":hA,remote:vA,"search-filter":yA,"single-select":wA,string:OA,text:MA,url:HA,time:LA};const YA=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.id,a=e.events,i=e.placeholder,c=e.readOnly,u=void 0!==c&&c;if(WA[t]){var s=WA[t],l=BA(BA({},Av()(a,"onChange")),{},{onBlur:function(){"function"==typeof(null==a?void 0:a.onBlur)&&a.onBlur(n)}});return(0,L.jsx)("div",BA(BA({},l),{},{"data-cy":"form-field",children:(0,L.jsx)(s,BA(BA({value:n,onChange:null==a?void 0:a.onChange},hS()(r)?{}:{options:r}),{},{id:o,immutable:u,placeholder:i,events:a}))}))}return console.log("No type-editor defined for component type",t),null};function zA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zA(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const qA=function(e){return(0,L.jsx)(Ij,{children:(0,L.jsx)(YA,VA({componentType:e.type},Av()(e,"type")))})};var GA,KA,XA=T.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(GA||(GA=D()(["\n && {\n ","\n }\n"])),Ej);const QA=function(e){var t=e.verifyCode,n=e.intl,r=(0,_.useState)(null),o=ma()(r,2),a=o[0],i=o[1],c=function(e){return n.formatMessage({id:e})},u=a&&a.toString().length>=6,s=function(e){e&&(e.preventDefault(),e.stopPropagation()),u&&t(a)};Xy(s);var l=Lv.Z.isInAdminEmbedded();return(0,L.jsxs)(L.Fragment,{children:[KA||(KA=(0,L.jsx)(Yr,{children:(0,L.jsx)(E.Z,{id:"client.two-factor-connector.verificationText"})})),(0,L.jsxs)("form",{onSubmit:s,children:[(0,L.jsx)(vj,{hasValue:Boolean(a),id:"verification-input",label:c("client.two-factor-connector.verificationInputLabel"),labelPosition:l?"inside":"outside",children:(0,L.jsx)(XA,{children:(0,L.jsx)(qA,{type:"integer",value:a,events:{onChange:i},options:{format:"### ###",allowLeadingZeros:!0}})})}),(0,L.jsx)(cP,{children:(0,L.jsx)(Ju,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",type:"submit",disabled:!u})})]})]})};var $A={verifyCode:function(e){return{type:QS,payload:{userCode:e}}}};const JA=(0,m.connect)((function(e,t){return{}}),$A)((0,h.ZP)(QA));var eL,tL,nL,rL,oL,aL,iL=0,cL=1,uL=2,sL=3;const lL=function(e){var t=e.initialize,n=e.stage;(0,_.useEffect)((function(){t()}),[t]);return(0,L.jsxs)(L.Fragment,{children:[aL||(aL=(0,L.jsx)(fw.Notifications,{})),function(){switch(n){case iL:return eL||(eL=(0,L.jsx)(QP,{}));case cL:return tL||(tL=(0,L.jsx)(qP,{}));case uL:return nL||(nL=(0,L.jsx)(JA,{}));case sL:return rL||(rL=(0,L.jsx)(dP,{}));default:return oL||(oL=(0,L.jsx)($w,{}))}}()]})};var fL={initialize:tP};const pL=(0,m.connect)((function(e){return{stage:e.twoFactorConnector.stage}}),fL)((0,h.ZP)(lL));var dL;function hL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hL(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vL=function(e){return function(t){return mL(mL({},t),{},{stage:e})}},gL=(dL={},Y()(dL,YS,de("twoFactorActive")),Y()(dL,zS,de("secret")),Y()(dL,VS,de("username")),Y()(dL,JS,de("setupSuccessful")),Y()(dL,KS,vL(0)),Y()(dL,XS,vL(1)),Y()(dL,GS,vL(2)),Y()(dL,eP,vL(3)),dL),yL={stage:null,twoFactorActive:null,secret:null,username:null,setupSuccessful:null};var bL=a().mark(ML),wL=a().mark(NL),OL=a().mark(RL),xL=a().mark(LL),kL=a().mark(FL),SL=a().mark(ZL),PL=a().mark(HL),_L=a().mark(UL),jL=a().mark(BL),EL="relTwo_step_login_status",CL=function(e){return e.twoFactorConnector.username},DL=function(e){return e.twoFactorConnector.secret},TL=function(e){return e.input};function ML(){var e,t,n,r,o,i;return a().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Dt(TL);case 2:if(e=a.sent,e.secret){a.next=14;break}return a.next=7,Dt(CL);case 7:return t=a.sent,a.next=10,jt(Ey,"principals/".concat(t,"/two-factor"),{method:"GET"});case 10:return n=a.sent,r=n.body,o=r.secret,i=r.totpUri,a.next=14,St(rP({secret:o,uri:i}));case 14:return a.next=16,St({type:XS});case 16:case"end":return a.stop()}}),bL)}function IL(e,t){return Zv.Z.executeRequest(e,t).then(Zv.Z.extractBody)}function NL(e,t,n,r){var o,i;return a().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return o={secret:e,userCode:t,username:n,password:r},a.next=3,jt(IL,"login",{method:"POST",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}),body:Object.keys(o).filter((function(e){return!!o[e]})).sort().map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(o[e]))})).join("&")});case 3:return i=a.sent,a.next=6,St(iP(Aa()(i,"TWOSTEPLOGIN_ACTIVATION.success",!1)));case 6:case"end":return a.stop()}}),wL)}function RL(e,t,n){var r;return a().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,jt(Ey,"principals/".concat(e,"/two-factor"),{method:"POST",body:{secret:t,code:n},acceptedStatusCodes:[400]});case 2:return r=o.sent,o.next=5,St(iP(204===r.status));case 5:case"end":return o.stop()}}),OL)}function AL(e){var t=e.payload.userCode;return a().mark((function e(){var n,r,o,i,c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Dt(CL);case 2:return n=e.sent,e.next=5,Dt(DL);case 5:return r=e.sent,o=r.secret,e.next=9,Dt(TL);case 9:if(i=e.sent,c=i.password,!i.forced){e.next=17;break}return e.next=15,jt(NL,o,t,n,c);case 15:e.next=19;break;case 17:return e.next=19,jt(RL,n,o,t);case 19:return e.next=21,St({type:eP});case 21:case"end":return e.stop()}}),e)}))()}function LL(){var e,t;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,jt(ZL);case 2:return n.next=4,Dt(TL);case 4:if(e=n.sent,!(t=e.secret)){n.next=9;break}return n.next=9,St(rP(t));case 9:return n.next=11,St(aP());case 11:case"end":return n.stop()}}),xL)}function FL(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,St(RS("onSuccess"));case 2:case"end":return e.stop()}}),kL)}function ZL(){var e,t,n,r,o;return a().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,jt(HL);case 2:return e=a.sent,a.next=5,St(oP(e));case 5:return t='username === "'.concat(e,'"'),a.next=8,jt(Ty,"Principal",{where:t,paths:[EL]});case 8:if(!((n=a.sent).length>1)){a.next=11;break}throw new Error("More than one user found for username ".concat(e));case 11:return r=Aa()(n,"[0].paths.".concat(EL,".value.key")),o="1"===r,a.next=15,St(nP(o));case 15:case"end":return a.stop()}}),SL)}function HL(){var e,t,n;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Dt(TL);case 2:if(e=r.sent,!(t=e.username)){r.next=8;break}return r.abrupt("return",t);case 8:return r.next=10,jt(Ey,"principals");case 10:return n=r.sent,r.abrupt("return",n.body.username);case 12:case"end":return r.stop()}}),PL)}function UL(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,St(RS("onResize"));case 2:case"end":return e.stop()}}),_L)}function BL(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Pt([Ft(qS,ML),Ft(QS,AL),Ft(WS,LL),Ft($S,FL),Ft(KS,UL),Ft(XS,UL),Ft(GS,UL),Ft(eP,UL)]);case 2:case"end":return e.stop()}}),jL)}const WL={twoFactorConnector:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yL,t=arguments.length>1?arguments[1]:void 0,n=gL[t.type];return n?n(e,t):e}};var YL,zL=[BL];function VL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VL(Object(n),!0).forEach((function(t){Y()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var GL="two-factor-connector",KL=function(e,t,n,r){var o=YL||(YL=(0,L.jsx)(pL,{})),a=wS.createStore(WL,zL,t,GL);return fw.addToStore(a,!0),Ew(a,!0,["console","remote","notification"]),AS(a,(function(e){return wS.getEvents(XL,e.input)})),wS.createApp(GL,o,a,{input:t,events:n,actions:[],publicPath:r,textResourceModules:["component","common",GL]})},XL=["onSuccess","onCancel","onResize"],QL=function(e){return wS.useApp({initApp:KL,props:e,packageName:GL,externalEvents:XL}).component};QL.propTypes=qL(qL({},XL.reduce((function(e,t){return qL(qL({},e),{},Y()({},t,Ed().func))}),{})),{},{username:Ed().string,password:Ed().string,secret:Ed().shape({secret:Ed().string.isRequired,uri:Ed().string.isRequired}),forced:Ed().bool});var $L=wS.createBundleableApp(GL,KL,QL);wS.registerAppInRegistry($L.name,$L.init)})(),c})()));
|