tocco-legacy-bundle 0.1.97 → 0.1.98

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.
@@ -49,9 +49,9 @@ e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,ge
49
49
  *
50
50
  * This source code is licensed under the MIT license found in the
51
51
  * LICENSE file in the root directory of this source tree.
52
- */var r=n(1024),o=n(61688);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,c=r.useRef,u=r.useEffect,s=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=c(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=s((function(){function e(e){if(!u){if(u=!0,i=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return c=t}return c=e}if(t=c,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,c=n)}var i,c,u=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,r,o]);var d=i(e,f[0],f[1]);return u((function(){p.hasValue=!0,p.value=d}),[d]),l(d),d}},61688:(e,t,n)=>{"use strict";e.exports=n(53250)},52798:(e,t,n)=>{"use strict";e.exports=n(50139)},28721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const a=new Uint8Array(16);function i(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(a)}const c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function u(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}const s=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return u(o)}},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:()=>r})},86:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:()=>r})},31599:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},28549:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},2717:(e,t,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:()=>r})},33417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(28549);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},32924:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},1972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78001);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||(0,r.Z)(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.")}()}},62360:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:()=>r})},78001:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"e125a078c53dbf382e61",198:"ab9f2eea50d01a3a62a9",560:"e3d5772311dd2d78dc20",608:"c3b57ad1736c5780e353",614:"3967f92670930e8b38b1",631:"cae002de42dc05a6d5a0",877:"a7f934130ec5ac7a8cff"}[e]+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,u;if(void 0!==o)for(var s=document.getElementsByTagName("script"),l=0;l<s.length;l++){var f=s[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==r+o){c=f;break}}c||(u=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var p=(t,r)=>{c.onerror=c.onload=null,clearTimeout(d);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=p.bind(null,c.onerror),c.onload=p.bind(null,c.onload),u&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.j=280,i.p="/",(()=>{var e={280:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,u]=n,s=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(u)u(i)}for(t&&t(n);s<a.length;s++)o=a[s],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c),i.d(c,{app:()=>Rd});var e,t,n,r,o,a,u=i(18882),s=i(59713),l=i.n(s),f=i(45697),p=i.n(f),d=i(19743),h=i(19241),m=i(30604),v=i(74806),g=i(50558),y="two-factor-connector/INITIALIZE",b="two-factor-connector/SET_TWO_STEP_ACTIVE",w="two-factor-connector/SET_SECRET",O="two-factor-connector/SET_USER_NAME",x="two-factor-connector/REQUEST_SECRET",k="two-factor-connector/GO_TO_SECRET_VERIFICATION",S="two-factor-connector/GO_TO_START",P="two-factor-connector/GO_TO_SECRET",_="two-factor-connector/VERIFY_CODE",j="root/SUCCESS",E="root/SET_SETUP_SUCCESSFUL",C="root/GO_TO_RESULT",T=function(){return{type:y}},D=function(e){return{type:b,payload:{twoFactorActive:e}}},M=function(e){return{type:w,payload:{secret:e}}},R=function(e){return{type:O,payload:{username:e}}},I=function(){return{type:S}},N=function(e){return{type:E,payload:{setupSuccessful:e}}},A=i(1024),Z=i.n(A),L=i(35728),F=i(44012),H=i(83324),U=i(88162),B=i(34206),W=i(65035),z=i(28655),Y=i.n(z),V=i(38205),q=i(7281),G=i(58129),K=V.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(e||(e=Y()(["\n display: flex;\n justify-content: flex-end;\n margin-top: ",";\n\n > "," {\n margin-right: 0;\n }\n"])),q.Z.space(.5),G.Z),X=i(24875),Q=V.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(t||(t=Y()(["\n display: grid;\n grid-template-columns: 9% 1fr;\n grid-column-gap: ",";\n"])),q.Z.space(-.5)),$=V.ZP.span.withConfig({displayName:"StyledIconWrapper"})(n||(n=Y()(["\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n\n > * {\n max-width: 100%;\n }\n"])),(function(e){return e.isSuccessful?X.FS.color("signal.success"):X.FS.color("signal.danger")}),q.Z.font(10)),J=V.ZP.div.withConfig({displayName:"StyledTextWrapper"})(r||(r=Y()(["\n display: flex;\n align-items: center;\n"]))),ee=i(85893);const te=function(e){var t=e.success,n=e.goToStart,r=e.setupSuccessful,i=e.intl;(0,H.z)(t);var c=function(e){return i.formatMessage({id:e})};return r?(0,ee.jsxs)(ee.Fragment,{children:[o||(o=(0,ee.jsxs)(Q,{children:[(0,ee.jsx)($,{isSuccessful:!0,children:(0,ee.jsx)(U.Z,{icon:"check"})}),(0,ee.jsx)(J,{children:(0,ee.jsx)(B.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.successfulText"})})})]})),(0,ee.jsx)(K,{children:(0,ee.jsx)(W.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:t})})]}):(0,ee.jsxs)(ee.Fragment,{children:[a||(a=(0,ee.jsxs)(Q,{children:[(0,ee.jsx)($,{isSuccessful:!1,children:(0,ee.jsx)(U.Z,{icon:"times"})}),(0,ee.jsx)(J,{children:(0,ee.jsx)(B.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.errorText"})})})]})),(0,ee.jsx)(K,{children:(0,ee.jsx)(W.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:n})})]})};var ne={success:function(){return{type:j}},goToStart:I};const re=(0,g.connect)((function(e){return{setupSuccessful:e.twoFactorConnector.setupSuccessful}}),ne)((0,v.ZP)(te));var oe,ae=Object.defineProperty,ie=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,se=(e,t,n)=>t in e?ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,le=(e,t)=>{for(var n in t||(t={}))ce.call(t,n)&&se(e,n,t[n]);if(ie)for(var n of ie(t))ue.call(t,n)&&se(e,n,t[n]);return e},fe=(e,t)=>{var n={};for(var r in e)ce.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ie)for(var r of ie(e))t.indexOf(r)<0&&ue.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const c=this.addEccAndInterleave(r);if(this.drawCodewords(c),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}a(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,i=40,u=-1,s=!0){if(!(t.MIN_VERSION<=o&&o<=i&&i<=t.MAX_VERSION)||u<-1||u>7)throw new RangeError("Invalid value");let l,f;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=c.getTotalBits(e,l);if(o<=r){f=o;break}if(l>=i)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])s&&f<=8*t.getNumDataCodewords(l,e)&&(n=e);let p=[];for(const t of e){r(t.mode.modeBits,4,p),r(t.numChars,t.mode.numCharCountBits(l),p);for(const e of t.getData())p.push(e)}a(p.length==f);const d=8*t.getNumDataCodewords(l,n);a(p.length<=d),r(0,Math.min(4,d-p.length),p),r(0,(8-p.length%8)%8,p),a(p.length%8==0);for(let e=236;p.length<d;e^=253)r(e,8,p);let h=[];for(;8*h.length<p.length;)h.push(0);return p.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,n,h,u)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);a(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;a(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(r,a,n),this.setFunctionModule(a,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),a=e+r,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],c=Math.floor(t.getNumRawDataModules(n)/8),u=o-c%o,s=Math.floor(c/o);let l=[];const f=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+s-i+(n<u?0:1));r+=o.length;const a=t.reedSolomonComputeRemainder(o,f);n<u&&o.push(0),l.push(o.concat(a))}let p=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=s-i||n>=u)&&p.push(t[e])}));return a(p.length==c),p}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let a=0;a<2;a++){const i=t-a,c=0==(t+1&2)?this.size-1-r:r;!this.isFunction[c][i]&&n<8*e.length&&(this.modules[c][i]=o(e[n>>>3],7-(7&n)),n++)}}a(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][i],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[i][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return a(0<=o&&o<=9),e+=o*t.PENALTY_N4,a(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return a(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return a(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];a(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function a(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const i=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new i(i.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!i.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new i(i.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:i.isNumeric(e)?[i.makeNumeric(e)]:i.isAlphanumeric(e)?[i.makeAlphanumeric(e)]:[i.makeBytes(i.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new i(i.Mode.ECI,0,t)}static isNumeric(e){return i.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return i.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let c=i;c.NUMERIC_REGEX=/^[0-9]*$/,c.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,c.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=c})(oe||(oe={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(oe||(oe={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(oe||(oe={}));var pe=oe,de={L:pe.QrCode.Ecc.LOW,M:pe.QrCode.Ecc.MEDIUM,Q:pe.QrCode.Ecc.QUARTILE,H:pe.QrCode.Ecc.HIGH},he=128,me="L",ve="#FFFFFF",ge="#000000",ye=!1;
52
+ */var r=n(1024),o=n(61688);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,c=r.useRef,u=r.useEffect,s=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=c(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=s((function(){function e(e){if(!u){if(u=!0,i=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return c=t}return c=e}if(t=c,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,c=n)}var i,c,u=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,r,o]);var d=i(e,f[0],f[1]);return u((function(){p.hasValue=!0,p.value=d}),[d]),l(d),d}},61688:(e,t,n)=>{"use strict";e.exports=n(53250)},52798:(e,t,n)=>{"use strict";e.exports=n(50139)},28721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const a=new Uint8Array(16);function i(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(a)}const c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function u(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}const s=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return u(o)}},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:()=>r})},86:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:()=>r})},31599:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},28549:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},2717:(e,t,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:()=>r})},33417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(28549);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},32924:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},1972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78001);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||(0,r.Z)(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.")}()}},62360:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:()=>r})},78001:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"e125a078c53dbf382e61",198:"ab9f2eea50d01a3a62a9",560:"e3d5772311dd2d78dc20",608:"c3b57ad1736c5780e353",614:"3967f92670930e8b38b1",631:"cae002de42dc05a6d5a0",877:"a7f934130ec5ac7a8cff"}[e]+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,u;if(void 0!==o)for(var s=document.getElementsByTagName("script"),l=0;l<s.length;l++){var f=s[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==r+o){c=f;break}}c||(u=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var p=(t,r)=>{c.onerror=c.onload=null,clearTimeout(d);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=p.bind(null,c.onerror),c.onload=p.bind(null,c.onload),u&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.j=280,i.p="/",(()=>{var e={280:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,u]=n,s=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(u)u(i)}for(t&&t(n);s<a.length;s++)o=a[s],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c),i.d(c,{app:()=>Ad});var e,t,n,r,o,a,u=i(18882),s=i(59713),l=i.n(s),f=i(45697),p=i.n(f),d=i(19743),h=i(19241),m=i(30604),v=i(74806),g=i(50558),y="two-factor-connector/INITIALIZE",b="two-factor-connector/SET_TWO_STEP_ACTIVE",w="two-factor-connector/SET_SECRET",O="two-factor-connector/SET_USER_NAME",x="two-factor-connector/REQUEST_SECRET",k="two-factor-connector/GO_TO_SECRET_VERIFICATION",S="two-factor-connector/GO_TO_START",P="two-factor-connector/GO_TO_SECRET",_="two-factor-connector/VERIFY_CODE",j="root/SUCCESS",E="root/SET_SETUP_SUCCESSFUL",C="root/GO_TO_RESULT",T=function(){return{type:y}},D=function(e){return{type:b,payload:{twoFactorActive:e}}},M=function(e){return{type:w,payload:{secret:e}}},R=function(e){return{type:O,payload:{username:e}}},I=function(){return{type:S}},N=function(e){return{type:E,payload:{setupSuccessful:e}}},A=i(1024),Z=i.n(A),L=i(35728),F=i(44012),H=i(83324),U=i(88162),B=i(34206),W=i(65035),z=i(28655),Y=i.n(z),V=i(38205),q=i(7281),G=i(58129),K=V.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(e||(e=Y()(["\n display: flex;\n justify-content: flex-end;\n margin-top: ",";\n\n > "," {\n margin-right: 0;\n }\n"])),q.Z.space(.5),G.Z),X=i(24875),Q=V.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(t||(t=Y()(["\n display: grid;\n grid-template-columns: 9% 1fr;\n grid-column-gap: ",";\n"])),q.Z.space(-.5)),$=V.ZP.span.withConfig({displayName:"StyledIconWrapper"})(n||(n=Y()(["\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n\n > * {\n max-width: 100%;\n }\n"])),(function(e){return e.isSuccessful?X.FS.color("signal.success"):X.FS.color("signal.danger")}),q.Z.font(10)),J=V.ZP.div.withConfig({displayName:"StyledTextWrapper"})(r||(r=Y()(["\n display: flex;\n align-items: center;\n"]))),ee=i(85893);const te=function(e){var t=e.success,n=e.goToStart,r=e.setupSuccessful,i=e.intl;(0,H.z)(t);var c=function(e){return i.formatMessage({id:e})};return r?(0,ee.jsxs)(ee.Fragment,{children:[o||(o=(0,ee.jsxs)(Q,{children:[(0,ee.jsx)($,{isSuccessful:!0,children:(0,ee.jsx)(U.Z,{icon:"check"})}),(0,ee.jsx)(J,{children:(0,ee.jsx)(B.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.successfulText"})})})]})),(0,ee.jsx)(K,{children:(0,ee.jsx)(W.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:t})})]}):(0,ee.jsxs)(ee.Fragment,{children:[a||(a=(0,ee.jsxs)(Q,{children:[(0,ee.jsx)($,{isSuccessful:!1,children:(0,ee.jsx)(U.Z,{icon:"times"})}),(0,ee.jsx)(J,{children:(0,ee.jsx)(B.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.errorText"})})})]})),(0,ee.jsx)(K,{children:(0,ee.jsx)(W.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:n})})]})};var ne={success:function(){return{type:j}},goToStart:I};const re=(0,g.connect)((function(e){return{setupSuccessful:e.twoFactorConnector.setupSuccessful}}),ne)((0,v.ZP)(te));var oe,ae=Object.defineProperty,ie=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,se=(e,t,n)=>t in e?ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,le=(e,t)=>{for(var n in t||(t={}))ce.call(t,n)&&se(e,n,t[n]);if(ie)for(var n of ie(t))ue.call(t,n)&&se(e,n,t[n]);return e},fe=(e,t)=>{var n={};for(var r in e)ce.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ie)for(var r of ie(e))t.indexOf(r)<0&&ue.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const c=this.addEccAndInterleave(r);if(this.drawCodewords(c),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}a(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,i=40,u=-1,s=!0){if(!(t.MIN_VERSION<=o&&o<=i&&i<=t.MAX_VERSION)||u<-1||u>7)throw new RangeError("Invalid value");let l,f;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=c.getTotalBits(e,l);if(o<=r){f=o;break}if(l>=i)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])s&&f<=8*t.getNumDataCodewords(l,e)&&(n=e);let p=[];for(const t of e){r(t.mode.modeBits,4,p),r(t.numChars,t.mode.numCharCountBits(l),p);for(const e of t.getData())p.push(e)}a(p.length==f);const d=8*t.getNumDataCodewords(l,n);a(p.length<=d),r(0,Math.min(4,d-p.length),p),r(0,(8-p.length%8)%8,p),a(p.length%8==0);for(let e=236;p.length<d;e^=253)r(e,8,p);let h=[];for(;8*h.length<p.length;)h.push(0);return p.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,n,h,u)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);a(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;a(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(r,a,n),this.setFunctionModule(a,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),a=e+r,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],c=Math.floor(t.getNumRawDataModules(n)/8),u=o-c%o,s=Math.floor(c/o);let l=[];const f=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+s-i+(n<u?0:1));r+=o.length;const a=t.reedSolomonComputeRemainder(o,f);n<u&&o.push(0),l.push(o.concat(a))}let p=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=s-i||n>=u)&&p.push(t[e])}));return a(p.length==c),p}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let a=0;a<2;a++){const i=t-a,c=0==(t+1&2)?this.size-1-r:r;!this.isFunction[c][i]&&n<8*e.length&&(this.modules[c][i]=o(e[n>>>3],7-(7&n)),n++)}}a(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][i],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[i][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return a(0<=o&&o<=9),e+=o*t.PENALTY_N4,a(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return a(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return a(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];a(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function a(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const i=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new i(i.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!i.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new i(i.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:i.isNumeric(e)?[i.makeNumeric(e)]:i.isAlphanumeric(e)?[i.makeAlphanumeric(e)]:[i.makeBytes(i.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new i(i.Mode.ECI,0,t)}static isNumeric(e){return i.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return i.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let c=i;c.NUMERIC_REGEX=/^[0-9]*$/,c.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,c.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=c})(oe||(oe={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(oe||(oe={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(oe||(oe={}));var pe=oe,de={L:pe.QrCode.Ecc.LOW,M:pe.QrCode.Ecc.MEDIUM,Q:pe.QrCode.Ecc.QUARTILE,H:pe.QrCode.Ecc.HIGH},he=128,me="L",ve="#FFFFFF",ge="#000000",ye=!1;
53
53
  /**
54
54
  * @license qrcode.react
55
55
  * Copyright (c) Paul O'Shannessy
56
56
  * SPDX-License-Identifier: ISC
57
- */function be(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 we(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 Oe(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 xe=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function ke(e){const t=e,{value:n,size:r=he,level:o=me,bgColor:a=ve,fgColor:i=ge,includeMargin:c=ye,style:u,imageSettings:s}=t,l=fe(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),f=null==s?void 0:s.src,p=(0,A.useRef)(null),d=(0,A.useRef)(null),[h,m]=(0,A.useState)(!1);(0,A.useEffect)((()=>{if(null!=p.current){const e=p.current,t=e.getContext("2d");if(!t)return;let u=pe.QrCode.encodeText(n,de[o]).getModules();const l=c?4:0,f=u.length+2*l,h=Oe(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=we(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,xe?t.fill(new Path2D(be(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,A.useEffect)((()=>{m(!1)}),[f]);const v=le({height:r,width:r},u);let g=null;return null!=f&&(g=Z().createElement("img",{src:f,key:f,style:{display:"none"},onLoad:()=>{m(!0)},ref:d})),Z().createElement(Z().Fragment,null,Z().createElement("canvas",le({style:v,height:r,width:r,ref:p},l)),g)}function Se(e){const t=e,{value:n,size:r=he,level:o=me,bgColor:a=ve,fgColor:i=ge,includeMargin:c=ye,imageSettings:u}=t,s=fe(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let l=pe.QrCode.encodeText(n,de[o]).getModules();const f=c?4:0,p=l.length+2*f,d=Oe(l,r,c,u);let h=null;null!=u&&null!=d&&(null!=d.excavation&&(l=we(l,d.excavation)),h=Z().createElement("image",{xlinkHref:u.src,height:d.h,width:d.w,x:d.x+f,y:d.y+f,preserveAspectRatio:"none"}));const m=be(l,f);return Z().createElement("svg",le({height:r,width:r,viewBox:`0 0 ${p} ${p}`},s),Z().createElement("path",{fill:a,d:`M0,0 h${p}v${p}H0z`,shapeRendering:"crispEdges"}),Z().createElement("path",{fill:i,d:m,shapeRendering:"crispEdges"}),h)}var Pe=e=>{const t=e,{renderAs:n}=t,r=fe(t,["renderAs"]);return"svg"===n?Z().createElement(Se,le({},r)):Z().createElement(ke,le({},r))};const _e=function(e){var t=e.value;return(0,ee.jsx)(Pe,{value:t,renderAs:"svg"})};var je,Ee,Ce,Te,De,Me,Re=V.ZP.div.withConfig({displayName:"StyledQRCodeWrapper"})(je||(je=Y()(["\n display: flex;\n justify-content: center;\n margin: "," "," "," ",";\n"])),q.Z.space(1.2),q.Z.space(1),q.Z.space(1.5),q.Z.space(1)),Ie=V.ZP.div.withConfig({displayName:"StyledParagraph"})(Ee||(Ee=Y()(["\n display: flex;\n justify-content: center;\n margin-top: ",";\n margin-bottom: ",";\n"])),q.Z.space(-1),q.Z.space(-.9));const Ne=function(e){var t=e.secret,n=e.goToSecretVerification;return(0,H.z)(n),(0,ee.jsxs)(ee.Fragment,{children:[Ce||(Ce=(0,ee.jsx)(B.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.qrCodeInfo"})})),(0,ee.jsx)(Re,{children:(0,ee.jsx)(_e,{value:t.uri})}),Te||(Te=(0,ee.jsx)(B.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.secretInfo"})})),(0,ee.jsx)(Ie,{children:(0,ee.jsx)(B.ZP.B,{children:t.secret})}),De||(De=(0,ee.jsx)(B.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.backupInfo"})})),(0,ee.jsx)(K,{children:(0,ee.jsx)(W.Z,{ink:"primary",look:"raised",onClick:n,children:Me||(Me=(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.nextButton"}))})})]})};var Ae={goToSecretVerification:function(){return{type:k}}};const Ze=(0,g.connect)((function(e){return{secret:e.twoFactorConnector.secret}}),Ae)((0,v.ZP)(Ne));var Le;const Fe=function(e){var t=e.twoFactorActive,n=e.forced,r=e.requestSecret,o=e.intl;(0,H.z)(r);var a=function(e){return o.formatMessage({id:e})};return(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)(B.ZP.P,{children:function(){if(t)return Le||(Le=(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.overwriteInfo"}));var e=a(n?"client.two-factor-connector.forcedInfo":"client.two-factor-connector.info");return(0,ee.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})}()}),(0,ee.jsx)(K,{children:(0,ee.jsx)(W.Z,{label:a("client.two-factor-connector.nextButton"),ink:"primary",look:"raised",onClick:r})})]})};var He={initialize:T,requestSecret:function(){return{type:x}}};const Ue=(0,g.connect)((function(e){return{twoFactorActive:e.twoFactorConnector.twoFactorActive,secret:e.twoFactorConnector.secret,forced:e.input.forced}}),He)((0,v.ZP)(Fe));var Be=i(63038),We=i.n(Be),ze=i(41505),Ye=i.n(ze),Ve=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},qe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ge=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},Ke={outline:"none"},Xe=function(e){function t(){var n,r;Ve(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=Ge(this,e.call.apply(e,[this].concat(a))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=Z().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)},Ge(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?Z().cloneElement(e({focused:t,getRef:this.ref}),n):Z().createElement("div",qe({ref:this.ref,style:Ke},n),e)},t}(Z().Component);Xe.propTypes={children:Ye().oneOfType([Ye().node,Ye().func]).isRequired,onBlur:Ye().func,onFocus:Ye().func},Xe.defaultProps={onBlur:function(){},onFocus:function(){}};const Qe=Xe;var $e,Je,et,tt,nt=i(70696),rt=i(10535),ot=i(23369),at=i(23427),it=i(319),ct=i.n(it),ut=i(37188),st=($e={},l()($e,at.Z.condition.BASE,"inherit"),l()($e,at.Z.condition.DANGER,X.FS.color("signal.danger")),l()($e,at.Z.condition.SUCCESS,X.FS.color("signal.success")),l()($e,at.Z.condition.WARNING,X.FS.color("signal.warning")),l()($e,at.Z.condition.INFO,X.FS.color("signal.info")),$e),lt=(0,V.ZP)(ut.hc).withConfig({displayName:"StyledSignalList"})(Je||(Je=Y()(["\n && {\n list-style-type: none;\n }\n"]))),ft=V.ZP.span.withConfig({displayName:"StyledSignalListIcon"})(et||(et=Y()(["\n position: absolute;\n left: -1.6rem;\n text-align: left;\n"]))),pt=(0,V.ZP)(ut.EF).withConfig({displayName:"StyledSignalListItem"})(tt||(tt=Y()(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){return st[e.condition]||"inherit"}(e)}));const dt=function(e){return(0,ee.jsx)(lt,{as:"ul",children:Z().Children.map(e.children,(function(e){return Z().cloneElement(e)}))})};var ht,mt,vt=(ht={},l()(ht,at.Z.condition.BASE,!1),l()(ht,at.Z.condition.DANGER,"times"),l()(ht,at.Z.condition.SUCCESS,"check"),l()(ht,at.Z.condition.WARNING,"exclamation-triangle"),l()(ht,at.Z.condition.INFO,"info"),ht),gt=function(e){var t=vt[e.condition];return t?(0,ee.jsx)(U.Z,{icon:t,position:at.Z.position.SOLE}):mt||(mt=(0,ee.jsx)("i",{children:"•"}))},yt=function(e){return(0,ee.jsxs)(pt,{condition:e.condition,children:[(0,ee.jsx)(ft,{children:gt(e)}),e.label,Z().Children.map(e.children,(function(e){return Z().cloneElement(e)}))]})};yt.defaultProps={condition:at.Z.condition.BASE};const bt={List:dt,Item:yt};const wt=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,ct()(e.error[n]))})),(0,ee.jsx)(bt.List,{children:t.map((function(e,t){return(0,ee.jsx)(bt.Item,{condition:"danger",label:e},t)}))})};var Ot=i(87585);function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const St=function(e){var t,n,r,o,a=e.children,i=e.description,c=e.dirty,u=e.isDisplay,s=e.error,l=e.hasValue,f=e.id,p=e.label,d=e.mandatory,h=e.mandatoryTitle,m=e.immutable,v=e.touched,g=e.signal,y=!m&&v&&s&&Object.keys(s).length>0,b=d&&h?", ".concat(h):"",w="".concat(nt.Z.adjustedHTMLString(p)).concat(b),O=g||function(e,t,n,r){return t?at.Z.condition.DANGER:e?at.Z.condition.INFO:n&&!r?at.Z.condition.WARNING:void 0}(c,y,d,l),x={__html:"".concat(rt.Z.sanitizeHtml(p)).concat(d?" *":"")},k=!u&&!m&&{htmlFor:f},S=ot.Z.getEmbedType(),P=["admin","legacy-admin"].includes(S);return(0,ee.jsx)(Qe,{children:function(e){var f=e.getRef;return(0,ee.jsx)(Ot.T3,{children:(0,ee.jsxs)(Ot.QZ,{ref:f,label:p,isAdmin:P,children:[p&&(0,ee.jsx)(Ot.yr,kt(kt({},k),{},{hasValue:l,dirty:c,title:w,immutable:m,isDisplay:u,signal:O,isAdmin:P,children:t||(t=(0,ee.jsx)("span",{dangerouslySetInnerHTML:x}))})),(0,ee.jsxs)(Ot.m9,{isAdmin:P,children:[n||(n=(0,ee.jsx)(Ot.if,{hasValue:l,immutable:m,isDisplay:u,signal:O,children:a})),y&&(r||(r=(0,ee.jsx)(Ot.gi,{children:(0,ee.jsx)(wt,{error:s})}))),i&&(o||(o=(0,ee.jsx)(Ot.Mp,{children:i})))]})]})})}})};var Pt=i(57557),_t=i.n(Pt),jt=i(41609),Et=i.n(jt),Ct=i(14293),Tt=i.n(Ct),Dt=i(23493),Mt=i.n(Dt),Rt=i(33417),It=i(1972),Nt=i(32924),At=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var Zt=i(2717);function Lt(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 Ft(e,t){return(Ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ht(e){return(Ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ut=i(62360);function Bt(e,t){if(t&&("object"===(0,Ut.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Wt(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=Ht(e);if(t){var o=Ht(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bt(this,n)}}var zt=i(31599);var Yt=i(78001);function Vt(e){return function(e){if(Array.isArray(e))return(0,zt.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,Yt.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var qt=i(29382),Gt=i(1537),Kt=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Xt(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||Kt(r)&&Kt(o)))return!1;var r,o;return!0}for(var Qt={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"},$t=function(e){return(0,Gt.tZ)("span",(0,Zt.Z)({css:Qt},e))},Jt={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:"",".")}},en=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,A.useMemo)((function(){return(0,Rt.Z)((0,Rt.Z)({},Jt),s||{})}),[s]),x=(0,A.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=(0,Rt.Z)({isDisabled:s&&d(s,i),label:f,labels:h},t);n=O.onChange(m)}return n}),[t,O,d,i,l]),k=(0,A.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,A.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,A.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]),_="".concat(k," ").concat(S," ").concat(P),j=(0,Gt.tZ)(A.Fragment,null,(0,Gt.tZ)("span",{id:"aria-selection"},x),(0,Gt.tZ)("span",{id:"aria-context"},_)),E="initial-input-focus"===(null==t?void 0:t.action);return(0,Gt.tZ)(A.Fragment,null,(0,Gt.tZ)($t,{id:u},E&&j),(0,Gt.tZ)($t,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},a&&!E&&j))},tn=[{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źẑżžẓẕƶȥɀⱬꝣ"}],nn=new RegExp("["+tn.map((function(e){return e.letters})).join("")+"]","g"),rn={},on=0;on<tn.length;on++)for(var an=tn[on],cn=0;cn<an.letters.length;cn++)rn[an.letters[cn]]=an.base;var un=function(e){return e.replace(nn,(function(e){return rn[e]}))},sn=function(e,t){void 0===t&&(t=Xt);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}(un),ln=function(e){return e.replace(/^\s+|\s+$/g,"")},fn=function(e){return"".concat(e.label," ").concat(e.value)},pn=["innerRef"];function dn(e){var t=e.innerRef,n=(0,Nt.Z)(e,pn),r=(0,qt.r)(n,"onExited","in","enter","exit","appear");return(0,Gt.tZ)("input",(0,Zt.Z)({ref:t},r,{css:(0,Gt.iv)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var hn=["boxSizing","height","overflow","paddingRight","position"],mn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function vn(e){e.preventDefault()}function gn(e){e.stopPropagation()}function yn(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function bn(){return"ontouchstart"in window||navigator.maxTouchPoints}var wn=!("undefined"==typeof window||!window.document||!window.document.createElement),On=0,xn={capture:!1,passive:!1};var kn=function(){return document.activeElement&&document.activeElement.blur()},Sn={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Pn(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,A.useRef)(!1),c=(0,A.useRef)(!1),u=(0,A.useRef)(0),s=(0,A.useRef)(null),l=(0,A.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,A.useCallback)((function(e){l(e,e.deltaY)}),[l]),p=(0,A.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),d=(0,A.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;l(e,t)}),[l]),h=(0,A.useCallback)((function(e){if(e){var t=!!qt.s&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",d,t)}}),[d,p,f]),m=(0,A.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",d,!1))}),[d,p,f]);return(0,A.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,A.useRef)({}),a=(0,A.useRef)(null),i=(0,A.useCallback)((function(e){if(wn){var t=document.body,n=t&&t.style;if(r&&hn.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&On<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,c=window.innerWidth-i+a||0;Object.keys(mn).forEach((function(e){var t=mn[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(c,"px"))}t&&bn()&&(t.addEventListener("touchmove",vn,xn),e&&(e.addEventListener("touchstart",yn,xn),e.addEventListener("touchmove",gn,xn))),On+=1}}),[r]),c=(0,A.useCallback)((function(e){if(wn){var t=document.body,n=t&&t.style;On=Math.max(On-1,0),r&&On<1&&hn.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&bn()&&(t.removeEventListener("touchmove",vn,xn),e&&(e.removeEventListener("touchstart",yn,xn),e.removeEventListener("touchmove",gn,xn)))}}),[r]);return(0,A.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(0,Gt.tZ)(A.Fragment,null,n&&(0,Gt.tZ)("div",{onClick:kn,css:Sn}),t((function(e){o(e),a(e)})))}var _n={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},jn=function(e){var t=e.name,n=e.onFocus;return(0,Gt.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:_n,value:"",onChange:function(){}})},En={clearIndicator:qt.a,container:qt.b,control:qt.d,dropdownIndicator:qt.e,group:qt.g,groupHeading:qt.f,indicatorsContainer:qt.i,indicatorSeparator:qt.h,input:qt.j,loadingIndicator:qt.l,loadingMessage:qt.k,menu:qt.m,menuList:qt.n,menuPortal:qt.o,multiValue:qt.p,multiValueLabel:qt.q,multiValueRemove:qt.t,noOptionsMessage:qt.u,option:qt.v,placeholder:qt.w,singleValue:qt.x,valueContainer:qt.y};var Cn,Tn={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}},Dn={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,qt.z)(),captureMenuScroll:!(0,qt.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,Rt.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:fn,trim:!0,matchFrom:"any"},Cn),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,c=n.matchFrom,u=i?ln(t):t,s=i?ln(a(e)):a(e);return r&&(u=u.toLowerCase(),s=s.toLowerCase()),o&&(u=sn(u),s=un(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:!(0,qt.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Mn(e,t,n,r){return{type:"option",data:t,isDisabled:Ln(e,t,n),isSelected:Fn(e,t,n),label:An(e,t),value:Zn(e,t),index:r}}function Rn(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Mn(e,n,t,r)})).filter((function(t){return Nn(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=Mn(e,n,t,r);return Nn(e,a)?a:void 0})).filter(qt.K)}function In(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Vt(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Nn(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,c=t.value;return(!Un(e)||!a)&&Hn(e,{label:i,value:c,data:o},r)}var An=function(e,t){return e.getOptionLabel(t)},Zn=function(e,t){return e.getOptionValue(t)};function Ln(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Fn(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Zn(e,t);return n.some((function(t){return Zn(e,t)===r}))}function Hn(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Un=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Bn=1,Wn=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&&Ft(e,t)}(a,e);var t,n,r,o=Wt(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((0,qt.B)(i.filter((function(e){return t.getOptionValue(e)!==s}))),"deselect-option",e)}else{if(u)return void t.ariaOnChange((0,qt.C)(e),{action:"select-option",option:e,name:a});o?t.setValue((0,qt.B)([].concat(Vt(i),[e])),"select-option",e):t.setValue((0,qt.C)(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=(0,qt.D)(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((0,qt.D)(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=(0,qt.D)(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 qt.E.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return An(t.props,e)},t.getOptionValue=function(e){return Zn(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=En[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(0,qt.F)(t.props)},t.buildCategorizedOptions=function(){return Rn(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return In(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:(0,Rt.Z)({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&&(0,qt.G)(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 Un(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||++Bn),t.state.selectValue=(0,qt.H)(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=(0,qt.H)(s),h={};if(n&&(s!==n.value||u!==n.options||l!==n.menuIsOpen||f!==n.inputValue)){var m=l?function(e,t){return In(Rn(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:(0,qt.D)(p,d,d[0]||null),options:d,action:"initial-input-focus"},b=!c),"initial-input-focus"===(null==a?void 0:a.action)&&(y=null),(0,Rt.Z)((0,Rt.Z)((0,Rt.Z)({},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&&(0,qt.I)(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&&((0,qt.I)(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(Tn):(0,Rt.Z)((0,Rt.Z)({},Tn),this.props.theme):Tn}},{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 Ln(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Fn(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Hn(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=(0,Rt.Z)((0,Rt.Z)((0,Rt.Z)({"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?A.createElement(s,(0,Zt.Z)({},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)):A.createElement(dn,(0,Zt.Z)({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:qt.J,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:A.createElement(c,(0,Zt.Z)({},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 A.createElement(n,(0,Zt.Z)({},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 A.createElement(i,(0,Zt.Z)({},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 A.createElement(e,(0,Zt.Z)({},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?A.createElement(e,(0,Zt.Z)({},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 A.createElement(n,(0,Zt.Z)({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return A.createElement(e,(0,Zt.Z)({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,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,_=p.onMenuScrollToTop,j=p.onMenuScrollToBottom;if(!b)return null;var E,C=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 A.createElement(s,(0,Zt.Z)({},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())E=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 A.createElement(n,(0,Zt.Z)({},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 C(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return C(t,"".concat(t.index))}));else if(m){var T=v({inputValue:h});if(null===T)return null;E=A.createElement(c,l,T)}else{var D=P({inputValue:h});if(null===D)return null;E=A.createElement(u,l,D)}var M={minMenuHeight:g,maxMenuHeight:y,menuPlacement:w,menuPosition:O,menuShouldScrollIntoView:S},R=A.createElement(qt.M,(0,Zt.Z)({},l,M),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,c=r.maxHeight;return A.createElement(o,(0,Zt.Z)({},l,M,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:m,placement:i}),A.createElement(Pn,{captureEnabled:d,onTopArrive:_,onBottomArrive:j,lockEnabled:k},(function(t){return A.createElement(a,(0,Zt.Z)({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:m,maxHeight:c,focusedOption:f}),E)})))}));return x||"fixed"===O?A.createElement(i,(0,Zt.Z)({},l,{appendTo:x,controlElement:this.controlRef,menuPlacement:w,menuPosition:O}),R):R}},{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 A.createElement(jn,{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 A.createElement("input",{name:a,type:"hidden",value:u})}var s=c.length>0?c.map((function(t,n){return A.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):A.createElement("input",{name:a,type:"hidden",value:""});return A.createElement("div",null,s)}var l=c[0]?this.getOptionValue(c[0]):"";return A.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 A.createElement(en,(0,Zt.Z)({},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 A.createElement(r,(0,Zt.Z)({},f,{className:i,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:l}),this.renderLiveRegion(),A.createElement(t,(0,Zt.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:l,menuIsOpen:s}),A.createElement(o,(0,Zt.Z)({},f,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),A.createElement(n,(0,Zt.Z)({},f,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}])&&Lt(t.prototype,n),r&&Lt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(A.Component);Wn.defaultProps=Dn;i(66751),i(30314),i(73469);var zn=(0,A.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=(0,Nt.Z)(e,At),m=(0,A.useState)(void 0!==c?c:n),v=(0,It.Z)(m,2),g=v[0],y=v[1],b=(0,A.useState)(void 0!==u?u:o),w=(0,It.Z)(b,2),O=w[0],x=w[1],k=(0,A.useState)(void 0!==d?d:i),S=(0,It.Z)(k,2),P=S[0],_=S[1],j=(0,A.useCallback)((function(e,t){"function"==typeof s&&s(e,t),_(e)}),[s]),E=(0,A.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),y(void 0!==n?n:e)}),[l]),C=(0,A.useCallback)((function(){"function"==typeof p&&p(),x(!0)}),[p]),T=(0,A.useCallback)((function(){"function"==typeof f&&f(),x(!1)}),[f]),D=void 0!==c?c:g,M=void 0!==u?u:O,R=void 0!==d?d:P;return(0,Rt.Z)((0,Rt.Z)({},h),{},{inputValue:D,menuIsOpen:M,onChange:j,onInputChange:E,onMenuClose:T,onMenuOpen:C,value:R})}(e);return A.createElement(Wn,(0,Zt.Z)({ref:t},n))})),Yn=i(80470);function Vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?Vn(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Gn=(0,v.ZP)((function(e){var t;return(0,ee.jsx)("span",qn(qn({},e.innerProps),{},{children:(0,ee.jsx)(Yn.Z,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t}))})}))}));var Kn=i(95497);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){l()(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}const $n=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,ee.jsx)(qt.c.DropdownIndicator,Qn(Qn({},e),{},{children:(0,ee.jsx)(Kn.M6,{children:(0,ee.jsx)(Yn.Z,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};var Jn,er,tr;function nr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nr(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var or=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},ar=function(e,t){return function(n){n.stopPropagation(),e(t)}},ir=function(e,t){return function(n){n.stopPropagation(),e(t)}},cr=function(e){e.stopPropagation()};const ur=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,ee.jsx)(Kn.HO,{isTopAligned:p,children:(0,ee.jsxs)(qt.c.IndicatorsContainer,rr(rr({},e),{},{children:[e.children,n&&!a&&(0,ee.jsx)("span",{onTouchEnd:cr,onMouseDown:ar(n,s),children:Jn||(Jn=(0,ee.jsx)(Yn.Z,{icon:"folder",tabIndex:-1}))}),r&&!a&&(0,ee.jsx)("span",{onTouchEnd:cr,onMouseDown:or(r,f,s),children:er||(er=(0,ee.jsx)(Yn.Z,{icon:"search",tabIndex:-1}))}),u&&!a&&(0,ee.jsx)("span",{onTouchEnd:cr,onMouseDown:ir(o,s),children:tr||(tr=(0,ee.jsx)(Yn.Z,{icon:"plus",tabIndex:-1}))})]}))})};var sr,lr=i(93235);const fr=function(){return sr||(sr=(0,ee.jsx)("span",{children:(0,ee.jsx)(lr.Z,{size:"1.8rem"})}))};var pr=i(15315);function dr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hr(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){l()(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}const mr=function(e){var t=e.selectProps,n=e.children;return(0,ee.jsx)(Kn._M,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,ee.jsx)("div",{ref:e})},renderElement:function(r){return(0,ee.jsx)("div",{ref:r,className:pr.c,children:(0,ee.jsx)(Kn.l2,hr(hr({},_t()(e,["innerRef"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,children:n}))})}})};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 gr(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){l()(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 yr=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,ee.jsxs)(qt.c.MenuList,gr(gr({},e),{},{className:"MenuList",children:[n,r&&(0,ee.jsx)(Kn.OA,{children:o})]}))};var br=i(27361),wr=i.n(br),Or=i(76791);function xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xr(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Sr=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=wr()(a,t.key,null),s=(0,ee.jsx)("span",kr(kr({},n),{},{children:r})),l=c?(0,ee.jsx)(Kn.vR,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,ee.jsx)(c,{entityKey:t.key,tabIndex:-1,children:(0,ee.jsx)(Or.Z,{content:u?(0,ee.jsx)("div",{dangerouslySetInnerHTML:{__html:rt.Z.sanitizeHtml(u)}}):null,children:(0,ee.jsx)("span",{onMouseOver:function(){return i&&!u&&i(t.key)},children:s})})})}):s;return(0,ee.jsx)(Kn.B1,{children:l})};var Pr=i(47037),_r=i.n(Pr),jr=i(14176),Er=i.n(jr);function Cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cr(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dr=["linkComp"],Mr=function(e,t){var n=nt.Z.difference(e,t),r=Er()(_t()(n,Dr),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},Rr=(0,A.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&_r()(n)?(0,ee.jsx)(Kn.vR,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,ee.jsx)(t,{entityKey:n,children:r})}):r}),Mr);Rr.propTypes={children:p().node,entityKey:p().any,linkComp:p().func};const Ir=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=wr()(a,t.key,null);return(0,ee.jsx)(qt.c.SingleValue,Tr(Tr({},e),{},{children:(0,ee.jsx)(Kn.xq,{onMouseOver:function(){return i&&!u&&i(t.key)},isDisabled:r,children:(0,ee.jsx)(Or.Z,{content:u?(0,ee.jsx)("div",{dangerouslySetInnerHTML:{__html:rt.Z.sanitizeHtml(u)}}):null,children:(0,ee.jsx)(Rr,{linkComp:c,entityKey:t.key,children:o})})})}))};function Nr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Ar=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const Zr=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,ee.jsx)(qt.c.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nr(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var u=A.Children.map(r,(function(e){return Ar(e)?e:null})),s=A.Children.map(r,(function(e){return Ar(e)?null:e})),f=c&&n;return(0,ee.jsxs)(ee.Fragment,{children:[!f&&(0,ee.jsx)(ee.Fragment,{children:u}),(0,ee.jsx)(Kn.eQ,{children:s})]})};function Lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lr(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Hr=(0,V.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,A.useRef)(null),k=(0,A.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},_=(0,A.useState)(S()),j=We()(_,2),E=j[0],C=j[1],T=(0,A.useState)(P()),D=We()(T,2),M=D[0],R=D[1],I=(0,A.useState)(!1),N=We()(I,2),Z=N[0],L=N[1],F=function(e){t&&t(e)},H=(0,A.useCallback)(m||function(){},[]),U=(0,A.useCallback)(Mt()(H,800,{trailing:!0}),[]),B=Boolean(d),W=Boolean(p),z=Boolean(w);return(0,ee.jsx)(Kn.sP,{tabIndex:"-1",id:n,onFocus:function(){x.current.focus(),setTimeout((function(){C(S()),R(P())}),0)},children:(0,ee.jsx)(Kn.RU,{ref:k,children:(0,ee.jsx)(zn,Fr(Fr({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:E,wrapperHeight:M,components:{ClearIndicator:Gn,LoadingIndicator:fr,DropdownIndicator:$n,IndicatorsContainer:ur,IndicatorSeparator:null,Menu:mr,MenuList:yr,MultiValueLabel:Sr,SingleValue:Ir,ValueContainer:Zr},noOptionsMessage:function(e){return s||("function"==typeof l?(0,ee.jsx)(l,Fr({},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),F(e)},onInputChange:function(e,t){var n=t.action;m&&e&&U(e,y),""===e&&"input-change"===n&&F(y)},options:ct()(h||[]),onKeyDown:function(e){"Enter"===e.key&&Z?e.stopPropagation():"Tab"===e.key&&(e.preventDefault=function(){})},isLoading:o,isDisabled:r,ref:x,onMenuOpen:function(){F(y),L(!0)},onMenuClose:function(){L(!1)},styles:(0,Kn.i4)(v),loadTooltip:i,tooltips:g,DetailLink:b,hasDocsTreeSearch:W,openDocsTreeSearch:p,hasAdvancedSearch:B,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 Ur=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,ee.jsx)(Hr,{id:t,immutable:n,isMulti:!1,onChange:function(e){return c(e?e.key:null)},value:Tt()(r)?r:{key:r,display:r?a:i},openMenuOnClick:!0,options:[{key:!0,display:a},{key:!1,display:i}]})};var Br,Wr=V.ZP.div.withConfig({displayName:"StyledBoolEdit"})(Br||(Br=Y()(["\n margin: 5px 0;\n"])));const zr=function(e){return(0,ee.jsx)(Wr,{children:(0,ee.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 Yr,Vr,qr=i(30759);function Gr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gr(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xr=V.ZP.div.withConfig({displayName:"StyledOption"})(Yr||(Yr=Y()(["\n margin: "," 0;\n"])),q.Z.space(-1.4)),Qr=V.ZP.span.withConfig({displayName:"StyledLabel"})(Vr||(Vr=Y()(["\n ","\n display: inline-block;\n margin-left: ",";\n"])),(0,qr.Z)(),q.Z.space(-1.5)),$r={single:"radio",multiple:"checkbox"},Jr={single:{checked:!1},multiple:{}},eo=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.checked,a=e.immutable,i=e.selectionType,c=e.renderHtmlInOptions,u=e.handleChange;return(0,ee.jsxs)(Xr,{children:[(0,ee.jsx)("input",{name:t,type:$r[i],checked:o||!1,onChange:u,id:n,disabled:a}),(0,ee.jsx)(Qr,{children:c?(0,ee.jsx)("span",{dangerouslySetInnerHTML:{__html:rt.Z.sanitizeHtml(r)}}):r})]})};const to=function(e){var t=function(t){if(e.onChange){var n=e.value.options.map((function(n){return Kr(Kr({},n),n.id===t.target.id?{checked:t.target.checked}:Jr[e.options.selectionType])}));e.onChange({options:n})}};return(0,ee.jsx)(ee.Fragment,{children:e.value.options.map((function(n){return(0,ee.jsx)(eo,{groupName:e.id,id:n.id,label:n.label,checked:n.checked,immutable:e.immutable,selectionType:e.options.selectionType,renderHtmlInOptions:e.options.renderHtmlInOptions,handleChange:t},n.id)}))})};var no=i(23279),ro=i.n(no);function oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oo(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var io=(0,A.lazy)((function(){return Promise.all([i.e(560),i.e(85)]).then(i.bind(i,30919))}));const co=function(e){return(0,ee.jsx)(A.Suspense,{fallback:(t=e.value,(0,ee.jsx)("div",{children:(0,ee.jsx)("p",{children:t})})),children:(0,ee.jsx)(io,ao({},e))});var t};var uo,so=V.ZP.div.withConfig({displayName:"StyledEditorWrapper"})(uo||(uo=Y()(["\n margin-top: ",";\n"])),q.Z.space(-1.5));const lo=function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options;return(0,ee.jsx)(so,{children:(0,ee.jsx)(co,{value:t,onChange:ro()(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 fo=i(86896),po=i(23842),ho=i(6479),mo=i.n(ho),vo=i(93379),go=i.n(vo),yo=i(7795),bo=i.n(yo),wo=i(90569),Oo=i.n(wo),xo=i(3565),ko=i.n(xo),So=i(19216),Po=i.n(So),_o=i(44589),jo=i.n(_o),Eo=i(16721),Co={};Co.styleTagTransform=jo(),Co.setAttributes=ko(),Co.insert=Oo().bind(null,"head"),Co.domAPI=bo(),Co.insertStyleElement=Po();go()(Eo.Z,Co);Eo.Z&&Eo.Z.locals&&Eo.Z.locals;var To=i(9198),Do=i.n(To),Mo=(Math.pow(10,8),6e4),Ro=36e5,Io=i(13882),No=i(83946);var Ao={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Zo=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Lo=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Fo=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Ho(e){var t,n={},r=e.split(Ao.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],Ao.timeZoneDelimiter.test(n.date)&&(n.date=e.split(Ao.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=Ao.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}function Uo(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 Bo(e,t){if(null===t)return new Date(NaN);var n=e.match(Zo);if(!n)return new Date(NaN);var r=!!n[4],o=Wo(n[1]),a=Wo(n[2])-1,i=Wo(n[3]),c=Wo(n[4]),u=Wo(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<=(qo[t]||(Go(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(Go(e)?366:365)}(t,o)?(s.setUTCFullYear(t,a,Math.max(o,i)),s):new Date(NaN)}function Wo(e){return e?parseInt(e):1}function zo(e){var t=e.match(Lo);if(!t)return NaN;var n=Yo(t[1]),r=Yo(t[2]),o=Yo(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*Ro+r*Mo+1e3*o:NaN}function Yo(e){return e&&parseFloat(e.replace(",","."))||0}function Vo(e){if("Z"===e)return 0;var t=e.match(Fo);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*Ro+o*Mo):NaN}var qo=[31,null,31,30,31,30,31,31,30,31,30,31];function Go(e){return e%400==0||e%4==0&&e%100!=0}var Ko,Xo,Qo,$o,Jo,ea,ta,na,ra,oa=(0,V.iv)(Ko||(Ko=Y()(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),aa=V.ZP.label.withConfig({displayName:"StyledEditableWrapper"})(Xo||(Xo=Y()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),oa),ia=(0,V.iv)(Qo||(Qo=Y()(["\n background-color: transparent;\n border: 0;\n cursor: ",";\n flex-grow: 1;\n min-height: 2.6rem;\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(){return(0,qr.Z)({color:X.FS.color("text")})}),X.FS.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),ca=(0,V.iv)($o||($o=Y()(["\n display: flex;\n align-items: center;\n"]))),ua=V.ZP.div.withConfig({displayName:"StyledEditableControl"})(Jo||(Jo=Y()(["\n &&& {\n ","\n }\n"])),ca),sa=V.ZP.span.withConfig({displayName:"StyledEditableValue"})(ea||(ea=Y()(["\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"])),X.FS.color("signal.danger")),la=V.ZP.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(ta||(ta=Y()(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),fa=V.ZP.div.withConfig({displayName:"StyledDatePickerWrapper"})(na||(na=Y()(["\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"])),oa,ia,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),pa=V.ZP.input.withConfig({displayName:"StyledTimeInput"})(ra||(ra=Y()(["\n &&&& {\n ","\n }\n"])),ia),da=i(37042),ha=i(4543),ma=i(39880),va=i(85817),ga=i(39159),ya=i(19013);function ba(e){(0,Io.Z)(1,arguments);var t=(0,ya.Z)(e),n=t.getSeconds();return n}var wa=i(86);function Oa(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 xa(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 Oa(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)?Oa(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}}}}var ka=i(44941),Sa=i(29558);function Pa(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}var _a=i(97621),ja=i(24262),Ea=i(5267);function Ca(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ta(e,t){return(Ta=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Da(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&&Ta(e,t)}function Ma(e){return(Ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ra(e,t){if(t&&("object"===(0,wa.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ca(e)}function Ia(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=Ma(e);if(t){var o=Ma(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ra(this,n)}}function Na(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Aa(e){var t=function(e,t){if("object"!==(0,wa.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==(0,wa.Z)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,wa.Z)(t)?t:String(t)}function Za(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,Aa(r.key),r)}}function La(e,t,n){return t&&Za(e.prototype,t),n&&Za(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fa(e,t,n){return(t=Aa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ha=function(){function e(){Na(this,e),Fa(this,"priority",void 0),Fa(this,"subPriority",0)}return La(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),Ua=function(e){Da(n,e);var t=Ia(n);function n(e,r,o,a,i){var c;return Na(this,n),(c=t.call(this)).value=e,c.validateValue=r,c.setValue=o,c.priority=a,i&&(c.subPriority=i),c}return La(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}(Ha),Ba=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",10),Fa(Ca(e),"subPriority",-1),e}return La(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}(Ha),Wa=function(){function e(){Na(this,e),Fa(this,"incompatibleTokens",void 0),Fa(this,"priority",void 0),Fa(this,"subPriority",void 0)}return La(e,[{key:"run",value:function(e,t,n,r){var o=this.parse(e,t,n,r);return o?{setter:new Ua(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),za=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",140),Fa(Ca(e),"incompatibleTokens",["R","u","t","T"]),e}return La(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}(Wa),Ya=/^(1[0-2]|0?\d)/,Va=/^(3[0-1]|[0-2]?\d)/,qa=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Ga=/^(5[0-3]|[0-4]?\d)/,Ka=/^(2[0-3]|[0-1]?\d)/,Xa=/^(2[0-4]|[0-1]?\d)/,Qa=/^(1[0-1]|0?\d)/,$a=/^(1[0-2]|0?\d)/,Ja=/^[0-5]?\d/,ei=/^[0-5]?\d/,ti=/^\d/,ni=/^\d{1,2}/,ri=/^\d{1,3}/,oi=/^\d{1,4}/,ai=/^-?\d+/,ii=/^-?\d/,ci=/^-?\d{1,2}/,ui=/^-?\d{1,3}/,si=/^-?\d{1,4}/,li=/^([+-])(\d{2})(\d{2})?|Z/,fi=/^([+-])(\d{2})(\d{2})|Z/,pi=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,di=/^([+-])(\d{2}):(\d{2})|Z/,hi=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function mi(e,t){return e?{value:t(e.value),rest:e.rest}:e}function vi(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function gi(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*Ro+a*Mo+1e3*i),rest:t.slice(n[0].length)}}function yi(e){return vi(ai,e)}function bi(e,t){switch(e){case 1:return vi(ti,t);case 2:return vi(ni,t);case 3:return vi(ri,t);case 4:return vi(oi,t);default:return vi(new RegExp("^\\d{1,"+e+"}"),t)}}function wi(e,t){switch(e){case 1:return vi(ii,t);case 2:return vi(ci,t);case 3:return vi(ui,t);case 4:return vi(si,t);default:return vi(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Oi(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 xi(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 ki(e){return e%400==0||e%4==0&&e%100!=0}var Si=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",130),Fa(Ca(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return La(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return mi(bi(4,e),r);case"yo":return mi(n.ordinalNumber(e,{unit:"year"}),r);default:return mi(bi(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=xi(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}(Wa),Pi=i(7651),_i=i(59025),ji=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",130),Fa(Ca(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return La(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return mi(bi(4,e),r);case"Yo":return mi(n.ordinalNumber(e,{unit:"year"}),r);default:return mi(bi(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=(0,Pi.Z)(e,r);if(n.isTwoDigitYear){var a=xi(n.year,o);return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,_i.Z)(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),(0,_i.Z)(e,r)}}]),n}(Wa),Ei=i(66979),Ci=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",130),Fa(Ca(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return La(n,[{key:"parse",value:function(e,t){return wi("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),(0,Ei.Z)(r)}}]),n}(Wa),Ti=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",130),Fa(Ca(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return La(n,[{key:"parse",value:function(e,t){return wi("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}(Wa),Di=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",120),Fa(Ca(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return La(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return bi(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}(Wa),Mi=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",120),Fa(Ca(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return La(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return bi(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}(Wa),Ri=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Fa(Ca(e),"priority",110),e}return La(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return mi(vi(Ya,e),r);case"MM":return mi(bi(2,e),r);case"Mo":return mi(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}(Wa),Ii=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",110),Fa(Ca(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return La(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return mi(vi(Ya,e),r);case"LL":return mi(bi(2,e),r);case"Lo":return mi(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}(Wa),Ni=i(23324);var Ai=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",100),Fa(Ca(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return La(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return vi(Ga,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return bi(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return(0,_i.Z)(function(e,t,n){(0,Io.Z)(2,arguments);var r=(0,ya.Z)(e),o=(0,No.Z)(t),a=(0,Ni.Z)(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*a),r}(e,n,r),r)}}]),n}(Wa),Zi=i(49702);var Li=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",100),Fa(Ca(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return La(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return vi(Ga,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return bi(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return(0,Ei.Z)(function(e,t){(0,Io.Z)(2,arguments);var n=(0,ya.Z)(e),r=(0,No.Z)(t),o=(0,Zi.Z)(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n))}}]),n}(Wa),Fi=[31,28,31,30,31,30,31,31,30,31,30,31],Hi=[31,29,31,30,31,30,31,31,30,31,30,31],Ui=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",90),Fa(Ca(e),"subPriority",1),Fa(Ca(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return La(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return vi(Va,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return bi(t.length,e)}}},{key:"validate",value:function(e,t){var n=ki(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=Hi[r]:t>=1&&t<=Fi[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(Wa),Bi=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",90),Fa(Ca(e),"subpriority",1),Fa(Ca(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return La(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return vi(qa,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return bi(t.length,e)}}},{key:"validate",value:function(e,t){return ki(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}(Wa),Wi=i(84314);function zi(e,t,n){var r,o,a,i,c,u,s,l;(0,Io.Z)(2,arguments);var f=(0,Wi.j)(),p=(0,No.Z)(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=(0,ya.Z)(e),h=(0,No.Z)(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 Yi=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",90),Fa(Ca(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return La(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=zi(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Wa),Vi=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",90),Fa(Ca(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return La(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 mi(bi(t.length,e),o);case"eo":return mi(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=zi(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Wa),qi=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",90),Fa(Ca(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return La(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 mi(bi(t.length,e),o);case"co":return mi(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=zi(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Wa);var Gi=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",90),Fa(Ca(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return La(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return bi(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return mi(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 mi(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return mi(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiii":default:return mi(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){(0,Io.Z)(2,arguments);var n=(0,No.Z)(t);n%7==0&&(n-=7);var r=1,o=(0,ya.Z)(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}(Wa),Ki=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",80),Fa(Ca(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return La(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(Oi(n),0,0,0),e}}]),n}(Wa),Xi=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",80),Fa(Ca(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return La(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(Oi(n),0,0,0),e}}]),n}(Wa),Qi=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",80),Fa(Ca(e),"incompatibleTokens",["a","b","t","T"]),e}return La(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(Oi(n),0,0,0),e}}]),n}(Wa),$i=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",70),Fa(Ca(e),"incompatibleTokens",["H","K","k","t","T"]),e}return La(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return vi($a,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return bi(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}(Wa),Ji=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",70),Fa(Ca(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return La(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return vi(Ka,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return bi(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}(Wa),ec=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",70),Fa(Ca(e),"incompatibleTokens",["h","H","k","t","T"]),e}return La(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return vi(Qa,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return bi(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}(Wa),tc=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",70),Fa(Ca(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return La(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return vi(Xa,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return bi(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}(Wa),nc=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",60),Fa(Ca(e),"incompatibleTokens",["t","T"]),e}return La(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return vi(Ja,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return bi(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}(Wa),rc=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",50),Fa(Ca(e),"incompatibleTokens",["t","T"]),e}return La(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return vi(ei,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return bi(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}(Wa),oc=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",30),Fa(Ca(e),"incompatibleTokens",["t","T"]),e}return La(n,[{key:"parse",value:function(e,t){return mi(bi(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}(Wa),ac=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",10),Fa(Ca(e),"incompatibleTokens",["t","T","x"]),e}return La(n,[{key:"parse",value:function(e,t){switch(t){case"X":return gi(li,e);case"XX":return gi(fi,e);case"XXXX":return gi(pi,e);case"XXXXX":return gi(hi,e);case"XXX":default:return gi(di,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(Wa),ic=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",10),Fa(Ca(e),"incompatibleTokens",["t","T","X"]),e}return La(n,[{key:"parse",value:function(e,t){switch(t){case"x":return gi(li,e);case"xx":return gi(fi,e);case"xxxx":return gi(pi,e);case"xxxxx":return gi(hi,e);case"xxx":default:return gi(di,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(Wa),cc=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",40),Fa(Ca(e),"incompatibleTokens","*"),e}return La(n,[{key:"parse",value:function(e){return yi(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(Wa),uc=function(e){Da(n,e);var t=Ia(n);function n(){var e;Na(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Fa(Ca(e=t.call.apply(t,[this].concat(o))),"priority",20),Fa(Ca(e),"incompatibleTokens","*"),e}return La(n,[{key:"parse",value:function(e){return yi(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(Wa),sc={G:new za,y:new Si,Y:new ji,R:new Ci,u:new Ti,Q:new Di,q:new Mi,M:new Ri,L:new Ii,w:new Ai,I:new Li,d:new Ui,D:new Bi,E:new Yi,e:new Vi,c:new qi,i:new Gi,a:new Ki,b:new Xi,B:new Qi,h:new $i,H:new Ji,K:new ec,k:new tc,m:new nc,s:new rc,S:new oc,X:new ac,x:new ic,t:new cc,T:new uc},lc=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,fc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pc=/^'([^]*?)'?$/,dc=/''/g,hc=/\S/,mc=/[a-zA-Z]/;function vc(e,t,n,r){var o,a,i,c,u,s,l,f,p,d,h,m,v,g,y,b,w,O;(0,Io.Z)(3,arguments);var x=String(e),k=String(t),S=(0,Wi.j)(),P=null!==(o=null!==(a=null==r?void 0:r.locale)&&void 0!==a?a:S.locale)&&void 0!==o?o:ka.Z;if(!P.match)throw new RangeError("locale must contain match property");var _=(0,No.Z)(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=(0,No.Z)(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?(0,ya.Z)(n):new Date(NaN);var E,C={firstWeekContainsDate:_,weekStartsOn:j,locale:P},T=[new Ba],D=k.match(fc).map((function(e){var t=e[0];return t in _a.Z?(0,_a.Z[t])(e,P.formatLong):e})).join("").match(lc),M=[],R=xa(D);try{var I=function(){var t=E.value;null!=r&&r.useAdditionalWeekYearTokens||!(0,Ea.Do)(t)||(0,Ea.qp)(t,k,e),null!=r&&r.useAdditionalDayOfYearTokens||!(0,Ea.Iu)(t)||(0,Ea.qp)(t,k,e);var n=t[0],o=sc[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)};T.push(c.setter),x=c.rest}else{if(n.match(mc))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=gc(t)),0!==x.indexOf(t))return{v:new Date(NaN)};x=x.slice(t.length)}};for(R.s();!(E=R.n()).done;){var N=I();if("object"===(0,wa.Z)(N))return N.v}}catch(e){R.e(e)}finally{R.f()}if(x.length>0&&hc.test(x))return new Date(NaN);var A=T.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 T.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),Z=(0,ya.Z)(n);if(isNaN(Z.getTime()))return new Date(NaN);var L,F=(0,Sa.Z)(Z,(0,ja.Z)(Z)),H={},U=xa(A);try{for(U.s();!(L=U.n()).done;){var B=L.value;if(!B.validate(F,C))return new Date(NaN);var W=B.set(F,H,C);Array.isArray(W)?(F=W[0],Pa(H,W[1])):F=W}}catch(e){U.e(e)}finally{U.f()}return F}function gc(e){return e.match(pc)[1].replace(dc,"'")}var yc=i(49599);function bc(e,t,n){return(0,Io.Z)(2,arguments),(0,yc.Z)(vc(e,t,new Date,n))}var wc="react-datepicker-time__input",Oc="react-datepicker__day",xc="react-datepicker__input",kc=function(e){return e.classList.contains(Oc)},Sc=function(e){return e.classList.contains(wc)},Pc=function(e){return e.classList.contains(xc)},_c=function(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,a=void 0===o?0:o,i=t.second,c=void 0===i?0:i;return(0,da.Z)((0,ha.Z)((0,ma.Z)(e,c),a),r)},jc=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(Oc,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},Ec=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},Cc=function(e){var t=function(e,t){var n;(0,Io.Z)(1,arguments);var r=(0,No.Z)(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=Ho(e);if(a.date){var i=Uo(a.date,r);o=Bo(i.restDateString,i.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var c,u=o.getTime(),s=0;if(a.time&&(s=zo(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=Vo(a.timezone),isNaN(c)?new Date(NaN):new Date(u+s+c)}(e);return isNaN(t)?null:t},Tc=function(e){return e?e.toISOString():null};const Dc=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?Cc:u,l=n.dateToValue,f=void 0===l?Tc:l,p=(0,A.useRef)(null),d=(0,A.useState)(!1),h=We()(d,2),m=h[0],v=h[1],g=(0,A.useState)(!1),y=We()(g,2),b=y[0],w=y[1],O=s(e),x=a?s(a):void 0,k=i?s(i):void 0;(0,A.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},_=function(e){p.current&&"function"==typeof p.current.setPreSelection&&p.current.setPreSelection(e)},j=function(){t(null),_(null)},E=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?_c(n,{hour:(0,va.Z)(r),minute:(0,ga.Z)(r),second:ba(r)}):n;C(o,e)}},C=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 bc(u,e)})),l=function(e){(0,Io.Z)(1,arguments);var t=(0,ya.Z)(e);return t.setHours(0,0,0,0),t}(n),d=(0,va.Z)(n)!==(0,va.Z)(l)||(0,ga.Z)(n)!==(0,ga.Z)(l);(i&&!d||s)&&c&&(n=po.Z.setCurrentTime(n)),t(f(n))}else j();var h;c||"click"!==(null==r?void 0:r.type)||(S(),Ec(null===(h=p.current)||void 0===h?void 0:h.input))},T=function(e){if("Tab"===e.key)if(e.shiftKey)if(Pc(e.target))setTimeout((function(){return S()}),0);else if(Sc(e.target)){var t,n;_(O||P(!0)),jc(null===(t=p.current)||void 0===t||null===(n=t.calendar)||void 0===n?void 0:n.componentNode)}else kc(e.target)&&S();else Pc(e.target)&&m?(E(e),setTimeout((function(){return S()}),0)):Sc(e.target)?S():kc(e.target)&&(c?(E(e,!0),_(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(wc));e&&e.focus({preventScroll:!0})}}),0),w(!1)}),0)):(E(e),S()));var r;"Enter"===e.key&&(S(),e.preventDefault(),e.stopPropagation(),Ec(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;_(O||P(!0)),jc(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)},D=function(){var e;v((function(e){return!e})),_(null),Ec(null===(e=p.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{closeOnScroll:function(){return S(),!0},onClickOutside:S,onInputClick:D,onKeyDown:T,onChange:C,onCalendarOpen:function(){_(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:xc},timeInputProps:{onKeyDown:T,className:wc,tabIndex:b?void 0:"-1"},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),j()}},calendarButtonProps:{onClick:D,className:m?"react-datepicker-ignore-onclickoutside":""}}};var Mc=i(49546),Rc=i(35997),Ic="HH:mm:ss",Nc="HH:mm",Ac=function(e){return bc(e,Nc)},Zc=function(e){var t=function(e){return bc(e,Ic)?vc(e,Ic,new Date):bc(e,Nc)?vc(e,Nc,new Date):bc(e,"HH:")?vc(e,"HH:",new Date):bc(e,"H")?vc(e,"H",new Date):null}(e);return t&&!isNaN(t)?function(e){return(0,Mc.Z)(e,Nc)}(t):""};const Lc=function(e,t){var n=Zc(e),r=(0,A.useState)(n),o=We()(r,2),a=o[0],i=o[1],c=(0,A.useRef)(a),u=Rc.Z.usePrevious(n);(0,A.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&&!Ac(n)||t(n)}},onBlur:function(){if(a!==n){var e=Zc(a);e&&Ac(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 Fc=["value","onChange","onKeyDown"];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 Uc(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){l()(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}(0,To.registerLocale)("en",po.Z.getDateFnsLocale("en")),(0,To.registerLocale)("en-US",po.Z.getDateFnsLocale("en")),(0,To.registerLocale)("de-CH",po.Z.getDateFnsLocale("de-CH")),(0,To.registerLocale)("de",po.Z.getDateFnsLocale("de")),(0,To.registerLocale)("fr",po.Z.getDateFnsLocale("fr")),(0,To.registerLocale)("fr-CH",po.Z.getDateFnsLocale("fr")),(0,To.registerLocale)("it",po.Z.getDateFnsLocale("it")),(0,To.registerLocale)("it-CH",po.Z.getDateFnsLocale("it")),(0,To.setDefaultLocale)("de");var Bc=function(e){var t=e.onChange,n=e.label;return(0,ee.jsx)(W.Z,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},Wc=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=mo()(e,Fc),a=Lc(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,ee.jsx)(pa,Uc(Uc(Uc({},a),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},zc={strategy:"fixed"};const Yc=(0,V.Zz)((0,v.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,A.useRef)(void 0),y=s.locale,b=function(e){return s.formatMessage({id:e})},w=(0,A.useRef)(null),O=Boolean(r),x=!t&&O,k=function(e){g.current=e,u(e)},S=Dc(r,k,{dateFormats:d,dateTimeFormats:m,minDate:o,maxDate:a,valueToDate:i,dateToValue:c,hasTime:f}),P=S.reactDatePickerProps,_=S.timeInputProps,j=S.clearButtonProps,E=S.calendarButtonProps;return(0,ee.jsx)(la,{immutable:t,id:n,tabIndex:"-1",children:(0,ee.jsxs)(fa,{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,ee.jsx)(Do(),Uc(Uc({},P),{},{disabled:t,dateFormat:[].concat(ct()(m),ct()(d)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!1,fixedHeight:!0,showPopperArrow:!1,locale:y,customTimeInput:(0,ee.jsx)(Wc,Uc({},_)),timeInputLabel:"",popperProps:zc,todayButton:(0,ee.jsx)(Bc,{onChange:k,label:b("client.component.datePicker.todayLabel")})})),x&&(0,ee.jsx)(Yn.Z,Uc({icon:"times",tabIndex:-1,"aria-label":b("client.component.datePicker.clearDateLabel")},j)),!t&&(0,ee.jsx)(Yn.Z,Uc({icon:"calendar",tabIndex:-1},E))]})})})));function Vc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 qc=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,fo.Z)(),s=(null==n?void 0:n.datePickerOptions)||{},f="".concat(po.Z.getLocalizedDateFormat(u.locale)),p=po.Z.getLocalizedDateFormatWithoutPunctuation(u.locale),d=[f,p,po.Z.useTwoDigitYear(f),po.Z.useTwoDigitYear(p)];return(0,ee.jsx)(Yc,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vc(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:r,value:o,onChange:t,dateFormats:d,hasTime:!1,immutable:a,placeholder:c,events:i},s))};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}const Kc=(0,v.ZP)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,a=e.placeholder,i=(0,fo.Z)(),c=(null==n?void 0:n.datePickerOptions)||{},u="".concat(po.Z.getLocalizedDateTimeFormat(i.locale)),s="".concat(po.Z.getLocalizedDateFormat(i.locale)),f=po.Z.getLocalizedDateTimeFormatWithoutPunctuation(i.locale),p=[u,f,po.Z.useTwoDigitYear(u),po.Z.useTwoDigitYear(f)],d=po.Z.getLocalizedDateFormatWithoutPunctuation(i.locale),h=[s,d,po.Z.useTwoDigitYear(s),po.Z.useTwoDigitYear(d)];return(0,ee.jsx)(Yc,function(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){l()(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}({value:r,onChange:t,dateTimeFormats:p,dateFormats:h,hasTime:!0,immutable:o,placeholder:a},c))}));var Xc=i(18446),Qc=i.n(Xc);function $c(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 Jc(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 eu(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 tu(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 nu=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 ru(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=nu.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 ou=[".DS_Store","Thumbs.db"];function au(e){return"object"==typeof e&&null!==e}function iu(e){return lu(e.target.files).map((function(e){return ru(e)}))}function cu(e){return $c(this,void 0,void 0,(function(){return Jc(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 ru(e)}))]}}))}))}function uu(e,t){return $c(this,void 0,void 0,(function(){var n;return Jc(this,(function(r){switch(r.label){case 0:return e.items?(n=lu(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(fu))]):[3,2];case 1:return[2,su(pu(r.sent()))];case 2:return[2,su(lu(e.files).map((function(e){return ru(e)})))]}}))}))}function su(e){return e.filter((function(e){return-1===ou.indexOf(e.name)}))}function lu(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function fu(e){if("function"!=typeof e.webkitGetAsEntry)return du(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?mu(t):du(e)}function pu(e){return e.reduce((function(e,t){return tu(tu([],eu(e),!1),eu(Array.isArray(t)?pu(t):[t]),!1)}),[])}function du(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=ru(t);return Promise.resolve(n)}function hu(e){return $c(this,void 0,void 0,(function(){return Jc(this,(function(t){return[2,e.isDirectory?mu(e):vu(e)]}))}))}function mu(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var a=this;t.readEntries((function(t){return $c(a,void 0,void 0,(function(){var a,i,c;return Jc(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(hu)),r.push(c),o(),u.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function vu(e){return $c(this,void 0,void 0,(function(){return Jc(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=ru(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var gu=i(58363);function yu(e){return function(e){if(Array.isArray(e))return Su(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ku(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 bu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bu(Object(n),!0).forEach((function(t){Ou(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ou(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xu(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)||ku(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 ku(e,t){if(e){if("string"==typeof e)return Su(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)?Su(e,t):void 0}}function Su(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 Pu="file-invalid-type",_u="file-too-large",ju="file-too-small",Eu="too-many-files",Cu=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:Pu,message:"File type must be ".concat(t)}},Tu=function(e){return{code:_u,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},Du=function(e){return{code:ju,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},Mu={code:Eu,message:"Too many files"};function Ru(e,t){var n="application/x-moz-file"===e.type||(0,gu.Z)(e,t);return[n,n?null:Cu(t)]}function Iu(e,t,n){if(Nu(e.size))if(Nu(t)&&Nu(n)){if(e.size>n)return[!1,Tu(n)];if(e.size<t)return[!1,Du(t)]}else{if(Nu(t)&&e.size<t)return[!1,Du(t)];if(Nu(n)&&e.size>n)return[!1,Tu(n)]}return[!0,null]}function Nu(e){return null!=e}function Au(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=xu(Ru(e,n),1)[0],a=xu(Iu(e,r,o),1)[0],i=c?c(e):null;return t&&a&&!i}))}function Zu(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function Lu(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 Fu(e){e.preventDefault()}function Hu(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function Uu(e){return-1!==e.indexOf("Edge/")}function Bu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return Hu(e)||Uu(e)}function Wu(){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!Zu(e)&&t&&t.apply(void 0,[e].concat(r)),Zu(e)}))}}function zu(){return"showOpenFilePicker"in window}function Yu(e){return Nu(e)?[{description:"Files",accept:Object.entries(e).filter((function(e){var t=xu(e,2),n=t[0],r=t[1],o=!0;return Ku(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(Xu)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=xu(t,2),r=n[0],o=n[1];return wu(wu({},e),{},Ou({},r,o))}),{})}]:e}function Vu(e){if(Nu(e))return Object.entries(e).reduce((function(e,t){var n=xu(t,2),r=n[0],o=n[1];return[].concat(yu(e),[r],yu(o))}),[]).filter((function(e){return Ku(e)||Xu(e)})).join(",")}function qu(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}function Gu(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}function Ku(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function Xu(e){return/^.*\.[\w]+$/.test(e)}var Qu=["children"],$u=["open"],Ju=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],es=["refKey","onChange","onClick"];function ts(e){return function(e){if(Array.isArray(e))return os(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||rs(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 ns(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)||rs(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 rs(e,t){if(e){if("string"==typeof e)return os(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)?os(e,t):void 0}}function os(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 as(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function is(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?as(Object(n),!0).forEach((function(t){cs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):as(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function us(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 ss=(0,A.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=is(is({},ls),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,_=(0,A.useMemo)((function(){return Vu(n)}),[n]),j=(0,A.useMemo)((function(){return Yu(n)}),[n]),E=(0,A.useMemo)((function(){return"function"==typeof v?v:hs}),[v]),C=(0,A.useMemo)((function(){return"function"==typeof m?m:hs}),[m]),T=(0,A.useRef)(null),D=(0,A.useRef)(null),M=ns((0,A.useReducer)(ds,ps),2),R=M[0],I=M[1],N=R.isFocused,Z=R.isFileDialogActive,L=(0,A.useRef)("undefined"!=typeof window&&window.isSecureContext&&g&&zu()),F=function(){!L.current&&Z&&setTimeout((function(){D.current&&(D.current.files.length||(I({type:"closeDialog"}),C()))}),300)};(0,A.useEffect)((function(){return window.addEventListener("focus",F,!1),function(){window.removeEventListener("focus",F,!1)}}),[D,Z,C,L]);var H=(0,A.useRef)([]),U=function(e){T.current&&T.current.contains(e.target)||(e.preventDefault(),H.current=[])};(0,A.useEffect)((function(){return b&&(document.addEventListener("dragover",Fu,!1),document.addEventListener("drop",U,!1)),function(){b&&(document.removeEventListener("dragover",Fu),document.removeEventListener("drop",U))}}),[T,b]),(0,A.useEffect)((function(){return!r&&y&&T.current&&T.current.focus(),function(){}}),[T,y,r]);var B=(0,A.useCallback)((function(e){S?S(e):console.error(e)}),[S]),W=(0,A.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),H.current=[].concat(ts(H.current),[e.target]),Lu(e)&&Promise.resolve(o(e)).then((function(t){if(!Zu(e)||k){var n=t.length,r=n>0&&Au({files:t,accept:_,minSize:i,maxSize:a,multiple:c,maxFiles:u,validator:P});I({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),s&&s(e)}})).catch((function(e){return B(e)}))}),[o,s,B,k,_,i,a,c,u,P]),z=(0,A.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=Lu(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1}),[f,k]),Y=(0,A.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||(I({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Lu(e)&&l&&l(e))}),[T,l,k]),V=(0,A.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=ns(Ru(e,_),2),o=t[0],c=t[1],u=ns(Iu(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:[Mu]})})),n.splice(0)),I({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)}),[I,c,_,i,a,u,p,d,h,P]),q=(0,A.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),H.current=[],Lu(e)&&Promise.resolve(o(e)).then((function(t){Zu(e)&&!k||V(t,e)})).catch((function(e){return B(e)})),I({type:"reset"})}),[o,V,B,k]),G=(0,A.useCallback)((function(){if(L.current){I({type:"openDialog"}),E();var e={multiple:c,types:j};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){V(e,null),I({type:"closeDialog"})})).catch((function(e){qu(e)?(C(e),I({type:"closeDialog"})):Gu(e)?(L.current=!1,D.current?(D.current.value=null,D.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 D.current&&(I({type:"openDialog"}),E(),D.current.value=null,D.current.click())}),[I,E,C,g,V,B,j,c]),K=(0,A.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,A.useCallback)((function(){I({type:"focus"})}),[]),Q=(0,A.useCallback)((function(){I({type:"blur"})}),[]),$=(0,A.useCallback)((function(){w||(Bu()?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,A.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=us(e,Ju);return is(is(cs({onKeyDown:ee(Wu(a,K)),onFocus:ee(Wu(i,X)),onBlur:ee(Wu(c,Q)),onClick:J(Wu(u,$)),onDragEnter:te(Wu(s,W)),onDragOver:te(Wu(l,z)),onDragLeave:te(Wu(f,Y)),onDrop:te(Wu(p,q)),role:"string"==typeof o&&""!==o?o:"presentation"},n,T),r||O?{}:{tabIndex:0}),d)}}),[T,K,X,Q,$,W,z,Y,q,O,x,r]),oe=(0,A.useCallback)((function(e){e.stopPropagation()}),[]),ae=(0,A.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=us(e,es);return is(is({},cs({accept:_,multiple:c,type:"file",style:{display:"none"},onChange:J(Wu(r,q)),onClick:J(Wu(o,oe)),tabIndex:-1},n,D)),a)}}),[D,n,c,q,r]);return is(is({},R),{},{isFocused:N&&!r,getRootProps:re,getInputProps:ae,rootRef:T,inputRef:D,open:J(G)})}(us(e,Qu)),o=r.open,a=us(r,$u);return(0,A.useImperativeHandle)(t,(function(){return{open:o}}),[o]),Z().createElement(A.Fragment,null,n(is(is({},a),{},{open:o})))}));ss.displayName="Dropzone";var ls={disabled:!1,getFilesFromEvent:function(e){return $c(this,void 0,void 0,(function(){return Jc(this,(function(t){return au(e)&&au(e.dataTransfer)?[2,uu(e.dataTransfer,e.type)]:function(e){return au(e)&&au(e.target)}(e)?[2,iu(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,cu(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};ss.defaultProps=ls,ss.propTypes={children:p().func,accept:p().objectOf(p().arrayOf(p().string)),multiple:p().bool,preventDropOnDocument:p().bool,noClick:p().bool,noKeyboard:p().bool,noDrag:p().bool,noDragEventsBubbling:p().bool,minSize:p().number,maxSize:p().number,maxFiles:p().number,disabled:p().bool,getFilesFromEvent:p().func,onFileDialogCancel:p().func,onFileDialogOpen:p().func,useFsAccessApi:p().bool,autoFocus:p().bool,onDragEnter:p().func,onDragLeave:p().func,onDragOver:p().func,onDrop:p().func,onDropAccepted:p().func,onDropRejected:p().func,onError:p().func,validator:p().func};const fs=ss;var ps={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function ds(e,t){switch(t.type){case"focus":return is(is({},e),{},{isFocused:!0});case"blur":return is(is({},e),{},{isFocused:!1});case"openDialog":return is(is({},ps),{},{isFileDialogActive:!0});case"closeDialog":return is(is({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return is(is({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return is(is({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return is({},ps);default:return e}}function hs(){}var ms,vs,gs,ys,bs,ws,Os,xs,ks,Ss,Ps,_s=i(69829),js=i(40953),Es=V.ZP.section.withConfig({displayName:"StyledSection"})(ms||(ms=Y()(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),Cs=V.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(vs||(vs=Y()(["\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"])),G.Z,q.Z.space(-2)),Ts=V.ZP.span.withConfig({displayName:"StyledDropzoneBaseline"})(gs||(gs=Y()(["\n opacity: 0;\n"]))),Ds=V.ZP.div.withConfig({displayName:"StyledDropzone"})(ys||(ys=Y()(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),G.Z,X.FS.color("backgroundItemHover")),Ms=V.ZP.div.withConfig({displayName:"StyledUploadInput"})(bs||(bs=Y()(["\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,qr.Z)(),(function(e){return e.immutable?"not-allowed":"pointer"}),X.FS.color("paper"),(function(e){return e.immutable?js.v.shade2(e):js.v.base(e)}),q.Z.space(-2),G.Z,q.Z.space(-3.1),q.Z.space(-1.5)),Rs=V.ZP.div.withConfig({displayName:"StyledUploadProgress"})(ws||(ws=Y()(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),q.Z.space(-2)),Is=(0,V.ZP)(_s.Fe).withConfig({displayName:"StyledUploadProgressText"})(Os||(Os=Y()(["\n && {\n ","\n }\n"])),(0,qr.Z)({fontSize:q.Z.font(-1)})),Ns=V.ZP.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(xs||(xs=Y()(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),q.Z.space(-2)),As=V.ZP.div.withConfig({displayName:"StyledView"})(ks||(ks=Y()(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),q.Z.space(-2));function Zs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ls(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zs(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Fs=function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose;return(0,ee.jsxs)(Ms,{immutable:n,children:[(0,ee.jsx)(fs,{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,ee.jsx)(Es,{children:(0,ee.jsxs)(Ds,Ls(Ls({},t()),{},{children:[(0,ee.jsx)("input",Ls({},n())),Ss||(Ss=(0,ee.jsx)(W.Z,{icon:"arrow-to-top"})),Ps||(Ps=(0,ee.jsx)(Ts,{children:"Dropzone"}))]}))})}}),o&&(0,ee.jsx)(W.Z,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:"browse docs",iconOnly:!0})]})};var Hs=i(73906),Us=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 Bs=function(e){var t=e.file,n=e.text;return(0,ee.jsxs)(Rs,{children:[(0,ee.jsx)(Hs.Z,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,ee.jsxs)(Ns,{children:[(0,ee.jsx)(lr.Z,{position:at.Z.position.PREPEND}),(0,ee.jsxs)(Is,{children:[n||"uploading"," (",Us(t.size),")"]})]})]})};var Ws=i(28247),zs=i(41291);function Ys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ys(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const qs=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,ee.jsxs)(As,{className:"StyledView",children:[(0,ee.jsx)(Hs.Z,Vs(Vs({alt:n.fileName},c&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,ee.jsxs)(Cs,{children:[!o&&(0,ee.jsx)(W.Z,{icon:"trash",onClick:function(){return a(null)},tabIndex:-1,title:i||"delete"}),(0,ee.jsx)(W.Z,{children:(0,ee.jsx)(zs.Z,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:Ws.Z.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function Gs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ks(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gs(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xs=function(e){var t=e.value,n=e.textResources,r=e.onUpload,o=e.onChoose,a=(0,A.useRef)(t),i=(0,A.useState)({isUploading:!1,previewFile:null}),c=We()(i,2),u=c[0],s=c[1];return(0,A.useEffect)((function(){Qc()(a.current,t)||s({isUploading:!1,previewFile:null}),a.current=t}),[t]),null!=t&&t.binaryLink?(0,ee.jsx)(qs,Ks(Ks({},e),{},{deleteTitle:n.delete,downloadTitle:n.download})):u.isUploading?(0,ee.jsx)(Bs,Ks({file:u.previewFile,text:n.uploading},e)):(0,ee.jsx)(Fs,Ks(Ks({},e),{},{onDrop:function(e){!function(e){s({isUploading:!0,previewFile:e})}(e),r(e)},onChoose:o}))};Xs.defaultProps={textResources:{}};const Qs=Xs;var $s=function(e){return(0,ee.jsx)(Qs,{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})};$s.defaultProps={options:{}};const Js=$s;var el,tl,nl=function(e){return-1*Math.abs(e)},rl=V.ZP.input.withConfig({displayName:"StyledDurationEdit"})(el||(el=Y()(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),ia,(function(e){return e.width})),ol=V.ZP.label.withConfig({displayName:"StyledDurationEditFocusable"})(tl||(tl=Y()(["\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"])),q.Z.space(1),(function(e){return e.immutable?X.FS.color("textDisabled"):X.FS.color("text")}),(function(e){return e.immutable?"not-allowed":"default"})),al=function(e){var t=e.value,n=e.immutable,r=e.onChange,o=e.options,a=po.Z.millisecondsToDuration(t),i=(0,A.useState)(!1),c=We()(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=nl(n),o=nl(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,ee.jsxs)(aa,{onBlur:function(){s(!1)},immutable:n,children:[(0,ee.jsxs)(ol,{immutable:n,children:[(0,ee.jsx)(rl,{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,ee.jsx)(B.ZP.Span,{children:o.hoursLabel})]}),(0,ee.jsxs)(ol,{immutable:n,children:[(0,ee.jsx)(rl,{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,ee.jsx)(B.ZP.Span,{children:o.minutesLabel})]}),v&&(0,ee.jsxs)(ol,{immutable:n,children:[(0,ee.jsx)(rl,{disabled:n,immutable:n,onChange:function(){},width:m(a.seconds),type:"number",value:a.seconds+""}),h()&&(0,ee.jsx)(B.ZP.Span,{children:o.secondsLabel})]})]})};al.defaultProps={options:{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}};const il=al;var cl;const ul=V.ZP.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(cl||(cl=Y()(["\n &&&& {\n ","\n }\n"])),ia);const sl=Rc.Z.Debouncer((function(e){return(0,ee.jsxs)(aa,{immutable:e.immutable,children:[(0,ee.jsx)(ul,{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,ee.jsx)(ua,{children:(0,ee.jsx)(zs.Z,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));var ll=i(50008),fl=i.n(ll),pl=i(2205),dl=i.n(pl),hl=i(99489),ml=i.n(hl),vl=i(78718),gl=i.n(vl);function yl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yl(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wl(){wl=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)),ml()(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 dl()(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"!=fl()(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,i)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},wl.apply(this,arguments)}var Ol,xl=["key","display","postcode","city","country","latitude","longitude"],kl=function(e){return e*Math.PI/180},Sl=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:kl(a),longitude:kl(i)}};function Pl(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 _l(){}function jl(e){return!!(e||"").match(/\d/)}function El(e){return null==e}function Cl(e){return"number"==typeof e&&isNaN(e)}function Tl(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Dl(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 Ml(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function Rl(e,t){return Array(t+1).join(e)}function Il(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."+Rl("0",Math.abs(i))+o:i>=c?o+=Rl("0",i-c):o=(o.substring(0,i)||"0")+"."+o.substring(i),n+o}function Nl(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=Dl(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?".":"")+Ml(s[1]||"",t,n)}function Al(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 Zl(e){return Math.max(e.selectionStart,e.selectionEnd)}function Ll(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Fl(e,t,n,r){var o,a,i,c=e.length;if(o=t,a=0,i=c,t=Math.min(Math.max(o,a),i),"left"===r){for(;t>=0&&!n[t];)t--;-1===t&&(t=n.indexOf(!0))}else{for(;t<=c&&!n[t];)t++;t>c&&(t=n.lastIndexOf(!0))}return-1===t&&(t=c),t}function Hl(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(jl(e[n])||jl(e[n-1]));return t}function Ul(e,t,n,r,o,a){void 0===a&&(a=_l);var i,c,u=(0,A.useRef)(),s=(i=function(e){var t,a;return El(e)||Cl(e)?(a="",t=""):"number"==typeof e||n?(a="number"==typeof e?Il(e):e,t=r(a)):(a=o(e,void 0),t=e),{formattedValue:t,numAsString:a}},(c=(0,A.useRef)(i)).current=i,(0,A.useRef)((function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return c.current.apply(c,e)})).current),l=(0,A.useState)((function(){return s(t)})),f=l[0],p=l[1];return(0,A.useMemo)((function(){El(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 Bl(e){return e.replace(/[^0-9]/g,"")}function Wl(e){return e}function zl(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=Wl);var c=e.removeFormatting;void 0===c&&(c=Bl);var u=e.defaultValue,s=e.valueIsNumericString,l=e.onValueChange,f=e.isAllowed,p=e.onChange;void 0===p&&(p=_l);var d=e.onKeyDown;void 0===d&&(d=_l);var h=e.onMouseUp;void 0===h&&(h=_l);var m=e.onFocus;void 0===m&&(m=_l);var v=e.onBlur;void 0===v&&(v=_l);var g=e.value,y=e.getCaretBoundary;void 0===y&&(y=Hl);var b=e.isValidInputCharacter;void 0===b&&(b=jl);var w=Pl(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter"]),O=Ul(g,u,Boolean(s),i,c,l),x=O[0],k=x.formattedValue,S=x.numAsString,P=O[1],_=(0,A.useRef)();(0,A.useEffect)((function(){var e=i(S);if(void 0===_.current||e!==_.current){var t=T.current,n=c(e,void 0);F({formattedValue:e,numAsString:n,input:t,setCaretPosition:!0,source:Ol.props,event:void 0})}}));var j=(0,A.useState)(!1),E=j[0],C=j[1],T=(0,A.useRef)(null),D=(0,A.useRef)({setCaretTimeout:null,focusTimeout:null});(0,A.useEffect)((function(){return C(!0),function(){clearTimeout(D.current.setCaretTimeout),clearTimeout(D.current.focusTimeout)}}),[]);var M=i,R=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},I=function(e,t,n){Al(e,t),D.current.setCaretTimeout=setTimeout((function(){e.value===n&&Al(e,t)}),0)},N=function(e,t,n){return Fl(e,t,y(e),n)},L=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=Fl(t,o,r)},F=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=Zl(n);n.value=t,c=L(u,t,s)}n.value=t,r&&void 0!==c&&I(n,c,t)}t!==k&&function(e,t){_.current=e.formattedValue,P(e,t)}(R(t,i),{event:a,source:o})},H=!E||"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=M(a);if(a=c(i,void 0),f&&!f(R(i,a))){var u=t.target,s=Zl(u),l=L(e,k,s);return I(u,l,k),!1}return F({formattedValue:i,numAsString:a,inputValue:e,event:t,source:n,setCaretPosition:!0,input:t.target}),!0})(e.target.value,e,Ol.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=N(i,t,"ArrowLeft"===r?"left":"right");else"Delete"!==r||b(i[t])?"Backspace"!==r||b(i[t])||(c=N(i,t,"left")):c=N(i,t,"right");c!==t&&I(n,c,i),e.isUnitTestRun&&I(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=N(o,n);a!==n&&I(t,a,o)}h(e)},onFocus:function(e){e.persist&&e.persist();var t=e.target;T.current=t,D.current.focusTimeout=setTimeout((function(){var n=t.selectionStart,r=t.selectionEnd,o=t.value;void 0===o&&(o="");var a=N(o,n);a===n||0===n&&r===o.length||I(t,a,o),m(e)}),0)},onBlur:function(e){T.current=null,clearTimeout(D.current.focusTimeout),clearTimeout(D.current.setCaretTimeout),v(e)}});if("text"===n)return o?Z().createElement(Z().Fragment,null,o(k,w)||null):Z().createElement("span",Object.assign({},w,{ref:a}),k);if(r){var B=r;return Z().createElement(B,Object.assign({},U,{ref:a}))}return Z().createElement("input",Object.assign({},U,{ref:a}))}function Yl(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=Vl(t),s=u.thousandSeparator,l=u.decimalSeparator,f=0!==n&&-1!==e.indexOf(".")||n&&r,p=Dl(e,i),d=p.beforeDecimal,h=p.afterDecimal,m=p.addNegation;return void 0!==n&&(h=Ml(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 Vl(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 ql(e,t,n){var r;void 0===t&&(t=Ll(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=Vl(n),d=p.allowedDecimalSeparators,h=p.decimalSeparator,m=e[f]===h;if(jl(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]|"+Tl(e),t?"g":void 0)}(h,!0))||[]).join("")).indexOf(h),C=Dl(e=e.replace(new RegExp(Tl(h),"g"),(function(e,t){return t===E?".":""})),o),T=C.beforeDecimal,D=C.afterDecimal,M=C.addNegation;return s.end-s.start<u.end-u.start&&""===T&&m&&!parseFloat(D)&&(e=M?"-":""),e}function Gl(e){var t=(e=function(e){var t=Vl(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=_l);var a=e.onBlur;void 0===a&&(a=_l);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=Pl(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=function(t){return Yl(t,e)},v=function(t,n){return ql(t,n,e)},g=p;El(f)?El(l)||(g=null!=p?p:"number"==typeof l):g=null!=p?p:"number"==typeof f;var y=function(e){return El(e)||Cl(e)?e:("number"==typeof e&&(e=Il(e)),g&&"number"==typeof c?Nl(e,c,Boolean(u)):e)},b=Ul(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||jl(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&&Al(r,1);var d=Vl(e),h=d.decimalSeparator,m=d.allowedDecimalSeparators;"Backspace"===a&&p[l-1]===h&&c&&u&&(Al(r,l-1),t.preventDefault()),(null==m?void 0:m.includes(a))&&p[l]===h&&Al(r,l+1);var v=!0===i?",":i;"Backspace"===a&&p[l-1]===v&&Al(r,l-1),"Delete"===a&&p[l]===v&&Al(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=Nl(n,c,u)),n!==O){var o=Yl(n,e);k({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:Ol.event})}a(t)}})}function Kl(e){var t=Gl(e);return Z().createElement(zl,Object.assign({},t))}!function(e){e.event="event",e.props="prop"}(Ol||(Ol={}));var Xl,Ql=["immutable"];function $l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Jl=(0,V.ZP)((function(e){e.immutable;var t=mo()(e,Ql);return(0,ee.jsx)(Kl,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$l(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(Xl||(Xl=Y()(["\n &&&& {\n ","\n }\n"])),ia);function ef(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ef(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ef(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nf=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},rf=function(e){return null!=e&&!isNaN(parseFloat(e))},of=function(e,t,n){return!rf(n)||!(rf(t)&&n>t)&&!(rf(e)&&n<e)},af=function(e,t){return function(n){var r=n.floatValue;return nf(r)<nf(e)||of(e,t,r)}};const cf=(0,v.ZP)(Rc.Z.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=tf(tf({isAllowed:af(u,m),allowNegative:!!l},isNaN(c)?{}:{decimalScale:c}),{},{fixedDecimalScale:!!f});return(0,ee.jsx)(aa,{immutable:e.immutable,children:(0,ee.jsx)(Jl,tf(tf({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&of(u,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:e.value,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&&!of(u,m,r)&&(t.target.value=null)}}))})}),800));const uf=Rc.Z.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;return(0,ee.jsx)(aa,{immutable:o,children:(0,ee.jsx)(Jl,{isAllowed:af(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),of(s,l,r)&&n(o)},value:t,allowLeadingZeros:p,suffix:d,format:f,placeholder:c})})}),800);var sf,lf,ff,pf=V.ZP.div.withConfig({displayName:"StyledWrapper"})(sf||(sf=Y()(["\n display: flex;\n justify-content: stretch;\n"]))),df=V.ZP.div.withConfig({displayName:"StyledLocationWrapper"})(lf||(lf=Y()(["\n flex-grow: 1;\n"]))),hf=V.ZP.div.withConfig({displayName:"StyledDistanceWrapper"})(ff||(ff=Y()(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),X.FS.color("border"),q.Z.space(-.8),q.Z.space(.5));function mf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mf(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const gf=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?gl()(e,xl):void 0}(r),g=function(e){return e?e.map(Sl):[]}(c);return(0,ee.jsxs)(pf,{children:[(0,ee.jsx)(df,{children:(0,ee.jsx)(Hr,{id:t,immutable:n,onChange:function(e){o(vf(vf({},function(e,t){return t?bl(bl({},e),gl()(t,xl)):_t()(e,xl)}(r,e)),{},{latitudeField:l,longitudeField:f}))},isLoading:u,options:g,searchOptions:function(e){var t=function(e){if(!e)return null;var t=ct()(e.matchAll(wl(/([\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 bl(bl({},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,ee.jsx)(hf,{children:(0,ee.jsx)(uf,{value:m,onChange:function(e){o(vf(vf({},r),{},{distance:e}))},immutable:n,options:{minValue:0,maxValue:100,suffix:" ".concat(h)}})})]})};var yf,bf=(0,A.lazy)((function(){return i.e(85).then(i.bind(i,17676))})),wf=function(e){var t=e.onChange,n=e.immutable,r=e.value,o=e.options;if(n)return(0,ee.jsx)(B.ZP.Span,{children:(0,ee.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})});var a=o||{},i=a.contentLang,c=a.ckEditorConfig;return(0,ee.jsx)(A.Suspense,{fallback:yf||(yf=(0,ee.jsx)("i",{})),children:(0,ee.jsx)(bf,{onChange:function(e){t&&t(e)},value:r,contentLang:i,ckEditorConfig:c})})};wf.defaultProps={value:""};const Of=wf;var xf,kf,Sf,Pf=i(58808),_f=i.n(Pf),jf=V.ZP.div.withConfig({displayName:"StyledLocationEdit"})(xf||(xf=Y()(["\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"])),oa,q.Z.space(-2),q.Z.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?wr()(n,"colors.textDisabled"):wr()(n,"colors.text")}),ia,X.FS.color("paper"),X.FS.color("signal.info"),X.FS.color("secondaryLight"),X.FS.color("backgroundItemHover"));function Ef(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ef(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ef(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Tf=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,ee.jsxs)(B.ZP.Span,{children:[r," ",o," ",a," ",i]})},s=function(e){return function(n,o){var a=o.newValue;t(Cf(Cf({},r),{},l()({},e,a)))}},f=function(e,n){var r=n.suggestion;t(r)},p=function(e){return function(t){var r=t.value;n.fetchSuggestions(l()({},e,r),n.locationValues.country)}},d={id:o,value:r.postcode||"",onChange:s("postcode"),disabled:a},h={value:r.city||"",onChange:s("city"),disabled:a};return(0,ee.jsx)(Qe,{children:function(e){var t,o,s,l=e.focused,m=e.getRef;return(0,ee.jsxs)(jf,{immutable:a,name:i,ref:m,children:[(0,ee.jsx)(_f(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:p("postcode"),getSuggestionValue:c("postcode"),renderSuggestion:u,onSuggestionsClearRequested:function(){},inputProps:d,onSuggestionSelected:f,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(l||r.city||r.postcode)&&(kf||(kf=(0,ee.jsx)(B.ZP.Span,{children:"/"}))),(0,ee.jsx)(_f(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:p("city"),getSuggestionValue:c("city"),renderSuggestion:u,onSuggestionsClearRequested:function(){},inputProps:h,onSuggestionSelected:f,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(0,ee.jsxs)(ua,{children:[n.isLoading&&(Sf||(Sf=(0,ee.jsx)(lr.Z,{size:"1.8rem"}))),(s=n.locationValues,Boolean(s.city||s.postcode)&&(0,ee.jsx)(zs.Z,{href:(t=n.locationValues,o=t?Object.values(t).filter(Boolean).map((function(e){return"object"===fl()(e)&&e.display?e.display:e})).join("+"):"","".concat("https://www.google.com/maps/search/?api=1&query=").concat(o)),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:n.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};function Df(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Mf=function(e){return(0,ee.jsx)(Hr,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Df(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Df(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 Rf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 If=function(e){return(0,ee.jsx)(Hr,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rf(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rf(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 Nf,Af=i(48926),Zf=i.n(Af),Lf=i(87757),Ff=i.n(Lf);const Hf=V.ZP.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(Nf||(Nf=Y()(["\n &&&& {\n ","\n }\n"])),ia);const Uf=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.onLibLoaded,c=wr()(e,"options.defaultCountry")||"CH",u=(0,A.useState)(null),s=We()(u,2),l=s[0],f=s[1],p=Z().createRef();(0,A.useEffect)((function(){(function(){var e=Zf()(Ff().mark((function e(){var t;return Ff().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,f(t),a&&a();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[a]);var d=function(e,t){var n=e.substring(0,t-1).match(/\s/g);return(null==n?void 0:n.length)||0},h=n&&null!=l&&l.AsYouType?new l.AsYouType(c).input(n):n||"";return(0,ee.jsxs)(aa,{immutable:r,children:[(0,ee.jsx)(Hf,{disabled:r||!l,id:o,name,onChange:function(e){var r=e.target.value,o=l?l.parseNumber(r,c):r,a=Et()(o)?new l.AsYouType(c).input(r).replace(/\s/g,""):l.formatNumber(o,"E.164");t(a);var i=e.target.selectionStart;!function(e,t,n){if(n&&e.length!==n){var r=new l.AsYouType(c).input(t),o=new l.AsYouType(c).input(e),a=d(r,n),i=d(o,n)-a;window.requestAnimationFrame(function(){var e=n+i;this.setSelectionRange(e,e)}.bind(p.current))}}(r,n,i)},immutable:r||!l,ref:p,value:h}),h&&(0,ee.jsx)(ua,{children:(0,ee.jsx)(zs.Z,{href:"tel:".concat(n),icon:"phone",tabIndex:-1,target:"_blank",neutral:!0})})]})};function Bf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bf(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zf=function(e){return e.map((function(e){return gl()(e,["key","display"])}))};const Yf=function(e){var t=e.id,n=e.immutable,r=e.onChange,o=e.options.isMulti,a=e.value;return(0,ee.jsx)(Hr,{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 Wf(Wf({},e),t.includes(e.key)?{selected:!0}:{selected:!1})}));r({options:n})},value:zf(a.options.filter((function(e){return e.selected}))),openMenuOnClick:!0,options:zf(a.options)})};function Vf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 qf=function(e){return(0,ee.jsx)(Hr,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vf(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vf(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 Gf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Kf=function(e){return(0,ee.jsx)(Hr,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gf(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Xf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Qf=function(e){return(0,ee.jsx)(Hr,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xf(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xf(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 $f=Rc.Z.Debouncer((function(e){return(0,ee.jsx)(aa,{immutable:e.immutable,children:(0,ee.jsx)(ul,{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 Jf=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)};var ep,tp,np,rp=(0,V.iv)(ep||(ep=Y()(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),ia),op=V.ZP.div.withConfig({displayName:"StyledSizeWrapper"})(tp||(tp=Y()(["\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"])),rp),ap=V.ZP.textarea.withConfig({displayName:"StyledTextarea"})(np||(np=Y()(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: 4em;\n }\n"])),rp);function ip(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ip(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ip(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const up=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,a=e.disabled,i=e.immutable,c=(0,A.useState)(t),u=We()(c,2),s=u[0],l=u[1],f=!Jf(),p=(0,A.useCallback)(Mt()(l,500,{trailing:!0}),[]);return(0,A.useEffect)((function(){f&&p(t)}),[t,f,p]),(0,ee.jsx)(op,cp(cp({"data-testid":"replicated-test"},f?{"data-replicated-value":s}:{}),{},{children:(0,ee.jsx)(ap,{value:t,name:r,id:o,onChange:n,disabled:a,immutable:i,rows:"1"})}))};const sp=Rc.Z.Debouncer((function(e){return(0,ee.jsx)(aa,{immutable:e.immutable,children:(0,ee.jsx)(up,{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 lp;const fp=V.ZP.input.withConfig({displayName:"StyledTimeEdit"})(lp||(lp=Y()(["\n &&&& {\n ","\n }\n"])),ia);function pp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pp(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const hp=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.name,i=Lc(n,t),c=i.inputProps,u=i.clearButtonProps,s=n&&!r;return(0,ee.jsxs)(aa,{immutable:r,children:[(0,ee.jsx)(fp,dp({type:"text",disabled:r,id:o,immutable:r,name:a},c)),s&&(0,ee.jsx)(ua,{children:(0,ee.jsx)(Yn.Z,dp(dp({icon:"times"},u),{},{tabIndex:-1}))})]})};var mp;const vp=V.ZP.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(mp||(mp=Y()(["\n &&&& {\n ","\n }\n"])),ia);const gp=Rc.Z.Debouncer((function(e){return(0,ee.jsxs)(aa,{immutable:e.immutable,children:[(0,ee.jsx)(vp,{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,ee.jsx)(ua,{children:(0,ee.jsx)(zs.Z,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));function yp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yp(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wp={boolean:zr,"boolean-select":Ur,choice:to,code:lo,date:qc,datetime:Kc,document:Js,duration:il,email:sl,geosearch:gf,html:Of,integer:uf,location:Tf,"multi-remote":Mf,"multi-select":If,number:cf,phone:Uf,"pseudo-select":Yf,remote:qf,"search-filter":Kf,"single-select":Qf,string:$f,text:sp,url:gp,time:hp};const Op=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(wp[t]){var s=wp[t],l=bp(bp({},_t()(a,"onChange")),{},{onBlur:function(){"function"==typeof(null==a?void 0:a.onBlur)&&a.onBlur(n)}});return(0,ee.jsx)("div",bp(bp({},l),{},{"data-cy":"form-field",children:(0,ee.jsx)(s,bp(bp({value:n,onChange:null==a?void 0:a.onChange},Et()(r)?{}:{options:r}),{},{id:o,immutable:u,placeholder:i,events:a}))}))}return console.log("No type-editor defined for component type",t),null};function xp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xp(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Sp=function(e){return(0,ee.jsx)(sa,{children:(0,ee.jsx)(Op,kp({componentType:e.type},_t()(e,"type")))})};var Pp,_p,jp=V.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(Pp||(Pp=Y()(["\n && {\n ","\n }\n"])),oa);const Ep=function(e){var t=e.verifyCode,n=e.intl,r=(0,A.useState)(null),o=We()(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)};return(0,H.z)(s),(0,ee.jsxs)(ee.Fragment,{children:[_p||(_p=(0,ee.jsx)(B.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.verificationText"})})),(0,ee.jsxs)("form",{onSubmit:s,children:[(0,ee.jsx)(St,{hasValue:Boolean(a),id:"verification-input",label:c("client.two-factor-connector.verificationInputLabel"),children:(0,ee.jsx)(jp,{children:(0,ee.jsx)(Sp,{type:"integer",value:a,events:{onChange:i},options:{format:"### ###",allowLeadingZeros:!0}})})}),(0,ee.jsx)(K,{children:(0,ee.jsx)(W.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",type:"submit",disabled:!u})})]})]})};var Cp={verifyCode:function(e){return{type:_,payload:{userCode:e}}}};const Tp=(0,g.connect)((function(e,t){return{}}),Cp)((0,v.ZP)(Ep));var Dp,Mp,Rp,Ip,Np,Ap,Zp=0,Lp=1,Fp=2,Hp=3;const Up=function(e){var t=e.initialize,n=e.stage;(0,A.useEffect)((function(){t()}),[t]);return(0,ee.jsxs)(ee.Fragment,{children:[Ap||(Ap=(0,ee.jsx)(m.Z.Notifications,{})),function(){switch(n){case Zp:return Dp||(Dp=(0,ee.jsx)(Ue,{}));case Lp:return Mp||(Mp=(0,ee.jsx)(Ze,{}));case Fp:return Rp||(Rp=(0,ee.jsx)(Tp,{}));case Hp:return Ip||(Ip=(0,ee.jsx)(re,{}));default:return Np||(Np=(0,ee.jsx)(L.Z,{}))}}()]})};var Bp={initialize:T};const Wp=(0,g.connect)((function(e){return{stage:e.twoFactorConnector.stage}}),Bp)((0,v.ZP)(Up));var zp,Yp=i(81770);function Vp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vp(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gp=function(e){return function(t){return qp(qp({},t),{},{stage:e})}},Kp=(zp={},l()(zp,b,Yp.Z.singleTransferReducer("twoFactorActive")),l()(zp,w,Yp.Z.singleTransferReducer("secret")),l()(zp,O,Yp.Z.singleTransferReducer("username")),l()(zp,E,Yp.Z.singleTransferReducer("setupSuccessful")),l()(zp,S,Gp(0)),l()(zp,P,Gp(1)),l()(zp,k,Gp(2)),l()(zp,C,Gp(3)),zp),Xp={stage:null,twoFactorActive:null,secret:null,username:null,setupSuccessful:null};var Qp=i(34857),$p=i(81719),Jp=i(54159),ed=Ff().mark(dd),td=Ff().mark(md),nd=Ff().mark(vd),rd=Ff().mark(yd),od=Ff().mark(bd),ad=Ff().mark(wd),id=Ff().mark(Od),cd=Ff().mark(xd),ud=Ff().mark(kd),sd="relTwo_step_login_status",ld=function(e){return e.twoFactorConnector.username},fd=function(e){return e.twoFactorConnector.secret},pd=function(e){return e.input};function dd(){var e,t,n,r,o,a;return Ff().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,Qp.Ys)(pd);case 2:if(e=i.sent,e.secret){i.next=14;break}return i.next=7,(0,Qp.Ys)(ld);case 7:return t=i.sent,i.next=10,(0,Qp.RE)($p.Z.requestSaga,"principals/".concat(t,"/two-factor"),{method:"GET"});case 10:return n=i.sent,r=n.body,o=r.secret,a=r.totpUri,i.next=14,(0,Qp.gz)(M({secret:o,uri:a}));case 14:return i.next=16,(0,Qp.gz)({type:P});case 16:case"end":return i.stop()}}),ed)}function hd(e,t){return Jp.Z.executeRequest(e,t).then(Jp.Z.extractBody)}function md(e,t,n,r){var o,a;return Ff().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o={secret:e,userCode:t,username:n,password:r},i.next=3,(0,Qp.RE)(hd,"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 a=i.sent,i.next=6,(0,Qp.gz)(N(wr()(a,"TWOSTEPLOGIN_ACTIVATION.success",!1)));case 6:case"end":return i.stop()}}),td)}function vd(e,t,n){var r;return Ff().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,Qp.RE)($p.Z.requestSaga,"principals/".concat(e,"/two-factor"),{method:"POST",body:{secret:t,code:n},acceptedStatusCodes:[400]});case 2:return r=o.sent,o.next=5,(0,Qp.gz)(N(204===r.status));case 5:case"end":return o.stop()}}),nd)}function gd(e){var t=e.payload.userCode;return Ff().mark((function e(){var n,r,o,a,i;return Ff().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Qp.Ys)(ld);case 2:return n=e.sent,e.next=5,(0,Qp.Ys)(fd);case 5:return r=e.sent,o=r.secret,e.next=9,(0,Qp.Ys)(pd);case 9:if(a=e.sent,i=a.password,!a.forced){e.next=17;break}return e.next=15,(0,Qp.RE)(md,o,t,n,i);case 15:e.next=19;break;case 17:return e.next=19,(0,Qp.RE)(vd,n,o,t);case 19:return e.next=21,(0,Qp.gz)({type:C});case 21:case"end":return e.stop()}}),e)}))()}function yd(){var e,t;return Ff().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Qp.RE)(wd);case 2:return n.next=4,(0,Qp.Ys)(pd);case 4:if(e=n.sent,!(t=e.secret)){n.next=9;break}return n.next=9,(0,Qp.gz)(M(t));case 9:return n.next=11,(0,Qp.gz)(I());case 11:case"end":return n.stop()}}),rd)}function bd(){return Ff().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Qp.gz)(h.Z.fireExternalEvent("onSuccess"));case 2:case"end":return e.stop()}}),od)}function wd(){var e,t,n,r,o;return Ff().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,Qp.RE)(Od);case 2:return e=a.sent,a.next=5,(0,Qp.gz)(R(e));case 5:return t='username === "'.concat(e,'"'),a.next=8,(0,Qp.RE)($p.Z.fetchEntitiesPage,"Principal",{where:t,paths:[sd]});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=wr()(n,"[0].paths.".concat(sd,".value.key")),o="1"===r,a.next=15,(0,Qp.gz)(D(o));case 15:case"end":return a.stop()}}),ad)}function Od(){var e,t,n;return Ff().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Qp.Ys)(pd);case 2:if(e=r.sent,!(t=e.username)){r.next=8;break}return r.abrupt("return",t);case 8:return r.next=10,(0,Qp.RE)($p.Z.requestSaga,"principals");case 10:return n=r.sent,r.abrupt("return",n.body.username);case 12:case"end":return r.stop()}}),id)}function xd(){return Ff().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Qp.gz)(h.Z.fireExternalEvent("onResize"));case 2:case"end":return e.stop()}}),cd)}function kd(){return Ff().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Qp.$6)([(0,Qp.Fm)(x,dd),(0,Qp.Fm)(_,gd),(0,Qp.Fm)(y,yd),(0,Qp.Fm)(j,bd),(0,Qp.Fm)(S,xd),(0,Qp.Fm)(P,xd),(0,Qp.Fm)(k,xd),(0,Qp.Fm)(C,xd)]);case 2:case"end":return e.stop()}}),ud)}const Sd={twoFactorConnector:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xp,t=arguments.length>1?arguments[1]:void 0,n=Kp[t.type];return n?n(e,t):e}};var Pd,_d=[kd];function jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ed(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jd(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cd="two-factor-connector",Td=function(e,t,n,r){var o=Pd||(Pd=(0,ee.jsx)(Wp,{})),a=u.Z.createStore(Sd,_d,t,Cd);return m.Z.addToStore(a,!0),d.Z.addToStore(a,!0,["console","remote","notification"]),h.Z.addToStore(a,(function(e){return u.Z.getEvents(Dd,e.input)})),u.Z.createApp(Cd,o,a,{input:t,events:n,actions:[],publicPath:r,textResourceModules:["component","common",Cd]})},Dd=["onSuccess","onCancel","onResize"],Md=function(e){return u.Z.useApp({initApp:Td,props:e,packageName:Cd,externalEvents:Dd}).component};Md.propTypes=Ed(Ed({},Dd.reduce((function(e,t){return Ed(Ed({},e),{},l()({},t,p().func))}),{})),{},{username:p().string,password:p().string,secret:p().shape({secret:p().string.isRequired,uri:p().string.isRequired}),forced:p().bool});var Rd=u.Z.createBundleableApp(Cd,Td,Md);u.Z.registerAppInRegistry(Rd.name,Rd.init)})(),c})()));
57
+ */function be(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 we(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 Oe(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 xe=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function ke(e){const t=e,{value:n,size:r=he,level:o=me,bgColor:a=ve,fgColor:i=ge,includeMargin:c=ye,style:u,imageSettings:s}=t,l=fe(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),f=null==s?void 0:s.src,p=(0,A.useRef)(null),d=(0,A.useRef)(null),[h,m]=(0,A.useState)(!1);(0,A.useEffect)((()=>{if(null!=p.current){const e=p.current,t=e.getContext("2d");if(!t)return;let u=pe.QrCode.encodeText(n,de[o]).getModules();const l=c?4:0,f=u.length+2*l,h=Oe(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=we(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,xe?t.fill(new Path2D(be(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,A.useEffect)((()=>{m(!1)}),[f]);const v=le({height:r,width:r},u);let g=null;return null!=f&&(g=Z().createElement("img",{src:f,key:f,style:{display:"none"},onLoad:()=>{m(!0)},ref:d})),Z().createElement(Z().Fragment,null,Z().createElement("canvas",le({style:v,height:r,width:r,ref:p},l)),g)}function Se(e){const t=e,{value:n,size:r=he,level:o=me,bgColor:a=ve,fgColor:i=ge,includeMargin:c=ye,imageSettings:u}=t,s=fe(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let l=pe.QrCode.encodeText(n,de[o]).getModules();const f=c?4:0,p=l.length+2*f,d=Oe(l,r,c,u);let h=null;null!=u&&null!=d&&(null!=d.excavation&&(l=we(l,d.excavation)),h=Z().createElement("image",{xlinkHref:u.src,height:d.h,width:d.w,x:d.x+f,y:d.y+f,preserveAspectRatio:"none"}));const m=be(l,f);return Z().createElement("svg",le({height:r,width:r,viewBox:`0 0 ${p} ${p}`},s),Z().createElement("path",{fill:a,d:`M0,0 h${p}v${p}H0z`,shapeRendering:"crispEdges"}),Z().createElement("path",{fill:i,d:m,shapeRendering:"crispEdges"}),h)}var Pe=e=>{const t=e,{renderAs:n}=t,r=fe(t,["renderAs"]);return"svg"===n?Z().createElement(Se,le({},r)):Z().createElement(ke,le({},r))};const _e=function(e){var t=e.value;return(0,ee.jsx)(Pe,{value:t,renderAs:"svg"})};var je,Ee,Ce,Te,De,Me,Re=V.ZP.div.withConfig({displayName:"StyledQRCodeWrapper"})(je||(je=Y()(["\n display: flex;\n justify-content: center;\n margin: "," "," "," ",";\n"])),q.Z.space(1.2),q.Z.space(1),q.Z.space(1.5),q.Z.space(1)),Ie=V.ZP.div.withConfig({displayName:"StyledParagraph"})(Ee||(Ee=Y()(["\n display: flex;\n justify-content: center;\n margin-top: ",";\n margin-bottom: ",";\n"])),q.Z.space(-1),q.Z.space(-.9));const Ne=function(e){var t=e.secret,n=e.goToSecretVerification;return(0,H.z)(n),(0,ee.jsxs)(ee.Fragment,{children:[Ce||(Ce=(0,ee.jsx)(B.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.qrCodeInfo"})})),(0,ee.jsx)(Re,{children:(0,ee.jsx)(_e,{value:t.uri})}),Te||(Te=(0,ee.jsx)(B.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.secretInfo"})})),(0,ee.jsx)(Ie,{children:(0,ee.jsx)(B.ZP.B,{children:t.secret})}),De||(De=(0,ee.jsx)(B.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.backupInfo"})})),(0,ee.jsx)(K,{children:(0,ee.jsx)(W.Z,{ink:"primary",look:"raised",onClick:n,children:Me||(Me=(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.nextButton"}))})})]})};var Ae={goToSecretVerification:function(){return{type:k}}};const Ze=(0,g.connect)((function(e){return{secret:e.twoFactorConnector.secret}}),Ae)((0,v.ZP)(Ne));var Le;const Fe=function(e){var t=e.twoFactorActive,n=e.forced,r=e.requestSecret,o=e.intl;(0,H.z)(r);var a=function(e){return o.formatMessage({id:e})};return(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)(B.ZP.P,{children:function(){if(t)return Le||(Le=(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.overwriteInfo"}));var e=a(n?"client.two-factor-connector.forcedInfo":"client.two-factor-connector.info");return(0,ee.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})}()}),(0,ee.jsx)(K,{children:(0,ee.jsx)(W.Z,{label:a("client.two-factor-connector.nextButton"),ink:"primary",look:"raised",onClick:r})})]})};var He={initialize:T,requestSecret:function(){return{type:x}}};const Ue=(0,g.connect)((function(e){return{twoFactorActive:e.twoFactorConnector.twoFactorActive,secret:e.twoFactorConnector.secret,forced:e.input.forced}}),He)((0,v.ZP)(Fe));var Be=i(63038),We=i.n(Be),ze=i(41505),Ye=i.n(ze),Ve=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},qe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ge=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},Ke={outline:"none"},Xe=function(e){function t(){var n,r;Ve(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=Ge(this,e.call.apply(e,[this].concat(a))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=Z().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)},Ge(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?Z().cloneElement(e({focused:t,getRef:this.ref}),n):Z().createElement("div",qe({ref:this.ref,style:Ke},n),e)},t}(Z().Component);Xe.propTypes={children:Ye().oneOfType([Ye().node,Ye().func]).isRequired,onBlur:Ye().func,onFocus:Ye().func},Xe.defaultProps={onBlur:function(){},onFocus:function(){}};const Qe=Xe;var $e,Je,et,tt,nt=i(70696),rt=i(10535),ot=i(23369),at=i(23427),it=i(319),ct=i.n(it),ut=i(37188),st=($e={},l()($e,at.Z.condition.BASE,"inherit"),l()($e,at.Z.condition.DANGER,X.FS.color("signal.danger")),l()($e,at.Z.condition.SUCCESS,X.FS.color("signal.success")),l()($e,at.Z.condition.WARNING,X.FS.color("signal.warning")),l()($e,at.Z.condition.INFO,X.FS.color("signal.info")),$e),lt=(0,V.ZP)(ut.hc).withConfig({displayName:"StyledSignalList"})(Je||(Je=Y()(["\n && {\n list-style-type: none;\n }\n"]))),ft=V.ZP.span.withConfig({displayName:"StyledSignalListIcon"})(et||(et=Y()(["\n position: absolute;\n left: -1.6rem;\n text-align: left;\n"]))),pt=(0,V.ZP)(ut.EF).withConfig({displayName:"StyledSignalListItem"})(tt||(tt=Y()(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){return st[e.condition]||"inherit"}(e)}));const dt=function(e){return(0,ee.jsx)(lt,{as:"ul",children:Z().Children.map(e.children,(function(e){return Z().cloneElement(e)}))})};var ht,mt,vt=(ht={},l()(ht,at.Z.condition.BASE,!1),l()(ht,at.Z.condition.DANGER,"times"),l()(ht,at.Z.condition.SUCCESS,"check"),l()(ht,at.Z.condition.WARNING,"exclamation-triangle"),l()(ht,at.Z.condition.INFO,"info"),ht),gt=function(e){var t=vt[e.condition];return t?(0,ee.jsx)(U.Z,{icon:t,position:at.Z.position.SOLE}):mt||(mt=(0,ee.jsx)("i",{children:"•"}))},yt=function(e){return(0,ee.jsxs)(pt,{condition:e.condition,children:[(0,ee.jsx)(ft,{children:gt(e)}),e.label,Z().Children.map(e.children,(function(e){return Z().cloneElement(e)}))]})};yt.defaultProps={condition:at.Z.condition.BASE};const bt={List:dt,Item:yt};const wt=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,ct()(e.error[n]))})),(0,ee.jsx)(bt.List,{children:t.map((function(e,t){return(0,ee.jsx)(bt.Item,{condition:"danger",label:e},t)}))})};var Ot=i(87585);function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const St=function(e){var t,n,r,o,a=e.children,i=e.description,c=e.dirty,u=e.isDisplay,s=e.error,l=e.hasValue,f=e.id,p=e.label,d=e.mandatory,h=e.mandatoryTitle,m=e.immutable,v=e.touched,g=e.signal,y=!m&&v&&s&&Object.keys(s).length>0,b=d&&h?", ".concat(h):"",w="".concat(nt.Z.adjustedHTMLString(p)).concat(b),O=g||function(e,t,n,r){return t?at.Z.condition.DANGER:e?at.Z.condition.INFO:n&&!r?at.Z.condition.WARNING:void 0}(c,y,d,l),x={__html:"".concat(rt.Z.sanitizeHtml(p)).concat(d?" *":"")},k=!u&&!m&&{htmlFor:f},S=ot.Z.getEmbedType(),P=["admin","legacy-admin"].includes(S);return(0,ee.jsx)(Qe,{children:function(e){var f=e.getRef;return(0,ee.jsx)(Ot.T3,{children:(0,ee.jsxs)(Ot.QZ,{ref:f,label:p,isAdmin:P,children:[p&&(0,ee.jsx)(Ot.yr,kt(kt({},k),{},{hasValue:l,dirty:c,title:w,immutable:m,isDisplay:u,signal:O,isAdmin:P,children:t||(t=(0,ee.jsx)("span",{dangerouslySetInnerHTML:x}))})),(0,ee.jsxs)(Ot.m9,{isAdmin:P,children:[n||(n=(0,ee.jsx)(Ot.if,{hasValue:l,immutable:m,isDisplay:u,signal:O,children:a})),y&&(r||(r=(0,ee.jsx)(Ot.gi,{children:(0,ee.jsx)(wt,{error:s})}))),i&&(o||(o=(0,ee.jsx)(Ot.Mp,{children:i})))]})]})})}})};var Pt=i(57557),_t=i.n(Pt),jt=i(41609),Et=i.n(jt),Ct=i(14293),Tt=i.n(Ct),Dt=i(23493),Mt=i.n(Dt),Rt=i(33417),It=i(1972),Nt=i(32924),At=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var Zt=i(2717);function Lt(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 Ft(e,t){return(Ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ht(e){return(Ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ut=i(62360);function Bt(e,t){if(t&&("object"===(0,Ut.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Wt(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=Ht(e);if(t){var o=Ht(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bt(this,n)}}var zt=i(31599);var Yt=i(78001);function Vt(e){return function(e){if(Array.isArray(e))return(0,zt.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,Yt.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var qt=i(29382),Gt=i(1537),Kt=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Xt(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||Kt(r)&&Kt(o)))return!1;var r,o;return!0}for(var Qt={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"},$t=function(e){return(0,Gt.tZ)("span",(0,Zt.Z)({css:Qt},e))},Jt={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:"",".")}},en=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,A.useMemo)((function(){return(0,Rt.Z)((0,Rt.Z)({},Jt),s||{})}),[s]),x=(0,A.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=(0,Rt.Z)({isDisabled:s&&d(s,i),label:f,labels:h},t);n=O.onChange(m)}return n}),[t,O,d,i,l]),k=(0,A.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,A.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,A.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]),_="".concat(k," ").concat(S," ").concat(P),j=(0,Gt.tZ)(A.Fragment,null,(0,Gt.tZ)("span",{id:"aria-selection"},x),(0,Gt.tZ)("span",{id:"aria-context"},_)),E="initial-input-focus"===(null==t?void 0:t.action);return(0,Gt.tZ)(A.Fragment,null,(0,Gt.tZ)($t,{id:u},E&&j),(0,Gt.tZ)($t,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},a&&!E&&j))},tn=[{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źẑżžẓẕƶȥɀⱬꝣ"}],nn=new RegExp("["+tn.map((function(e){return e.letters})).join("")+"]","g"),rn={},on=0;on<tn.length;on++)for(var an=tn[on],cn=0;cn<an.letters.length;cn++)rn[an.letters[cn]]=an.base;var un=function(e){return e.replace(nn,(function(e){return rn[e]}))},sn=function(e,t){void 0===t&&(t=Xt);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}(un),ln=function(e){return e.replace(/^\s+|\s+$/g,"")},fn=function(e){return"".concat(e.label," ").concat(e.value)},pn=["innerRef"];function dn(e){var t=e.innerRef,n=(0,Nt.Z)(e,pn),r=(0,qt.r)(n,"onExited","in","enter","exit","appear");return(0,Gt.tZ)("input",(0,Zt.Z)({ref:t},r,{css:(0,Gt.iv)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var hn=["boxSizing","height","overflow","paddingRight","position"],mn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function vn(e){e.preventDefault()}function gn(e){e.stopPropagation()}function yn(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function bn(){return"ontouchstart"in window||navigator.maxTouchPoints}var wn=!("undefined"==typeof window||!window.document||!window.document.createElement),On=0,xn={capture:!1,passive:!1};var kn=function(){return document.activeElement&&document.activeElement.blur()},Sn={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Pn(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,A.useRef)(!1),c=(0,A.useRef)(!1),u=(0,A.useRef)(0),s=(0,A.useRef)(null),l=(0,A.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,A.useCallback)((function(e){l(e,e.deltaY)}),[l]),p=(0,A.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),d=(0,A.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;l(e,t)}),[l]),h=(0,A.useCallback)((function(e){if(e){var t=!!qt.s&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",d,t)}}),[d,p,f]),m=(0,A.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",d,!1))}),[d,p,f]);return(0,A.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,A.useRef)({}),a=(0,A.useRef)(null),i=(0,A.useCallback)((function(e){if(wn){var t=document.body,n=t&&t.style;if(r&&hn.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&On<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,c=window.innerWidth-i+a||0;Object.keys(mn).forEach((function(e){var t=mn[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(c,"px"))}t&&bn()&&(t.addEventListener("touchmove",vn,xn),e&&(e.addEventListener("touchstart",yn,xn),e.addEventListener("touchmove",gn,xn))),On+=1}}),[r]),c=(0,A.useCallback)((function(e){if(wn){var t=document.body,n=t&&t.style;On=Math.max(On-1,0),r&&On<1&&hn.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&bn()&&(t.removeEventListener("touchmove",vn,xn),e&&(e.removeEventListener("touchstart",yn,xn),e.removeEventListener("touchmove",gn,xn)))}}),[r]);return(0,A.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(0,Gt.tZ)(A.Fragment,null,n&&(0,Gt.tZ)("div",{onClick:kn,css:Sn}),t((function(e){o(e),a(e)})))}var _n={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},jn=function(e){var t=e.name,n=e.onFocus;return(0,Gt.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:_n,value:"",onChange:function(){}})},En={clearIndicator:qt.a,container:qt.b,control:qt.d,dropdownIndicator:qt.e,group:qt.g,groupHeading:qt.f,indicatorsContainer:qt.i,indicatorSeparator:qt.h,input:qt.j,loadingIndicator:qt.l,loadingMessage:qt.k,menu:qt.m,menuList:qt.n,menuPortal:qt.o,multiValue:qt.p,multiValueLabel:qt.q,multiValueRemove:qt.t,noOptionsMessage:qt.u,option:qt.v,placeholder:qt.w,singleValue:qt.x,valueContainer:qt.y};var Cn,Tn={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}},Dn={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,qt.z)(),captureMenuScroll:!(0,qt.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,Rt.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:fn,trim:!0,matchFrom:"any"},Cn),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,c=n.matchFrom,u=i?ln(t):t,s=i?ln(a(e)):a(e);return r&&(u=u.toLowerCase(),s=s.toLowerCase()),o&&(u=sn(u),s=un(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:!(0,qt.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Mn(e,t,n,r){return{type:"option",data:t,isDisabled:Ln(e,t,n),isSelected:Fn(e,t,n),label:An(e,t),value:Zn(e,t),index:r}}function Rn(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Mn(e,n,t,r)})).filter((function(t){return Nn(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=Mn(e,n,t,r);return Nn(e,a)?a:void 0})).filter(qt.K)}function In(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Vt(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Nn(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,c=t.value;return(!Un(e)||!a)&&Hn(e,{label:i,value:c,data:o},r)}var An=function(e,t){return e.getOptionLabel(t)},Zn=function(e,t){return e.getOptionValue(t)};function Ln(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Fn(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Zn(e,t);return n.some((function(t){return Zn(e,t)===r}))}function Hn(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Un=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Bn=1,Wn=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&&Ft(e,t)}(a,e);var t,n,r,o=Wt(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((0,qt.B)(i.filter((function(e){return t.getOptionValue(e)!==s}))),"deselect-option",e)}else{if(u)return void t.ariaOnChange((0,qt.C)(e),{action:"select-option",option:e,name:a});o?t.setValue((0,qt.B)([].concat(Vt(i),[e])),"select-option",e):t.setValue((0,qt.C)(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=(0,qt.D)(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((0,qt.D)(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=(0,qt.D)(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 qt.E.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return An(t.props,e)},t.getOptionValue=function(e){return Zn(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=En[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(0,qt.F)(t.props)},t.buildCategorizedOptions=function(){return Rn(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return In(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:(0,Rt.Z)({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&&(0,qt.G)(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 Un(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||++Bn),t.state.selectValue=(0,qt.H)(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=(0,qt.H)(s),h={};if(n&&(s!==n.value||u!==n.options||l!==n.menuIsOpen||f!==n.inputValue)){var m=l?function(e,t){return In(Rn(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:(0,qt.D)(p,d,d[0]||null),options:d,action:"initial-input-focus"},b=!c),"initial-input-focus"===(null==a?void 0:a.action)&&(y=null),(0,Rt.Z)((0,Rt.Z)((0,Rt.Z)({},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&&(0,qt.I)(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&&((0,qt.I)(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(Tn):(0,Rt.Z)((0,Rt.Z)({},Tn),this.props.theme):Tn}},{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 Ln(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Fn(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Hn(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=(0,Rt.Z)((0,Rt.Z)((0,Rt.Z)({"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?A.createElement(s,(0,Zt.Z)({},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)):A.createElement(dn,(0,Zt.Z)({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:qt.J,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:A.createElement(c,(0,Zt.Z)({},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 A.createElement(n,(0,Zt.Z)({},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 A.createElement(i,(0,Zt.Z)({},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 A.createElement(e,(0,Zt.Z)({},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?A.createElement(e,(0,Zt.Z)({},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 A.createElement(n,(0,Zt.Z)({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return A.createElement(e,(0,Zt.Z)({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,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,_=p.onMenuScrollToTop,j=p.onMenuScrollToBottom;if(!b)return null;var E,C=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 A.createElement(s,(0,Zt.Z)({},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())E=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 A.createElement(n,(0,Zt.Z)({},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 C(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return C(t,"".concat(t.index))}));else if(m){var T=v({inputValue:h});if(null===T)return null;E=A.createElement(c,l,T)}else{var D=P({inputValue:h});if(null===D)return null;E=A.createElement(u,l,D)}var M={minMenuHeight:g,maxMenuHeight:y,menuPlacement:w,menuPosition:O,menuShouldScrollIntoView:S},R=A.createElement(qt.M,(0,Zt.Z)({},l,M),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,c=r.maxHeight;return A.createElement(o,(0,Zt.Z)({},l,M,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:m,placement:i}),A.createElement(Pn,{captureEnabled:d,onTopArrive:_,onBottomArrive:j,lockEnabled:k},(function(t){return A.createElement(a,(0,Zt.Z)({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:m,maxHeight:c,focusedOption:f}),E)})))}));return x||"fixed"===O?A.createElement(i,(0,Zt.Z)({},l,{appendTo:x,controlElement:this.controlRef,menuPlacement:w,menuPosition:O}),R):R}},{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 A.createElement(jn,{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 A.createElement("input",{name:a,type:"hidden",value:u})}var s=c.length>0?c.map((function(t,n){return A.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):A.createElement("input",{name:a,type:"hidden",value:""});return A.createElement("div",null,s)}var l=c[0]?this.getOptionValue(c[0]):"";return A.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 A.createElement(en,(0,Zt.Z)({},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 A.createElement(r,(0,Zt.Z)({},f,{className:i,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:l}),this.renderLiveRegion(),A.createElement(t,(0,Zt.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:l,menuIsOpen:s}),A.createElement(o,(0,Zt.Z)({},f,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),A.createElement(n,(0,Zt.Z)({},f,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}])&&Lt(t.prototype,n),r&&Lt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(A.Component);Wn.defaultProps=Dn;i(66751),i(30314),i(73469);var zn=(0,A.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=(0,Nt.Z)(e,At),m=(0,A.useState)(void 0!==c?c:n),v=(0,It.Z)(m,2),g=v[0],y=v[1],b=(0,A.useState)(void 0!==u?u:o),w=(0,It.Z)(b,2),O=w[0],x=w[1],k=(0,A.useState)(void 0!==d?d:i),S=(0,It.Z)(k,2),P=S[0],_=S[1],j=(0,A.useCallback)((function(e,t){"function"==typeof s&&s(e,t),_(e)}),[s]),E=(0,A.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),y(void 0!==n?n:e)}),[l]),C=(0,A.useCallback)((function(){"function"==typeof p&&p(),x(!0)}),[p]),T=(0,A.useCallback)((function(){"function"==typeof f&&f(),x(!1)}),[f]),D=void 0!==c?c:g,M=void 0!==u?u:O,R=void 0!==d?d:P;return(0,Rt.Z)((0,Rt.Z)({},h),{},{inputValue:D,menuIsOpen:M,onChange:j,onInputChange:E,onMenuClose:T,onMenuOpen:C,value:R})}(e);return A.createElement(Wn,(0,Zt.Z)({ref:t},n))})),Yn=i(80470);function Vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?Vn(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Gn=(0,v.ZP)((function(e){var t;return(0,ee.jsx)("span",qn(qn({},e.innerProps),{},{children:(0,ee.jsx)(Yn.Z,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t}))})}))}));var Kn=i(95497);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){l()(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}const $n=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,ee.jsx)(qt.c.DropdownIndicator,Qn(Qn({},e),{},{children:(0,ee.jsx)(Kn.M6,{children:(0,ee.jsx)(Yn.Z,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};var Jn,er,tr;function nr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nr(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var or=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},ar=function(e,t){return function(n){n.stopPropagation(),e(t)}},ir=function(e,t){return function(n){n.stopPropagation(),e(t)}},cr=function(e){e.stopPropagation()};const ur=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,ee.jsx)(Kn.HO,{isTopAligned:p,children:(0,ee.jsxs)(qt.c.IndicatorsContainer,rr(rr({},e),{},{children:[e.children,n&&!a&&(0,ee.jsx)("span",{onTouchEnd:cr,onMouseDown:ar(n,s),children:Jn||(Jn=(0,ee.jsx)(Yn.Z,{icon:"folder",tabIndex:-1}))}),r&&!a&&(0,ee.jsx)("span",{onTouchEnd:cr,onMouseDown:or(r,f,s),children:er||(er=(0,ee.jsx)(Yn.Z,{icon:"search",tabIndex:-1}))}),u&&!a&&(0,ee.jsx)("span",{onTouchEnd:cr,onMouseDown:ir(o,s),children:tr||(tr=(0,ee.jsx)(Yn.Z,{icon:"plus",tabIndex:-1}))})]}))})};var sr,lr=i(93235);const fr=function(){return sr||(sr=(0,ee.jsx)("span",{children:(0,ee.jsx)(lr.Z,{size:"1.8rem"})}))};var pr=i(15315);function dr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hr(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){l()(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}const mr=function(e){var t=e.selectProps,n=e.children;return(0,ee.jsx)(Kn._M,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,ee.jsx)("div",{ref:e})},renderElement:function(r){return(0,ee.jsx)("div",{ref:r,className:pr.c,children:(0,ee.jsx)(Kn.l2,hr(hr({},_t()(e,["innerRef"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,children:n}))})}})};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 gr(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){l()(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 yr=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,ee.jsxs)(qt.c.MenuList,gr(gr({},e),{},{className:"MenuList",children:[n,r&&(0,ee.jsx)(Kn.OA,{children:o})]}))};var br=i(27361),wr=i.n(br),Or=i(76791);function xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xr(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Sr=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=wr()(a,t.key,null),s=(0,ee.jsx)("span",kr(kr({},n),{},{children:r})),l=c?(0,ee.jsx)(Kn.vR,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,ee.jsx)(c,{entityKey:t.key,tabIndex:-1,children:(0,ee.jsx)(Or.Z,{content:u?(0,ee.jsx)("div",{dangerouslySetInnerHTML:{__html:rt.Z.sanitizeHtml(u)}}):null,children:(0,ee.jsx)("span",{onMouseOver:function(){return i&&!u&&i(t.key)},children:s})})})}):s;return(0,ee.jsx)(Kn.B1,{children:l})};var Pr=i(47037),_r=i.n(Pr),jr=i(14176),Er=i.n(jr);function Cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cr(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dr=["linkComp"],Mr=function(e,t){var n=nt.Z.difference(e,t),r=Er()(_t()(n,Dr),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},Rr=(0,A.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&_r()(n)?(0,ee.jsx)(Kn.vR,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,ee.jsx)(t,{entityKey:n,children:r})}):r}),Mr);Rr.propTypes={children:p().node,entityKey:p().any,linkComp:p().func};const Ir=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=wr()(a,t.key,null);return(0,ee.jsx)(qt.c.SingleValue,Tr(Tr({},e),{},{children:(0,ee.jsx)(Kn.xq,{onMouseOver:function(){return i&&!u&&i(t.key)},isDisabled:r,children:(0,ee.jsx)(Or.Z,{content:u?(0,ee.jsx)("div",{dangerouslySetInnerHTML:{__html:rt.Z.sanitizeHtml(u)}}):null,children:(0,ee.jsx)(Rr,{linkComp:c,entityKey:t.key,children:o})})})}))};function Nr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Ar=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const Zr=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,ee.jsx)(qt.c.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nr(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var u=A.Children.map(r,(function(e){return Ar(e)?e:null})),s=A.Children.map(r,(function(e){return Ar(e)?null:e})),f=c&&n;return(0,ee.jsxs)(ee.Fragment,{children:[!f&&(0,ee.jsx)(ee.Fragment,{children:u}),(0,ee.jsx)(Kn.eQ,{children:s})]})};function Lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lr(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Hr=(0,V.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,A.useRef)(null),k=(0,A.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},_=(0,A.useState)(S()),j=We()(_,2),E=j[0],C=j[1],T=(0,A.useState)(P()),D=We()(T,2),M=D[0],R=D[1],I=(0,A.useState)(!1),N=We()(I,2),Z=N[0],L=N[1],F=function(e){t&&t(e)},H=(0,A.useCallback)(m||function(){},[]),U=(0,A.useCallback)(Mt()(H,800,{trailing:!0}),[]),B=Boolean(d),W=Boolean(p),z=Boolean(w);return(0,ee.jsx)(Kn.sP,{tabIndex:"-1",id:n,onFocus:function(){x.current.focus(),setTimeout((function(){C(S()),R(P())}),0)},children:(0,ee.jsx)(Kn.RU,{ref:k,children:(0,ee.jsx)(zn,Fr(Fr({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:E,wrapperHeight:M,components:{ClearIndicator:Gn,LoadingIndicator:fr,DropdownIndicator:$n,IndicatorsContainer:ur,IndicatorSeparator:null,Menu:mr,MenuList:yr,MultiValueLabel:Sr,SingleValue:Ir,ValueContainer:Zr},noOptionsMessage:function(e){return s||("function"==typeof l?(0,ee.jsx)(l,Fr({},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),F(e)},onInputChange:function(e,t){var n=t.action;m&&e&&U(e,y),""===e&&"input-change"===n&&F(y)},options:ct()(h||[]),onKeyDown:function(e){"Enter"===e.key&&Z?e.stopPropagation():"Tab"===e.key&&(e.preventDefault=function(){})},isLoading:o,isDisabled:r,ref:x,onMenuOpen:function(){F(y),L(!0)},onMenuClose:function(){L(!1)},styles:(0,Kn.i4)(v),loadTooltip:i,tooltips:g,DetailLink:b,hasDocsTreeSearch:W,openDocsTreeSearch:p,hasAdvancedSearch:B,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 Ur=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,ee.jsx)(Hr,{id:t,immutable:n,isMulti:!1,onChange:function(e){return c(e?e.key:null)},value:Tt()(r)?r:{key:r,display:r?a:i},openMenuOnClick:!0,options:[{key:!0,display:a},{key:!1,display:i}]})};var Br,Wr=V.ZP.div.withConfig({displayName:"StyledBoolEdit"})(Br||(Br=Y()(["\n margin: 5px 0;\n"])));const zr=function(e){return(0,ee.jsx)(Wr,{children:(0,ee.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 Yr,Vr,qr=i(30759);function Gr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gr(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xr=V.ZP.div.withConfig({displayName:"StyledOption"})(Yr||(Yr=Y()(["\n margin: "," 0;\n"])),q.Z.space(-1.4)),Qr=V.ZP.span.withConfig({displayName:"StyledLabel"})(Vr||(Vr=Y()(["\n ","\n display: inline-block;\n margin-left: ",";\n"])),(0,qr.Z)(),q.Z.space(-1.5)),$r={single:"radio",multiple:"checkbox"},Jr={single:{checked:!1},multiple:{}},eo=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.checked,a=e.immutable,i=e.selectionType,c=e.renderHtmlInOptions,u=e.handleChange;return(0,ee.jsxs)(Xr,{children:[(0,ee.jsx)("input",{name:t,type:$r[i],checked:o||!1,onChange:u,id:n,disabled:a}),(0,ee.jsx)(Qr,{children:c?(0,ee.jsx)("span",{dangerouslySetInnerHTML:{__html:rt.Z.sanitizeHtml(r)}}):r})]})};const to=function(e){var t=function(t){if(e.onChange){var n=e.value.options.map((function(n){return Kr(Kr({},n),n.id===t.target.id?{checked:t.target.checked}:Jr[e.options.selectionType])}));e.onChange({options:n})}};return(0,ee.jsx)(ee.Fragment,{children:e.value.options.map((function(n){return(0,ee.jsx)(eo,{groupName:e.id,id:n.id,label:n.label,checked:n.checked,immutable:e.immutable,selectionType:e.options.selectionType,renderHtmlInOptions:e.options.renderHtmlInOptions,handleChange:t},n.id)}))})};var no=i(23279),ro=i.n(no);function oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oo(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var io=(0,A.lazy)((function(){return Promise.all([i.e(560),i.e(85)]).then(i.bind(i,30919))}));const co=function(e){return(0,ee.jsx)(A.Suspense,{fallback:(t=e.value,(0,ee.jsx)("div",{children:(0,ee.jsx)("p",{children:t})})),children:(0,ee.jsx)(io,ao({},e))});var t};var uo,so,lo,fo=V.ZP.div.withConfig({displayName:"StyledEditorWrapper"})(uo||(uo=Y()(["\n margin-top: ",";\n"])),q.Z.space(-1.5)),po=V.ZP.div.withConfig({displayName:"StyledEditorBaseline"})(so||(so=Y()(["\n height: 0;\n"])));const ho=function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options;return(0,ee.jsxs)(fo,{children:[lo||(lo=(0,ee.jsx)(po,{children:"StyledEditorBaseline"})),(0,ee.jsx)(co,{value:t,onChange:ro()(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 mo=i(86896),vo=i(23842),go=i(6479),yo=i.n(go),bo=i(93379),wo=i.n(bo),Oo=i(7795),xo=i.n(Oo),ko=i(90569),So=i.n(ko),Po=i(3565),_o=i.n(Po),jo=i(19216),Eo=i.n(jo),Co=i(44589),To=i.n(Co),Do=i(16721),Mo={};Mo.styleTagTransform=To(),Mo.setAttributes=_o(),Mo.insert=So().bind(null,"head"),Mo.domAPI=xo(),Mo.insertStyleElement=Eo();wo()(Do.Z,Mo);Do.Z&&Do.Z.locals&&Do.Z.locals;var Ro=i(9198),Io=i.n(Ro),No=(Math.pow(10,8),6e4),Ao=36e5,Zo=i(13882),Lo=i(83946);var Fo={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ho=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Uo=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Bo=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Wo(e){var t,n={},r=e.split(Fo.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],Fo.timeZoneDelimiter.test(n.date)&&(n.date=e.split(Fo.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=Fo.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}function zo(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 Yo(e,t){if(null===t)return new Date(NaN);var n=e.match(Ho);if(!n)return new Date(NaN);var r=!!n[4],o=Vo(n[1]),a=Vo(n[2])-1,i=Vo(n[3]),c=Vo(n[4]),u=Vo(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<=(Xo[t]||(Qo(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(Qo(e)?366:365)}(t,o)?(s.setUTCFullYear(t,a,Math.max(o,i)),s):new Date(NaN)}function Vo(e){return e?parseInt(e):1}function qo(e){var t=e.match(Uo);if(!t)return NaN;var n=Go(t[1]),r=Go(t[2]),o=Go(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*Ao+r*No+1e3*o:NaN}function Go(e){return e&&parseFloat(e.replace(",","."))||0}function Ko(e){if("Z"===e)return 0;var t=e.match(Bo);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*Ao+o*No):NaN}var Xo=[31,null,31,30,31,30,31,31,30,31,30,31];function Qo(e){return e%400==0||e%4==0&&e%100!=0}var $o,Jo,ea,ta,na,ra,oa,aa,ia,ca=(0,V.iv)($o||($o=Y()(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),ua=V.ZP.label.withConfig({displayName:"StyledEditableWrapper"})(Jo||(Jo=Y()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),ca),sa=(0,V.iv)(ea||(ea=Y()(["\n background-color: transparent;\n border: 0;\n cursor: ",";\n flex-grow: 1;\n min-height: 2.6rem;\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(){return(0,qr.Z)({color:X.FS.color("text")})}),X.FS.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),la=(0,V.iv)(ta||(ta=Y()(["\n display: flex;\n align-items: center;\n"]))),fa=V.ZP.div.withConfig({displayName:"StyledEditableControl"})(na||(na=Y()(["\n &&& {\n ","\n }\n"])),la),pa=V.ZP.span.withConfig({displayName:"StyledEditableValue"})(ra||(ra=Y()(["\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"])),X.FS.color("signal.danger")),da=V.ZP.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(oa||(oa=Y()(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),ha=V.ZP.div.withConfig({displayName:"StyledDatePickerWrapper"})(aa||(aa=Y()(["\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"])),ca,sa,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),ma=V.ZP.input.withConfig({displayName:"StyledTimeInput"})(ia||(ia=Y()(["\n &&&& {\n ","\n }\n"])),sa),va=i(37042),ga=i(4543),ya=i(39880),ba=i(85817),wa=i(39159),Oa=i(19013);function xa(e){(0,Zo.Z)(1,arguments);var t=(0,Oa.Z)(e),n=t.getSeconds();return n}var ka=i(86);function Sa(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 Pa(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 Sa(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)?Sa(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}}}}var _a=i(44941),ja=i(29558);function Ea(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}var Ca=i(97621),Ta=i(24262),Da=i(5267);function Ma(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ra(e,t){return(Ra=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ia(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&&Ra(e,t)}function Na(e){return(Na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Aa(e,t){if(t&&("object"===(0,ka.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ma(e)}function Za(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=Na(e);if(t){var o=Na(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Aa(this,n)}}function La(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fa(e){var t=function(e,t){if("object"!==(0,ka.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==(0,ka.Z)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,ka.Z)(t)?t:String(t)}function Ha(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,Fa(r.key),r)}}function Ua(e,t,n){return t&&Ha(e.prototype,t),n&&Ha(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ba(e,t,n){return(t=Fa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wa=function(){function e(){La(this,e),Ba(this,"priority",void 0),Ba(this,"subPriority",0)}return Ua(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),za=function(e){Ia(n,e);var t=Za(n);function n(e,r,o,a,i){var c;return La(this,n),(c=t.call(this)).value=e,c.validateValue=r,c.setValue=o,c.priority=a,i&&(c.subPriority=i),c}return Ua(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}(Wa),Ya=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",10),Ba(Ma(e),"subPriority",-1),e}return Ua(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}(Wa),Va=function(){function e(){La(this,e),Ba(this,"incompatibleTokens",void 0),Ba(this,"priority",void 0),Ba(this,"subPriority",void 0)}return Ua(e,[{key:"run",value:function(e,t,n,r){var o=this.parse(e,t,n,r);return o?{setter:new za(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),qa=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",140),Ba(Ma(e),"incompatibleTokens",["R","u","t","T"]),e}return Ua(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}(Va),Ga=/^(1[0-2]|0?\d)/,Ka=/^(3[0-1]|[0-2]?\d)/,Xa=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Qa=/^(5[0-3]|[0-4]?\d)/,$a=/^(2[0-3]|[0-1]?\d)/,Ja=/^(2[0-4]|[0-1]?\d)/,ei=/^(1[0-1]|0?\d)/,ti=/^(1[0-2]|0?\d)/,ni=/^[0-5]?\d/,ri=/^[0-5]?\d/,oi=/^\d/,ai=/^\d{1,2}/,ii=/^\d{1,3}/,ci=/^\d{1,4}/,ui=/^-?\d+/,si=/^-?\d/,li=/^-?\d{1,2}/,fi=/^-?\d{1,3}/,pi=/^-?\d{1,4}/,di=/^([+-])(\d{2})(\d{2})?|Z/,hi=/^([+-])(\d{2})(\d{2})|Z/,mi=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,vi=/^([+-])(\d{2}):(\d{2})|Z/,gi=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function yi(e,t){return e?{value:t(e.value),rest:e.rest}:e}function bi(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function wi(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*Ao+a*No+1e3*i),rest:t.slice(n[0].length)}}function Oi(e){return bi(ui,e)}function xi(e,t){switch(e){case 1:return bi(oi,t);case 2:return bi(ai,t);case 3:return bi(ii,t);case 4:return bi(ci,t);default:return bi(new RegExp("^\\d{1,"+e+"}"),t)}}function ki(e,t){switch(e){case 1:return bi(si,t);case 2:return bi(li,t);case 3:return bi(fi,t);case 4:return bi(pi,t);default:return bi(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Si(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 Pi(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 _i(e){return e%400==0||e%4==0&&e%100!=0}var ji=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",130),Ba(Ma(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return Ua(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return yi(xi(4,e),r);case"yo":return yi(n.ordinalNumber(e,{unit:"year"}),r);default:return yi(xi(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=Pi(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}(Va),Ei=i(7651),Ci=i(59025),Ti=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",130),Ba(Ma(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return Ua(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return yi(xi(4,e),r);case"Yo":return yi(n.ordinalNumber(e,{unit:"year"}),r);default:return yi(xi(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=(0,Ei.Z)(e,r);if(n.isTwoDigitYear){var a=Pi(n.year,o);return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,Ci.Z)(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),(0,Ci.Z)(e,r)}}]),n}(Va),Di=i(66979),Mi=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",130),Ba(Ma(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return Ua(n,[{key:"parse",value:function(e,t){return ki("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),(0,Di.Z)(r)}}]),n}(Va),Ri=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",130),Ba(Ma(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return Ua(n,[{key:"parse",value:function(e,t){return ki("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}(Va),Ii=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",120),Ba(Ma(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return Ua(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return xi(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}(Va),Ni=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",120),Ba(Ma(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return Ua(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return xi(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}(Va),Ai=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Ba(Ma(e),"priority",110),e}return Ua(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return yi(bi(Ga,e),r);case"MM":return yi(xi(2,e),r);case"Mo":return yi(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}(Va),Zi=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",110),Ba(Ma(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return Ua(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return yi(bi(Ga,e),r);case"LL":return yi(xi(2,e),r);case"Lo":return yi(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}(Va),Li=i(23324);var Fi=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",100),Ba(Ma(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return Ua(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return bi(Qa,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return xi(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return(0,Ci.Z)(function(e,t,n){(0,Zo.Z)(2,arguments);var r=(0,Oa.Z)(e),o=(0,Lo.Z)(t),a=(0,Li.Z)(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*a),r}(e,n,r),r)}}]),n}(Va),Hi=i(49702);var Ui=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",100),Ba(Ma(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return Ua(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return bi(Qa,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return xi(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return(0,Di.Z)(function(e,t){(0,Zo.Z)(2,arguments);var n=(0,Oa.Z)(e),r=(0,Lo.Z)(t),o=(0,Hi.Z)(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n))}}]),n}(Va),Bi=[31,28,31,30,31,30,31,31,30,31,30,31],Wi=[31,29,31,30,31,30,31,31,30,31,30,31],zi=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",90),Ba(Ma(e),"subPriority",1),Ba(Ma(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return Ua(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return bi(Ka,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return xi(t.length,e)}}},{key:"validate",value:function(e,t){var n=_i(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=Wi[r]:t>=1&&t<=Bi[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(Va),Yi=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",90),Ba(Ma(e),"subpriority",1),Ba(Ma(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return Ua(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return bi(Xa,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return xi(t.length,e)}}},{key:"validate",value:function(e,t){return _i(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}(Va),Vi=i(84314);function qi(e,t,n){var r,o,a,i,c,u,s,l;(0,Zo.Z)(2,arguments);var f=(0,Vi.j)(),p=(0,Lo.Z)(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=(0,Oa.Z)(e),h=(0,Lo.Z)(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 Gi=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",90),Ba(Ma(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return Ua(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=qi(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Va),Ki=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",90),Ba(Ma(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return Ua(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 yi(xi(t.length,e),o);case"eo":return yi(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=qi(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Va),Xi=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",90),Ba(Ma(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return Ua(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 yi(xi(t.length,e),o);case"co":return yi(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=qi(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Va);var Qi=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",90),Ba(Ma(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return Ua(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return xi(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return yi(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 yi(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return yi(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiii":default:return yi(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){(0,Zo.Z)(2,arguments);var n=(0,Lo.Z)(t);n%7==0&&(n-=7);var r=1,o=(0,Oa.Z)(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}(Va),$i=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",80),Ba(Ma(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return Ua(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(Si(n),0,0,0),e}}]),n}(Va),Ji=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",80),Ba(Ma(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return Ua(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(Si(n),0,0,0),e}}]),n}(Va),ec=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",80),Ba(Ma(e),"incompatibleTokens",["a","b","t","T"]),e}return Ua(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(Si(n),0,0,0),e}}]),n}(Va),tc=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",70),Ba(Ma(e),"incompatibleTokens",["H","K","k","t","T"]),e}return Ua(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return bi(ti,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return xi(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}(Va),nc=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",70),Ba(Ma(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return Ua(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return bi($a,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return xi(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}(Va),rc=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",70),Ba(Ma(e),"incompatibleTokens",["h","H","k","t","T"]),e}return Ua(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return bi(ei,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return xi(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}(Va),oc=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",70),Ba(Ma(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return Ua(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return bi(Ja,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return xi(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}(Va),ac=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",60),Ba(Ma(e),"incompatibleTokens",["t","T"]),e}return Ua(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return bi(ni,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return xi(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}(Va),ic=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",50),Ba(Ma(e),"incompatibleTokens",["t","T"]),e}return Ua(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return bi(ri,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return xi(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}(Va),cc=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",30),Ba(Ma(e),"incompatibleTokens",["t","T"]),e}return Ua(n,[{key:"parse",value:function(e,t){return yi(xi(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}(Va),uc=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",10),Ba(Ma(e),"incompatibleTokens",["t","T","x"]),e}return Ua(n,[{key:"parse",value:function(e,t){switch(t){case"X":return wi(di,e);case"XX":return wi(hi,e);case"XXXX":return wi(mi,e);case"XXXXX":return wi(gi,e);case"XXX":default:return wi(vi,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(Va),sc=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",10),Ba(Ma(e),"incompatibleTokens",["t","T","X"]),e}return Ua(n,[{key:"parse",value:function(e,t){switch(t){case"x":return wi(di,e);case"xx":return wi(hi,e);case"xxxx":return wi(mi,e);case"xxxxx":return wi(gi,e);case"xxx":default:return wi(vi,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(Va),lc=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",40),Ba(Ma(e),"incompatibleTokens","*"),e}return Ua(n,[{key:"parse",value:function(e){return Oi(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(Va),fc=function(e){Ia(n,e);var t=Za(n);function n(){var e;La(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ba(Ma(e=t.call.apply(t,[this].concat(o))),"priority",20),Ba(Ma(e),"incompatibleTokens","*"),e}return Ua(n,[{key:"parse",value:function(e){return Oi(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(Va),pc={G:new qa,y:new ji,Y:new Ti,R:new Mi,u:new Ri,Q:new Ii,q:new Ni,M:new Ai,L:new Zi,w:new Fi,I:new Ui,d:new zi,D:new Yi,E:new Gi,e:new Ki,c:new Xi,i:new Qi,a:new $i,b:new Ji,B:new ec,h:new tc,H:new nc,K:new rc,k:new oc,m:new ac,s:new ic,S:new cc,X:new uc,x:new sc,t:new lc,T:new fc},dc=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,hc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mc=/^'([^]*?)'?$/,vc=/''/g,gc=/\S/,yc=/[a-zA-Z]/;function bc(e,t,n,r){var o,a,i,c,u,s,l,f,p,d,h,m,v,g,y,b,w,O;(0,Zo.Z)(3,arguments);var x=String(e),k=String(t),S=(0,Vi.j)(),P=null!==(o=null!==(a=null==r?void 0:r.locale)&&void 0!==a?a:S.locale)&&void 0!==o?o:_a.Z;if(!P.match)throw new RangeError("locale must contain match property");var _=(0,Lo.Z)(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=(0,Lo.Z)(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?(0,Oa.Z)(n):new Date(NaN);var E,C={firstWeekContainsDate:_,weekStartsOn:j,locale:P},T=[new Ya],D=k.match(hc).map((function(e){var t=e[0];return t in Ca.Z?(0,Ca.Z[t])(e,P.formatLong):e})).join("").match(dc),M=[],R=Pa(D);try{var I=function(){var t=E.value;null!=r&&r.useAdditionalWeekYearTokens||!(0,Da.Do)(t)||(0,Da.qp)(t,k,e),null!=r&&r.useAdditionalDayOfYearTokens||!(0,Da.Iu)(t)||(0,Da.qp)(t,k,e);var n=t[0],o=pc[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)};T.push(c.setter),x=c.rest}else{if(n.match(yc))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=wc(t)),0!==x.indexOf(t))return{v:new Date(NaN)};x=x.slice(t.length)}};for(R.s();!(E=R.n()).done;){var N=I();if("object"===(0,ka.Z)(N))return N.v}}catch(e){R.e(e)}finally{R.f()}if(x.length>0&&gc.test(x))return new Date(NaN);var A=T.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 T.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),Z=(0,Oa.Z)(n);if(isNaN(Z.getTime()))return new Date(NaN);var L,F=(0,ja.Z)(Z,(0,Ta.Z)(Z)),H={},U=Pa(A);try{for(U.s();!(L=U.n()).done;){var B=L.value;if(!B.validate(F,C))return new Date(NaN);var W=B.set(F,H,C);Array.isArray(W)?(F=W[0],Ea(H,W[1])):F=W}}catch(e){U.e(e)}finally{U.f()}return F}function wc(e){return e.match(mc)[1].replace(vc,"'")}var Oc=i(49599);function xc(e,t,n){return(0,Zo.Z)(2,arguments),(0,Oc.Z)(bc(e,t,new Date,n))}var kc="react-datepicker-time__input",Sc="react-datepicker__day",Pc="react-datepicker__input",_c=function(e){return e.classList.contains(Sc)},jc=function(e){return e.classList.contains(kc)},Ec=function(e){return e.classList.contains(Pc)},Cc=function(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,a=void 0===o?0:o,i=t.second,c=void 0===i?0:i;return(0,va.Z)((0,ga.Z)((0,ya.Z)(e,c),a),r)},Tc=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(Sc,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},Dc=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},Mc=function(e){var t=function(e,t){var n;(0,Zo.Z)(1,arguments);var r=(0,Lo.Z)(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=Wo(e);if(a.date){var i=zo(a.date,r);o=Yo(i.restDateString,i.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var c,u=o.getTime(),s=0;if(a.time&&(s=qo(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=Ko(a.timezone),isNaN(c)?new Date(NaN):new Date(u+s+c)}(e);return isNaN(t)?null:t},Rc=function(e){return e?e.toISOString():null};const Ic=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?Mc:u,l=n.dateToValue,f=void 0===l?Rc:l,p=(0,A.useRef)(null),d=(0,A.useState)(!1),h=We()(d,2),m=h[0],v=h[1],g=(0,A.useState)(!1),y=We()(g,2),b=y[0],w=y[1],O=s(e),x=a?s(a):void 0,k=i?s(i):void 0;(0,A.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},_=function(e){p.current&&"function"==typeof p.current.setPreSelection&&p.current.setPreSelection(e)},j=function(){t(null),_(null)},E=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?Cc(n,{hour:(0,ba.Z)(r),minute:(0,wa.Z)(r),second:xa(r)}):n;C(o,e)}},C=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 xc(u,e)})),l=function(e){(0,Zo.Z)(1,arguments);var t=(0,Oa.Z)(e);return t.setHours(0,0,0,0),t}(n),d=(0,ba.Z)(n)!==(0,ba.Z)(l)||(0,wa.Z)(n)!==(0,wa.Z)(l);(i&&!d||s)&&c&&(n=vo.Z.setCurrentTime(n)),t(f(n))}else j();var h;c||"click"!==(null==r?void 0:r.type)||(S(),Dc(null===(h=p.current)||void 0===h?void 0:h.input))},T=function(e){if("Tab"===e.key)if(e.shiftKey)if(Ec(e.target))setTimeout((function(){return S()}),0);else if(jc(e.target)){var t,n;_(O||P(!0)),Tc(null===(t=p.current)||void 0===t||null===(n=t.calendar)||void 0===n?void 0:n.componentNode)}else _c(e.target)&&S();else Ec(e.target)&&m?(E(e),setTimeout((function(){return S()}),0)):jc(e.target)?S():_c(e.target)&&(c?(E(e,!0),_(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(kc));e&&e.focus({preventScroll:!0})}}),0),w(!1)}),0)):(E(e),S()));var r;"Enter"===e.key&&(S(),e.preventDefault(),e.stopPropagation(),Dc(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;_(O||P(!0)),Tc(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)},D=function(){var e;v((function(e){return!e})),_(null),Dc(null===(e=p.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{closeOnScroll:function(){return S(),!0},onClickOutside:S,onInputClick:D,onKeyDown:T,onChange:C,onCalendarOpen:function(){_(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:Pc},timeInputProps:{onKeyDown:T,className:kc,tabIndex:b?void 0:"-1"},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),j()}},calendarButtonProps:{onClick:D,className:m?"react-datepicker-ignore-onclickoutside":""}}};var Nc=i(49546),Ac=i(35997),Zc="HH:mm:ss",Lc="HH:mm",Fc=function(e){return xc(e,Lc)},Hc=function(e){var t=function(e){return xc(e,Zc)?bc(e,Zc,new Date):xc(e,Lc)?bc(e,Lc,new Date):xc(e,"HH:")?bc(e,"HH:",new Date):xc(e,"H")?bc(e,"H",new Date):null}(e);return t&&!isNaN(t)?function(e){return(0,Nc.Z)(e,Lc)}(t):""};const Uc=function(e,t){var n=Hc(e),r=(0,A.useState)(n),o=We()(r,2),a=o[0],i=o[1],c=(0,A.useRef)(a),u=Ac.Z.usePrevious(n);(0,A.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&&!Fc(n)||t(n)}},onBlur:function(){if(a!==n){var e=Hc(a);e&&Fc(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 Bc=["value","onChange","onKeyDown"];function Wc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wc(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}(0,Ro.registerLocale)("en",vo.Z.getDateFnsLocale("en")),(0,Ro.registerLocale)("en-US",vo.Z.getDateFnsLocale("en")),(0,Ro.registerLocale)("de-CH",vo.Z.getDateFnsLocale("de-CH")),(0,Ro.registerLocale)("de",vo.Z.getDateFnsLocale("de")),(0,Ro.registerLocale)("fr",vo.Z.getDateFnsLocale("fr")),(0,Ro.registerLocale)("fr-CH",vo.Z.getDateFnsLocale("fr")),(0,Ro.registerLocale)("it",vo.Z.getDateFnsLocale("it")),(0,Ro.registerLocale)("it-CH",vo.Z.getDateFnsLocale("it")),(0,Ro.setDefaultLocale)("de");var Yc=function(e){var t=e.onChange,n=e.label;return(0,ee.jsx)(W.Z,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},Vc=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=yo()(e,Bc),a=Uc(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,ee.jsx)(ma,zc(zc(zc({},a),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},qc={strategy:"fixed"};const Gc=(0,V.Zz)((0,v.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,A.useRef)(void 0),y=s.locale,b=function(e){return s.formatMessage({id:e})},w=(0,A.useRef)(null),O=Boolean(r),x=!t&&O,k=function(e){g.current=e,u(e)},S=Ic(r,k,{dateFormats:d,dateTimeFormats:m,minDate:o,maxDate:a,valueToDate:i,dateToValue:c,hasTime:f}),P=S.reactDatePickerProps,_=S.timeInputProps,j=S.clearButtonProps,E=S.calendarButtonProps;return(0,ee.jsx)(da,{immutable:t,id:n,tabIndex:"-1",children:(0,ee.jsxs)(ha,{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,ee.jsx)(Io(),zc(zc({},P),{},{disabled:t,dateFormat:[].concat(ct()(m),ct()(d)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!1,fixedHeight:!0,showPopperArrow:!1,locale:y,customTimeInput:(0,ee.jsx)(Vc,zc({},_)),timeInputLabel:"",popperProps:qc,todayButton:(0,ee.jsx)(Yc,{onChange:k,label:b("client.component.datePicker.todayLabel")})})),x&&(0,ee.jsx)(Yn.Z,zc({icon:"times",tabIndex:-1,"aria-label":b("client.component.datePicker.clearDateLabel")},j)),!t&&(0,ee.jsx)(Yn.Z,zc({icon:"calendar",tabIndex:-1},E))]})})})));function Kc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Xc=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,mo.Z)(),s=(null==n?void 0:n.datePickerOptions)||{},f="".concat(vo.Z.getLocalizedDateFormat(u.locale)),p=vo.Z.getLocalizedDateFormatWithoutPunctuation(u.locale),d=[f,p,vo.Z.useTwoDigitYear(f),vo.Z.useTwoDigitYear(p)];return(0,ee.jsx)(Gc,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kc(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:r,value:o,onChange:t,dateFormats:d,hasTime:!1,immutable:a,placeholder:c,events:i},s))};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}const $c=(0,v.ZP)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,a=e.placeholder,i=(0,mo.Z)(),c=(null==n?void 0:n.datePickerOptions)||{},u="".concat(vo.Z.getLocalizedDateTimeFormat(i.locale)),s="".concat(vo.Z.getLocalizedDateFormat(i.locale)),f=vo.Z.getLocalizedDateTimeFormatWithoutPunctuation(i.locale),p=[u,f,vo.Z.useTwoDigitYear(u),vo.Z.useTwoDigitYear(f)],d=vo.Z.getLocalizedDateFormatWithoutPunctuation(i.locale),h=[s,d,vo.Z.useTwoDigitYear(s),vo.Z.useTwoDigitYear(d)];return(0,ee.jsx)(Gc,function(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){l()(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}({value:r,onChange:t,dateTimeFormats:p,dateFormats:h,hasTime:!0,immutable:o,placeholder:a},c))}));var Jc=i(18446),eu=i.n(Jc);function tu(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 nu(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 ru(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 ou(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 au=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 iu(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=au.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 cu=[".DS_Store","Thumbs.db"];function uu(e){return"object"==typeof e&&null!==e}function su(e){return du(e.target.files).map((function(e){return iu(e)}))}function lu(e){return tu(this,void 0,void 0,(function(){return nu(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 iu(e)}))]}}))}))}function fu(e,t){return tu(this,void 0,void 0,(function(){var n;return nu(this,(function(r){switch(r.label){case 0:return e.items?(n=du(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(hu))]):[3,2];case 1:return[2,pu(mu(r.sent()))];case 2:return[2,pu(du(e.files).map((function(e){return iu(e)})))]}}))}))}function pu(e){return e.filter((function(e){return-1===cu.indexOf(e.name)}))}function du(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function hu(e){if("function"!=typeof e.webkitGetAsEntry)return vu(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?yu(t):vu(e)}function mu(e){return e.reduce((function(e,t){return ou(ou([],ru(e),!1),ru(Array.isArray(t)?mu(t):[t]),!1)}),[])}function vu(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=iu(t);return Promise.resolve(n)}function gu(e){return tu(this,void 0,void 0,(function(){return nu(this,(function(t){return[2,e.isDirectory?yu(e):bu(e)]}))}))}function yu(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var a=this;t.readEntries((function(t){return tu(a,void 0,void 0,(function(){var a,i,c;return nu(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(gu)),r.push(c),o(),u.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function bu(e){return tu(this,void 0,void 0,(function(){return nu(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=iu(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var wu=i(58363);function Ou(e){return function(e){if(Array.isArray(e))return ju(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_u(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 xu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ku(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xu(Object(n),!0).forEach((function(t){Su(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Su(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pu(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)||_u(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 _u(e,t){if(e){if("string"==typeof e)return ju(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)?ju(e,t):void 0}}function ju(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 Eu="file-invalid-type",Cu="file-too-large",Tu="file-too-small",Du="too-many-files",Mu=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:Eu,message:"File type must be ".concat(t)}},Ru=function(e){return{code:Cu,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},Iu=function(e){return{code:Tu,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},Nu={code:Du,message:"Too many files"};function Au(e,t){var n="application/x-moz-file"===e.type||(0,wu.Z)(e,t);return[n,n?null:Mu(t)]}function Zu(e,t,n){if(Lu(e.size))if(Lu(t)&&Lu(n)){if(e.size>n)return[!1,Ru(n)];if(e.size<t)return[!1,Iu(t)]}else{if(Lu(t)&&e.size<t)return[!1,Iu(t)];if(Lu(n)&&e.size>n)return[!1,Ru(n)]}return[!0,null]}function Lu(e){return null!=e}function Fu(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=Pu(Au(e,n),1)[0],a=Pu(Zu(e,r,o),1)[0],i=c?c(e):null;return t&&a&&!i}))}function Hu(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function Uu(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 Bu(e){e.preventDefault()}function Wu(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function zu(e){return-1!==e.indexOf("Edge/")}function Yu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return Wu(e)||zu(e)}function Vu(){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!Hu(e)&&t&&t.apply(void 0,[e].concat(r)),Hu(e)}))}}function qu(){return"showOpenFilePicker"in window}function Gu(e){return Lu(e)?[{description:"Files",accept:Object.entries(e).filter((function(e){var t=Pu(e,2),n=t[0],r=t[1],o=!0;return $u(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(Ju)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=Pu(t,2),r=n[0],o=n[1];return ku(ku({},e),{},Su({},r,o))}),{})}]:e}function Ku(e){if(Lu(e))return Object.entries(e).reduce((function(e,t){var n=Pu(t,2),r=n[0],o=n[1];return[].concat(Ou(e),[r],Ou(o))}),[]).filter((function(e){return $u(e)||Ju(e)})).join(",")}function Xu(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}function Qu(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}function $u(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function Ju(e){return/^.*\.[\w]+$/.test(e)}var es=["children"],ts=["open"],ns=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],rs=["refKey","onChange","onClick"];function os(e){return function(e){if(Array.isArray(e))return cs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||is(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 as(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)||is(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 is(e,t){if(e){if("string"==typeof e)return cs(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)?cs(e,t):void 0}}function cs(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 us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?us(Object(n),!0).forEach((function(t){ls(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):us(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ls(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fs(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 ps=(0,A.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ss(ss({},ds),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,_=(0,A.useMemo)((function(){return Ku(n)}),[n]),j=(0,A.useMemo)((function(){return Gu(n)}),[n]),E=(0,A.useMemo)((function(){return"function"==typeof v?v:gs}),[v]),C=(0,A.useMemo)((function(){return"function"==typeof m?m:gs}),[m]),T=(0,A.useRef)(null),D=(0,A.useRef)(null),M=as((0,A.useReducer)(vs,ms),2),R=M[0],I=M[1],N=R.isFocused,Z=R.isFileDialogActive,L=(0,A.useRef)("undefined"!=typeof window&&window.isSecureContext&&g&&qu()),F=function(){!L.current&&Z&&setTimeout((function(){D.current&&(D.current.files.length||(I({type:"closeDialog"}),C()))}),300)};(0,A.useEffect)((function(){return window.addEventListener("focus",F,!1),function(){window.removeEventListener("focus",F,!1)}}),[D,Z,C,L]);var H=(0,A.useRef)([]),U=function(e){T.current&&T.current.contains(e.target)||(e.preventDefault(),H.current=[])};(0,A.useEffect)((function(){return b&&(document.addEventListener("dragover",Bu,!1),document.addEventListener("drop",U,!1)),function(){b&&(document.removeEventListener("dragover",Bu),document.removeEventListener("drop",U))}}),[T,b]),(0,A.useEffect)((function(){return!r&&y&&T.current&&T.current.focus(),function(){}}),[T,y,r]);var B=(0,A.useCallback)((function(e){S?S(e):console.error(e)}),[S]),W=(0,A.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),H.current=[].concat(os(H.current),[e.target]),Uu(e)&&Promise.resolve(o(e)).then((function(t){if(!Hu(e)||k){var n=t.length,r=n>0&&Fu({files:t,accept:_,minSize:i,maxSize:a,multiple:c,maxFiles:u,validator:P});I({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),s&&s(e)}})).catch((function(e){return B(e)}))}),[o,s,B,k,_,i,a,c,u,P]),z=(0,A.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=Uu(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1}),[f,k]),Y=(0,A.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||(I({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Uu(e)&&l&&l(e))}),[T,l,k]),V=(0,A.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=as(Au(e,_),2),o=t[0],c=t[1],u=as(Zu(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:[Nu]})})),n.splice(0)),I({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)}),[I,c,_,i,a,u,p,d,h,P]),q=(0,A.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),H.current=[],Uu(e)&&Promise.resolve(o(e)).then((function(t){Hu(e)&&!k||V(t,e)})).catch((function(e){return B(e)})),I({type:"reset"})}),[o,V,B,k]),G=(0,A.useCallback)((function(){if(L.current){I({type:"openDialog"}),E();var e={multiple:c,types:j};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){V(e,null),I({type:"closeDialog"})})).catch((function(e){Xu(e)?(C(e),I({type:"closeDialog"})):Qu(e)?(L.current=!1,D.current?(D.current.value=null,D.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 D.current&&(I({type:"openDialog"}),E(),D.current.value=null,D.current.click())}),[I,E,C,g,V,B,j,c]),K=(0,A.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,A.useCallback)((function(){I({type:"focus"})}),[]),Q=(0,A.useCallback)((function(){I({type:"blur"})}),[]),$=(0,A.useCallback)((function(){w||(Yu()?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,A.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=fs(e,ns);return ss(ss(ls({onKeyDown:ee(Vu(a,K)),onFocus:ee(Vu(i,X)),onBlur:ee(Vu(c,Q)),onClick:J(Vu(u,$)),onDragEnter:te(Vu(s,W)),onDragOver:te(Vu(l,z)),onDragLeave:te(Vu(f,Y)),onDrop:te(Vu(p,q)),role:"string"==typeof o&&""!==o?o:"presentation"},n,T),r||O?{}:{tabIndex:0}),d)}}),[T,K,X,Q,$,W,z,Y,q,O,x,r]),oe=(0,A.useCallback)((function(e){e.stopPropagation()}),[]),ae=(0,A.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=fs(e,rs);return ss(ss({},ls({accept:_,multiple:c,type:"file",style:{display:"none"},onChange:J(Vu(r,q)),onClick:J(Vu(o,oe)),tabIndex:-1},n,D)),a)}}),[D,n,c,q,r]);return ss(ss({},R),{},{isFocused:N&&!r,getRootProps:re,getInputProps:ae,rootRef:T,inputRef:D,open:J(G)})}(fs(e,es)),o=r.open,a=fs(r,ts);return(0,A.useImperativeHandle)(t,(function(){return{open:o}}),[o]),Z().createElement(A.Fragment,null,n(ss(ss({},a),{},{open:o})))}));ps.displayName="Dropzone";var ds={disabled:!1,getFilesFromEvent:function(e){return tu(this,void 0,void 0,(function(){return nu(this,(function(t){return uu(e)&&uu(e.dataTransfer)?[2,fu(e.dataTransfer,e.type)]:function(e){return uu(e)&&uu(e.target)}(e)?[2,su(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,lu(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};ps.defaultProps=ds,ps.propTypes={children:p().func,accept:p().objectOf(p().arrayOf(p().string)),multiple:p().bool,preventDropOnDocument:p().bool,noClick:p().bool,noKeyboard:p().bool,noDrag:p().bool,noDragEventsBubbling:p().bool,minSize:p().number,maxSize:p().number,maxFiles:p().number,disabled:p().bool,getFilesFromEvent:p().func,onFileDialogCancel:p().func,onFileDialogOpen:p().func,useFsAccessApi:p().bool,autoFocus:p().bool,onDragEnter:p().func,onDragLeave:p().func,onDragOver:p().func,onDrop:p().func,onDropAccepted:p().func,onDropRejected:p().func,onError:p().func,validator:p().func};const hs=ps;var ms={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function vs(e,t){switch(t.type){case"focus":return ss(ss({},e),{},{isFocused:!0});case"blur":return ss(ss({},e),{},{isFocused:!1});case"openDialog":return ss(ss({},ms),{},{isFileDialogActive:!0});case"closeDialog":return ss(ss({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ss(ss({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ss(ss({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ss({},ms);default:return e}}function gs(){}var ys,bs,ws,Os,xs,ks,Ss,Ps,_s,js,Es,Cs=i(69829),Ts=i(40953),Ds=V.ZP.section.withConfig({displayName:"StyledSection"})(ys||(ys=Y()(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),Ms=V.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(bs||(bs=Y()(["\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"])),G.Z,q.Z.space(-2)),Rs=V.ZP.span.withConfig({displayName:"StyledDropzoneBaseline"})(ws||(ws=Y()(["\n opacity: 0;\n"]))),Is=V.ZP.div.withConfig({displayName:"StyledDropzone"})(Os||(Os=Y()(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),G.Z,X.FS.color("backgroundItemHover")),Ns=V.ZP.div.withConfig({displayName:"StyledUploadInput"})(xs||(xs=Y()(["\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,qr.Z)(),(function(e){return e.immutable?"not-allowed":"pointer"}),X.FS.color("paper"),(function(e){return e.immutable?Ts.v.shade2(e):Ts.v.base(e)}),q.Z.space(-2),G.Z,q.Z.space(-3.1),q.Z.space(-1.5)),As=V.ZP.div.withConfig({displayName:"StyledUploadProgress"})(ks||(ks=Y()(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),q.Z.space(-2)),Zs=(0,V.ZP)(Cs.Fe).withConfig({displayName:"StyledUploadProgressText"})(Ss||(Ss=Y()(["\n && {\n ","\n }\n"])),(0,qr.Z)({fontSize:q.Z.font(-1)})),Ls=V.ZP.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(Ps||(Ps=Y()(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),q.Z.space(-2)),Fs=V.ZP.div.withConfig({displayName:"StyledView"})(_s||(_s=Y()(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),q.Z.space(-2));function Hs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Us(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hs(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Bs=function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose;return(0,ee.jsxs)(Ns,{immutable:n,children:[(0,ee.jsx)(hs,{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,ee.jsx)(Ds,{children:(0,ee.jsxs)(Is,Us(Us({},t()),{},{children:[(0,ee.jsx)("input",Us({},n())),js||(js=(0,ee.jsx)(W.Z,{icon:"arrow-to-top"})),Es||(Es=(0,ee.jsx)(Rs,{children:"Dropzone"}))]}))})}}),o&&(0,ee.jsx)(W.Z,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:"browse docs",iconOnly:!0})]})};var Ws=i(73906),zs=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 Ys=function(e){var t=e.file,n=e.text;return(0,ee.jsxs)(As,{children:[(0,ee.jsx)(Ws.Z,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,ee.jsxs)(Ls,{children:[(0,ee.jsx)(lr.Z,{position:at.Z.position.PREPEND}),(0,ee.jsxs)(Zs,{children:[n||"uploading"," (",zs(t.size),")"]})]})]})};var Vs=i(28247),qs=i(41291);function Gs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ks(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gs(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Xs=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,ee.jsxs)(Fs,{className:"StyledView",children:[(0,ee.jsx)(Ws.Z,Ks(Ks({alt:n.fileName},c&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,ee.jsxs)(Ms,{children:[!o&&(0,ee.jsx)(W.Z,{icon:"trash",onClick:function(){return a(null)},tabIndex:-1,title:i||"delete"}),(0,ee.jsx)(W.Z,{children:(0,ee.jsx)(qs.Z,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:Vs.Z.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function Qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qs(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Js=function(e){var t=e.value,n=e.textResources,r=e.onUpload,o=e.onChoose,a=(0,A.useRef)(t),i=(0,A.useState)({isUploading:!1,previewFile:null}),c=We()(i,2),u=c[0],s=c[1];return(0,A.useEffect)((function(){eu()(a.current,t)||s({isUploading:!1,previewFile:null}),a.current=t}),[t]),null!=t&&t.binaryLink?(0,ee.jsx)(Xs,$s($s({},e),{},{deleteTitle:n.delete,downloadTitle:n.download})):u.isUploading?(0,ee.jsx)(Ys,$s({file:u.previewFile,text:n.uploading},e)):(0,ee.jsx)(Bs,$s($s({},e),{},{onDrop:function(e){!function(e){s({isUploading:!0,previewFile:e})}(e),r(e)},onChoose:o}))};Js.defaultProps={textResources:{}};const el=Js;var tl=function(e){return(0,ee.jsx)(el,{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})};tl.defaultProps={options:{}};const nl=tl;var rl,ol,al=function(e){return-1*Math.abs(e)},il=V.ZP.input.withConfig({displayName:"StyledDurationEdit"})(rl||(rl=Y()(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),sa,(function(e){return e.width})),cl=V.ZP.label.withConfig({displayName:"StyledDurationEditFocusable"})(ol||(ol=Y()(["\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"])),q.Z.space(1),(function(e){return e.immutable?X.FS.color("textDisabled"):X.FS.color("text")}),(function(e){return e.immutable?"not-allowed":"default"})),ul=function(e){var t=e.value,n=e.immutable,r=e.onChange,o=e.options,a=vo.Z.millisecondsToDuration(t),i=(0,A.useState)(!1),c=We()(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=al(n),o=al(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,ee.jsxs)(ua,{onBlur:function(){s(!1)},immutable:n,children:[(0,ee.jsxs)(cl,{immutable:n,children:[(0,ee.jsx)(il,{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,ee.jsx)(B.ZP.Span,{children:o.hoursLabel})]}),(0,ee.jsxs)(cl,{immutable:n,children:[(0,ee.jsx)(il,{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,ee.jsx)(B.ZP.Span,{children:o.minutesLabel})]}),v&&(0,ee.jsxs)(cl,{immutable:n,children:[(0,ee.jsx)(il,{disabled:n,immutable:n,onChange:function(){},width:m(a.seconds),type:"number",value:a.seconds+""}),h()&&(0,ee.jsx)(B.ZP.Span,{children:o.secondsLabel})]})]})};ul.defaultProps={options:{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}};const sl=ul;var ll;const fl=V.ZP.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(ll||(ll=Y()(["\n &&&& {\n ","\n }\n"])),sa);const pl=Ac.Z.Debouncer((function(e){return(0,ee.jsxs)(ua,{immutable:e.immutable,children:[(0,ee.jsx)(fl,{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,ee.jsx)(fa,{children:(0,ee.jsx)(qs.Z,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));var dl=i(50008),hl=i.n(dl),ml=i(2205),vl=i.n(ml),gl=i(99489),yl=i.n(gl),bl=i(78718),wl=i.n(bl);function Ol(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ol(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ol(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kl(){kl=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)),yl()(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 vl()(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"!=hl()(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,i)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},kl.apply(this,arguments)}var Sl,Pl=["key","display","postcode","city","country","latitude","longitude"],_l=function(e){return e*Math.PI/180},jl=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:_l(a),longitude:_l(i)}};function El(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 Cl(){}function Tl(e){return!!(e||"").match(/\d/)}function Dl(e){return null==e}function Ml(e){return"number"==typeof e&&isNaN(e)}function Rl(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Il(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 Nl(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function Al(e,t){return Array(t+1).join(e)}function Zl(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."+Al("0",Math.abs(i))+o:i>=c?o+=Al("0",i-c):o=(o.substring(0,i)||"0")+"."+o.substring(i),n+o}function Ll(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=Il(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?".":"")+Nl(s[1]||"",t,n)}function Fl(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 Hl(e){return Math.max(e.selectionStart,e.selectionEnd)}function Ul(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Bl(e,t,n,r){var o,a,i,c=e.length;if(o=t,a=0,i=c,t=Math.min(Math.max(o,a),i),"left"===r){for(;t>=0&&!n[t];)t--;-1===t&&(t=n.indexOf(!0))}else{for(;t<=c&&!n[t];)t++;t>c&&(t=n.lastIndexOf(!0))}return-1===t&&(t=c),t}function Wl(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(Tl(e[n])||Tl(e[n-1]));return t}function zl(e,t,n,r,o,a){void 0===a&&(a=Cl);var i,c,u=(0,A.useRef)(),s=(i=function(e){var t,a;return Dl(e)||Ml(e)?(a="",t=""):"number"==typeof e||n?(a="number"==typeof e?Zl(e):e,t=r(a)):(a=o(e,void 0),t=e),{formattedValue:t,numAsString:a}},(c=(0,A.useRef)(i)).current=i,(0,A.useRef)((function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return c.current.apply(c,e)})).current),l=(0,A.useState)((function(){return s(t)})),f=l[0],p=l[1];return(0,A.useMemo)((function(){Dl(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 Yl(e){return e.replace(/[^0-9]/g,"")}function Vl(e){return e}function ql(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=Vl);var c=e.removeFormatting;void 0===c&&(c=Yl);var u=e.defaultValue,s=e.valueIsNumericString,l=e.onValueChange,f=e.isAllowed,p=e.onChange;void 0===p&&(p=Cl);var d=e.onKeyDown;void 0===d&&(d=Cl);var h=e.onMouseUp;void 0===h&&(h=Cl);var m=e.onFocus;void 0===m&&(m=Cl);var v=e.onBlur;void 0===v&&(v=Cl);var g=e.value,y=e.getCaretBoundary;void 0===y&&(y=Wl);var b=e.isValidInputCharacter;void 0===b&&(b=Tl);var w=El(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter"]),O=zl(g,u,Boolean(s),i,c,l),x=O[0],k=x.formattedValue,S=x.numAsString,P=O[1],_=(0,A.useRef)();(0,A.useEffect)((function(){var e=i(S);if(void 0===_.current||e!==_.current){var t=T.current,n=c(e,void 0);F({formattedValue:e,numAsString:n,input:t,setCaretPosition:!0,source:Sl.props,event:void 0})}}));var j=(0,A.useState)(!1),E=j[0],C=j[1],T=(0,A.useRef)(null),D=(0,A.useRef)({setCaretTimeout:null,focusTimeout:null});(0,A.useEffect)((function(){return C(!0),function(){clearTimeout(D.current.setCaretTimeout),clearTimeout(D.current.focusTimeout)}}),[]);var M=i,R=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},I=function(e,t,n){Fl(e,t),D.current.setCaretTimeout=setTimeout((function(){e.value===n&&Fl(e,t)}),0)},N=function(e,t,n){return Bl(e,t,y(e),n)},L=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=Bl(t,o,r)},F=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=Hl(n);n.value=t,c=L(u,t,s)}n.value=t,r&&void 0!==c&&I(n,c,t)}t!==k&&function(e,t){_.current=e.formattedValue,P(e,t)}(R(t,i),{event:a,source:o})},H=!E||"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=M(a);if(a=c(i,void 0),f&&!f(R(i,a))){var u=t.target,s=Hl(u),l=L(e,k,s);return I(u,l,k),!1}return F({formattedValue:i,numAsString:a,inputValue:e,event:t,source:n,setCaretPosition:!0,input:t.target}),!0})(e.target.value,e,Sl.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=N(i,t,"ArrowLeft"===r?"left":"right");else"Delete"!==r||b(i[t])?"Backspace"!==r||b(i[t])||(c=N(i,t,"left")):c=N(i,t,"right");c!==t&&I(n,c,i),e.isUnitTestRun&&I(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=N(o,n);a!==n&&I(t,a,o)}h(e)},onFocus:function(e){e.persist&&e.persist();var t=e.target;T.current=t,D.current.focusTimeout=setTimeout((function(){var n=t.selectionStart,r=t.selectionEnd,o=t.value;void 0===o&&(o="");var a=N(o,n);a===n||0===n&&r===o.length||I(t,a,o),m(e)}),0)},onBlur:function(e){T.current=null,clearTimeout(D.current.focusTimeout),clearTimeout(D.current.setCaretTimeout),v(e)}});if("text"===n)return o?Z().createElement(Z().Fragment,null,o(k,w)||null):Z().createElement("span",Object.assign({},w,{ref:a}),k);if(r){var B=r;return Z().createElement(B,Object.assign({},U,{ref:a}))}return Z().createElement("input",Object.assign({},U,{ref:a}))}function Gl(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=Kl(t),s=u.thousandSeparator,l=u.decimalSeparator,f=0!==n&&-1!==e.indexOf(".")||n&&r,p=Il(e,i),d=p.beforeDecimal,h=p.afterDecimal,m=p.addNegation;return void 0!==n&&(h=Nl(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 Kl(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 Xl(e,t,n){var r;void 0===t&&(t=Ul(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=Kl(n),d=p.allowedDecimalSeparators,h=p.decimalSeparator,m=e[f]===h;if(Tl(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]|"+Rl(e),t?"g":void 0)}(h,!0))||[]).join("")).indexOf(h),C=Il(e=e.replace(new RegExp(Rl(h),"g"),(function(e,t){return t===E?".":""})),o),T=C.beforeDecimal,D=C.afterDecimal,M=C.addNegation;return s.end-s.start<u.end-u.start&&""===T&&m&&!parseFloat(D)&&(e=M?"-":""),e}function Ql(e){var t=(e=function(e){var t=Kl(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=Cl);var a=e.onBlur;void 0===a&&(a=Cl);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=El(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=function(t){return Gl(t,e)},v=function(t,n){return Xl(t,n,e)},g=p;Dl(f)?Dl(l)||(g=null!=p?p:"number"==typeof l):g=null!=p?p:"number"==typeof f;var y=function(e){return Dl(e)||Ml(e)?e:("number"==typeof e&&(e=Zl(e)),g&&"number"==typeof c?Ll(e,c,Boolean(u)):e)},b=zl(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||Tl(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&&Fl(r,1);var d=Kl(e),h=d.decimalSeparator,m=d.allowedDecimalSeparators;"Backspace"===a&&p[l-1]===h&&c&&u&&(Fl(r,l-1),t.preventDefault()),(null==m?void 0:m.includes(a))&&p[l]===h&&Fl(r,l+1);var v=!0===i?",":i;"Backspace"===a&&p[l-1]===v&&Fl(r,l-1),"Delete"===a&&p[l]===v&&Fl(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=Ll(n,c,u)),n!==O){var o=Gl(n,e);k({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:Sl.event})}a(t)}})}function $l(e){var t=Ql(e);return Z().createElement(ql,Object.assign({},t))}!function(e){e.event="event",e.props="prop"}(Sl||(Sl={}));var Jl,ef=["immutable"];function tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const nf=(0,V.ZP)((function(e){e.immutable;var t=yo()(e,ef);return(0,ee.jsx)($l,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tf(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(Jl||(Jl=Y()(["\n &&&& {\n ","\n }\n"])),sa);function rf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function of(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rf(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var af=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},cf=function(e){return null!=e&&!isNaN(parseFloat(e))},uf=function(e,t,n){return!cf(n)||!(cf(t)&&n>t)&&!(cf(e)&&n<e)},sf=function(e,t){return function(n){var r=n.floatValue;return af(r)<af(e)||uf(e,t,r)}};const lf=(0,v.ZP)(Ac.Z.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=of(of({isAllowed:sf(u,m),allowNegative:!!l},isNaN(c)?{}:{decimalScale:c}),{},{fixedDecimalScale:!!f});return(0,ee.jsx)(ua,{immutable:e.immutable,children:(0,ee.jsx)(nf,of(of({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&uf(u,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:e.value,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&&!uf(u,m,r)&&(t.target.value=null)}}))})}),800));const ff=Ac.Z.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;return(0,ee.jsx)(ua,{immutable:o,children:(0,ee.jsx)(nf,{isAllowed:sf(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),uf(s,l,r)&&n(o)},value:t,allowLeadingZeros:p,suffix:d,format:f,placeholder:c})})}),800);var pf,df,hf,mf=V.ZP.div.withConfig({displayName:"StyledWrapper"})(pf||(pf=Y()(["\n display: flex;\n justify-content: stretch;\n"]))),vf=V.ZP.div.withConfig({displayName:"StyledLocationWrapper"})(df||(df=Y()(["\n flex-grow: 1;\n"]))),gf=V.ZP.div.withConfig({displayName:"StyledDistanceWrapper"})(hf||(hf=Y()(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),X.FS.color("border"),q.Z.space(-.8),q.Z.space(.5));function yf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yf(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const wf=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?wl()(e,Pl):void 0}(r),g=function(e){return e?e.map(jl):[]}(c);return(0,ee.jsxs)(mf,{children:[(0,ee.jsx)(vf,{children:(0,ee.jsx)(Hr,{id:t,immutable:n,onChange:function(e){o(bf(bf({},function(e,t){return t?xl(xl({},e),wl()(t,Pl)):_t()(e,Pl)}(r,e)),{},{latitudeField:l,longitudeField:f}))},isLoading:u,options:g,searchOptions:function(e){var t=function(e){if(!e)return null;var t=ct()(e.matchAll(kl(/([\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 xl(xl({},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,ee.jsx)(gf,{children:(0,ee.jsx)(ff,{value:m,onChange:function(e){o(bf(bf({},r),{},{distance:e}))},immutable:n,options:{minValue:0,maxValue:100,suffix:" ".concat(h)}})})]})};var Of,xf=(0,A.lazy)((function(){return i.e(85).then(i.bind(i,17676))})),kf=function(e){var t=e.onChange,n=e.immutable,r=e.value,o=e.options;if(n)return(0,ee.jsx)(B.ZP.Span,{children:(0,ee.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})});var a=o||{},i=a.contentLang,c=a.ckEditorConfig;return(0,ee.jsx)(A.Suspense,{fallback:Of||(Of=(0,ee.jsx)("i",{})),children:(0,ee.jsx)(xf,{onChange:function(e){t&&t(e)},value:r,contentLang:i,ckEditorConfig:c})})};kf.defaultProps={value:""};const Sf=kf;var Pf,_f,jf,Ef=i(58808),Cf=i.n(Ef),Tf=V.ZP.div.withConfig({displayName:"StyledLocationEdit"})(Pf||(Pf=Y()(["\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"])),ca,q.Z.space(-2),q.Z.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?wr()(n,"colors.textDisabled"):wr()(n,"colors.text")}),sa,X.FS.color("paper"),X.FS.color("signal.info"),X.FS.color("secondaryLight"),X.FS.color("backgroundItemHover"));function Df(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Df(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Df(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Rf=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,ee.jsxs)(B.ZP.Span,{children:[r," ",o," ",a," ",i]})},s=function(e){return function(n,o){var a=o.newValue;t(Mf(Mf({},r),{},l()({},e,a)))}},f=function(e,n){var r=n.suggestion;t(r)},p=function(e){return function(t){var r=t.value;n.fetchSuggestions(l()({},e,r),n.locationValues.country)}},d={id:o,value:r.postcode||"",onChange:s("postcode"),disabled:a},h={value:r.city||"",onChange:s("city"),disabled:a};return(0,ee.jsx)(Qe,{children:function(e){var t,o,s,l=e.focused,m=e.getRef;return(0,ee.jsxs)(Tf,{immutable:a,name:i,ref:m,children:[(0,ee.jsx)(Cf(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:p("postcode"),getSuggestionValue:c("postcode"),renderSuggestion:u,onSuggestionsClearRequested:function(){},inputProps:d,onSuggestionSelected:f,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(l||r.city||r.postcode)&&(_f||(_f=(0,ee.jsx)(B.ZP.Span,{children:"/"}))),(0,ee.jsx)(Cf(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:p("city"),getSuggestionValue:c("city"),renderSuggestion:u,onSuggestionsClearRequested:function(){},inputProps:h,onSuggestionSelected:f,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(0,ee.jsxs)(fa,{children:[n.isLoading&&(jf||(jf=(0,ee.jsx)(lr.Z,{size:"1.8rem"}))),(s=n.locationValues,Boolean(s.city||s.postcode)&&(0,ee.jsx)(qs.Z,{href:(t=n.locationValues,o=t?Object.values(t).filter(Boolean).map((function(e){return"object"===hl()(e)&&e.display?e.display:e})).join("+"):"","".concat("https://www.google.com/maps/search/?api=1&query=").concat(o)),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:n.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};function If(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Nf=function(e){return(0,ee.jsx)(Hr,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?If(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):If(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 Af(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Zf=function(e){return(0,ee.jsx)(Hr,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Af(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Af(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};var Lf,Ff=i(48926),Hf=i.n(Ff),Uf=i(87757),Bf=i.n(Uf);const Wf=V.ZP.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(Lf||(Lf=Y()(["\n &&&& {\n ","\n }\n"])),sa);const zf=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.onLibLoaded,c=wr()(e,"options.defaultCountry")||"CH",u=(0,A.useState)(null),s=We()(u,2),l=s[0],f=s[1],p=Z().createRef();(0,A.useEffect)((function(){(function(){var e=Hf()(Bf().mark((function e(){var t;return Bf().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,f(t),a&&a();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[a]);var d=function(e,t){var n=e.substring(0,t-1).match(/\s/g);return(null==n?void 0:n.length)||0},h=n&&null!=l&&l.AsYouType?new l.AsYouType(c).input(n):n||"";return(0,ee.jsxs)(ua,{immutable:r,children:[(0,ee.jsx)(Wf,{disabled:r||!l,id:o,name,onChange:function(e){var r=e.target.value,o=l?l.parseNumber(r,c):r,a=Et()(o)?new l.AsYouType(c).input(r).replace(/\s/g,""):l.formatNumber(o,"E.164");t(a);var i=e.target.selectionStart;!function(e,t,n){if(n&&e.length!==n){var r=new l.AsYouType(c).input(t),o=new l.AsYouType(c).input(e),a=d(r,n),i=d(o,n)-a;window.requestAnimationFrame(function(){var e=n+i;this.setSelectionRange(e,e)}.bind(p.current))}}(r,n,i)},immutable:r||!l,ref:p,value:h}),h&&(0,ee.jsx)(fa,{children:(0,ee.jsx)(qs.Z,{href:"tel:".concat(n),icon:"phone",tabIndex:-1,target:"_blank",neutral:!0})})]})};function Yf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yf(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qf=function(e){return e.map((function(e){return wl()(e,["key","display"])}))};const Gf=function(e){var t=e.id,n=e.immutable,r=e.onChange,o=e.options.isMulti,a=e.value;return(0,ee.jsx)(Hr,{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 Vf(Vf({},e),t.includes(e.key)?{selected:!0}:{selected:!1})}));r({options:n})},value:qf(a.options.filter((function(e){return e.selected}))),openMenuOnClick:!0,options:qf(a.options)})};function Kf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Xf=function(e){return(0,ee.jsx)(Hr,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kf(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!1,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Qf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const $f=function(e){return(0,ee.jsx)(Hr,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qf(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Jf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 ep=function(e){return(0,ee.jsx)(Hr,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jf(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jf(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 tp=Ac.Z.Debouncer((function(e){return(0,ee.jsx)(ua,{immutable:e.immutable,children:(0,ee.jsx)(fl,{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 np=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)};var rp,op,ap,ip=(0,V.iv)(rp||(rp=Y()(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),sa),cp=V.ZP.div.withConfig({displayName:"StyledSizeWrapper"})(op||(op=Y()(["\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"])),ip),up=V.ZP.textarea.withConfig({displayName:"StyledTextarea"})(ap||(ap=Y()(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: 4em;\n }\n"])),ip);function sp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sp(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const fp=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,a=e.disabled,i=e.immutable,c=(0,A.useState)(t),u=We()(c,2),s=u[0],l=u[1],f=!np(),p=(0,A.useCallback)(Mt()(l,500,{trailing:!0}),[]);return(0,A.useEffect)((function(){f&&p(t)}),[t,f,p]),(0,ee.jsx)(cp,lp(lp({"data-testid":"replicated-test"},f?{"data-replicated-value":s}:{}),{},{children:(0,ee.jsx)(up,{value:t,name:r,id:o,onChange:n,disabled:a,immutable:i,rows:"1"})}))};const pp=Ac.Z.Debouncer((function(e){return(0,ee.jsx)(ua,{immutable:e.immutable,children:(0,ee.jsx)(fp,{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 dp;const hp=V.ZP.input.withConfig({displayName:"StyledTimeEdit"})(dp||(dp=Y()(["\n &&&& {\n ","\n }\n"])),sa);function mp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mp(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const gp=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.name,i=Uc(n,t),c=i.inputProps,u=i.clearButtonProps,s=n&&!r;return(0,ee.jsxs)(ua,{immutable:r,children:[(0,ee.jsx)(hp,vp({type:"text",disabled:r,id:o,immutable:r,name:a},c)),s&&(0,ee.jsx)(fa,{children:(0,ee.jsx)(Yn.Z,vp(vp({icon:"times"},u),{},{tabIndex:-1}))})]})};var yp;const bp=V.ZP.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(yp||(yp=Y()(["\n &&&& {\n ","\n }\n"])),sa);const wp=Ac.Z.Debouncer((function(e){return(0,ee.jsxs)(ua,{immutable:e.immutable,children:[(0,ee.jsx)(bp,{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,ee.jsx)(fa,{children:(0,ee.jsx)(qs.Z,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));function Op(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Op(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Op(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kp={boolean:zr,"boolean-select":Ur,choice:to,code:ho,date:Xc,datetime:$c,document:nl,duration:sl,email:pl,geosearch:wf,html:Sf,integer:ff,location:Rf,"multi-remote":Nf,"multi-select":Zf,number:lf,phone:zf,"pseudo-select":Gf,remote:Xf,"search-filter":$f,"single-select":ep,string:tp,text:pp,url:wp,time:gp};const Sp=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(kp[t]){var s=kp[t],l=xp(xp({},_t()(a,"onChange")),{},{onBlur:function(){"function"==typeof(null==a?void 0:a.onBlur)&&a.onBlur(n)}});return(0,ee.jsx)("div",xp(xp({},l),{},{"data-cy":"form-field",children:(0,ee.jsx)(s,xp(xp({value:n,onChange:null==a?void 0:a.onChange},Et()(r)?{}:{options:r}),{},{id:o,immutable:u,placeholder:i,events:a}))}))}return console.log("No type-editor defined for component type",t),null};function Pp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pp(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const jp=function(e){return(0,ee.jsx)(pa,{children:(0,ee.jsx)(Sp,_p({componentType:e.type},_t()(e,"type")))})};var Ep,Cp,Tp=V.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(Ep||(Ep=Y()(["\n && {\n ","\n }\n"])),ca);const Dp=function(e){var t=e.verifyCode,n=e.intl,r=(0,A.useState)(null),o=We()(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)};return(0,H.z)(s),(0,ee.jsxs)(ee.Fragment,{children:[Cp||(Cp=(0,ee.jsx)(B.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.verificationText"})})),(0,ee.jsxs)("form",{onSubmit:s,children:[(0,ee.jsx)(St,{hasValue:Boolean(a),id:"verification-input",label:c("client.two-factor-connector.verificationInputLabel"),children:(0,ee.jsx)(Tp,{children:(0,ee.jsx)(jp,{type:"integer",value:a,events:{onChange:i},options:{format:"### ###",allowLeadingZeros:!0}})})}),(0,ee.jsx)(K,{children:(0,ee.jsx)(W.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",type:"submit",disabled:!u})})]})]})};var Mp={verifyCode:function(e){return{type:_,payload:{userCode:e}}}};const Rp=(0,g.connect)((function(e,t){return{}}),Mp)((0,v.ZP)(Dp));var Ip,Np,Ap,Zp,Lp,Fp,Hp=0,Up=1,Bp=2,Wp=3;const zp=function(e){var t=e.initialize,n=e.stage;(0,A.useEffect)((function(){t()}),[t]);return(0,ee.jsxs)(ee.Fragment,{children:[Fp||(Fp=(0,ee.jsx)(m.Z.Notifications,{})),function(){switch(n){case Hp:return Ip||(Ip=(0,ee.jsx)(Ue,{}));case Up:return Np||(Np=(0,ee.jsx)(Ze,{}));case Bp:return Ap||(Ap=(0,ee.jsx)(Rp,{}));case Wp:return Zp||(Zp=(0,ee.jsx)(re,{}));default:return Lp||(Lp=(0,ee.jsx)(L.Z,{}))}}()]})};var Yp={initialize:T};const Vp=(0,g.connect)((function(e){return{stage:e.twoFactorConnector.stage}}),Yp)((0,v.ZP)(zp));var qp,Gp=i(81770);function Kp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kp(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qp=function(e){return function(t){return Xp(Xp({},t),{},{stage:e})}},$p=(qp={},l()(qp,b,Gp.Z.singleTransferReducer("twoFactorActive")),l()(qp,w,Gp.Z.singleTransferReducer("secret")),l()(qp,O,Gp.Z.singleTransferReducer("username")),l()(qp,E,Gp.Z.singleTransferReducer("setupSuccessful")),l()(qp,S,Qp(0)),l()(qp,P,Qp(1)),l()(qp,k,Qp(2)),l()(qp,C,Qp(3)),qp),Jp={stage:null,twoFactorActive:null,secret:null,username:null,setupSuccessful:null};var ed=i(34857),td=i(81719),nd=i(54159),rd=Bf().mark(vd),od=Bf().mark(yd),ad=Bf().mark(bd),id=Bf().mark(Od),cd=Bf().mark(xd),ud=Bf().mark(kd),sd=Bf().mark(Sd),ld=Bf().mark(Pd),fd=Bf().mark(_d),pd="relTwo_step_login_status",dd=function(e){return e.twoFactorConnector.username},hd=function(e){return e.twoFactorConnector.secret},md=function(e){return e.input};function vd(){var e,t,n,r,o,a;return Bf().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,ed.Ys)(md);case 2:if(e=i.sent,e.secret){i.next=14;break}return i.next=7,(0,ed.Ys)(dd);case 7:return t=i.sent,i.next=10,(0,ed.RE)(td.Z.requestSaga,"principals/".concat(t,"/two-factor"),{method:"GET"});case 10:return n=i.sent,r=n.body,o=r.secret,a=r.totpUri,i.next=14,(0,ed.gz)(M({secret:o,uri:a}));case 14:return i.next=16,(0,ed.gz)({type:P});case 16:case"end":return i.stop()}}),rd)}function gd(e,t){return nd.Z.executeRequest(e,t).then(nd.Z.extractBody)}function yd(e,t,n,r){var o,a;return Bf().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o={secret:e,userCode:t,username:n,password:r},i.next=3,(0,ed.RE)(gd,"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 a=i.sent,i.next=6,(0,ed.gz)(N(wr()(a,"TWOSTEPLOGIN_ACTIVATION.success",!1)));case 6:case"end":return i.stop()}}),od)}function bd(e,t,n){var r;return Bf().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,ed.RE)(td.Z.requestSaga,"principals/".concat(e,"/two-factor"),{method:"POST",body:{secret:t,code:n},acceptedStatusCodes:[400]});case 2:return r=o.sent,o.next=5,(0,ed.gz)(N(204===r.status));case 5:case"end":return o.stop()}}),ad)}function wd(e){var t=e.payload.userCode;return Bf().mark((function e(){var n,r,o,a,i;return Bf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ed.Ys)(dd);case 2:return n=e.sent,e.next=5,(0,ed.Ys)(hd);case 5:return r=e.sent,o=r.secret,e.next=9,(0,ed.Ys)(md);case 9:if(a=e.sent,i=a.password,!a.forced){e.next=17;break}return e.next=15,(0,ed.RE)(yd,o,t,n,i);case 15:e.next=19;break;case 17:return e.next=19,(0,ed.RE)(bd,n,o,t);case 19:return e.next=21,(0,ed.gz)({type:C});case 21:case"end":return e.stop()}}),e)}))()}function Od(){var e,t;return Bf().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,ed.RE)(kd);case 2:return n.next=4,(0,ed.Ys)(md);case 4:if(e=n.sent,!(t=e.secret)){n.next=9;break}return n.next=9,(0,ed.gz)(M(t));case 9:return n.next=11,(0,ed.gz)(I());case 11:case"end":return n.stop()}}),id)}function xd(){return Bf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ed.gz)(h.Z.fireExternalEvent("onSuccess"));case 2:case"end":return e.stop()}}),cd)}function kd(){var e,t,n,r,o;return Bf().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,ed.RE)(Sd);case 2:return e=a.sent,a.next=5,(0,ed.gz)(R(e));case 5:return t='username === "'.concat(e,'"'),a.next=8,(0,ed.RE)(td.Z.fetchEntitiesPage,"Principal",{where:t,paths:[pd]});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=wr()(n,"[0].paths.".concat(pd,".value.key")),o="1"===r,a.next=15,(0,ed.gz)(D(o));case 15:case"end":return a.stop()}}),ud)}function Sd(){var e,t,n;return Bf().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ed.Ys)(md);case 2:if(e=r.sent,!(t=e.username)){r.next=8;break}return r.abrupt("return",t);case 8:return r.next=10,(0,ed.RE)(td.Z.requestSaga,"principals");case 10:return n=r.sent,r.abrupt("return",n.body.username);case 12:case"end":return r.stop()}}),sd)}function Pd(){return Bf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ed.gz)(h.Z.fireExternalEvent("onResize"));case 2:case"end":return e.stop()}}),ld)}function _d(){return Bf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ed.$6)([(0,ed.Fm)(x,vd),(0,ed.Fm)(_,wd),(0,ed.Fm)(y,Od),(0,ed.Fm)(j,xd),(0,ed.Fm)(S,Pd),(0,ed.Fm)(P,Pd),(0,ed.Fm)(k,Pd),(0,ed.Fm)(C,Pd)]);case 2:case"end":return e.stop()}}),fd)}const jd={twoFactorConnector:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jp,t=arguments.length>1?arguments[1]:void 0,n=$p[t.type];return n?n(e,t):e}};var Ed,Cd=[_d];function Td(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Td(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Td(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Md="two-factor-connector",Rd=function(e,t,n,r){var o=Ed||(Ed=(0,ee.jsx)(Vp,{})),a=u.Z.createStore(jd,Cd,t,Md);return m.Z.addToStore(a,!0),d.Z.addToStore(a,!0,["console","remote","notification"]),h.Z.addToStore(a,(function(e){return u.Z.getEvents(Id,e.input)})),u.Z.createApp(Md,o,a,{input:t,events:n,actions:[],publicPath:r,textResourceModules:["component","common",Md]})},Id=["onSuccess","onCancel","onResize"],Nd=function(e){return u.Z.useApp({initApp:Rd,props:e,packageName:Md,externalEvents:Id}).component};Nd.propTypes=Dd(Dd({},Id.reduce((function(e,t){return Dd(Dd({},e),{},l()({},t,p().func))}),{})),{},{username:p().string,password:p().string,secret:p().shape({secret:p().string.isRequired,uri:p().string.isRequired}),forced:p().bool});var Ad=u.Z.createBundleableApp(Md,Rd,Nd);u.Z.registerAppInRegistry(Ad.name,Ad.init)})(),c})()));