@zealicsolutions/web-ui 0.3.276 → 0.3.278
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/containers/index.d.ts +2 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/molecules/index.d.ts +1 -1
- package/dist/esm/containers/index.d.ts +2 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/molecules/index.d.ts +1 -1
- package/dist/index.d.ts +19 -2
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
@@ -128,7 +128,7 @@ function ih(e){return"[object Object]"===Object.prototype.toString.call(e)}funct
|
|
128
128
|
Licensed under the MIT License (MIT), see
|
129
129
|
http://jedwatson.github.io/classnames
|
130
130
|
*/
|
131
|
-
!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&e.push(a)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var s in o)t.call(o,s)&&o[s]&&e.push(s)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(jw);var Rw=jw.exports;function Iw(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function _w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Lw(e,t){if(e){if("string"==typeof e)return _w(e,t);var n={}.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)?_w(e,t):void 0}}function $w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||Lw(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 Vw(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var zw,Ww,Uw,Hw=(zw=Mw(),Ww="undefined"!=typeof window?window:{},Uw={animationend:Vw("Animation","AnimationEnd"),transitionend:Vw("Transition","TransitionEnd")},zw&&("AnimationEvent"in Ww||delete Uw.animationend.animation,"TransitionEvent"in Ww||delete Uw.transitionend.transition),Uw),qw={};if(Mw()){var Kw=document.createElement("div");qw=Kw.style}var Xw={};function Gw(e){if(Xw[e])return Xw[e];var t=Hw[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in qw)return Xw[e]=t[i],Xw[e]}return""}var Yw=Gw("animationend"),Zw=Gw("transitionend"),Jw=!(!Yw||!Zw),Qw=Yw||"animationend",eD=Zw||"transitionend";function tD(e,t){return e?"object"===sw(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}function nD(t){var n=e.useRef(!1),r=$w(e.useState(t),2),o=r[0],i=r[1];return e.useEffect((function(){return n.current=!1,function(){n.current=!0}}),[]),[o,function(e,t){t&&n.current||i(e)}]}var rD=Mw()?m:l,oD=["prepare","start","active","end"];function iD(e){return"active"===e||"end"===e}var aD=function(t,n){var r=$w(nD("none"),2),o=r[0],i=r[1],a=function(){var t=e.useRef(null);function n(){Sw.cancel(t.current)}return e.useEffect((function(){return function(){n()}}),[]),[function e(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var i=Sw((function(){o<=1?r({isCanceled:function(){return i!==t.current}}):e(r,o-1)}));t.current=i},n]}(),s=$w(a,2),l=s[0],u=s[1];return rD((function(){if("none"!==o&&"end"!==o){var e=oD.indexOf(o),t=oD[e+1],r=n(o);false===r?i(t,!0):l((function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[t,o]),e.useEffect((function(){return function(){u()}}),[]),[function(){i("prepare",!0)},o]};function sD(t,n,r,o){var i=o.motionEnter,a=void 0===i||i,s=o.motionAppear,u=void 0===s||s,c=o.motionLeave,p=void 0===c||c,f=o.motionDeadline,h=o.motionLeaveImmediately,m=o.onAppearPrepare,v=o.onEnterPrepare,g=o.onLeavePrepare,y=o.onAppearStart,b=o.onEnterStart,x=o.onLeaveStart,C=o.onAppearActive,w=o.onEnterActive,D=o.onLeaveActive,E=o.onAppearEnd,k=o.onEnterEnd,S=o.onLeaveEnd,O=o.onVisibleChanged,A=$w(nD(),2),B=A[0],T=A[1],F=$w(nD("none"),2),P=F[0],M=F[1],N=$w(nD(null),2),j=N[0],R=N[1],I=d(!1),_=d(null);function L(){return r()}var $=d(!1);function V(e){var t=L();if(!e||e.deadline||e.target===t){var n,r=$.current;"appear"===P&&r?n=null==E?void 0:E(t,e):"enter"===P&&r?n=null==k?void 0:k(t,e):"leave"===P&&r&&(n=null==S?void 0:S(t,e)),"none"!==P&&r&&!1!==n&&(M("none",!0),R(null,!0))}}var z=function(t){var n=d(),r=d(t);r.current=t;var o=e.useCallback((function(e){r.current(e)}),[]);function i(e){e&&(e.removeEventListener(eD,o),e.removeEventListener(Qw,o))}return e.useEffect((function(){return function(){i(n.current)}}),[]),[function(e){n.current&&n.current!==e&&i(n.current),e&&e!==n.current&&(e.addEventListener(eD,o),e.addEventListener(Qw,o),n.current=e)},i]}(V),W=$w(z,1)[0],U=e.useMemo((function(){var e,t,n;switch(P){case"appear":return uw(e={},"prepare",m),uw(e,"start",y),uw(e,"active",C),e;case"enter":return uw(t={},"prepare",v),uw(t,"start",b),uw(t,"active",w),t;case"leave":return uw(n={},"prepare",g),uw(n,"start",x),uw(n,"active",D),n;default:return{}}}),[P]),H=$w(aD(P,(function(e){if("prepare"===e){var t=U.prepare;return!!t&&t(L())}var n;K in U&&R((null===(n=U[K])||void 0===n?void 0:n.call(U,L(),null))||null);return"active"===K&&(W(L()),f>0&&(clearTimeout(_.current),_.current=setTimeout((function(){V({deadline:!0})}),f))),true})),2),q=H[0],K=H[1],X=iD(K);$.current=X,rD((function(){T(n);var e,r=I.current;(I.current=!0,t)&&(!r&&n&&u&&(e="appear"),r&&n&&a&&(e="enter"),(r&&!n&&p||!r&&h&&!n&&p)&&(e="leave"),e&&(M(e),q()))}),[n]),l((function(){("appear"===P&&!u||"enter"===P&&!a||"leave"===P&&!p)&&M("none")}),[u,a,p]),l((function(){return function(){I.current=!1,clearTimeout(_.current)}}),[]);var G=e.useRef(!1);l((function(){B&&(G.current=!0),void 0!==B&&"none"===P&&((G.current||B)&&(null==O||O(B)),G.current=!0)}),[B,P]);var Y=j;return U.prepare&&"start"===K&&(Y=dw({transition:"none"},Y)),[P,K,Y,null!=B?B:n]}var lD=function(t){vw(r,e.Component);var n=xw(r);function r(){return fw(this,r),n.apply(this,arguments)}return mw(r,[{key:"render",value:function(){return this.props.children}}]),r}();var uD=function(t){var n=t;function r(e){return!(!e.motionName||!n)}"object"===sw(t)&&(n=t.transitionSupport);var o=e.forwardRef((function(t,n){var o=t.visible,i=void 0===o||o,a=t.removeOnLeave,s=void 0===a||a,l=t.forceRender,u=t.children,c=t.motionName,p=t.leavedClassName,f=t.eventProps,h=r(t),m=d(),v=d();var g=$w(sD(h,i,(function(){try{return m.current instanceof HTMLElement?m.current:Aw(v.current)}catch(e){return null}}),t),4),y=g[0],b=g[1],x=g[2],C=g[3],w=e.useRef(C);C&&(w.current=!0);var D,E=e.useCallback((function(e){m.current=e,Bw(n,e)}),[n]),k=dw(dw({},f),{},{visible:i});if(u)if("none"!==y&&r(t)){var S,O;"prepare"===b?O="prepare":iD(b)?O="active":"start"===b&&(O="start"),D=u(dw(dw({},k),{},{className:Rw(tD(c,y),(S={},uw(S,tD(c,"".concat(y,"-").concat(O)),O),uw(S,c,"string"==typeof c),S)),style:x}),E)}else D=C?u(dw({},k),E):!s&&w.current?u(dw(dw({},k),{},{className:p}),E):l?u(dw(dw({},k),{},{style:{display:"none"}}),E):null;else D=null;e.isValidElement(D)&&Fw(D)&&(D.ref||(D=e.cloneElement(D,{ref:E})));return e.createElement(lD,{ref:v},D)}));return o.displayName="CSSMotion",o}(Jw);function cD(e){var t;return dw(dw({},t=e&&"object"===sw(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function dD(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(cD)}function pD(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=dD(e),a=dD(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var s=a[i];if(s.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return dw(dw({},e),{},{status:"add"})}))),r=i),n.push(dw(dw({},s),{},{status:"keep"})),r+=1,t=!0;break}}t||n.push(dw(dw({},e),{},{status:"remove"}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return dw(dw({},e),{},{status:"add"})}))));var s={};n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1}));var l=Object.keys(s).filter((function(e){return s[e]>1}));return l.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||"remove"!==r}))).forEach((function(t){t.key===e&&(t.status="keep")}))})),n}var fD=["component","children","onVisibleChanged","onAllRemoved"],hD=["status"],mD=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var vD=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:uD,r=function(t){vw(o,e.Component);var r=xw(o);function o(){var e;fw(this,o);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).state={keyEntities:[]},e.removeKey=function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:dw(dw({},e),{},{status:"removed"})}));return e.setState({keyEntities:n}),n.filter((function(e){return"removed"!==e.status})).length},e}return mw(o,[{key:"render",value:function(){var t=this,r=this.state.keyEntities,o=this.props,i=o.component,a=o.children,s=o.onVisibleChanged,l=o.onAllRemoved,u=pw(o,fD),c=i||e.Fragment,d={};return mD.forEach((function(e){d[e]=u[e],delete u[e]})),delete u.keys,e.createElement(c,u,r.map((function(r){var o=r.status,i=pw(r,hD),u="add"===o||"keep"===o;return e.createElement(n,M({},d,{key:i.key,visible:u,eventProps:i,onVisibleChanged:function(e){(null==s||s(e,{key:i.key}),e)||0===t.removeKey(i.key)&&l&&l()}}),a)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=dD(n);return{keyEntities:pD(r,o).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||"removed"!==t.status||"remove"!==e.status}))}}}]),o}();return r.defaultProps={component:"div"},r}(Jw);function gD(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function yD(t){var n=t.prefixCls,r=t.visible,o=t.zIndex,i=t.mask,a=t.maskMotion,s=t.maskAnimation,l=t.maskTransitionName;if(!i)return null;var u={};return(a||l||s)&&(u=dw({motionAppear:!0},gD({motion:a,prefixCls:n,transitionName:l,animation:s}))),e.createElement(uD,M({},u,{visible:r,removeOnLeave:!0}),(function(t){var r=t.className;return e.createElement("div",{style:{zIndex:o},className:Rw("".concat(n,"-mask"),r)})}))}var bD,xD=function(e){if(!e)return!1;if(e instanceof HTMLElement&&e.offsetParent)return!0;if(e instanceof SVGGraphicsElement&&e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e instanceof HTMLElement&&e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}return!1};function CD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CD(Object(n),!0).forEach((function(t){ED(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function DD(e){return DD="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},DD(e)}function ED(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kD={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function SD(){if(void 0!==bD)return bD;bD="";var e=document.createElement("p").style;for(var t in kD)t+"Transform"in e&&(bD=t);return bD}function OD(){return SD()?"".concat(SD(),"TransitionProperty"):"transitionProperty"}function AD(){return SD()?"".concat(SD(),"Transform"):"transform"}function BD(e,t){var n=OD();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function TD(e,t){var n=AD();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var FD,PD=/matrix\((.*)\)/,MD=/matrix3d\((.*)\)/;function ND(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function jD(e,t,n){var r=n;if("object"!==DD(t))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):FD(e,t);for(var o in t)t.hasOwnProperty(o)&&jD(e,o,t[o])}function RD(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function ID(e){return RD(e)}function _D(e){return RD(e,!0)}function LD(e){var t=function(e){var t,n,r,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top),{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=ID(r),t.top+=_D(r),t}function $D(e){return null!=e&&e==e.window}function VD(e){return $D(e)?e.document:9===e.nodeType?e:e.ownerDocument}var zD=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),WD=/^(top|right|bottom|left)$/;function UD(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function HD(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function qD(e,t,n){"static"===jD(e,"position")&&(e.style.position="relative");var r=-999,o=-999,i=UD("left",n),a=UD("top",n),s=HD(i),l=HD(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var u,c="",d=LD(e);("left"in t||"top"in t)&&(c=(u=e).style.transitionProperty||u.style[OD()]||"",BD(e,"none")),"left"in t&&(e.style[s]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[l]="",e.style[a]="".concat(o,"px")),ND(e);var p=LD(e),f={};for(var h in t)if(t.hasOwnProperty(h)){var m=UD(h,n),v="left"===h?r:o,g=d[h]-p[h];f[m]=m===h?v+g:v-g}jD(e,f),ND(e),("left"in t||"top"in t)&&BD(e,c);var y={};for(var b in t)if(t.hasOwnProperty(b)){var x=UD(b,n),C=t[b]-d[b];y[x]=b===x?f[x]+C:f[x]-C}jD(e,y)}function KD(e,t){var n=LD(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(AD());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(AD());if(r&&"none"!==r){var o,i=r.match(PD);i?((o=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,o[5]=t.y,TD(e,"matrix(".concat(o.join(","),")"))):((o=r.match(MD)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,o[13]=t.y,TD(e,"matrix3d(".concat(o.join(","),")")))}else TD(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,o)}function XD(e,t){for(var n=0;n<e.length;n++)t(e[n])}function GD(e){return"border-box"===FD(e,"boxSizing")}"undefined"!=typeof window&&(FD=window.getComputedStyle?function(e,t,n){var r=n,o="",i=VD(e);return(r=r||i.defaultView.getComputedStyle(e,null))&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(zD.test(n)&&!WD.test(t)){var r=e.style,o=r.left,i=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,r.left="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r.left=o,e.runtimeStyle.left=i}return""===n?"auto":n});var YD=["margin","border","padding"];function ZD(e,t,n){var r,o={},i=e.style;for(r in t)t.hasOwnProperty(r)&&(o[r]=i[r],i[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(i[r]=o[r])}function JD(e,t,n){var r,o,i,a=0;for(o=0;o<t.length;o++)if(r=t[o])for(i=0;i<n.length;i++){var s=void 0;s="border"===r?"".concat(r).concat(n[i],"Width"):r+n[i],a+=parseFloat(FD(e,s))||0}return a}var QD={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function eE(e,t,n){var r=n;if($D(e))return"width"===t?QD.viewportWidth(e):QD.viewportHeight(e);if(9===e.nodeType)return"width"===t?QD.docWidth(e):QD.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=GD(e),s=0;(null==i||i<=0)&&(i=void 0,(null==(s=FD(e,t))||Number(s)<0)&&(s=e.style[t]||0),s=parseFloat(s)||0),void 0===r&&(r=a?1:-1);var l=void 0!==i||a,u=i||s;return-1===r?l?u-JD(e,["border","padding"],o):s:l?1===r?u:u+(2===r?-JD(e,["border"],o):JD(e,["margin"],o)):s+JD(e,YD.slice(r),o)}XD(["Width","Height"],(function(e){QD["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],QD["viewport".concat(e)](n))},QD["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var tE={position:"absolute",visibility:"hidden",display:"block"};function nE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return 0!==o.offsetWidth?r=eE.apply(void 0,t):ZD(o,tE,(function(){r=eE.apply(void 0,t)})),r}function rE(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}XD(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);QD["outer".concat(t)]=function(t,n){return t&&nE(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];QD[e]=function(t,r){var o=r;return void 0!==o?t?(GD(t)&&(o+=JD(t,["padding","border"],n)),jD(t,e,o)):void 0:t&&nE(t,e,-1)}}));var oE={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:VD,offset:function(e,t,n){if(void 0===t)return LD(e);!function(e,t,n){if(n.ignoreShake){var r=LD(e),o=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),s=t.top.toFixed(0);if(o===a&&i===s)return}n.useCssRight||n.useCssBottom?qD(e,t,n):n.useCssTransform&&AD()in document.body.style?KD(e,t):qD(e,t,n)}(e,t,n||{})},isWindow:$D,each:XD,css:jD,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:rE,getWindowScrollLeft:function(e){return ID(e)},getWindowScrollTop:function(e){return _D(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)oE.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};rE(oE,QD);var iE=oE.getParent;function aE(e){if(oE.isWindow(e)||9===e.nodeType)return null;var t,n=oE.getDocument(e).body,r=oE.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:iE(e);for(t=iE(e);t&&t!==n&&9!==t.nodeType;t=iE(t))if("static"!==(r=oE.css(t,"position")))return t;return null}var sE=oE.getParent;function lE(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=aE(e),o=oE.getDocument(e),i=o.defaultView||o.parentWindow,a=o.body,s=o.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===s||"visible"===oE.css(r,"overflow")){if(r===a||r===s)break}else{var l=oE.offset(r);l.left+=r.clientLeft,l.top+=r.clientTop,n.top=Math.max(n.top,l.top),n.right=Math.min(n.right,l.left+r.clientWidth),n.bottom=Math.min(n.bottom,l.top+r.clientHeight),n.left=Math.max(n.left,l.left)}r=aE(r)}var u=null;oE.isWindow(e)||9===e.nodeType||(u=e.style.position,"absolute"===oE.css(e,"position")&&(e.style.position="fixed"));var c=oE.getWindowScrollLeft(i),d=oE.getWindowScrollTop(i),p=oE.viewportWidth(i),f=oE.viewportHeight(i),h=s.scrollWidth,m=s.scrollHeight,v=window.getComputedStyle(a);if("hidden"===v.overflowX&&(h=i.innerWidth),"hidden"===v.overflowY&&(m=i.innerHeight),e.style&&(e.style.position=u),t||function(e){if(oE.isWindow(e)||9===e.nodeType)return!1;var t=oE.getDocument(e),n=t.body,r=null;for(r=sE(e);r&&r!==n&&r!==t;r=sE(r))if("fixed"===oE.css(r,"position"))return!0;return!1}(e))n.left=Math.max(n.left,c),n.top=Math.max(n.top,d),n.right=Math.min(n.right,c+p),n.bottom=Math.min(n.bottom,d+f);else{var g=Math.max(h,c+p);n.right=Math.min(n.right,g);var y=Math.max(m,d+f);n.bottom=Math.min(n.bottom,y)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function uE(e){var t,n,r;if(oE.isWindow(e)||9===e.nodeType){var o=oE.getWindow(e);t={left:oE.getWindowScrollLeft(o),top:oE.getWindowScrollTop(o)},n=oE.viewportWidth(o),r=oE.viewportHeight(o)}else t=oE.offset(e),n=oE.outerWidth(e),r=oE.outerHeight(e);return t.width=n,t.height=r,t}function cE(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,s=e.top;return"c"===n?s+=i/2:"b"===n&&(s+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:s}}function dE(e,t,n,r,o){var i=cE(t,n[1]),a=cE(e,n[0]),s=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-s[0]+r[0]-o[0]),top:Math.round(e.top-s[1]+r[1]-o[1])}}function pE(e,t,n){return e.left<n.left||e.left+t.width>n.right}function fE(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function hE(e,t,n){var r=[];return oE.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function mE(e,t){return e[t]=-e[t],e}function vE(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function gE(e,t){e[0]=vE(e[0],t.width),e[1]=vE(e[1],t.height)}function yE(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],s=n.overflow,l=n.source||e;i=[].concat(i),a=[].concat(a);var u={},c=0,d=lE(l,!(!(s=s||{})||!s.alwaysByViewport)),p=uE(l);gE(i,p),gE(a,t);var f=dE(p,t,o,i,a),h=oE.merge(p,f);if(d&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&pE(f,p,d)){var m=hE(o,/[lr]/gi,{l:"r",r:"l"}),v=mE(i,0),g=mE(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(dE(p,t,m,v,g),p,d)||(c=1,o=m,i=v,a=g)}if(s.adjustY&&fE(f,p,d)){var y=hE(o,/[tb]/gi,{t:"b",b:"t"}),b=mE(i,1),x=mE(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(dE(p,t,y,b,x),p,d)||(c=1,o=y,i=b,a=x)}c&&(f=dE(p,t,o,i,a),oE.mix(h,f));var C=pE(f,p,d),w=fE(f,p,d);if(C||w){var D=o;C&&(D=hE(o,/[lr]/gi,{l:"r",r:"l"})),w&&(D=hE(o,/[tb]/gi,{t:"b",b:"t"})),o=D,i=n.offset||[0,0],a=n.targetOffset||[0,0]}u.adjustX=s.adjustX&&C,u.adjustY=s.adjustY&&w,(u.adjustX||u.adjustY)&&(h=function(e,t,n,r){var o=oE.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),oE.mix(o,i)}(f,p,d,u))}return h.width!==p.width&&oE.css(l,"width",oE.width(l)+h.width-p.width),h.height!==p.height&&oE.css(l,"height",oE.height(l)+h.height-p.height),oE.offset(l,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:u}}function bE(e,t,n){var r=n.target||t,o=uE(r),i=!function(e,t){var n=lE(e,t),r=uE(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return yE(e,o,n,i)}bE.__getOffsetParent=aE,bE.__getVisibleRectForElement=lE;var xE=function(){this.__data__=[],this.size=0};var CE=function(e,t){return e===t||e!=e&&t!=t},wE=CE;var DE=function(e,t){for(var n=e.length;n--;)if(wE(e[n][0],t))return n;return-1},EE=DE,kE=Array.prototype.splice;var SE=function(e){var t=this.__data__,n=EE(t,e);return!(n<0)&&(n==t.length-1?t.pop():kE.call(t,n,1),--this.size,!0)},OE=DE;var AE=function(e){var t=this.__data__,n=OE(t,e);return n<0?void 0:t[n][1]},BE=DE;var TE=DE;var FE=function(e,t){var n=this.__data__,r=TE(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},PE=xE,ME=SE,NE=AE,jE=function(e){return BE(this.__data__,e)>-1},RE=FE;function IE(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}IE.prototype.clear=PE,IE.prototype.delete=ME,IE.prototype.get=NE,IE.prototype.has=jE,IE.prototype.set=RE;var _E=IE,LE=_E;var $E=function(){this.__data__=new LE,this.size=0};var VE=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var zE=function(e){return this.__data__.get(e)};var WE=function(e){return this.__data__.has(e)},UE=mg,HE=qv;var qE,KE=function(e){if(!HE(e))return!1;var t=UE(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},XE=Yv["__core-js_shared__"],GE=(qE=/[^.]+$/.exec(XE&&XE.keys&&XE.keys.IE_PROTO||""))?"Symbol(src)_1."+qE:"";var YE=function(e){return!!GE&&GE in e},ZE=Function.prototype.toString;var JE=function(e){if(null!=e){try{return ZE.call(e)}catch(e){}try{return e+""}catch(e){}}return""},QE=KE,ek=YE,tk=qv,nk=JE,rk=/^\[object .+?Constructor\]$/,ok=Function.prototype,ik=Object.prototype,ak=ok.toString,sk=ik.hasOwnProperty,lk=RegExp("^"+ak.call(sk).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var uk=function(e){return!(!tk(e)||ek(e))&&(QE(e)?lk:rk).test(nk(e))},ck=function(e,t){return null==e?void 0:e[t]};var dk=function(e,t){var n=ck(e,t);return uk(n)?n:void 0},pk=dk(Yv,"Map"),fk=dk(Object,"create"),hk=fk;var mk=function(){this.__data__=hk?hk(null):{},this.size=0};var vk=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},gk=fk,yk=Object.prototype.hasOwnProperty;var bk=function(e){var t=this.__data__;if(gk){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return yk.call(t,e)?t[e]:void 0},xk=fk,Ck=Object.prototype.hasOwnProperty;var wk=fk;var Dk=mk,Ek=vk,kk=bk,Sk=function(e){var t=this.__data__;return xk?void 0!==t[e]:Ck.call(t,e)},Ok=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=wk&&void 0===t?"__lodash_hash_undefined__":t,this};function Ak(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ak.prototype.clear=Dk,Ak.prototype.delete=Ek,Ak.prototype.get=kk,Ak.prototype.has=Sk,Ak.prototype.set=Ok;var Bk=Ak,Tk=_E,Fk=pk;var Pk=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Mk=function(e,t){var n=e.__data__;return Pk(t)?n["string"==typeof t?"string":"hash"]:n.map},Nk=Mk;var jk=Mk;var Rk=Mk;var Ik=Mk;var _k=function(){this.size=0,this.__data__={hash:new Bk,map:new(Fk||Tk),string:new Bk}},Lk=function(e){var t=Nk(this,e).delete(e);return this.size-=t?1:0,t},$k=function(e){return jk(this,e).get(e)},Vk=function(e){return Rk(this,e).has(e)},zk=function(e,t){var n=Ik(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Wk(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Wk.prototype.clear=_k,Wk.prototype.delete=Lk,Wk.prototype.get=$k,Wk.prototype.has=Vk,Wk.prototype.set=zk;var Uk=Wk,Hk=_E,qk=pk,Kk=Uk;var Xk=_E,Gk=$E,Yk=VE,Zk=zE,Jk=WE,Qk=function(e,t){var n=this.__data__;if(n instanceof Hk){var r=n.__data__;if(!qk||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kk(r)}return n.set(e,t),this.size=n.size,this};function eS(e){var t=this.__data__=new Xk(e);this.size=t.size}eS.prototype.clear=Gk,eS.prototype.delete=Yk,eS.prototype.get=Zk,eS.prototype.has=Jk,eS.prototype.set=Qk;var tS=eS;var nS=Uk,rS=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},oS=function(e){return this.__data__.has(e)};function iS(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new nS;++t<n;)this.add(e[t])}iS.prototype.add=iS.prototype.push=rS,iS.prototype.has=oS;var aS=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var sS=function(e,t){return e.has(t)},lS=iS,uS=aS,cS=sS;var dS=function(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,f=2&n?new lS:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var h=e[d],m=t[d];if(r)var v=a?r(m,h,d,t,e,i):r(h,m,d,e,t,i);if(void 0!==v){if(v)continue;p=!1;break}if(f){if(!uS(t,(function(e,t){if(!cS(f,t)&&(h===e||o(h,e,n,r,i)))return f.push(t)}))){p=!1;break}}else if(h!==m&&!o(h,m,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p};var pS=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var fS=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},hS=Yv.Uint8Array,mS=CE,vS=dS,gS=pS,yS=fS,bS=og?og.prototype:void 0,xS=bS?bS.valueOf:void 0;var CS=function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new hS(e),new hS(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return mS(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=gS;case"[object Set]":var l=1&r;if(s||(s=yS),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=vS(s(e),s(t),r,o,i,a);return a.delete(e),c;case"[object Symbol]":if(xS)return xS.call(e)==xS.call(t)}return!1};var wS=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},DS=Array.isArray,ES=wS,kS=DS;var SS=function(e,t,n){var r=t(e);return kS(e)?r:ES(r,n(e))};var OS=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};var AS=OS,BS=function(){return[]},TS=Object.prototype.propertyIsEnumerable,FS=Object.getOwnPropertySymbols,PS=FS?function(e){return null==e?[]:(e=Object(e),AS(FS(e),(function(t){return TS.call(e,t)})))}:BS;var MS=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},NS=mg,jS=vg;var RS=function(e){return jS(e)&&"[object Arguments]"==NS(e)},IS=vg,_S=Object.prototype,LS=_S.hasOwnProperty,$S=_S.propertyIsEnumerable,VS=RS(function(){return arguments}())?RS:function(e){return IS(e)&&LS.call(e,"callee")&&!$S.call(e,"callee")},zS={exports:{}};var WS=function(){return!1};!function(e,t){var n=Yv,r=WS,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;e.exports=s}(zS,zS.exports);var US=/^(?:0|[1-9]\d*)$/;var HS=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&US.test(e))&&e>-1&&e%1==0&&e<t};var qS=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},KS=mg,XS=qS,GS=vg,YS={};YS["[object Float32Array]"]=YS["[object Float64Array]"]=YS["[object Int8Array]"]=YS["[object Int16Array]"]=YS["[object Int32Array]"]=YS["[object Uint8Array]"]=YS["[object Uint8ClampedArray]"]=YS["[object Uint16Array]"]=YS["[object Uint32Array]"]=!0,YS["[object Arguments]"]=YS["[object Array]"]=YS["[object ArrayBuffer]"]=YS["[object Boolean]"]=YS["[object DataView]"]=YS["[object Date]"]=YS["[object Error]"]=YS["[object Function]"]=YS["[object Map]"]=YS["[object Number]"]=YS["[object Object]"]=YS["[object RegExp]"]=YS["[object Set]"]=YS["[object String]"]=YS["[object WeakMap]"]=!1;var ZS=function(e){return GS(e)&&XS(e.length)&&!!YS[KS(e)]};var JS=function(e){return function(t){return e(t)}},QS={exports:{}};!function(e,t){var n=Kv,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(QS,QS.exports);var eO=ZS,tO=JS,nO=QS.exports,rO=nO&&nO.isTypedArray,oO=rO?tO(rO):eO,iO=MS,aO=VS,sO=DS,lO=zS.exports,uO=HS,cO=oO,dO=Object.prototype.hasOwnProperty;var pO=function(e,t){var n=sO(e),r=!n&&aO(e),o=!n&&!r&&lO(e),i=!n&&!r&&!o&&cO(e),a=n||r||o||i,s=a?iO(e.length,String):[],l=s.length;for(var u in e)!t&&!dO.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||uO(u,l))||s.push(u);return s},fO=Object.prototype;var hO=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||fO)};var mO=function(e,t){return function(n){return e(t(n))}},vO=mO(Object.keys,Object),gO=hO,yO=vO,bO=Object.prototype.hasOwnProperty;var xO=KE,CO=qS;var wO=pO,DO=function(e){if(!gO(e))return yO(e);var t=[];for(var n in Object(e))bO.call(e,n)&&"constructor"!=n&&t.push(n);return t},EO=function(e){return null!=e&&CO(e.length)&&!xO(e)};var kO=SS,SO=PS,OO=function(e){return EO(e)?wO(e):DO(e)};var AO=function(e){return kO(e,OO,SO)},BO=Object.prototype.hasOwnProperty;var TO=function(e,t,n,r,o,i){var a=1&n,s=AO(e),l=s.length;if(l!=AO(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:BO.call(t,c)))return!1}var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var f=!0;i.set(e,t),i.set(t,e);for(var h=a;++u<l;){var m=e[c=s[u]],v=t[c];if(r)var g=a?r(v,m,c,t,e,i):r(m,v,c,e,t,i);if(!(void 0===g?m===v||o(m,v,n,r,i):g)){f=!1;break}h||(h="constructor"==c)}if(f&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(f=!1)}return i.delete(e),i.delete(t),f},FO=dk(Yv,"DataView"),PO=pk,MO=dk(Yv,"Promise"),NO=dk(Yv,"Set"),jO=dk(Yv,"WeakMap"),RO=mg,IO=JE,_O=IO(FO),LO=IO(PO),$O=IO(MO),VO=IO(NO),zO=IO(jO),WO=RO;(FO&&"[object DataView]"!=WO(new FO(new ArrayBuffer(1)))||PO&&"[object Map]"!=WO(new PO)||MO&&"[object Promise]"!=WO(MO.resolve())||NO&&"[object Set]"!=WO(new NO)||jO&&"[object WeakMap]"!=WO(new jO))&&(WO=function(e){var t=RO(e),n="[object Object]"==t?e.constructor:void 0,r=n?IO(n):"";if(r)switch(r){case _O:return"[object DataView]";case LO:return"[object Map]";case $O:return"[object Promise]";case VO:return"[object Set]";case zO:return"[object WeakMap]"}return t});var UO=tS,HO=dS,qO=CS,KO=TO,XO=WO,GO=DS,YO=zS.exports,ZO=oO,JO="[object Object]",QO=Object.prototype.hasOwnProperty;var eA=function(e,t,n,r,o,i){var a=GO(e),s=GO(t),l=a?"[object Array]":XO(e),u=s?"[object Array]":XO(t),c=(l="[object Arguments]"==l?JO:l)==JO,d=(u="[object Arguments]"==u?JO:u)==JO,p=l==u;if(p&&YO(e)){if(!YO(t))return!1;a=!0,c=!1}if(p&&!c)return i||(i=new UO),a||ZO(e)?HO(e,t,n,r,o,i):qO(e,t,l,n,r,o,i);if(!(1&n)){var f=c&&QO.call(e,"__wrapped__"),h=d&&QO.call(t,"__wrapped__");if(f||h){var m=f?e.value():e,v=h?t.value():t;return i||(i=new UO),o(m,v,n,r,i)}}return!!p&&(i||(i=new UO),KO(e,t,n,r,o,i))},tA=vg;var nA=function e(t,n,r,o,i){return t===n||(null==t||null==n||!tA(t)&&!tA(n)?t!=t&&n!=n:eA(t,n,r,o,e,i))},rA=nA;var oA=function(e,t){return rA(e,t)},iA=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),aA="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,sA="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),lA="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(sA):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var uA=["top","right","bottom","left","width","height","size","weight"],cA="undefined"!=typeof MutationObserver,dA=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s()}function a(){lA(i)}function s(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){aA&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),cA?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){aA&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;uA.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),pA=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},fA=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||sA},hA=xA(0,0,0,0);function mA(e){return parseFloat(e)||0}function vA(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+mA(e["border-"+n+"-width"])}),0)}function gA(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return hA;var r=fA(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=mA(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,s=mA(r.width),l=mA(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=vA(r,"left","right")+i),Math.round(l+a)!==n&&(l-=vA(r,"top","bottom")+a)),!function(e){return e===fA(e).document.documentElement}(e)){var u=Math.round(s+i)-t,c=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return xA(o.left,o.top,s,l)}var yA="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof fA(e).SVGGraphicsElement}:function(e){return e instanceof fA(e).SVGElement&&"function"==typeof e.getBBox};function bA(e){return aA?yA(e)?function(e){var t=e.getBBox();return xA(0,0,t.width,t.height)}(e):gA(e):hA}function xA(e,t,n,r){return{x:e,y:t,width:n,height:r}}var CA=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=xA(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=bA(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),wA=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return pA(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}(t);pA(this,{target:e,contentRect:n})},DA=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new iA,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof fA(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new CA(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof fA(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new wA(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),EA="undefined"!=typeof WeakMap?new WeakMap:new iA,kA=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=dA.getInstance(),r=new DA(t,n,this);EA.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){kA.prototype[e]=function(){var t;return(t=EA.get(this))[e].apply(t,arguments)}}));var SA=void 0!==sA.ResizeObserver?sA.ResizeObserver:kA;function OA(e,t){var n=null,r=null;var o=new SA((function(e){var o=$w(e,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,s=i.height,l=Math.floor(a),u=Math.floor(s);n===l&&r===u||Promise.resolve().then((function(){t({width:l,height:u})})),n=l,r=u}}));return e&&o.observe(e),function(){o.disconnect()}}function AA(e){return"function"!=typeof e?null:e()}function BA(e){return"object"===sw(e)&&e?e:null}var TA=function(e,n){var r=e.children,o=e.disabled,i=e.target,a=e.align,s=e.onAlign,l=e.monitorWindowResize,u=e.monitorBufferTime,c=void 0===u?0:u,d=t.useRef({}),p=t.useRef(),f=t.Children.only(r),h=t.useRef({});h.current.disabled=o,h.current.target=i,h.current.align=a,h.current.onAlign=s;var m=function(e,n){var r=t.useRef(!1),o=t.useRef(null);function i(){window.clearTimeout(o.current)}return[function t(a){if(i(),r.current&&!0!==a)o.current=window.setTimeout((function(){r.current=!1,t()}),n);else{if(!1===e())return;r.current=!0,o.current=window.setTimeout((function(){r.current=!1}),n)}},function(){r.current=!1,i()}]}((function(){var e=h.current,t=e.disabled,n=e.target,r=e.align,o=e.onAlign;if(!t&&n){var i,a=p.current,s=AA(n),l=BA(n);d.current.element=s,d.current.point=l,d.current.align=r;var u=document.activeElement;return s&&xD(s)?i=bE(a,s,r):l&&(i=function(e,t,n){var r,o,i=oE.getDocument(e),a=i.defaultView||i.parentWindow,s=oE.getWindowScrollLeft(a),l=oE.getWindowScrollTop(a),u=oE.viewportWidth(a),c=oE.viewportHeight(a),d={left:r="pageX"in t?t.pageX:s+t.clientX,top:o="pageY"in t?t.pageY:l+t.clientY,width:0,height:0},p=r>=0&&r<=s+u&&o>=0&&o<=l+c,f=[n.points[0],"cc"];return yE(e,d,wD(wD({},n),{},{points:f}),p)}(a,l,r)),function(e,t){e!==document.activeElement&&Ow(t,e)&&"function"==typeof e.focus&&e.focus()}(u,a),o&&i&&o(a,i),!0}return!1}),c),v=$w(m,2),g=v[0],y=v[1],b=t.useRef({cancel:function(){}}),x=t.useRef({cancel:function(){}});t.useEffect((function(){var e,t,n=AA(i),r=BA(i);p.current!==x.current.element&&(x.current.cancel(),x.current.element=p.current,x.current.cancel=OA(p.current,g)),d.current.element===n&&((e=d.current.point)===(t=r)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&oA(d.current.align,a)||(g(),b.current.element!==n&&(b.current.cancel(),b.current.element=n,b.current.cancel=OA(n,g)))})),t.useEffect((function(){o?y():g()}),[o]);var C=t.useRef(null);return t.useEffect((function(){l?C.current||(C.current=Pw(window,"resize",g)):C.current&&(C.current.remove(),C.current=null)}),[l]),t.useEffect((function(){return function(){b.current.cancel(),x.current.cancel(),C.current&&C.current.remove(),y()}}),[]),t.useImperativeHandle(n,(function(){return{forceAlign:function(){return g(!0)}}})),t.isValidElement(f)&&(f=t.cloneElement(f,{ref:Tw(f.ref,p)})),f},FA=t.forwardRef(TA);FA.displayName="Align";var PA="test"!==process.env.NODE_ENV&&Mw()?e.useLayoutEffect:e.useEffect;function MA(){MA=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new B(r||[]);return o(a,"_invoke",{value:k(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",f="executing",h="completed",m={};function v(){}function g(){}function y(){}var b={};u(b,a,(function(){return this}));var x=Object.getPrototypeOf,C=x&&x(x(T([])));C&&C!==n&&r.call(C,a)&&(b=C);var w=y.prototype=v.prototype=Object.create(b);function D(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==sw(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function k(t,n,r){var o=p;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=S(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var u=d(t,n,r);if("normal"===u.type){if(o=r.done?h:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=h,r.method="throw",r.arg=u.arg)}}}function S(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function B(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(sw(t)+" is not iterable")}return g.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:g,configurable:!0}),g.displayName=u(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},D(E.prototype),u(E.prototype,s,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(c(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},D(w),u(w,l,"Generator"),u(w,a,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=T,B.prototype={constructor:B,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function NA(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function jA(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){NA(i,r,o,a,s,"next",e)}function s(e){NA(i,r,o,a,s,"throw",e)}a(void 0)}))}}var RA=["measure","alignPre","align",null,"motion"],IA=e.forwardRef((function(t,n){var r=t.visible,o=t.prefixCls,i=t.className,a=t.style,u=t.children,c=t.zIndex,p=t.stretch,f=t.destroyPopupOnHide,h=t.forceRender,m=t.align,v=t.point,g=t.getRootDomNode,y=t.getClassNameFromAlign,b=t.onAlign,x=t.onMouseEnter,C=t.onMouseLeave,w=t.onMouseDown,D=t.onTouchStart,E=t.onClick,k=d(),S=d(),O=$w(s(),2),A=O[0],B=O[1],T=function(t){var n=$w(e.useState({width:0,height:0}),2),r=n[0],o=n[1],i=e.useMemo((function(){var e={};if(t){var n=r.width,o=r.height;-1!==t.indexOf("height")&&o?e.height=o:-1!==t.indexOf("minHeight")&&o&&(e.minHeight=o),-1!==t.indexOf("width")&&n?e.width=n:-1!==t.indexOf("minWidth")&&n&&(e.minWidth=n)}return e}),[t,r]);return[i,function(e){o({width:e.offsetWidth,height:e.offsetHeight})}]}(p),F=$w(T,2),P=F[0],N=F[1];var j=function(e,t){var n=$w(nD(null),2),r=n[0],o=n[1],i=d();function a(e){o(e,!0)}function s(){Sw.cancel(i.current)}return l((function(){a("measure")}),[e]),l((function(){"measure"===r&&t(),r&&(i.current=Sw(jA(MA().mark((function e(){var t,n;return MA().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=RA.indexOf(r),(n=RA[t+1])&&-1!==t&&a(n);case 3:case"end":return e.stop()}}),e)})))))}),[r]),l((function(){return function(){s()}}),[]),[r,function(e){s(),i.current=Sw((function(){a((function(e){switch(r){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(r,(function(){p&&N(g())})),R=$w(j,2),I=R[0],_=R[1],L=$w(s(0),2),$=L[0],V=L[1],z=d();function W(){var e;null===(e=k.current)||void 0===e||e.forceAlign()}function U(e,t){var n=y(t);A!==n&&B(n),V((function(e){return e+1})),"align"===I&&(null==b||b(e,t))}PA((function(){"alignPre"===I&&V(0)}),[I]),PA((function(){"align"===I&&($<2?W():_((function(){var e;null===(e=z.current)||void 0===e||e.call(z)})))}),[$]);var H=dw({},gD(t));function q(){return new Promise((function(e){z.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=H[e];H[e]=function(e,n){return _(),null==t?void 0:t(e,n)}})),e.useEffect((function(){H.motionName||"motion"!==I||_()}),[H.motionName,I]),e.useImperativeHandle(n,(function(){return{forceAlign:W,getElement:function(){return S.current}}}));var K=dw(dw({},P),{},{zIndex:c,opacity:"motion"!==I&&"stable"!==I&&r?0:void 0,pointerEvents:r||"stable"===I?void 0:"none"},a),X=!0;!(null==m?void 0:m.points)||"align"!==I&&"stable"!==I||(X=!1);var G=u;return e.Children.count(u)>1&&(G=e.createElement("div",{className:"".concat(o,"-content")},u)),e.createElement(uD,M({visible:r,ref:S,leavedClassName:"".concat(o,"-hidden")},H,{onAppearPrepare:q,onEnterPrepare:q,removeOnLeave:f,forceRender:h}),(function(t,n){var r=t.className,a=t.style,s=Rw(o,i,A,r);return e.createElement(FA,{target:v||g,key:"popup",ref:k,monitorWindowResize:!0,disabled:X,align:m,onAlign:U},e.createElement("div",{ref:n,className:s,onMouseEnter:x,onMouseLeave:C,onMouseDownCapture:w,onTouchStartCapture:D,onClick:E,style:dw(dw({},a),K)},G))}))}));IA.displayName="PopupInner";var _A=e.forwardRef((function(t,n){var r=t.prefixCls,o=t.visible,i=t.zIndex,a=t.children,s=t.mobile,l=(s=void 0===s?{}:s).popupClassName,u=s.popupStyle,c=s.popupMotion,d=void 0===c?{}:c,p=s.popupRender,f=t.onClick,h=e.useRef();e.useImperativeHandle(n,(function(){return{forceAlign:function(){},getElement:function(){return h.current}}}));var m=dw({zIndex:i},u),v=a;return e.Children.count(a)>1&&(v=e.createElement("div",{className:"".concat(r,"-content")},a)),p&&(v=p(v)),e.createElement(uD,M({visible:o,ref:h,removeOnLeave:!0},d),(function(t,n){var o=t.className,i=t.style,a=Rw(r,l,o);return e.createElement("div",{ref:n,className:a,onClick:f,style:dw(dw({},i),m)},v)}))}));_A.displayName="MobilePopupInner";var LA=["visible","mobile"],$A=e.forwardRef((function(t,n){var r=t.visible,o=t.mobile,i=pw(t,LA),a=$w(s(r),2),u=a[0],c=a[1],d=$w(s(!1),2),p=d[0],f=d[1],h=dw(dw({},i),{},{visible:u});l((function(){c(r),r&&o&&f(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}())}),[r,o]);var m=p?e.createElement(_A,M({},h,{mobile:o,ref:n})):e.createElement(IA,M({},h,{ref:n}));return e.createElement("div",null,e.createElement(yD,h),m)}));$A.displayName="Popup";var VA=e.createContext(null);function zA(){}function WA(){return""}function UA(e){return e?e.ownerDocument:window.document}var HA=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var qA=function(t){var n=function(n){vw(o,e.Component);var r=xw(o);function o(t){var n,i;return fw(this,o),(n=r.call(this,t)).popupRef=e.createRef(),n.triggerRef=e.createRef(),n.portalContainer=void 0,n.attachId=void 0,n.clickOutsideHandler=void 0,n.touchOutsideHandler=void 0,n.contextMenuOutsideHandler1=void 0,n.contextMenuOutsideHandler2=void 0,n.mouseDownTimeout=void 0,n.focusTime=void 0,n.preClickTime=void 0,n.preTouchTime=void 0,n.delayTimer=void 0,n.hasPopupMouseDown=void 0,n.onMouseEnter=function(e){var t=n.props.mouseEnterDelay;n.fireEvents("onMouseEnter",e),n.delaySetPopupVisible(!0,t,t?null:e)},n.onMouseMove=function(e){n.fireEvents("onMouseMove",e),n.setPoint(e)},n.onMouseLeave=function(e){n.fireEvents("onMouseLeave",e),n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)},n.onPopupMouseEnter=function(){n.clearDelayTimer()},n.onPopupMouseLeave=function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&Ow(null===(t=n.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)},n.onFocus=function(e){n.fireEvents("onFocus",e),n.clearDelayTimer(),n.isFocusToShow()&&(n.focusTime=Date.now(),n.delaySetPopupVisible(!0,n.props.focusDelay))},n.onMouseDown=function(e){n.fireEvents("onMouseDown",e),n.preClickTime=Date.now()},n.onTouchStart=function(e){n.fireEvents("onTouchStart",e),n.preTouchTime=Date.now()},n.onBlur=function(e){n.fireEvents("onBlur",e),n.clearDelayTimer(),n.isBlurToHide()&&n.delaySetPopupVisible(!1,n.props.blurDelay)},n.onContextMenu=function(e){e.preventDefault(),n.fireEvents("onContextMenu",e),n.setPopupVisible(!0,e)},n.onContextMenuClose=function(){n.isContextMenuToShow()&&n.close()},n.onClick=function(e){if(n.fireEvents("onClick",e),n.focusTime){var t;if(n.preClickTime&&n.preTouchTime?t=Math.min(n.preClickTime,n.preTouchTime):n.preClickTime?t=n.preClickTime:n.preTouchTime&&(t=n.preTouchTime),Math.abs(t-n.focusTime)<20)return;n.focusTime=0}n.preClickTime=0,n.preTouchTime=0,n.isClickToShow()&&(n.isClickToHide()||n.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var r=!n.state.popupVisible;(n.isClickToHide()&&!r||r&&n.isClickToShow())&&n.setPopupVisible(!n.state.popupVisible,e)},n.onPopupMouseDown=function(){var e;(n.hasPopupMouseDown=!0,clearTimeout(n.mouseDownTimeout),n.mouseDownTimeout=window.setTimeout((function(){n.hasPopupMouseDown=!1}),0),n.context)&&(e=n.context).onPopupMouseDown.apply(e,arguments)},n.onDocumentClick=function(e){if(!n.props.mask||n.props.maskClosable){var t=e.target,r=n.getRootDomNode(),o=n.getPopupDomNode();Ow(r,t)&&!n.isContextMenuOnly()||Ow(o,t)||n.hasPopupMouseDown||n.close()}},n.getRootDomNode=function(){var e=n.props.getTriggerDOMNode;if(e)return e(n.triggerRef.current);try{var t=Aw(n.triggerRef.current);if(t)return t}catch(e){}return D.findDOMNode(xs(n))},n.getPopupClassNameFromAlign=function(e){var t=[],r=n.props,o=r.popupPlacement,i=r.builtinPlacements,a=r.prefixCls,s=r.alignPoint,l=r.getPopupClassNameFromAlign;return o&&i&&t.push(function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s=i[a];if(Iw(e[s].points,o,r))return"".concat(t,"-placement-").concat(s)}return""}(i,a,e,s)),l&&t.push(l(e)),t.join(" ")},n.getComponent=function(){var t=n.props,r=t.prefixCls,o=t.destroyPopupOnHide,i=t.popupClassName,a=t.onPopupAlign,s=t.popupMotion,l=t.popupAnimation,u=t.popupTransitionName,c=t.popupStyle,d=t.mask,p=t.maskAnimation,f=t.maskTransitionName,h=t.maskMotion,m=t.zIndex,v=t.popup,g=t.stretch,y=t.alignPoint,b=t.mobile,x=t.forceRender,C=t.onPopupClick,w=n.state,D=w.popupVisible,E=w.point,k=n.getPopupAlign(),S={};return n.isMouseEnterToShow()&&(S.onMouseEnter=n.onPopupMouseEnter),n.isMouseLeaveToHide()&&(S.onMouseLeave=n.onPopupMouseLeave),S.onMouseDown=n.onPopupMouseDown,S.onTouchStart=n.onPopupMouseDown,e.createElement($A,M({prefixCls:r,destroyPopupOnHide:o,visible:D,point:y&&E,className:i,align:k,onAlign:a,animation:l,getClassNameFromAlign:n.getPopupClassNameFromAlign},S,{stretch:g,getRootDomNode:n.getRootDomNode,style:c,mask:d,zIndex:m,transitionName:u,maskAnimation:p,maskTransitionName:f,maskMotion:h,ref:n.popupRef,motion:s,mobile:b,forceRender:x,onClick:C}),"function"==typeof v?v():v)},n.attachParent=function(e){Sw.cancel(n.attachId);var t,r=n.props,o=r.getPopupContainer,i=r.getDocument,a=n.getRootDomNode();o?(a||0===o.length)&&(t=o(a)):t=i(n.getRootDomNode()).body,t?t.appendChild(e):n.attachId=Sw((function(){n.attachParent(e)}))},n.getContainer=function(){if(!n.portalContainer){var e=(0,n.props.getDocument)(n.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",n.portalContainer=e}return n.attachParent(n.portalContainer),n.portalContainer},n.setPoint=function(e){n.props.alignPoint&&e&&n.setState({point:{pageX:e.pageX,pageY:e.pageY}})},n.handlePortalUpdate=function(){n.state.prevPopupVisible!==n.state.popupVisible&&n.props.afterPopupVisibleChange(n.state.popupVisible)},n.triggerContextValue={onPopupMouseDown:n.onPopupMouseDown},i="popupVisible"in t?!!t.popupVisible:!!t.defaultPopupVisible,n.state={prevPopupVisible:i,popupVisible:i},HA.forEach((function(e){n["fire".concat(e)]=function(t){n.fireEvents(e,t)}})),n}return mw(o,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Pw(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Pw(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Pw(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Pw(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Sw.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?function(e,t,n){return dw(dw({},e[t]||{}),n)}(r,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,i),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var n=this.state.popupVisible,r=this.props,o=r.children,i=r.forceRender,a=r.alignPoint,s=r.className,l=r.autoDestroy,u=e.Children.only(o),c={key:"trigger"};this.isContextMenuToShow()?c.onContextMenu=this.onContextMenu:c.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(c.onClick=this.onClick,c.onMouseDown=this.onMouseDown,c.onTouchStart=this.onTouchStart):(c.onClick=this.createTwoChains("onClick"),c.onMouseDown=this.createTwoChains("onMouseDown"),c.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(c.onMouseEnter=this.onMouseEnter,a&&(c.onMouseMove=this.onMouseMove)):c.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?c.onMouseLeave=this.onMouseLeave:c.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(c.onFocus=this.onFocus,c.onBlur=this.onBlur):(c.onFocus=this.createTwoChains("onFocus"),c.onBlur=this.createTwoChains("onBlur"));var d=Rw(u&&u.props&&u.props.className,s);d&&(c.className=d);var p=dw({},c);Fw(u)&&(p.ref=Tw(this.triggerRef,u.ref));var f,h=e.cloneElement(u,p);return(n||this.popupRef.current||i)&&(f=e.createElement(t,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!n&&l&&(f=null),e.createElement(VA.Provider,{value:this.triggerContextValue},h,f)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),o}();return n.contextType=VA,n.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:WA,getDocument:UA,onPopupVisibleChange:zA,afterPopupVisibleChange:zA,onPopupAlign:zA,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},n}(Nw),KA={adjustX:1,adjustY:1},XA=[0,0],GA={left:{points:["cr","cl"],overflow:KA,offset:[-4,0],targetOffset:XA},right:{points:["cl","cr"],overflow:KA,offset:[4,0],targetOffset:XA},top:{points:["bc","tc"],overflow:KA,offset:[0,-4],targetOffset:XA},bottom:{points:["tc","bc"],overflow:KA,offset:[0,4],targetOffset:XA},topLeft:{points:["bl","tl"],overflow:KA,offset:[0,-4],targetOffset:XA},leftTop:{points:["tr","tl"],overflow:KA,offset:[-4,0],targetOffset:XA},topRight:{points:["br","tr"],overflow:KA,offset:[0,-4],targetOffset:XA},rightTop:{points:["tl","tr"],overflow:KA,offset:[4,0],targetOffset:XA},bottomRight:{points:["tr","br"],overflow:KA,offset:[0,4],targetOffset:XA},rightBottom:{points:["bl","br"],overflow:KA,offset:[4,0],targetOffset:XA},bottomLeft:{points:["tl","bl"],overflow:KA,offset:[0,4],targetOffset:XA},leftBottom:{points:["br","bl"],overflow:KA,offset:[-4,0],targetOffset:XA}};function YA(t){var n=t.showArrow,r=t.arrowContent,o=t.children,i=t.prefixCls,a=t.id,s=t.overlayInnerStyle,l=t.className,u=t.style;return e.createElement("div",{className:Rw("".concat(i,"-content"),l),style:u},!1!==n&&e.createElement("div",{className:"".concat(i,"-arrow"),key:"arrow"},r),e.createElement("div",{className:"".concat(i,"-inner"),id:a,role:"tooltip",style:s},"function"==typeof o?o():o))}var ZA,JA,QA,eB=n((function(t,n){var r=t.overlayClassName,o=t.trigger,i=void 0===o?["hover"]:o,a=t.mouseEnterDelay,s=void 0===a?0:a,l=t.mouseLeaveDelay,u=void 0===l?.1:l,c=t.overlayStyle,p=t.prefixCls,f=void 0===p?"rc-tooltip":p,h=t.children,m=t.onVisibleChange,g=t.afterVisibleChange,y=t.transitionName,b=t.animation,x=t.motion,C=t.placement,w=void 0===C?"right":C,D=t.align,E=void 0===D?{}:D,k=t.destroyTooltipOnHide,S=void 0!==k&&k,O=t.defaultVisible,A=t.getTooltipContainer,B=t.overlayInnerStyle,T=t.arrowContent,F=t.overlay,P=t.id,N=t.showArrow,j=pw(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),R=d(null);v(n,(function(){return R.current}));var I=dw({},j);"visible"in t&&(I.popupVisible=t.visible);var _=!1,L=!1;if("boolean"==typeof S)_=S;else if(S&&"object"===sw(S)){var $=S.keepParent;_=!0===$,L=!1===$}return e.createElement(qA,M({popupClassName:r,prefixCls:f,popup:function(){return e.createElement(YA,{showArrow:N,arrowContent:T,key:"content",prefixCls:f,id:P,overlayInnerStyle:B},F)},action:i,builtinPlacements:GA,popupPlacement:w,ref:R,popupAlign:E,getPopupContainer:A,onPopupVisibleChange:m,afterPopupVisibleChange:g,popupTransitionName:y,popupAnimation:b,popupMotion:x,defaultPopupVisible:O,destroyPopupOnHide:_,autoDestroy:L,mouseLeaveDelay:u,popupStyle:c,mouseEnterDelay:s},I),h)})),tB=et.div(JA||(JA=P(["\n ",";\n"],["\n ",";\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes,o=t.fonts,i=e.$styles;return qe(ZA||(ZA=P(["\n .rc-tooltip {\n &-arrow {\n display: none;\n }\n &-inner {\n min-height: unset;\n padding: ","px;\n background-color: ",";\n color: ",";\n border-radius: ","px;\n ",";\n ",";\n }\n }\n "],["\n .rc-tooltip {\n &-arrow {\n display: none;\n }\n &-inner {\n min-height: unset;\n padding: ","px;\n background-color: ",";\n color: ",";\n border-radius: ","px;\n ",";\n ",";\n }\n }\n "])),r.S,n.indigo,n.white,r.S,o.S,i)})),nB=function(e){var t=e.trigger,n=void 0===t?"hover":t,r=e.placement,o=void 0===r?"top":r,i=e.styles,a=A(e,["trigger","placement","styles"]),s=d(null);return it(tB,O({ref:s,$styles:i},{children:it(eB,O({},a,{getTooltipContainer:function(){return s.current},trigger:n,placement:o}))}))},rB=dw({},w),oB=rB.version,iB=rB.render,aB=rB.unmountComponentAtNode;try{Number((oB||"").split(".")[0])>=18&&(QA=rB.createRoot)}catch(Rg){}function sB(e){var t=rB.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===sw(t)&&(t.usingClientEntryPoint=e)}var lB="__rc_react_root__";function uB(e,t){QA?function(e,t){sB(!0);var n=t[lB]||QA(t);sB(!1),n.render(e),t[lB]=n}(e,t):function(e,t){iB(e,t)}(e,t)}function cB(e){return dB.apply(this,arguments)}function dB(){return(dB=jA(MA().mark((function e(t){return MA().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[lB])||void 0===e||e.unmount(),delete t[lB]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function pB(e){aB(e)}function fB(){return(fB=jA(MA().mark((function e(t){return MA().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===QA){e.next=2;break}return e.abrupt("return",cB(t));case 2:pB(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var hB=function(t){vw(r,c);var n=xw(r);function r(){var e;fw(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return(e=n.call.apply(n,[this].concat(o))).closeTimer=null,e.close=function(t){t&&t.stopPropagation(),e.clearCloseTimer();var n=e.props,r=n.onClose,o=n.noticeKey;r&&r(o)},e.startCloseTimer=function(){e.props.duration&&(e.closeTimer=window.setTimeout((function(){e.close()}),1e3*e.props.duration))},e.clearCloseTimer=function(){e.closeTimer&&(clearTimeout(e.closeTimer),e.closeTimer=null)},e}return mw(r,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(e){(this.props.duration!==e.duration||this.props.updateMark!==e.updateMark||this.props.visible!==e.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var t=this,n=this.props,r=n.prefixCls,o=n.className,i=n.closable,a=n.closeIcon,s=n.style,l=n.onClick,u=n.children,c=n.holder,d="".concat(r,"-notice"),p=Object.keys(this.props).reduce((function(e,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(e[n]=t.props[n]),e}),{}),f=e.createElement("div",M({className:Rw(d,o,uw({},"".concat(d,"-closable"),i)),style:s,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:l},p),e.createElement("div",{className:"".concat(d,"-content")},u),i?e.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(d,"-close")},a||e.createElement("span",{className:"".concat(d,"-close-x")})):null);return c?D.createPortal(f,c):f}}]),r}();function mB(e){return function(e){if(Array.isArray(e))return _w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Lw(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.")}()}hB.defaultProps={onClose:function(){},duration:1.5};var vB=["getContainer"],gB=0,yB=Date.now();function bB(){var e=gB;return gB+=1,"rcNotification_".concat(yB,"_").concat(e)}var xB=function(t){vw(r,c);var n=xw(r);function r(){var e;fw(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return(e=n.call.apply(n,[this].concat(o))).state={notices:[]},e.hookRefs=new Map,e.add=function(t,n){var r=t.key||bB(),o=dw(dw({},t),{},{key:r}),i=e.props.maxCount;e.setState((function(e){var t=e.notices,a=t.map((function(e){return e.notice.key})).indexOf(r),s=t.concat();return-1!==a?s.splice(a,1,{notice:o,holderCallback:n}):(i&&t.length>=i&&(o.key=s[0].notice.key,o.updateMark=bB(),o.userPassKey=r,s.shift()),s.push({notice:o,holderCallback:n})),{notices:s}}))},e.remove=function(t){e.setState((function(e){return{notices:e.notices.filter((function(e){var n=e.notice,r=n.key;return(n.userPassKey||r)!==t}))}}))},e.noticePropsMap={},e}return mw(r,[{key:"getTransitionName",value:function(){var e=this.props,t=e.prefixCls,n=e.animation,r=this.props.transitionName;return!r&&n&&(r="".concat(t,"-").concat(n)),r}},{key:"render",value:function(){var t=this,n=this.state.notices,r=this.props,o=r.prefixCls,i=r.className,a=r.closeIcon,s=r.style,l=[];return n.forEach((function(e,r){var i=e.notice,s=e.holderCallback,u=r===n.length-1?i.updateMark:void 0,c=i.key,d=i.userPassKey,p=dw(dw(dw({prefixCls:o,closeIcon:a},i),i.props),{},{key:c,noticeKey:d||c,updateMark:u,onClose:function(e){var n;t.remove(e),null===(n=i.onClose)||void 0===n||n.call(i)},onClick:i.onClick,children:i.content});l.push(c),t.noticePropsMap[c]={props:p,holderCallback:s}})),e.createElement("div",{className:Rw(o,i),style:s},e.createElement(vD,{keys:l,motionName:this.getTransitionName(),onVisibleChanged:function(e,n){var r=n.key;e||delete t.noticePropsMap[r]}},(function(n){var r=n.key,i=n.className,a=n.style,s=n.visible,l=t.noticePropsMap[r],u=l.props,c=l.holderCallback;return c?e.createElement("div",{key:r,className:Rw(i,"".concat(o,"-hook-holder")),style:dw({},a),ref:function(e){void 0!==r&&(e?(t.hookRefs.set(r,e),c(e,u)):t.hookRefs.delete(r))}}):e.createElement(hB,M({},u,{className:Rw(i,null==u?void 0:u.className),style:dw(dw({},a),null==u?void 0:u.style),visible:s}))})))}}]),r}();xB.newInstance=void 0,xB.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},xB.newInstance=function(t,n){var r=t||{},o=r.getContainer,i=pw(r,vB),a=document.createElement("div");o?o().appendChild(a):document.body.appendChild(a);var s=!1;function l(t){s||(s=!0,n({notice:function(e){t.add(e)},removeNotice:function(e){t.remove(e)},component:t,destroy:function(){!function(e){fB.apply(this,arguments)}(a),a.parentNode&&a.parentNode.removeChild(a)},useNotification:function(){return n=t,r=e.useRef({}),o=$w(e.useState([]),2),i=o[0],a=o[1],[function(t){var o=!0;n.add(t,(function(t,n){var i=n.key;if(t&&(!r.current[i]||o)){var s=e.createElement(hB,M({},n,{holder:t}));r.current[i]=s,a((function(e){var t=e.findIndex((function(e){return e.key===n.key}));if(-1===t)return[].concat(mB(e),[s]);var r=mB(e);return r[t]=s,r}))}o=!1}))},e.createElement(e.Fragment,null,i)];var n,r,o,i,a}}))}"test"===process.env.NODE_ENV&&t.TEST_RENDER?t.TEST_RENDER(e.createElement(xB,M({},i,{ref:l}))):uB(e.createElement(xB,M({},i,{ref:l})),a)};var CB,wB,DB,EB=dt.colors,kB=dt.fonts,SB=dt.sizes,OB=et.span(CB||(CB=P(["\n color: ",";\n ",";\n"],["\n color: ",";\n ",";\n"])),(function(e){return e.textColor}),kB.L),AB=et.div(wB||(wB=P(["\n display: flex;\n height: ","px;\n column-gap: ","px;\n align-items: center;\n padding-right: ","px;\n"],["\n display: flex;\n height: ","px;\n column-gap: ","px;\n align-items: center;\n padding-right: ","px;\n"])),SB.XL,SB.M,SB.XL),BB=et.div(DB||(DB=P(["\n ",";\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n"],["\n ",";\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n"])),st(SB.XL),(function(e){return e.backgroundColor})),TB=function(e){var t=e.type,n=e.message,r=function(e){switch(e){case"success":return{icon:"Check",backgroundColor:EB.green,textColor:EB.greenShade};case"error":return{icon:"Close",backgroundColor:EB.red,textColor:EB.redShade};case"warning":return{icon:"Warning",backgroundColor:EB.yellow,textColor:EB.yellowShade,iconColor:EB.yellowShade,iconSize:18};case"infoTierOne":return{icon:"Bell",backgroundColor:EB.blue,textColor:EB.blueShade,iconSize:18};case"infoTierTwo":return{icon:"Bell",backgroundColor:EB.gray2,textColor:ct(EB.gray2),iconSize:18};default:return{icon:"Bell",backgroundColor:EB.blue,textColor:EB.blueShade}}}(t),o=r.icon,i=r.iconColor,a=r.textColor,s=r.backgroundColor,l=r.iconSize;return at(AB,{children:[it(BB,O({backgroundColor:s},{children:it(ff,{size:l||32,name:o,color:i||EB.white})})),it(OB,O({textColor:a},{children:n}))]})},FB=null;xB.newInstance({maxCount:2},(function(e){return FB=e}));var PB,MB,NB,jB,RB,IB,_B,LB,$B,VB,zB,WB,UB,HB,qB,KB,XB,GB,YB,ZB,JB,QB,eT,tT,nT,rT,oT,iT,aT,sT,lT,uT,cT,dT,pT,fT,hT,mT,vT,gT,yT,bT,xT,CT,wT,DT,ET,kT,ST,OT,AT,BT,TT,FT,PT,MT,NT,jT,RT,IT,_T,LT,$T=function(e){var t=e.message,n=e.type,r=void 0===n?"success":n,o=e.duration,i=void 0===o?2.5:o;return null==FB?void 0:FB.notice({content:it(TB,{message:t,type:r}),className:"toast-".concat(r),closable:!0,closeIcon:it(ff,{name:"Close"}),duration:i})},VT=function(e){var t=e.onClick,n=e.disabled,r=e.buttonOptions,o=e.selectedButtonId,i=e.error,a=(null==r?void 0:r.slice(0,2))||[];return it(zT,O({error:i,disabled:n},{children:a.map((function(e){var n=e.value,r=e.id;return it(WT,O({isActive:r===o,onClick:function(){return t(r)}},{children:n}),r)}))}))},zT=et.div(MB||(MB=P(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-width: 0.2px;\n border-style: solid;\n padding: 1px;\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-width: 0.2px;\n border-style: solid;\n padding: 1px;\n ","\n"])),(function(e){var t=e.disabled,n=e.error,r="transparent",o=dt.colors.gray4;return t?o=dt.colors.gray5:r=n?dt.colors.red:dt.colors.gray4,qe(PB||(PB=P(["\n height: ","px;\n border-radius: ","px;\n border-color: ",";\n background-color: ",";\n "],["\n height: ","px;\n border-radius: ","px;\n border-color: ",";\n background-color: ",";\n "])),dt.sizes.XL,dt.sizes.XS,r,o)})),WT=et(rt)(jB||(jB=P(["\n display: flex;\n text-align: center;\n align-items: center;\n justify-content: center;\n padding: 10px;\n height: 100%;\n width: 50%;\n ","\n"],["\n display: flex;\n text-align: center;\n align-items: center;\n justify-content: center;\n padding: 10px;\n height: 100%;\n width: 50%;\n ","\n"])),(function(e){var t=e.isActive,n=t?dt.colors.white:"transparent";return qe(NB||(NB=P(["\n background-color: ",";\n border-radius: ","px;\n box-shadow: ",";\n transition: background-color 0.4s ease-out;\n "],["\n background-color: ",";\n border-radius: ","px;\n box-shadow: ",";\n transition: background-color 0.4s ease-out;\n "])),n,dt.sizes.XS,t?"0 0 5px rgba(0, 0, 0, 0.15)":"none")})),UT=function(e){var t=e.size,n=void 0===t?"XL":t,r=e.withShadow,o=e.label,i=e.backgroundColor,a=e.onPress,s=e.content,l=s.initials,u=s.iconName,c=s.imageUrl,d=e.textConfig,p=void 0===d?{}:d,f=p.color,h=void 0===f?"white":f,m=p.font,v=void 0===m?"L":m,g="number"==typeof n?n:dt.sizes[n],y=l?it(XT,O({variant:v,color:h,avatarSize:g},{children:l})):u?it(ff,{name:u,color:"white",size:g/1.5}):c?it(GT,{avatarSize:g,src:c}):null;return at(HT,{children:[it(KT,O({clickable:!!a,onClick:a,withShadow:r,backgroundColor:c?"white":i,avatarSize:g},{children:y})),!!o&&it(qT,O({variant:"L"},{children:o}))]})},HT=et.div(RB||(RB=P(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n"],["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n"]))),qT=et(wC)(IB||(IB=P(["\n margin-left: 14px;\n color: ",";\n"],["\n margin-left: 14px;\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),KT=et.div(VB||(VB=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes,o=e.avatarSize,i=e.withShadow,a=e.backgroundColor,s=e.clickable;return qe($B||($B=P(["\n display: flex;\n justify-content: center;\n overflow: hidden;\n align-items: center;\n transition: 0.1s;\n background-color: ",";\n color: ",";\n border: ","px solid ",";\n border-radius: ","px;\n ",";\n ","\n ","\n "],["\n display: flex;\n justify-content: center;\n overflow: hidden;\n align-items: center;\n transition: 0.1s;\n background-color: ",";\n color: ",";\n border: ","px solid ",";\n border-radius: ","px;\n ",";\n ","\n ","\n "])),n[a||"indigoTint2"],n.white,Math.round(o/r["2XL"]),n.white,o/2,st(o),i&&qe(_B||(_B=P(["\n filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));\n "],["\n filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));\n "]))),s&&qe(LB||(LB=P(["\n cursor: pointer;\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n "],["\n cursor: pointer;\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n "])),ut(n[a||"indigoTint2"]),n[a||"indigoTint2"]))})),XT=et(wC)(WB||(WB=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.avatarSize;return qe(zB||(zB=P(["\n user-select: none;\n font-size: ","px;\n "],["\n user-select: none;\n font-size: ","px;\n "])),t/2)})),GT=et(ew)(HB||(HB=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.avatarSize;return qe(UB||(UB=P(["\n ",";\n object-fit: cover;\n transition: 0.1s;\n\n &:hover {\n opacity: 0.7;\n }\n &:active {\n opacity: 1;\n }\n "],["\n ",";\n object-fit: cover;\n transition: 0.1s;\n\n &:hover {\n opacity: 0.7;\n }\n &:active {\n opacity: 1;\n }\n "])),st(t))})),YT=et.div(qB||(qB=P(["\n padding: 0\n ","px;\n"],["\n padding: 0\n ","px;\n"])),(function(e){var t=e.theme,n=e.padding;return"number"==typeof n?n:t.sizes[n]})),ZT=et.div(KB||(KB=P(["\n padding: ","px\n 0;\n"],["\n padding: ","px\n 0;\n"])),(function(e){var t=e.theme,n=e.padding;return"number"==typeof n?n:t.sizes[n]})),JT=et.div(GB||(GB=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes,o=e.color,i=void 0===o?"gray4":o,a=e.type,s=void 0===a?"horizontal":a,l=e.weight,u=void 0===l?1:l,c=e.marginHorizontal,d=e.marginVertical;return qe(XB||(XB=P(["\n width: ",";\n height: ",";\n background-color: ",";\n margin: ","px\n ","px;\n "],["\n width: ",";\n height: ",";\n background-color: ",";\n margin: ","px\n ","px;\n "])),"vertical"===s?"".concat(u,"px"):"100%","horizontal"===s?"".concat(u,"px"):"100%",n[i]||i,"number"==typeof d?d:r[d]||0,"number"==typeof c?c:r[c]||0)})),QT=function(e){var t=e.isError,n=e.disabled,r=e.internalConfig||{},o=r.selectedRadioOptionBackgroundColor,i=void 0===o?"transparent":o,a=r.selectedRadioOptionIndicatorColor,s=void 0===a?"primary":a,l=r.styles,u=r.wrapperStyles,c=r.textPadding,d=r.buttonPadding,p=void 0===d?0:d,f=r.radioGroupWrapperStyles,h=r.buttonOptionSpacing,m=void 0===h?"XS":h,v=qe(ZB||(ZB=P(["\n ","\n\n ","\n "],["\n ","\n\n ","\n "])),c&&qe(YB||(YB=P(["\n padding: ","px;\n "],["\n padding: ","px;\n "])),c),l),g=qe(JB||(JB=P(["\n .Mui-checked {\n color: ",";\n svg:nth-child(1) {\n background-color: ",";\n }\n }\n ","\n "],["\n .Mui-checked {\n color: ",";\n svg:nth-child(1) {\n background-color: ",";\n }\n }\n ","\n "])),dt.colors[s]||s,dt.colors[i]||i,l),y=qe(QB||(QB=P(["\n padding: ","px;\n ","\n ","\n "],["\n padding: ","px;\n ","\n ","\n "])),p,l,u);return{textStyles:v,groupWrapperStyles:qe(eT||(eT=P(["\n gap: ","px;\n ","\n "],["\n gap: ","px;\n ","\n "])),dt.sizes[m],f),radioIconWrapperStyles:g,radioLabelWrapperStyles:y,textColor:t?"red":n?"gray3":"gray1"}},eF=et(gc)(nT||(nT=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme.colors,n=e.$isError,r=e.$styles;return qe(tT||(tT=P(["\n color: ",";\n ","\n "],["\n color: ",";\n ","\n "])),n?t.red:t.gray1,r)})),tF=et(ap)(sT||(sT=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme.colors,n=e.$disabled,r=e.$isError,o=e.$styles,i=e.$isEditMode;return qe(aT||(aT=P(["\n color: ",";\n cursor: ",";\n\n & .MuiSvgIcon-root {\n font-size: 16px;\n }\n\n &:hover {\n color: ",";\n ","\n }\n\n &.Mui-checked {\n svg:nth-child(1) {\n color: ",";\n border-radius: 50%;\n }\n }\n ","\n\n ","\n \n ","\n "],["\n color: ",";\n cursor: ",";\n\n & .MuiSvgIcon-root {\n font-size: 16px;\n }\n\n &:hover {\n color: ",";\n ","\n }\n\n &.Mui-checked {\n svg:nth-child(1) {\n color: ",";\n border-radius: 50%;\n }\n }\n ","\n\n ","\n \n ","\n "])),t.gray3,i?"pointer":"default",i?t.gray2:t.gray3,!i&&qe(rT||(rT=P(["\n background-color: transparent;\n "],["\n background-color: transparent;\n "]))),t.gray3,n&&qe(oT||(oT=P(["\n & .MuiSvgIcon-root {\n color: ",";\n background-color: ",";\n border-radius: 50%;\n }\n "],["\n & .MuiSvgIcon-root {\n color: ",";\n background-color: ",";\n border-radius: 50%;\n }\n "])),t.gray4,t.gray4),r&&qe(iT||(iT=P(["\n color: ",";\n &.Mui-checked {\n color: ",";\n }\n "],["\n color: ",";\n &.Mui-checked {\n color: ",";\n }\n "])),t.red,t.red),o)})),nF=function(e){var t=e.option,n=e.isError,r=void 0!==n&&n,o=e.disabled,i=void 0!==o&&o,a=e.isEditMode,s=e.isRichText,l=void 0===s||s,u=e.internalConfig,c=QT({isError:r,disabled:i,internalConfig:u}),d=c.textStyles,p=c.radioIconWrapperStyles,f=c.radioLabelWrapperStyles,h=c.textColor,m=t.id,v=t.label;return it(ot,{children:it(eF,{value:m,$isError:r,$styles:f,label:l?it(bC,{extraTextProps:{behaveAs:i?"text":"button"},textStyles:d,color:h,value:v,font:"M"}):it(wC,O({styles:d,behaveAs:i?"text":"button",color:h,variant:"M"},{children:v})),control:it(tF,{disableRipple:!a,$disabled:i,$isError:r,$isEditMode:a,$styles:p})})})},rF=function(e){var t=e.ref,n=e.name,r=e.value,o=e.options,i=e.onBlur,a=e.onChange,s=e.isRow,l=void 0!==s&&s,u=e.isError,c=void 0!==u&&u,d=e.disabled,p=void 0!==d&&d,f=e.isEditMode,h=void 0===f||f,m=e.isRichText,v=void 0===m||m,g=e.internalConfig,y=QT({internalConfig:g}).groupWrapperStyles;return it(oF,O({ref:t,row:l,$isRow:l,name:n,value:r,onBlur:i,onChange:function(e){h&&(null==a||a(e.target.value))},$styles:y},{children:null==o?void 0:o.map((function(e){return it(nF,{option:e,isError:c,disabled:p,isRichText:v,isEditMode:h,internalConfig:g},e.id)}))}))},oF=et(up)(uT||(uT=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.$styles,n=e.$isRow;return qe(lT||(lT=P(["\n justify-content: ",";\n ",";\n "],["\n justify-content: ",";\n ",";\n "])),n?"space-between":"flex-start",t)})),iF={link:{fontColor:dt.colors.blueShade,backgroundColor:dt.colors.blueTint},message:{fontColor:dt.colors.yellowShade,backgroundColor:dt.colors.yellowTint}},aF=qe(cT||(cT=P(["\n text-decoration-line: none;\n"],["\n text-decoration-line: none;\n"]))),sF=function(e){var t=e.index,n=e.type;return it(lF,O({backgroundColor:iF[n].backgroundColor},{children:it(wC,O({styles:aF,variant:"M",color:iF[n].fontColor},{children:t}))}))},lF=et.span(pT||(pT=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme.sizes,n=e.backgroundColor;return qe(dT||(dT=P(["\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n "],["\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n "])),n,t.L,t.L)})),uF=et.span(fT||(fT=P(["\n display: inline-flex;\n gap: 2px;\n"],["\n display: inline-flex;\n gap: 2px;\n"]))),cF=function(e){var t=e.activeColor,n=e.inactiveColor,r=A(e,["activeColor","inactiveColor"]),o=(Re()||dt).colors;return it(dF,O({},r,{activeColor:o[t]||t,inactiveColor:o[n]||n}))},dF=et.span(mT||(mT=P(["\n display: block;\n width: 20px;\n height: 20px;\n margin: 5px;\n border-radius: 100%;\n background-clip: content-box;\n ","\n"],["\n display: block;\n width: 20px;\n height: 20px;\n margin: 5px;\n border-radius: 100%;\n background-clip: content-box;\n ","\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes,o=e.active,i=e.activeColor,a=e.inactiveColor;return qe(hT||(hT=P(["\n padding: ","px;\n border: ",";\n background-color: ",";\n box-shadow: ",";\n "],["\n padding: ","px;\n border: ",";\n background-color: ",";\n box-shadow: ",";\n "])),r.XS,o?"1px solid ".concat(i||n.white):"none",o?i||n.white:a||n.gray3,o?"inset 0 0 0 1px rgba(0, 0, 0, 0), inset 0 0 0 4px rgba(0, 0, 0, 0.05)":"unset")})),pF={ArrowRight:df,Bell:tf,Bookmark:zp,CaretDown:Wp,CaretLeft:Hp,CaretRight:qp,CaretUp:Up,Check:Kp,Close:Yp,Edit:af,Filter:Gp,Hide:Jp,Info:Xp,InfoBoxIcon:Qp,Mail:of,Menu:lf,Minus:ef,Mobile:rf,Play:uf,Save:sf,Search:cf,View:Zp,Warning:nf},fF=function(e){var t=e.name,n=e.color,r=e.onClick,o=e.disabled,i=e.activeOpacity,a=e.withoutOpacityEffect,s=A(e,["name","color","onClick","disabled","activeOpacity","withoutOpacityEffect"]),l=(Re()||dt).colors;return it(rt,O({onClick:r,disabled:o,activeOpacity:i,withoutOpacityEffect:a},{children:it(pF[t],O({},s,{color:l[n]||n}))}))},hF=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n="light");var r=dt.colors;return t&&e?r[e]||e:t?"dark"===n?r.gray2:r.gray4:"transparent"},mF=et(wC)(yT||(yT=P(["\n width: max-content;\n ","\n"],["\n width: max-content;\n ","\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes,o=t.fonts,i=e.tabTheme,a=e.textSize,s=e.defaultTabTextColor,l=void 0===s?"gray2":s,u=e.tabPadding,c=void 0===u?0:u,d=e.tabFont,p=void 0===d?"L":d,f=n[l]||l;return qe(gT||(gT=P(["\n color: ",";\n padding: ","px;\n ",";\n &:hover {\n color: ",";\n }\n "],["\n color: ",";\n padding: ","px;\n ",";\n &:hover {\n color: ",";\n }\n "])),f||("dark"===i?n.gray3:n.gray2),r[c]||c,a?qe(vT||(vT=P(["\n font-size: ","px;\n "],["\n font-size: ","px;\n "])),a):o[p],f||("dark"===i?n.white:n.gray1))})),vF=et.div(wT||(wT=P(["\n position: relative;\n display: flex;\n align-items: center;\n cursor: pointer;\n ",";\n"],["\n position: relative;\n display: flex;\n align-items: center;\n cursor: pointer;\n ",";\n"])),(function(e){var t=e.theme.colors,n=e.isActive,r=e.disabled,o=e.tabTheme,i=e.selectedTabTextColor,a=e.styles;if(r)return qe(bT||(bT=P(["\n pointer-events: none;\n "," {\n color: ",";\n }\n "],["\n pointer-events: none;\n "," {\n color: ",";\n }\n "])),mF,"dark"===o?t.gray2:t.gray3);if(n){var s=t[i]||i;return qe(xT||(xT=P(["\n "," {\n color: ",";\n }\n "],["\n "," {\n color: ",";\n }\n "])),mF,s||("dark"===o?t.white:t.gray1))}return qe(CT||(CT=P(["\n ","\n "],["\n ","\n "])),a)})),gF=et.div(ET||(ET=P(["\n transition: 0.25s;\n margin-left: 10px;\n width: 16px;\n height: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n svg {\n transform: scale(0.8);\n }\n ",";\n"],["\n transition: 0.25s;\n margin-left: 10px;\n width: 16px;\n height: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n svg {\n transform: scale(0.8);\n }\n ",";\n"])),(function(e){var t=e.isActive,n=e.disabled,r=e.tabTheme,o=e.defaultTabTextColor,i=void 0===o?"gray2":o;return qe(DT||(DT=P(["\n transform: ",";\n svg path {\n stroke: ",";\n }\n "],["\n transform: ",";\n svg path {\n stroke: ",";\n }\n "])),t?"rotate(180deg)":"rotate(0deg)",function(e,t,n){void 0===e&&(e="gray1"),void 0===t&&(t="light"),void 0===n&&(n=!1);var r=dt.colors;return"dark"===t?n?r.gray2:r.gray3:n?r.gray3:r[e]||e}(i,r,n))})),yF=function(e,t){return e&&t[e]?"".concat(t[e],"px"):e},bF=function(e){if(!e)return!1;var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},xF=function(e){var t=e.$selected,n=e.isConfigurationMode,r=e.theme.colors;return n?qe(AT||(AT=P(["\n margin: 3px;\n padding: 3px;\n cursor: pointer;\n outline: 1.5px dashed ",";\n transition: all 0.1s ease-in-out;\n\n ","\n "],["\n margin: 3px;\n padding: 3px;\n cursor: pointer;\n outline: 1.5px dashed ",";\n transition: all 0.1s ease-in-out;\n\n ","\n "])),r.gray4,t?qe(ST||(ST=P(["\n outline: 3px solid ",";\n "],["\n outline: 3px solid ",";\n "])),r.primary):qe(OT||(OT=P(["\n :hover:not(:has(#configurationWrapper *:hover)):not(:focus-visible) {\n outline: 3px dashed ",";\n }\n "],["\n :hover:not(:has(#configurationWrapper *:hover)):not(:focus-visible) {\n outline: 3px dashed ",";\n }\n "])),ct(r.gray4))):qe(kT||(kT=P([""],[""])))},CF=["slider","form"],wF=et.div(TT||(TT=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.type,n=void 0===t?"row":t,r=e.containerProps,o=e.metadata,i=e.theme,a=i.sizes,s=i.colors,l=r||{},u=l.border,c=void 0===u?"":u,d=l.alignItems,p=void 0===d?"stretch":d,f=l.position,h=void 0===f?"static":f,m=l.gap,v=void 0===m?0:m,g=l.cornerRadius,y=void 0===g?0:g,b=l.paddingTop,x=void 0===b?0:b,C=l.paddingBottom,w=void 0===C?0:C,D=l.paddingLeft,E=void 0===D?0:D,k=l.paddingRight,S=void 0===k?0:k,O=l.scrollBehaviour,A=l.styles,B=c.split(" "),T=B[0],F=B[1],M=B[2],N=void 0===M?s.gray3:M,j=s[N]||N,R=(null==o?void 0:o.repeater)&&(null==o?void 0:o.childrenAmount)&&(null==o?void 0:o.childrenAmount)>1?"space-between":"center",I=[x,w,E,S].some(Boolean)?function(e,t){return"string"==typeof e?t[e]?"".concat(t[e],"px"):e:["top","right","bottom","left"].map((function(n){return yF(e[n]||0,t)})).join(" ")}({top:x,bottom:w,left:E,right:S},a):"0px";return qe(BT||(BT=P(["\n display: flex;\n align-items: ",";\n flex-direction: ",";\n position: ",";\n gap: ","px;\n border: "," "," ",";\n border-radius: ","px;\n justify-content: ",";\n padding: ",";\n ",";\n ",";\n ",";\n "],["\n display: flex;\n align-items: ",";\n flex-direction: ",";\n position: ",";\n gap: ","px;\n border: "," "," ",";\n border-radius: ","px;\n justify-content: ",";\n padding: ",";\n ",";\n ",";\n ",";\n "])),p,"column"===n?"column":"row",h,v&&a[v],T,F,j,a[y]||y,R,I,function(e){return"vertical"===e?"overflow-y: scroll":"horizontal"===e?"overflow-x: scroll":"none"===e?"overflow: visible":"overflow: unset"}(CF.includes(n)?"none":O),A,xF)})),DF=function(e){var t=e.isRichText,n=void 0!==t&&t,r=e.variant,o=void 0===r?"base":r,i=e.text,a=void 0===i?"":i,s=e.seoTag,l=e.fontVariant,u=e.textColor,c=e.textSize,d=e.fontWeight,p=e.lineHeight,f=e.letterSpacing,h=e.styles,m=e.textAlign,v=e.htmlElementId,g=e.configurationItemInfo,y=A(e,["isRichText","variant","text","seoTag","fontVariant","textColor","textSize","fontWeight","lineHeight","letterSpacing","styles","textAlign","htmlElementId","configurationItemInfo"]),b=qe(FT||(FT=P(["\n ",";\n ",";\n ",";\n ",";\n ","\n "],["\n ",";\n ",";\n ",";\n ",";\n ","\n "])),c?"font-size: ".concat(c,"px;"):"",d?"font-weight: ".concat(d,";"):"",p?"line-height: ".concat(p,"px;"):"",f?"letter-spacing: ".concat(f,"px;"):"",h),x=O({variant:l,color:u,styles:"custom"===o?b:void 0,seoTag:s,textAlign:m,behaveAs:(null==g?void 0:g.isConfigurationMode)?"button":"text"},y),C=n?it(bC,{value:a,extraTextProps:x,htmlElementId:v}):it(wC,O({},x,{htmlElementId:v},{children:a}));return it(EF,O({id:"configurationWrapper"},g,{children:C}))},EF=et.div(PT||(PT=P(["\n ","\n"],["\n ","\n"])),xF),kF={OPTIONAL:{text:"Optional",color:"gray3"},REQUIRED:{text:"Required",color:"red"}},SF=function(e){var t=e.label,n=void 0===t?"":t,r=e.isTooltipVisible,o=e.isError,i=e.ruleLabel,a=e.tooltipText,s=e.labelInternalConfig,l=e.ruleLabelInternalConfig,u=e.tooltipInternalConfig,c=e.isRichText,d=void 0!==c&&c,p=Re().colors,f=s||{},h=f.color,m=f.fontSize,v=f.fontVariant,g=void 0===v?"S":v,y=f.fontWeight,b=f.padding,x=f.styles,C=f.wrapperStyles,w=qe(jT||(jT=P(["\n ",";\n ",";\n "],["\n ",";\n ",";\n "])),b?"padding: ".concat(b,";"):"",x),D=p[h]||h,E=l||{},k=E.fontSize,S=E.optionalTextColor,A=E.padding,B=E.requiredTextColor,T=E.styles,F=qe(RT||(RT=P(["\n ",";\n ",";\n "],["\n ",";\n ",";\n "])),A?"padding: ".concat(A,";"):"",T),M=i?kF[i]:void 0,N="OPTIONAL"===i?S:B,j=p[N]||N||M&&p[M.color],R=function(e){var t=e||{},n=t.backgroundColor,r=t.color,o=t.fontSize,i=t.fontVariant,a=t.fontWeight,s=t.padding,l=t.styles,u=t.wrapperStyles,c=t.iconColor,d=qe(MT||(MT=P(["\n ",";\n ",";\n "],["\n ",";\n ",";\n "])),(function(e){var t=e.theme,l=t.colors,u=t.fonts;return"\n ".concat(n?"background-color: ".concat(l[n]||n,";"):"",";\n ").concat(r?"color: ".concat(l[r]||r,";"):"",";\n ").concat(o?"font-size: ".concat(o,"px;"):"",";\n ").concat(i?u[i]:"",";\n ").concat(a?"font-weight: ".concat(a,";"):"",";\n ").concat(s?"padding: ".concat(s,";"):"",";\n ")}),l),p=qe(NT||(NT=P(["\n ",";\n ",";\n "],["\n ",";\n ",";\n "])),(function(e){var t=e.theme.colors;return"\n svg path {\n stroke: ".concat(t[c]||c,";\n }\n ")}),u);return{tooltipStyles:d,tooltipWrapperStyles:p}}(u),I=R.tooltipStyles,_=R.tooltipWrapperStyles;return at(OF,O({$styles:C},{children:[at(AF,O({$styles:w},{children:[it(DF,{fontVariant:g,textSize:m,fontWeight:y,textColor:o?p.red:D||p.gray2,text:n,variant:"custom",isRichText:d}),!!a&&it(nB,O({},r&&{visible:!0},{overlay:a,styles:I},{children:it(BF,O({$styles:_},{children:it(ff,{color:o?p.red:p.gray2,name:"Info"})}))}))]})),!!M&&it(DF,{fontVariant:"XS",textColor:j,textSize:k,text:M.text,styles:F,variant:"custom"})]}))},OF=et.div(IT||(IT=P(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n ",";\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n ",";\n"])),(function(e){return e.$styles})),AF=et.div(_T||(_T=P(["\n display: flex;\n align-items: center;\n ",";\n"],["\n display: flex;\n align-items: center;\n ",";\n"])),(function(e){return e.$styles})),BF=et.div(LT||(LT=P(["\n margin-left: 6px;\n display: flex;\n cursor: pointer;\n ",";\n"],["\n margin-left: 6px;\n display: flex;\n cursor: pointer;\n ",";\n"])),(function(e){return e.$styles})),TF=e=>"checkbox"===e.type,FF=e=>e instanceof Date,PF=e=>null==e;const MF=e=>"object"==typeof e;var NF=e=>!PF(e)&&!Array.isArray(e)&&MF(e)&&!FF(e),jF=e=>NF(e)&&e.target?TF(e.target)?e.target.checked:e.target.value:e,RF=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),IF=e=>Array.isArray(e)?e.filter(Boolean):[],_F=e=>void 0===e,LF=(e,t,n)=>{if(!t||!NF(e))return n;const r=IF(t.split(/[,[\].]+?/)).reduce(((e,t)=>PF(e)?e:e[t]),e);return _F(r)||r===e?_F(e[t])?n:e[t]:r};const $F="blur",VF="focusout",zF="change",WF="onBlur",UF="onChange",HF="onSubmit",qF="onTouched",KF="all",XF="max",GF="min",YF="maxLength",ZF="minLength",JF="pattern",QF="required",eP="validate",tP=t.createContext(null),nP=()=>t.useContext(tP),rP=e=>{const{children:n,...r}=e;return t.createElement(tP.Provider,{value:r},n)};var oP=(e,t,n,r=!0)=>{const o={};for(const i in e)Object.defineProperty(o,i,{get:()=>{const o=i;return t[o]!==KF&&(t[o]=!r||KF),n&&(n[o]=!0),e[o]}});return o},iP=e=>NF(e)&&!Object.keys(e).length,aP=(e,t,n)=>{const{name:r,...o}=e;return iP(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!n||KF)))},sP=e=>Array.isArray(e)?e:[e],lP=(e,t,n)=>n&&t?e===t:!e||!t||e===t||sP(e).some((e=>e&&(e.startsWith(t)||t.startsWith(e))));function uP(e){const n=t.useRef(e);n.current=e,t.useEffect((()=>{const t=!e.disabled&&n.current.subject.subscribe({next:n.current.callback});return()=>(e=>{e&&e.unsubscribe()})(t)}),[e.disabled])}var cP=e=>"string"==typeof e,dP=(e,t,n,r)=>{const o=Array.isArray(e);return cP(e)?(r&&t.watch.add(e),LF(n,e)):o?e.map((e=>(r&&t.watch.add(e),LF(n,e)))):(r&&(t.watchAll=!0),n)},pP=e=>"function"==typeof e,fP=e=>{for(const t in e)if(pP(e[t]))return!0;return!1};function hP(e){const n=nP(),{name:r,control:o=n.control,shouldUnregister:i}=e,a=RF(o._names.array,r),s=function(e){const n=nP(),{control:r=n.control,name:o,defaultValue:i,disabled:a,exact:s}=e||{},l=t.useRef(o);l.current=o;const u=t.useCallback((e=>{if(lP(l.current,e.name,s)){const t=dP(l.current,r._names,e.values||r._formValues);d(_F(l.current)||NF(t)&&!fP(t)?{...t}:Array.isArray(t)?[...t]:_F(t)?i:t)}}),[r,s,i]);uP({disabled:a,subject:r._subjects.watch,callback:u});const[c,d]=t.useState(_F(i)?r._getWatch(o):i);return t.useEffect((()=>{r._removeUnmounted()})),c}({control:o,name:r,defaultValue:LF(o._formValues,r,LF(o._defaultValues,r,e.defaultValue)),exact:!0}),l=function(e){const n=nP(),{control:r=n.control,disabled:o,name:i,exact:a}=e||{},[s,l]=t.useState(r._formState),u=t.useRef({isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=t.useRef(i),d=t.useRef(!0);return c.current=i,uP({disabled:o,callback:t.useCallback((e=>d.current&&lP(c.current,e.name,a)&&aP(e,u.current)&&l({...r._formState,...e})),[r,a]),subject:r._subjects.state}),t.useEffect((()=>(d.current=!0,()=>{d.current=!1})),[]),oP(s,r._proxyFormState,u.current,!1)}({control:o,name:r}),u=t.useRef(o.register(r,{...e.rules,value:s}));return t.useEffect((()=>{const e=(e,t)=>{const n=LF(o._fields,e);n&&(n._f.mount=t)};return e(r,!0),()=>{const t=o._options.shouldUnregister||i;(a?t&&!o._stateFlags.action:t)?o.unregister(r):e(r,!1)}}),[r,o,a,i]),{field:{name:r,value:s,onChange:t.useCallback((e=>{u.current.onChange({target:{value:jF(e),name:r},type:zF})}),[r]),onBlur:t.useCallback((()=>{u.current.onBlur({target:{value:LF(o._formValues,r),name:r},type:$F})}),[r,o]),ref:t.useCallback((e=>{const t=LF(o._fields,r);e&&t&&e.focus&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}),[r,o._fields])},formState:l,fieldState:Object.defineProperties({},{invalid:{get:()=>!!LF(l.errors,r)},isDirty:{get:()=>!!LF(l.dirtyFields,r)},isTouched:{get:()=>!!LF(l.touchedFields,r)},error:{get:()=>LF(l.errors,r)}})}}const mP=e=>e.render(hP(e));var vP=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},gP=e=>/^\w*$/.test(e),yP=e=>IF(e.replace(/["|']|\]/g,"").split(/\.|\[/));function bP(e,t,n){let r=-1;const o=gP(t)?[t]:yP(t),i=o.length,a=i-1;for(;++r<i;){const t=o[r];let i=n;if(r!==a){const n=e[t];i=NF(n)||Array.isArray(n)?n:isNaN(+o[r+1])?{}:[]}e[t]=i,e=e[t]}return e}const xP=(e,t,n)=>{for(const r of n||Object.keys(e)){const n=LF(e,r);if(n){const{_f:e,...r}=n;if(e&&t(e.name)){if(e.ref.focus&&_F(e.ref.focus()))break;if(e.refs){e.refs[0].focus();break}}else NF(r)&&xP(r,t)}}};var CP=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))))),wP=(e,t,n)=>{const r=IF(LF(e,n));return bP(r,"root",t[n]),bP(e,n,r),e},DP=e=>"boolean"==typeof e,EP=e=>"file"===e.type,kP=e=>cP(e)||t.isValidElement(e),SP=e=>"radio"===e.type,OP=e=>e instanceof RegExp;const AP={value:!1,isValid:!1},BP={value:!0,isValid:!0};var TP=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!_F(e[0].attributes.value)?_F(e[0].value)||""===e[0].value?BP:{value:e[0].value,isValid:!0}:BP:AP}return AP};const FP={isValid:!1,value:null};var PP=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),FP):FP;function MP(e,t,n="validate"){if(kP(e)||Array.isArray(e)&&e.every(kP)||DP(e)&&!e)return{type:n,message:kP(e)?e:"",ref:t}}var NP=e=>NF(e)&&!OP(e)?e:{value:e,message:""},jP=async(e,t,n,r,o)=>{const{ref:i,refs:a,required:s,maxLength:l,minLength:u,min:c,max:d,pattern:p,validate:f,name:h,valueAsNumber:m,mount:v,disabled:g}=e._f;if(!v||g)return{};const y=a?a[0]:i,b=e=>{r&&y.reportValidity&&(y.setCustomValidity(DP(e)?"":e||" "),y.reportValidity())},x={},C=SP(i),w=TF(i),D=C||w,E=(m||EP(i))&&!i.value||""===t||Array.isArray(t)&&!t.length,k=vP.bind(null,h,n,x),S=(e,t,n,r=YF,o=ZF)=>{const a=e?t:n;x[h]={type:e?r:o,message:a,ref:i,...k(e?r:o,a)}};if(o?!Array.isArray(t)||!t.length:s&&(!D&&(E||PF(t))||DP(t)&&!t||w&&!TP(a).isValid||C&&!PP(a).isValid)){const{value:e,message:t}=kP(s)?{value:!!s,message:s}:NP(s);if(e&&(x[h]={type:QF,message:t,ref:y,...k(QF,t)},!n))return b(t),x}if(!(E||PF(c)&&PF(d))){let e,r;const o=NP(d),a=NP(c);if(PF(t)||isNaN(t)){const n=i.valueAsDate||new Date(t);cP(o.value)&&(e=n>new Date(o.value)),cP(a.value)&&(r=n<new Date(a.value))}else{const n=i.valueAsNumber||+t;PF(o.value)||(e=n>o.value),PF(a.value)||(r=n<a.value)}if((e||r)&&(S(!!e,o.message,a.message,XF,GF),!n))return b(x[h].message),x}if((l||u)&&!E&&(cP(t)||o&&Array.isArray(t))){const e=NP(l),r=NP(u),o=!PF(e.value)&&t.length>e.value,i=!PF(r.value)&&t.length<r.value;if((o||i)&&(S(o,e.message,r.message),!n))return b(x[h].message),x}if(p&&!E&&cP(t)){const{value:e,message:r}=NP(p);if(OP(e)&&!t.match(e)&&(x[h]={type:JF,message:r,ref:i,...k(JF,r)},!n))return b(r),x}if(f)if(pP(f)){const e=MP(await f(t),y);if(e&&(x[h]={...e,...k(eP,e.message)},!n))return b(e.message),x}else if(NF(f)){let e={};for(const r in f){if(!iP(e)&&!n)break;const o=MP(await f[r](t),y,r);o&&(e={...o,...k(r,o.message)},b(o.message),n&&(x[h]=e))}if(!iP(e)&&(x[h]={ref:y,...e},!n))return x}return b(!0),x},RP="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function IP(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(RP&&(e instanceof Blob||e instanceof FileList)||!n&&!NF(e))return e;t=n?[]:{};for(const n in e){if(pP(e[n])){t=e;break}t[n]=IP(e[n])}}return t}var _P=e=>({isOnSubmit:!e||e===HF,isOnBlur:e===WF,isOnChange:e===UF,isOnAll:e===KF,isOnTouch:e===qF});function LP(e){for(const t in e)if(!_F(e[t]))return!1;return!0}function $P(e,t){const n=gP(t)?[t]:yP(t),r=1==n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=_F(e)?r++:e[t[r++]];return e}(e,n),o=n[n.length-1];let i;r&&delete r[o];for(let t=0;t<n.slice(0,-1).length;t++){let r,o=-1;const a=n.slice(0,-(t+1)),s=a.length-1;for(t>0&&(i=e);++o<a.length;){const t=a[o];r=r?r[t]:e[t],s===o&&(NF(r)&&iP(r)||Array.isArray(r)&&LP(r))&&(i?delete i[t]:delete e[t]),i=r}}return e}function VP(){let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}}var zP=e=>PF(e)||!MF(e);function WP(e,t){if(zP(e)||zP(t))return e===t;if(FF(e)&&FF(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const n=e[o];if(!r.includes(o))return!1;if("ref"!==o){const e=t[o];if(FF(n)&&FF(e)||NF(n)&&NF(e)||Array.isArray(n)&&Array.isArray(e)?!WP(n,e):n!==e)return!1}}return!0}var UP=e=>{const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},HP=e=>"select-multiple"===e.type,qP=e=>UP(e)&&e.isConnected;function KP(e,t={}){const n=Array.isArray(e);if(NF(e)||n)for(const n in e)Array.isArray(e[n])||NF(e[n])&&!fP(e[n])?(t[n]=Array.isArray(e[n])?[]:{},KP(e[n],t[n])):PF(e[n])||(t[n]=!0);return t}function XP(e,t,n){const r=Array.isArray(e);if(NF(e)||r)for(const r in e)Array.isArray(e[r])||NF(e[r])&&!fP(e[r])?_F(t)||zP(n[r])?n[r]=Array.isArray(e[r])?KP(e[r],[]):{...KP(e[r])}:XP(e[r],PF(t)?{}:t[r],n[r]):n[r]=!WP(e[r],t[r]);return n}var GP=(e,t)=>XP(e,t,KP(t)),YP=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>_F(e)?e:t?""===e||PF(e)?NaN:+e:n&&cP(e)?new Date(e):r?r(e):e;function ZP(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return EP(t)?t.files:SP(t)?PP(e.refs).value:HP(t)?[...t.selectedOptions].map((({value:e})=>e)):TF(t)?TP(e.refs).value:YP(_F(t.value)?e.ref.value:t.value,e)}var JP=e=>_F(e)?void 0:OP(e)?e.source:NF(e)?OP(e.value)?e.value.source:e.value:e;function QP(e,t,n){const r=LF(e,n);if(r||gP(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const r=o.join("."),i=LF(t,r),a=LF(e,r);if(i&&!Array.isArray(i)&&n!==r)return{name:n};if(a&&a.type)return{name:r,error:a};o.pop()}return{name:n}}const eM={mode:HF,reValidateMode:UF,shouldFocusError:!0};function tM(e={}){let t,n={...eM,...e},r={isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}},o={},i=IP(n.defaultValues)||{},a=n.shouldUnregister?{}:IP(i),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u=0,c={};const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={watch:VP(),array:VP(),state:VP()},f=_P(n.mode),h=_P(n.reValidateMode),m=n.criteriaMode===KF,v=async e=>{let t=!1;return d.isValid&&(t=n.resolver?iP((await x()).errors):await C(o,!0),e||t===r.isValid||(r.isValid=t,p.state.next({isValid:t}))),t},g=(e,t,n,r)=>{const l=LF(o,e);if(l){const o=LF(a,e,_F(n)?LF(i,e):n);_F(o)||r&&r.defaultChecked||t?bP(a,e,t?o:ZP(l._f)):E(e,o),s.mount&&v()}},y=(e,t,n,o,a)=>{let s=!1;const l={name:e},u=LF(r.touchedFields,e);if(d.isDirty){const e=r.isDirty;r.isDirty=l.isDirty=w(),s=e!==l.isDirty}if(d.dirtyFields&&(!n||o)){const n=LF(r.dirtyFields,e);WP(LF(i,e),t)?$P(r.dirtyFields,e):bP(r.dirtyFields,e,!0),l.dirtyFields=r.dirtyFields,s=s||n!==LF(r.dirtyFields,e)}return n&&!u&&(bP(r.touchedFields,e,n),l.touchedFields=r.touchedFields,s=s||d.touchedFields&&u!==n),s&&a&&p.state.next(l),s?l:{}},b=async(n,o,i,a)=>{const s=LF(r.errors,n),l=d.isValid&&r.isValid!==o;var f;if(e.delayError&&i?(f=()=>((e,t)=>{bP(r.errors,e,t),p.state.next({errors:r.errors})})(n,i),t=e=>{clearTimeout(u),u=window.setTimeout(f,e)},t(e.delayError)):(clearTimeout(u),t=null,i?bP(r.errors,n,i):$P(r.errors,n)),(i?!WP(s,i):s)||!iP(a)||l){const e={...a,...l?{isValid:o}:{},errors:r.errors,name:n};r={...r,...e},p.state.next(e)}c[n]--,d.isValidating&&!Object.values(c).some((e=>e))&&(p.state.next({isValidating:!1}),c={})},x=async e=>n.resolver?await n.resolver({...a},n.context,((e,t,n,r)=>{const o={};for(const n of e){const e=LF(t,n);e&&bP(o,n,e._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}})(e||l.mount,o,n.criteriaMode,n.shouldUseNativeValidation)):{},C=async(e,t,o={valid:!0})=>{for(const i in e){const s=e[i];if(s){const{_f:e,...i}=s;if(e){const i=l.array.has(e.name),u=await jP(s,LF(a,e.name),m,n.shouldUseNativeValidation,i);if(u[e.name]&&(o.valid=!1,t))break;!t&&(LF(u,e.name)?i?wP(r.errors,u,e.name):bP(r.errors,e.name,u[e.name]):$P(r.errors,e.name))}i&&await C(i,t,o)}}return o.valid},w=(e,t)=>(e&&t&&bP(a,e,t),!WP(B(),i)),D=(e,t,n)=>{const r={...s.mount?a:_F(t)?i:cP(e)?{[e]:t}:t};return dP(e,l,r,n)},E=(e,t,n={})=>{const r=LF(o,e);let i=t;if(r){const n=r._f;n&&(!n.disabled&&bP(a,e,YP(t,n)),i=RP&&UP(n.ref)&&PF(t)?"":t,HP(n.ref)?[...n.ref.options].forEach((e=>e.selected=i.includes(e.value))):n.refs?TF(n.ref)?n.refs.length>1?n.refs.forEach((e=>!e.disabled&&(e.checked=Array.isArray(i)?!!i.find((t=>t===e.value)):i===e.value))):n.refs[0]&&(n.refs[0].checked=!!i):n.refs.forEach((e=>e.checked=e.value===i)):EP(n.ref)?n.ref.value="":(n.ref.value=i,n.ref.type||p.watch.next({name:e})))}(n.shouldDirty||n.shouldTouch)&&y(e,i,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&A(e)},k=(e,t,n)=>{for(const r in t){const i=t[r],a=`${e}.${r}`,s=LF(o,a);!l.array.has(e)&&zP(i)&&(!s||s._f)||FF(i)?E(a,i,n):k(a,i,n)}},S=(e,t,n={})=>{const s=LF(o,e),u=l.array.has(e),c=IP(t);bP(a,e,c),u?(p.array.next({name:e,values:a}),(d.isDirty||d.dirtyFields)&&n.shouldDirty&&(r.dirtyFields=GP(i,a),p.state.next({name:e,dirtyFields:r.dirtyFields,isDirty:w(e,c)}))):!s||s._f||PF(c)?E(e,c,n):k(e,c,n),CP(e,l)&&p.state.next({}),p.watch.next({name:e})},O=async e=>{const i=e.target;let s=i.name;const u=LF(o,s);if(u){let g,C;const w=i.type?ZP(u._f):jF(e),D=e.type===$F||e.type===VF,E=!((d=u._f).mount&&(d.required||d.min||d.max||d.maxLength||d.minLength||d.pattern||d.validate)||n.resolver||LF(r.errors,s)||u._f.deps)||((e,t,n,r,o)=>!o.isOnAll&&(!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:!(n?r.isOnChange:o.isOnChange)||e))(D,LF(r.touchedFields,s),r.isSubmitted,h,f),k=CP(s,l,D);bP(a,s,w),D?(u._f.onBlur&&u._f.onBlur(e),t&&t(0)):u._f.onChange&&u._f.onChange(e);const S=y(s,w,D,!1),O=!iP(S)||k;if(!D&&p.watch.next({name:s,type:e.type}),E)return O&&p.state.next({name:s,...k?{}:S});if(!D&&k&&p.state.next({}),c[s]=(c[s],1),p.state.next({isValidating:!0}),n.resolver){const{errors:e}=await x([s]),t=QP(r.errors,o,s),n=QP(e,o,t.name||s);g=n.error,s=n.name,C=iP(e)}else g=(await jP(u,LF(a,s),m,n.shouldUseNativeValidation))[s],C=await v(!0);u._f.deps&&A(u._f.deps),b(s,C,g,S)}var d},A=async(e,t={})=>{let i,a;const s=sP(e);if(p.state.next({isValidating:!0}),n.resolver){const t=await(async e=>{const{errors:t}=await x();if(e)for(const n of e){const e=LF(t,n);e?bP(r.errors,n,e):$P(r.errors,n)}else r.errors=t;return t})(_F(e)?e:s);i=iP(t),a=e?!s.some((e=>LF(t,e))):i}else e?(a=(await Promise.all(s.map((async e=>{const t=LF(o,e);return await C(t&&t._f?{[e]:t}:t)})))).every(Boolean),(a||r.isValid)&&v()):a=i=await C(o);return p.state.next({...!cP(e)||d.isValid&&i!==r.isValid?{}:{name:e},...n.resolver?{isValid:i}:{},errors:r.errors,isValidating:!1}),t.shouldFocus&&!a&&xP(o,(e=>LF(r.errors,e)),e?s:l.mount),a},B=e=>{const t={...i,...s.mount?a:{}};return _F(e)?t:cP(e)?LF(t,e):e.map((e=>LF(t,e)))},T=(e,t)=>({invalid:!!LF((t||r).errors,e),isDirty:!!LF((t||r).dirtyFields,e),isTouched:!!LF((t||r).touchedFields,e),error:LF((t||r).errors,e)}),F=(e,t={})=>{for(const s of e?sP(e):l.mount)l.mount.delete(s),l.array.delete(s),LF(o,s)&&(t.keepValue||($P(o,s),$P(a,s)),!t.keepError&&$P(r.errors,s),!t.keepDirty&&$P(r.dirtyFields,s),!t.keepTouched&&$P(r.touchedFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&$P(i,s));p.watch.next({}),p.state.next({...r,...t.keepDirty?{isDirty:w()}:{}}),!t.keepIsValid&&v()},P=(e,t={})=>{let r=LF(o,e);const u=DP(t.disabled);return bP(o,e,{_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),r?u&&bP(a,e,t.disabled?void 0:LF(a,e,ZP(r._f))):g(e,!0,t.value),{...u?{disabled:t.disabled}:{},...n.shouldUseNativeValidation?{required:!!t.required,min:JP(t.min),max:JP(t.max),minLength:JP(t.minLength),maxLength:JP(t.maxLength),pattern:JP(t.pattern)}:{},name:e,onChange:O,onBlur:O,ref:a=>{if(a){P(e,t),r=LF(o,e);const n=_F(a.value)&&a.querySelectorAll&&a.querySelectorAll("input,select,textarea")[0]||a,s=(e=>SP(e)||TF(e))(n),l=r._f.refs||[];if(s?l.find((e=>e===n)):n===r._f.ref)return;bP(o,e,{_f:{...r._f,...s?{refs:[...l.filter(qP),n,...Array.isArray(LF(i,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),g(e,!1,void 0,n)}else r=LF(o,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!RF(l.array,e)||!s.action)&&l.unMount.add(e)}}};return{control:{register:P,unregister:F,getFieldState:T,_executeSchema:x,_getWatch:D,_getDirty:w,_updateValid:v,_removeUnmounted:()=>{for(const e of l.unMount){const t=LF(o,e);t&&(t._f.refs?t._f.refs.every((e=>!qP(e))):!qP(t._f.ref))&&F(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],n,l,u=!0,c=!0)=>{if(l&&n){if(s.action=!0,c&&Array.isArray(LF(o,e))){const t=n(LF(o,e),l.argA,l.argB);u&&bP(o,e,t)}if(d.errors&&c&&Array.isArray(LF(r.errors,e))){const t=n(LF(r.errors,e),l.argA,l.argB);u&&bP(r.errors,e,t),((e,t)=>{!IF(LF(e,t)).length&&$P(e,t)})(r.errors,e)}if(d.touchedFields&&c&&Array.isArray(LF(r.touchedFields,e))){const t=n(LF(r.touchedFields,e),l.argA,l.argB);u&&bP(r.touchedFields,e,t)}d.dirtyFields&&(r.dirtyFields=GP(i,a)),p.state.next({isDirty:w(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else bP(a,e,t)},_getFieldArray:t=>IF(LF(s.mount?a:i,t,e.shouldUnregister?LF(i,t,[]):[])),_subjects:p,_proxyFormState:d,get _fields(){return o},get _formValues(){return a},get _stateFlags(){return s},set _stateFlags(e){s=e},get _defaultValues(){return i},get _names(){return l},set _names(e){l=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:A,register:P,handleSubmit:(e,t)=>async i=>{i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let s=!0,u=IP(a);p.state.next({isSubmitting:!0});try{if(n.resolver){const{errors:e,values:t}=await x();r.errors=e,u=t}else await C(o);iP(r.errors)?(p.state.next({errors:{},isSubmitting:!0}),await e(u,i)):(t&&await t({...r.errors},i),n.shouldFocusError&&xP(o,(e=>LF(r.errors,e)),l.mount))}catch(e){throw s=!1,e}finally{r.isSubmitted=!0,p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:iP(r.errors)&&s,submitCount:r.submitCount+1,errors:r.errors})}},watch:(e,t)=>pP(e)?p.watch.subscribe({next:n=>e(D(void 0,t),n)}):D(e,t,!0),setValue:S,getValues:B,reset:(t,n={})=>{const u=t||i,c=IP(u),f=t&&!iP(t)?c:i;if(n.keepDefaultValues||(i=u),!n.keepValues){if(n.keepDirtyValues)for(const e of l.mount)LF(r.dirtyFields,e)?bP(f,e,LF(a,e)):S(e,LF(f,e));else{if(RP&&_F(t))for(const e of l.mount){const t=LF(o,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;try{if(UP(e)){e.closest("form").reset();break}}catch(e){}}}o={}}a=e.shouldUnregister?n.keepDefaultValues?IP(i):{}:c,p.array.next({values:f}),p.watch.next({values:f})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!d.isValid||!!n.keepIsValid,s.watch=!!e.shouldUnregister,p.state.next({submitCount:n.keepSubmitCount?r.submitCount:0,isDirty:n.keepDirty||n.keepDirtyValues?r.isDirty:!(!n.keepDefaultValues||WP(t,i)),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:n.keepDirty||n.keepDirtyValues?r.dirtyFields:n.keepDefaultValues&&t?GP(i,t):{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},resetField:(e,t={})=>{LF(o,e)&&(_F(t.defaultValue)?S(e,LF(i,e)):(S(e,t.defaultValue),bP(i,e,t.defaultValue)),t.keepTouched||$P(r.touchedFields,e),t.keepDirty||($P(r.dirtyFields,e),r.isDirty=t.defaultValue?w(e,LF(i,e)):w()),t.keepError||($P(r.errors,e),d.isValid&&v()),p.state.next({...r}))},clearErrors:e=>{e?sP(e).forEach((e=>$P(r.errors,e))):r.errors={},p.state.next({errors:r.errors})},unregister:F,setError:(e,t,n)=>{const i=(LF(o,e,{_f:{}})._f||{}).ref;bP(r.errors,e,{...t,ref:i}),p.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&i&&i.focus&&i.focus()},setFocus:(e,t={})=>{const n=LF(o,e)._f,r=n.refs?n.refs[0]:n.ref;r.focus(),t.shouldSelect&&r.select()},getFieldState:T}}var nM,rM,oM,iM,aM,sM,lM,uM,cM,dM,pM,fM,hM,mM,vM,gM,yM,bM=function(e,t){var n,r=nP(),o=e||{},i=o.criteriaList,a=void 0===i?[]:i,s=o.segmentationType;if(!a.length)return!0;var l=null!==(n=null==r?void 0:r.watch())&&void 0!==n?n:t,u=h(xM({criteriaList:a,data:l}),[a,l]);return"simple"!==s||(null==a?void 0:a.every((function(e){return u(e)})))},xM=function(e){var t=e.criteriaList,n=void 0===t?[]:t,r=e.data,o=void 0===r?{}:r,i=function(e){if(!e)return!0;if("condition"===e.type){var t=function(e,t,n){var r=t?e[t]:void 0;return"object"!=typeof r||null===r||Array.isArray(r)?r:n?r[n]:r}(o,null==e?void 0:e.dataFieldId,null==e?void 0:e.subtypeId);if(!t||!(null==t?void 0:t.length)||!e.dataValue)return!1;switch(e.operator){case"is":return Array.isArray(t)?t.includes(e.dataValue):t===e.dataValue;case"is_not":return Array.isArray(t)?!t.includes(e.dataValue):t!==e.dataValue;default:return!0}}else if("operator"===e.type){var r=n.find((function(t){return t.id===e.connectedTo})),a=n.find((function(t){return t.connectedTo===e.id}));if(r&&a)switch(e.operator){case"and":return i(a)&&i(r);case"or":return i(a)||i(r);case"not":return i(a)!==i(r);default:return!1}}return!1};return i},CM=function(e,t){if(!t||!e||"number"==typeof e||"object"==typeof e)return e;var n=e.split("-"),r=n[0],o=n[1],i=n[2];switch(t){case"year_month_day_date":return"".concat(r,"/").concat(o,"/").concat(i);case"month_day_year_date":return"".concat(o,"/").concat(i,"/").concat(r);case"day_month_year_date":return"".concat(i,"/").concat(o,"/").concat(r);case"month_year_date":return"".concat(o,"/").concat(r);default:return e}},wM=function(e){var t=e.setFormData,n=e.defaultValue,r=e.dataModelField,o=wf().stateConfig;l((function(){if(r&&o){var e=null==r?void 0:r.dataModelFieldId,i=null==r?void 0:r.entitySubtypeId,a=null==r?void 0:r.format.value,s=o[e];null==t||t((function(t){var r,o,l,u,c=O({},t);if(i){var d=null!==(l=CM(null===(o=null==s?void 0:s[i])||void 0===o?void 0:o.value,a))&&void 0!==l?l:n;c[e]=O(O({},c[e]||{}),((r={})[i]={value:d},r))}else{var p=null!==(u=CM(null==s?void 0:s.value,a))&&void 0!==u?u:n;c[e]=O(O({},c[e]||{}),{value:p})}return c}))}}),[r,o]),l((function(){var e,o;if(n&&r){var i=null===(o=null==r?void 0:r.dataFieldName)||void 0===o?void 0:o.toLowerCase().replace(/\p{Zs}/gu,"_");null==t||t(((e={})[i]=n,e))}return function(){return null==t?void 0:t({})}}),[r,n])},DM=function(e){var t=e.item,n=e.activeChildrenIds,r=s(),o=r[0],i=r[1],a=f((function(){return n.map((function(e){var n=t.items.find((function(t){return t.id===e}));return n?function(e){var t,n,r,o=(null===(n=null===(t=e.config)||void 0===t?void 0:t.props)||void 0===n?void 0:n.formStepProps)||{};return O(O({},e),{config:O(O({},e.config),{props:O(O({},null===(r=e.config)||void 0===r?void 0:r.props),{formStepProps:O(O({},o),{order:0})})})})}(n):void 0})).filter(Boolean)}),[n,t]);return l((function(){i((function(){return O(O({},t),{items:a})}))}),[t]),o},EM=["day_month_year_date","month_day_year_date","month_year_date"],kM=function(e){var t,n,r=e.control,o=e.name,i=void 0===o?"":o,a=e.inputProps,u=e.styles,c=e.labelsProps,d=e.defaultValue,p=void 0===d?"":d,f=e.optional,h=e.required,m=e.rules,v=e.conditionConfig,g=e.state,y=e.formData,b=e.htmlElementId,x=e.configurationItemInfo,C="password"===(null==a?void 0:a.type),w=s(C),D=w[0],E=w[1],k=nP(),S=xf(),A=S.setDateFields,B=S.isFormInEditMode,T="format_error"===g||"field_error"===g||"match_error"===g,P=bM(v,y),M="";try{M=(null==c?void 0:c.label)&&(null===(n=null===(t=JSON.parse(null==c?void 0:c.label)[0])||void 0===t?void 0:t.children[0])||void 0===n?void 0:n.text)}catch(e){M="",console.error(e,"Toopltip text was parsed incorrectly")}if(l((function(){(null==v?void 0:v.criteriaList.length)&&P&&k&&k.setValue(i,"")}),[v,P]),l((function(){g&&T&&k&&k.trigger(i)}),[g,k,T]),l((function(){y&&k&&k.reset(y)}),[y]),l((function(){(null==a?void 0:a.type)&&EM.includes(a.type)&&A((function(e){return F(F([],e,!0),[{id:i,dateType:a.type}],!1)}))}),[null==a?void 0:a.type]),!P)return null;var N=(null==a?void 0:a.rightIcon)||C?{name:D?"View":"Hide",onClick:function(){return E((function(e){return!e}))}}:void 0,j=C?D?"password":"text":null==a?void 0:a.type;return r?it(mP,{name:i,control:r,rules:O({required:{value:!!h,message:"This field is required"},pattern:zf(null==a?void 0:a.type)},m),defaultValue:p,render:function(e){var t,n=e.field,r=e.fieldState.error,o=(a||{}).isEditMode,i="format_error"===g&&"any"!==j||(void 0===o||o)&&!!r,s=C&&"match_error"===g&&"Your passwords do not match each other"||("format_error"===g?null===(t=zf(j))||void 0===t?void 0:t.message:i?null==r?void 0:r.message:void 0),l=null===(null==c?void 0:c.ruleLabel)?c.ruleLabel:h?"REQUIRED":f?"OPTIONAL":void 0;return at(SM,O({id:(null==x?void 0:x.isConfigurationMode)?"configurationWrapper":b,$styles:u},x,{children:[(null==c?void 0:c.label)&&at(ot,{children:[it(SF,O({},c,{ruleLabel:B?l:void 0,isError:i,tooltipText:M})),it(CC,{height:12})]}),it(qC,O({},a,n,{onChange:function(e){"phone_number"===j?n.onChange(e.replace(/[()\s-]/g,"")):n.onChange(e)},isError:i,rightIcon:N,type:j,state:g})),!!s&&it(EC,{text:s})]}))}}):at(SM,O({id:(null==x?void 0:x.isConfigurationMode)?"configurationWrapper":b,$styles:u},x,{children:[c&&at(ot,{children:[it(SF,O({},c,{tooltipText:M})),it(CC,{height:12})]}),it(qC,O({},a,{rightIcon:N,type:j,state:g}))]}))},SM=et.div(nM||(nM=P(["\n width: 100%;\n ",";\n ","\n"],["\n width: 100%;\n ",";\n ","\n"])),(function(e){return e.$styles}),xF),OM=function(e,t){switch(void 0===t&&(t=""),e){case"input":return"Enter ".concat(t);case"select":return"Select ".concat(t);default:return t}},AM=function(e){var t={};return e.forEach((function(e){return t[e.name]=e.value})),t},BM=function(e){var t;return!(null===(t=Object.values(e.errors))||void 0===t?void 0:t.length)},TM=function(e){var t=[];return e.forEach((function(e){return t=t.concat.apply(t,e.fields)})),t},FM=function(e){var t=e.field,n=e.isEditMode,r=void 0===n||n,o=e.spacer,i=void 0===o?0:o,a=e.control,s=e.isTooltipVisible,l=e.optionsPresentation,u=e.styles;if(!a)return null;var c=null,d=t.type,p=t.name,f=void 0===p?"":p,h=t.placeholder,m=t.tooltip,v=t.label,g=void 0===v?"":v,y=t.required,b=t.rules;switch(t.type){case"input":var x=t.inputType,C=t.maxLength,w=t.onKeyDown,D=t.inputProps,E=t.labelsProps;c=it(kM,O({},t,{name:f.toString(),control:a,inputProps:O({placeholder:h||OM(d,g),type:x,maxLength:C,isEditMode:r,onKeyDown:w},D),labelsProps:O({label:g,tooltipText:m,isTooltipVisible:s},E),required:y,optional:!y,rules:b,styles:u}));break;case"select":var k=t.options;c=it(RM,{selectProps:{placeholder:h||OM(d,g),options:k,isEditMode:r,optionsPresentation:l},name:f.toString(),control:a,labelsProps:{label:g,tooltipText:m,isTooltipVisible:s},required:y,optional:!y,rules:b,styles:u});break;case"checkbox":var S=t.checkboxLabel;c=at(ot,{children:[!!g&&at(ot,{children:[it(wC,O({variant:"L"},{children:g})),it(CC,{height:20})]}),it(NM,{name:f.toString(),control:a,checkboxProps:{label:S}})]})}return at(ot,{children:[!!i&&it(CC,{height:i}),c]})},PM=et.div(rM||(rM=P(["\n width: 100%;\n ","\n ","\n"],["\n width: 100%;\n ","\n ","\n"])),(function(e){return e.$styles}),xF),MM=et.div(iM||(iM=P(["\n display: flex;\n flex-direction: column;\n ","\n"],["\n display: flex;\n flex-direction: column;\n ","\n"])),(function(e){var t=e.theme.sizes,n=e.$spacing,r=void 0===n?"S":n,o=e.$styles;return qe(oM||(oM=P(["\n gap: ","px;\n ",";\n "],["\n gap: ","px;\n ",";\n "])),t[r],o)})),NM=function(e){var t,n=e.checkboxesProps,r=e.name,o=void 0===r?"":r,i=e.rules,a=e.control,s=e.optional,u=e.required,c=e.labelsProps,d=e.wrapperStyles,p=e.conditionConfig,f=e.defaultValue,h=e.formData,m=e.htmlElementId,v=e.state,g=e.isTrigger,y=e.moleculeId,b=e.configurationItemInfo,x=Re().sizes,C=nP(),w=bM(p,h);return l((function(){h&&C&&C.reset(h)}),[h]),l((function(){v&&"field_error"===v&&C&&C.trigger(o)}),[v,C]),w?a?it(mP,{name:o,control:a,defaultValue:null!==(t=null==n?void 0:n.selectedIds)&&void 0!==t?t:f,rules:O({required:{value:!!u,message:"This field is required"}},i),render:function(e){var t=e.field,r=e.fieldState.error,o=!!r,i=o?null==r?void 0:r.message:void 0,a=u?"REQUIRED":s?"OPTIONAL":void 0;return at(PM,O({id:(null==b?void 0:b.isConfigurationMode)?"configurationWrapper":m,$styles:d},b,{children:[(null==c?void 0:c.label)&&it(SF,O({},c,{ruleLabel:a,isError:o})),it(CC,{height:x.S+x.XS}),it(jM,O({checkboxesProps:O(O({},n),{selectedIds:t.value,isError:o})},t,{isTrigger:g,moleculeId:y})),!!i&&it(EC,{text:i})]}))}}):at(PM,O({id:(null==b?void 0:b.isConfigurationMode)?"configurationWrapper":m,$styles:d},b,{children:[c&&it(SF,O({},c)),it(CC,{height:x.S+x.XS}),it(jM,{checkboxesProps:n,isTrigger:g,moleculeId:y})]})):null},jM=function(e){var t=e.ref,n=e.onBlur,r=e.onChange,o=e.checkboxesProps||{},i=o.options,a=o.isError,u=o.disabled,c=o.isRichText,d=void 0===c||c,p=o.isEditMode,f=o.internalConfig,h=o.selectedIds,m=void 0===h?[]:h,v=o.checkboxGroupWrapperStyles,g=s(m),y=g[0],b=g[1];l((function(){return b(m)}),[]);var x=f||{},C=x.buttonOptionSpacing,w=A(x,["buttonOptionSpacing"]),D=function(e){b((function(t){var n=t.includes(e)?t.filter((function(t){return t!==e})):F(F([],t,!0),[e],!1);return null==r||r(n),n}))};return it(MM,O({ref:t,tabIndex:0,onBlur:n,$styles:v,$spacing:C},{children:null==i?void 0:i.map((function(e){var t=y.includes(e.id);return it(lu,O({},e,{isError:a,disabled:u,isEditMode:p,isSelected:t,isRichText:d,onClick:D,internalConfig:w}),e.id)}))}))},RM=function(e){var t=e.selectProps,n=e.name,r=void 0===n?"":n,o=e.defaultValue,i=void 0===o?"":o,a=e.optional,s=e.required,u=e.control,c=e.styles,d=e.labelsProps,p=e.rules,f=e.conditionConfig,h=e.formData,m=e.state,v=e.htmlElementId,g=e.configurationItemInfo,y=bM(f,h),b=nP();return l((function(){(null==f?void 0:f.criteriaList.length)&&y&&b&&b.setValue(r,"")}),[f,y]),l((function(){m&&"field_error"===m&&b&&b.trigger(r)}),[m,b]),l((function(){h&&b&&b.reset(h)}),[h]),y?u?it(mP,{name:r,control:u,rules:O({required:{value:!!s,message:"This field is required"}},p),defaultValue:i,render:function(e){var n=e.field,r=e.fieldState.error,o=!!r,i=o?null==r?void 0:r.message:void 0,l=s?"REQUIRED":a?"OPTIONAL":void 0;return at(IM,O({id:(null==g?void 0:g.isConfigurationMode)?"configurationWrapper":v,$styles:c},g,{children:[(null==d?void 0:d.label)&&it(SF,O({},d,{ruleLabel:l,isError:o})),it(CC,{height:12}),it(LC,O({},t,n,{isError:o})),!!i&&it(EC,{text:i})]}))}}):at(IM,O({id:(null==g?void 0:g.isConfigurationMode)?"configurationWrapper":v,$styles:c},g,{children:[d&&it(SF,O({},d)),it(CC,{height:12}),it(LC,O({},t))]})):null},IM=et.div(aM||(aM=P(["\n width: 100%;\n ",";\n ","\n"],["\n width: 100%;\n ",";\n ","\n"])),(function(e){return e.$styles}),xF),_M=function(e){switch(e){case"error":return"ERROR";case"success":return"SUCCESS";default:return"DEFAULT"}},LM=function(e){var t=e.rules,n=e.value,r=e.isSubmitted,o=void 0===r||r,i=e.label,a=e.spacer,s=e.validationState;return at(ot,{children:[i&&at(ot,{children:[it(VM,O({variant:"S"},{children:i})),a&&it(CC,{height:a})]}),it($M,{children:t.map((function(e,t){return it(iw,{status:s?_M(s):o?e.validate(n)?"SUCCESS":"ERROR":"DEFAULT",text:e.text},t)}))})]})},$M=et.div(sM||(sM=P(["\n display: flex;\n flex-wrap: wrap;\n gap: ","px;\n"],["\n display: flex;\n flex-wrap: wrap;\n gap: ","px;\n"])),(function(e){return e.theme.sizes.M})),VM=et(wC)(lM||(lM=P(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),zM=et(wC)(uM||(uM=P(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),WM=qe(cM||(cM=P(["\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n"],["\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n"])),(function(e){return e.theme.colors.primary}),zM,(function(e){return e.theme.colors.primary}),(function(e){return e.theme.colors.primary})),UM=qe(dM||(dM=P(["\n &:hover {\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n }\n"],["\n &:hover {\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n }\n"])),(function(e){return e.theme.colors.gray1}),zM,(function(e){return e.theme.colors.gray1}),(function(e){return e.theme.colors.gray1})),HM=et.div(fM||(fM=P(["\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: 0.25s all;\n ",";\n"],["\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: 0.25s all;\n ",";\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes,o=e.isActive;return qe(pM||(pM=P(["\n padding: ","px ","px;\n border-radius: ","px;\n border: 1.5px solid ",";\n svg path {\n stroke: ",";\n }\n ",";\n "],["\n padding: ","px ","px;\n border-radius: ","px;\n border: 1.5px solid ",";\n svg path {\n stroke: ",";\n }\n ",";\n "])),r.L,r.M,r.S,n.gray4,n.gray2,o?WM:UM)})),qM=et.div(mM||(mM=P(["\n display: flex;\n ",";\n"],["\n display: flex;\n ",";\n"])),(function(e){var t=e.theme.sizes,n=e.spacing;return qe(hM||(hM=P(["\n column-gap: ","px;\n "],["\n column-gap: ","px;\n "])),t[n])})),KM=function(e){var t=e.iconName,n=e.infoText,r=e.isActive,o=e.onClick,i=e.value;return at(HM,O({onClick:function(){return null==o?void 0:o(i)},isActive:r},{children:[it(ff,{name:t}),it(CC,{height:12}),it(zM,{children:n})]}))},XM=function(e){var t=e.cards,n=e.handleChange,r=e.spacing,o=void 0===r?"L":r,i=e.initialValue,a=s(i),l=a[0],u=a[1],c=function(e){var t=e===l?void 0:e;null==n||n(t),u(t)};return it(qM,O({spacing:o},{children:t.map((function(e){return it(KM,O({},e,{isActive:l===e.value,onClick:c}),e.value)}))}))},GM=["5XL","4XL","3XL","2XL","XL","L","M","S","XS",0],YM=dt.sizes.L,ZM={top:{borderBottomLeftRadius:YM,borderBottomRightRadius:YM},bottom:{borderTopRightRadius:YM,borderTopLeftRadius:YM},left:{borderBottomRightRadius:YM,borderTopRightRadius:YM},right:{borderTopLeftRadius:YM,borderBottomLeftRadius:YM}},JM=et(rc)(gM||(gM=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.variant,n=e.anchor,r=e.padding,o=void 0===r?"4XL":r,i=e.height,a=e.width,s=GM.includes(o)?"".concat(dt.sizes[o]||o,"px"):"".concat("number"==typeof o?"".concat(o,"px"):o),l=i?"number"==typeof i?"".concat(i,"px"):i:"auto",u=a?"number"==typeof a?"".concat(a,"px"):a:"auto",c="temporary"===t?"none":"0 2px 5px rgba(0, 0, 0, 0.25)";return qe(vM||(vM=P(["\n .MuiDrawer-paper {\n max-height: -webkit-fill-available;\n ",";\n padding: ",";\n height: ",";\n width: ",";\n box-shadow: ",";\n }\n .MuiBackdrop-root {\n background-color: rgba(0, 0, 0, 0.3);\n }\n "],["\n .MuiDrawer-paper {\n max-height: -webkit-fill-available;\n ",";\n padding: ",";\n height: ",";\n width: ",";\n box-shadow: ",";\n }\n .MuiBackdrop-root {\n background-color: rgba(0, 0, 0, 0.3);\n }\n "])),ZM[n],s,l,u,c)})),QM=et(rt)(yM||(yM=P(["\n display: flex;\n cursor: pointer;\n position: absolute;\n align-items: center;\n justify-content: center;\n top: ","px;\n ",";\n right: ","px;\n"],["\n display: flex;\n cursor: pointer;\n position: absolute;\n align-items: center;\n justify-content: center;\n top: ","px;\n ",";\n right: ","px;\n"])),dt.sizes["4XL"],st(dt.sizes.L),dt.sizes["4XL"]),eN=function(e){var t=e.children,n=e.closeIconColor,r=e.withCloseIcon,o=void 0===r||r,i=A(e,["children","closeIconColor","withCloseIcon"]);return it(JM,O({},i,{children:at(ot,{children:[t,o&&it(QM,O({onClick:function(e){var t;return null===(t=i.onClose)||void 0===t?void 0:t.call(i,e,"escapeKeyDown")}},{children:it(Yp,{size:32,color:dt.colors.gray2||n})}))]})}))},tN={adjustX:1,adjustY:1},nN=[0,0],rN={topLeft:{points:["bl","tl"],overflow:tN,offset:[0,-4],targetOffset:nN},topCenter:{points:["bc","tc"],overflow:tN,offset:[0,-4],targetOffset:nN},topRight:{points:["br","tr"],overflow:tN,offset:[0,-4],targetOffset:nN},bottomLeft:{points:["tl","bl"],overflow:tN,offset:[0,4],targetOffset:nN},bottomCenter:{points:["tc","bc"],overflow:tN,offset:[0,4],targetOffset:nN},bottomRight:{points:["tr","br"],overflow:tN,offset:[0,4],targetOffset:nN}},oN={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=oN.F1&&t<=oN.F12)return!1;switch(t){case oN.ALT:case oN.CAPS_LOCK:case oN.CONTEXT_MENU:case oN.CTRL:case oN.DOWN:case oN.END:case oN.ESC:case oN.HOME:case oN.INSERT:case oN.LEFT:case oN.MAC_FF_META:case oN.META:case oN.NUMLOCK:case oN.NUM_CENTER:case oN.PAGE_DOWN:case oN.PAGE_UP:case oN.PAUSE:case oN.PRINT_SCREEN:case oN.RIGHT:case oN.SHIFT:case oN.UP:case oN.WIN_KEY:case oN.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=oN.ZERO&&e<=oN.NINE)return!0;if(e>=oN.NUM_ZERO&&e<=oN.NUM_MULTIPLY)return!0;if(e>=oN.A&&e<=oN.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case oN.SPACE:case oN.QUESTION_MARK:case oN.NUM_PLUS:case oN.NUM_MINUS:case oN.NUM_PERIOD:case oN.NUM_DIVISION:case oN.SEMICOLON:case oN.DASH:case oN.EQUALS:case oN.COMMA:case oN.PERIOD:case oN.SLASH:case oN.APOSTROPHE:case oN.SINGLE_QUOTE:case oN.OPEN_SQUARE_BRACKET:case oN.BACKSLASH:case oN.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};function iN(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(xD(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var aN=oN.ESC,sN=oN.TAB;function lN(t){var n=t.visible,r=t.setTriggerVisible,o=t.triggerRef,i=t.onVisibleChange,a=t.autoFocus,s=e.useRef(!1),l=function(){var e,t,a,s;n&&o.current&&(null===(e=o.current)||void 0===e||null===(t=e.triggerRef)||void 0===t||null===(a=t.current)||void 0===a||null===(s=a.focus)||void 0===s||s.call(a),r(!1),"function"==typeof i&&i(!1))},u=function(){var e,t,n,r,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=mB(e.querySelectorAll("*")).filter((function(e){return iN(e,t)}));return iN(e,t)&&n.unshift(e),n}(null===(e=o.current)||void 0===e||null===(t=e.popupRef)||void 0===t||null===(n=t.current)||void 0===n||null===(r=n.getElement)||void 0===r?void 0:r.call(n)),a=i[0];return!!(null==a?void 0:a.focus)&&(a.focus(),s.current=!0,!0)},c=function(e){switch(e.keyCode){case aN:l();break;case sN:var t=!1;s.current||(t=u()),t?e.preventDefault():l()}};e.useEffect((function(){return n?(window.addEventListener("keydown",c),a&&Sw(u,3),function(){window.removeEventListener("keydown",c),s.current=!1}):function(){s.current=!1}}),[n])}var uN=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function cN(t,n){var r=t.arrow,o=void 0!==r&&r,i=t.prefixCls,a=void 0===i?"rc-dropdown":i,s=t.transitionName,l=t.animation,u=t.align,c=t.placement,d=void 0===c?"bottomLeft":c,p=t.placements,f=void 0===p?rN:p,h=t.getPopupContainer,m=t.showAction,v=t.hideAction,g=t.overlayClassName,y=t.overlayStyle,b=t.visible,x=t.trigger,C=void 0===x?["hover"]:x,w=t.autoFocus,D=pw(t,uN),E=$w(e.useState(),2),k=E[0],S=E[1],O="visible"in t?b:k,A=e.useRef(null);e.useImperativeHandle(n,(function(){return A.current})),lN({visible:O,setTriggerVisible:S,triggerRef:A,onVisibleChange:t.onVisibleChange,autoFocus:w});var B,T,F,P,M=function(){var n,r="function"==typeof(n=t.overlay)?n():n;return e.createElement(e.Fragment,null,o&&e.createElement("div",{className:"".concat(a,"-arrow")}),r)},N=v;return N||-1===C.indexOf("contextMenu")||(N=["click"]),e.createElement(qA,dw(dw({builtinPlacements:f},D),{},{prefixCls:a,ref:A,popupClassName:Rw(g,uw({},"".concat(a,"-show-arrow"),o)),popupStyle:y,action:C,showAction:m,hideAction:N||[],popupPlacement:d,popupAlign:u,popupTransitionName:s,popupAnimation:l,popupVisible:O,stretch:function(){var e=t.minOverlayWidthMatchTrigger,n=t.alignPoint;return"minOverlayWidthMatchTrigger"in t?e:!n}()?"minWidth":"",popup:"function"==typeof t.overlay?M:M(),onPopupVisibleChange:function(e){var n=t.onVisibleChange;S(e),"function"==typeof n&&n(e)},onPopupClick:function(e){var n=t.onOverlayClick;S(!1),n&&n(e)},getPopupContainer:h}),(T=t.children,F=T.props?T.props:{},P=Rw(F.className,void 0!==(B=t.openClassName)?B:"".concat(a,"-open")),O&&T?e.cloneElement(T,{className:P}):T))}var dN,pN,fN,hN,mN,vN,gN,yN,bN,xN,CN,wN,DN,EN,kN,SN,ON,AN,BN,TN,FN,PN,MN,NN,jN,RN,IN,_N,LN,$N,VN,zN,WN,UN,HN,qN,KN,XN,GN,YN,ZN,JN,QN,ej,tj,nj,rj,oj,ij,aj,sj=e.forwardRef(cN),lj=function(e){var t=e.item,n=e.activeKey,r=e.menuTheme,o=e.itemColor,i=e.activeItemColor,a=e.parentHandleClick,l=Re(),u=l.colors,c=l.sizes,d=s(!1),p=d[0],f=d[1],h=t.id,m=t.title,v=t.divider,g=t.disabled,y=t.options,b=t.onClick,x=null==y?void 0:y.length,C=h===n?u[i]||i:u[o]||o;return it(rt,O({disabled:g,activeOpacity:.3,onClick:function(){x&&f(!p),x?p&&(null==b||b(h)):null==b||b(h),x?p&&(null==a||a(h)):null==a||a(h)}},{children:at(ot,{children:[x?it(sj,O({overlay:it(uj,{options:y,activeKey:n,itemColor:o,menuTheme:r,onItemPress:a,activeItemColor:i}),onVisibleChange:(null==y?void 0:y.length)?f:void 0,visible:p,overlayStyle:{zIndex:5e3,paddingTop:c.M},trigger:"click",animation:"slide-up"},{children:at("div",O({style:{display:"flex",flexDirection:"row"}},{children:[it(wC,O({behaveAs:"button",variant:"M",color:C},{children:m})),it(gF,O({isActive:p,disabled:g,tabTheme:r,defaultTabTextColor:o},{children:it(ff,{name:"CaretDown",size:c.L})}))]}))})):it(wC,O({behaveAs:"button",variant:"M",color:C},{children:m})),v&&it(JT,{marginVertical:"S",color:"dark"===r?u.gray2:u.gray4})]})}))},uj=function(e){var t=e.title,n=e.options,r=e.activeKey,o=e.itemColor,i=void 0===o?"gray2":o,a=e.menuTheme,s=e.onItemPress,l=e.activeItemColor,u=void 0===l?"gray1":l;return at(cj,{children:[!!t&&at(ot,{children:[it(YT,O({padding:"M"},{children:it(wC,O({variant:"XL"},{children:t}))})),it(JT,{marginVertical:"M"})]}),it(YT,O({padding:"M"},{children:it(dj,{children:null==n?void 0:n.map((function(e){return it(ot,{children:it(lj,{item:e,activeKey:r,itemColor:i,menuTheme:a,parentHandleClick:s,activeItemColor:u},e.id)})}))})}))]})},cj=et.div(pN||(pN=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme,n=t.sizes,r=t.colors;return qe(dN||(dN=P(["\n background-color: ",";\n padding: ","px ","px;\n box-shadow: 0 0 ","px rgba(0, 0, 0, 0.1);\n border-radius: ","px;\n "],["\n background-color: ",";\n padding: ","px ","px;\n box-shadow: 0 0 ","px rgba(0, 0, 0, 0.1);\n border-radius: ","px;\n "])),r,n.XL,n.M,n.XL,n.S)})),dj=et.div(fN||(fN=P(["\n display: flex;\n flex-direction: column;\n row-gap: 14px;\n"],["\n display: flex;\n flex-direction: column;\n row-gap: 14px;\n"]))),pj=function(e){var t=e.avatarProps,n=e.menuConfig,r=e.configurationItemInfo,o=s(!1),i=o[0],a=o[1],l=it(uj,O({},n,{onItemPress:function(){return a(!1)}}));return it(fj,O({id:"configurationWrapper"},r,{children:it(sj,O({overlay:l,onVisibleChange:a,visible:i,trigger:"click",animation:"slide-up"},{children:at(hj,{children:[it(UT,O({},t)),it(CC,{width:12}),it(mj,O({isOpen:i},{children:it(ff,{size:16,name:"CaretDown"})}))]})}))}))},fj=et.div(hN||(hN=P(["\n width: fit-content;\n ","\n"],["\n width: fit-content;\n ","\n"])),xF),hj=et(rt)(mN||(mN=P(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: fit-content;\n"],["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: fit-content;\n"]))),mj=et.div(gN||(gN=P(["\n display: flex;\n transition: transform, background-color, 0.2s ease-in-out;\n transform: rotate(0deg);\n ","\n"],["\n display: flex;\n transition: transform, background-color, 0.2s ease-in-out;\n transform: rotate(0deg);\n ","\n"])),(function(e){var t=e.isOpen,n=e.theme,r=n.colors,o=n.sizes;return t&&qe(vN||(vN=P(["\n border-radius: ","px;\n background-color: ",";\n transform: rotate(180deg);\n "],["\n border-radius: ","px;\n background-color: ",";\n transform: rotate(180deg);\n "])),o.XS,r.gray4)})),vj=et.div(bN||(bN=P(["\n display: flex;\n width: fit-content;\n position: relative;\n align-items: flex-start;\n ","\n"],["\n display: flex;\n width: fit-content;\n position: relative;\n align-items: flex-start;\n ","\n"])),(function(e){var t=e.theme.sizes,n=e.$vertical,r=e.$spacing,o=e.$styles;return qe(yN||(yN=P(["\n flex-direction: ",";\n gap: ","px;\n ",";\n "],["\n flex-direction: ",";\n gap: ","px;\n ",";\n "])),n?"column":"row",t[r],o)})),gj=et.div(CN||(CN=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme.sizes,n=e.width,r=e.left,o=e.isActiveTab,i=e.tabTheme,a=e.selectedTabIndicatorColor;return qe(xN||(xN=P(["\n position: absolute;\n bottom: -4px;\n left: ","px;\n width: ","px;\n height: ","px;\n background-color: ",";\n border-radius: ","px;\n transition: 0.4s;\n "],["\n position: absolute;\n bottom: -4px;\n left: ","px;\n width: ","px;\n height: ","px;\n background-color: ",";\n border-radius: ","px;\n transition: 0.4s;\n "])),r,n,t.XS,hF(a,o,i),t.XS)})),yj=et(rt)(kN||(kN=P(["\n position: relative;\n &:hover {\n ","\n }\n"],["\n position: relative;\n &:hover {\n ","\n }\n"])),(function(e){var t=e.theme.colors,n=e.disabled,r=e.tabTheme,o=e.selectedTabTextColor,i=e.isActiveTab,a=e.selectedTabIndicatorColor;if(n)return qe(wN||(wN=P(["\n "," {\n color: ",";\n }\n "],["\n "," {\n color: ",";\n }\n "])),mF,"dark"===r?t.gray2:t.gray3);if(i)return qe(DN||(DN=P(["\n "," {\n background-color: ",";\n }\n "],["\n "," {\n background-color: ",";\n }\n "])),gj,hF(a,i,r));var s=t[o]||o;return qe(EN||(EN=P(["\n "," {\n background-color: ",";\n }\n "," {\n color: ",";\n }\n "],["\n "," {\n background-color: ",";\n }\n "," {\n color: ",";\n }\n "])),gj,"dark"===r?t.gray1:t.gray5,mF,s||("dark"===r?t.white:t.gray1))})),bj=function(e){var t=e.menuConfig,n=e.customIconType,r=e.menuIconColor,o=void 0===r?dt.colors.gray2:r,i=s(!1),a=i[0],l=i[1],u=it(uj,O({},t,{onItemPress:function(e){var n;l(!1),null===(n=t.onItemPress)||void 0===n||n.call(t,e)}}));return it(sj,O({overlay:u,onVisibleChange:l,visible:a,trigger:"click",animation:"slide-up"},{children:it(xj,{children:it(Cj,O({isOpen:a},{children:it(ff,{size:16,color:o,name:n||"Menu"})}))})}))},xj=et(rt)(SN||(SN=P(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: fit-content;\n"],["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: fit-content;\n"]))),Cj=et.div(AN||(AN=P(["\n display: flex;\n cursor: pointer;\n ","\n"],["\n display: flex;\n cursor: pointer;\n ","\n"])),(function(e){var t=e.isOpen,n=e.theme;n.colors;var r=n.sizes;return t&&qe(ON||(ON=P(["\n border-radius: ","px;\n "],["\n border-radius: ","px;\n "])),r.XS)})),wj=function(e){var t,n=e.tabs,r=e.vertical,o=void 0!==r&&r,i=e.activeTabKey,a=void 0===i?null===(t=n[0])||void 0===t?void 0:t.tabKey:i,u=e.onTabChange,c=e.tabTheme,p=void 0===c?"light":c,f=e.wide,h=e.compact,m=e.tabSpacing,v=void 0===m?"XL":m,y=e.isMobile,b=e.htmlElementId,x=e.menuIconColor,C=e.configurationItemInfo,w=A(e,["tabs","vertical","activeTabKey","onTabChange","tabTheme","wide","compact","tabSpacing","isMobile","htmlElementId","menuIconColor","configurationItemInfo"]),D=s(a),E=D[0],k=D[1],S=function(e){var t=s([]),n=t[0],r=t[1],o=s([]),i=o[0],a=o[1],u=d([]);return l((function(){var e=function(){var e,t;r(null===(e=null==u?void 0:u.current)||void 0===e?void 0:e.map((function(e){var t;return null!==(t=null==e?void 0:e.clientWidth)&&void 0!==t?t:0}))),a(null===(t=null==u?void 0:u.current)||void 0===t?void 0:t.map((function(e){var t;return null!==(t=null==e?void 0:e.offsetLeft)&&void 0!==t?t:0})))};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[e]),{tabsUnderlineLeft:i,tabsUnderlineWidth:n,tabsRef:u}}(E),B=S.tabsRef,T=S.tabsUnderlineLeft,F=S.tabsUnderlineWidth,P=Re(),M=P.colors,N=P.sizes,j=f||{},R=j.containerProps,I=void 0===R?{}:R,_=j.containerStyle,L=void 0===_?{}:_,$=h||{},V=$.containerProps,z=void 0===V?{}:V,W=$.containerStyle,U=y?z:I,H=y?void 0===W?{}:W:L,q=function(e){null==u||u(e),k(e)};return it(Dj,O({id:"configurationWrapper"},C,{children:y?it(bj,{menuIconColor:x,menuConfig:{title:"Navigation Menu",menuTheme:p,activeKey:E,itemColor:w.defaultTabTextColor,activeItemColor:w.selectedTabTextColor,options:n.map((function(e){return O(O({},e),{id:e.tabKey,title:e.text})})),onItemPress:q}}):it(vj,O({id:b,$vertical:o,$spacing:v},U,{$styles:O(O({},U),H)},{children:n.map((function(e,t){return at(g,{children:[at(yj,O({onClick:function(){e.disabled||q(null==e?void 0:e.tabKey)},disabled:e.disabled,tabTheme:p,selectedTabTextColor:w.selectedTabTextColor,isActiveTab:e.tabKey===E,selectedTabIndicatorColor:w.selectedTabIndicatorColor},{children:[it(U_,O({ref:function(e){return B.current[t]=e},vertical:o},e,{isActive:e.tabKey===E,tabTheme:p},w)),it(CC,{height:"S"}),it(gj,{left:T[t],width:F[t],isActiveTab:e.tabKey===E,selectedTabIndicatorColor:w.selectedTabIndicatorColor,tabTheme:p})]})),e.divider&&it(JT,{type:"vertical",color:"dark"===p?M.gray2:M.gray4,style:{height:N.XL+N.S}})]},e.tabKey)}))}))}))},Dj=et.div(BN||(BN=P(["\n ","\n"],["\n ","\n"])),xF),Ej=function(e){var t=e.fields,n=e.label,r=e.isEditMode,o=e.control,i=Re().sizes,a=r?20:i.XL;return at(ot,{children:[it(wC,O({variant:"L",color:"gray2"},{children:n})),it(CC,{height:20}),t.map((function(e,t){return it(FM,{isEditMode:r,field:e,control:o,spacer:t?a:0},t)}))]})},kj=function(e){var t=e.textContent,n=e.invertColors;return it(Sj,O({invertColors:n},{children:it(bC,{color:n?"white":"primary",font:"XL",value:t})}))},Sj=et.div(FN||(FN=P(["\n width: 100%;\n text-align: center;\n ","\n"],["\n width: 100%;\n text-align: center;\n ","\n"])),(function(e){var t=e.theme,n=t.sizes,r=t.colors,o=e.invertColors;return qe(TN||(TN=P(["\n border-radius: ","px;\n padding: ","px;\n background-color: ",";\n "],["\n border-radius: ","px;\n padding: ","px;\n background-color: ",";\n "])),n.S,n.L,o?r.primary:r.gray5)})),Oj=function(e){var t=e.name,n=void 0===t?"":t,r=e.rules,o=e.styles,i=e.control,a=e.optional,s=e.required,u=e.labelsProps,c=e.defaultValue,d=void 0===c?"":c,p=e.radioButtonsProps,f=e.conditionConfig,h=e.formData,m=e.htmlElementId,v=e.state,g=e.isTrigger,y=e.moleculeId,b=e.configurationItemInfo,x=Re().sizes,C=nP(),w=bM(f,h);return l((function(){h&&C&&C.reset(h)}),[h]),l((function(){v&&"field_error"===v&&C&&C.trigger(n)}),[v,C]),w?i?it(mP,{name:n,control:i,rules:O({required:{value:!!s,message:"This field is required"}},r),defaultValue:d,render:function(e){var t=e.field,n=e.fieldState.error,r=!!n,i=r?null==n?void 0:n.message:void 0,l=s?"REQUIRED":a?"OPTIONAL":void 0;return at(Aj,O({id:(null==b?void 0:b.isConfigurationMode)?"configurationWrapper":m,$styles:o},b,{children:[(null==u?void 0:u.label)&&it(SF,O({},u,{ruleLabel:l,isError:r})),it(CC,{height:x.S+x.XS}),it(rF,O({},O(O({},p),{isError:r}),t,{isTrigger:g,moleculeId:y})),!!i&&it(EC,{text:i})]}))}}):at(Aj,O({id:(null==b?void 0:b.isConfigurationMode)?"configurationWrapper":m,$styles:o},b,{children:[u&&it(SF,O({},u)),it(CC,{height:x.S+x.XS}),it(rF,O({},p,{isTrigger:g,moleculeId:y}))]})):null},Aj=et.div(PN||(PN=P(["\n width: 100%;\n ","\n ","\n"],["\n width: 100%;\n ","\n ","\n"])),(function(e){return e.$styles}),xF),Bj=function(e){var t=e.logo,n=e.title,r=e.withCloseIcon,o=e.description,i=e.style,a=e.fontColor,s=e.containerStyles,l=e.isMobile,u=A(e,["logo","title","withCloseIcon","description","style","fontColor","containerStyles","isMobile"]);return it(Tj,O({},u,{style:s},{children:at(Fj,O({},u,{isMobile:l,style:i},{children:[at(Pj,O({withCloseIcon:r},{children:[!!t&&it(Mj,{src:t,alt:"Alert Logo"}),at("div",{children:[it(bC,{font:"XL",color:null!=a?a:"gray1",value:n}),it(CC,{height:6}),it(bC,{font:"M",color:null!=a?a:"gray1",value:o})]})]})),it(Nj,O({},u,{withCloseIcon:r,onClick:function(e){e.stopPropagation(),null==r||r.onClose()}},{children:it(ff,{size:dt.sizes.L,name:"Close"})}))]}))}))},Tj=et.div(jN||(jN=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.fullWidth,n=e.color,r=void 0===n?"#dad9e2":n;return qe(NN||(NN=P(["\n min-width: 390px;\n\n ","}\n "],["\n min-width: 390px;\n\n ","}\n "])),t&&qe(MN||(MN=P(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),r))})),Fj=et.div(IN||(IN=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.color,n=void 0===t?"linear-gradient(0deg, rgba(11, 0, 61, 0.15), rgba(11, 0, 61, 0.15)), ".concat(dt.colors.white):t,r=e.isMobile,o=e.fullWidth;return qe(RN||(RN=P(["\n position: relative;\n background: ",";\n padding: ","px\n ","px;\n box-shadow: ",";\n border-radius: ","px;\n "],["\n position: relative;\n background: ",";\n padding: ","px\n ","px;\n box-shadow: ",";\n border-radius: ","px;\n "])),n,dt.sizes.XL,r?dt.sizes.XL:dt.sizes["2XL"],o?"none":"0 2px 5px rgba(0, 0, 0, 0.25)",dt.sizes.M)})),Pj=et.div(LN||(LN=P(["\n ",";\n"],["\n ",";\n"])),(function(e){var t=e.withCloseIcon;return qe(_N||(_N=P(["\n display: flex;\n column-gap: ","px;\n width: calc(100% - ","px);\n "],["\n display: flex;\n column-gap: ","px;\n width: calc(100% - ","px);\n "])),dt.sizes.M,t?dt.sizes["2XL"]:0)})),Mj=et(ew)($N||($N=P(["\n object-fit: contain;\n width: ","px;\n max-height: ","px;\n"],["\n object-fit: contain;\n width: ","px;\n max-height: ","px;\n"])),dt.sizes.XL,dt.sizes["3XL"]),Nj=et(rt)(zN||(zN=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.withCloseIcon;return qe(VN||(VN=P(["\n display: ",";\n position: absolute;\n top: ","zpx;\n right: ","px;\n "],["\n display: ",";\n position: absolute;\n top: ","zpx;\n right: ","px;\n "])),t?"block":"none",dt.sizes.L,dt.sizes.XL)})),jj=function(e){var t=e.text,n=e.isRichText,r=e.htmlElementId,o=e.isTrigger,i=e.moleculeId,a=e.variant,s=void 0===a?"outlined":a,l=e.configurationItemInfo,u=A(e,["text","isRichText","htmlElementId","isTrigger","moleculeId","variant","configurationItemInfo"]),c=Ef({id:i,isTrigger:o});if(!t)return null;var d=n?it(bC,{htmlElementId:r,value:t,renderElementWrapperProps:u,renderElementWrapperComponent:rw,isTrigger:o,moleculeId:i}):it(rw,O({},u,{id:r,onClick:function(){var e;null===(e=u.onExternalLink)||void 0===e||e.call(u),c("click")}},{children:t}));return it(Rj,O({variant:s,id:"configurationWrapper"},l,{children:d}))},Rj=et(Qc)(WN||(WN=P(["\n ","\n"],["\n ","\n"])),xF),Ij=et.ul(HN||(HN=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.orientation,n=void 0===t?"horizontal":t;return qe(UN||(UN=P(["\n display: flex;\n flex-flow: nowrap ",";\n justify-content: space-between;\n width: 100%;\n height: 100%;\n "],["\n display: flex;\n flex-flow: nowrap ",";\n justify-content: space-between;\n width: 100%;\n height: 100%;\n "])),"horizontal"===n?"row":"column")})),_j=et.li(XN||(XN=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.orientation,n=void 0===t?"horizontal":t;return qe(KN||(KN=P(["\n height: 100%;\n display: flex;\n flex-flow: column nowrap;\n justify-content: flex-start;\n align-items: flex-start;\n\n :last-child {\n flex: 0;\n }\n\n ","\n "],["\n height: 100%;\n display: flex;\n flex-flow: column nowrap;\n justify-content: flex-start;\n align-items: flex-start;\n\n :last-child {\n flex: 0;\n }\n\n ","\n "])),"horizontal"===n&&qe(qN||(qN=P(["\n width: 100%;\n position: relative;\n flex: 1;\n "],["\n width: 100%;\n position: relative;\n flex: 1;\n "]))))})),Lj=et.div(GN||(GN=P(["\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n"]))),$j=et.div(ZN||(ZN=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.orientation,n=void 0===t?"horizontal":t,r=e.isLastChild;return"vertical"===n&&qe(YN||(YN=P(["\n min-height: ",";\n height: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n "],["\n min-height: ",";\n height: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n "])),r?"100%":"58px")})),Vj=et.span(tj||(tj=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes,o=e.isComplete,i=e.isProgress,a=e.orientation;return qe(ej||(ej=P(["\n width: ","px;\n height: ","px;\n border-radius: 50%;\n background-color: ",";\n margin-bottom: ","px;\n margin-right: ","px;\n\n ","\n\n ","\n "],["\n width: ","px;\n height: ","px;\n border-radius: 50%;\n background-color: ",";\n margin-bottom: ","px;\n margin-right: ","px;\n\n ","\n\n ","\n "])),"horizontal"===a?r.M:r.S,"horizontal"===a?r.M:r.S,o?n.green:n.gray4,"horizontal"===a?0:r.L,r.S,i&&qe(JN||(JN=P(["\n border: ","px solid ",";\n background-color: ",";\n "],["\n border: ","px solid ",";\n background-color: ",";\n "])),"horizontal"===a?r.XS:2,n.green,n.white),o&&qe(QN||(QN=P(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),n.green))})),zj=et.div(ij||(ij=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.orientation,n=void 0===t?"horizontal":t,r=e.isComplete,o=e.theme,i=o.colors,a=o.sizes;return qe(oj||(oj=P(["\n position: absolute;\n background-color: ",";\n\n ","\n\n ","\n "],["\n position: absolute;\n background-color: ",";\n\n ","\n\n ","\n "])),r?i.green:i.gray4,"horizontal"===n&&qe(nj||(nj=P(["\n height: 2px;\n top: 7px;\n left: 20px;\n right: ","px;\n "],["\n height: 2px;\n top: 7px;\n left: 20px;\n right: ","px;\n "])),a.XS),"vertical"===n&&qe(rj||(rj=P(["\n width: 1px;\n height: calc(100% - ","px);\n top: 12px;\n left: 3px;\n "],["\n width: 1px;\n height: calc(100% - ","px);\n top: 12px;\n left: 3px;\n "])),a.M))})),Wj=function(e){var t=e.stepsNumber,n=e.step,r=n.title,o=n.description,i=n.status,a=e.orientation,s=e.order,l=e.htmlElementId,u="complete"===i,c="incomplete"===i;return it(_j,O({orientation:a},{children:at($j,O({isLastChild:s===t,orientation:a},{children:[at(Lj,{children:[it(Vj,{orientation:a,isComplete:u,isProgress:"in_progress"===i}),"vertical"===a&&at(Op,O({ml:2,gap:.5},{children:[it(bC,{htmlElementId:l,value:null==r?void 0:r.text,color:c?"gray3":"gray1"}),it(bC,{htmlElementId:l,value:null==o?void 0:o.text,color:c?"gray4":"gray3"})]}))]}),s!==t&&it(zj,{isComplete:u,orientation:a})]}))}))},Uj=function(e){var t,n,r=e.steps,o=e.orientation,i=void 0===o?"horizontal":o,a=e.htmlElementId;e.metadata;var s=e.isMobile,l=e.isOnClickDisabled,u=e.configurationItemInfo;if(!r.length)return null;var c=null!==(n=null===(t=r.find((function(e){return"in_progress"===e.status})))||void 0===t?void 0:t.order)&&void 0!==n?n:r[0].order,d=r[c]||{},p=d.title,f=void 0===p?{}:p,h=d.description,m=void 0===h?{}:h,v=d.status,g=d.link,y=(null==g?void 0:g.internalLink)||(null==g?void 0:g.externalLink);return at(Hj,O({id:(null==u?void 0:u.isConfigurationMode)?"configurationWrapper":a},u,{children:[y&&it(jj,{text:"Learn More",isRichText:!1,htmlElementId:a,onExternalLink:l?void 0:(null==g?void 0:g.externalLink)?function(){return Qf(null==g?void 0:g.externalLink)}:void 0}),it(Ij,O({orientation:i},{children:r.map((function(e){return it(Wj,{step:e,stepsNumber:r.length-1,order:e.order,orientation:i,htmlElementId:a},e.id)}))})),"horizontal"===i&&!s&&at(Op,O({mt:2,gap:.5},{children:[it(bC,{htmlElementId:a,value:null==f?void 0:f.text,color:"incomplete"===v?"gray3":"gray1"}),it(bC,{htmlElementId:a,value:null==m?void 0:m.text,color:"incomplete"===v?"gray4":"gray3"})]}))]}))},Hj=et.div(aj||(aj=P(["\n width: 100%;\n ",";\n"],["\n width: 100%;\n ",";\n"])),xF);E.GlobalWorkerOptions.workerSrc="//cdnjs.cloudflare.com/ajax/libs/pdf.js/".concat(E.version,"/pdf.worker.min.js");var qj,Kj,Xj,Gj,Yj,Zj,Jj,Qj,eR,tR,nR,rR,oR,iR,aR,sR,lR,uR,cR,dR,pR,fR,hR,mR,vR,gR,yR=function(e){var t=e.source,n=e.isMobile,r=void 0!==n&&n,o=e.customDocumentStyles,i=s(0),a=i[0],l=i[1],u=s(1),c=u[0],d=u[1],p=s(null),f=p[0],h=p[1],m=o||{},v=m.pageWidth,g=void 0===v?r?342:856:v,y=m.pageHeight,b=f!==c;return it(bR,O({pageWidth:g,pageHeight:void 0===y?r?442:1108:y},{children:at(xR,O({customDocumentStyles:o},{children:[at(k,O({file:t,renderMode:"canvas",className:"document",onLoadSuccess:function(e){var t=e.numPages;l(t)},loading:it(yu,{size:60})},{children:[b&&f?it(S,{pageNumber:f,renderTextLayer:!1,className:"custom-pdf"},f):null,it(S,{pageNumber:c,renderTextLayer:!1,className:"".concat(b?"loadingPage":"custom-pdf"),onRenderSuccess:function(){return h(c)}},c)]})),at(CR,{children:[it(wR,O({disable:c<=1,onClick:function(){return d((function(e){return e+(e<=1?0:-1)}))},customDocumentStyles:o},{children:it(ff,{name:"CaretLeft",size:33})})),it(DR,{type:"number",size:"small",customDocumentStyles:o,onChange:function(e){var t=e.target.value,n=e.nativeEvent;return function(e,t){if(!Number.isNaN(e)){var n=Math.round(e);n>a?!Number.isNaN(t)&&t>0&&t<=a&&d(t):n<1||d(n)}}(+t,+((null==n?void 0:n.data)||""))},value:c}),it(wR,O({disabled:!0},{children:it(ER,{})})),it(wC,O({variant:"S",color:(null==o?void 0:o.pageNumberColor)||"white"},{children:a})),it(wR,O({disable:c>=a,onClick:function(){return d((function(e){return e+(e>=a?0:1)}))},customDocumentStyles:o},{children:it(ff,{name:"CaretRight"})}))]})]}))}))},bR=et.div(Kj||(Kj=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.pageWidth,n=e.pageHeight;return qe(qj||(qj=P(["\n height: 100%;\n .document {\n display: flex;\n justify-content: center;\n align-items: center;\n height: ","px;\n width: ","px;\n }\n .react-pdf__Page__canvas {\n height: ","px !important;\n width: ","px !important;\n }\n .react-pdf__Page.loadingPage {\n display: none;\n }\n .custom-pdf {\n .annotationLayer {\n height: 0 !important;\n }\n }\n "],["\n height: 100%;\n .document {\n display: flex;\n justify-content: center;\n align-items: center;\n height: ","px;\n width: ","px;\n }\n .react-pdf__Page__canvas {\n height: ","px !important;\n width: ","px !important;\n }\n .react-pdf__Page.loadingPage {\n display: none;\n }\n .custom-pdf {\n .annotationLayer {\n height: 0 !important;\n }\n }\n "])),n,t,n,t)})),xR=et.div(Xj||(Xj=P(["\n height: 100%;\n padding: 20px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n position: relative;\n background-color: ",";\n"],["\n height: 100%;\n padding: 20px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n position: relative;\n background-color: ",";\n"])),(function(e){var t=e.theme.colors,n=e.customDocumentStyles,r=(void 0===n?{}:n).wrapperBackgroundColor,o=void 0===r?"gray1":r;return t[o]||o})),CR=et.div(Yj||(Yj=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes;return qe(Gj||(Gj=P(["\n color: ",";\n padding: ","px;\n border-radius: ","px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n "],["\n color: ",";\n padding: ","px;\n border-radius: ","px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n "])),n.gray4,r.S,r.S)})),wR=et(rt)(Jj||(Jj=P(["\n display: flex;\n align-items: center;\n justify-content: center;\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n ","\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes,o=e.disable,i=e.active,a=e.customDocumentStyles,s=void 0===a?{}:a,l=s.paginationArrowColor,u=void 0===l?"gray4":l,c=s.disabledPaginationArrowColor,d=void 0===c?"gray2":c;return qe(Zj||(Zj=P(["\n width: ","px;\n height: ","px;\n border-radius: ","px;\n background-color: ",";\n path,\n line {\n stroke: ",";\n }\n "],["\n width: ","px;\n height: ","px;\n border-radius: ","px;\n background-color: ",";\n path,\n line {\n stroke: ",";\n }\n "])),r.XL,r.XL,r.XS,i?n.gray2:"transparent",o?n[d]||d:n[u]||u)})),DR=et(Np)(eR||(eR=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme,n=t.colors,r=t.fonts,o=t.sizes,i=e.customDocumentStyles,a=(void 0===i?{}:i).pageNumberColor,s=void 0===a?"white":a;return qe(Qj||(Qj=P(["\n width: ","px;\n fieldset {\n border: 1px solid "," !important;\n border-radius: ","px;\n }\n input {\n padding: ","px ","px;\n color: ",";\n text-align: right;\n\n ",";\n\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n // Firefox\n &[type='number'] {\n -moz-appearance: textfield;\n }\n }\n "],["\n width: ","px;\n fieldset {\n border: 1px solid "," !important;\n border-radius: ","px;\n }\n input {\n padding: ","px ","px;\n color: ",";\n text-align: right;\n\n ",";\n\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n // Firefox\n &[type='number'] {\n -moz-appearance: textfield;\n }\n }\n "])),o["2XL"],n.gray3,o.XS,o.XS,o.S,n[s]||s,r.S)})),ER=et(Hu)(nR||(nR=P(["\n transform: rotate(30deg);\n width: 2px;\n ",";\n"],["\n transform: rotate(30deg);\n width: 2px;\n ",";\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes;return qe(tR||(tR=P(["\n height: ","px;\n background-color: ",";\n "],["\n height: ","px;\n background-color: ",";\n "])),r.L,n.gray2)})),kR=function(e){var t=e.templateType,n=e.title,r=e.name,o=e.inputProps,i=e.isMobile,a=e.menuConfig,l=A(e,["templateType","title","name","inputProps","isMobile","menuConfig"]),u=s(!1),c=u[0],d=u[1],p=it(uj,O({},a,{onItemPress:function(){return d(!1)}})),f=qe(rR||(rR=P(["\n min-width: ","px;\n "],["\n min-width: ","px;\n "])),i?275:330);return at(SR,O({isMobile:i},{children:[it(bC,{value:n,font:"2XL",color:"black"}),"feed_b"===t&&at(Op,O({direction:"row",gap:2,alignItems:"center",justifyContent:"center"},{children:[it(kM,O({name:null!=r?r:"",inputProps:O(O({},o),{leftIcon:{name:"Search"},placeholder:"Search"}),styles:f},l)),it(sj,O({overlay:p,onVisibleChange:d,visible:c,trigger:"click",animation:"slide-up"},{children:it(OR,{children:it(ff,{name:"Filter"})})}))]}))]}))},SR=et(Op)(aR||(aR=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.isMobile,n=e.theme.sizes;return qe(iR||(iR=P(["\n margin-top: ","px;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n\n ","\n "],["\n margin-top: ","px;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n\n ","\n "])),n.S,t&&qe(oR||(oR=P(["\n flex-direction: column;\n align-items: flex-start;\n gap: 20px;\n "],["\n flex-direction: column;\n align-items: flex-start;\n gap: 20px;\n "]))))})),OR=et(rt)(lR||(lR=P(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 51px;\n height: 51px;\n ",";\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 51px;\n height: 51px;\n ",";\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes;return qe(sR||(sR=P(["\n border-radius: ","px;\n border: 1.5px solid ",";\n "],["\n border-radius: ","px;\n border: 1.5px solid ",";\n "])),r.S,n.gray2)})),AR=function(e){var t=e.name,n=e.title,r=e.control,o=e.description,i=e.horizontalButtonsProps,a=s(i.selectedButtonId),l=a[0],u=a[1];return r?it(mP,{name:t,control:r,defaultValue:i.selectedButtonId,render:function(e){var t=e.field,r=t.onChange,a=t.value;return it(YT,O({padding:"M"},{children:at(Op,O({gap:2,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},{children:[at(Op,O({gap:.2,flexDirection:"column"},{children:[it(wC,O({variant:"XL"},{children:n})),o&&it(wC,O({variant:"S",color:"gray3"},{children:o}))]})),it(VT,O({},i,{selectedButtonId:a,onClick:r}))]}))}))}}):it(YT,O({padding:"M"},{children:at(Op,O({gap:2,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},{children:[at(Op,O({gap:.2,flexDirection:"column"},{children:[it(wC,O({variant:"XL"},{children:n})),o&&it(wC,O({variant:"S",color:"gray3"},{children:o}))]})),it(VT,O({},i,{selectedButtonId:l,onClick:function(e){return u(e)}}))]}))}))},BR=function(e){var t=e.name,n=e.icon,r=e.active,o=e.activeColor,i=e.onNavigate;return at(TR,O({activeOpacity:.9,onClick:i},{children:[it(ZT,O({padding:dt.sizes.XS},{children:it(n,{size:32,color:r?o:dt.colors.gray3})})),it(wC,O({color:r?o:dt.colors.gray3,variant:"S"},{children:t}))]}))},TR=et(rt)(uR||(uR=P(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"],["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"]))),FR=function(e){var t=e.style,n=e.src,r=e.width,o=e.height,i=e.template,a=e.autoplay,u=e.enableCoverImage,c=e.coverImageSrc,p=e.styles,f=e.htmlElementId,h=e.isTrigger,m=e.moleculeId,v=e.isOnClickDisabled,g=e.configurationItemInfo,y=Ef({id:m,isTrigger:h}),b=d(null),x="auto_play"===i||a,C=s(!1),w=C[0],D=C[1],E=function(){b.current&&(b.current.pause(),b.current.muted=!1,D(!1))},k=function(){var e;null===(e=b.current)||void 0===e||e.play().then((function(){return D(!0)})),y("start")};if(l((function(){x&&b.current?(b.current.muted=!0,k()):E()}),[x]),!n)return null;var S=qe(cR||(cR=P(["\n ","\n "],["\n ","\n "])),p);return at(PR,O({id:(null==g?void 0:g.isConfigurationMode)?"configurationWrapper":f,width:r,height:o,style:t,$styles:S},g,{children:[it(NR,O({muted:!0,ref:b,width:r,style:t,onClick:v?void 0:E,autoPlay:x,$styles:S,poster:u?c:void 0,onEnded:function(){D(!1),y("complete")}},{children:it("source",{width:"100%",height:"100%",src:n})})),!w&&it(MR,O({onClick:v?void 0:k,$styles:S},{children:it(ff,{name:"Play"})}))]}))},PR=et.div(pR||(pR=P(["\n position: relative;\n ","\n ","\n"],["\n position: relative;\n ","\n ","\n"])),(function(e){var t=e.width,n=e.height,r=e.$styles;return qe(dR||(dR=P(["\n width: ",";\n height: ",";\n ",";\n "],["\n width: ",";\n height: ",";\n ",";\n "])),t?"".concat(t,"px"):"auto",n?"".concat(n,"px"):"100%",r)}),xF),MR=et(rt)(hR||(hR=P(["\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n left: 0;\n right: 0;\n bottom: 5px;\n background-color: rgba(29, 36, 45, 0.7);\n ",";\n"],["\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n left: 0;\n right: 0;\n bottom: 5px;\n background-color: rgba(29, 36, 45, 0.7);\n ",";\n"])),(function(e){var t=e.$styles;return qe(fR||(fR=P(["\n ","\n "],["\n ","\n "])),t)})),NR=et.video(vR||(vR=P(["\n width: 100%;\n cursor: pointer;\n ",";\n"],["\n width: 100%;\n cursor: pointer;\n ",";\n"])),(function(e){var t=e.$styles;return qe(mR||(mR=P(["\n ","\n "],["\n ","\n "])),t)})),jR=function(e){var t=e.children,n=e.isMLRReview,r=e.showAnnotations,o=e.annotationsList;return it(gf.Provider,O({value:{isMLRReview:n,annotationsList:o,showAnnotations:r}},{children:t}))},RR=function(e){var t=new Map;return e.forEach((function(e){var n,r;"container"===e.instance&&(r="","form_step"===(n=e).type&&(r=n.id),n.items.forEach((function(e){var n;r&&(t.has(r)||t.set(r,[]),null===(n=t.get(r))||void 0===n||n.push(e))})))})),t},IR=function(e){var t=e.initItems,n=void 0===t?[]:t,r=e.children,o=e.submitHandler,i=e.formId,a=e.organismId,l=e.validations,u=e.editable,c=void 0===u||u,d=e.isPreview,p=void 0!==d&&d,h=e.isFormInEditMode,m=void 0===h||h,v=e.organismMetadata,g=e.isConfigurationMode,y=e.onConfigurationItemHandler,b=e.selectedConfigurationItemId,x=s([]),C=x[0],w=x[1],D=function(e){e&&(null==y||y(O(O({},e),{organismId:a})))},E=f((function(){return{dateFields:C,setDateFields:w,items:n,groupStepItemsByStepContainer:function(){return RR(n)},submitHandler:o,formId:i,validations:l,editable:c,isPreview:p,isFormInEditMode:m,organismMetadata:v,isConfigurationMode:g,onConfigurationItemClicked:D,selectedConfigurationItemId:b}}),[n,i,l,c,p,C,w,o,m,v,g,D,b]);return it(bf.Provider,O({value:E},{children:r}))};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},_R.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(gR||(gR={}));var LR="production"!==process.env.NODE_ENV?function(e){return Object.freeze(e)}:function(e){return e};function $R(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function o(){var e=n.location,t=e.pathname,o=e.search,i=e.hash,a=r.state||{};return[a.idx,LR({pathname:t,search:o,hash:i,state:a.usr||null,key:a.key||"default"})]}var i=null;n.addEventListener("popstate",(function(){if(i)d.call(i),i=null;else{var e=gR.Pop,t=o(),n=t[0],r=t[1];if(d.length)if(null!=n){var a=l-n;a&&(i={action:e,location:r,retry:function(){g(-1*a)}},g(a))}else"production"!==process.env.NODE_ENV&&function(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.");else v(e)}}));var a=gR.Pop,s=o(),l=s[0],u=s[1],c=zR(),d=zR();function p(e){return"string"==typeof e?e:WR(e)}function f(e,t){return void 0===t&&(t=null),LR(_R({pathname:u.pathname,hash:"",search:""},"string"==typeof e?UR(e):e,{state:t,key:Math.random().toString(36).substr(2,8)}))}function h(e,t){return[{usr:e.state,key:e.key,idx:t},p(e)]}function m(e,t,n){return!d.length||(d.call({action:e,location:t,retry:n}),!1)}function v(e){a=e;var t=o();l=t[0],u=t[1],c.call({action:a,location:u})}function g(e){r.go(e)}null==l&&(l=0,r.replaceState(_R({},r.state,{idx:l}),""));var y={get action(){return a},get location(){return u},createHref:p,push:function e(t,o){var i=gR.Push,a=f(t,o);if(m(i,a,(function(){e(t,o)}))){var s=h(a,l+1),u=s[0],c=s[1];try{r.pushState(u,"",c)}catch(e){n.location.assign(c)}v(i)}},replace:function e(t,n){var o=gR.Replace,i=f(t,n);if(m(o,i,(function(){e(t,n)}))){var a=h(i,l),s=a[0],u=a[1];r.replaceState(s,"",u),v(o)}},go:g,back:function(){g(-1)},forward:function(){g(1)},listen:function(e){return c.push(e)},block:function(e){var t=d.push(e);return 1===d.length&&n.addEventListener("beforeunload",VR),function(){t(),d.length||n.removeEventListener("beforeunload",VR)}}};return y}function VR(e){e.preventDefault(),e.returnValue=""}function zR(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function WR(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,o=void 0===r?"":r,i=e.hash,a=void 0===i?"":i;return o&&"?"!==o&&(n+="?"===o.charAt(0)?o:"?"+o),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function UR(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}
|
131
|
+
!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&e.push(a)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var s in o)t.call(o,s)&&o[s]&&e.push(s)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(jw);var Rw=jw.exports;function Iw(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function _w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Lw(e,t){if(e){if("string"==typeof e)return _w(e,t);var n={}.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)?_w(e,t):void 0}}function $w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||Lw(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 Vw(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var zw,Ww,Uw,Hw=(zw=Mw(),Ww="undefined"!=typeof window?window:{},Uw={animationend:Vw("Animation","AnimationEnd"),transitionend:Vw("Transition","TransitionEnd")},zw&&("AnimationEvent"in Ww||delete Uw.animationend.animation,"TransitionEvent"in Ww||delete Uw.transitionend.transition),Uw),qw={};if(Mw()){var Kw=document.createElement("div");qw=Kw.style}var Xw={};function Gw(e){if(Xw[e])return Xw[e];var t=Hw[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in qw)return Xw[e]=t[i],Xw[e]}return""}var Yw=Gw("animationend"),Zw=Gw("transitionend"),Jw=!(!Yw||!Zw),Qw=Yw||"animationend",eD=Zw||"transitionend";function tD(e,t){return e?"object"===sw(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}function nD(t){var n=e.useRef(!1),r=$w(e.useState(t),2),o=r[0],i=r[1];return e.useEffect((function(){return n.current=!1,function(){n.current=!0}}),[]),[o,function(e,t){t&&n.current||i(e)}]}var rD=Mw()?m:l,oD=["prepare","start","active","end"];function iD(e){return"active"===e||"end"===e}var aD=function(t,n){var r=$w(nD("none"),2),o=r[0],i=r[1],a=function(){var t=e.useRef(null);function n(){Sw.cancel(t.current)}return e.useEffect((function(){return function(){n()}}),[]),[function e(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var i=Sw((function(){o<=1?r({isCanceled:function(){return i!==t.current}}):e(r,o-1)}));t.current=i},n]}(),s=$w(a,2),l=s[0],u=s[1];return rD((function(){if("none"!==o&&"end"!==o){var e=oD.indexOf(o),t=oD[e+1],r=n(o);false===r?i(t,!0):l((function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[t,o]),e.useEffect((function(){return function(){u()}}),[]),[function(){i("prepare",!0)},o]};function sD(t,n,r,o){var i=o.motionEnter,a=void 0===i||i,s=o.motionAppear,u=void 0===s||s,c=o.motionLeave,p=void 0===c||c,f=o.motionDeadline,h=o.motionLeaveImmediately,m=o.onAppearPrepare,v=o.onEnterPrepare,g=o.onLeavePrepare,y=o.onAppearStart,b=o.onEnterStart,x=o.onLeaveStart,C=o.onAppearActive,w=o.onEnterActive,D=o.onLeaveActive,E=o.onAppearEnd,k=o.onEnterEnd,S=o.onLeaveEnd,O=o.onVisibleChanged,A=$w(nD(),2),B=A[0],T=A[1],F=$w(nD("none"),2),P=F[0],M=F[1],N=$w(nD(null),2),j=N[0],R=N[1],I=d(!1),_=d(null);function L(){return r()}var $=d(!1);function V(e){var t=L();if(!e||e.deadline||e.target===t){var n,r=$.current;"appear"===P&&r?n=null==E?void 0:E(t,e):"enter"===P&&r?n=null==k?void 0:k(t,e):"leave"===P&&r&&(n=null==S?void 0:S(t,e)),"none"!==P&&r&&!1!==n&&(M("none",!0),R(null,!0))}}var z=function(t){var n=d(),r=d(t);r.current=t;var o=e.useCallback((function(e){r.current(e)}),[]);function i(e){e&&(e.removeEventListener(eD,o),e.removeEventListener(Qw,o))}return e.useEffect((function(){return function(){i(n.current)}}),[]),[function(e){n.current&&n.current!==e&&i(n.current),e&&e!==n.current&&(e.addEventListener(eD,o),e.addEventListener(Qw,o),n.current=e)},i]}(V),W=$w(z,1)[0],U=e.useMemo((function(){var e,t,n;switch(P){case"appear":return uw(e={},"prepare",m),uw(e,"start",y),uw(e,"active",C),e;case"enter":return uw(t={},"prepare",v),uw(t,"start",b),uw(t,"active",w),t;case"leave":return uw(n={},"prepare",g),uw(n,"start",x),uw(n,"active",D),n;default:return{}}}),[P]),H=$w(aD(P,(function(e){if("prepare"===e){var t=U.prepare;return!!t&&t(L())}var n;K in U&&R((null===(n=U[K])||void 0===n?void 0:n.call(U,L(),null))||null);return"active"===K&&(W(L()),f>0&&(clearTimeout(_.current),_.current=setTimeout((function(){V({deadline:!0})}),f))),true})),2),q=H[0],K=H[1],X=iD(K);$.current=X,rD((function(){T(n);var e,r=I.current;(I.current=!0,t)&&(!r&&n&&u&&(e="appear"),r&&n&&a&&(e="enter"),(r&&!n&&p||!r&&h&&!n&&p)&&(e="leave"),e&&(M(e),q()))}),[n]),l((function(){("appear"===P&&!u||"enter"===P&&!a||"leave"===P&&!p)&&M("none")}),[u,a,p]),l((function(){return function(){I.current=!1,clearTimeout(_.current)}}),[]);var G=e.useRef(!1);l((function(){B&&(G.current=!0),void 0!==B&&"none"===P&&((G.current||B)&&(null==O||O(B)),G.current=!0)}),[B,P]);var Y=j;return U.prepare&&"start"===K&&(Y=dw({transition:"none"},Y)),[P,K,Y,null!=B?B:n]}var lD=function(t){vw(r,e.Component);var n=xw(r);function r(){return fw(this,r),n.apply(this,arguments)}return mw(r,[{key:"render",value:function(){return this.props.children}}]),r}();var uD=function(t){var n=t;function r(e){return!(!e.motionName||!n)}"object"===sw(t)&&(n=t.transitionSupport);var o=e.forwardRef((function(t,n){var o=t.visible,i=void 0===o||o,a=t.removeOnLeave,s=void 0===a||a,l=t.forceRender,u=t.children,c=t.motionName,p=t.leavedClassName,f=t.eventProps,h=r(t),m=d(),v=d();var g=$w(sD(h,i,(function(){try{return m.current instanceof HTMLElement?m.current:Aw(v.current)}catch(e){return null}}),t),4),y=g[0],b=g[1],x=g[2],C=g[3],w=e.useRef(C);C&&(w.current=!0);var D,E=e.useCallback((function(e){m.current=e,Bw(n,e)}),[n]),k=dw(dw({},f),{},{visible:i});if(u)if("none"!==y&&r(t)){var S,O;"prepare"===b?O="prepare":iD(b)?O="active":"start"===b&&(O="start"),D=u(dw(dw({},k),{},{className:Rw(tD(c,y),(S={},uw(S,tD(c,"".concat(y,"-").concat(O)),O),uw(S,c,"string"==typeof c),S)),style:x}),E)}else D=C?u(dw({},k),E):!s&&w.current?u(dw(dw({},k),{},{className:p}),E):l?u(dw(dw({},k),{},{style:{display:"none"}}),E):null;else D=null;e.isValidElement(D)&&Fw(D)&&(D.ref||(D=e.cloneElement(D,{ref:E})));return e.createElement(lD,{ref:v},D)}));return o.displayName="CSSMotion",o}(Jw);function cD(e){var t;return dw(dw({},t=e&&"object"===sw(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function dD(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(cD)}function pD(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=dD(e),a=dD(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var s=a[i];if(s.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return dw(dw({},e),{},{status:"add"})}))),r=i),n.push(dw(dw({},s),{},{status:"keep"})),r+=1,t=!0;break}}t||n.push(dw(dw({},e),{},{status:"remove"}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return dw(dw({},e),{},{status:"add"})}))));var s={};n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1}));var l=Object.keys(s).filter((function(e){return s[e]>1}));return l.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||"remove"!==r}))).forEach((function(t){t.key===e&&(t.status="keep")}))})),n}var fD=["component","children","onVisibleChanged","onAllRemoved"],hD=["status"],mD=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var vD=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:uD,r=function(t){vw(o,e.Component);var r=xw(o);function o(){var e;fw(this,o);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).state={keyEntities:[]},e.removeKey=function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:dw(dw({},e),{},{status:"removed"})}));return e.setState({keyEntities:n}),n.filter((function(e){return"removed"!==e.status})).length},e}return mw(o,[{key:"render",value:function(){var t=this,r=this.state.keyEntities,o=this.props,i=o.component,a=o.children,s=o.onVisibleChanged,l=o.onAllRemoved,u=pw(o,fD),c=i||e.Fragment,d={};return mD.forEach((function(e){d[e]=u[e],delete u[e]})),delete u.keys,e.createElement(c,u,r.map((function(r){var o=r.status,i=pw(r,hD),u="add"===o||"keep"===o;return e.createElement(n,M({},d,{key:i.key,visible:u,eventProps:i,onVisibleChanged:function(e){(null==s||s(e,{key:i.key}),e)||0===t.removeKey(i.key)&&l&&l()}}),a)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=dD(n);return{keyEntities:pD(r,o).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||"removed"!==t.status||"remove"!==e.status}))}}}]),o}();return r.defaultProps={component:"div"},r}(Jw);function gD(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function yD(t){var n=t.prefixCls,r=t.visible,o=t.zIndex,i=t.mask,a=t.maskMotion,s=t.maskAnimation,l=t.maskTransitionName;if(!i)return null;var u={};return(a||l||s)&&(u=dw({motionAppear:!0},gD({motion:a,prefixCls:n,transitionName:l,animation:s}))),e.createElement(uD,M({},u,{visible:r,removeOnLeave:!0}),(function(t){var r=t.className;return e.createElement("div",{style:{zIndex:o},className:Rw("".concat(n,"-mask"),r)})}))}var bD,xD=function(e){if(!e)return!1;if(e instanceof HTMLElement&&e.offsetParent)return!0;if(e instanceof SVGGraphicsElement&&e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e instanceof HTMLElement&&e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}return!1};function CD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CD(Object(n),!0).forEach((function(t){ED(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function DD(e){return DD="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},DD(e)}function ED(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kD={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function SD(){if(void 0!==bD)return bD;bD="";var e=document.createElement("p").style;for(var t in kD)t+"Transform"in e&&(bD=t);return bD}function OD(){return SD()?"".concat(SD(),"TransitionProperty"):"transitionProperty"}function AD(){return SD()?"".concat(SD(),"Transform"):"transform"}function BD(e,t){var n=OD();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function TD(e,t){var n=AD();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var FD,PD=/matrix\((.*)\)/,MD=/matrix3d\((.*)\)/;function ND(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function jD(e,t,n){var r=n;if("object"!==DD(t))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):FD(e,t);for(var o in t)t.hasOwnProperty(o)&&jD(e,o,t[o])}function RD(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function ID(e){return RD(e)}function _D(e){return RD(e,!0)}function LD(e){var t=function(e){var t,n,r,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top),{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=ID(r),t.top+=_D(r),t}function $D(e){return null!=e&&e==e.window}function VD(e){return $D(e)?e.document:9===e.nodeType?e:e.ownerDocument}var zD=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),WD=/^(top|right|bottom|left)$/;function UD(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function HD(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function qD(e,t,n){"static"===jD(e,"position")&&(e.style.position="relative");var r=-999,o=-999,i=UD("left",n),a=UD("top",n),s=HD(i),l=HD(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var u,c="",d=LD(e);("left"in t||"top"in t)&&(c=(u=e).style.transitionProperty||u.style[OD()]||"",BD(e,"none")),"left"in t&&(e.style[s]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[l]="",e.style[a]="".concat(o,"px")),ND(e);var p=LD(e),f={};for(var h in t)if(t.hasOwnProperty(h)){var m=UD(h,n),v="left"===h?r:o,g=d[h]-p[h];f[m]=m===h?v+g:v-g}jD(e,f),ND(e),("left"in t||"top"in t)&&BD(e,c);var y={};for(var b in t)if(t.hasOwnProperty(b)){var x=UD(b,n),C=t[b]-d[b];y[x]=b===x?f[x]+C:f[x]-C}jD(e,y)}function KD(e,t){var n=LD(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(AD());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(AD());if(r&&"none"!==r){var o,i=r.match(PD);i?((o=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,o[5]=t.y,TD(e,"matrix(".concat(o.join(","),")"))):((o=r.match(MD)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,o[13]=t.y,TD(e,"matrix3d(".concat(o.join(","),")")))}else TD(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,o)}function XD(e,t){for(var n=0;n<e.length;n++)t(e[n])}function GD(e){return"border-box"===FD(e,"boxSizing")}"undefined"!=typeof window&&(FD=window.getComputedStyle?function(e,t,n){var r=n,o="",i=VD(e);return(r=r||i.defaultView.getComputedStyle(e,null))&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(zD.test(n)&&!WD.test(t)){var r=e.style,o=r.left,i=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,r.left="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r.left=o,e.runtimeStyle.left=i}return""===n?"auto":n});var YD=["margin","border","padding"];function ZD(e,t,n){var r,o={},i=e.style;for(r in t)t.hasOwnProperty(r)&&(o[r]=i[r],i[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(i[r]=o[r])}function JD(e,t,n){var r,o,i,a=0;for(o=0;o<t.length;o++)if(r=t[o])for(i=0;i<n.length;i++){var s=void 0;s="border"===r?"".concat(r).concat(n[i],"Width"):r+n[i],a+=parseFloat(FD(e,s))||0}return a}var QD={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function eE(e,t,n){var r=n;if($D(e))return"width"===t?QD.viewportWidth(e):QD.viewportHeight(e);if(9===e.nodeType)return"width"===t?QD.docWidth(e):QD.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=GD(e),s=0;(null==i||i<=0)&&(i=void 0,(null==(s=FD(e,t))||Number(s)<0)&&(s=e.style[t]||0),s=parseFloat(s)||0),void 0===r&&(r=a?1:-1);var l=void 0!==i||a,u=i||s;return-1===r?l?u-JD(e,["border","padding"],o):s:l?1===r?u:u+(2===r?-JD(e,["border"],o):JD(e,["margin"],o)):s+JD(e,YD.slice(r),o)}XD(["Width","Height"],(function(e){QD["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],QD["viewport".concat(e)](n))},QD["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var tE={position:"absolute",visibility:"hidden",display:"block"};function nE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return 0!==o.offsetWidth?r=eE.apply(void 0,t):ZD(o,tE,(function(){r=eE.apply(void 0,t)})),r}function rE(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}XD(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);QD["outer".concat(t)]=function(t,n){return t&&nE(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];QD[e]=function(t,r){var o=r;return void 0!==o?t?(GD(t)&&(o+=JD(t,["padding","border"],n)),jD(t,e,o)):void 0:t&&nE(t,e,-1)}}));var oE={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:VD,offset:function(e,t,n){if(void 0===t)return LD(e);!function(e,t,n){if(n.ignoreShake){var r=LD(e),o=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),s=t.top.toFixed(0);if(o===a&&i===s)return}n.useCssRight||n.useCssBottom?qD(e,t,n):n.useCssTransform&&AD()in document.body.style?KD(e,t):qD(e,t,n)}(e,t,n||{})},isWindow:$D,each:XD,css:jD,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:rE,getWindowScrollLeft:function(e){return ID(e)},getWindowScrollTop:function(e){return _D(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)oE.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};rE(oE,QD);var iE=oE.getParent;function aE(e){if(oE.isWindow(e)||9===e.nodeType)return null;var t,n=oE.getDocument(e).body,r=oE.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:iE(e);for(t=iE(e);t&&t!==n&&9!==t.nodeType;t=iE(t))if("static"!==(r=oE.css(t,"position")))return t;return null}var sE=oE.getParent;function lE(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=aE(e),o=oE.getDocument(e),i=o.defaultView||o.parentWindow,a=o.body,s=o.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===s||"visible"===oE.css(r,"overflow")){if(r===a||r===s)break}else{var l=oE.offset(r);l.left+=r.clientLeft,l.top+=r.clientTop,n.top=Math.max(n.top,l.top),n.right=Math.min(n.right,l.left+r.clientWidth),n.bottom=Math.min(n.bottom,l.top+r.clientHeight),n.left=Math.max(n.left,l.left)}r=aE(r)}var u=null;oE.isWindow(e)||9===e.nodeType||(u=e.style.position,"absolute"===oE.css(e,"position")&&(e.style.position="fixed"));var c=oE.getWindowScrollLeft(i),d=oE.getWindowScrollTop(i),p=oE.viewportWidth(i),f=oE.viewportHeight(i),h=s.scrollWidth,m=s.scrollHeight,v=window.getComputedStyle(a);if("hidden"===v.overflowX&&(h=i.innerWidth),"hidden"===v.overflowY&&(m=i.innerHeight),e.style&&(e.style.position=u),t||function(e){if(oE.isWindow(e)||9===e.nodeType)return!1;var t=oE.getDocument(e),n=t.body,r=null;for(r=sE(e);r&&r!==n&&r!==t;r=sE(r))if("fixed"===oE.css(r,"position"))return!0;return!1}(e))n.left=Math.max(n.left,c),n.top=Math.max(n.top,d),n.right=Math.min(n.right,c+p),n.bottom=Math.min(n.bottom,d+f);else{var g=Math.max(h,c+p);n.right=Math.min(n.right,g);var y=Math.max(m,d+f);n.bottom=Math.min(n.bottom,y)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function uE(e){var t,n,r;if(oE.isWindow(e)||9===e.nodeType){var o=oE.getWindow(e);t={left:oE.getWindowScrollLeft(o),top:oE.getWindowScrollTop(o)},n=oE.viewportWidth(o),r=oE.viewportHeight(o)}else t=oE.offset(e),n=oE.outerWidth(e),r=oE.outerHeight(e);return t.width=n,t.height=r,t}function cE(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,s=e.top;return"c"===n?s+=i/2:"b"===n&&(s+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:s}}function dE(e,t,n,r,o){var i=cE(t,n[1]),a=cE(e,n[0]),s=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-s[0]+r[0]-o[0]),top:Math.round(e.top-s[1]+r[1]-o[1])}}function pE(e,t,n){return e.left<n.left||e.left+t.width>n.right}function fE(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function hE(e,t,n){var r=[];return oE.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function mE(e,t){return e[t]=-e[t],e}function vE(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function gE(e,t){e[0]=vE(e[0],t.width),e[1]=vE(e[1],t.height)}function yE(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],s=n.overflow,l=n.source||e;i=[].concat(i),a=[].concat(a);var u={},c=0,d=lE(l,!(!(s=s||{})||!s.alwaysByViewport)),p=uE(l);gE(i,p),gE(a,t);var f=dE(p,t,o,i,a),h=oE.merge(p,f);if(d&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&pE(f,p,d)){var m=hE(o,/[lr]/gi,{l:"r",r:"l"}),v=mE(i,0),g=mE(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(dE(p,t,m,v,g),p,d)||(c=1,o=m,i=v,a=g)}if(s.adjustY&&fE(f,p,d)){var y=hE(o,/[tb]/gi,{t:"b",b:"t"}),b=mE(i,1),x=mE(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(dE(p,t,y,b,x),p,d)||(c=1,o=y,i=b,a=x)}c&&(f=dE(p,t,o,i,a),oE.mix(h,f));var C=pE(f,p,d),w=fE(f,p,d);if(C||w){var D=o;C&&(D=hE(o,/[lr]/gi,{l:"r",r:"l"})),w&&(D=hE(o,/[tb]/gi,{t:"b",b:"t"})),o=D,i=n.offset||[0,0],a=n.targetOffset||[0,0]}u.adjustX=s.adjustX&&C,u.adjustY=s.adjustY&&w,(u.adjustX||u.adjustY)&&(h=function(e,t,n,r){var o=oE.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),oE.mix(o,i)}(f,p,d,u))}return h.width!==p.width&&oE.css(l,"width",oE.width(l)+h.width-p.width),h.height!==p.height&&oE.css(l,"height",oE.height(l)+h.height-p.height),oE.offset(l,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:u}}function bE(e,t,n){var r=n.target||t,o=uE(r),i=!function(e,t){var n=lE(e,t),r=uE(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return yE(e,o,n,i)}bE.__getOffsetParent=aE,bE.__getVisibleRectForElement=lE;var xE=function(){this.__data__=[],this.size=0};var CE=function(e,t){return e===t||e!=e&&t!=t},wE=CE;var DE=function(e,t){for(var n=e.length;n--;)if(wE(e[n][0],t))return n;return-1},EE=DE,kE=Array.prototype.splice;var SE=function(e){var t=this.__data__,n=EE(t,e);return!(n<0)&&(n==t.length-1?t.pop():kE.call(t,n,1),--this.size,!0)},OE=DE;var AE=function(e){var t=this.__data__,n=OE(t,e);return n<0?void 0:t[n][1]},BE=DE;var TE=DE;var FE=function(e,t){var n=this.__data__,r=TE(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},PE=xE,ME=SE,NE=AE,jE=function(e){return BE(this.__data__,e)>-1},RE=FE;function IE(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}IE.prototype.clear=PE,IE.prototype.delete=ME,IE.prototype.get=NE,IE.prototype.has=jE,IE.prototype.set=RE;var _E=IE,LE=_E;var $E=function(){this.__data__=new LE,this.size=0};var VE=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var zE=function(e){return this.__data__.get(e)};var WE=function(e){return this.__data__.has(e)},UE=mg,HE=qv;var qE,KE=function(e){if(!HE(e))return!1;var t=UE(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},XE=Yv["__core-js_shared__"],GE=(qE=/[^.]+$/.exec(XE&&XE.keys&&XE.keys.IE_PROTO||""))?"Symbol(src)_1."+qE:"";var YE=function(e){return!!GE&&GE in e},ZE=Function.prototype.toString;var JE=function(e){if(null!=e){try{return ZE.call(e)}catch(e){}try{return e+""}catch(e){}}return""},QE=KE,ek=YE,tk=qv,nk=JE,rk=/^\[object .+?Constructor\]$/,ok=Function.prototype,ik=Object.prototype,ak=ok.toString,sk=ik.hasOwnProperty,lk=RegExp("^"+ak.call(sk).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var uk=function(e){return!(!tk(e)||ek(e))&&(QE(e)?lk:rk).test(nk(e))},ck=function(e,t){return null==e?void 0:e[t]};var dk=function(e,t){var n=ck(e,t);return uk(n)?n:void 0},pk=dk(Yv,"Map"),fk=dk(Object,"create"),hk=fk;var mk=function(){this.__data__=hk?hk(null):{},this.size=0};var vk=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},gk=fk,yk=Object.prototype.hasOwnProperty;var bk=function(e){var t=this.__data__;if(gk){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return yk.call(t,e)?t[e]:void 0},xk=fk,Ck=Object.prototype.hasOwnProperty;var wk=fk;var Dk=mk,Ek=vk,kk=bk,Sk=function(e){var t=this.__data__;return xk?void 0!==t[e]:Ck.call(t,e)},Ok=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=wk&&void 0===t?"__lodash_hash_undefined__":t,this};function Ak(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ak.prototype.clear=Dk,Ak.prototype.delete=Ek,Ak.prototype.get=kk,Ak.prototype.has=Sk,Ak.prototype.set=Ok;var Bk=Ak,Tk=_E,Fk=pk;var Pk=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Mk=function(e,t){var n=e.__data__;return Pk(t)?n["string"==typeof t?"string":"hash"]:n.map},Nk=Mk;var jk=Mk;var Rk=Mk;var Ik=Mk;var _k=function(){this.size=0,this.__data__={hash:new Bk,map:new(Fk||Tk),string:new Bk}},Lk=function(e){var t=Nk(this,e).delete(e);return this.size-=t?1:0,t},$k=function(e){return jk(this,e).get(e)},Vk=function(e){return Rk(this,e).has(e)},zk=function(e,t){var n=Ik(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Wk(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Wk.prototype.clear=_k,Wk.prototype.delete=Lk,Wk.prototype.get=$k,Wk.prototype.has=Vk,Wk.prototype.set=zk;var Uk=Wk,Hk=_E,qk=pk,Kk=Uk;var Xk=_E,Gk=$E,Yk=VE,Zk=zE,Jk=WE,Qk=function(e,t){var n=this.__data__;if(n instanceof Hk){var r=n.__data__;if(!qk||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kk(r)}return n.set(e,t),this.size=n.size,this};function eS(e){var t=this.__data__=new Xk(e);this.size=t.size}eS.prototype.clear=Gk,eS.prototype.delete=Yk,eS.prototype.get=Zk,eS.prototype.has=Jk,eS.prototype.set=Qk;var tS=eS;var nS=Uk,rS=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},oS=function(e){return this.__data__.has(e)};function iS(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new nS;++t<n;)this.add(e[t])}iS.prototype.add=iS.prototype.push=rS,iS.prototype.has=oS;var aS=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var sS=function(e,t){return e.has(t)},lS=iS,uS=aS,cS=sS;var dS=function(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,f=2&n?new lS:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var h=e[d],m=t[d];if(r)var v=a?r(m,h,d,t,e,i):r(h,m,d,e,t,i);if(void 0!==v){if(v)continue;p=!1;break}if(f){if(!uS(t,(function(e,t){if(!cS(f,t)&&(h===e||o(h,e,n,r,i)))return f.push(t)}))){p=!1;break}}else if(h!==m&&!o(h,m,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p};var pS=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var fS=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},hS=Yv.Uint8Array,mS=CE,vS=dS,gS=pS,yS=fS,bS=og?og.prototype:void 0,xS=bS?bS.valueOf:void 0;var CS=function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new hS(e),new hS(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return mS(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=gS;case"[object Set]":var l=1&r;if(s||(s=yS),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=vS(s(e),s(t),r,o,i,a);return a.delete(e),c;case"[object Symbol]":if(xS)return xS.call(e)==xS.call(t)}return!1};var wS=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},DS=Array.isArray,ES=wS,kS=DS;var SS=function(e,t,n){var r=t(e);return kS(e)?r:ES(r,n(e))};var OS=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};var AS=OS,BS=function(){return[]},TS=Object.prototype.propertyIsEnumerable,FS=Object.getOwnPropertySymbols,PS=FS?function(e){return null==e?[]:(e=Object(e),AS(FS(e),(function(t){return TS.call(e,t)})))}:BS;var MS=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},NS=mg,jS=vg;var RS=function(e){return jS(e)&&"[object Arguments]"==NS(e)},IS=vg,_S=Object.prototype,LS=_S.hasOwnProperty,$S=_S.propertyIsEnumerable,VS=RS(function(){return arguments}())?RS:function(e){return IS(e)&&LS.call(e,"callee")&&!$S.call(e,"callee")},zS={exports:{}};var WS=function(){return!1};!function(e,t){var n=Yv,r=WS,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;e.exports=s}(zS,zS.exports);var US=/^(?:0|[1-9]\d*)$/;var HS=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&US.test(e))&&e>-1&&e%1==0&&e<t};var qS=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},KS=mg,XS=qS,GS=vg,YS={};YS["[object Float32Array]"]=YS["[object Float64Array]"]=YS["[object Int8Array]"]=YS["[object Int16Array]"]=YS["[object Int32Array]"]=YS["[object Uint8Array]"]=YS["[object Uint8ClampedArray]"]=YS["[object Uint16Array]"]=YS["[object Uint32Array]"]=!0,YS["[object Arguments]"]=YS["[object Array]"]=YS["[object ArrayBuffer]"]=YS["[object Boolean]"]=YS["[object DataView]"]=YS["[object Date]"]=YS["[object Error]"]=YS["[object Function]"]=YS["[object Map]"]=YS["[object Number]"]=YS["[object Object]"]=YS["[object RegExp]"]=YS["[object Set]"]=YS["[object String]"]=YS["[object WeakMap]"]=!1;var ZS=function(e){return GS(e)&&XS(e.length)&&!!YS[KS(e)]};var JS=function(e){return function(t){return e(t)}},QS={exports:{}};!function(e,t){var n=Kv,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(QS,QS.exports);var eO=ZS,tO=JS,nO=QS.exports,rO=nO&&nO.isTypedArray,oO=rO?tO(rO):eO,iO=MS,aO=VS,sO=DS,lO=zS.exports,uO=HS,cO=oO,dO=Object.prototype.hasOwnProperty;var pO=function(e,t){var n=sO(e),r=!n&&aO(e),o=!n&&!r&&lO(e),i=!n&&!r&&!o&&cO(e),a=n||r||o||i,s=a?iO(e.length,String):[],l=s.length;for(var u in e)!t&&!dO.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||uO(u,l))||s.push(u);return s},fO=Object.prototype;var hO=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||fO)};var mO=function(e,t){return function(n){return e(t(n))}},vO=mO(Object.keys,Object),gO=hO,yO=vO,bO=Object.prototype.hasOwnProperty;var xO=KE,CO=qS;var wO=pO,DO=function(e){if(!gO(e))return yO(e);var t=[];for(var n in Object(e))bO.call(e,n)&&"constructor"!=n&&t.push(n);return t},EO=function(e){return null!=e&&CO(e.length)&&!xO(e)};var kO=SS,SO=PS,OO=function(e){return EO(e)?wO(e):DO(e)};var AO=function(e){return kO(e,OO,SO)},BO=Object.prototype.hasOwnProperty;var TO=function(e,t,n,r,o,i){var a=1&n,s=AO(e),l=s.length;if(l!=AO(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:BO.call(t,c)))return!1}var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var f=!0;i.set(e,t),i.set(t,e);for(var h=a;++u<l;){var m=e[c=s[u]],v=t[c];if(r)var g=a?r(v,m,c,t,e,i):r(m,v,c,e,t,i);if(!(void 0===g?m===v||o(m,v,n,r,i):g)){f=!1;break}h||(h="constructor"==c)}if(f&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(f=!1)}return i.delete(e),i.delete(t),f},FO=dk(Yv,"DataView"),PO=pk,MO=dk(Yv,"Promise"),NO=dk(Yv,"Set"),jO=dk(Yv,"WeakMap"),RO=mg,IO=JE,_O=IO(FO),LO=IO(PO),$O=IO(MO),VO=IO(NO),zO=IO(jO),WO=RO;(FO&&"[object DataView]"!=WO(new FO(new ArrayBuffer(1)))||PO&&"[object Map]"!=WO(new PO)||MO&&"[object Promise]"!=WO(MO.resolve())||NO&&"[object Set]"!=WO(new NO)||jO&&"[object WeakMap]"!=WO(new jO))&&(WO=function(e){var t=RO(e),n="[object Object]"==t?e.constructor:void 0,r=n?IO(n):"";if(r)switch(r){case _O:return"[object DataView]";case LO:return"[object Map]";case $O:return"[object Promise]";case VO:return"[object Set]";case zO:return"[object WeakMap]"}return t});var UO=tS,HO=dS,qO=CS,KO=TO,XO=WO,GO=DS,YO=zS.exports,ZO=oO,JO="[object Object]",QO=Object.prototype.hasOwnProperty;var eA=function(e,t,n,r,o,i){var a=GO(e),s=GO(t),l=a?"[object Array]":XO(e),u=s?"[object Array]":XO(t),c=(l="[object Arguments]"==l?JO:l)==JO,d=(u="[object Arguments]"==u?JO:u)==JO,p=l==u;if(p&&YO(e)){if(!YO(t))return!1;a=!0,c=!1}if(p&&!c)return i||(i=new UO),a||ZO(e)?HO(e,t,n,r,o,i):qO(e,t,l,n,r,o,i);if(!(1&n)){var f=c&&QO.call(e,"__wrapped__"),h=d&&QO.call(t,"__wrapped__");if(f||h){var m=f?e.value():e,v=h?t.value():t;return i||(i=new UO),o(m,v,n,r,i)}}return!!p&&(i||(i=new UO),KO(e,t,n,r,o,i))},tA=vg;var nA=function e(t,n,r,o,i){return t===n||(null==t||null==n||!tA(t)&&!tA(n)?t!=t&&n!=n:eA(t,n,r,o,e,i))},rA=nA;var oA=function(e,t){return rA(e,t)},iA=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),aA="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,sA="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),lA="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(sA):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var uA=["top","right","bottom","left","width","height","size","weight"],cA="undefined"!=typeof MutationObserver,dA=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s()}function a(){lA(i)}function s(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){aA&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),cA?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){aA&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;uA.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),pA=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},fA=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||sA},hA=xA(0,0,0,0);function mA(e){return parseFloat(e)||0}function vA(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+mA(e["border-"+n+"-width"])}),0)}function gA(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return hA;var r=fA(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=mA(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,s=mA(r.width),l=mA(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=vA(r,"left","right")+i),Math.round(l+a)!==n&&(l-=vA(r,"top","bottom")+a)),!function(e){return e===fA(e).document.documentElement}(e)){var u=Math.round(s+i)-t,c=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return xA(o.left,o.top,s,l)}var yA="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof fA(e).SVGGraphicsElement}:function(e){return e instanceof fA(e).SVGElement&&"function"==typeof e.getBBox};function bA(e){return aA?yA(e)?function(e){var t=e.getBBox();return xA(0,0,t.width,t.height)}(e):gA(e):hA}function xA(e,t,n,r){return{x:e,y:t,width:n,height:r}}var CA=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=xA(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=bA(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),wA=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return pA(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}(t);pA(this,{target:e,contentRect:n})},DA=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new iA,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof fA(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new CA(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof fA(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new wA(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),EA="undefined"!=typeof WeakMap?new WeakMap:new iA,kA=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=dA.getInstance(),r=new DA(t,n,this);EA.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){kA.prototype[e]=function(){var t;return(t=EA.get(this))[e].apply(t,arguments)}}));var SA=void 0!==sA.ResizeObserver?sA.ResizeObserver:kA;function OA(e,t){var n=null,r=null;var o=new SA((function(e){var o=$w(e,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,s=i.height,l=Math.floor(a),u=Math.floor(s);n===l&&r===u||Promise.resolve().then((function(){t({width:l,height:u})})),n=l,r=u}}));return e&&o.observe(e),function(){o.disconnect()}}function AA(e){return"function"!=typeof e?null:e()}function BA(e){return"object"===sw(e)&&e?e:null}var TA=function(e,n){var r=e.children,o=e.disabled,i=e.target,a=e.align,s=e.onAlign,l=e.monitorWindowResize,u=e.monitorBufferTime,c=void 0===u?0:u,d=t.useRef({}),p=t.useRef(),f=t.Children.only(r),h=t.useRef({});h.current.disabled=o,h.current.target=i,h.current.align=a,h.current.onAlign=s;var m=function(e,n){var r=t.useRef(!1),o=t.useRef(null);function i(){window.clearTimeout(o.current)}return[function t(a){if(i(),r.current&&!0!==a)o.current=window.setTimeout((function(){r.current=!1,t()}),n);else{if(!1===e())return;r.current=!0,o.current=window.setTimeout((function(){r.current=!1}),n)}},function(){r.current=!1,i()}]}((function(){var e=h.current,t=e.disabled,n=e.target,r=e.align,o=e.onAlign;if(!t&&n){var i,a=p.current,s=AA(n),l=BA(n);d.current.element=s,d.current.point=l,d.current.align=r;var u=document.activeElement;return s&&xD(s)?i=bE(a,s,r):l&&(i=function(e,t,n){var r,o,i=oE.getDocument(e),a=i.defaultView||i.parentWindow,s=oE.getWindowScrollLeft(a),l=oE.getWindowScrollTop(a),u=oE.viewportWidth(a),c=oE.viewportHeight(a),d={left:r="pageX"in t?t.pageX:s+t.clientX,top:o="pageY"in t?t.pageY:l+t.clientY,width:0,height:0},p=r>=0&&r<=s+u&&o>=0&&o<=l+c,f=[n.points[0],"cc"];return yE(e,d,wD(wD({},n),{},{points:f}),p)}(a,l,r)),function(e,t){e!==document.activeElement&&Ow(t,e)&&"function"==typeof e.focus&&e.focus()}(u,a),o&&i&&o(a,i),!0}return!1}),c),v=$w(m,2),g=v[0],y=v[1],b=t.useRef({cancel:function(){}}),x=t.useRef({cancel:function(){}});t.useEffect((function(){var e,t,n=AA(i),r=BA(i);p.current!==x.current.element&&(x.current.cancel(),x.current.element=p.current,x.current.cancel=OA(p.current,g)),d.current.element===n&&((e=d.current.point)===(t=r)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&oA(d.current.align,a)||(g(),b.current.element!==n&&(b.current.cancel(),b.current.element=n,b.current.cancel=OA(n,g)))})),t.useEffect((function(){o?y():g()}),[o]);var C=t.useRef(null);return t.useEffect((function(){l?C.current||(C.current=Pw(window,"resize",g)):C.current&&(C.current.remove(),C.current=null)}),[l]),t.useEffect((function(){return function(){b.current.cancel(),x.current.cancel(),C.current&&C.current.remove(),y()}}),[]),t.useImperativeHandle(n,(function(){return{forceAlign:function(){return g(!0)}}})),t.isValidElement(f)&&(f=t.cloneElement(f,{ref:Tw(f.ref,p)})),f},FA=t.forwardRef(TA);FA.displayName="Align";var PA="test"!==process.env.NODE_ENV&&Mw()?e.useLayoutEffect:e.useEffect;function MA(){MA=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new B(r||[]);return o(a,"_invoke",{value:k(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var p="suspendedStart",f="executing",h="completed",m={};function v(){}function g(){}function y(){}var b={};u(b,a,(function(){return this}));var x=Object.getPrototypeOf,C=x&&x(x(T([])));C&&C!==n&&r.call(C,a)&&(b=C);var w=y.prototype=v.prototype=Object.create(b);function D(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==sw(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function k(t,n,r){var o=p;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=S(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var u=d(t,n,r);if("normal"===u.type){if(o=r.done?h:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=h,r.method="throw",r.arg=u.arg)}}}function S(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function B(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(sw(t)+" is not iterable")}return g.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:g,configurable:!0}),g.displayName=u(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},D(E.prototype),u(E.prototype,s,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(c(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},D(w),u(w,l,"Generator"),u(w,a,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=T,B.prototype={constructor:B,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function NA(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function jA(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){NA(i,r,o,a,s,"next",e)}function s(e){NA(i,r,o,a,s,"throw",e)}a(void 0)}))}}var RA=["measure","alignPre","align",null,"motion"],IA=e.forwardRef((function(t,n){var r=t.visible,o=t.prefixCls,i=t.className,a=t.style,u=t.children,c=t.zIndex,p=t.stretch,f=t.destroyPopupOnHide,h=t.forceRender,m=t.align,v=t.point,g=t.getRootDomNode,y=t.getClassNameFromAlign,b=t.onAlign,x=t.onMouseEnter,C=t.onMouseLeave,w=t.onMouseDown,D=t.onTouchStart,E=t.onClick,k=d(),S=d(),O=$w(s(),2),A=O[0],B=O[1],T=function(t){var n=$w(e.useState({width:0,height:0}),2),r=n[0],o=n[1],i=e.useMemo((function(){var e={};if(t){var n=r.width,o=r.height;-1!==t.indexOf("height")&&o?e.height=o:-1!==t.indexOf("minHeight")&&o&&(e.minHeight=o),-1!==t.indexOf("width")&&n?e.width=n:-1!==t.indexOf("minWidth")&&n&&(e.minWidth=n)}return e}),[t,r]);return[i,function(e){o({width:e.offsetWidth,height:e.offsetHeight})}]}(p),F=$w(T,2),P=F[0],N=F[1];var j=function(e,t){var n=$w(nD(null),2),r=n[0],o=n[1],i=d();function a(e){o(e,!0)}function s(){Sw.cancel(i.current)}return l((function(){a("measure")}),[e]),l((function(){"measure"===r&&t(),r&&(i.current=Sw(jA(MA().mark((function e(){var t,n;return MA().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=RA.indexOf(r),(n=RA[t+1])&&-1!==t&&a(n);case 3:case"end":return e.stop()}}),e)})))))}),[r]),l((function(){return function(){s()}}),[]),[r,function(e){s(),i.current=Sw((function(){a((function(e){switch(r){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(r,(function(){p&&N(g())})),R=$w(j,2),I=R[0],_=R[1],L=$w(s(0),2),$=L[0],V=L[1],z=d();function W(){var e;null===(e=k.current)||void 0===e||e.forceAlign()}function U(e,t){var n=y(t);A!==n&&B(n),V((function(e){return e+1})),"align"===I&&(null==b||b(e,t))}PA((function(){"alignPre"===I&&V(0)}),[I]),PA((function(){"align"===I&&($<2?W():_((function(){var e;null===(e=z.current)||void 0===e||e.call(z)})))}),[$]);var H=dw({},gD(t));function q(){return new Promise((function(e){z.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=H[e];H[e]=function(e,n){return _(),null==t?void 0:t(e,n)}})),e.useEffect((function(){H.motionName||"motion"!==I||_()}),[H.motionName,I]),e.useImperativeHandle(n,(function(){return{forceAlign:W,getElement:function(){return S.current}}}));var K=dw(dw({},P),{},{zIndex:c,opacity:"motion"!==I&&"stable"!==I&&r?0:void 0,pointerEvents:r||"stable"===I?void 0:"none"},a),X=!0;!(null==m?void 0:m.points)||"align"!==I&&"stable"!==I||(X=!1);var G=u;return e.Children.count(u)>1&&(G=e.createElement("div",{className:"".concat(o,"-content")},u)),e.createElement(uD,M({visible:r,ref:S,leavedClassName:"".concat(o,"-hidden")},H,{onAppearPrepare:q,onEnterPrepare:q,removeOnLeave:f,forceRender:h}),(function(t,n){var r=t.className,a=t.style,s=Rw(o,i,A,r);return e.createElement(FA,{target:v||g,key:"popup",ref:k,monitorWindowResize:!0,disabled:X,align:m,onAlign:U},e.createElement("div",{ref:n,className:s,onMouseEnter:x,onMouseLeave:C,onMouseDownCapture:w,onTouchStartCapture:D,onClick:E,style:dw(dw({},a),K)},G))}))}));IA.displayName="PopupInner";var _A=e.forwardRef((function(t,n){var r=t.prefixCls,o=t.visible,i=t.zIndex,a=t.children,s=t.mobile,l=(s=void 0===s?{}:s).popupClassName,u=s.popupStyle,c=s.popupMotion,d=void 0===c?{}:c,p=s.popupRender,f=t.onClick,h=e.useRef();e.useImperativeHandle(n,(function(){return{forceAlign:function(){},getElement:function(){return h.current}}}));var m=dw({zIndex:i},u),v=a;return e.Children.count(a)>1&&(v=e.createElement("div",{className:"".concat(r,"-content")},a)),p&&(v=p(v)),e.createElement(uD,M({visible:o,ref:h,removeOnLeave:!0},d),(function(t,n){var o=t.className,i=t.style,a=Rw(r,l,o);return e.createElement("div",{ref:n,className:a,onClick:f,style:dw(dw({},i),m)},v)}))}));_A.displayName="MobilePopupInner";var LA=["visible","mobile"],$A=e.forwardRef((function(t,n){var r=t.visible,o=t.mobile,i=pw(t,LA),a=$w(s(r),2),u=a[0],c=a[1],d=$w(s(!1),2),p=d[0],f=d[1],h=dw(dw({},i),{},{visible:u});l((function(){c(r),r&&o&&f(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}())}),[r,o]);var m=p?e.createElement(_A,M({},h,{mobile:o,ref:n})):e.createElement(IA,M({},h,{ref:n}));return e.createElement("div",null,e.createElement(yD,h),m)}));$A.displayName="Popup";var VA=e.createContext(null);function zA(){}function WA(){return""}function UA(e){return e?e.ownerDocument:window.document}var HA=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var qA=function(t){var n=function(n){vw(o,e.Component);var r=xw(o);function o(t){var n,i;return fw(this,o),(n=r.call(this,t)).popupRef=e.createRef(),n.triggerRef=e.createRef(),n.portalContainer=void 0,n.attachId=void 0,n.clickOutsideHandler=void 0,n.touchOutsideHandler=void 0,n.contextMenuOutsideHandler1=void 0,n.contextMenuOutsideHandler2=void 0,n.mouseDownTimeout=void 0,n.focusTime=void 0,n.preClickTime=void 0,n.preTouchTime=void 0,n.delayTimer=void 0,n.hasPopupMouseDown=void 0,n.onMouseEnter=function(e){var t=n.props.mouseEnterDelay;n.fireEvents("onMouseEnter",e),n.delaySetPopupVisible(!0,t,t?null:e)},n.onMouseMove=function(e){n.fireEvents("onMouseMove",e),n.setPoint(e)},n.onMouseLeave=function(e){n.fireEvents("onMouseLeave",e),n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)},n.onPopupMouseEnter=function(){n.clearDelayTimer()},n.onPopupMouseLeave=function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&Ow(null===(t=n.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)},n.onFocus=function(e){n.fireEvents("onFocus",e),n.clearDelayTimer(),n.isFocusToShow()&&(n.focusTime=Date.now(),n.delaySetPopupVisible(!0,n.props.focusDelay))},n.onMouseDown=function(e){n.fireEvents("onMouseDown",e),n.preClickTime=Date.now()},n.onTouchStart=function(e){n.fireEvents("onTouchStart",e),n.preTouchTime=Date.now()},n.onBlur=function(e){n.fireEvents("onBlur",e),n.clearDelayTimer(),n.isBlurToHide()&&n.delaySetPopupVisible(!1,n.props.blurDelay)},n.onContextMenu=function(e){e.preventDefault(),n.fireEvents("onContextMenu",e),n.setPopupVisible(!0,e)},n.onContextMenuClose=function(){n.isContextMenuToShow()&&n.close()},n.onClick=function(e){if(n.fireEvents("onClick",e),n.focusTime){var t;if(n.preClickTime&&n.preTouchTime?t=Math.min(n.preClickTime,n.preTouchTime):n.preClickTime?t=n.preClickTime:n.preTouchTime&&(t=n.preTouchTime),Math.abs(t-n.focusTime)<20)return;n.focusTime=0}n.preClickTime=0,n.preTouchTime=0,n.isClickToShow()&&(n.isClickToHide()||n.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var r=!n.state.popupVisible;(n.isClickToHide()&&!r||r&&n.isClickToShow())&&n.setPopupVisible(!n.state.popupVisible,e)},n.onPopupMouseDown=function(){var e;(n.hasPopupMouseDown=!0,clearTimeout(n.mouseDownTimeout),n.mouseDownTimeout=window.setTimeout((function(){n.hasPopupMouseDown=!1}),0),n.context)&&(e=n.context).onPopupMouseDown.apply(e,arguments)},n.onDocumentClick=function(e){if(!n.props.mask||n.props.maskClosable){var t=e.target,r=n.getRootDomNode(),o=n.getPopupDomNode();Ow(r,t)&&!n.isContextMenuOnly()||Ow(o,t)||n.hasPopupMouseDown||n.close()}},n.getRootDomNode=function(){var e=n.props.getTriggerDOMNode;if(e)return e(n.triggerRef.current);try{var t=Aw(n.triggerRef.current);if(t)return t}catch(e){}return D.findDOMNode(xs(n))},n.getPopupClassNameFromAlign=function(e){var t=[],r=n.props,o=r.popupPlacement,i=r.builtinPlacements,a=r.prefixCls,s=r.alignPoint,l=r.getPopupClassNameFromAlign;return o&&i&&t.push(function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s=i[a];if(Iw(e[s].points,o,r))return"".concat(t,"-placement-").concat(s)}return""}(i,a,e,s)),l&&t.push(l(e)),t.join(" ")},n.getComponent=function(){var t=n.props,r=t.prefixCls,o=t.destroyPopupOnHide,i=t.popupClassName,a=t.onPopupAlign,s=t.popupMotion,l=t.popupAnimation,u=t.popupTransitionName,c=t.popupStyle,d=t.mask,p=t.maskAnimation,f=t.maskTransitionName,h=t.maskMotion,m=t.zIndex,v=t.popup,g=t.stretch,y=t.alignPoint,b=t.mobile,x=t.forceRender,C=t.onPopupClick,w=n.state,D=w.popupVisible,E=w.point,k=n.getPopupAlign(),S={};return n.isMouseEnterToShow()&&(S.onMouseEnter=n.onPopupMouseEnter),n.isMouseLeaveToHide()&&(S.onMouseLeave=n.onPopupMouseLeave),S.onMouseDown=n.onPopupMouseDown,S.onTouchStart=n.onPopupMouseDown,e.createElement($A,M({prefixCls:r,destroyPopupOnHide:o,visible:D,point:y&&E,className:i,align:k,onAlign:a,animation:l,getClassNameFromAlign:n.getPopupClassNameFromAlign},S,{stretch:g,getRootDomNode:n.getRootDomNode,style:c,mask:d,zIndex:m,transitionName:u,maskAnimation:p,maskTransitionName:f,maskMotion:h,ref:n.popupRef,motion:s,mobile:b,forceRender:x,onClick:C}),"function"==typeof v?v():v)},n.attachParent=function(e){Sw.cancel(n.attachId);var t,r=n.props,o=r.getPopupContainer,i=r.getDocument,a=n.getRootDomNode();o?(a||0===o.length)&&(t=o(a)):t=i(n.getRootDomNode()).body,t?t.appendChild(e):n.attachId=Sw((function(){n.attachParent(e)}))},n.getContainer=function(){if(!n.portalContainer){var e=(0,n.props.getDocument)(n.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",n.portalContainer=e}return n.attachParent(n.portalContainer),n.portalContainer},n.setPoint=function(e){n.props.alignPoint&&e&&n.setState({point:{pageX:e.pageX,pageY:e.pageY}})},n.handlePortalUpdate=function(){n.state.prevPopupVisible!==n.state.popupVisible&&n.props.afterPopupVisibleChange(n.state.popupVisible)},n.triggerContextValue={onPopupMouseDown:n.onPopupMouseDown},i="popupVisible"in t?!!t.popupVisible:!!t.defaultPopupVisible,n.state={prevPopupVisible:i,popupVisible:i},HA.forEach((function(e){n["fire".concat(e)]=function(t){n.fireEvents(e,t)}})),n}return mw(o,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Pw(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Pw(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Pw(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Pw(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Sw.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?function(e,t,n){return dw(dw({},e[t]||{}),n)}(r,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,i),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var n=this.state.popupVisible,r=this.props,o=r.children,i=r.forceRender,a=r.alignPoint,s=r.className,l=r.autoDestroy,u=e.Children.only(o),c={key:"trigger"};this.isContextMenuToShow()?c.onContextMenu=this.onContextMenu:c.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(c.onClick=this.onClick,c.onMouseDown=this.onMouseDown,c.onTouchStart=this.onTouchStart):(c.onClick=this.createTwoChains("onClick"),c.onMouseDown=this.createTwoChains("onMouseDown"),c.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(c.onMouseEnter=this.onMouseEnter,a&&(c.onMouseMove=this.onMouseMove)):c.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?c.onMouseLeave=this.onMouseLeave:c.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(c.onFocus=this.onFocus,c.onBlur=this.onBlur):(c.onFocus=this.createTwoChains("onFocus"),c.onBlur=this.createTwoChains("onBlur"));var d=Rw(u&&u.props&&u.props.className,s);d&&(c.className=d);var p=dw({},c);Fw(u)&&(p.ref=Tw(this.triggerRef,u.ref));var f,h=e.cloneElement(u,p);return(n||this.popupRef.current||i)&&(f=e.createElement(t,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!n&&l&&(f=null),e.createElement(VA.Provider,{value:this.triggerContextValue},h,f)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),o}();return n.contextType=VA,n.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:WA,getDocument:UA,onPopupVisibleChange:zA,afterPopupVisibleChange:zA,onPopupAlign:zA,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},n}(Nw),KA={adjustX:1,adjustY:1},XA=[0,0],GA={left:{points:["cr","cl"],overflow:KA,offset:[-4,0],targetOffset:XA},right:{points:["cl","cr"],overflow:KA,offset:[4,0],targetOffset:XA},top:{points:["bc","tc"],overflow:KA,offset:[0,-4],targetOffset:XA},bottom:{points:["tc","bc"],overflow:KA,offset:[0,4],targetOffset:XA},topLeft:{points:["bl","tl"],overflow:KA,offset:[0,-4],targetOffset:XA},leftTop:{points:["tr","tl"],overflow:KA,offset:[-4,0],targetOffset:XA},topRight:{points:["br","tr"],overflow:KA,offset:[0,-4],targetOffset:XA},rightTop:{points:["tl","tr"],overflow:KA,offset:[4,0],targetOffset:XA},bottomRight:{points:["tr","br"],overflow:KA,offset:[0,4],targetOffset:XA},rightBottom:{points:["bl","br"],overflow:KA,offset:[4,0],targetOffset:XA},bottomLeft:{points:["tl","bl"],overflow:KA,offset:[0,4],targetOffset:XA},leftBottom:{points:["br","bl"],overflow:KA,offset:[-4,0],targetOffset:XA}};function YA(t){var n=t.showArrow,r=t.arrowContent,o=t.children,i=t.prefixCls,a=t.id,s=t.overlayInnerStyle,l=t.className,u=t.style;return e.createElement("div",{className:Rw("".concat(i,"-content"),l),style:u},!1!==n&&e.createElement("div",{className:"".concat(i,"-arrow"),key:"arrow"},r),e.createElement("div",{className:"".concat(i,"-inner"),id:a,role:"tooltip",style:s},"function"==typeof o?o():o))}var ZA,JA,QA,eB=n((function(t,n){var r=t.overlayClassName,o=t.trigger,i=void 0===o?["hover"]:o,a=t.mouseEnterDelay,s=void 0===a?0:a,l=t.mouseLeaveDelay,u=void 0===l?.1:l,c=t.overlayStyle,p=t.prefixCls,f=void 0===p?"rc-tooltip":p,h=t.children,m=t.onVisibleChange,g=t.afterVisibleChange,y=t.transitionName,b=t.animation,x=t.motion,C=t.placement,w=void 0===C?"right":C,D=t.align,E=void 0===D?{}:D,k=t.destroyTooltipOnHide,S=void 0!==k&&k,O=t.defaultVisible,A=t.getTooltipContainer,B=t.overlayInnerStyle,T=t.arrowContent,F=t.overlay,P=t.id,N=t.showArrow,j=pw(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),R=d(null);v(n,(function(){return R.current}));var I=dw({},j);"visible"in t&&(I.popupVisible=t.visible);var _=!1,L=!1;if("boolean"==typeof S)_=S;else if(S&&"object"===sw(S)){var $=S.keepParent;_=!0===$,L=!1===$}return e.createElement(qA,M({popupClassName:r,prefixCls:f,popup:function(){return e.createElement(YA,{showArrow:N,arrowContent:T,key:"content",prefixCls:f,id:P,overlayInnerStyle:B},F)},action:i,builtinPlacements:GA,popupPlacement:w,ref:R,popupAlign:E,getPopupContainer:A,onPopupVisibleChange:m,afterPopupVisibleChange:g,popupTransitionName:y,popupAnimation:b,popupMotion:x,defaultPopupVisible:O,destroyPopupOnHide:_,autoDestroy:L,mouseLeaveDelay:u,popupStyle:c,mouseEnterDelay:s},I),h)})),tB=et.div(JA||(JA=P(["\n ",";\n"],["\n ",";\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes,o=t.fonts,i=e.$styles;return qe(ZA||(ZA=P(["\n .rc-tooltip {\n &-arrow {\n display: none;\n }\n &-inner {\n min-height: unset;\n padding: ","px;\n background-color: ",";\n color: ",";\n border-radius: ","px;\n ",";\n ",";\n }\n }\n "],["\n .rc-tooltip {\n &-arrow {\n display: none;\n }\n &-inner {\n min-height: unset;\n padding: ","px;\n background-color: ",";\n color: ",";\n border-radius: ","px;\n ",";\n ",";\n }\n }\n "])),r.S,n.indigo,n.white,r.S,o.S,i)})),nB=function(e){var t=e.trigger,n=void 0===t?"hover":t,r=e.placement,o=void 0===r?"top":r,i=e.styles,a=A(e,["trigger","placement","styles"]),s=d(null);return it(tB,O({ref:s,$styles:i},{children:it(eB,O({},a,{getTooltipContainer:function(){return s.current},trigger:n,placement:o}))}))},rB=dw({},w),oB=rB.version,iB=rB.render,aB=rB.unmountComponentAtNode;try{Number((oB||"").split(".")[0])>=18&&(QA=rB.createRoot)}catch(Rg){}function sB(e){var t=rB.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===sw(t)&&(t.usingClientEntryPoint=e)}var lB="__rc_react_root__";function uB(e,t){QA?function(e,t){sB(!0);var n=t[lB]||QA(t);sB(!1),n.render(e),t[lB]=n}(e,t):function(e,t){iB(e,t)}(e,t)}function cB(e){return dB.apply(this,arguments)}function dB(){return(dB=jA(MA().mark((function e(t){return MA().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[lB])||void 0===e||e.unmount(),delete t[lB]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function pB(e){aB(e)}function fB(){return(fB=jA(MA().mark((function e(t){return MA().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===QA){e.next=2;break}return e.abrupt("return",cB(t));case 2:pB(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var hB=function(t){vw(r,c);var n=xw(r);function r(){var e;fw(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return(e=n.call.apply(n,[this].concat(o))).closeTimer=null,e.close=function(t){t&&t.stopPropagation(),e.clearCloseTimer();var n=e.props,r=n.onClose,o=n.noticeKey;r&&r(o)},e.startCloseTimer=function(){e.props.duration&&(e.closeTimer=window.setTimeout((function(){e.close()}),1e3*e.props.duration))},e.clearCloseTimer=function(){e.closeTimer&&(clearTimeout(e.closeTimer),e.closeTimer=null)},e}return mw(r,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(e){(this.props.duration!==e.duration||this.props.updateMark!==e.updateMark||this.props.visible!==e.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var t=this,n=this.props,r=n.prefixCls,o=n.className,i=n.closable,a=n.closeIcon,s=n.style,l=n.onClick,u=n.children,c=n.holder,d="".concat(r,"-notice"),p=Object.keys(this.props).reduce((function(e,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(e[n]=t.props[n]),e}),{}),f=e.createElement("div",M({className:Rw(d,o,uw({},"".concat(d,"-closable"),i)),style:s,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:l},p),e.createElement("div",{className:"".concat(d,"-content")},u),i?e.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(d,"-close")},a||e.createElement("span",{className:"".concat(d,"-close-x")})):null);return c?D.createPortal(f,c):f}}]),r}();function mB(e){return function(e){if(Array.isArray(e))return _w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Lw(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.")}()}hB.defaultProps={onClose:function(){},duration:1.5};var vB=["getContainer"],gB=0,yB=Date.now();function bB(){var e=gB;return gB+=1,"rcNotification_".concat(yB,"_").concat(e)}var xB=function(t){vw(r,c);var n=xw(r);function r(){var e;fw(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return(e=n.call.apply(n,[this].concat(o))).state={notices:[]},e.hookRefs=new Map,e.add=function(t,n){var r=t.key||bB(),o=dw(dw({},t),{},{key:r}),i=e.props.maxCount;e.setState((function(e){var t=e.notices,a=t.map((function(e){return e.notice.key})).indexOf(r),s=t.concat();return-1!==a?s.splice(a,1,{notice:o,holderCallback:n}):(i&&t.length>=i&&(o.key=s[0].notice.key,o.updateMark=bB(),o.userPassKey=r,s.shift()),s.push({notice:o,holderCallback:n})),{notices:s}}))},e.remove=function(t){e.setState((function(e){return{notices:e.notices.filter((function(e){var n=e.notice,r=n.key;return(n.userPassKey||r)!==t}))}}))},e.noticePropsMap={},e}return mw(r,[{key:"getTransitionName",value:function(){var e=this.props,t=e.prefixCls,n=e.animation,r=this.props.transitionName;return!r&&n&&(r="".concat(t,"-").concat(n)),r}},{key:"render",value:function(){var t=this,n=this.state.notices,r=this.props,o=r.prefixCls,i=r.className,a=r.closeIcon,s=r.style,l=[];return n.forEach((function(e,r){var i=e.notice,s=e.holderCallback,u=r===n.length-1?i.updateMark:void 0,c=i.key,d=i.userPassKey,p=dw(dw(dw({prefixCls:o,closeIcon:a},i),i.props),{},{key:c,noticeKey:d||c,updateMark:u,onClose:function(e){var n;t.remove(e),null===(n=i.onClose)||void 0===n||n.call(i)},onClick:i.onClick,children:i.content});l.push(c),t.noticePropsMap[c]={props:p,holderCallback:s}})),e.createElement("div",{className:Rw(o,i),style:s},e.createElement(vD,{keys:l,motionName:this.getTransitionName(),onVisibleChanged:function(e,n){var r=n.key;e||delete t.noticePropsMap[r]}},(function(n){var r=n.key,i=n.className,a=n.style,s=n.visible,l=t.noticePropsMap[r],u=l.props,c=l.holderCallback;return c?e.createElement("div",{key:r,className:Rw(i,"".concat(o,"-hook-holder")),style:dw({},a),ref:function(e){void 0!==r&&(e?(t.hookRefs.set(r,e),c(e,u)):t.hookRefs.delete(r))}}):e.createElement(hB,M({},u,{className:Rw(i,null==u?void 0:u.className),style:dw(dw({},a),null==u?void 0:u.style),visible:s}))})))}}]),r}();xB.newInstance=void 0,xB.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},xB.newInstance=function(t,n){var r=t||{},o=r.getContainer,i=pw(r,vB),a=document.createElement("div");o?o().appendChild(a):document.body.appendChild(a);var s=!1;function l(t){s||(s=!0,n({notice:function(e){t.add(e)},removeNotice:function(e){t.remove(e)},component:t,destroy:function(){!function(e){fB.apply(this,arguments)}(a),a.parentNode&&a.parentNode.removeChild(a)},useNotification:function(){return n=t,r=e.useRef({}),o=$w(e.useState([]),2),i=o[0],a=o[1],[function(t){var o=!0;n.add(t,(function(t,n){var i=n.key;if(t&&(!r.current[i]||o)){var s=e.createElement(hB,M({},n,{holder:t}));r.current[i]=s,a((function(e){var t=e.findIndex((function(e){return e.key===n.key}));if(-1===t)return[].concat(mB(e),[s]);var r=mB(e);return r[t]=s,r}))}o=!1}))},e.createElement(e.Fragment,null,i)];var n,r,o,i,a}}))}"test"===process.env.NODE_ENV&&t.TEST_RENDER?t.TEST_RENDER(e.createElement(xB,M({},i,{ref:l}))):uB(e.createElement(xB,M({},i,{ref:l})),a)};var CB,wB,DB,EB=dt.colors,kB=dt.fonts,SB=dt.sizes,OB=et.span(CB||(CB=P(["\n color: ",";\n ",";\n"],["\n color: ",";\n ",";\n"])),(function(e){return e.textColor}),kB.L),AB=et.div(wB||(wB=P(["\n display: flex;\n height: ","px;\n column-gap: ","px;\n align-items: center;\n padding-right: ","px;\n"],["\n display: flex;\n height: ","px;\n column-gap: ","px;\n align-items: center;\n padding-right: ","px;\n"])),SB.XL,SB.M,SB.XL),BB=et.div(DB||(DB=P(["\n ",";\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n"],["\n ",";\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n"])),st(SB.XL),(function(e){return e.backgroundColor})),TB=function(e){var t=e.type,n=e.message,r=function(e){switch(e){case"success":return{icon:"Check",backgroundColor:EB.green,textColor:EB.greenShade};case"error":return{icon:"Close",backgroundColor:EB.red,textColor:EB.redShade};case"warning":return{icon:"Warning",backgroundColor:EB.yellow,textColor:EB.yellowShade,iconColor:EB.yellowShade,iconSize:18};case"infoTierOne":return{icon:"Bell",backgroundColor:EB.blue,textColor:EB.blueShade,iconSize:18};case"infoTierTwo":return{icon:"Bell",backgroundColor:EB.gray2,textColor:ct(EB.gray2),iconSize:18};default:return{icon:"Bell",backgroundColor:EB.blue,textColor:EB.blueShade}}}(t),o=r.icon,i=r.iconColor,a=r.textColor,s=r.backgroundColor,l=r.iconSize;return at(AB,{children:[it(BB,O({backgroundColor:s},{children:it(ff,{size:l||32,name:o,color:i||EB.white})})),it(OB,O({textColor:a},{children:n}))]})},FB=null;xB.newInstance({maxCount:2},(function(e){return FB=e}));var PB,MB,NB,jB,RB,IB,_B,LB,$B,VB,zB,WB,UB,HB,qB,KB,XB,GB,YB,ZB,JB,QB,eT,tT,nT,rT,oT,iT,aT,sT,lT,uT,cT,dT,pT,fT,hT,mT,vT,gT,yT,bT,xT,CT,wT,DT,ET,kT,ST,OT,AT,BT,TT,FT,PT,MT,NT,jT,RT,IT,_T,LT,$T=function(e){var t=e.message,n=e.type,r=void 0===n?"success":n,o=e.duration,i=void 0===o?2.5:o;return null==FB?void 0:FB.notice({content:it(TB,{message:t,type:r}),className:"toast-".concat(r),closable:!0,closeIcon:it(ff,{name:"Close"}),duration:i})},VT=function(e){var t=e.onClick,n=e.disabled,r=e.buttonOptions,o=e.selectedButtonId,i=e.error,a=(null==r?void 0:r.slice(0,2))||[];return it(zT,O({error:i,disabled:n},{children:a.map((function(e){var n=e.value,r=e.id;return it(WT,O({isActive:r===o,onClick:function(){return t(r)}},{children:n}),r)}))}))},zT=et.div(MB||(MB=P(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-width: 0.2px;\n border-style: solid;\n padding: 1px;\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-width: 0.2px;\n border-style: solid;\n padding: 1px;\n ","\n"])),(function(e){var t=e.disabled,n=e.error,r="transparent",o=dt.colors.gray4;return t?o=dt.colors.gray5:r=n?dt.colors.red:dt.colors.gray4,qe(PB||(PB=P(["\n height: ","px;\n border-radius: ","px;\n border-color: ",";\n background-color: ",";\n "],["\n height: ","px;\n border-radius: ","px;\n border-color: ",";\n background-color: ",";\n "])),dt.sizes.XL,dt.sizes.XS,r,o)})),WT=et(rt)(jB||(jB=P(["\n display: flex;\n text-align: center;\n align-items: center;\n justify-content: center;\n padding: 10px;\n height: 100%;\n width: 50%;\n ","\n"],["\n display: flex;\n text-align: center;\n align-items: center;\n justify-content: center;\n padding: 10px;\n height: 100%;\n width: 50%;\n ","\n"])),(function(e){var t=e.isActive,n=t?dt.colors.white:"transparent";return qe(NB||(NB=P(["\n background-color: ",";\n border-radius: ","px;\n box-shadow: ",";\n transition: background-color 0.4s ease-out;\n "],["\n background-color: ",";\n border-radius: ","px;\n box-shadow: ",";\n transition: background-color 0.4s ease-out;\n "])),n,dt.sizes.XS,t?"0 0 5px rgba(0, 0, 0, 0.15)":"none")})),UT=function(e){var t=e.size,n=void 0===t?"XL":t,r=e.withShadow,o=e.label,i=e.backgroundColor,a=e.onPress,s=e.content,l=s.initials,u=s.iconName,c=s.imageUrl,d=e.textConfig,p=void 0===d?{}:d,f=p.color,h=void 0===f?"white":f,m=p.font,v=void 0===m?"L":m,g="number"==typeof n?n:dt.sizes[n],y=l?it(XT,O({variant:v,color:h,avatarSize:g},{children:l})):u?it(ff,{name:u,color:"white",size:g/1.5}):c?it(GT,{avatarSize:g,src:c}):null;return at(HT,{children:[it(KT,O({clickable:!!a,onClick:a,withShadow:r,backgroundColor:c?"white":i,avatarSize:g},{children:y})),!!o&&it(qT,O({variant:"L"},{children:o}))]})},HT=et.div(RB||(RB=P(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n"],["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n"]))),qT=et(wC)(IB||(IB=P(["\n margin-left: 14px;\n color: ",";\n"],["\n margin-left: 14px;\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),KT=et.div(VB||(VB=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes,o=e.avatarSize,i=e.withShadow,a=e.backgroundColor,s=e.clickable;return qe($B||($B=P(["\n display: flex;\n justify-content: center;\n overflow: hidden;\n align-items: center;\n transition: 0.1s;\n background-color: ",";\n color: ",";\n border: ","px solid ",";\n border-radius: ","px;\n ",";\n ","\n ","\n "],["\n display: flex;\n justify-content: center;\n overflow: hidden;\n align-items: center;\n transition: 0.1s;\n background-color: ",";\n color: ",";\n border: ","px solid ",";\n border-radius: ","px;\n ",";\n ","\n ","\n "])),n[a||"indigoTint2"],n.white,Math.round(o/r["2XL"]),n.white,o/2,st(o),i&&qe(_B||(_B=P(["\n filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));\n "],["\n filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));\n "]))),s&&qe(LB||(LB=P(["\n cursor: pointer;\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n "],["\n cursor: pointer;\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n "])),ut(n[a||"indigoTint2"]),n[a||"indigoTint2"]))})),XT=et(wC)(WB||(WB=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.avatarSize;return qe(zB||(zB=P(["\n user-select: none;\n font-size: ","px;\n "],["\n user-select: none;\n font-size: ","px;\n "])),t/2)})),GT=et(ew)(HB||(HB=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.avatarSize;return qe(UB||(UB=P(["\n ",";\n object-fit: cover;\n transition: 0.1s;\n\n &:hover {\n opacity: 0.7;\n }\n &:active {\n opacity: 1;\n }\n "],["\n ",";\n object-fit: cover;\n transition: 0.1s;\n\n &:hover {\n opacity: 0.7;\n }\n &:active {\n opacity: 1;\n }\n "])),st(t))})),YT=et.div(qB||(qB=P(["\n padding: 0\n ","px;\n"],["\n padding: 0\n ","px;\n"])),(function(e){var t=e.theme,n=e.padding;return"number"==typeof n?n:t.sizes[n]})),ZT=et.div(KB||(KB=P(["\n padding: ","px\n 0;\n"],["\n padding: ","px\n 0;\n"])),(function(e){var t=e.theme,n=e.padding;return"number"==typeof n?n:t.sizes[n]})),JT=et.div(GB||(GB=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes,o=e.color,i=void 0===o?"gray4":o,a=e.type,s=void 0===a?"horizontal":a,l=e.weight,u=void 0===l?1:l,c=e.marginHorizontal,d=e.marginVertical;return qe(XB||(XB=P(["\n width: ",";\n height: ",";\n background-color: ",";\n margin: ","px\n ","px;\n "],["\n width: ",";\n height: ",";\n background-color: ",";\n margin: ","px\n ","px;\n "])),"vertical"===s?"".concat(u,"px"):"100%","horizontal"===s?"".concat(u,"px"):"100%",n[i]||i,"number"==typeof d?d:r[d]||0,"number"==typeof c?c:r[c]||0)})),QT=function(e){var t=e.isError,n=e.disabled,r=e.internalConfig||{},o=r.selectedRadioOptionBackgroundColor,i=void 0===o?"transparent":o,a=r.selectedRadioOptionIndicatorColor,s=void 0===a?"primary":a,l=r.styles,u=r.wrapperStyles,c=r.textPadding,d=r.buttonPadding,p=void 0===d?0:d,f=r.radioGroupWrapperStyles,h=r.buttonOptionSpacing,m=void 0===h?"XS":h,v=qe(ZB||(ZB=P(["\n ","\n\n ","\n "],["\n ","\n\n ","\n "])),c&&qe(YB||(YB=P(["\n padding: ","px;\n "],["\n padding: ","px;\n "])),c),l),g=qe(JB||(JB=P(["\n .Mui-checked {\n color: ",";\n svg:nth-child(1) {\n background-color: ",";\n }\n }\n ","\n "],["\n .Mui-checked {\n color: ",";\n svg:nth-child(1) {\n background-color: ",";\n }\n }\n ","\n "])),dt.colors[s]||s,dt.colors[i]||i,l),y=qe(QB||(QB=P(["\n padding: ","px;\n ","\n ","\n "],["\n padding: ","px;\n ","\n ","\n "])),p,l,u);return{textStyles:v,groupWrapperStyles:qe(eT||(eT=P(["\n gap: ","px;\n ","\n "],["\n gap: ","px;\n ","\n "])),dt.sizes[m],f),radioIconWrapperStyles:g,radioLabelWrapperStyles:y,textColor:t?"red":n?"gray3":"gray1"}},eF=et(gc)(nT||(nT=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme.colors,n=e.$isError,r=e.$styles;return qe(tT||(tT=P(["\n color: ",";\n ","\n "],["\n color: ",";\n ","\n "])),n?t.red:t.gray1,r)})),tF=et(ap)(sT||(sT=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme.colors,n=e.$disabled,r=e.$isError,o=e.$styles,i=e.$isEditMode;return qe(aT||(aT=P(["\n color: ",";\n cursor: ",";\n\n & .MuiSvgIcon-root {\n font-size: 16px;\n }\n\n &:hover {\n color: ",";\n ","\n }\n\n &.Mui-checked {\n svg:nth-child(1) {\n color: ",";\n border-radius: 50%;\n }\n }\n ","\n\n ","\n \n ","\n "],["\n color: ",";\n cursor: ",";\n\n & .MuiSvgIcon-root {\n font-size: 16px;\n }\n\n &:hover {\n color: ",";\n ","\n }\n\n &.Mui-checked {\n svg:nth-child(1) {\n color: ",";\n border-radius: 50%;\n }\n }\n ","\n\n ","\n \n ","\n "])),t.gray3,i?"pointer":"default",i?t.gray2:t.gray3,!i&&qe(rT||(rT=P(["\n background-color: transparent;\n "],["\n background-color: transparent;\n "]))),t.gray3,n&&qe(oT||(oT=P(["\n & .MuiSvgIcon-root {\n color: ",";\n background-color: ",";\n border-radius: 50%;\n }\n "],["\n & .MuiSvgIcon-root {\n color: ",";\n background-color: ",";\n border-radius: 50%;\n }\n "])),t.gray4,t.gray4),r&&qe(iT||(iT=P(["\n color: ",";\n &.Mui-checked {\n color: ",";\n }\n "],["\n color: ",";\n &.Mui-checked {\n color: ",";\n }\n "])),t.red,t.red),o)})),nF=function(e){var t=e.option,n=e.isError,r=void 0!==n&&n,o=e.disabled,i=void 0!==o&&o,a=e.isEditMode,s=e.isRichText,l=void 0===s||s,u=e.internalConfig,c=QT({isError:r,disabled:i,internalConfig:u}),d=c.textStyles,p=c.radioIconWrapperStyles,f=c.radioLabelWrapperStyles,h=c.textColor,m=t.id,v=t.label;return it(ot,{children:it(eF,{value:m,$isError:r,$styles:f,label:l?it(bC,{extraTextProps:{behaveAs:i?"text":"button"},textStyles:d,color:h,value:v,font:"M"}):it(wC,O({styles:d,behaveAs:i?"text":"button",color:h,variant:"M"},{children:v})),control:it(tF,{disableRipple:!a,$disabled:i,$isError:r,$isEditMode:a,$styles:p})})})},rF=function(e){var t=e.ref,n=e.name,r=e.value,o=e.options,i=e.onBlur,a=e.onChange,s=e.isRow,l=void 0!==s&&s,u=e.isError,c=void 0!==u&&u,d=e.disabled,p=void 0!==d&&d,f=e.isEditMode,h=void 0===f||f,m=e.isRichText,v=void 0===m||m,g=e.internalConfig,y=QT({internalConfig:g}).groupWrapperStyles;return it(oF,O({ref:t,row:l,$isRow:l,name:n,value:r,onBlur:i,onChange:function(e){h&&(null==a||a(e.target.value))},$styles:y},{children:null==o?void 0:o.map((function(e){return it(nF,{option:e,isError:c,disabled:p,isRichText:v,isEditMode:h,internalConfig:g},e.id)}))}))},oF=et(up)(uT||(uT=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.$styles,n=e.$isRow;return qe(lT||(lT=P(["\n justify-content: ",";\n ",";\n "],["\n justify-content: ",";\n ",";\n "])),n?"space-between":"flex-start",t)})),iF={link:{fontColor:dt.colors.blueShade,backgroundColor:dt.colors.blueTint},message:{fontColor:dt.colors.yellowShade,backgroundColor:dt.colors.yellowTint}},aF=qe(cT||(cT=P(["\n text-decoration-line: none;\n"],["\n text-decoration-line: none;\n"]))),sF=function(e){var t=e.index,n=e.type;return it(lF,O({backgroundColor:iF[n].backgroundColor},{children:it(wC,O({styles:aF,variant:"M",color:iF[n].fontColor},{children:t}))}))},lF=et.span(pT||(pT=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme.sizes,n=e.backgroundColor;return qe(dT||(dT=P(["\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n "],["\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n "])),n,t.L,t.L)})),uF=et.span(fT||(fT=P(["\n display: inline-flex;\n gap: 2px;\n"],["\n display: inline-flex;\n gap: 2px;\n"]))),cF=function(e){var t=e.activeColor,n=e.inactiveColor,r=A(e,["activeColor","inactiveColor"]),o=(Re()||dt).colors;return it(dF,O({},r,{activeColor:o[t]||t,inactiveColor:o[n]||n}))},dF=et.span(mT||(mT=P(["\n display: block;\n width: 20px;\n height: 20px;\n margin: 5px;\n border-radius: 100%;\n background-clip: content-box;\n ","\n"],["\n display: block;\n width: 20px;\n height: 20px;\n margin: 5px;\n border-radius: 100%;\n background-clip: content-box;\n ","\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes,o=e.active,i=e.activeColor,a=e.inactiveColor;return qe(hT||(hT=P(["\n padding: ","px;\n border: ",";\n background-color: ",";\n box-shadow: ",";\n "],["\n padding: ","px;\n border: ",";\n background-color: ",";\n box-shadow: ",";\n "])),r.XS,o?"1px solid ".concat(i||n.white):"none",o?i||n.white:a||n.gray3,o?"inset 0 0 0 1px rgba(0, 0, 0, 0), inset 0 0 0 4px rgba(0, 0, 0, 0.05)":"unset")})),pF={ArrowRight:df,Bell:tf,Bookmark:zp,CaretDown:Wp,CaretLeft:Hp,CaretRight:qp,CaretUp:Up,Check:Kp,Close:Yp,Edit:af,Filter:Gp,Hide:Jp,Info:Xp,InfoBoxIcon:Qp,Mail:of,Menu:lf,Minus:ef,Mobile:rf,Play:uf,Save:sf,Search:cf,View:Zp,Warning:nf},fF=function(e){var t=e.name,n=e.color,r=e.onClick,o=e.disabled,i=e.activeOpacity,a=e.withoutOpacityEffect,s=A(e,["name","color","onClick","disabled","activeOpacity","withoutOpacityEffect"]),l=(Re()||dt).colors;return it(rt,O({onClick:r,disabled:o,activeOpacity:i,withoutOpacityEffect:a},{children:it(pF[t],O({},s,{color:l[n]||n}))}))},hF=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n="light");var r=dt.colors;return t&&e?r[e]||e:t?"dark"===n?r.gray2:r.gray4:"transparent"},mF=et(wC)(yT||(yT=P(["\n width: max-content;\n ","\n"],["\n width: max-content;\n ","\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes,o=t.fonts,i=e.tabTheme,a=e.textSize,s=e.defaultTabTextColor,l=void 0===s?"gray2":s,u=e.tabPadding,c=void 0===u?0:u,d=e.tabFont,p=void 0===d?"L":d,f=n[l]||l;return qe(gT||(gT=P(["\n color: ",";\n padding: ","px;\n ",";\n &:hover {\n color: ",";\n }\n "],["\n color: ",";\n padding: ","px;\n ",";\n &:hover {\n color: ",";\n }\n "])),f||("dark"===i?n.gray3:n.gray2),r[c]||c,a?qe(vT||(vT=P(["\n font-size: ","px;\n "],["\n font-size: ","px;\n "])),a):o[p],f||("dark"===i?n.white:n.gray1))})),vF=et.div(wT||(wT=P(["\n position: relative;\n display: flex;\n align-items: center;\n cursor: pointer;\n ",";\n"],["\n position: relative;\n display: flex;\n align-items: center;\n cursor: pointer;\n ",";\n"])),(function(e){var t=e.theme.colors,n=e.isActive,r=e.disabled,o=e.tabTheme,i=e.selectedTabTextColor,a=e.styles;if(r)return qe(bT||(bT=P(["\n pointer-events: none;\n "," {\n color: ",";\n }\n "],["\n pointer-events: none;\n "," {\n color: ",";\n }\n "])),mF,"dark"===o?t.gray2:t.gray3);if(n){var s=t[i]||i;return qe(xT||(xT=P(["\n "," {\n color: ",";\n }\n "],["\n "," {\n color: ",";\n }\n "])),mF,s||("dark"===o?t.white:t.gray1))}return qe(CT||(CT=P(["\n ","\n "],["\n ","\n "])),a)})),gF=et.div(ET||(ET=P(["\n transition: 0.25s;\n margin-left: 10px;\n width: 16px;\n height: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n svg {\n transform: scale(0.8);\n }\n ",";\n"],["\n transition: 0.25s;\n margin-left: 10px;\n width: 16px;\n height: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n svg {\n transform: scale(0.8);\n }\n ",";\n"])),(function(e){var t=e.isActive,n=e.disabled,r=e.tabTheme,o=e.defaultTabTextColor,i=void 0===o?"gray2":o;return qe(DT||(DT=P(["\n transform: ",";\n svg path {\n stroke: ",";\n }\n "],["\n transform: ",";\n svg path {\n stroke: ",";\n }\n "])),t?"rotate(180deg)":"rotate(0deg)",function(e,t,n){void 0===e&&(e="gray1"),void 0===t&&(t="light"),void 0===n&&(n=!1);var r=dt.colors;return"dark"===t?n?r.gray2:r.gray3:n?r.gray3:r[e]||e}(i,r,n))})),yF=function(e,t){return e&&t[e]?"".concat(t[e],"px"):e},bF=function(e){if(!e)return!1;var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},xF=function(e){var t=e.$selected,n=e.isConfigurationMode,r=e.theme.colors;return n?qe(AT||(AT=P(["\n margin: 3px;\n padding: 3px;\n cursor: pointer;\n outline: 1.5px dashed ",";\n transition: all 0.1s ease-in-out;\n\n ","\n "],["\n margin: 3px;\n padding: 3px;\n cursor: pointer;\n outline: 1.5px dashed ",";\n transition: all 0.1s ease-in-out;\n\n ","\n "])),r.gray4,t?qe(ST||(ST=P(["\n outline: 3px solid ",";\n "],["\n outline: 3px solid ",";\n "])),r.primary):qe(OT||(OT=P(["\n :hover:not(:has(#configurationWrapper *:hover)):not(:focus-visible) {\n outline: 3px dashed ",";\n }\n "],["\n :hover:not(:has(#configurationWrapper *:hover)):not(:focus-visible) {\n outline: 3px dashed ",";\n }\n "])),ct(r.gray4))):qe(kT||(kT=P([""],[""])))},CF=["slider","form"],wF=et.div(TT||(TT=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.type,n=void 0===t?"row":t,r=e.containerProps,o=e.metadata,i=e.theme,a=i.sizes,s=i.colors,l=r||{},u=l.border,c=void 0===u?"":u,d=l.alignItems,p=void 0===d?"stretch":d,f=l.position,h=void 0===f?"static":f,m=l.gap,v=void 0===m?0:m,g=l.cornerRadius,y=void 0===g?0:g,b=l.paddingTop,x=void 0===b?0:b,C=l.paddingBottom,w=void 0===C?0:C,D=l.paddingLeft,E=void 0===D?0:D,k=l.paddingRight,S=void 0===k?0:k,O=l.scrollBehaviour,A=l.styles,B=c.split(" "),T=B[0],F=B[1],M=B[2],N=void 0===M?s.gray3:M,j=s[N]||N,R=(null==o?void 0:o.repeater)&&(null==o?void 0:o.childrenAmount)&&(null==o?void 0:o.childrenAmount)>1?"space-between":"center",I=[x,w,E,S].some(Boolean)?function(e,t){return"string"==typeof e?t[e]?"".concat(t[e],"px"):e:["top","right","bottom","left"].map((function(n){return yF(e[n]||0,t)})).join(" ")}({top:x,bottom:w,left:E,right:S},a):"0px";return qe(BT||(BT=P(["\n display: flex;\n align-items: ",";\n flex-direction: ",";\n position: ",";\n gap: ","px;\n border: "," "," ",";\n border-radius: ","px;\n justify-content: ",";\n padding: ",";\n ",";\n ",";\n ",";\n "],["\n display: flex;\n align-items: ",";\n flex-direction: ",";\n position: ",";\n gap: ","px;\n border: "," "," ",";\n border-radius: ","px;\n justify-content: ",";\n padding: ",";\n ",";\n ",";\n ",";\n "])),p,"column"===n?"column":"row",h,v&&a[v],T,F,j,a[y]||y,R,I,function(e){return"vertical"===e?"overflow-y: scroll":"horizontal"===e?"overflow-x: scroll":"none"===e?"overflow: visible":"overflow: unset"}(CF.includes(n)?"none":O),A,xF)})),DF=function(e){var t=e.isRichText,n=void 0!==t&&t,r=e.variant,o=void 0===r?"base":r,i=e.text,a=void 0===i?"":i,s=e.seoTag,l=e.fontVariant,u=e.textColor,c=e.textSize,d=e.fontWeight,p=e.lineHeight,f=e.letterSpacing,h=e.styles,m=e.textAlign,v=e.htmlElementId,g=e.configurationItemInfo,y=A(e,["isRichText","variant","text","seoTag","fontVariant","textColor","textSize","fontWeight","lineHeight","letterSpacing","styles","textAlign","htmlElementId","configurationItemInfo"]),b=qe(FT||(FT=P(["\n ",";\n ",";\n ",";\n ",";\n ","\n "],["\n ",";\n ",";\n ",";\n ",";\n ","\n "])),c?"font-size: ".concat(c,"px;"):"",d?"font-weight: ".concat(d,";"):"",p?"line-height: ".concat(p,"px;"):"",f?"letter-spacing: ".concat(f,"px;"):"",h),x=O({variant:l,color:u,styles:"custom"===o?b:void 0,seoTag:s,textAlign:m,behaveAs:(null==g?void 0:g.isConfigurationMode)?"button":"text"},y),C=n?it(bC,{value:a,extraTextProps:x,htmlElementId:v}):it(wC,O({},x,{htmlElementId:v},{children:a}));return it(EF,O({id:"configurationWrapper"},g,{children:C}))},EF=et.div(PT||(PT=P(["\n ","\n"],["\n ","\n"])),xF),kF={OPTIONAL:{text:"Optional",color:"gray3"},REQUIRED:{text:"Required",color:"red"}},SF=function(e){var t=e.label,n=void 0===t?"":t,r=e.isTooltipVisible,o=e.isError,i=e.ruleLabel,a=e.tooltipText,s=e.labelInternalConfig,l=e.ruleLabelInternalConfig,u=e.tooltipInternalConfig,c=e.isRichText,d=void 0!==c&&c,p=Re().colors,f=s||{},h=f.color,m=f.fontSize,v=f.fontVariant,g=void 0===v?"S":v,y=f.fontWeight,b=f.padding,x=f.styles,C=f.wrapperStyles,w=qe(jT||(jT=P(["\n ",";\n ",";\n "],["\n ",";\n ",";\n "])),b?"padding: ".concat(b,";"):"",x),D=p[h]||h,E=l||{},k=E.fontSize,S=E.optionalTextColor,A=E.padding,B=E.requiredTextColor,T=E.styles,F=qe(RT||(RT=P(["\n ",";\n ",";\n "],["\n ",";\n ",";\n "])),A?"padding: ".concat(A,";"):"",T),M=i?kF[i]:void 0,N="OPTIONAL"===i?S:B,j=p[N]||N||M&&p[M.color],R=function(e){var t=e||{},n=t.backgroundColor,r=t.color,o=t.fontSize,i=t.fontVariant,a=t.fontWeight,s=t.padding,l=t.styles,u=t.wrapperStyles,c=t.iconColor,d=qe(MT||(MT=P(["\n ",";\n ",";\n "],["\n ",";\n ",";\n "])),(function(e){var t=e.theme,l=t.colors,u=t.fonts;return"\n ".concat(n?"background-color: ".concat(l[n]||n,";"):"",";\n ").concat(r?"color: ".concat(l[r]||r,";"):"",";\n ").concat(o?"font-size: ".concat(o,"px;"):"",";\n ").concat(i?u[i]:"",";\n ").concat(a?"font-weight: ".concat(a,";"):"",";\n ").concat(s?"padding: ".concat(s,";"):"",";\n ")}),l),p=qe(NT||(NT=P(["\n ",";\n ",";\n "],["\n ",";\n ",";\n "])),(function(e){var t=e.theme.colors;return"\n svg path {\n stroke: ".concat(t[c]||c,";\n }\n ")}),u);return{tooltipStyles:d,tooltipWrapperStyles:p}}(u),I=R.tooltipStyles,_=R.tooltipWrapperStyles;return at(OF,O({$styles:C},{children:[at(AF,O({$styles:w},{children:[it(DF,{fontVariant:g,textSize:m,fontWeight:y,textColor:o?p.red:D||p.gray2,text:n,variant:"custom",isRichText:d}),!!a&&it(nB,O({},r&&{visible:!0},{overlay:a,styles:I},{children:it(BF,O({$styles:_},{children:it(ff,{color:o?p.red:p.gray2,name:"Info"})}))}))]})),!!M&&it(DF,{fontVariant:"XS",textColor:j,textSize:k,text:M.text,styles:F,variant:"custom"})]}))},OF=et.div(IT||(IT=P(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n ",";\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n ",";\n"])),(function(e){return e.$styles})),AF=et.div(_T||(_T=P(["\n display: flex;\n align-items: center;\n ",";\n"],["\n display: flex;\n align-items: center;\n ",";\n"])),(function(e){return e.$styles})),BF=et.div(LT||(LT=P(["\n margin-left: 6px;\n display: flex;\n cursor: pointer;\n ",";\n"],["\n margin-left: 6px;\n display: flex;\n cursor: pointer;\n ",";\n"])),(function(e){return e.$styles})),TF=e=>"checkbox"===e.type,FF=e=>e instanceof Date,PF=e=>null==e;const MF=e=>"object"==typeof e;var NF=e=>!PF(e)&&!Array.isArray(e)&&MF(e)&&!FF(e),jF=e=>NF(e)&&e.target?TF(e.target)?e.target.checked:e.target.value:e,RF=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),IF=e=>Array.isArray(e)?e.filter(Boolean):[],_F=e=>void 0===e,LF=(e,t,n)=>{if(!t||!NF(e))return n;const r=IF(t.split(/[,[\].]+?/)).reduce(((e,t)=>PF(e)?e:e[t]),e);return _F(r)||r===e?_F(e[t])?n:e[t]:r};const $F="blur",VF="focusout",zF="change",WF="onBlur",UF="onChange",HF="onSubmit",qF="onTouched",KF="all",XF="max",GF="min",YF="maxLength",ZF="minLength",JF="pattern",QF="required",eP="validate",tP=t.createContext(null),nP=()=>t.useContext(tP),rP=e=>{const{children:n,...r}=e;return t.createElement(tP.Provider,{value:r},n)};var oP=(e,t,n,r=!0)=>{const o={};for(const i in e)Object.defineProperty(o,i,{get:()=>{const o=i;return t[o]!==KF&&(t[o]=!r||KF),n&&(n[o]=!0),e[o]}});return o},iP=e=>NF(e)&&!Object.keys(e).length,aP=(e,t,n)=>{const{name:r,...o}=e;return iP(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!n||KF)))},sP=e=>Array.isArray(e)?e:[e],lP=(e,t,n)=>n&&t?e===t:!e||!t||e===t||sP(e).some((e=>e&&(e.startsWith(t)||t.startsWith(e))));function uP(e){const n=t.useRef(e);n.current=e,t.useEffect((()=>{const t=!e.disabled&&n.current.subject.subscribe({next:n.current.callback});return()=>(e=>{e&&e.unsubscribe()})(t)}),[e.disabled])}var cP=e=>"string"==typeof e,dP=(e,t,n,r)=>{const o=Array.isArray(e);return cP(e)?(r&&t.watch.add(e),LF(n,e)):o?e.map((e=>(r&&t.watch.add(e),LF(n,e)))):(r&&(t.watchAll=!0),n)},pP=e=>"function"==typeof e,fP=e=>{for(const t in e)if(pP(e[t]))return!0;return!1};function hP(e){const n=nP(),{name:r,control:o=n.control,shouldUnregister:i}=e,a=RF(o._names.array,r),s=function(e){const n=nP(),{control:r=n.control,name:o,defaultValue:i,disabled:a,exact:s}=e||{},l=t.useRef(o);l.current=o;const u=t.useCallback((e=>{if(lP(l.current,e.name,s)){const t=dP(l.current,r._names,e.values||r._formValues);d(_F(l.current)||NF(t)&&!fP(t)?{...t}:Array.isArray(t)?[...t]:_F(t)?i:t)}}),[r,s,i]);uP({disabled:a,subject:r._subjects.watch,callback:u});const[c,d]=t.useState(_F(i)?r._getWatch(o):i);return t.useEffect((()=>{r._removeUnmounted()})),c}({control:o,name:r,defaultValue:LF(o._formValues,r,LF(o._defaultValues,r,e.defaultValue)),exact:!0}),l=function(e){const n=nP(),{control:r=n.control,disabled:o,name:i,exact:a}=e||{},[s,l]=t.useState(r._formState),u=t.useRef({isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=t.useRef(i),d=t.useRef(!0);return c.current=i,uP({disabled:o,callback:t.useCallback((e=>d.current&&lP(c.current,e.name,a)&&aP(e,u.current)&&l({...r._formState,...e})),[r,a]),subject:r._subjects.state}),t.useEffect((()=>(d.current=!0,()=>{d.current=!1})),[]),oP(s,r._proxyFormState,u.current,!1)}({control:o,name:r}),u=t.useRef(o.register(r,{...e.rules,value:s}));return t.useEffect((()=>{const e=(e,t)=>{const n=LF(o._fields,e);n&&(n._f.mount=t)};return e(r,!0),()=>{const t=o._options.shouldUnregister||i;(a?t&&!o._stateFlags.action:t)?o.unregister(r):e(r,!1)}}),[r,o,a,i]),{field:{name:r,value:s,onChange:t.useCallback((e=>{u.current.onChange({target:{value:jF(e),name:r},type:zF})}),[r]),onBlur:t.useCallback((()=>{u.current.onBlur({target:{value:LF(o._formValues,r),name:r},type:$F})}),[r,o]),ref:t.useCallback((e=>{const t=LF(o._fields,r);e&&t&&e.focus&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}),[r,o._fields])},formState:l,fieldState:Object.defineProperties({},{invalid:{get:()=>!!LF(l.errors,r)},isDirty:{get:()=>!!LF(l.dirtyFields,r)},isTouched:{get:()=>!!LF(l.touchedFields,r)},error:{get:()=>LF(l.errors,r)}})}}const mP=e=>e.render(hP(e));var vP=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},gP=e=>/^\w*$/.test(e),yP=e=>IF(e.replace(/["|']|\]/g,"").split(/\.|\[/));function bP(e,t,n){let r=-1;const o=gP(t)?[t]:yP(t),i=o.length,a=i-1;for(;++r<i;){const t=o[r];let i=n;if(r!==a){const n=e[t];i=NF(n)||Array.isArray(n)?n:isNaN(+o[r+1])?{}:[]}e[t]=i,e=e[t]}return e}const xP=(e,t,n)=>{for(const r of n||Object.keys(e)){const n=LF(e,r);if(n){const{_f:e,...r}=n;if(e&&t(e.name)){if(e.ref.focus&&_F(e.ref.focus()))break;if(e.refs){e.refs[0].focus();break}}else NF(r)&&xP(r,t)}}};var CP=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))))),wP=(e,t,n)=>{const r=IF(LF(e,n));return bP(r,"root",t[n]),bP(e,n,r),e},DP=e=>"boolean"==typeof e,EP=e=>"file"===e.type,kP=e=>cP(e)||t.isValidElement(e),SP=e=>"radio"===e.type,OP=e=>e instanceof RegExp;const AP={value:!1,isValid:!1},BP={value:!0,isValid:!0};var TP=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!_F(e[0].attributes.value)?_F(e[0].value)||""===e[0].value?BP:{value:e[0].value,isValid:!0}:BP:AP}return AP};const FP={isValid:!1,value:null};var PP=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),FP):FP;function MP(e,t,n="validate"){if(kP(e)||Array.isArray(e)&&e.every(kP)||DP(e)&&!e)return{type:n,message:kP(e)?e:"",ref:t}}var NP=e=>NF(e)&&!OP(e)?e:{value:e,message:""},jP=async(e,t,n,r,o)=>{const{ref:i,refs:a,required:s,maxLength:l,minLength:u,min:c,max:d,pattern:p,validate:f,name:h,valueAsNumber:m,mount:v,disabled:g}=e._f;if(!v||g)return{};const y=a?a[0]:i,b=e=>{r&&y.reportValidity&&(y.setCustomValidity(DP(e)?"":e||" "),y.reportValidity())},x={},C=SP(i),w=TF(i),D=C||w,E=(m||EP(i))&&!i.value||""===t||Array.isArray(t)&&!t.length,k=vP.bind(null,h,n,x),S=(e,t,n,r=YF,o=ZF)=>{const a=e?t:n;x[h]={type:e?r:o,message:a,ref:i,...k(e?r:o,a)}};if(o?!Array.isArray(t)||!t.length:s&&(!D&&(E||PF(t))||DP(t)&&!t||w&&!TP(a).isValid||C&&!PP(a).isValid)){const{value:e,message:t}=kP(s)?{value:!!s,message:s}:NP(s);if(e&&(x[h]={type:QF,message:t,ref:y,...k(QF,t)},!n))return b(t),x}if(!(E||PF(c)&&PF(d))){let e,r;const o=NP(d),a=NP(c);if(PF(t)||isNaN(t)){const n=i.valueAsDate||new Date(t);cP(o.value)&&(e=n>new Date(o.value)),cP(a.value)&&(r=n<new Date(a.value))}else{const n=i.valueAsNumber||+t;PF(o.value)||(e=n>o.value),PF(a.value)||(r=n<a.value)}if((e||r)&&(S(!!e,o.message,a.message,XF,GF),!n))return b(x[h].message),x}if((l||u)&&!E&&(cP(t)||o&&Array.isArray(t))){const e=NP(l),r=NP(u),o=!PF(e.value)&&t.length>e.value,i=!PF(r.value)&&t.length<r.value;if((o||i)&&(S(o,e.message,r.message),!n))return b(x[h].message),x}if(p&&!E&&cP(t)){const{value:e,message:r}=NP(p);if(OP(e)&&!t.match(e)&&(x[h]={type:JF,message:r,ref:i,...k(JF,r)},!n))return b(r),x}if(f)if(pP(f)){const e=MP(await f(t),y);if(e&&(x[h]={...e,...k(eP,e.message)},!n))return b(e.message),x}else if(NF(f)){let e={};for(const r in f){if(!iP(e)&&!n)break;const o=MP(await f[r](t),y,r);o&&(e={...o,...k(r,o.message)},b(o.message),n&&(x[h]=e))}if(!iP(e)&&(x[h]={ref:y,...e},!n))return x}return b(!0),x},RP="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function IP(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(RP&&(e instanceof Blob||e instanceof FileList)||!n&&!NF(e))return e;t=n?[]:{};for(const n in e){if(pP(e[n])){t=e;break}t[n]=IP(e[n])}}return t}var _P=e=>({isOnSubmit:!e||e===HF,isOnBlur:e===WF,isOnChange:e===UF,isOnAll:e===KF,isOnTouch:e===qF});function LP(e){for(const t in e)if(!_F(e[t]))return!1;return!0}function $P(e,t){const n=gP(t)?[t]:yP(t),r=1==n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=_F(e)?r++:e[t[r++]];return e}(e,n),o=n[n.length-1];let i;r&&delete r[o];for(let t=0;t<n.slice(0,-1).length;t++){let r,o=-1;const a=n.slice(0,-(t+1)),s=a.length-1;for(t>0&&(i=e);++o<a.length;){const t=a[o];r=r?r[t]:e[t],s===o&&(NF(r)&&iP(r)||Array.isArray(r)&&LP(r))&&(i?delete i[t]:delete e[t]),i=r}}return e}function VP(){let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}}var zP=e=>PF(e)||!MF(e);function WP(e,t){if(zP(e)||zP(t))return e===t;if(FF(e)&&FF(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const n=e[o];if(!r.includes(o))return!1;if("ref"!==o){const e=t[o];if(FF(n)&&FF(e)||NF(n)&&NF(e)||Array.isArray(n)&&Array.isArray(e)?!WP(n,e):n!==e)return!1}}return!0}var UP=e=>{const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},HP=e=>"select-multiple"===e.type,qP=e=>UP(e)&&e.isConnected;function KP(e,t={}){const n=Array.isArray(e);if(NF(e)||n)for(const n in e)Array.isArray(e[n])||NF(e[n])&&!fP(e[n])?(t[n]=Array.isArray(e[n])?[]:{},KP(e[n],t[n])):PF(e[n])||(t[n]=!0);return t}function XP(e,t,n){const r=Array.isArray(e);if(NF(e)||r)for(const r in e)Array.isArray(e[r])||NF(e[r])&&!fP(e[r])?_F(t)||zP(n[r])?n[r]=Array.isArray(e[r])?KP(e[r],[]):{...KP(e[r])}:XP(e[r],PF(t)?{}:t[r],n[r]):n[r]=!WP(e[r],t[r]);return n}var GP=(e,t)=>XP(e,t,KP(t)),YP=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>_F(e)?e:t?""===e||PF(e)?NaN:+e:n&&cP(e)?new Date(e):r?r(e):e;function ZP(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return EP(t)?t.files:SP(t)?PP(e.refs).value:HP(t)?[...t.selectedOptions].map((({value:e})=>e)):TF(t)?TP(e.refs).value:YP(_F(t.value)?e.ref.value:t.value,e)}var JP=e=>_F(e)?void 0:OP(e)?e.source:NF(e)?OP(e.value)?e.value.source:e.value:e;function QP(e,t,n){const r=LF(e,n);if(r||gP(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const r=o.join("."),i=LF(t,r),a=LF(e,r);if(i&&!Array.isArray(i)&&n!==r)return{name:n};if(a&&a.type)return{name:r,error:a};o.pop()}return{name:n}}const eM={mode:HF,reValidateMode:UF,shouldFocusError:!0};function tM(e={}){let t,n={...eM,...e},r={isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}},o={},i=IP(n.defaultValues)||{},a=n.shouldUnregister?{}:IP(i),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u=0,c={};const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={watch:VP(),array:VP(),state:VP()},f=_P(n.mode),h=_P(n.reValidateMode),m=n.criteriaMode===KF,v=async e=>{let t=!1;return d.isValid&&(t=n.resolver?iP((await x()).errors):await C(o,!0),e||t===r.isValid||(r.isValid=t,p.state.next({isValid:t}))),t},g=(e,t,n,r)=>{const l=LF(o,e);if(l){const o=LF(a,e,_F(n)?LF(i,e):n);_F(o)||r&&r.defaultChecked||t?bP(a,e,t?o:ZP(l._f)):E(e,o),s.mount&&v()}},y=(e,t,n,o,a)=>{let s=!1;const l={name:e},u=LF(r.touchedFields,e);if(d.isDirty){const e=r.isDirty;r.isDirty=l.isDirty=w(),s=e!==l.isDirty}if(d.dirtyFields&&(!n||o)){const n=LF(r.dirtyFields,e);WP(LF(i,e),t)?$P(r.dirtyFields,e):bP(r.dirtyFields,e,!0),l.dirtyFields=r.dirtyFields,s=s||n!==LF(r.dirtyFields,e)}return n&&!u&&(bP(r.touchedFields,e,n),l.touchedFields=r.touchedFields,s=s||d.touchedFields&&u!==n),s&&a&&p.state.next(l),s?l:{}},b=async(n,o,i,a)=>{const s=LF(r.errors,n),l=d.isValid&&r.isValid!==o;var f;if(e.delayError&&i?(f=()=>((e,t)=>{bP(r.errors,e,t),p.state.next({errors:r.errors})})(n,i),t=e=>{clearTimeout(u),u=window.setTimeout(f,e)},t(e.delayError)):(clearTimeout(u),t=null,i?bP(r.errors,n,i):$P(r.errors,n)),(i?!WP(s,i):s)||!iP(a)||l){const e={...a,...l?{isValid:o}:{},errors:r.errors,name:n};r={...r,...e},p.state.next(e)}c[n]--,d.isValidating&&!Object.values(c).some((e=>e))&&(p.state.next({isValidating:!1}),c={})},x=async e=>n.resolver?await n.resolver({...a},n.context,((e,t,n,r)=>{const o={};for(const n of e){const e=LF(t,n);e&&bP(o,n,e._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}})(e||l.mount,o,n.criteriaMode,n.shouldUseNativeValidation)):{},C=async(e,t,o={valid:!0})=>{for(const i in e){const s=e[i];if(s){const{_f:e,...i}=s;if(e){const i=l.array.has(e.name),u=await jP(s,LF(a,e.name),m,n.shouldUseNativeValidation,i);if(u[e.name]&&(o.valid=!1,t))break;!t&&(LF(u,e.name)?i?wP(r.errors,u,e.name):bP(r.errors,e.name,u[e.name]):$P(r.errors,e.name))}i&&await C(i,t,o)}}return o.valid},w=(e,t)=>(e&&t&&bP(a,e,t),!WP(B(),i)),D=(e,t,n)=>{const r={...s.mount?a:_F(t)?i:cP(e)?{[e]:t}:t};return dP(e,l,r,n)},E=(e,t,n={})=>{const r=LF(o,e);let i=t;if(r){const n=r._f;n&&(!n.disabled&&bP(a,e,YP(t,n)),i=RP&&UP(n.ref)&&PF(t)?"":t,HP(n.ref)?[...n.ref.options].forEach((e=>e.selected=i.includes(e.value))):n.refs?TF(n.ref)?n.refs.length>1?n.refs.forEach((e=>!e.disabled&&(e.checked=Array.isArray(i)?!!i.find((t=>t===e.value)):i===e.value))):n.refs[0]&&(n.refs[0].checked=!!i):n.refs.forEach((e=>e.checked=e.value===i)):EP(n.ref)?n.ref.value="":(n.ref.value=i,n.ref.type||p.watch.next({name:e})))}(n.shouldDirty||n.shouldTouch)&&y(e,i,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&A(e)},k=(e,t,n)=>{for(const r in t){const i=t[r],a=`${e}.${r}`,s=LF(o,a);!l.array.has(e)&&zP(i)&&(!s||s._f)||FF(i)?E(a,i,n):k(a,i,n)}},S=(e,t,n={})=>{const s=LF(o,e),u=l.array.has(e),c=IP(t);bP(a,e,c),u?(p.array.next({name:e,values:a}),(d.isDirty||d.dirtyFields)&&n.shouldDirty&&(r.dirtyFields=GP(i,a),p.state.next({name:e,dirtyFields:r.dirtyFields,isDirty:w(e,c)}))):!s||s._f||PF(c)?E(e,c,n):k(e,c,n),CP(e,l)&&p.state.next({}),p.watch.next({name:e})},O=async e=>{const i=e.target;let s=i.name;const u=LF(o,s);if(u){let g,C;const w=i.type?ZP(u._f):jF(e),D=e.type===$F||e.type===VF,E=!((d=u._f).mount&&(d.required||d.min||d.max||d.maxLength||d.minLength||d.pattern||d.validate)||n.resolver||LF(r.errors,s)||u._f.deps)||((e,t,n,r,o)=>!o.isOnAll&&(!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:!(n?r.isOnChange:o.isOnChange)||e))(D,LF(r.touchedFields,s),r.isSubmitted,h,f),k=CP(s,l,D);bP(a,s,w),D?(u._f.onBlur&&u._f.onBlur(e),t&&t(0)):u._f.onChange&&u._f.onChange(e);const S=y(s,w,D,!1),O=!iP(S)||k;if(!D&&p.watch.next({name:s,type:e.type}),E)return O&&p.state.next({name:s,...k?{}:S});if(!D&&k&&p.state.next({}),c[s]=(c[s],1),p.state.next({isValidating:!0}),n.resolver){const{errors:e}=await x([s]),t=QP(r.errors,o,s),n=QP(e,o,t.name||s);g=n.error,s=n.name,C=iP(e)}else g=(await jP(u,LF(a,s),m,n.shouldUseNativeValidation))[s],C=await v(!0);u._f.deps&&A(u._f.deps),b(s,C,g,S)}var d},A=async(e,t={})=>{let i,a;const s=sP(e);if(p.state.next({isValidating:!0}),n.resolver){const t=await(async e=>{const{errors:t}=await x();if(e)for(const n of e){const e=LF(t,n);e?bP(r.errors,n,e):$P(r.errors,n)}else r.errors=t;return t})(_F(e)?e:s);i=iP(t),a=e?!s.some((e=>LF(t,e))):i}else e?(a=(await Promise.all(s.map((async e=>{const t=LF(o,e);return await C(t&&t._f?{[e]:t}:t)})))).every(Boolean),(a||r.isValid)&&v()):a=i=await C(o);return p.state.next({...!cP(e)||d.isValid&&i!==r.isValid?{}:{name:e},...n.resolver?{isValid:i}:{},errors:r.errors,isValidating:!1}),t.shouldFocus&&!a&&xP(o,(e=>LF(r.errors,e)),e?s:l.mount),a},B=e=>{const t={...i,...s.mount?a:{}};return _F(e)?t:cP(e)?LF(t,e):e.map((e=>LF(t,e)))},T=(e,t)=>({invalid:!!LF((t||r).errors,e),isDirty:!!LF((t||r).dirtyFields,e),isTouched:!!LF((t||r).touchedFields,e),error:LF((t||r).errors,e)}),F=(e,t={})=>{for(const s of e?sP(e):l.mount)l.mount.delete(s),l.array.delete(s),LF(o,s)&&(t.keepValue||($P(o,s),$P(a,s)),!t.keepError&&$P(r.errors,s),!t.keepDirty&&$P(r.dirtyFields,s),!t.keepTouched&&$P(r.touchedFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&$P(i,s));p.watch.next({}),p.state.next({...r,...t.keepDirty?{isDirty:w()}:{}}),!t.keepIsValid&&v()},P=(e,t={})=>{let r=LF(o,e);const u=DP(t.disabled);return bP(o,e,{_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),r?u&&bP(a,e,t.disabled?void 0:LF(a,e,ZP(r._f))):g(e,!0,t.value),{...u?{disabled:t.disabled}:{},...n.shouldUseNativeValidation?{required:!!t.required,min:JP(t.min),max:JP(t.max),minLength:JP(t.minLength),maxLength:JP(t.maxLength),pattern:JP(t.pattern)}:{},name:e,onChange:O,onBlur:O,ref:a=>{if(a){P(e,t),r=LF(o,e);const n=_F(a.value)&&a.querySelectorAll&&a.querySelectorAll("input,select,textarea")[0]||a,s=(e=>SP(e)||TF(e))(n),l=r._f.refs||[];if(s?l.find((e=>e===n)):n===r._f.ref)return;bP(o,e,{_f:{...r._f,...s?{refs:[...l.filter(qP),n,...Array.isArray(LF(i,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),g(e,!1,void 0,n)}else r=LF(o,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!RF(l.array,e)||!s.action)&&l.unMount.add(e)}}};return{control:{register:P,unregister:F,getFieldState:T,_executeSchema:x,_getWatch:D,_getDirty:w,_updateValid:v,_removeUnmounted:()=>{for(const e of l.unMount){const t=LF(o,e);t&&(t._f.refs?t._f.refs.every((e=>!qP(e))):!qP(t._f.ref))&&F(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],n,l,u=!0,c=!0)=>{if(l&&n){if(s.action=!0,c&&Array.isArray(LF(o,e))){const t=n(LF(o,e),l.argA,l.argB);u&&bP(o,e,t)}if(d.errors&&c&&Array.isArray(LF(r.errors,e))){const t=n(LF(r.errors,e),l.argA,l.argB);u&&bP(r.errors,e,t),((e,t)=>{!IF(LF(e,t)).length&&$P(e,t)})(r.errors,e)}if(d.touchedFields&&c&&Array.isArray(LF(r.touchedFields,e))){const t=n(LF(r.touchedFields,e),l.argA,l.argB);u&&bP(r.touchedFields,e,t)}d.dirtyFields&&(r.dirtyFields=GP(i,a)),p.state.next({isDirty:w(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else bP(a,e,t)},_getFieldArray:t=>IF(LF(s.mount?a:i,t,e.shouldUnregister?LF(i,t,[]):[])),_subjects:p,_proxyFormState:d,get _fields(){return o},get _formValues(){return a},get _stateFlags(){return s},set _stateFlags(e){s=e},get _defaultValues(){return i},get _names(){return l},set _names(e){l=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:A,register:P,handleSubmit:(e,t)=>async i=>{i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let s=!0,u=IP(a);p.state.next({isSubmitting:!0});try{if(n.resolver){const{errors:e,values:t}=await x();r.errors=e,u=t}else await C(o);iP(r.errors)?(p.state.next({errors:{},isSubmitting:!0}),await e(u,i)):(t&&await t({...r.errors},i),n.shouldFocusError&&xP(o,(e=>LF(r.errors,e)),l.mount))}catch(e){throw s=!1,e}finally{r.isSubmitted=!0,p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:iP(r.errors)&&s,submitCount:r.submitCount+1,errors:r.errors})}},watch:(e,t)=>pP(e)?p.watch.subscribe({next:n=>e(D(void 0,t),n)}):D(e,t,!0),setValue:S,getValues:B,reset:(t,n={})=>{const u=t||i,c=IP(u),f=t&&!iP(t)?c:i;if(n.keepDefaultValues||(i=u),!n.keepValues){if(n.keepDirtyValues)for(const e of l.mount)LF(r.dirtyFields,e)?bP(f,e,LF(a,e)):S(e,LF(f,e));else{if(RP&&_F(t))for(const e of l.mount){const t=LF(o,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;try{if(UP(e)){e.closest("form").reset();break}}catch(e){}}}o={}}a=e.shouldUnregister?n.keepDefaultValues?IP(i):{}:c,p.array.next({values:f}),p.watch.next({values:f})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!d.isValid||!!n.keepIsValid,s.watch=!!e.shouldUnregister,p.state.next({submitCount:n.keepSubmitCount?r.submitCount:0,isDirty:n.keepDirty||n.keepDirtyValues?r.isDirty:!(!n.keepDefaultValues||WP(t,i)),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:n.keepDirty||n.keepDirtyValues?r.dirtyFields:n.keepDefaultValues&&t?GP(i,t):{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},resetField:(e,t={})=>{LF(o,e)&&(_F(t.defaultValue)?S(e,LF(i,e)):(S(e,t.defaultValue),bP(i,e,t.defaultValue)),t.keepTouched||$P(r.touchedFields,e),t.keepDirty||($P(r.dirtyFields,e),r.isDirty=t.defaultValue?w(e,LF(i,e)):w()),t.keepError||($P(r.errors,e),d.isValid&&v()),p.state.next({...r}))},clearErrors:e=>{e?sP(e).forEach((e=>$P(r.errors,e))):r.errors={},p.state.next({errors:r.errors})},unregister:F,setError:(e,t,n)=>{const i=(LF(o,e,{_f:{}})._f||{}).ref;bP(r.errors,e,{...t,ref:i}),p.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&i&&i.focus&&i.focus()},setFocus:(e,t={})=>{const n=LF(o,e)._f,r=n.refs?n.refs[0]:n.ref;r.focus(),t.shouldSelect&&r.select()},getFieldState:T}}var nM,rM,oM,iM,aM,sM,lM,uM,cM,dM,pM,fM,hM,mM,vM,gM,yM,bM=function(e,t){var n,r=nP(),o=e||{},i=o.criteriaList,a=void 0===i?[]:i,s=o.segmentationType;if(!a.length)return!0;var l=null!==(n=null==r?void 0:r.watch())&&void 0!==n?n:t,u=h(xM({criteriaList:a,data:l}),[a,l]);return"simple"!==s||(null==a?void 0:a.every((function(e){return u(e)})))},xM=function(e){var t=e.criteriaList,n=void 0===t?[]:t,r=e.data,o=void 0===r?{}:r,i=function(e){if(!e)return!0;if("condition"===e.type){var t=function(e,t,n){var r=t?e[t]:void 0;return"object"!=typeof r||null===r||Array.isArray(r)?r:n?r[n]:r}(o,null==e?void 0:e.dataFieldId,null==e?void 0:e.subtypeId);if(!t||!(null==t?void 0:t.length)||!e.dataValue)return!1;switch(e.operator){case"is":return Array.isArray(t)?t.includes(e.dataValue):t===e.dataValue;case"is_not":return Array.isArray(t)?!t.includes(e.dataValue):t!==e.dataValue;default:return!0}}else if("operator"===e.type){var r=n.find((function(t){return t.id===e.connectedTo})),a=n.find((function(t){return t.connectedTo===e.id}));if(r&&a)switch(e.operator){case"and":return i(a)&&i(r);case"or":return i(a)||i(r);case"not":return i(a)!==i(r);default:return!1}}return!1};return i},CM=function(e,t){if(!t||!e||"number"==typeof e||"object"==typeof e)return e;var n=e.split("-"),r=n[0],o=n[1],i=n[2];switch(t){case"year_month_day_date":return"".concat(r,"/").concat(o,"/").concat(i);case"month_day_year_date":return"".concat(o,"/").concat(i,"/").concat(r);case"day_month_year_date":return"".concat(i,"/").concat(o,"/").concat(r);case"month_year_date":return"".concat(o,"/").concat(r);default:return e}},wM=function(e){var t=e.setFormData,n=e.defaultValue,r=e.dataModelField,o=wf().stateConfig;l((function(){if(r&&o){var e=null==r?void 0:r.dataModelFieldId,i=null==r?void 0:r.entitySubtypeId,a=null==r?void 0:r.format.value,s=o[e];null==t||t((function(t){var r,o,l,u,c=O({},t);if(i){var d=null!==(l=CM(null===(o=null==s?void 0:s[i])||void 0===o?void 0:o.value,a))&&void 0!==l?l:n;c[e]=O(O({},c[e]||{}),((r={})[i]={value:d},r))}else{var p=null!==(u=CM(null==s?void 0:s.value,a))&&void 0!==u?u:n;c[e]=O(O({},c[e]||{}),{value:p})}return c}))}}),[r,o]),l((function(){var e,o;if(n&&r){var i=null===(o=null==r?void 0:r.dataFieldName)||void 0===o?void 0:o.toLowerCase().replace(/\p{Zs}/gu,"_");null==t||t(((e={})[i]=n,e))}return function(){return null==t?void 0:t({})}}),[r,n])},DM=function(e){var t=e.item,n=e.activeChildrenIds,r=s(),o=r[0],i=r[1],a=f((function(){return n.map((function(e){var n=t.items.find((function(t){return t.id===e}));return n?function(e){var t,n,r,o=(null===(n=null===(t=e.config)||void 0===t?void 0:t.props)||void 0===n?void 0:n.formStepProps)||{};return O(O({},e),{config:O(O({},e.config),{props:O(O({},null===(r=e.config)||void 0===r?void 0:r.props),{formStepProps:O(O({},o),{order:0})})})})}(n):void 0})).filter(Boolean)}),[n,t]);return l((function(){i((function(){return O(O({},t),{items:a})}))}),[t]),o},EM=["day_month_year_date","month_day_year_date","month_year_date"],kM=function(e){var t,n,r=e.control,o=e.name,i=void 0===o?"":o,a=e.inputProps,u=e.styles,c=e.labelsProps,d=e.defaultValue,p=void 0===d?"":d,f=e.optional,h=e.required,m=e.rules,v=e.conditionConfig,g=e.state,y=e.formData,b=e.htmlElementId,x=e.configurationItemInfo,C="password"===(null==a?void 0:a.type),w=s(C),D=w[0],E=w[1],k=nP(),S=xf(),A=S.setDateFields,B=S.isFormInEditMode,T="format_error"===g||"field_error"===g||"match_error"===g,P=bM(v,y),M="";try{M=(null==c?void 0:c.label)&&(null===(n=null===(t=JSON.parse(null==c?void 0:c.label)[0])||void 0===t?void 0:t.children[0])||void 0===n?void 0:n.text)}catch(e){M="",console.error(e,"Toopltip text was parsed incorrectly")}if(l((function(){(null==v?void 0:v.criteriaList.length)&&P&&k&&k.setValue(i,"")}),[v,P]),l((function(){g&&T&&k&&k.trigger(i)}),[g,k,T]),l((function(){y&&k&&k.reset(y)}),[y]),l((function(){(null==a?void 0:a.type)&&EM.includes(a.type)&&A((function(e){return F(F([],e,!0),[{id:i,dateType:a.type}],!1)}))}),[null==a?void 0:a.type]),!P)return null;var N=(null==a?void 0:a.rightIcon)||C?{name:D?"View":"Hide",onClick:function(){return E((function(e){return!e}))}}:void 0,j=C?D?"password":"text":null==a?void 0:a.type;return r?it(mP,{name:i,control:r,rules:O({required:{value:!!h,message:"This field is required"},pattern:zf(null==a?void 0:a.type)},m),defaultValue:p,render:function(e){var t,n=e.field,r=e.fieldState.error,o=(a||{}).isEditMode,i="format_error"===g&&"any"!==j||(void 0===o||o)&&!!r,s=C&&"match_error"===g&&"Your passwords do not match each other"||("format_error"===g?null===(t=zf(j))||void 0===t?void 0:t.message:i?null==r?void 0:r.message:void 0),l=null===(null==c?void 0:c.ruleLabel)?c.ruleLabel:h?"REQUIRED":f?"OPTIONAL":void 0;return at(SM,O({id:(null==x?void 0:x.isConfigurationMode)?"configurationWrapper":b,$styles:u},x,{children:[(null==c?void 0:c.label)&&at(ot,{children:[it(SF,O({},c,{ruleLabel:B?l:void 0,isError:i,tooltipText:M})),it(CC,{height:12})]}),it(qC,O({},a,n,{onChange:function(e){"phone_number"===j?n.onChange(e.replace(/[()\s-]/g,"")):n.onChange(e)},isError:i,rightIcon:N,type:j,state:g})),!!s&&it(EC,{text:s})]}))}}):at(SM,O({id:(null==x?void 0:x.isConfigurationMode)?"configurationWrapper":b,$styles:u},x,{children:[c&&at(ot,{children:[it(SF,O({},c,{tooltipText:M})),it(CC,{height:12})]}),it(qC,O({},a,{rightIcon:N,type:j,state:g}))]}))},SM=et.div(nM||(nM=P(["\n width: 100%;\n ",";\n ","\n"],["\n width: 100%;\n ",";\n ","\n"])),(function(e){return e.$styles}),xF),OM=function(e,t){switch(void 0===t&&(t=""),e){case"input":return"Enter ".concat(t);case"select":return"Select ".concat(t);default:return t}},AM=function(e){var t={};return e.forEach((function(e){return t[e.name]=e.value})),t},BM=function(e){var t;return!(null===(t=Object.values(e.errors))||void 0===t?void 0:t.length)},TM=function(e){var t=[];return e.forEach((function(e){return t=t.concat.apply(t,e.fields)})),t},FM=function(e){var t=e.field,n=e.isEditMode,r=void 0===n||n,o=e.spacer,i=void 0===o?0:o,a=e.control,s=e.isTooltipVisible,l=e.optionsPresentation,u=e.styles;if(!a)return null;var c=null,d=t.type,p=t.name,f=void 0===p?"":p,h=t.placeholder,m=t.tooltip,v=t.label,g=void 0===v?"":v,y=t.required,b=t.rules;switch(t.type){case"input":var x=t.inputType,C=t.maxLength,w=t.onKeyDown,D=t.inputProps,E=t.labelsProps;c=it(kM,O({},t,{name:f.toString(),control:a,inputProps:O({placeholder:h||OM(d,g),type:x,maxLength:C,isEditMode:r,onKeyDown:w},D),labelsProps:O({label:g,tooltipText:m,isTooltipVisible:s},E),required:y,optional:!y,rules:b,styles:u}));break;case"select":var k=t.options;c=it(RM,{selectProps:{placeholder:h||OM(d,g),options:k,isEditMode:r,optionsPresentation:l},name:f.toString(),control:a,labelsProps:{label:g,tooltipText:m,isTooltipVisible:s},required:y,optional:!y,rules:b,styles:u});break;case"checkbox":var S=t.checkboxLabel;c=at(ot,{children:[!!g&&at(ot,{children:[it(wC,O({variant:"L"},{children:g})),it(CC,{height:20})]}),it(NM,{name:f.toString(),control:a,checkboxProps:{label:S}})]})}return at(ot,{children:[!!i&&it(CC,{height:i}),c]})},PM=et.div(rM||(rM=P(["\n width: 100%;\n ","\n ","\n"],["\n width: 100%;\n ","\n ","\n"])),(function(e){return e.$styles}),xF),MM=et.div(iM||(iM=P(["\n display: flex;\n flex-direction: column;\n ","\n"],["\n display: flex;\n flex-direction: column;\n ","\n"])),(function(e){var t=e.theme.sizes,n=e.$spacing,r=void 0===n?"S":n,o=e.$styles;return qe(oM||(oM=P(["\n gap: ","px;\n ",";\n "],["\n gap: ","px;\n ",";\n "])),t[r],o)})),NM=function(e){var t,n=e.checkboxesProps,r=e.name,o=void 0===r?"":r,i=e.rules,a=e.control,s=e.optional,u=e.required,c=e.labelsProps,d=e.wrapperStyles,p=e.conditionConfig,f=e.defaultValue,h=e.formData,m=e.htmlElementId,v=e.state,g=e.isTrigger,y=e.moleculeId,b=e.configurationItemInfo,x=Re().sizes,C=nP(),w=bM(p,h);return l((function(){h&&C&&C.reset(h)}),[h]),l((function(){v&&"field_error"===v&&C&&C.trigger(o)}),[v,C]),w?a?it(mP,{name:o,control:a,defaultValue:null!==(t=null==n?void 0:n.selectedIds)&&void 0!==t?t:f,rules:O({required:{value:!!u,message:"This field is required"}},i),render:function(e){var t=e.field,r=e.fieldState.error,o=!!r,i=o?null==r?void 0:r.message:void 0,a=u?"REQUIRED":s?"OPTIONAL":void 0;return at(PM,O({id:(null==b?void 0:b.isConfigurationMode)?"configurationWrapper":m,$styles:d},b,{children:[(null==c?void 0:c.label)&&it(SF,O({},c,{ruleLabel:a,isError:o})),it(CC,{height:x.S+x.XS}),it(jM,O({checkboxesProps:O(O({},n),{selectedIds:t.value,isError:o})},t,{isTrigger:g,moleculeId:y})),!!i&&it(EC,{text:i})]}))}}):at(PM,O({id:(null==b?void 0:b.isConfigurationMode)?"configurationWrapper":m,$styles:d},b,{children:[c&&it(SF,O({},c)),it(CC,{height:x.S+x.XS}),it(jM,{checkboxesProps:n,isTrigger:g,moleculeId:y})]})):null},jM=function(e){var t=e.ref,n=e.onBlur,r=e.onChange,o=e.checkboxesProps||{},i=o.options,a=o.isError,u=o.disabled,c=o.isRichText,d=void 0===c||c,p=o.isEditMode,f=o.internalConfig,h=o.selectedIds,m=void 0===h?[]:h,v=o.checkboxGroupWrapperStyles,g=s(m),y=g[0],b=g[1];l((function(){return b(m)}),[]);var x=f||{},C=x.buttonOptionSpacing,w=A(x,["buttonOptionSpacing"]),D=function(e){b((function(t){var n=t.includes(e)?t.filter((function(t){return t!==e})):F(F([],t,!0),[e],!1);return null==r||r(n),n}))};return it(MM,O({ref:t,tabIndex:0,onBlur:n,$styles:v,$spacing:C},{children:null==i?void 0:i.map((function(e){var t=y.includes(e.id);return it(lu,O({},e,{isError:a,disabled:u,isEditMode:p,isSelected:t,isRichText:d,onClick:D,internalConfig:w}),e.id)}))}))},RM=function(e){var t=e.selectProps,n=e.name,r=void 0===n?"":n,o=e.defaultValue,i=void 0===o?"":o,a=e.optional,s=e.required,u=e.control,c=e.styles,d=e.labelsProps,p=e.rules,f=e.conditionConfig,h=e.formData,m=e.state,v=e.htmlElementId,g=e.configurationItemInfo,y=bM(f,h),b=nP();return l((function(){(null==f?void 0:f.criteriaList.length)&&y&&b&&b.setValue(r,"")}),[f,y]),l((function(){m&&"field_error"===m&&b&&b.trigger(r)}),[m,b]),l((function(){h&&b&&b.reset(h)}),[h]),y?u?it(mP,{name:r,control:u,rules:O({required:{value:!!s,message:"This field is required"}},p),defaultValue:i,render:function(e){var n=e.field,r=e.fieldState.error,o=!!r,i=o?null==r?void 0:r.message:void 0,l=s?"REQUIRED":a?"OPTIONAL":void 0;return at(IM,O({id:(null==g?void 0:g.isConfigurationMode)?"configurationWrapper":v,$styles:c},g,{children:[(null==d?void 0:d.label)&&it(SF,O({},d,{ruleLabel:l,isError:o})),it(CC,{height:12}),it(LC,O({},t,n,{isError:o})),!!i&&it(EC,{text:i})]}))}}):at(IM,O({id:(null==g?void 0:g.isConfigurationMode)?"configurationWrapper":v,$styles:c},g,{children:[d&&it(SF,O({},d)),it(CC,{height:12}),it(LC,O({},t))]})):null},IM=et.div(aM||(aM=P(["\n width: 100%;\n ",";\n ","\n"],["\n width: 100%;\n ",";\n ","\n"])),(function(e){return e.$styles}),xF),_M=function(e){switch(e){case"error":return"ERROR";case"success":return"SUCCESS";default:return"DEFAULT"}},LM=function(e){var t=e.rules,n=e.value,r=e.isSubmitted,o=void 0===r||r,i=e.label,a=e.spacer,s=e.validationState;return at(ot,{children:[i&&at(ot,{children:[it(VM,O({variant:"S"},{children:i})),a&&it(CC,{height:a})]}),it($M,{children:t.map((function(e,t){return it(iw,{status:s?_M(s):o?e.validate(n)?"SUCCESS":"ERROR":"DEFAULT",text:e.text},t)}))})]})},$M=et.div(sM||(sM=P(["\n display: flex;\n flex-wrap: wrap;\n gap: ","px;\n"],["\n display: flex;\n flex-wrap: wrap;\n gap: ","px;\n"])),(function(e){return e.theme.sizes.M})),VM=et(wC)(lM||(lM=P(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),zM=et(wC)(uM||(uM=P(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),WM=qe(cM||(cM=P(["\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n"],["\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n"])),(function(e){return e.theme.colors.primary}),zM,(function(e){return e.theme.colors.primary}),(function(e){return e.theme.colors.primary})),UM=qe(dM||(dM=P(["\n &:hover {\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n }\n"],["\n &:hover {\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n }\n"])),(function(e){return e.theme.colors.gray1}),zM,(function(e){return e.theme.colors.gray1}),(function(e){return e.theme.colors.gray1})),HM=et.div(fM||(fM=P(["\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: 0.25s all;\n ",";\n"],["\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: 0.25s all;\n ",";\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes,o=e.isActive;return qe(pM||(pM=P(["\n padding: ","px ","px;\n border-radius: ","px;\n border: 1.5px solid ",";\n svg path {\n stroke: ",";\n }\n ",";\n "],["\n padding: ","px ","px;\n border-radius: ","px;\n border: 1.5px solid ",";\n svg path {\n stroke: ",";\n }\n ",";\n "])),r.L,r.M,r.S,n.gray4,n.gray2,o?WM:UM)})),qM=et.div(mM||(mM=P(["\n display: flex;\n ",";\n"],["\n display: flex;\n ",";\n"])),(function(e){var t=e.theme.sizes,n=e.spacing;return qe(hM||(hM=P(["\n column-gap: ","px;\n "],["\n column-gap: ","px;\n "])),t[n])})),KM=function(e){var t=e.iconName,n=e.infoText,r=e.isActive,o=e.onClick,i=e.value;return at(HM,O({onClick:function(){return null==o?void 0:o(i)},isActive:r},{children:[it(ff,{name:t}),it(CC,{height:12}),it(zM,{children:n})]}))},XM=function(e){var t=e.cards,n=e.handleChange,r=e.spacing,o=void 0===r?"L":r,i=e.initialValue,a=s(i),l=a[0],u=a[1],c=function(e){var t=e===l?void 0:e;null==n||n(t),u(t)};return it(qM,O({spacing:o},{children:t.map((function(e){return it(KM,O({},e,{isActive:l===e.value,onClick:c}),e.value)}))}))},GM=["5XL","4XL","3XL","2XL","XL","L","M","S","XS",0],YM=dt.sizes.L,ZM={top:{borderBottomLeftRadius:YM,borderBottomRightRadius:YM},bottom:{borderTopRightRadius:YM,borderTopLeftRadius:YM},left:{borderBottomRightRadius:YM,borderTopRightRadius:YM},right:{borderTopLeftRadius:YM,borderBottomLeftRadius:YM}},JM=et(rc)(gM||(gM=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.variant,n=e.anchor,r=e.padding,o=void 0===r?"4XL":r,i=e.height,a=e.width,s=GM.includes(o)?"".concat(dt.sizes[o]||o,"px"):"".concat("number"==typeof o?"".concat(o,"px"):o),l=i?"number"==typeof i?"".concat(i,"px"):i:"auto",u=a?"number"==typeof a?"".concat(a,"px"):a:"auto",c="temporary"===t?"none":"0 2px 5px rgba(0, 0, 0, 0.25)";return qe(vM||(vM=P(["\n .MuiDrawer-paper {\n max-height: -webkit-fill-available;\n ",";\n padding: ",";\n height: ",";\n width: ",";\n box-shadow: ",";\n }\n .MuiBackdrop-root {\n background-color: rgba(0, 0, 0, 0.3);\n }\n "],["\n .MuiDrawer-paper {\n max-height: -webkit-fill-available;\n ",";\n padding: ",";\n height: ",";\n width: ",";\n box-shadow: ",";\n }\n .MuiBackdrop-root {\n background-color: rgba(0, 0, 0, 0.3);\n }\n "])),ZM[n],s,l,u,c)})),QM=et(rt)(yM||(yM=P(["\n display: flex;\n cursor: pointer;\n position: absolute;\n align-items: center;\n justify-content: center;\n top: ","px;\n ",";\n right: ","px;\n"],["\n display: flex;\n cursor: pointer;\n position: absolute;\n align-items: center;\n justify-content: center;\n top: ","px;\n ",";\n right: ","px;\n"])),dt.sizes["4XL"],st(dt.sizes.L),dt.sizes["4XL"]),eN=function(e){var t=e.children,n=e.closeIconColor,r=e.withCloseIcon,o=void 0===r||r,i=A(e,["children","closeIconColor","withCloseIcon"]);return it(JM,O({},i,{children:at(ot,{children:[t,o&&it(QM,O({onClick:function(e){var t;return null===(t=i.onClose)||void 0===t?void 0:t.call(i,e,"escapeKeyDown")}},{children:it(Yp,{size:32,color:dt.colors.gray2||n})}))]})}))},tN={adjustX:1,adjustY:1},nN=[0,0],rN={topLeft:{points:["bl","tl"],overflow:tN,offset:[0,-4],targetOffset:nN},topCenter:{points:["bc","tc"],overflow:tN,offset:[0,-4],targetOffset:nN},topRight:{points:["br","tr"],overflow:tN,offset:[0,-4],targetOffset:nN},bottomLeft:{points:["tl","bl"],overflow:tN,offset:[0,4],targetOffset:nN},bottomCenter:{points:["tc","bc"],overflow:tN,offset:[0,4],targetOffset:nN},bottomRight:{points:["tr","br"],overflow:tN,offset:[0,4],targetOffset:nN}},oN={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=oN.F1&&t<=oN.F12)return!1;switch(t){case oN.ALT:case oN.CAPS_LOCK:case oN.CONTEXT_MENU:case oN.CTRL:case oN.DOWN:case oN.END:case oN.ESC:case oN.HOME:case oN.INSERT:case oN.LEFT:case oN.MAC_FF_META:case oN.META:case oN.NUMLOCK:case oN.NUM_CENTER:case oN.PAGE_DOWN:case oN.PAGE_UP:case oN.PAUSE:case oN.PRINT_SCREEN:case oN.RIGHT:case oN.SHIFT:case oN.UP:case oN.WIN_KEY:case oN.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=oN.ZERO&&e<=oN.NINE)return!0;if(e>=oN.NUM_ZERO&&e<=oN.NUM_MULTIPLY)return!0;if(e>=oN.A&&e<=oN.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case oN.SPACE:case oN.QUESTION_MARK:case oN.NUM_PLUS:case oN.NUM_MINUS:case oN.NUM_PERIOD:case oN.NUM_DIVISION:case oN.SEMICOLON:case oN.DASH:case oN.EQUALS:case oN.COMMA:case oN.PERIOD:case oN.SLASH:case oN.APOSTROPHE:case oN.SINGLE_QUOTE:case oN.OPEN_SQUARE_BRACKET:case oN.BACKSLASH:case oN.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};function iN(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(xD(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var aN=oN.ESC,sN=oN.TAB;function lN(t){var n=t.visible,r=t.setTriggerVisible,o=t.triggerRef,i=t.onVisibleChange,a=t.autoFocus,s=e.useRef(!1),l=function(){var e,t,a,s;n&&o.current&&(null===(e=o.current)||void 0===e||null===(t=e.triggerRef)||void 0===t||null===(a=t.current)||void 0===a||null===(s=a.focus)||void 0===s||s.call(a),r(!1),"function"==typeof i&&i(!1))},u=function(){var e,t,n,r,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=mB(e.querySelectorAll("*")).filter((function(e){return iN(e,t)}));return iN(e,t)&&n.unshift(e),n}(null===(e=o.current)||void 0===e||null===(t=e.popupRef)||void 0===t||null===(n=t.current)||void 0===n||null===(r=n.getElement)||void 0===r?void 0:r.call(n)),a=i[0];return!!(null==a?void 0:a.focus)&&(a.focus(),s.current=!0,!0)},c=function(e){switch(e.keyCode){case aN:l();break;case sN:var t=!1;s.current||(t=u()),t?e.preventDefault():l()}};e.useEffect((function(){return n?(window.addEventListener("keydown",c),a&&Sw(u,3),function(){window.removeEventListener("keydown",c),s.current=!1}):function(){s.current=!1}}),[n])}var uN=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function cN(t,n){var r=t.arrow,o=void 0!==r&&r,i=t.prefixCls,a=void 0===i?"rc-dropdown":i,s=t.transitionName,l=t.animation,u=t.align,c=t.placement,d=void 0===c?"bottomLeft":c,p=t.placements,f=void 0===p?rN:p,h=t.getPopupContainer,m=t.showAction,v=t.hideAction,g=t.overlayClassName,y=t.overlayStyle,b=t.visible,x=t.trigger,C=void 0===x?["hover"]:x,w=t.autoFocus,D=pw(t,uN),E=$w(e.useState(),2),k=E[0],S=E[1],O="visible"in t?b:k,A=e.useRef(null);e.useImperativeHandle(n,(function(){return A.current})),lN({visible:O,setTriggerVisible:S,triggerRef:A,onVisibleChange:t.onVisibleChange,autoFocus:w});var B,T,F,P,M=function(){var n,r="function"==typeof(n=t.overlay)?n():n;return e.createElement(e.Fragment,null,o&&e.createElement("div",{className:"".concat(a,"-arrow")}),r)},N=v;return N||-1===C.indexOf("contextMenu")||(N=["click"]),e.createElement(qA,dw(dw({builtinPlacements:f},D),{},{prefixCls:a,ref:A,popupClassName:Rw(g,uw({},"".concat(a,"-show-arrow"),o)),popupStyle:y,action:C,showAction:m,hideAction:N||[],popupPlacement:d,popupAlign:u,popupTransitionName:s,popupAnimation:l,popupVisible:O,stretch:function(){var e=t.minOverlayWidthMatchTrigger,n=t.alignPoint;return"minOverlayWidthMatchTrigger"in t?e:!n}()?"minWidth":"",popup:"function"==typeof t.overlay?M:M(),onPopupVisibleChange:function(e){var n=t.onVisibleChange;S(e),"function"==typeof n&&n(e)},onPopupClick:function(e){var n=t.onOverlayClick;S(!1),n&&n(e)},getPopupContainer:h}),(T=t.children,F=T.props?T.props:{},P=Rw(F.className,void 0!==(B=t.openClassName)?B:"".concat(a,"-open")),O&&T?e.cloneElement(T,{className:P}):T))}var dN,pN,fN,hN,mN,vN,gN,yN,bN,xN,CN,wN,DN,EN,kN,SN,ON,AN,BN,TN,FN,PN,MN,NN,jN,RN,IN,_N,LN,$N,VN,zN,WN,UN,HN,qN,KN,XN,GN,YN,ZN,JN,QN,ej,tj,nj,rj,oj,ij,aj,sj=e.forwardRef(cN),lj=function(e){var t=e.item,n=e.activeKey,r=e.menuTheme,o=e.itemColor,i=e.activeItemColor,a=e.parentHandleClick,l=Re(),u=l.colors,c=l.sizes,d=s(!1),p=d[0],f=d[1],h=t.id,m=t.title,v=t.divider,g=t.disabled,y=t.options,b=t.onClick,x=null==y?void 0:y.length,C=h===n?u[i]||i:u[o]||o;return it(rt,O({disabled:g,activeOpacity:.3,onClick:function(){x&&f(!p),x?p&&(null==b||b(h)):null==b||b(h),x?p&&(null==a||a(h)):null==a||a(h)}},{children:at(ot,{children:[x?it(sj,O({overlay:it(uj,{options:y,activeKey:n,itemColor:o,menuTheme:r,onItemPress:a,activeItemColor:i}),onVisibleChange:(null==y?void 0:y.length)?f:void 0,visible:p,overlayStyle:{zIndex:5e3,paddingTop:c.M},trigger:"click",animation:"slide-up"},{children:at("div",O({style:{display:"flex",flexDirection:"row"}},{children:[it(wC,O({behaveAs:"button",variant:"M",color:C},{children:m})),it(gF,O({isActive:p,disabled:g,tabTheme:r,defaultTabTextColor:o},{children:it(ff,{name:"CaretDown",size:c.L})}))]}))})):it(wC,O({behaveAs:"button",variant:"M",color:C},{children:m})),v&&it(JT,{marginVertical:"S",color:"dark"===r?u.gray2:u.gray4})]})}))},uj=function(e){var t=e.title,n=e.options,r=e.activeKey,o=e.itemColor,i=void 0===o?"gray2":o,a=e.menuTheme,s=e.onItemPress,l=e.activeItemColor,u=void 0===l?"gray1":l;return at(cj,{children:[!!t&&at(ot,{children:[it(YT,O({padding:"M"},{children:it(wC,O({variant:"XL"},{children:t}))})),it(JT,{marginVertical:"M"})]}),it(YT,O({padding:"M"},{children:it(dj,{children:null==n?void 0:n.map((function(e){return it(ot,{children:it(lj,{item:e,activeKey:r,itemColor:i,menuTheme:a,parentHandleClick:s,activeItemColor:u},e.id)})}))})}))]})},cj=et.div(pN||(pN=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme,n=t.sizes,r=t.colors;return qe(dN||(dN=P(["\n background-color: ",";\n padding: ","px ","px;\n box-shadow: 0 0 ","px rgba(0, 0, 0, 0.1);\n border-radius: ","px;\n "],["\n background-color: ",";\n padding: ","px ","px;\n box-shadow: 0 0 ","px rgba(0, 0, 0, 0.1);\n border-radius: ","px;\n "])),r,n.XL,n.M,n.XL,n.S)})),dj=et.div(fN||(fN=P(["\n display: flex;\n flex-direction: column;\n row-gap: 14px;\n"],["\n display: flex;\n flex-direction: column;\n row-gap: 14px;\n"]))),pj=function(e){var t=e.avatarProps,n=e.menuConfig,r=e.configurationItemInfo,o=s(!1),i=o[0],a=o[1],l=it(uj,O({},n,{onItemPress:function(){return a(!1)}}));return it(fj,O({id:"configurationWrapper"},r,{children:it(sj,O({overlay:l,onVisibleChange:a,visible:i,trigger:"click",animation:"slide-up"},{children:at(hj,{children:[it(UT,O({},t)),it(CC,{width:12}),it(mj,O({isOpen:i},{children:it(ff,{size:16,name:"CaretDown"})}))]})}))}))},fj=et.div(hN||(hN=P(["\n width: fit-content;\n ","\n"],["\n width: fit-content;\n ","\n"])),xF),hj=et(rt)(mN||(mN=P(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: fit-content;\n"],["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: fit-content;\n"]))),mj=et.div(gN||(gN=P(["\n display: flex;\n transition: transform, background-color, 0.2s ease-in-out;\n transform: rotate(0deg);\n ","\n"],["\n display: flex;\n transition: transform, background-color, 0.2s ease-in-out;\n transform: rotate(0deg);\n ","\n"])),(function(e){var t=e.isOpen,n=e.theme,r=n.colors,o=n.sizes;return t&&qe(vN||(vN=P(["\n border-radius: ","px;\n background-color: ",";\n transform: rotate(180deg);\n "],["\n border-radius: ","px;\n background-color: ",";\n transform: rotate(180deg);\n "])),o.XS,r.gray4)})),vj=et.div(bN||(bN=P(["\n display: flex;\n width: fit-content;\n position: relative;\n align-items: flex-start;\n ","\n"],["\n display: flex;\n width: fit-content;\n position: relative;\n align-items: flex-start;\n ","\n"])),(function(e){var t=e.theme.sizes,n=e.$vertical,r=e.$spacing,o=e.$styles;return qe(yN||(yN=P(["\n flex-direction: ",";\n gap: ","px;\n ",";\n "],["\n flex-direction: ",";\n gap: ","px;\n ",";\n "])),n?"column":"row",t[r],o)})),gj=et.div(CN||(CN=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme.sizes,n=e.width,r=e.left,o=e.isActiveTab,i=e.tabTheme,a=e.selectedTabIndicatorColor;return qe(xN||(xN=P(["\n position: absolute;\n bottom: -4px;\n left: ","px;\n width: ","px;\n height: ","px;\n background-color: ",";\n border-radius: ","px;\n transition: 0.4s;\n "],["\n position: absolute;\n bottom: -4px;\n left: ","px;\n width: ","px;\n height: ","px;\n background-color: ",";\n border-radius: ","px;\n transition: 0.4s;\n "])),r,n,t.XS,hF(a,o,i),t.XS)})),yj=et(rt)(kN||(kN=P(["\n position: relative;\n &:hover {\n ","\n }\n"],["\n position: relative;\n &:hover {\n ","\n }\n"])),(function(e){var t=e.theme.colors,n=e.disabled,r=e.tabTheme,o=e.selectedTabTextColor,i=e.isActiveTab,a=e.selectedTabIndicatorColor;if(n)return qe(wN||(wN=P(["\n "," {\n color: ",";\n }\n "],["\n "," {\n color: ",";\n }\n "])),mF,"dark"===r?t.gray2:t.gray3);if(i)return qe(DN||(DN=P(["\n "," {\n background-color: ",";\n }\n "],["\n "," {\n background-color: ",";\n }\n "])),gj,hF(a,i,r));var s=t[o]||o;return qe(EN||(EN=P(["\n "," {\n background-color: ",";\n }\n "," {\n color: ",";\n }\n "],["\n "," {\n background-color: ",";\n }\n "," {\n color: ",";\n }\n "])),gj,"dark"===r?t.gray1:t.gray5,mF,s||("dark"===r?t.white:t.gray1))})),bj=function(e){var t=e.menuConfig,n=e.customIconType,r=e.menuIconColor,o=void 0===r?dt.colors.gray2:r,i=s(!1),a=i[0],l=i[1],u=it(uj,O({},t,{onItemPress:function(e){var n;l(!1),null===(n=t.onItemPress)||void 0===n||n.call(t,e)}}));return it(sj,O({overlay:u,onVisibleChange:l,visible:a,trigger:"click",animation:"slide-up"},{children:it(xj,{children:it(Cj,O({isOpen:a},{children:it(ff,{size:16,color:o,name:n||"Menu"})}))})}))},xj=et(rt)(SN||(SN=P(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: fit-content;\n"],["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: fit-content;\n"]))),Cj=et.div(AN||(AN=P(["\n display: flex;\n cursor: pointer;\n ","\n"],["\n display: flex;\n cursor: pointer;\n ","\n"])),(function(e){var t=e.isOpen,n=e.theme;n.colors;var r=n.sizes;return t&&qe(ON||(ON=P(["\n border-radius: ","px;\n "],["\n border-radius: ","px;\n "])),r.XS)})),wj=function(e){var t,n=e.tabs,r=e.vertical,o=void 0!==r&&r,i=e.activeTabKey,a=void 0===i?null===(t=n[0])||void 0===t?void 0:t.tabKey:i,u=e.onTabChange,c=e.tabTheme,p=void 0===c?"light":c,f=e.wide,h=e.compact,m=e.tabSpacing,v=void 0===m?"XL":m,y=e.isMobile,b=e.htmlElementId,x=e.menuIconColor,C=e.configurationItemInfo,w=A(e,["tabs","vertical","activeTabKey","onTabChange","tabTheme","wide","compact","tabSpacing","isMobile","htmlElementId","menuIconColor","configurationItemInfo"]),D=s(a),E=D[0],k=D[1],S=function(e){var t=s([]),n=t[0],r=t[1],o=s([]),i=o[0],a=o[1],u=d([]);return l((function(){var e=function(){var e,t;r(null===(e=null==u?void 0:u.current)||void 0===e?void 0:e.map((function(e){var t;return null!==(t=null==e?void 0:e.clientWidth)&&void 0!==t?t:0}))),a(null===(t=null==u?void 0:u.current)||void 0===t?void 0:t.map((function(e){var t;return null!==(t=null==e?void 0:e.offsetLeft)&&void 0!==t?t:0})))};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[e]),{tabsUnderlineLeft:i,tabsUnderlineWidth:n,tabsRef:u}}(E),B=S.tabsRef,T=S.tabsUnderlineLeft,F=S.tabsUnderlineWidth,P=Re(),M=P.colors,N=P.sizes,j=f||{},R=j.containerProps,I=void 0===R?{}:R,_=j.containerStyle,L=void 0===_?{}:_,$=h||{},V=$.containerProps,z=void 0===V?{}:V,W=$.containerStyle,U=y?z:I,H=y?void 0===W?{}:W:L,q=function(e){null==u||u(e),k(e)};return it(Dj,O({id:"configurationWrapper"},C,{children:y?it(bj,{menuIconColor:x,menuConfig:{title:"Navigation Menu",menuTheme:p,activeKey:E,itemColor:w.defaultTabTextColor,activeItemColor:w.selectedTabTextColor,options:n.map((function(e){return O(O({},e),{id:e.tabKey,title:e.text})})),onItemPress:q}}):it(vj,O({id:b,$vertical:o,$spacing:v},U,{$styles:O(O({},U),H)},{children:n.map((function(e,t){return at(g,{children:[at(yj,O({onClick:function(){e.disabled||q(null==e?void 0:e.tabKey)},disabled:e.disabled,tabTheme:p,selectedTabTextColor:w.selectedTabTextColor,isActiveTab:e.tabKey===E,selectedTabIndicatorColor:w.selectedTabIndicatorColor},{children:[it(H_,O({ref:function(e){return B.current[t]=e},vertical:o},e,{isActive:e.tabKey===E,tabTheme:p},w)),it(CC,{height:"S"}),it(gj,{left:T[t],width:F[t],isActiveTab:e.tabKey===E,selectedTabIndicatorColor:w.selectedTabIndicatorColor,tabTheme:p})]})),e.divider&&it(JT,{type:"vertical",color:"dark"===p?M.gray2:M.gray4,style:{height:N.XL+N.S}})]},e.tabKey)}))}))}))},Dj=et.div(BN||(BN=P(["\n ","\n"],["\n ","\n"])),xF),Ej=function(e){var t=e.fields,n=e.label,r=e.isEditMode,o=e.control,i=Re().sizes,a=r?20:i.XL;return at(ot,{children:[it(wC,O({variant:"L",color:"gray2"},{children:n})),it(CC,{height:20}),t.map((function(e,t){return it(FM,{isEditMode:r,field:e,control:o,spacer:t?a:0},t)}))]})},kj=function(e){var t=e.textContent,n=e.invertColors;return it(Sj,O({invertColors:n},{children:it(bC,{color:n?"white":"primary",font:"XL",value:t})}))},Sj=et.div(FN||(FN=P(["\n width: 100%;\n text-align: center;\n ","\n"],["\n width: 100%;\n text-align: center;\n ","\n"])),(function(e){var t=e.theme,n=t.sizes,r=t.colors,o=e.invertColors;return qe(TN||(TN=P(["\n border-radius: ","px;\n padding: ","px;\n background-color: ",";\n "],["\n border-radius: ","px;\n padding: ","px;\n background-color: ",";\n "])),n.S,n.L,o?r.primary:r.gray5)})),Oj=function(e){var t=e.name,n=void 0===t?"":t,r=e.rules,o=e.styles,i=e.control,a=e.optional,s=e.required,u=e.labelsProps,c=e.defaultValue,d=void 0===c?"":c,p=e.radioButtonsProps,f=e.conditionConfig,h=e.formData,m=e.htmlElementId,v=e.state,g=e.isTrigger,y=e.moleculeId,b=e.configurationItemInfo,x=Re().sizes,C=nP(),w=bM(f,h);return l((function(){h&&C&&C.reset(h)}),[h]),l((function(){v&&"field_error"===v&&C&&C.trigger(n)}),[v,C]),w?i?it(mP,{name:n,control:i,rules:O({required:{value:!!s,message:"This field is required"}},r),defaultValue:d,render:function(e){var t=e.field,n=e.fieldState.error,r=!!n,i=r?null==n?void 0:n.message:void 0,l=s?"REQUIRED":a?"OPTIONAL":void 0;return at(Aj,O({id:(null==b?void 0:b.isConfigurationMode)?"configurationWrapper":m,$styles:o},b,{children:[(null==u?void 0:u.label)&&it(SF,O({},u,{ruleLabel:l,isError:r})),it(CC,{height:x.S+x.XS}),it(rF,O({},O(O({},p),{isError:r}),t,{isTrigger:g,moleculeId:y})),!!i&&it(EC,{text:i})]}))}}):at(Aj,O({id:(null==b?void 0:b.isConfigurationMode)?"configurationWrapper":m,$styles:o},b,{children:[u&&it(SF,O({},u)),it(CC,{height:x.S+x.XS}),it(rF,O({},p,{isTrigger:g,moleculeId:y}))]})):null},Aj=et.div(PN||(PN=P(["\n width: 100%;\n ","\n ","\n"],["\n width: 100%;\n ","\n ","\n"])),(function(e){return e.$styles}),xF),Bj=function(e){var t=e.logo,n=e.title,r=e.withCloseIcon,o=e.description,i=e.style,a=e.fontColor,s=e.containerStyles,l=e.isMobile,u=A(e,["logo","title","withCloseIcon","description","style","fontColor","containerStyles","isMobile"]);return it(Tj,O({},u,{style:s},{children:at(Fj,O({},u,{isMobile:l,style:i},{children:[at(Pj,O({withCloseIcon:r},{children:[!!t&&it(Mj,{src:t,alt:"Alert Logo"}),at("div",{children:[it(bC,{font:"XL",color:null!=a?a:"gray1",value:n}),it(CC,{height:6}),it(bC,{font:"M",color:null!=a?a:"gray1",value:o})]})]})),it(Nj,O({},u,{withCloseIcon:r,onClick:function(e){e.stopPropagation(),null==r||r.onClose()}},{children:it(ff,{size:dt.sizes.L,name:"Close"})}))]}))}))},Tj=et.div(jN||(jN=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.fullWidth,n=e.color,r=void 0===n?"#dad9e2":n;return qe(NN||(NN=P(["\n min-width: 390px;\n\n ","}\n "],["\n min-width: 390px;\n\n ","}\n "])),t&&qe(MN||(MN=P(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),r))})),Fj=et.div(IN||(IN=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.color,n=void 0===t?"linear-gradient(0deg, rgba(11, 0, 61, 0.15), rgba(11, 0, 61, 0.15)), ".concat(dt.colors.white):t,r=e.isMobile,o=e.fullWidth;return qe(RN||(RN=P(["\n position: relative;\n background: ",";\n padding: ","px\n ","px;\n box-shadow: ",";\n border-radius: ","px;\n "],["\n position: relative;\n background: ",";\n padding: ","px\n ","px;\n box-shadow: ",";\n border-radius: ","px;\n "])),n,dt.sizes.XL,r?dt.sizes.XL:dt.sizes["2XL"],o?"none":"0 2px 5px rgba(0, 0, 0, 0.25)",dt.sizes.M)})),Pj=et.div(LN||(LN=P(["\n ",";\n"],["\n ",";\n"])),(function(e){var t=e.withCloseIcon;return qe(_N||(_N=P(["\n display: flex;\n column-gap: ","px;\n width: calc(100% - ","px);\n "],["\n display: flex;\n column-gap: ","px;\n width: calc(100% - ","px);\n "])),dt.sizes.M,t?dt.sizes["2XL"]:0)})),Mj=et(ew)($N||($N=P(["\n object-fit: contain;\n width: ","px;\n max-height: ","px;\n"],["\n object-fit: contain;\n width: ","px;\n max-height: ","px;\n"])),dt.sizes.XL,dt.sizes["3XL"]),Nj=et(rt)(zN||(zN=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.withCloseIcon;return qe(VN||(VN=P(["\n display: ",";\n position: absolute;\n top: ","zpx;\n right: ","px;\n "],["\n display: ",";\n position: absolute;\n top: ","zpx;\n right: ","px;\n "])),t?"block":"none",dt.sizes.L,dt.sizes.XL)})),jj=function(e){var t=e.text,n=e.isRichText,r=e.htmlElementId,o=e.isTrigger,i=e.moleculeId,a=e.variant,s=void 0===a?"outlined":a,l=e.configurationItemInfo,u=A(e,["text","isRichText","htmlElementId","isTrigger","moleculeId","variant","configurationItemInfo"]),c=Ef({id:i,isTrigger:o});if(!t)return null;var d=n?it(bC,{htmlElementId:r,value:t,renderElementWrapperProps:u,renderElementWrapperComponent:rw,isTrigger:o,moleculeId:i}):it(rw,O({},u,{id:r,onClick:function(){var e;null===(e=u.onExternalLink)||void 0===e||e.call(u),c("click")}},{children:t}));return it(Rj,O({variant:s,id:"configurationWrapper"},l,{children:d}))},Rj=et(Qc)(WN||(WN=P(["\n ","\n"],["\n ","\n"])),xF),Ij=et.ul(HN||(HN=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.orientation,n=void 0===t?"horizontal":t;return qe(UN||(UN=P(["\n display: flex;\n flex-flow: nowrap ",";\n justify-content: space-between;\n width: 100%;\n height: 100%;\n "],["\n display: flex;\n flex-flow: nowrap ",";\n justify-content: space-between;\n width: 100%;\n height: 100%;\n "])),"horizontal"===n?"row":"column")})),_j=et.li(XN||(XN=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.orientation,n=void 0===t?"horizontal":t;return qe(KN||(KN=P(["\n height: 100%;\n display: flex;\n flex-flow: column nowrap;\n justify-content: flex-start;\n align-items: flex-start;\n\n :last-child {\n flex: 0;\n }\n\n ","\n "],["\n height: 100%;\n display: flex;\n flex-flow: column nowrap;\n justify-content: flex-start;\n align-items: flex-start;\n\n :last-child {\n flex: 0;\n }\n\n ","\n "])),"horizontal"===n&&qe(qN||(qN=P(["\n width: 100%;\n position: relative;\n flex: 1;\n "],["\n width: 100%;\n position: relative;\n flex: 1;\n "]))))})),Lj=et.div(GN||(GN=P(["\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n"]))),$j=et.div(ZN||(ZN=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.orientation,n=void 0===t?"horizontal":t,r=e.isLastChild;return"vertical"===n&&qe(YN||(YN=P(["\n min-height: ",";\n height: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n "],["\n min-height: ",";\n height: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n "])),r?"100%":"58px")})),Vj=et.span(tj||(tj=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes,o=e.isComplete,i=e.isProgress,a=e.orientation;return qe(ej||(ej=P(["\n width: ","px;\n height: ","px;\n border-radius: 50%;\n background-color: ",";\n margin-bottom: ","px;\n margin-right: ","px;\n\n ","\n\n ","\n "],["\n width: ","px;\n height: ","px;\n border-radius: 50%;\n background-color: ",";\n margin-bottom: ","px;\n margin-right: ","px;\n\n ","\n\n ","\n "])),"horizontal"===a?r.M:r.S,"horizontal"===a?r.M:r.S,o?n.green:n.gray4,"horizontal"===a?0:r.L,r.S,i&&qe(JN||(JN=P(["\n border: ","px solid ",";\n background-color: ",";\n "],["\n border: ","px solid ",";\n background-color: ",";\n "])),"horizontal"===a?r.XS:2,n.green,n.white),o&&qe(QN||(QN=P(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),n.green))})),zj=et.div(ij||(ij=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.orientation,n=void 0===t?"horizontal":t,r=e.isComplete,o=e.theme,i=o.colors,a=o.sizes;return qe(oj||(oj=P(["\n position: absolute;\n background-color: ",";\n\n ","\n\n ","\n "],["\n position: absolute;\n background-color: ",";\n\n ","\n\n ","\n "])),r?i.green:i.gray4,"horizontal"===n&&qe(nj||(nj=P(["\n height: 2px;\n top: 7px;\n left: 20px;\n right: ","px;\n "],["\n height: 2px;\n top: 7px;\n left: 20px;\n right: ","px;\n "])),a.XS),"vertical"===n&&qe(rj||(rj=P(["\n width: 1px;\n height: calc(100% - ","px);\n top: 12px;\n left: 3px;\n "],["\n width: 1px;\n height: calc(100% - ","px);\n top: 12px;\n left: 3px;\n "])),a.M))})),Wj=function(e){var t=e.stepsNumber,n=e.step,r=n.title,o=n.description,i=n.status,a=e.orientation,s=e.order,l=e.htmlElementId,u="complete"===i,c="incomplete"===i;return it(_j,O({orientation:a},{children:at($j,O({isLastChild:s===t,orientation:a},{children:[at(Lj,{children:[it(Vj,{orientation:a,isComplete:u,isProgress:"in_progress"===i}),"vertical"===a&&at(Op,O({ml:2,gap:.5},{children:[it(bC,{htmlElementId:l,value:null==r?void 0:r.text,color:c?"gray3":"gray1"}),it(bC,{htmlElementId:l,value:null==o?void 0:o.text,color:c?"gray4":"gray3"})]}))]}),s!==t&&it(zj,{isComplete:u,orientation:a})]}))}))},Uj=function(e){var t,n,r=e.steps,o=e.orientation,i=void 0===o?"horizontal":o,a=e.htmlElementId;e.metadata;var s=e.isMobile,l=e.isOnClickDisabled,u=e.configurationItemInfo;if(!r.length)return null;var c=null!==(n=null===(t=r.find((function(e){return"in_progress"===e.status})))||void 0===t?void 0:t.order)&&void 0!==n?n:r[0].order,d=r[c]||{},p=d.title,f=void 0===p?{}:p,h=d.description,m=void 0===h?{}:h,v=d.status,g=d.link,y=(null==g?void 0:g.internalLink)||(null==g?void 0:g.externalLink);return at(Hj,O({id:(null==u?void 0:u.isConfigurationMode)?"configurationWrapper":a},u,{children:[y&&it(jj,{text:"Learn More",isRichText:!1,htmlElementId:a,onExternalLink:l?void 0:(null==g?void 0:g.externalLink)?function(){return Qf(null==g?void 0:g.externalLink)}:void 0}),it(Ij,O({orientation:i},{children:r.map((function(e){return it(Wj,{step:e,stepsNumber:r.length-1,order:e.order,orientation:i,htmlElementId:a},e.id)}))})),"horizontal"===i&&!s&&at(Op,O({mt:2,gap:.5},{children:[it(bC,{htmlElementId:a,value:null==f?void 0:f.text,color:"incomplete"===v?"gray3":"gray1"}),it(bC,{htmlElementId:a,value:null==m?void 0:m.text,color:"incomplete"===v?"gray4":"gray3"})]}))]}))},Hj=et.div(aj||(aj=P(["\n width: 100%;\n ",";\n"],["\n width: 100%;\n ",";\n"])),xF);E.GlobalWorkerOptions.workerSrc="//cdnjs.cloudflare.com/ajax/libs/pdf.js/".concat(E.version,"/pdf.worker.min.js");var qj,Kj,Xj,Gj,Yj,Zj,Jj,Qj,eR,tR,nR,rR,oR,iR,aR,sR,lR,uR,cR,dR,pR,fR,hR,mR,vR,gR,yR=function(e){var t=e.source,n=e.isMobile,r=void 0!==n&&n,o=e.customDocumentStyles,i=s(0),a=i[0],l=i[1],u=s(1),c=u[0],d=u[1],p=s(null),f=p[0],h=p[1],m=o||{},v=m.pageWidth,g=void 0===v?r?342:856:v,y=m.pageHeight,b=f!==c;return it(bR,O({pageWidth:g,pageHeight:void 0===y?r?442:1108:y},{children:at(xR,O({customDocumentStyles:o},{children:[at(k,O({file:t,renderMode:"canvas",className:"document",onLoadSuccess:function(e){var t=e.numPages;l(t)},loading:it(yu,{size:60})},{children:[b&&f?it(S,{pageNumber:f,renderTextLayer:!1,className:"custom-pdf"},f):null,it(S,{pageNumber:c,renderTextLayer:!1,className:"".concat(b?"loadingPage":"custom-pdf"),onRenderSuccess:function(){return h(c)}},c)]})),at(CR,{children:[it(wR,O({disable:c<=1,onClick:function(){return d((function(e){return e+(e<=1?0:-1)}))},customDocumentStyles:o},{children:it(ff,{name:"CaretLeft",size:33})})),it(DR,{type:"number",size:"small",customDocumentStyles:o,onChange:function(e){var t=e.target.value,n=e.nativeEvent;return function(e,t){if(!Number.isNaN(e)){var n=Math.round(e);n>a?!Number.isNaN(t)&&t>0&&t<=a&&d(t):n<1||d(n)}}(+t,+((null==n?void 0:n.data)||""))},value:c}),it(wR,O({disabled:!0},{children:it(ER,{})})),it(wC,O({variant:"S",color:(null==o?void 0:o.pageNumberColor)||"white"},{children:a})),it(wR,O({disable:c>=a,onClick:function(){return d((function(e){return e+(e>=a?0:1)}))},customDocumentStyles:o},{children:it(ff,{name:"CaretRight"})}))]})]}))}))},bR=et.div(Kj||(Kj=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.pageWidth,n=e.pageHeight;return qe(qj||(qj=P(["\n height: 100%;\n .document {\n display: flex;\n justify-content: center;\n align-items: center;\n height: ","px;\n width: ","px;\n }\n .react-pdf__Page__canvas {\n height: ","px !important;\n width: ","px !important;\n }\n .react-pdf__Page.loadingPage {\n display: none;\n }\n .custom-pdf {\n .annotationLayer {\n height: 0 !important;\n }\n }\n "],["\n height: 100%;\n .document {\n display: flex;\n justify-content: center;\n align-items: center;\n height: ","px;\n width: ","px;\n }\n .react-pdf__Page__canvas {\n height: ","px !important;\n width: ","px !important;\n }\n .react-pdf__Page.loadingPage {\n display: none;\n }\n .custom-pdf {\n .annotationLayer {\n height: 0 !important;\n }\n }\n "])),n,t,n,t)})),xR=et.div(Xj||(Xj=P(["\n height: 100%;\n padding: 20px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n position: relative;\n background-color: ",";\n"],["\n height: 100%;\n padding: 20px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n position: relative;\n background-color: ",";\n"])),(function(e){var t=e.theme.colors,n=e.customDocumentStyles,r=(void 0===n?{}:n).wrapperBackgroundColor,o=void 0===r?"gray1":r;return t[o]||o})),CR=et.div(Yj||(Yj=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes;return qe(Gj||(Gj=P(["\n color: ",";\n padding: ","px;\n border-radius: ","px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n "],["\n color: ",";\n padding: ","px;\n border-radius: ","px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n "])),n.gray4,r.S,r.S)})),wR=et(rt)(Jj||(Jj=P(["\n display: flex;\n align-items: center;\n justify-content: center;\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n ","\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes,o=e.disable,i=e.active,a=e.customDocumentStyles,s=void 0===a?{}:a,l=s.paginationArrowColor,u=void 0===l?"gray4":l,c=s.disabledPaginationArrowColor,d=void 0===c?"gray2":c;return qe(Zj||(Zj=P(["\n width: ","px;\n height: ","px;\n border-radius: ","px;\n background-color: ",";\n path,\n line {\n stroke: ",";\n }\n "],["\n width: ","px;\n height: ","px;\n border-radius: ","px;\n background-color: ",";\n path,\n line {\n stroke: ",";\n }\n "])),r.XL,r.XL,r.XS,i?n.gray2:"transparent",o?n[d]||d:n[u]||u)})),DR=et(Np)(eR||(eR=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme,n=t.colors,r=t.fonts,o=t.sizes,i=e.customDocumentStyles,a=(void 0===i?{}:i).pageNumberColor,s=void 0===a?"white":a;return qe(Qj||(Qj=P(["\n width: ","px;\n fieldset {\n border: 1px solid "," !important;\n border-radius: ","px;\n }\n input {\n padding: ","px ","px;\n color: ",";\n text-align: right;\n\n ",";\n\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n // Firefox\n &[type='number'] {\n -moz-appearance: textfield;\n }\n }\n "],["\n width: ","px;\n fieldset {\n border: 1px solid "," !important;\n border-radius: ","px;\n }\n input {\n padding: ","px ","px;\n color: ",";\n text-align: right;\n\n ",";\n\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n // Firefox\n &[type='number'] {\n -moz-appearance: textfield;\n }\n }\n "])),o["2XL"],n.gray3,o.XS,o.XS,o.S,n[s]||s,r.S)})),ER=et(Hu)(nR||(nR=P(["\n transform: rotate(30deg);\n width: 2px;\n ",";\n"],["\n transform: rotate(30deg);\n width: 2px;\n ",";\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes;return qe(tR||(tR=P(["\n height: ","px;\n background-color: ",";\n "],["\n height: ","px;\n background-color: ",";\n "])),r.L,n.gray2)})),kR=function(e){var t=e.templateType,n=e.title,r=e.name,o=e.inputProps,i=e.isMobile,a=e.menuConfig,l=A(e,["templateType","title","name","inputProps","isMobile","menuConfig"]),u=s(!1),c=u[0],d=u[1],p=it(uj,O({},a,{onItemPress:function(){return d(!1)}})),f=qe(rR||(rR=P(["\n min-width: ","px;\n "],["\n min-width: ","px;\n "])),i?275:330);return at(SR,O({isMobile:i},{children:[it(bC,{value:n,font:"2XL",color:"black"}),"feed_b"===t&&at(Op,O({direction:"row",gap:2,alignItems:"center",justifyContent:"center"},{children:[it(kM,O({name:null!=r?r:"",inputProps:O(O({},o),{leftIcon:{name:"Search"},placeholder:"Search"}),styles:f},l)),it(sj,O({overlay:p,onVisibleChange:d,visible:c,trigger:"click",animation:"slide-up"},{children:it(OR,{children:it(ff,{name:"Filter"})})}))]}))]}))},SR=et(Op)(aR||(aR=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.isMobile,n=e.theme.sizes;return qe(iR||(iR=P(["\n margin-top: ","px;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n\n ","\n "],["\n margin-top: ","px;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n\n ","\n "])),n.S,t&&qe(oR||(oR=P(["\n flex-direction: column;\n align-items: flex-start;\n gap: 20px;\n "],["\n flex-direction: column;\n align-items: flex-start;\n gap: 20px;\n "]))))})),OR=et(rt)(lR||(lR=P(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 51px;\n height: 51px;\n ",";\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 51px;\n height: 51px;\n ",";\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes;return qe(sR||(sR=P(["\n border-radius: ","px;\n border: 1.5px solid ",";\n "],["\n border-radius: ","px;\n border: 1.5px solid ",";\n "])),r.S,n.gray2)})),AR=function(e){var t=e.name,n=e.title,r=e.control,o=e.description,i=e.horizontalButtonsProps,a=s(i.selectedButtonId),l=a[0],u=a[1];return r?it(mP,{name:t,control:r,defaultValue:i.selectedButtonId,render:function(e){var t=e.field,r=t.onChange,a=t.value;return it(YT,O({padding:"M"},{children:at(Op,O({gap:2,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},{children:[at(Op,O({gap:.2,flexDirection:"column"},{children:[it(wC,O({variant:"XL"},{children:n})),o&&it(wC,O({variant:"S",color:"gray3"},{children:o}))]})),it(VT,O({},i,{selectedButtonId:a,onClick:r}))]}))}))}}):it(YT,O({padding:"M"},{children:at(Op,O({gap:2,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},{children:[at(Op,O({gap:.2,flexDirection:"column"},{children:[it(wC,O({variant:"XL"},{children:n})),o&&it(wC,O({variant:"S",color:"gray3"},{children:o}))]})),it(VT,O({},i,{selectedButtonId:l,onClick:function(e){return u(e)}}))]}))}))},BR=function(e){var t=e.name,n=e.icon,r=e.active,o=e.activeColor,i=e.onNavigate;return at(TR,O({activeOpacity:.9,onClick:i},{children:[it(ZT,O({padding:dt.sizes.XS},{children:it(n,{size:32,color:r?o:dt.colors.gray3})})),it(wC,O({color:r?o:dt.colors.gray3,variant:"S"},{children:t}))]}))},TR=et(rt)(uR||(uR=P(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"],["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"]))),FR=function(e){var t=e.style,n=e.src,r=e.width,o=e.height,i=e.template,a=e.autoplay,u=e.enableCoverImage,c=e.coverImageSrc,p=e.styles,f=e.htmlElementId,h=e.isTrigger,m=e.moleculeId,v=e.isOnClickDisabled,g=e.configurationItemInfo,y=Ef({id:m,isTrigger:h}),b=d(null),x="auto_play"===i||a,C=s(!1),w=C[0],D=C[1],E=function(){b.current&&(b.current.pause(),b.current.muted=!1,D(!1))},k=function(){var e;null===(e=b.current)||void 0===e||e.play().then((function(){return D(!0)})),y("start")};if(l((function(){x&&b.current?(b.current.muted=!0,k()):E()}),[x]),!n)return null;var S=qe(cR||(cR=P(["\n ","\n "],["\n ","\n "])),p);return at(PR,O({id:(null==g?void 0:g.isConfigurationMode)?"configurationWrapper":f,width:r,height:o,style:t,$styles:S},g,{children:[it(NR,O({muted:!0,ref:b,width:r,style:t,onClick:v?void 0:E,autoPlay:x,$styles:S,poster:u?c:void 0,onEnded:function(){D(!1),y("complete")}},{children:it("source",{width:"100%",height:"100%",src:n})})),!w&&it(MR,O({onClick:v?void 0:k,$styles:S},{children:it(ff,{name:"Play"})}))]}))},PR=et.div(pR||(pR=P(["\n position: relative;\n ","\n ","\n"],["\n position: relative;\n ","\n ","\n"])),(function(e){var t=e.width,n=e.height,r=e.$styles;return qe(dR||(dR=P(["\n width: ",";\n height: ",";\n ",";\n "],["\n width: ",";\n height: ",";\n ",";\n "])),t?"".concat(t,"px"):"auto",n?"".concat(n,"px"):"100%",r)}),xF),MR=et(rt)(hR||(hR=P(["\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n left: 0;\n right: 0;\n bottom: 5px;\n background-color: rgba(29, 36, 45, 0.7);\n ",";\n"],["\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n left: 0;\n right: 0;\n bottom: 5px;\n background-color: rgba(29, 36, 45, 0.7);\n ",";\n"])),(function(e){var t=e.$styles;return qe(fR||(fR=P(["\n ","\n "],["\n ","\n "])),t)})),NR=et.video(vR||(vR=P(["\n width: 100%;\n cursor: pointer;\n ",";\n"],["\n width: 100%;\n cursor: pointer;\n ",";\n"])),(function(e){var t=e.$styles;return qe(mR||(mR=P(["\n ","\n "],["\n ","\n "])),t)})),jR=function(e){var t=e.children,n=e.isMLRReview,r=e.showAnnotations,o=e.annotationsList;return it(gf.Provider,O({value:{isMLRReview:n,annotationsList:o,showAnnotations:r}},{children:t}))},RR=function(e){var t=new Map;return e.forEach((function(e){var n,r;"container"===e.instance&&(r="","form_step"===(n=e).type&&(r=n.id),n.items.forEach((function(e){var n;r&&(t.has(r)||t.set(r,[]),null===(n=t.get(r))||void 0===n||n.push(e))})))})),t},IR=function(e){var t=e.initItems,n=void 0===t?[]:t,r=e.children,o=e.submitHandler,i=e.formId,a=e.organismId,l=e.validations,u=e.editable,c=void 0===u||u,d=e.isPreview,p=void 0!==d&&d,h=e.isFormInEditMode,m=void 0===h||h,v=e.organismMetadata,g=e.isConfigurationMode,y=e.onConfigurationItemHandler,b=e.selectedConfigurationItemId,x=s([]),C=x[0],w=x[1],D=function(e){e&&(null==y||y(O(O({},e),{organismId:a})))},E=f((function(){return{dateFields:C,setDateFields:w,items:n,groupStepItemsByStepContainer:function(){return RR(n)},submitHandler:o,formId:i,validations:l,editable:c,isPreview:p,isFormInEditMode:m,organismMetadata:v,isConfigurationMode:g,onConfigurationItemClicked:D,selectedConfigurationItemId:b}}),[n,i,l,c,p,C,w,o,m,v,g,D,b]);return it(bf.Provider,O({value:E},{children:r}))};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},_R.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(gR||(gR={}));var LR="production"!==process.env.NODE_ENV?function(e){return Object.freeze(e)}:function(e){return e};function $R(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function o(){var e=n.location,t=e.pathname,o=e.search,i=e.hash,a=r.state||{};return[a.idx,LR({pathname:t,search:o,hash:i,state:a.usr||null,key:a.key||"default"})]}var i=null;n.addEventListener("popstate",(function(){if(i)d.call(i),i=null;else{var e=gR.Pop,t=o(),n=t[0],r=t[1];if(d.length)if(null!=n){var a=l-n;a&&(i={action:e,location:r,retry:function(){g(-1*a)}},g(a))}else"production"!==process.env.NODE_ENV&&function(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.");else v(e)}}));var a=gR.Pop,s=o(),l=s[0],u=s[1],c=zR(),d=zR();function p(e){return"string"==typeof e?e:WR(e)}function f(e,t){return void 0===t&&(t=null),LR(_R({pathname:u.pathname,hash:"",search:""},"string"==typeof e?UR(e):e,{state:t,key:Math.random().toString(36).substr(2,8)}))}function h(e,t){return[{usr:e.state,key:e.key,idx:t},p(e)]}function m(e,t,n){return!d.length||(d.call({action:e,location:t,retry:n}),!1)}function v(e){a=e;var t=o();l=t[0],u=t[1],c.call({action:a,location:u})}function g(e){r.go(e)}null==l&&(l=0,r.replaceState(_R({},r.state,{idx:l}),""));var y={get action(){return a},get location(){return u},createHref:p,push:function e(t,o){var i=gR.Push,a=f(t,o);if(m(i,a,(function(){e(t,o)}))){var s=h(a,l+1),u=s[0],c=s[1];try{r.pushState(u,"",c)}catch(e){n.location.assign(c)}v(i)}},replace:function e(t,n){var o=gR.Replace,i=f(t,n);if(m(o,i,(function(){e(t,n)}))){var a=h(i,l),s=a[0],u=a[1];r.replaceState(s,"",u),v(o)}},go:g,back:function(){g(-1)},forward:function(){g(1)},listen:function(e){return c.push(e)},block:function(e){var t=d.push(e);return 1===d.length&&n.addEventListener("beforeunload",VR),function(){t(),d.length||n.removeEventListener("beforeunload",VR)}}};return y}function VR(e){e.preventDefault(),e.returnValue=""}function zR(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function WR(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,o=void 0===r?"":r,i=e.hash,a=void 0===i?"":i;return o&&"?"!==o&&(n+="?"===o.charAt(0)?o:"?"+o),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function UR(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}
|
132
132
|
/**
|
133
133
|
* React Router v6.3.0
|
134
134
|
*
|
@@ -148,5 +148,5 @@ function ih(e){return"[object Object]"===Object.prototype.toString.call(e)}funct
|
|
148
148
|
* LICENSE.md file in the root directory of this source tree.
|
149
149
|
*
|
150
150
|
* @license MIT
|
151
|
-
*/function aI(){return aI=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},aI.apply(this,arguments)}function sI(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}const lI=["onClick","reloadDocument","replace","state","target","to"],uI=["aria-current","caseSensitive","className","end","style","to","children"];function cI(e){let{basename:t,children:n,window:r}=e,o=d();null==o.current&&(o.current=$R({window:r}));let i=o.current,[a,l]=s({action:i.action,location:i.location});return m((()=>i.listen(l)),[i]),y(iI,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i})}process.env.NODE_ENV;const dI=n((function(e,t){let{onClick:n,reloadDocument:r,replace:o=!1,state:i,target:a,to:s}=e,l=sI(e,lI),u=eI(s),c=function(e,t){let{target:n,replace:r,state:o}=void 0===t?{}:t,i=rI(),a=nI(),s=oI(e);return h((t=>{if(!(0!==t.button||n&&"_self"!==n||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t))){t.preventDefault();let n=!!r||WR(a)===WR(s);i(e,{replace:n,state:o})}}),[a,i,s,r,o,n,e])}(s,{replace:o,state:i,target:a});return y("a",aI({},l,{href:u,onClick:function(e){n&&n(e),e.defaultPrevented||r||c(e)},ref:t,target:a}))}));"production"!==process.env.NODE_ENV&&(dI.displayName="Link");const pI=n((function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:o="",end:i=!1,style:a,to:s,children:l}=e,u=sI(e,uI),c=nI(),d=oI(s),p=c.pathname,f=d.pathname;r||(p=p.toLowerCase(),f=f.toLowerCase());let h,m=p===f||!i&&p.startsWith(f)&&"/"===p.charAt(f.length),v=m?n:void 0;h="function"==typeof o?o({isActive:m}):[o,m?"active":null].filter(Boolean).join(" ");let g="function"==typeof a?a({isActive:m}):a;return y(dI,aI({},u,{"aria-current":v,className:h,ref:t,style:g,to:s}),"function"==typeof l?l({isActive:m}):l)}));function fI(e){"production"!==process.env.NODE_ENV&&function(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params\n\nIf you're unsure how to load polyfills, we recommend you check out https://polyfill.io/v3/ which provides some recommendations about how to load polyfills only for users that need them, instead of for every user.");let t=d(hI(e)),n=nI(),r=f((()=>{let e=hI(n.search);for(let n of t.current.keys())e.has(n)||t.current.getAll(n).forEach((t=>{e.append(n,t)}));return e}),[n.search]),o=rI();return[r,h(((e,t)=>{o("?"+hI(e),t)}),[o])]}function hI(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}"production"!==process.env.NODE_ENV&&(pI.displayName="NavLink");var mI,vI,gI,yI,bI,xI,CI,wI,DI,EI,kI,SI,OI,AI,BI,TI,FI,PI,MI,NI,jI,RI,II,_I,LI,$I,VI,zI,WI,UI,HI,qI,KI,XI,GI,YI,ZI=function(e){var t=e.stateListenerId,n=e.isAction,r=wf().stateConfig,o=!0,i=!1;if(!t)return{isStateDisabled:i,isStateVisible:o};var a=(null==r?void 0:r[t])||{},s=a||{},l=s.visible,u=void 0===l||l,c=s.disabled,d=void 0!==c&&c;return n&&t in r&&(o=Boolean(u),i=Boolean(d)),{isStateDisabled:i,isStateVisible:o,stateValue:a}},JI=function(e){var t=s(1),n=t[0],r=t[1],o=n+1<=e,i=n-1>=1,a=h((function(t){var o=t instanceof Function?t(n):t;if(!(o>=1&&o<=e))throw new Error("Step not valid");r(o)}),[e,n]);return[n,{goToNextStep:function(){return o&&r((function(e){return e+1}))},goToPrevStep:function(){return i&&r((function(e){return e-1}))},canGoToNextStep:o,canGoToPrevStep:i,setStep:a,reset:function(){return r(1)}}]},QI=function(e){return f((function(){return e.filter((function(e){return e.isRequired})).every((function(e){switch(e.consentCaptureProps.type){case"radioButton":return e.consentCaptureProps.value===e.consentCaptureProps.acceptValue;case"checkbox":return e.consentCaptureProps.value;default:return!0}}))}),[e])},e_=function(e){var t,n=e.initialStepsCount,r=void 0===n?0:n,o=e.children,i=xf(),a=i.items,l=i.groupStepItemsByStepContainer,u=nP(),c=null==u?void 0:u.watch(),d=l(),p=s(null!==(t=d.size)&&void 0!==t?t:r),m=p[0],v=p[1],g=JI(m),y=g[0],b=g[1],x=b.reset,C=b.setStep,w=b.canGoToPrevStep,D=f((function(){return function(e){return e.map((function(e){var t=[],n=function(e){"container"===e.instance&&"form_step"===e.type?t.push(e):"container"===e.instance&&e.items.forEach(n)};return n(e),t})).flat()}(a)}),[a]),E=h((function(e){var t,n,r,o,i,a=null==u?void 0:u.getValues(),s=null!==(i=null===(o=null===(r=null===(n=null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.props)||void 0===n?void 0:n.formStepProps)||void 0===r?void 0:r.conditionConfig)||void 0===o?void 0:o.criteriaList)&&void 0!==i?i:[],l=xM({criteriaList:s,data:a}),c=s.some((function(e){return l(e)}));return!s.length||c}),[u]),k=f((function(){var e=y,t=function(n){var r=E(n),o=D[e++];return!(!r||y===D.length)||(y+1===D.length?r:o?t(o):e+1<=D.length)},n=D[e];return t(n)}),[y,D,E,JSON.stringify(c)]),S=h((function(){if(k)for(var e=y+1;e<=D.length;){var t=D[e-1];if(E(t))return void C(e);e++}}),[k,y,D]),A=h((function(){if(w)for(var e=y-1;e>=1;){var t=D[e-1];if(E(t))return void C(e);e--}}),[w,y,D,E]),B=f((function(){return{canGoToNextStep:k,canGoToPrevStep:w,goToNextStep:S,goToPrevStep:A,currentStep:y,reset:x,setStep:C,steps:m,setInitSteps:v}}),[y,m,k]);return it(hf.Provider,O({value:B},{children:o}))},t_={enter:!1},n_=function(e){var n=e.mode,r=void 0===n?"onChange":n,o=e.children,i=e.id,a=e.isTrigger,s=function(e={}){const n=t.useRef(),[r,o]=t.useState({isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}});n.current?n.current.control._options=e:n.current={...tM(e),formState:r};const i=n.current.control,a=t.useCallback((e=>{aP(e,i._proxyFormState,!0)&&(i._formState={...i._formState,...e},o({...i._formState}))}),[i]);return uP({subject:i._subjects.state,callback:a}),t.useEffect((()=>{i._stateFlags.mount||(i._proxyFormState.isValid&&i._updateValid(),i._stateFlags.mount=!0),i._stateFlags.watch&&(i._stateFlags.watch=!1,i._subjects.state.next({})),i._removeUnmounted()})),n.current.formState=oP(r,i._proxyFormState),n.current}({mode:r}),u=Ef({id:i,isTrigger:a}),c=s.formState.isDirty;return l((function(){c&&!t_.enter&&(u("start"),t_.enter=!0)}),[c]),it(rP,O({},s,{children:it(e_,{children:o})}))},r_=function(e,t){switch(t){case"month_year_date":var n=e.split("/"),r=n[0],o=n[1];return"".concat(o,"-").concat(r,"-01");case"day_month_year_date":var i=e.split("/"),a=i[0];r=i[1],o=i[2];return"".concat(o,"-").concat(r,"-").concat(a);case"month_day_year_date":var s=e.split("/");r=s[0],a=s[1],o=s[2];return"".concat(o,"-").concat(r,"-").concat(a);case"year_month_day_date":var l=e.split("/");o=l[0],r=l[1],a=l[2];return"".concat(o,"-").concat(r,"-").concat(a);default:return e}},o_=function(e){var t,n=e.order,o=void 0===n?0:n,i=e.id,a=e.metadata,l=e.formStepStyles,u=nP(),c=s({}),d=c[0],p=c[1],f=xf(),h=f.formId,m=f.submitHandler,v=f.dateFields,g=f.isFormInEditMode,y=f.organismMetadata,b=xf().groupStepItemsByStepContainer,x=vf().onCloseModal,C=Object.keys(null!==(t=null==y?void 0:y.popupPayload)&&void 0!==t?t:{})[0],w=r(hf),D=w.currentStep,E=w.canGoToNextStep,k=w.canGoToPrevStep,S=w.goToNextStep,A=w.goToPrevStep,F=w.reset,P=w.setStep,M=o+1,N=b().get(i)||[];return D!==M?null:at("div",O({style:O({display:"flex",flexDirection:"column",width:"100%",gap:"16px"},l)},{children:[N.map((function(e){return it(g_,{item:e,setFormData:p,formData:d},e.id)})),(!(null==a?void 0:a.hasOwnButton)||(null==y?void 0:y.isFormInsidePopUp))&&g&&at("div",O({style:{display:"flex",gap:"16px"}},{children:[it(N_,{fullWidth:!1,text:k?"Back":"Cancel",variant:"secondary",onClick:function(){k?A():(F(),P(1),(null==y?void 0:y.isFormInsidePopUp)&&x(C))}}),it(N_,{fullWidth:!1,text:E?"Next":"Submit",variant:"primary",onClick:function(){return B(void 0,void 0,void 0,(function(){var e,t;return T(this,(function(n){switch(n.label){case 0:return[4,u.trigger()];case 1:return(e=n.sent())?E?(S(),[2]):(t=u.getValues(),v.forEach((function(e){if(e.id in t){var n=t[e.id];t[e.id]=r_(n,e.dateType)}})),e&&h?[4,null==m?void 0:m({formId:h,data:t})]:[3,3]):($T({message:"Please fill all required fields",type:"error"}),[2]);case 2:n.sent(),n.label=3;case 3:return(null==y?void 0:y.isFormInsidePopUp)&&x(C),[2]}}))}))}})]}))]}))},i_=function(e){var t=e.id,n=e.type,r=e.wide,o=e.props,i=e.compact,a=e.children,u=e.metadata,c=e.isMobile,d=xf(),p=d.isConfigurationMode,f=d.onConfigurationItemClicked,h=d.selectedConfigurationItemId,m=r||{},v=m.containerProps,g=void 0===v?{}:v,y=m.containerStyle,b=void 0===y?{}:y,x=i||{},C=x.containerProps,w=void 0===C?{}:C,D=x.containerStyle,E=void 0===D?{}:D,k=c||Vp("xs"),S=k?E:b,A=k?w:g,B=O(O({},o),A),T={id:t,isTrigger:null==u?void 0:u.isTrigger},F={slider:it(D_,O({},B,{children:a})),form:it(n_,O({},null==o?void 0:o.formProps,T,{children:a})),form_step:it(o_,O({id:t},null==o?void 0:o.formStepProps,{metadata:u}))},P=ZI({isAction:null==u?void 0:u.isAction,id:t}).isStateVisible;Ef(T);var M=function(e){var t=s(),n=t[0],r=t[1],o=s(!1),i=o[0],a=o[1],u=s(0),c=u[0],d=u[1],p=s(!1),f=p[0],h=p[1],m=wf(),v=m.stateConfig,g=m.stateHandler;return l((function(){if(null==e?void 0:e.length){var t=e.find((function(e){return"stateModifier"===e.role&&"view"===e.event}));r(null==t?void 0:t.stateKey)}}),[e]),l((function(){var e=function(){d(document.documentElement.scrollTop),h(document.documentElement.scrollTop>c)};return n&&window.addEventListener("scroll",e),function(){n&&window.removeEventListener("scroll",e)}}),[c,n]),l((function(){var e;if(n&&!i){var t=document.getElementById(n),r=bF(t);r&&(a(r),null==g||g(O(O({},v),((e={})[n]=!v[n],e))))}}),[n,i,bF,f,c]),n}(null==u?void 0:u.stateConfig);if(!P)return null;var N=it(wF,O({containerProps:B,metadata:u,style:S,onClick:function(e){e.stopPropagation(),f({entityId:t,entityType:n,entity:"container",entityMetadata:u})},type:n,isConfigurationMode:p,id:p?"configurationWrapper":M,$selected:!!h&&h===t},{children:(null==F?void 0:F[n])||a}),"".concat(t,".").concat(k?"mobile":"desktop"));return N},a_=function(e){var t=e.config,n=e.tabsProps,r=e.id,o=e.type,i=e.items,a=e.metadata,l=e.formData,u=e.setFormData,c=e.isMobile,d=e.isConfigurationMode,p=void 0!==d&&d,f=s(),h=f[0],m=f[1];if(!i||!i.length)return null;var v=c||Vp("xs");return it(b_,O({userInitials:"UN",logOutHandler:function(){return console.log("log out")},goToAccountInfo:function(){return console.log("account info page")}},{children:it(IR,O({organismMetadata:a,organismId:r,initItems:i,isConfigurationMode:p,onConfigurationItemHandler:function(e){m(null==e?void 0:e.entityId)},selectedConfigurationItemId:h},{children:it(i_,O({id:r,type:o,metadata:a,isMobile:v},t,{children:i.map((function(e){return it(g_,{item:e,tabsProps:n,formData:l,setFormData:u,isMobile:v},e.id)}))}))}))}),"".concat(r,".").concat(v?"mobile":"desktop"))},s_=function(e){var t=e.formData,n=e.setFormData,r=e.isMobile,o=A(e,["formData","setFormData","isMobile"]),i=DM(o);return i?it(a_,O({},i,{isMobile:r,formData:t,setFormData:n})):null},l_=function(e){var t=e.attributes,n=e.formData,r=e.config,o=e.htmlElementId,i=e.configurationItemInfo,a=t||{},l=a.consent,u=a.conditionConfig,c=(r||{}).props,d=null==l?void 0:l.consent,p=(null==d?void 0:d.defaultSelection)||"confirmation",h=s(""),m=h[0],v=h[1],g=s(p),y=g[0],b=g[1],x=function(e){return v((function(t){return t?"":e}))},C=function(e){return b(e)},w=bM(null==u?void 0:u.conditionConfig,n),D=f((function(){switch(null==d?void 0:d.methodOfCapture){case"button":return{type:"button",acceptButton:{text:null==d?void 0:d.confirmationButtonText,onClick:function(){return alert("Accepted")}},denyButton:{text:null==d?void 0:d.rejectionButtonText,onClick:function(){return alert("Denied")}}};case"checkbox":return{id:null==d?void 0:d.id,type:"checkbox",label:JSON.stringify(null==d?void 0:d.acknowledgment),value:!!m,onChange:x};default:return{type:"radioButton",acceptValue:"confirmation",value:y,onChange:C,isRow:!0,items:[{id:"confirmation",label:null==d?void 0:d.confirmationButtonText},{id:"rejection",label:null==d?void 0:d.rejectionButtonText}],name:"consent_confirmation"}}}),[l,m,y]);return d&&w?at(u_,O({id:(null==i?void 0:i.isConfigurationMode)?"configurationWrapper":o},i,{children:[it($_,{text:JSON.stringify(d.language),consentCaptureProps:D,clearStyles:!0}),"field_error"===(null==c?void 0:c.state)&&it(EC,{text:"This field is required"})]})):null},u_=et.div(mI||(mI=P(["\n width: 100%;\n ","\n"],["\n width: 100%;\n ","\n"])),xF),c_=function(e){var t={text:e.label,validate:function(){return!0}},n=e.rule,r=d_(n);if(r||p_(n)){var o=function(e,t){return function(n){return void 0===n&&(n=0),e?n<=t:n>=t}}(r,r?n.MAX:n.MIN);switch(n.type){case"COUNT":t.validate=function(e){return o(null==e?void 0:e.length)};break;case"NUMBER_COUNT":t.validate=function(e){return o(null==e?void 0:e.replace(/\D/g,"").length)};break;case"CAPITAL_COUNT":t.validate=function(e){return o(((null==e?void 0:e.match(/[A-Z]/g))||[]).length)};break;case"SPECIAL_CHARACTERS_COUNT":t.validate=function(e){return o(null==e?void 0:e.replace(/[a-z]|\d|\s/gi,"").length)};break;case"LOWER_CASE_COUNT":t.validate=function(e){return o(((null==e?void 0:e.match(/[a-z]/g))||[]).length)}}}return t},d_=function(e){return!!(null==e?void 0:e.MAX)},p_=function(e){return!!(null==e?void 0:e.MIN)},f_=function(e){var t=e.fields,n=e.validations,r=e.form,o=e.validationLabel,i=e.validationState,a=e.configurationItemInfo,s=n.map(c_),l=null==r?void 0:r.watch("password.value");return at(h_,O({id:"configurationWrapper"},a,{children:[t.map((function(e){return it(FM,{control:null==r?void 0:r.control,field:e},e.name.toString())})),it(LM,{value:l,isSubmitted:null==r?void 0:r.formState.isDirty,rules:s,label:o,validationState:i})]}))},h_=et.div(vI||(vI=P(["\n gap: 16px;\n width: 100%;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n ","\n"],["\n gap: 16px;\n width: 100%;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n ","\n"])),xF),m_={instance:"container",organismLibraryContainerId:"a27bcdcf-9037-4a5f-a717-991625b2abe2",containerLibraryId:"20580d8e-2e65-4f74-a3e3-8813967c4d47",type:"column",ordering:0,config:{wide:{containerProps:{gap:"M",alignItems:"flex-start",paddingTop:"XL",paddingLeft:"L",paddingRight:"L",paddingBottom:"S"},containerStyle:{width:"100%",flexDirection:"column",justifyContent:"flex-start",backgroundColor:"#ffffff"}},compact:{containerProps:{gap:"M",alignItems:"center"},containerStyle:{width:"100%",flexDirection:"column",backgroundColor:"#fdfcfc"}}},metadata:{group:["form"]},item:[{type:"column",config:{wide:{containerProps:{gap:"0",alignItems:"flex-start",paddingTop:"L",paddingLeft:"XL",cornerRadius:"S",paddingRight:"XL",paddingBottom:"L"},containerStyle:{width:"100%",boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.25)",flexDirection:"column",justifyContent:"flex-start",backgroundColor:"#ffffff"}},compact:{containerProps:{gap:"M",alignItems:"flex-start",paddingTop:"L",paddingLeft:"L",cornerRadius:"S",paddingRight:"L",paddingBottom:"L"},containerStyle:{width:"100%",boxShadow:"0px 1px 5px rgba(0, 0, 0, 0.2)",flexDirection:"column",justifyContent:"flex-start",backgroundColor:"#ffffff"}}},instance:"container",metadata:{group:["form"]},ordering:0,containerLibraryId:"20580d8e-2e65-4f74-a3e3-8813967c4d47",organismLibraryContainerId:"f45c44db-112f-43ef-a23c-569f2f033261",item:[{type:"column",config:{wide:{containerProps:{gap:"S",alignItems:"flex-start",paddingTop:"M",paddingLeft:"XL",paddingRight:"XL",paddingBottom:"S"},containerStyle:{width:"100%",flexDirection:"column"}},compact:{containerProps:{gap:"M",alignItems:"flex-start"},containerStyle:{width:"100%",flexDirection:"column"}}},instance:"container",metadata:{group:["form"]},ordering:0,containerLibraryId:"20580d8e-2e65-4f74-a3e3-8813967c4d47",organismLibraryContainerId:"f78a1853-935b-4bd5-a8fe-e92314049ca5",item:[{type:"process_steps",config:{},instance:"molecule",metadata:{},ordering:0,attributes:{orientation:{id:"26856456-06d0-40bc-9a99-323232f1cc98",value:"horizontal",options:[{id:"horizontal",label:"Horizontal"},{id:"vertical",label:"Vertical"}],required:!1,attributeType:"select"},processSteps:{id:"6b2ea97f-c77b-4da1-ad5d-21838da61f70",steps:[{link:{id:null,attributeType:"link",type:"internal_link",externalLink:"",internalLink:"",name:"",required:!1},order:0,title:{text:'[{"type":"paragraph","children":[{"text":"User Activated"}]}]'},status:"incomplete",description:{text:null},id:"24d47578-4160-43ae-82a4-574a784c1ea6"},{link:{id:null,attributeType:"link",type:"internal_link",externalLink:"",internalLink:"",name:"",required:!1},order:1,title:{text:'[{"type":"paragraph","children":[{"text":"Button 1 Clicked"}]}]'},status:"incomplete",description:{text:null},id:"051506e1-1a72-40db-bed0-b05901242812"},{id:"c37efb0d-0607-42a4-b1d8-30c373a48f3e",link:{id:null,attributeType:"link",type:"internal_link",externalLink:"",internalLink:"",name:"",required:!1},title:{text:'[{"type":"paragraph","children":[{"text":"Button 2 Clicked"}]}]'},description:{text:null},status:"incomplete",order:2}],journeyId:"50978160-7201-440a-bd3d-983e6bf64f72",attributeType:"process_steps"}},moleculeLibraryId:"1575fda9-07c6-4701-93ab-356b5ce8ecd5",organismLibraryMoleculeId:"14cf3042-175b-4266-810f-9a124bceedfc",item:[],id:"2b0ad112-7ec4-4d31-a599-ecb0e9b97a7e"}],id:"680385bf-4035-4ea7-89e9-71417c4d6010"},{type:"row",config:{wide:{containerProps:{gap:"S",alignItems:"center",paddingTop:"M",paddingLeft:"XL",paddingRight:"XL",paddingBottom:"M"},containerStyle:{width:"100%",justifyContent:"space-between"}},compact:{containerProps:{gap:"L",paddingTop:"L",paddingLeft:"5XL",paddingRight:"5XL",paddingBottom:"L"},containerStyle:{width:"100%",flexDirection:"column"}}},instance:"container",metadata:{group:["form"]},ordering:1,containerLibraryId:"997e0b11-2dc6-4252-a36f-adca5328e9af",organismLibraryContainerId:"abfbefe6-5ca9-4478-8616-6aff1b57203e",item:[{type:"button",config:{props:{size:"small",state:"enabled",styles:{},variant:"custom",disabled:!1,textSize:0,textColor:"#050505",buttonFont:"M",colorTheme:"light",buttonColor:"#ffffff",buttonStyle:{},buttonStroke:"#1a434e",cornerRadius:"2XL",containerStyle:{},verticalPadding:"S",hoverButtonColor:"#ffffff",hoverStrokeColor:"#1a434e",horizontalPadding:"XL",inactiveTextColor:"#050505",inactiveButtonColor:"#e5e1e1",inactiveStrokeColor:"#1a434e"}},instance:"molecule",metadata:{group:["form"],isAction:!1,isTrigger:!1},ordering:0,attributes:{title:{id:"f8b9e548-9627-4b87-9266-ef9ed466591e",text:'[{"type":"paragraph","children":[{"text":"Details","id":"f4710141-c448-4d6b-abd4-c3374fca33c5"}],"id":"4d1007c3-f89a-4c64-bf92-d5960d7869bc"}]',required:!1,isRichText:!0,attributeType:"text",showRichTextToolbar:!0},action:{id:"c60165ce-65f2-47ca-ae1d-cd8678280f9c",action:{type:"reset",reset:{}},attributeType:"action"},actionTypes:{id:"130da1fa-03c0-46c0-87e0-93609326979e",value:"reset",options:[{id:"link",label:"Direct to Link",value:"link"},{id:"popup",label:"Open Popup",value:"popup"},{id:"drawer",label:"Open Drawer",value:"drawer"},{id:"download",label:"Download",value:"download"},{id:"submit",label:"Submit Data",value:"submit"},{id:"reset",label:"Reset",value:"reset"},{id:"destroy",label:"Close/Cancel",value:"destroy"}],required:!0,attributeType:"select"}},moleculeLibraryId:"c6bf4dbd-77af-4788-a32d-5b5815bcbfae",organismLibraryMoleculeId:"f93dbc37-3b37-46dc-ac40-0c678e02fcd7",item:[],id:"483b03c0-7335-40a4-baad-24a93b90aa48"},{type:"text",config:{props:{textColor:"#FFFFFF"}},instance:"molecule",metadata:{group:["form","display-only-form"]},ordering:1,attributes:{text:{id:"92552646-4ea8-4e7d-9d77-393345146172",text:'[{"type":"paragraph","children":[{"text":"Estimated Time: 1-2 Days","id":"b78a56a8-82e9-4847-860c-8559b9fc5d58"}],"id":"e2174573-949c-4f2f-8e7d-099ab50e3161"}]',required:!1,isRichText:!0,attributeType:"text",showRichTextToolbar:!0},color:{id:"38f5d006-9657-481e-914a-72f9087ec030",color:"#1a434e",required:!1,attributeType:"color"},seoStyle:{id:"d2e46744-449c-4f54-8edf-6aa64c73cb83",value:"h3",options:[{id:"h1",label:"H1",value:"h1"},{id:"h2",label:"H2",value:"h2"},{id:"h3",label:"H3",value:"h3"},{id:"h4",label:"H4",value:"h4"},{id:"h5",label:"H5",value:"h5"},{id:"h6",label:"H6",value:"h6"}],required:!1,attributeType:"select"},fontVariant:{id:"c57b03cb-b219-4886-a8e7-00969f1dc213",value:"L",options:[{id:"XS",label:"Extra Small Text",value:"XS"},{id:"S",label:"Small Text",value:"S"},{id:"M",label:"Normal Text",value:"M"},{id:"L",label:"Small Sub Title",value:"L"},{id:"XL",label:"Sub Title",value:"XL"},{id:"2XL",label:"Title",value:"2XL"},{id:"3XL",label:"Large Title",value:"3XL"}],attributeType:"select"}},moleculeLibraryId:"f7751571-4313-4443-8aee-13ad6309f7d6",organismLibraryMoleculeId:"d3f78021-674e-47f3-862c-8d41769a23d1",item:[],id:"be4378cd-d04f-43aa-a582-55c861806596"}],id:"bc458c6b-6085-4e3d-90ae-a1c7d5fa5ae5"}],id:"8f1a07f0-da40-4b39-ae6f-699f0c27b744"}],id:"a6682271-e0ff-488e-9eb7-5bd7e3f04697"},v_=function(e){var t,n,o=e.type,i=e.config,a=e.attributes,s=e.tabsProps,l=e.form,u=e.id,c=e.formData,d=e.setFormData,p=e.isMobile,f=e.metadata,m=e.organismLibraryMoleculeId,v=rI(),g=xf(),y=g.formId,b=g.editable,x=void 0===b||b,C=g.isPreview,w=void 0!==C&&C,D=g.dateFields,E=g.validations,k=g.submitHandler,S=g.isFormInEditMode,F=void 0===S||S,P=g.isConfigurationMode,M=g.onConfigurationItemClicked,N=g.selectedConfigurationItemId,j=Boolean(F&&x),R=vf(),I=R.setActivePopUpById,_=R.setDrawerVisible,L=R.setActionContent,$=r(Df),V=$.userInitials,z=$.logOutHandler,W=$.goToAccountInfo,U=$.username,H=fI(),q=H[0],K=H[1],X=(null==a?void 0:a.link)||(null===(n=null===(t=null==a?void 0:a.action)||void 0===t?void 0:t.action)||void 0===n?void 0:n.link),G=h((function(e){if(X&&e){var t=Zf(kf,e);if(w)K(Jf(q,e,w));else{var n={"account-information":"/account-info","forgot-password":"/forgot-password","change-password":"/change-password",login:"/login","account-creation":"/account-creation",landing:"/landing"},r=(null==n?void 0:n[t])||(null==n?void 0:n[e]);v(r||{pathname:"/landing",search:"?".concat(Jf(q,e,w).toString())})}}}),[q,K,X,w,v]),Y=f||{},Z=Y.stateListenerId,J=Y.isAction,Q=ZI({stateListenerId:Z,isAction:J}),ee=Q.isStateDisabled,te=Q.isStateVisible,ne=Q.stateValue,re=h((function(e){null==e||e.stopPropagation(),M({entityType:o,entity:"molecule",entityId:u,entityMetadata:f,organismLibraryMoleculeId:m})}),[M,o,u,f,m]),oe={isConfigurationMode:P,onClick:P?re:void 0,$selected:N===u},ie=function(e){(null==oe?void 0:oe.isConfigurationMode)&&(null==oe?void 0:oe.onClick)&&(e.preventDefault(),e.stopPropagation(),oe.onClick(e))};if(!te)return null;return function(){var e,t,n,r,h,m,v,g,b,x,C,w,S;switch(o){case"text":var F=a||{},M=F.text,N=F.seoStyle,R=F.fontVariant,$=F.color,H=i.props,q=null==N?void 0:N.value,K=null==R?void 0:R.value,X=null!==(e=null==$?void 0:$.color)&&void 0!==e?e:null==H?void 0:H.textColor;return it(DF,O({},M,H,{seoTag:q,fontVariant:K,textColor:X,htmlElementId:u,configurationItemInfo:oe}));case"button":var Y=a||{},Z=Y.title,J=Y.action,Q=(i||{}).props,te=void 0===Q?{}:Q,re=te.variant,ae=void 0===re?"primary":re,se=A(te,["variant"]),le=(null==J?void 0:J.action)||{},ue=le.link,ce=le.popup;le.drawer;var de=le.download,pe={link:function(){return eh(ue)?G(null==ue?void 0:ue.internalLink):Qf(null==ue?void 0:ue.externalLink)},popup:function(){(null==ce?void 0:ce.id)&&I(null==ce?void 0:ce.id)},drawer:function(){_(!0),L(m_)},download:function(){return de?(e=de.url,t=de.name,void 0===e&&(e=""),void 0===t&&(t="Downloaded file"),B(void 0,void 0,void 0,(function(){var n,r,o,i;return T(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),[4,fetch(e)];case 1:return[4,a.sent().blob()];case 2:return n=a.sent(),r=URL.createObjectURL(n),(o=document.createElement("a")).href=r,o.download=t,o.click(),URL.revokeObjectURL(r),[3,4];case 3:return i=a.sent(),$T({message:"Failed to download the file: ".concat(i),type:"error"}),[3,4];case 4:return[2]}}))}))):$T({message:"File not found to download",type:"warning"});var e,t},submit:function(){return B(void 0,void 0,void 0,(function(){var e,t;return T(this,(function(n){switch(n.label){case 0:return[4,null==l?void 0:l.trigger()];case 1:return e=n.sent(),t=null==l?void 0:l.getValues(),D.forEach((function(e){if(e.id in t){var n=t[e.id];t[e.id]=r_(n,e.dateType)}})),e&&y&&(null==k||k({formId:y,data:null==l?void 0:l.getValues()})),[2]}}))}))},reset:function(){return null},destroy:function(){return null}};return it(N_,O({text:null==Z?void 0:Z.text,isRichText:!0},se,{variant:ae,elementId:u,link:P?void 0:nh(ue),onClick:P?function(e){ie(e)}:pe[(null===(t=null==J?void 0:J.action)||void 0===t?void 0:t.type)||"link"],disabled:ee,stateConfig:null==f?void 0:f.stateConfig,metadata:f,htmlElementId:u,configurationItemInfo:oe}));case"image":var fe=a||{},he=fe.image,me=fe.link,ve=fe.altText,ge=(H=i.props,P||ee),ye=(null==he?void 0:he.imageSource)||(null===(n=null==he?void 0:he.imageFile)||void 0===n?void 0:n.url)||"";return it(C_,O({id:u,src:ye,onClick:ge?void 0:function(){return eh(me)?G(null==me?void 0:me.internalLink):Qf(null==me?void 0:me.externalLink)},link:ge?void 0:nh(me),altText:null==ve?void 0:ve.text},H,{metadata:f,htmlElementId:u,configurationItemInfo:oe}));case"video":var be=a||{},xe=be.video,Ce=be.enableCoverImage,we=be.autoPlayVideo,De=be.coverImage,Ee=(H=i.props,(null==xe?void 0:xe.videoSource)||"");ye=(null==De?void 0:De.imageSource)||"";return it(FR,O({src:Ee,isOnClickDisabled:P,enableCoverImage:null==Ce?void 0:Ce.value,autoplay:null==we?void 0:we.value,coverImageSrc:ye},H,{isTrigger:null==f?void 0:f.isTrigger,moleculeId:u,htmlElementId:u,configurationItemInfo:oe}));case"header_tab_group":var ke=(s||{}).onTabChange,Se=(a||{}).tabGroup,Oe=(H=i.props,i.wide),Ae=i.compact,Be=(null==s?void 0:s.tabs)||(null==Se?void 0:Se.tabs)||[],Te=(null==s?void 0:s.activeTabKey)||(null==Se?void 0:Se.activeTabKey)||"";return it(wj,O({},H,{wide:Oe,compact:Ae,tabs:Be,activeTabKey:Te,onTabChange:P?void 0:ke,isMobile:p,htmlElementId:u,configurationItemInfo:oe}));case"input_field":var Fe=i.props,Pe=void 0===Fe?{}:Fe,Me=Pe.inputProps,Ne=void 0===Me?{}:Me,je=Pe.labelsProps,Re=void 0===je?{}:je,Ie=Pe.name,_e=void 0===Ie?"":Ie,Le=Pe.state,$e=A(Pe,["inputProps","labelsProps","name","state"]),Ve=a||{},ze=Ve.label,We=Ve.required,Ue=Ve.conditionConfig,He=(mt=((ht=Ve.dataModelField)||{}).dataModelField)||{},qe=He.defaultValue,Ke=He.entitySubtypeId,Xe=He.dataModelFieldId,Ge=He.format,Ye=(M=null==ze?void 0:ze.text,!!(null==We?void 0:We.value)),Ze=qe||"-",Je=(null==Ge?void 0:Ge.value)||"any",Qe=Ye?"REQUIRED":"OPTIONAL",et=O(O({},null==Ge?void 0:Ge.config),!j&&{maskPlaceholder:Ze}),tt=j?(null==Ne?void 0:Ne.placeholder)||"Enter ".concat(M?NC(rh(M)):"placeholder"):Ze,nt="".concat(Xe).concat(Ke?".".concat(Ke):"",".value")||_e||u;return wM({dataModelField:mt,setFormData:d}),it(kM,O({},$e,{name:nt,required:Ye,optional:!Ye,onInput:P?ie:void 0,inputProps:O(O({},Ne),{isEditMode:j,placeholder:tt,type:Je,config:et,disabled:ee}),labelsProps:O({label:M,isRichText:!0,ruleLabel:Qe},Re),conditionConfig:null==Ue?void 0:Ue.conditionConfig,control:null==l?void 0:l.control,state:Le,formData:c,htmlElementId:u,configurationItemInfo:oe}));case"select_field":var rt=(i||{}).props,at=void 0===rt?{}:rt,st=at.selectProps,lt=void 0===st?{}:st,ut=at.labelsProps,ct=(Re=void 0===ut?{}:ut,at.name),dt=void 0===ct?"":ct,pt=($e=A(at,["selectProps","labelsProps","name"]),a||{}),ft=(ze=pt.label,We=pt.required,pt.options),ht=pt.dataModelField,mt=(Ue=pt.conditionConfig,(ht||{}).dataModelField),vt=(M=null==ze?void 0:ze.text,Ye=null==We?void 0:We.value,(null==ft?void 0:ft.options)||[]);nt="".concat(null==mt?void 0:mt.dataModelFieldId).concat((null==mt?void 0:mt.entitySubtypeId)?".".concat(mt.entitySubtypeId):"",".value")||dt||u,qe=(null==lt?void 0:lt.value)||("success"===(null==$e?void 0:$e.state)?null===(r=null==vt?void 0:vt[0])||void 0===r?void 0:r.id:void 0);wM({defaultValue:qe,dataModelField:mt,setFormData:d});tt=M?NC(JSON.parse(M)):"placeholder";return it(RM,O({},$e,{name:nt,control:null==l?void 0:l.control,onClick:P?ie:void 0,selectProps:O(O({},lt),{optionsPresentation:"open_dropdown"===(null==$e?void 0:$e.state),options:vt,isRichText:!0,placeholder:(null==lt?void 0:lt.placeholder)||"Select ".concat(tt),disabled:ee}),defaultValue:qe,required:Ye,optional:!Ye,labelsProps:O(O({},Re),{label:M,isRichText:!0,ruleLabel:Ye?"REQUIRED":"OPTIONAL"}),conditionConfig:null==Ue?void 0:Ue.conditionConfig,formData:c,htmlElementId:u,configurationItemInfo:oe}));case"radio_button_field":var gt=(i||{}).props,yt=void 0===gt?{}:gt,bt=yt.radioButtonsProps,xt=void 0===bt?{}:bt,Ct=yt.labelsProps,wt=(Re=void 0===Ct?{}:Ct,yt.name),Dt=void 0===wt?"":wt,Et=($e=A(yt,["radioButtonsProps","labelsProps","name"]),a||{}),kt=(ze=Et.label,We=Et.required,ft=Et.options,ht=Et.dataModelField,Ue=Et.conditionConfig,mt=(ht||{}).dataModelField,M=null==ze?void 0:ze.text,Ye=null==We?void 0:We.value,(null==ft?void 0:ft.options)||[]);nt="".concat(null==mt?void 0:mt.dataModelFieldId).concat((null==mt?void 0:mt.entitySubtypeId)?".".concat(mt.entitySubtypeId):"",".value")||Dt||u,qe=(null==xt?void 0:xt.value)||("success"===(null==$e?void 0:$e.state)?null===(h=null==kt?void 0:kt[0])||void 0===h?void 0:h.id:void 0);return wM({defaultValue:qe,dataModelField:mt,setFormData:d}),it(Oj,O({},$e,{name:nt,control:null==l?void 0:l.control,onClick:P?ie:void 0,radioButtonsProps:O(O({},xt),{options:kt,disabled:ee}),defaultValue:qe,required:Ye,optional:!Ye,labelsProps:O(O({},Re),{label:M,isRichText:!0,ruleLabel:Ye?"REQUIRED":"OPTIONAL"}),conditionConfig:null==Ue?void 0:Ue.conditionConfig,formData:c,htmlElementId:u,configurationItemInfo:oe}));case"checkbox_field":var St=(i||{}).props,Ot=void 0===St?{}:St,At=Ot.checkboxesProps,Bt=void 0===At?{}:At,Tt=Ot.labelsProps,Ft=(Re=void 0===Tt?{}:Tt,Ot.name),Pt=void 0===Ft?"":Ft,Mt=($e=A(Ot,["checkboxesProps","labelsProps","name"]),a||{}),Nt=(ze=Mt.label,We=Mt.required,ft=Mt.options,ht=Mt.dataModelField,Ue=Mt.conditionConfig,mt=(ht||{}).dataModelField,M=null==ze?void 0:ze.text,Ye=null==We?void 0:We.value,nt="".concat(null==mt?void 0:mt.dataModelFieldId).concat((null==mt?void 0:mt.entitySubtypeId)?".".concat(mt.entitySubtypeId):"",".value")||Pt||u,(null==ft?void 0:ft.options)||[]);qe=(null==Bt?void 0:Bt.selectedIds)||("success"===(null==$e?void 0:$e.state)?[null===(m=null==Nt?void 0:Nt[0])||void 0===m?void 0:m.id]:void 0);return wM({defaultValue:qe,dataModelField:mt,setFormData:d}),it(NM,O({},$e,{name:nt,onClick:P?ie:void 0,control:null==l?void 0:l.control,checkboxesProps:O(O({},Bt),{options:Nt,disabled:ee}),defaultValue:qe,required:Ye,optional:!Ye,labelsProps:O(O({ruleLabel:Ye?"REQUIRED":"OPTIONAL"},Re),{label:M,isRichText:!0}),conditionConfig:null==Ue?void 0:Ue.conditionConfig,formData:c,htmlElementId:u,configurationItemInfo:oe}));case"consent":return it(l_,{attributes:a,formData:c,config:i,configurationItemInfo:oe});case"link":H=i.props,M=a.text;var jt=a.link;return it(jj,O({},H,{onClick:P?ie:void 0,$variant:null==H?void 0:H.variant,$styles:null==H?void 0:H.styles,text:M.text,isRichText:M.isRichText,disabled:ee,href:ee?void 0:nh(jt),isTrigger:null==f?void 0:f.isTrigger,moleculeId:u,htmlElementId:u,configurationItemInfo:oe}));case"password_setup_field":var Rt=a.passwordFieldLabel,It=a.reenteredPasswordFieldLabel,_t=i.props,Lt=_t.validationLabel,$t=_t.passwordInputProps,Vt=_t.reenteredPasswordInputProps,zt=(Le=_t.state,[O(O({},$t),{name:"password.value",type:"input",inputType:"password",placeholder:null!==(g=null===(v=null==$t?void 0:$t.inputProps)||void 0===v?void 0:v.placeholder)&&void 0!==g?g:"Enter Your Password",label:null!==(b=null==Rt?void 0:Rt.text)&&void 0!==b?b:"Password",required:!0,rules:{required:"Password is required"},labelsProps:O(O({},Rt),{ruleLabel:null}),state:Le}),O(O({},Vt),{name:"reenteredPassword.value",type:"input",inputType:"password",placeholder:null!==(C=null===(x=null==Vt?void 0:Vt.inputProps)||void 0===x?void 0:x.placeholder)&&void 0!==C?C:"Re-Enter Your Password",label:null!==(w=null==It?void 0:It.text)&&void 0!==w?w:"Re-Enter Your Password",required:!0,labelsProps:O(O({},It),{ruleLabel:null}),rules:{validate:{passwordMatch:function(e){return e===(null==l?void 0:l.getValues("password.value"))||"Your passwords do not match each other"}}},state:Le})]);return it(f_,{fields:zt,validations:E||[],form:l,validationState:Le,onClick:P?ie:void 0,validationLabel:(null==E?void 0:E.length)?Lt:void 0,configurationItemInfo:oe});case"account_button":var Wt=i.props,Ut=Wt.avatarProps,Ht=Wt.menuConfig,qt=O(O({},Ut),{content:O(O({},null==Ut?void 0:Ut.content),{initials:V})}),Kt=O(O({},Ht),{title:U||(null==Ht?void 0:Ht.title),options:null===(S=Ht.options)||void 0===S?void 0:S.map((function(e){switch(e.id){case"log-out":return O(O({},e),{onClick:z});case"account-information":return O(O({},e),{onClick:W});default:return e}}))});return it(pj,{onClick:P?ie:void 0,avatarProps:qt,menuConfig:Kt,configurationItemInfo:oe});case"process_steps":var Xt=a||{},Gt=Xt.orientation,Yt=Xt.processSteps,Zt=(ne||{}).steps,Jt=null==Zt?void 0:Zt.sort((function(e,t){return e.order-t.order})),Qt=Yt.steps.sort((function(e,t){return e.order-t.order})).map((function(e,t){var n,r,o,i;return O(O({},e),{link:null!==(r=null===(n=null==Jt?void 0:Jt[t])||void 0===n?void 0:n.link)&&void 0!==r?r:null==e?void 0:e.link,status:null!==(i=null===(o=null==Jt?void 0:Jt[t])||void 0===o?void 0:o.status)&&void 0!==i?i:null==e?void 0:e.status})}));return it(Uj,{isOnClickDisabled:P,orientation:p?"vertical":Gt.value,steps:Qt,metadata:f,isMobile:p,htmlElementId:u,configurationItemInfo:oe});case"checklist":var en=((a||{}).checklist||{}).items;H=(i||{}).props;return it(z_,{items:en,props:H,configurationItemInfo:oe,metadata:f});default:return it(ot,{children:"There is no such type of molecule yet."})}}()},g_=function(e){var t,n=e.item,r=e.tabsProps,o=e.formData,i=e.setFormData,a=e.isMobile,s=nP(),l=tI(),u=xf().organismMetadata;if("molecule"===n.instance)return l?it(v_,O({},n,{tabsProps:r,form:s,formData:o,setFormData:i,isMobile:a,metadata:O(O({},n.metadata),{stateListenerId:(null==u?void 0:u.stateListenerId)||n.id})})):it(cI,{children:it(v_,O({},n,{tabsProps:r,form:s,formData:o,setFormData:i,isMobile:a,metadata:O(O({},n.metadata),{stateListenerId:(null==u?void 0:u.stateListenerId)||n.id})}))});if(!n.items||!n.items.length)return null;var c="form"===n.type&&(null===(t=n.config.props)||void 0===t?void 0:t.activeChildrenIds)||[];return c.length?it(s_,{item:n,activeChildrenIds:c,formData:o,setFormData:i,isMobile:a}):it(i_,O({id:n.id,type:n.type,isMobile:a},n.config,{metadata:n.metadata},{children:n.items.map((function(e){return it(g_,{item:e,tabsProps:r,formData:o,setFormData:i,isMobile:a},e.id)}))}))},y_=function(e){var t,n,r,o=e.children,i=e.popupProps,a=wf(),u=a.stateConfig,c=a.stateHandler,d=s({}),p=d[0],h=d[1],m=s(!1),v=m[0],g=m[1],y=s(!1),b=y[0],x=y[1],C=s(null),w=C[0],D=C[1];Ef({id:null==w?void 0:w.id,isTrigger:!0});var E=function(e){var t,n,r=null==i?void 0:i.find((function(t){return t.id===e}));D(r||null),g(!0),(null===(n=u[e])||void 0===n?void 0:n.visible)||null==c||c(((t={})[e]={visible:!0},t))};l((function(){null==i||i.forEach((function(e){var t;(null===(t=u[e.id])||void 0===t?void 0:t.visible)&&E(e.id)}))}),[u]);var k=function(e){var t;u[e]&&(null==c||c(((t={})[e]={visible:!1,closed:!0},t))),D(null),g(!1)},S=it(g_,{item:p}),A=f((function(){return{actionContent:p,setActionContent:h,isModalVisible:v,isDrawerVisible:b,setDrawerVisible:x,setActivePopUpById:E,onCloseModal:k}}),[p,v,b]),B=w||{},T=B.config,F=B.content;return at(mf.Provider,O({value:A},{children:[w&&at(j_,O({size:null==T?void 0:T.size,open:v,onClose:function(){return k(w.id)},popupId:w.id,modalStyles:null==T?void 0:T.styles,withCloseIcon:null==T?void 0:T.withCloseIcon},{children:[null===(t=null==F?void 0:F.embedded)||void 0===t?void 0:t.map((function(e){var t;return it(IR,O({initItems:null===(t=null==e?void 0:e.body)||void 0===t?void 0:t.items},{children:it(g_,{item:null==e?void 0:e.body},e.id)}))})),(null==F?void 0:F.isi)&&it(g_,{item:null===(r=null===(n=null==w?void 0:w.content)||void 0===n?void 0:n.isi)||void 0===r?void 0:r.body})]})),it(eN,O({open:b,onClose:function(){x(!1)},anchor:"right"},{children:S})),o]}))},b_=function(e){var t=e.children,n=e.goToAccountInfo,r=e.userInitials,o=e.logOutHandler,i=e.username,a=f((function(){return{logOutHandler:o,goToAccountInfo:n,userInitials:r,username:i}}),[o,n,r,i]);return it(Df.Provider,O({value:a},{children:t}))},x_=function(e){var t=e.initStateConfig,n=e.children,r=e.stateHandler,o=f((function(){return{stateConfig:t,stateHandler:r}}),[t,r]);return it(Cf.Provider,O({value:o},{children:n}))},C_=function(e){var t,n=e.src,r=e.onClick,o=e.link,i=void 0===o?"":o,a=e.altText,s=void 0===a?"":a,l=e.styles,u=e.width,c=e.height,d=e.id,p=void 0===d?"":d,f=e.behaveAs,h=void 0===f?"regular":f,m=e.cornerRadius,v=void 0===m?0:m,g=e.htmlElementId,y=e.metadata,b=e.configurationItemInfo,x=Ef({id:p,isTrigger:null==y?void 0:y.isTrigger}),C=!!r,w={src:n,width:u,$styles:O({cursor:C?"pointer":"auto"},l),height:c,alt:s,cornerRadius:v,onClick:C?function(){null==r||r(),x("click")}:void 0},D=yf(),E=D.showAnnotations,k=D.annotationsList,S=D.isMLRReview,A=k.links.findIndex((function(e){return p===e.moleculeId||i===e.url}))+1,B=null!==(t=k.tags.map((function(e,t){var n;return(null===(n=e.moleculeIds)||void 0===n?void 0:n.some((function(e){return e===p})))?t:-1})))&&void 0!==t?t:[],T=B.length>0?B.filter((function(e){return-1!==e})):[];if(!n)return null;var F={background:it(tw,O({},w)),regular:it(ew,O({},w))};return at(w_,O({id:(null==b?void 0:b.isConfigurationMode)?"configurationWrapper":g,style:{position:"regular"===h?"relative":"static"}},b,{children:[F[h],S&&E&&it("span",O({style:{position:"absolute",bottom:-3,left:"50%",zIndex:1,transform:"translate(-50%, 100%)"}},{children:at(uF,{children:[!!A&&it(sF,{index:A,type:"link"}),T.length>0&&T.map((function(e){return it(sF,{index:e+1,type:"message"})}))]})}))]}))},w_=et.div(gI||(gI=P(["\n ","\n"],["\n ","\n"])),xF),D_=function(e){var t=e.children,n=e.autoplay,r=void 0===n||n,i=e.autoplayDuration,a=void 0===i?5e3:i,u=d(null),c=d(null),p=s(1),v=p[0],g=p[1],y=s(0),b=y[0],x=y[1],C=a<100?1e3*a:a,w=h((function(e){null!==c.current&&"400ms"!==c.current.style.transitionDuration&&(c.current.style.transitionDuration="400ms","prev"===e?v<=1?(x(0),g(null==t?void 0:t.length)):(x(c.current.clientWidth*(v-1)),g((function(e){return e-1}))):"next"===e&&(v>=t.length?(x(c.current.clientWidth*(t.length+1)),g(1)):(x(c.current.clientWidth*(v+1)),g((function(e){return e+1})))))}),[v,t]);l((function(){var e=function(){null!==c.current&&(v<=1&&(c.current.style.transitionDuration="10ms",x(c.current.clientWidth*v)),v>=t.length&&(c.current.style.transitionDuration="10ms",x(c.current.clientWidth*t.length)),c.current.style.transitionDuration="10ms")};return document.addEventListener("transitionend",e),function(){document.removeEventListener("transitionend",e)}}),[v,t]),l((function(){var e=function(){u.current&&clearInterval(u.current),c.current&&x(v>1?c.current.clientWidth*v:c.current.clientWidth),r&&(u.current=setInterval((function(){w("next")}),C))};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[v,r,C,t]),l((function(){return r&&(u.current&&clearInterval(u.current),u.current=setInterval((function(){w("next")}),C)),function(){u.current&&clearInterval(u.current)}}),[w,r,C]);var D=f((function(){if(t.length>1){var e=o.map(t,(function(e,t){return it(S_,{children:e},t)}));return F(F([it(S_,{children:t[t.length-1]},t.length+1)],e,!0),[it(S_,{children:t[0]},t.length+2)],!1)}return it(S_,{children:t[0]})}),[t]);m((function(){null!==c.current&&x(c.current.clientWidth*v)}),[]);return at(E_,{children:[it(k_,O({ref:c,translateX:b},{children:D})),at(O_,{children:[it(A_,O({arrowSide:"left"},{children:it(fF,{size:32,color:"white",name:"CaretLeft",withoutOpacityEffect:!0,onClick:function(){return w("prev")}})})),it(B_,{children:o.map(t,(function(e,t){return it(rt,O({onClick:function(){return e=t,void(c.current&&(c.current.style.transitionDuration="400ms",g(e+1),x(c.current.clientWidth*(e+1))));var e}},{children:it(cF,{active:t===v-1,activeColor:"white",inactiveColor:"gray3"})}),t)}))}),it(A_,O({arrowSide:"right"},{children:it(fF,{size:32,color:"white",name:"CaretRight",withoutOpacityEffect:!0,onClick:function(){return w("next")}})}))]})]})},E_=et.section(yI||(yI=P(["\n position: relative;\n overflow: hidden;\n width: 100%;\n height: 100%;\n background-color: ",";\n"],["\n position: relative;\n overflow: hidden;\n width: 100%;\n height: 100%;\n background-color: ",";\n"])),(function(e){return e.theme.colors.white})),k_=et.ul(xI||(xI=P(["\n display: flex;\n width: 100%;\n height: 100%;\n list-style: none;\n padding: 0;\n margin: 0;\n transition: transform 0.4s ease-in-out;\n ",";\n"],["\n display: flex;\n width: 100%;\n height: 100%;\n list-style: none;\n padding: 0;\n margin: 0;\n transition: transform 0.4s ease-in-out;\n ",";\n"])),(function(e){var t=e.translateX;return qe(bI||(bI=P(["\n transform: translate3d(","px, 0, 0);\n "],["\n transform: translate3d(","px, 0, 0);\n "])),-t)})),S_=et.li(CI||(CI=P(["\n flex-shrink: 0;\n width: 100%;\n height: 100%;\n"],["\n flex-shrink: 0;\n width: 100%;\n height: 100%;\n"]))),O_=et.div(DI||(DI=P(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n ","\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n ","\n"])),(function(e){var t=e.theme.sizes;return qe(wI||(wI=P(["\n margin: ","px 100px;\n "],["\n margin: ","px 100px;\n "])),t.XL)})),A_=et.div(EI||(EI=P(["\n filter: ",";\n"],["\n filter: ",";\n"])),(function(e){var t=e.theme.colors,n=e.arrowSide;return n?"drop-shadow(".concat("left"===n?"1px":"-1px"," 0 2px ").concat(t.gray1,")"):"unset"})),B_=et.div(kI||(kI=P(["\n display: flex;\n"],["\n display: flex;\n"]))),T_=et(tl)(AI||(AI=P(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);\n user-select: none;\n outline: none;\n height: 51px;\n position: relative;\n ",";\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);\n user-select: none;\n outline: none;\n height: 51px;\n position: relative;\n ",";\n"])),(function(e){var t=e.theme,n=t.sizes,r=t.colors,o=t.fonts,i=e.disabled,a=e.fullWidth,s=e.variant,l=void 0===s?"primary":s,u=e.size,c=void 0===u?"medium":u,d="primary"===l?r.primary:"transparent",p="primary"===l?r.white:r.gray2,f="medium"===c?"".concat(n.M,"px"):"".concat(n.S,"px ").concat(n.M,"px");return qe(OI||(OI=P(["\n padding: ",";\n height: ","px;\n border: 2.5px solid transparent;\n background-color: ",";\n ",";\n color: ",";\n border-radius: ","px;\n background-position: center;\n transition: box-shadow 0.25s ease-in-out;\n width: ",";\n &:hover {\n box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);\n }\n &:focus {\n border: 2.5px solid\n ",";\n box-shadow: none;\n }\n\n ","\n "],["\n padding: ",";\n height: ","px;\n border: 2.5px solid transparent;\n background-color: ",";\n ",";\n color: ",";\n border-radius: ","px;\n background-position: center;\n transition: box-shadow 0.25s ease-in-out;\n width: ",";\n &:hover {\n box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);\n }\n &:focus {\n border: 2.5px solid\n ",";\n box-shadow: none;\n }\n\n ","\n "])),f,"medium"===c?51:33,d,"medium"===c?o.XL:o.L,p,n.S,a?"100%":"auto","primary"===l?ct(r.primary,-.38):r.gray2,i&&qe(SI||(SI=P(["\n cursor: unset;\n pointer-events: none;\n background-color: ",";\n box-shadow: none;\n "],["\n cursor: unset;\n pointer-events: none;\n background-color: ",";\n box-shadow: none;\n "])),ut(r.primary)))})),F_=et(T_)(FI||(FI=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme.colors,n=e.disabled;return qe(TI||(TI=P(["\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px transparent inset;\n &:focus {\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px "," inset;\n }\n &:hover {\n box-shadow: 0 0 0 1.5px "," inset;\n }\n\n ","\n "],["\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px transparent inset;\n &:focus {\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px "," inset;\n }\n &:hover {\n box-shadow: 0 0 0 1.5px "," inset;\n }\n\n ","\n "])),t.gray2,t.gray2,t.gray2,t.gray2,n&&qe(BI||(BI=P(["\n box-shadow: 0 0 0 1.5px ",";\n color: ",";\n background-color: transparent;\n "],["\n box-shadow: 0 0 0 1.5px ",";\n color: ",";\n background-color: transparent;\n "])),t.gray3,t.gray3))})),P_=et(T_)(II||(II=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme,n=t.sizes,r=t.colors,o=t.fonts,i=e.disabled,a=e.size,s=void 0===a?"medium":a,l=e.hoverButtonColor,u=void 0===l?"transparent":l,c=e.hoverStrokeColor,d=void 0===c?"transparent":c,p=e.buttonFont,f=void 0===p?"XL":p,h=e.textColor,m=void 0===h?"gray2":h,v=e.textSize,g=void 0===v?16:v,y=e.verticalPadding,b=e.horizontalPadding,x=e.buttonColor,C=void 0===x?"transparent":x,w=e.buttonStroke,D=void 0===w?"transparent":w,E=e.cornerRadius,k=void 0===E?"S":E,S=e.inactiveButtonColor,O=void 0===S?"transparent":S,A=e.inactiveStrokeColor,B=void 0===A?"transparent":A,T=e.inactiveTextColor,F=void 0===T?"gray3":T,M=e.styles,N=r[C]||C,j="medium"===s?"".concat(n.M,"px"):"".concat(n.S,"px ").concat(n.M,"px"),R="medium"===s?o.XL:o.L,I=C?r[C]||C:r[d]||d;return qe(RI||(RI=P(["\n padding: ",";\n border-color: ",";\n background-color: ",";\n font-size: ","px;\n ",";\n color: ",";\n border-radius: ","px;\n box-shadow: none;\n transition: border 0.2s ease-in-out;\n &:focus {\n border: 2.5px solid ",";\n }\n &:hover {\n border: 2.5px solid ",";\n ","\n }\n\n ","\n\n ","\n "],["\n padding: ",";\n border-color: ",";\n background-color: ",";\n font-size: ","px;\n ",";\n color: ",";\n border-radius: ","px;\n box-shadow: none;\n transition: border 0.2s ease-in-out;\n &:focus {\n border: 2.5px solid ",";\n }\n &:hover {\n border: 2.5px solid ",";\n ","\n }\n\n ","\n\n ","\n "])),b||y?"".concat(n[y||"M"],"px ").concat(n[b||"M"],"px"):j,r[D]||D,N,g,f?o[f]:R,r[m]||m,"number"==typeof k?k:n[k],ct(I,-.33),r[d]||d,u&&qe(PI||(PI=P(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),r[u]||u),i&&qe(jI||(jI=P(["\n background-color: ",";\n color: ","\n ","\n ",";\n "],["\n background-color: ",";\n color: ","\n ","\n ",";\n "])),ut(N||r.primary),r[F]||F,O&&qe(MI||(MI=P(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),r[O]||O),B&&qe(NI||(NI=P(["\n border: 2.5px solid ",";\n "],["\n border: 2.5px solid ",";\n "])),r[B]||B)),M)})),M_=et.div(LI||(LI=P(["\n display: inline-flex;\n ","\n ","\n"],["\n display: inline-flex;\n ","\n ","\n"])),(function(e){var t=e.$fullWidth,n=e.$styles;return qe(_I||(_I=P(["\n width: ",";\n ","\n "],["\n width: ",";\n ","\n "])),t?"100%":"auto",n)}),xF),N_=function(e){var t,n=e.text,r=e.onClick,o=e.loading,i=e.disabled,a=e.variant,s=e.isRichText,l=e.fullWidth,u=void 0===l||l,c=e.elementId,d=e.link,p=e.containerStyle,f=e.children,h=e.buttonStyle,m=e.size,v=e.textColor,g=e.inactiveTextColor,y=e.state,b=void 0===y?"enabled":y;e.href,e.stateConfig;var x=e.htmlElementId,C=e.metadata,w=e.configurationItemInfo,D=A(e,["text","onClick","loading","disabled","variant","isRichText","fullWidth","elementId","link","containerStyle","children","buttonStyle","size","textColor","inactiveTextColor","state","href","stateConfig","htmlElementId","metadata","configurationItemInfo"]),E=function(e){switch(e){case"primary":default:return T_;case"secondary":return F_;case"custom":return P_;case"text":return rw}}(a),k=i||"disabled"===b,S=Re().colors,B=yf(),T=B.showAnnotations,F=B.annotationsList,M=B.isMLRReview,N=F.links.findIndex((function(e){return c===e.moleculeId||d===e.url}))+1,j=Ef({isTrigger:null==C?void 0:C.isTrigger,id:c||""});if(!n&&!f)return null;var R={primary:"white",secondary:S[v],custom:S[v]||v,text:"blue"},I={primary:"white",secondary:S[g],custom:S[g]||g,text:S[g]},_=qe(VI||(VI=P(["\n ","\n ","\n ","\n "],["\n ","\n ","\n ","\n "])),(null==D?void 0:D.textSize)&&qe($I||($I=P(["\n font-size: ","px;\n "],["\n font-size: ","px;\n "])),D.textSize),h,D.styles),L=s?it(bC,{color:k?I[a]:R[a],font:"custom"===a&&D.buttonFont?D.buttonFont:"XL",value:n,extraTextProps:{behaveAs:"button",variant:"custom"===a&&D.buttonFont?D.buttonFont:"XL",styles:_}}):n;return it(M_,O({},N&&((t={id:mC})["data-".concat(gC)]=d,t["data-".concat(yC)]=c,t),{id:(null==w?void 0:w.isConfigurationMode)?"configurationWrapper":N?"annotation-link":void 0,"data-link-url":d,"data-link-text":c,className:"z-button-container",$fullWidth:u,$styles:p},w,{children:at(E,O({id:x,fullWidth:u,variant:a,disabled:o||k,onClick:function(){null==r||r(),j("click")},onChange:j,style:O(O({},h),null==D?void 0:D.styles),size:m,textColor:v,inactiveTextColor:g},D,{children:[L||f,o&&at(ot,{children:[it(CC,{width:6}),it(QC,{color:"gray1"})]}),M&&T&&!!N&&it("span",O({style:{position:"absolute",bottom:-6,left:"50%",zIndex:1,transform:"translate(-50%, 100%)"}},{children:it(sF,{index:N,type:"link"})}))]}))}))},j_=function(e){var t=e.children,n=e.wrapperStyles,r=e.padding,o=void 0===r?"32px 0px 0px":r,i=e.onKeyDown,a=e.modalStyles;e.size,e.popupId;var s=e.withCloseIcon,l=void 0!==s&&s,u=A(e,["children","wrapperStyles","padding","onKeyDown","modalStyles","size","popupId","withCloseIcon"]);return it($u,O({},u,{style:a,onKeyDown:i},{children:at(R_,O({style:O({padding:o},n)},{children:[t,l&&it(I_,O({onClick:null==u?void 0:u.onClose},{children:it(ff,{size:32,name:"Close",color:dt.colors.gray1})}))]}))}))},R_=et.div(WI||(WI=P(["\n position: absolute;\n left: 50%;\n outline: none;\n min-width: 510px;\n max-height: 90vh;\n overflow-y: auto;\n transform: translate(-50%);\n ","\n"],["\n position: absolute;\n left: 50%;\n outline: none;\n min-width: 510px;\n max-height: 90vh;\n overflow-y: auto;\n transform: translate(-50%);\n ","\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes,o=e.$styles;return qe(zI||(zI=P(["\n top: ","px;\n box-shadow: ","px;\n border-radius: ","px;\n background-color: ",";\n ","\n "],["\n top: ","px;\n box-shadow: ","px;\n border-radius: ","px;\n background-color: ",";\n ","\n "])),r.XL,r.L,r.M,n.background,o)})),I_=et(rt)(HI||(HI=P(["\n ",";\n"],["\n ",";\n"])),(function(e){var t=e.theme.sizes;return qe(UI||(UI=P(["\n display: flex;\n ",";\n justify-content: center;\n align-items: center;\n position: absolute;\n top: ","px;\n right: ","px;\n cursor: pointer;\n "],["\n display: flex;\n ",";\n justify-content: center;\n align-items: center;\n position: absolute;\n top: ","px;\n right: ","px;\n cursor: pointer;\n "])),st(t.L),t["2XL"],t["4XL"])})),__=function(e){var t;switch(e.type){case"checkbox":t=it(BC,{id:e.id,isSelected:e.value,onClick:e.onChange,label:e.label,isRichText:!0});break;case"button":t=at(Op,O({direction:"row",gap:2},{children:[it(N_,O({fullWidth:!1},e.acceptButton)),it(N_,O({variant:"secondary",fullWidth:!1},e.denyButton))]}));break;case"radioButton":t=it(rF,O({},e));break;default:t=null}return it(L_,{children:t})},L_=et.div(qI||(qI=P(["\n margin-top: ","px;\n"],["\n margin-top: ","px;\n"])),(function(e){return e.theme.sizes.L})),$_=function(e){var t=e.text,n=e.consentCaptureProps,r=e.containerStyles,o=e.clearStyles;return at(V_,O({clearStyles:void 0!==o&&o,style:r},{children:[it(bC,{value:t,font:"M"}),it(__,O({},n))]}))},V_=et.div(XI||(XI=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes;return!e.clearStyles&&qe(KI||(KI=P(["\n background: ",";\n padding: ","px;\n box-shadow: 0 ","px 10px rgba(0, 0, 0, 0.25);\n border-radius: ","px;\n "],["\n background: ",";\n padding: ","px;\n box-shadow: 0 ","px 10px rgba(0, 0, 0, 0.25);\n border-radius: ","px;\n "])),n.white,r["3XL"],r.XS,r.M)})),z_=function(e){var t=e.items,n=void 0===t?[]:t,r=e.props,o=void 0===r?{gap:"XS"}:r,i=o.gap,a=A(o,["gap"]),u=e.configurationItemInfo,c=e.metadata,d=wf(),p=d.stateConfig,f=d.stateHandler,h=s(n),m=h[0],v=h[1],g=(c||{}).stateListenerId;l((function(){if(g&&(null==p?void 0:p[g])){var e=p[g].items||[],t=(n||[]).map((function(t){return e.find((function(e){return e.id===t.id}))||t}));JSON.stringify(t)===JSON.stringify(m)||v(t)}}),[g,p,n]);return it(W_,O({id:"configurationWrapper",$gap:i},u,{children:m.map((function(e){var t=e||{},n=t.id,r=t.type,o=t.label,i=t.isChecked,s=o||{},l=s.text,u=s.isRichText;return it(BC,{id:n,isEditMode:!0,label:l,onClick:function(){return function(e){var t,n=m.map((function(t){return t.id===e?O(O({},t),{isChecked:!t.isChecked}):t}));v(n),g&&(null==f||f(((t={})[g]={items:n},t)))}(n)},isSelected:i,isRichText:u,internalConfig:a,notInteractable:"system_controlled"===r},n)}))}))},W_=et.div(YI||(YI=P(["\n display: flex;\n flex-direction: column;\n ",";\n ","\n"],["\n display: flex;\n flex-direction: column;\n ",";\n ","\n"])),(function(e){var t=e.$gap;return qe(GI||(GI=P(["\n gap: ","px;\n "],["\n gap: ","px;\n "])),dt.sizes[t])}),xF),U_=t.forwardRef((function(e,t){var n,r,o=e.options,i=e.onClick,a=e.text,l=e.tabKey,u=e.vertical,c=e.onOptionClick,p=e.tabTheme,f=void 0===p?"light":p,h=e.tabFont,m=void 0===h?"L":h,g=e.tabPadding,y=e.selectedTabIndicatorColor,b=e.textSize,x=e.defaultTabTextColor,C=A(e,["options","onClick","text","tabKey","vertical","onOptionClick","tabTheme","tabFont","tabPadding","selectedTabIndicatorColor","textSize","defaultTabTextColor"]),w=s(!1),D=w[0],E=w[1],k=d(null),S=Re().sizes;v(t,(function(){return k.current}));var B=!!(null==o?void 0:o.length),T=it(uj,{options:o,onItemPress:function(e){null==c||c(e),E(!1)}});return it(sj,O({overlay:T,onVisibleChange:B?E:void 0,visible:D,overlayStyle:{zIndex:5e3,paddingTop:S.M},trigger:"click",animation:"slide-up"},{children:at(vF,O({ref:k},C,{tabTheme:f,onClick:function(){null==i||i(l),B&&E(!0)}},{children:[it(mF,O({behaveAs:"button",textSize:b,variant:m,tabFont:m,tabPadding:g,tabTheme:f,defaultTabTextColor:x},{children:a})),B&&it(gF,O({disabled:C.disabled,tabTheme:f,isActive:D,defaultTabTextColor:x},{children:it(ff,{name:"CaretDown",size:S.L})})),u&&it(gj,{style:{bottom:-S.S},left:0,width:C.isActive&&null!==(r=null===(n=k.current)||void 0===n?void 0:n.clientWidth)&&void 0!==r?r:0,tabTheme:f,selectedTabIndicatorColor:y})]}))}))}));export{Df as AccountButtonContext,b_ as AccountButtonProvider,Bj as Alert,UT as Avatar,pj as AvatarDropdown,tw as BackgroundImage,nw as BaseTextButton,BR as BottomNavBarItem,N_ as Button,mf as ButtonActionsContext,y_ as ButtonActionsProvider,yC as COMMUNICATION_LINK_DATA_TEXT,gC as COMMUNICATION_LINK_DATA_URL,mC as COMMUNICATION_LINK_ELEMENT_ID,Cj as CaretIconWrapper,D_ as Carousel,BC as Checkbox,NM as CheckboxField,jM as CheckboxGroup,z_ as Checklist,W_ as ChecklistWrapper,sF as Circle,uF as CirclesWrapper,cF as CircularIndicator,dF as CircularIndicatorStyledComponent,$_ as Consent,i_ as Container,a_ as ContainerComponent,wF as ContainerWrapper,LM as CustomValidation,JT as Divider,eN as Drawer,kj as EmphasizedText,EC as ErrorText,kR as FeedContentHeader,SF as FieldLabels,FM as FieldMapper,Ej as FieldSection,s_ as FormOrganismItem,VT as HorizontalButtons,AR as HorizontalButtonsField,YT as HorizontalPadding,ff as Icon,fF as IconButton,I_ as IconWrapper,C_ as Image,qC as Input,kM as InputField,jj as Link,vC as MATRIX_MESSAGE_DATA_ID,hC as MATRIX_MESSAGE_ELEMENT_ID,uj as MenuItems,bj as MenuNavigation,gf as MlrRichTextViewerContext,jR as MlrRichTextViewerProvider,R_ as ModalWrapper,bf as OrganismContext,IR as OrganismContextProvider,yR as PdfDocument,Oj as RadioButtonField,rF as RadioButtons,oF as RadioGroupWrapper,ew as RegularImage,bC as RichTextViewer,LC as Select,RM as SelectField,XM as SelectableCardGroup,CC as Spacer,QC as Spinner,Cf as StateContext,x_ as StateContextProvider,Uj as Stepper,tB as StyleWrapper,U_ as Tab,wj as TabGroup,rw as TextButton,DF as TextMolecule,wC as TextWrapper,nB as Tooltip,rt as TouchableOpacity,iw as ValidationTag,ZT as VerticalPadding,FR as Video,$p as ZealThemeProvider,j_ as ZealUIModal,dt as defaultTheme,fC as defaultValue,OM as getFieldPlaceholder,TM as getFieldsFromFieldSections,AM as getInitialValuesFromFields,BM as isFormValid,$T as toast,Ip as toastStyles,vf as useButtonActionsContext,Vp as useMediaQuery,yf as useMlrRichTextViewerContext,QI as useRequiredConsentsAcceptedValues,JI as useStep};
|
151
|
+
*/function aI(){return aI=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},aI.apply(this,arguments)}function sI(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}const lI=["onClick","reloadDocument","replace","state","target","to"],uI=["aria-current","caseSensitive","className","end","style","to","children"];function cI(e){let{basename:t,children:n,window:r}=e,o=d();null==o.current&&(o.current=$R({window:r}));let i=o.current,[a,l]=s({action:i.action,location:i.location});return m((()=>i.listen(l)),[i]),y(iI,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i})}process.env.NODE_ENV;const dI=n((function(e,t){let{onClick:n,reloadDocument:r,replace:o=!1,state:i,target:a,to:s}=e,l=sI(e,lI),u=eI(s),c=function(e,t){let{target:n,replace:r,state:o}=void 0===t?{}:t,i=rI(),a=nI(),s=oI(e);return h((t=>{if(!(0!==t.button||n&&"_self"!==n||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t))){t.preventDefault();let n=!!r||WR(a)===WR(s);i(e,{replace:n,state:o})}}),[a,i,s,r,o,n,e])}(s,{replace:o,state:i,target:a});return y("a",aI({},l,{href:u,onClick:function(e){n&&n(e),e.defaultPrevented||r||c(e)},ref:t,target:a}))}));"production"!==process.env.NODE_ENV&&(dI.displayName="Link");const pI=n((function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:o="",end:i=!1,style:a,to:s,children:l}=e,u=sI(e,uI),c=nI(),d=oI(s),p=c.pathname,f=d.pathname;r||(p=p.toLowerCase(),f=f.toLowerCase());let h,m=p===f||!i&&p.startsWith(f)&&"/"===p.charAt(f.length),v=m?n:void 0;h="function"==typeof o?o({isActive:m}):[o,m?"active":null].filter(Boolean).join(" ");let g="function"==typeof a?a({isActive:m}):a;return y(dI,aI({},u,{"aria-current":v,className:h,ref:t,style:g,to:s}),"function"==typeof l?l({isActive:m}):l)}));function fI(e){"production"!==process.env.NODE_ENV&&function(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params\n\nIf you're unsure how to load polyfills, we recommend you check out https://polyfill.io/v3/ which provides some recommendations about how to load polyfills only for users that need them, instead of for every user.");let t=d(hI(e)),n=nI(),r=f((()=>{let e=hI(n.search);for(let n of t.current.keys())e.has(n)||t.current.getAll(n).forEach((t=>{e.append(n,t)}));return e}),[n.search]),o=rI();return[r,h(((e,t)=>{o("?"+hI(e),t)}),[o])]}function hI(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}"production"!==process.env.NODE_ENV&&(pI.displayName="NavLink");var mI,vI,gI,yI,bI,xI,CI,wI,DI,EI,kI,SI,OI,AI,BI,TI,FI,PI,MI,NI,jI,RI,II,_I,LI,$I,VI,zI,WI,UI,HI,qI,KI,XI,GI,YI,ZI=function(e){var t=e.stateListenerId,n=e.isAction,r=wf().stateConfig,o=!0,i=!1;if(!t)return{isStateDisabled:i,isStateVisible:o};var a=(null==r?void 0:r[t])||{},s=a||{},l=s.visible,u=void 0===l||l,c=s.disabled,d=void 0!==c&&c;return n&&t in r&&(o=Boolean(u),i=Boolean(d)),{isStateDisabled:i,isStateVisible:o,stateValue:a}},JI=function(e){var t=s(1),n=t[0],r=t[1],o=n+1<=e,i=n-1>=1,a=h((function(t){var o=t instanceof Function?t(n):t;if(!(o>=1&&o<=e))throw new Error("Step not valid");r(o)}),[e,n]);return[n,{goToNextStep:function(){return o&&r((function(e){return e+1}))},goToPrevStep:function(){return i&&r((function(e){return e-1}))},canGoToNextStep:o,canGoToPrevStep:i,setStep:a,reset:function(){return r(1)}}]},QI=function(e){return f((function(){return e.filter((function(e){return e.isRequired})).every((function(e){switch(e.consentCaptureProps.type){case"radioButton":return e.consentCaptureProps.value===e.consentCaptureProps.acceptValue;case"checkbox":return e.consentCaptureProps.value;default:return!0}}))}),[e])},e_=function(e){var t,n=e.initialStepsCount,r=void 0===n?0:n,o=e.children,i=xf(),a=i.items,l=i.groupStepItemsByStepContainer,u=nP(),c=null==u?void 0:u.watch(),d=l(),p=s(null!==(t=d.size)&&void 0!==t?t:r),m=p[0],v=p[1],g=JI(m),y=g[0],b=g[1],x=b.reset,C=b.setStep,w=b.canGoToPrevStep,D=f((function(){return function(e){return e.map((function(e){var t=[],n=function(e){"container"===e.instance&&"form_step"===e.type?t.push(e):"container"===e.instance&&e.items.forEach(n)};return n(e),t})).flat()}(a)}),[a]),E=h((function(e){var t,n,r,o,i,a=null==u?void 0:u.getValues(),s=null!==(i=null===(o=null===(r=null===(n=null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.props)||void 0===n?void 0:n.formStepProps)||void 0===r?void 0:r.conditionConfig)||void 0===o?void 0:o.criteriaList)&&void 0!==i?i:[],l=xM({criteriaList:s,data:a}),c=s.some((function(e){return l(e)}));return!s.length||c}),[u]),k=f((function(){var e=y,t=function(n){var r=E(n),o=D[e++];return!(!r||y===D.length)||(y+1===D.length?r:o?t(o):e+1<=D.length)},n=D[e];return t(n)}),[y,D,E,JSON.stringify(c)]),S=h((function(){if(k)for(var e=y+1;e<=D.length;){var t=D[e-1];if(E(t))return void C(e);e++}}),[k,y,D]),A=h((function(){if(w)for(var e=y-1;e>=1;){var t=D[e-1];if(E(t))return void C(e);e--}}),[w,y,D,E]),B=f((function(){return{canGoToNextStep:k,canGoToPrevStep:w,goToNextStep:S,goToPrevStep:A,currentStep:y,reset:x,setStep:C,steps:m,setInitSteps:v}}),[y,m,k]);return it(hf.Provider,O({value:B},{children:o}))},t_={enter:!1},n_=function(e){var n=e.mode,r=void 0===n?"onChange":n,o=e.children,i=e.id,a=e.isTrigger,s=function(e={}){const n=t.useRef(),[r,o]=t.useState({isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}});n.current?n.current.control._options=e:n.current={...tM(e),formState:r};const i=n.current.control,a=t.useCallback((e=>{aP(e,i._proxyFormState,!0)&&(i._formState={...i._formState,...e},o({...i._formState}))}),[i]);return uP({subject:i._subjects.state,callback:a}),t.useEffect((()=>{i._stateFlags.mount||(i._proxyFormState.isValid&&i._updateValid(),i._stateFlags.mount=!0),i._stateFlags.watch&&(i._stateFlags.watch=!1,i._subjects.state.next({})),i._removeUnmounted()})),n.current.formState=oP(r,i._proxyFormState),n.current}({mode:r}),u=Ef({id:i,isTrigger:a}),c=s.formState.isDirty;return l((function(){c&&!t_.enter&&(u("start"),t_.enter=!0)}),[c]),it(rP,O({},s,{children:it(e_,{children:o})}))},r_=function(e,t){switch(t){case"month_year_date":var n=e.split("/"),r=n[0],o=n[1];return"".concat(o,"-").concat(r,"-01");case"day_month_year_date":var i=e.split("/"),a=i[0];r=i[1],o=i[2];return"".concat(o,"-").concat(r,"-").concat(a);case"month_day_year_date":var s=e.split("/");r=s[0],a=s[1],o=s[2];return"".concat(o,"-").concat(r,"-").concat(a);case"year_month_day_date":var l=e.split("/");o=l[0],r=l[1],a=l[2];return"".concat(o,"-").concat(r,"-").concat(a);default:return e}},o_=function(e){var t,n=e.order,o=void 0===n?0:n,i=e.id,a=e.metadata,l=e.formStepStyles,u=nP(),c=s({}),d=c[0],p=c[1],f=xf(),h=f.formId,m=f.submitHandler,v=f.dateFields,g=f.isFormInEditMode,y=f.organismMetadata,b=xf().groupStepItemsByStepContainer,x=vf().onCloseModal,C=Object.keys(null!==(t=null==y?void 0:y.popupPayload)&&void 0!==t?t:{})[0],w=r(hf),D=w.currentStep,E=w.canGoToNextStep,k=w.canGoToPrevStep,S=w.goToNextStep,A=w.goToPrevStep,F=w.reset,P=w.setStep,M=o+1,N=b().get(i)||[];return D!==M?null:at("div",O({style:O({display:"flex",flexDirection:"column",width:"100%",gap:"16px"},l)},{children:[N.map((function(e){return it(g_,{item:e,setFormData:p,formData:d},e.id)})),(!(null==a?void 0:a.hasOwnButton)||(null==y?void 0:y.isFormInsidePopUp))&&g&&at("div",O({style:{display:"flex",gap:"16px"}},{children:[it(j_,{fullWidth:!1,text:k?"Back":"Cancel",variant:"secondary",onClick:function(){k?A():(F(),P(1),(null==y?void 0:y.isFormInsidePopUp)&&x(C))}}),it(j_,{fullWidth:!1,text:E?"Next":"Submit",variant:"primary",onClick:function(){return B(void 0,void 0,void 0,(function(){var e,t;return T(this,(function(n){switch(n.label){case 0:return[4,u.trigger()];case 1:return(e=n.sent())?E?(S(),[2]):(t=u.getValues(),v.forEach((function(e){if(e.id in t){var n=t[e.id];t[e.id]=r_(n,e.dateType)}})),e&&h?[4,null==m?void 0:m({formId:h,data:t})]:[3,3]):($T({message:"Please fill all required fields",type:"error"}),[2]);case 2:n.sent(),n.label=3;case 3:return(null==y?void 0:y.isFormInsidePopUp)&&x(C),[2]}}))}))}})]}))]}))},i_=function(e){var t=e.id,n=e.type,r=e.wide,o=e.props,i=e.compact,a=e.children,u=e.metadata,c=e.isMobile,d=xf(),p=d.isConfigurationMode,f=d.onConfigurationItemClicked,h=d.selectedConfigurationItemId,m=r||{},v=m.containerProps,g=void 0===v?{}:v,y=m.containerStyle,b=void 0===y?{}:y,x=i||{},C=x.containerProps,w=void 0===C?{}:C,D=x.containerStyle,E=void 0===D?{}:D,k=c||Vp("xs"),S=k?E:b,A=k?w:g,B=O(O({},o),A),T={id:t,isTrigger:null==u?void 0:u.isTrigger},F={slider:it(D_,O({},B,{children:a})),form:it(n_,O({},null==o?void 0:o.formProps,T,{children:a})),form_step:it(o_,O({id:t},null==o?void 0:o.formStepProps,{metadata:u}))},P=ZI({isAction:null==u?void 0:u.isAction,id:t}).isStateVisible;Ef(T);var M=function(e){var t=s(),n=t[0],r=t[1],o=s(!1),i=o[0],a=o[1],u=s(0),c=u[0],d=u[1],p=s(!1),f=p[0],h=p[1],m=wf(),v=m.stateConfig,g=m.stateHandler;return l((function(){if(null==e?void 0:e.length){var t=e.find((function(e){return"stateModifier"===e.role&&"view"===e.event}));r(null==t?void 0:t.stateKey)}}),[e]),l((function(){var e=function(){d(document.documentElement.scrollTop),h(document.documentElement.scrollTop>c)};return n&&window.addEventListener("scroll",e),function(){n&&window.removeEventListener("scroll",e)}}),[c,n]),l((function(){var e;if(n&&!i){var t=document.getElementById(n),r=bF(t);r&&(a(r),null==g||g(O(O({},v),((e={})[n]=!v[n],e))))}}),[n,i,bF,f,c]),n}(null==u?void 0:u.stateConfig);if(!P)return null;var N=it(wF,O({containerProps:B,metadata:u,style:S,onClick:function(e){e.stopPropagation(),f({entityId:t,entityType:n,entity:"container",entityMetadata:u})},type:n,isConfigurationMode:p,id:p?"configurationWrapper":M,$selected:!!h&&h===t},{children:(null==F?void 0:F[n])||a}),"".concat(t,".").concat(k?"mobile":"desktop"));return N},a_=function(e){var t=e.config,n=e.tabsProps,r=e.id,o=e.type,i=e.items,a=e.metadata,l=e.formData,u=e.setFormData,c=e.isMobile,d=e.isConfigurationMode,p=void 0!==d&&d,f=s(),h=f[0],m=f[1];if(!i||!i.length)return null;var v=c||Vp("xs");return it(b_,O({userInitials:"UN",logOutHandler:function(){return console.log("log out")},goToAccountInfo:function(){return console.log("account info page")}},{children:it(IR,O({organismMetadata:a,organismId:r,initItems:i,isConfigurationMode:p,onConfigurationItemHandler:function(e){m(null==e?void 0:e.entityId)},selectedConfigurationItemId:h},{children:it(i_,O({id:r,type:o,metadata:a,isMobile:v},t,{children:i.map((function(e){return it(g_,{item:e,tabsProps:n,formData:l,setFormData:u,isMobile:v},e.id)}))}))}))}),"".concat(r,".").concat(v?"mobile":"desktop"))},s_=function(e){var t=e.attributes,n=e.formData,r=e.config,o=e.htmlElementId,i=e.configurationItemInfo,a=t||{},l=a.consent,u=a.conditionConfig,c=(r||{}).props,d=null==l?void 0:l.consent,p=(null==d?void 0:d.defaultSelection)||"confirmation",h=s(""),m=h[0],v=h[1],g=s(p),y=g[0],b=g[1],x=function(e){return v((function(t){return t?"":e}))},C=function(e){return b(e)},w=bM(null==u?void 0:u.conditionConfig,n),D=f((function(){switch(null==d?void 0:d.methodOfCapture){case"button":return{type:"button",acceptButton:{text:null==d?void 0:d.confirmationButtonText,onClick:function(){return alert("Accepted")}},denyButton:{text:null==d?void 0:d.rejectionButtonText,onClick:function(){return alert("Denied")}}};case"checkbox":return{id:null==d?void 0:d.id,type:"checkbox",label:JSON.stringify(null==d?void 0:d.acknowledgment),value:!!m,onChange:x};default:return{type:"radioButton",acceptValue:"confirmation",value:y,onChange:C,isRow:!0,items:[{id:"confirmation",label:null==d?void 0:d.confirmationButtonText},{id:"rejection",label:null==d?void 0:d.rejectionButtonText}],name:"consent_confirmation"}}}),[l,m,y]);return d&&w?at(l_,O({id:(null==i?void 0:i.isConfigurationMode)?"configurationWrapper":o},i,{children:[it(V_,{text:JSON.stringify(d.language),consentCaptureProps:D,clearStyles:!0}),"field_error"===(null==c?void 0:c.state)&&it(EC,{text:"This field is required"})]})):null},l_=et.div(mI||(mI=P(["\n width: 100%;\n ","\n"],["\n width: 100%;\n ","\n"])),xF),u_=function(e){var t={text:e.label,validate:function(){return!0}},n=e.rule,r=c_(n);if(r||d_(n)){var o=function(e,t){return function(n){return void 0===n&&(n=0),e?n<=t:n>=t}}(r,r?n.MAX:n.MIN);switch(n.type){case"COUNT":t.validate=function(e){return o(null==e?void 0:e.length)};break;case"NUMBER_COUNT":t.validate=function(e){return o(null==e?void 0:e.replace(/\D/g,"").length)};break;case"CAPITAL_COUNT":t.validate=function(e){return o(((null==e?void 0:e.match(/[A-Z]/g))||[]).length)};break;case"SPECIAL_CHARACTERS_COUNT":t.validate=function(e){return o(null==e?void 0:e.replace(/[a-z]|\d|\s/gi,"").length)};break;case"LOWER_CASE_COUNT":t.validate=function(e){return o(((null==e?void 0:e.match(/[a-z]/g))||[]).length)}}}return t},c_=function(e){return!!(null==e?void 0:e.MAX)},d_=function(e){return!!(null==e?void 0:e.MIN)},p_=function(e){var t=e.fields,n=e.validations,r=e.form,o=e.validationLabel,i=e.validationState,a=e.configurationItemInfo,s=n.map(u_),l=null==r?void 0:r.watch("password.value");return at(f_,O({id:"configurationWrapper"},a,{children:[t.map((function(e){return it(FM,{control:null==r?void 0:r.control,field:e},e.name.toString())})),it(LM,{value:l,isSubmitted:null==r?void 0:r.formState.isDirty,rules:s,label:o,validationState:i})]}))},f_=et.div(vI||(vI=P(["\n gap: 16px;\n width: 100%;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n ","\n"],["\n gap: 16px;\n width: 100%;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n ","\n"])),xF),h_={instance:"container",organismLibraryContainerId:"a27bcdcf-9037-4a5f-a717-991625b2abe2",containerLibraryId:"20580d8e-2e65-4f74-a3e3-8813967c4d47",type:"column",ordering:0,config:{wide:{containerProps:{gap:"M",alignItems:"flex-start",paddingTop:"XL",paddingLeft:"L",paddingRight:"L",paddingBottom:"S"},containerStyle:{width:"100%",flexDirection:"column",justifyContent:"flex-start",backgroundColor:"#ffffff"}},compact:{containerProps:{gap:"M",alignItems:"center"},containerStyle:{width:"100%",flexDirection:"column",backgroundColor:"#fdfcfc"}}},metadata:{group:["form"]},item:[{type:"column",config:{wide:{containerProps:{gap:"0",alignItems:"flex-start",paddingTop:"L",paddingLeft:"XL",cornerRadius:"S",paddingRight:"XL",paddingBottom:"L"},containerStyle:{width:"100%",boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.25)",flexDirection:"column",justifyContent:"flex-start",backgroundColor:"#ffffff"}},compact:{containerProps:{gap:"M",alignItems:"flex-start",paddingTop:"L",paddingLeft:"L",cornerRadius:"S",paddingRight:"L",paddingBottom:"L"},containerStyle:{width:"100%",boxShadow:"0px 1px 5px rgba(0, 0, 0, 0.2)",flexDirection:"column",justifyContent:"flex-start",backgroundColor:"#ffffff"}}},instance:"container",metadata:{group:["form"]},ordering:0,containerLibraryId:"20580d8e-2e65-4f74-a3e3-8813967c4d47",organismLibraryContainerId:"f45c44db-112f-43ef-a23c-569f2f033261",item:[{type:"column",config:{wide:{containerProps:{gap:"S",alignItems:"flex-start",paddingTop:"M",paddingLeft:"XL",paddingRight:"XL",paddingBottom:"S"},containerStyle:{width:"100%",flexDirection:"column"}},compact:{containerProps:{gap:"M",alignItems:"flex-start"},containerStyle:{width:"100%",flexDirection:"column"}}},instance:"container",metadata:{group:["form"]},ordering:0,containerLibraryId:"20580d8e-2e65-4f74-a3e3-8813967c4d47",organismLibraryContainerId:"f78a1853-935b-4bd5-a8fe-e92314049ca5",item:[{type:"process_steps",config:{},instance:"molecule",metadata:{},ordering:0,attributes:{orientation:{id:"26856456-06d0-40bc-9a99-323232f1cc98",value:"horizontal",options:[{id:"horizontal",label:"Horizontal"},{id:"vertical",label:"Vertical"}],required:!1,attributeType:"select"},processSteps:{id:"6b2ea97f-c77b-4da1-ad5d-21838da61f70",steps:[{link:{id:null,attributeType:"link",type:"internal_link",externalLink:"",internalLink:"",name:"",required:!1},order:0,title:{text:'[{"type":"paragraph","children":[{"text":"User Activated"}]}]'},status:"incomplete",description:{text:null},id:"24d47578-4160-43ae-82a4-574a784c1ea6"},{link:{id:null,attributeType:"link",type:"internal_link",externalLink:"",internalLink:"",name:"",required:!1},order:1,title:{text:'[{"type":"paragraph","children":[{"text":"Button 1 Clicked"}]}]'},status:"incomplete",description:{text:null},id:"051506e1-1a72-40db-bed0-b05901242812"},{id:"c37efb0d-0607-42a4-b1d8-30c373a48f3e",link:{id:null,attributeType:"link",type:"internal_link",externalLink:"",internalLink:"",name:"",required:!1},title:{text:'[{"type":"paragraph","children":[{"text":"Button 2 Clicked"}]}]'},description:{text:null},status:"incomplete",order:2}],journeyId:"50978160-7201-440a-bd3d-983e6bf64f72",attributeType:"process_steps"}},moleculeLibraryId:"1575fda9-07c6-4701-93ab-356b5ce8ecd5",organismLibraryMoleculeId:"14cf3042-175b-4266-810f-9a124bceedfc",item:[],id:"2b0ad112-7ec4-4d31-a599-ecb0e9b97a7e"}],id:"680385bf-4035-4ea7-89e9-71417c4d6010"},{type:"row",config:{wide:{containerProps:{gap:"S",alignItems:"center",paddingTop:"M",paddingLeft:"XL",paddingRight:"XL",paddingBottom:"M"},containerStyle:{width:"100%",justifyContent:"space-between"}},compact:{containerProps:{gap:"L",paddingTop:"L",paddingLeft:"5XL",paddingRight:"5XL",paddingBottom:"L"},containerStyle:{width:"100%",flexDirection:"column"}}},instance:"container",metadata:{group:["form"]},ordering:1,containerLibraryId:"997e0b11-2dc6-4252-a36f-adca5328e9af",organismLibraryContainerId:"abfbefe6-5ca9-4478-8616-6aff1b57203e",item:[{type:"button",config:{props:{size:"small",state:"enabled",styles:{},variant:"custom",disabled:!1,textSize:0,textColor:"#050505",buttonFont:"M",colorTheme:"light",buttonColor:"#ffffff",buttonStyle:{},buttonStroke:"#1a434e",cornerRadius:"2XL",containerStyle:{},verticalPadding:"S",hoverButtonColor:"#ffffff",hoverStrokeColor:"#1a434e",horizontalPadding:"XL",inactiveTextColor:"#050505",inactiveButtonColor:"#e5e1e1",inactiveStrokeColor:"#1a434e"}},instance:"molecule",metadata:{group:["form"],isAction:!1,isTrigger:!1},ordering:0,attributes:{title:{id:"f8b9e548-9627-4b87-9266-ef9ed466591e",text:'[{"type":"paragraph","children":[{"text":"Details","id":"f4710141-c448-4d6b-abd4-c3374fca33c5"}],"id":"4d1007c3-f89a-4c64-bf92-d5960d7869bc"}]',required:!1,isRichText:!0,attributeType:"text",showRichTextToolbar:!0},action:{id:"c60165ce-65f2-47ca-ae1d-cd8678280f9c",action:{type:"reset",reset:{}},attributeType:"action"},actionTypes:{id:"130da1fa-03c0-46c0-87e0-93609326979e",value:"reset",options:[{id:"link",label:"Direct to Link",value:"link"},{id:"popup",label:"Open Popup",value:"popup"},{id:"drawer",label:"Open Drawer",value:"drawer"},{id:"download",label:"Download",value:"download"},{id:"submit",label:"Submit Data",value:"submit"},{id:"reset",label:"Reset",value:"reset"},{id:"destroy",label:"Close/Cancel",value:"destroy"}],required:!0,attributeType:"select"}},moleculeLibraryId:"c6bf4dbd-77af-4788-a32d-5b5815bcbfae",organismLibraryMoleculeId:"f93dbc37-3b37-46dc-ac40-0c678e02fcd7",item:[],id:"483b03c0-7335-40a4-baad-24a93b90aa48"},{type:"text",config:{props:{textColor:"#FFFFFF"}},instance:"molecule",metadata:{group:["form","display-only-form"]},ordering:1,attributes:{text:{id:"92552646-4ea8-4e7d-9d77-393345146172",text:'[{"type":"paragraph","children":[{"text":"Estimated Time: 1-2 Days","id":"b78a56a8-82e9-4847-860c-8559b9fc5d58"}],"id":"e2174573-949c-4f2f-8e7d-099ab50e3161"}]',required:!1,isRichText:!0,attributeType:"text",showRichTextToolbar:!0},color:{id:"38f5d006-9657-481e-914a-72f9087ec030",color:"#1a434e",required:!1,attributeType:"color"},seoStyle:{id:"d2e46744-449c-4f54-8edf-6aa64c73cb83",value:"h3",options:[{id:"h1",label:"H1",value:"h1"},{id:"h2",label:"H2",value:"h2"},{id:"h3",label:"H3",value:"h3"},{id:"h4",label:"H4",value:"h4"},{id:"h5",label:"H5",value:"h5"},{id:"h6",label:"H6",value:"h6"}],required:!1,attributeType:"select"},fontVariant:{id:"c57b03cb-b219-4886-a8e7-00969f1dc213",value:"L",options:[{id:"XS",label:"Extra Small Text",value:"XS"},{id:"S",label:"Small Text",value:"S"},{id:"M",label:"Normal Text",value:"M"},{id:"L",label:"Small Sub Title",value:"L"},{id:"XL",label:"Sub Title",value:"XL"},{id:"2XL",label:"Title",value:"2XL"},{id:"3XL",label:"Large Title",value:"3XL"}],attributeType:"select"}},moleculeLibraryId:"f7751571-4313-4443-8aee-13ad6309f7d6",organismLibraryMoleculeId:"d3f78021-674e-47f3-862c-8d41769a23d1",item:[],id:"be4378cd-d04f-43aa-a582-55c861806596"}],id:"bc458c6b-6085-4e3d-90ae-a1c7d5fa5ae5"}],id:"8f1a07f0-da40-4b39-ae6f-699f0c27b744"}],id:"a6682271-e0ff-488e-9eb7-5bd7e3f04697"},m_=function(e){var t,n,o=e.type,i=e.config,a=e.attributes,s=e.tabsProps,l=e.form,u=e.id,c=e.formData,d=e.setFormData,p=e.isMobile,f=e.metadata,m=e.organismLibraryMoleculeId,v=rI(),g=xf(),y=g.formId,b=g.editable,x=void 0===b||b,C=g.isPreview,w=void 0!==C&&C,D=g.dateFields,E=g.validations,k=g.submitHandler,S=g.isFormInEditMode,F=void 0===S||S,P=g.isConfigurationMode,M=g.onConfigurationItemClicked,N=g.selectedConfigurationItemId,j=Boolean(F&&x),R=vf(),I=R.setActivePopUpById,_=R.setDrawerVisible,L=R.setActionContent,$=r(Df),V=$.userInitials,z=$.logOutHandler,W=$.goToAccountInfo,U=$.username,H=fI(),q=H[0],K=H[1],X=(null==a?void 0:a.link)||(null===(n=null===(t=null==a?void 0:a.action)||void 0===t?void 0:t.action)||void 0===n?void 0:n.link),G=h((function(e){if(X&&e){var t=Zf(kf,e);if(w)K(Jf(q,e,w));else{var n={"account-information":"/account-info","forgot-password":"/forgot-password","change-password":"/change-password",login:"/login","account-creation":"/account-creation",landing:"/landing"},r=(null==n?void 0:n[t])||(null==n?void 0:n[e]);v(r||{pathname:"/landing",search:"?".concat(Jf(q,e,w).toString())})}}}),[q,K,X,w,v]),Y=f||{},Z=Y.stateListenerId,J=Y.isAction,Q=ZI({stateListenerId:Z,isAction:J}),ee=Q.isStateDisabled,te=Q.isStateVisible,ne=Q.stateValue,re=h((function(e){null==e||e.stopPropagation(),M({entityType:o,entity:"molecule",entityId:u,entityMetadata:f,organismLibraryMoleculeId:m})}),[M,o,u,f,m]),oe={isConfigurationMode:P,onClick:P?re:void 0,$selected:N===u},ie=function(e){(null==oe?void 0:oe.isConfigurationMode)&&(null==oe?void 0:oe.onClick)&&(e.preventDefault(),e.stopPropagation(),oe.onClick(e))};if(!te)return null;return function(){var e,t,n,r,h,m,v,g,b,x,C,w,S;switch(o){case"text":var F=a||{},M=F.text,N=F.seoStyle,R=F.fontVariant,$=F.color,H=i.props,q=null==N?void 0:N.value,K=null==R?void 0:R.value,X=null!==(e=null==$?void 0:$.color)&&void 0!==e?e:null==H?void 0:H.textColor;return it(DF,O({},M,H,{seoTag:q,fontVariant:K,textColor:X,htmlElementId:u,configurationItemInfo:oe}));case"button":var Y=a||{},Z=Y.title,J=Y.action,Q=(i||{}).props,te=void 0===Q?{}:Q,re=te.variant,ae=void 0===re?"primary":re,se=A(te,["variant"]),le=(null==J?void 0:J.action)||{},ue=le.link,ce=le.popup;le.drawer;var de=le.download,pe={link:function(){return eh(ue)?G(null==ue?void 0:ue.internalLink):Qf(null==ue?void 0:ue.externalLink)},popup:function(){(null==ce?void 0:ce.id)&&I(null==ce?void 0:ce.id)},drawer:function(){_(!0),L(h_)},download:function(){return de?(e=de.url,t=de.name,void 0===e&&(e=""),void 0===t&&(t="Downloaded file"),B(void 0,void 0,void 0,(function(){var n,r,o,i;return T(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),[4,fetch(e)];case 1:return[4,a.sent().blob()];case 2:return n=a.sent(),r=URL.createObjectURL(n),(o=document.createElement("a")).href=r,o.download=t,o.click(),URL.revokeObjectURL(r),[3,4];case 3:return i=a.sent(),$T({message:"Failed to download the file: ".concat(i),type:"error"}),[3,4];case 4:return[2]}}))}))):$T({message:"File not found to download",type:"warning"});var e,t},submit:function(){return B(void 0,void 0,void 0,(function(){var e,t;return T(this,(function(n){switch(n.label){case 0:return[4,null==l?void 0:l.trigger()];case 1:return e=n.sent(),t=null==l?void 0:l.getValues(),D.forEach((function(e){if(e.id in t){var n=t[e.id];t[e.id]=r_(n,e.dateType)}})),e&&y&&(null==k||k({formId:y,data:null==l?void 0:l.getValues()})),[2]}}))}))},reset:function(){return null},destroy:function(){return null}};return it(j_,O({text:null==Z?void 0:Z.text,isRichText:!0},se,{variant:ae,elementId:u,link:P?void 0:nh(ue),onClick:P?function(e){ie(e)}:pe[(null===(t=null==J?void 0:J.action)||void 0===t?void 0:t.type)||"link"],disabled:ee,stateConfig:null==f?void 0:f.stateConfig,metadata:f,htmlElementId:u,configurationItemInfo:oe}));case"image":var fe=a||{},he=fe.image,me=fe.link,ve=fe.altText,ge=(H=i.props,P||ee),ye=(null==he?void 0:he.imageSource)||(null===(n=null==he?void 0:he.imageFile)||void 0===n?void 0:n.url)||"";return it(C_,O({id:u,src:ye,onClick:ge?void 0:function(){return eh(me)?G(null==me?void 0:me.internalLink):Qf(null==me?void 0:me.externalLink)},link:ge?void 0:nh(me),altText:null==ve?void 0:ve.text},H,{metadata:f,htmlElementId:u,configurationItemInfo:oe}));case"video":var be=a||{},xe=be.video,Ce=be.enableCoverImage,we=be.autoPlayVideo,De=be.coverImage,Ee=(H=i.props,(null==xe?void 0:xe.videoSource)||"");ye=(null==De?void 0:De.imageSource)||"";return it(FR,O({src:Ee,isOnClickDisabled:P,enableCoverImage:null==Ce?void 0:Ce.value,autoplay:null==we?void 0:we.value,coverImageSrc:ye},H,{isTrigger:null==f?void 0:f.isTrigger,moleculeId:u,htmlElementId:u,configurationItemInfo:oe}));case"header_tab_group":var ke=(s||{}).onTabChange,Se=(a||{}).tabGroup,Oe=(H=i.props,i.wide),Ae=i.compact,Be=(null==s?void 0:s.tabs)||(null==Se?void 0:Se.tabs)||[],Te=(null==s?void 0:s.activeTabKey)||(null==Se?void 0:Se.activeTabKey)||"";return it(wj,O({},H,{wide:Oe,compact:Ae,tabs:Be,activeTabKey:Te,onTabChange:P?void 0:ke,isMobile:p,htmlElementId:u,configurationItemInfo:oe}));case"input_field":var Fe=i.props,Pe=void 0===Fe?{}:Fe,Me=Pe.inputProps,Ne=void 0===Me?{}:Me,je=Pe.labelsProps,Re=void 0===je?{}:je,Ie=Pe.name,_e=void 0===Ie?"":Ie,Le=Pe.state,$e=A(Pe,["inputProps","labelsProps","name","state"]),Ve=a||{},ze=Ve.label,We=Ve.required,Ue=Ve.conditionConfig,He=(mt=((ht=Ve.dataModelField)||{}).dataModelField)||{},qe=He.defaultValue,Ke=He.entitySubtypeId,Xe=He.dataModelFieldId,Ge=He.format,Ye=(M=null==ze?void 0:ze.text,!!(null==We?void 0:We.value)),Ze=qe||"-",Je=(null==Ge?void 0:Ge.value)||"any",Qe=Ye?"REQUIRED":"OPTIONAL",et=O(O({},null==Ge?void 0:Ge.config),!j&&{maskPlaceholder:Ze}),tt=j?(null==Ne?void 0:Ne.placeholder)||"Enter ".concat(M?NC(rh(M)):"placeholder"):Ze,nt="".concat(Xe).concat(Ke?".".concat(Ke):"",".value")||_e||u;return wM({dataModelField:mt,setFormData:d}),it(kM,O({},$e,{name:nt,required:Ye,optional:!Ye,onInput:P?ie:void 0,inputProps:O(O({},Ne),{isEditMode:j,placeholder:tt,type:Je,config:et,disabled:ee}),labelsProps:O({label:M,isRichText:!0,ruleLabel:Qe},Re),conditionConfig:null==Ue?void 0:Ue.conditionConfig,control:null==l?void 0:l.control,state:Le,formData:c,htmlElementId:u,configurationItemInfo:oe}));case"select_field":var rt=(i||{}).props,at=void 0===rt?{}:rt,st=at.selectProps,lt=void 0===st?{}:st,ut=at.labelsProps,ct=(Re=void 0===ut?{}:ut,at.name),dt=void 0===ct?"":ct,pt=($e=A(at,["selectProps","labelsProps","name"]),a||{}),ft=(ze=pt.label,We=pt.required,pt.options),ht=pt.dataModelField,mt=(Ue=pt.conditionConfig,(ht||{}).dataModelField),vt=(M=null==ze?void 0:ze.text,Ye=null==We?void 0:We.value,(null==ft?void 0:ft.options)||[]);nt="".concat(null==mt?void 0:mt.dataModelFieldId).concat((null==mt?void 0:mt.entitySubtypeId)?".".concat(mt.entitySubtypeId):"",".value")||dt||u,qe=(null==lt?void 0:lt.value)||("success"===(null==$e?void 0:$e.state)?null===(r=null==vt?void 0:vt[0])||void 0===r?void 0:r.id:void 0);wM({defaultValue:qe,dataModelField:mt,setFormData:d});tt=M?NC(JSON.parse(M)):"placeholder";return it(RM,O({},$e,{name:nt,control:null==l?void 0:l.control,onClick:P?ie:void 0,selectProps:O(O({},lt),{optionsPresentation:"open_dropdown"===(null==$e?void 0:$e.state),options:vt,isRichText:!0,placeholder:(null==lt?void 0:lt.placeholder)||"Select ".concat(tt),disabled:ee}),defaultValue:qe,required:Ye,optional:!Ye,labelsProps:O(O({},Re),{label:M,isRichText:!0,ruleLabel:Ye?"REQUIRED":"OPTIONAL"}),conditionConfig:null==Ue?void 0:Ue.conditionConfig,formData:c,htmlElementId:u,configurationItemInfo:oe}));case"radio_button_field":var gt=(i||{}).props,yt=void 0===gt?{}:gt,bt=yt.radioButtonsProps,xt=void 0===bt?{}:bt,Ct=yt.labelsProps,wt=(Re=void 0===Ct?{}:Ct,yt.name),Dt=void 0===wt?"":wt,Et=($e=A(yt,["radioButtonsProps","labelsProps","name"]),a||{}),kt=(ze=Et.label,We=Et.required,ft=Et.options,ht=Et.dataModelField,Ue=Et.conditionConfig,mt=(ht||{}).dataModelField,M=null==ze?void 0:ze.text,Ye=null==We?void 0:We.value,(null==ft?void 0:ft.options)||[]);nt="".concat(null==mt?void 0:mt.dataModelFieldId).concat((null==mt?void 0:mt.entitySubtypeId)?".".concat(mt.entitySubtypeId):"",".value")||Dt||u,qe=(null==xt?void 0:xt.value)||("success"===(null==$e?void 0:$e.state)?null===(h=null==kt?void 0:kt[0])||void 0===h?void 0:h.id:void 0);return wM({defaultValue:qe,dataModelField:mt,setFormData:d}),it(Oj,O({},$e,{name:nt,control:null==l?void 0:l.control,onClick:P?ie:void 0,radioButtonsProps:O(O({},xt),{options:kt,disabled:ee}),defaultValue:qe,required:Ye,optional:!Ye,labelsProps:O(O({},Re),{label:M,isRichText:!0,ruleLabel:Ye?"REQUIRED":"OPTIONAL"}),conditionConfig:null==Ue?void 0:Ue.conditionConfig,formData:c,htmlElementId:u,configurationItemInfo:oe}));case"checkbox_field":var St=(i||{}).props,Ot=void 0===St?{}:St,At=Ot.checkboxesProps,Bt=void 0===At?{}:At,Tt=Ot.labelsProps,Ft=(Re=void 0===Tt?{}:Tt,Ot.name),Pt=void 0===Ft?"":Ft,Mt=($e=A(Ot,["checkboxesProps","labelsProps","name"]),a||{}),Nt=(ze=Mt.label,We=Mt.required,ft=Mt.options,ht=Mt.dataModelField,Ue=Mt.conditionConfig,mt=(ht||{}).dataModelField,M=null==ze?void 0:ze.text,Ye=null==We?void 0:We.value,nt="".concat(null==mt?void 0:mt.dataModelFieldId).concat((null==mt?void 0:mt.entitySubtypeId)?".".concat(mt.entitySubtypeId):"",".value")||Pt||u,(null==ft?void 0:ft.options)||[]);qe=(null==Bt?void 0:Bt.selectedIds)||("success"===(null==$e?void 0:$e.state)?[null===(m=null==Nt?void 0:Nt[0])||void 0===m?void 0:m.id]:void 0);return wM({defaultValue:qe,dataModelField:mt,setFormData:d}),it(NM,O({},$e,{name:nt,onClick:P?ie:void 0,control:null==l?void 0:l.control,checkboxesProps:O(O({},Bt),{options:Nt,disabled:ee}),defaultValue:qe,required:Ye,optional:!Ye,labelsProps:O(O({ruleLabel:Ye?"REQUIRED":"OPTIONAL"},Re),{label:M,isRichText:!0}),conditionConfig:null==Ue?void 0:Ue.conditionConfig,formData:c,htmlElementId:u,configurationItemInfo:oe}));case"consent":return it(s_,{attributes:a,formData:c,config:i,configurationItemInfo:oe});case"link":H=i.props,M=a.text;var jt=a.link;return it(jj,O({},H,{onClick:P?ie:void 0,$variant:null==H?void 0:H.variant,$styles:null==H?void 0:H.styles,text:M.text,isRichText:M.isRichText,disabled:ee,href:ee?void 0:nh(jt),isTrigger:null==f?void 0:f.isTrigger,moleculeId:u,htmlElementId:u,configurationItemInfo:oe}));case"password_setup_field":var Rt=a.passwordFieldLabel,It=a.reenteredPasswordFieldLabel,_t=i.props,Lt=_t.validationLabel,$t=_t.passwordInputProps,Vt=_t.reenteredPasswordInputProps,zt=(Le=_t.state,[O(O({},$t),{name:"password.value",type:"input",inputType:"password",placeholder:null!==(g=null===(v=null==$t?void 0:$t.inputProps)||void 0===v?void 0:v.placeholder)&&void 0!==g?g:"Enter Your Password",label:null!==(b=null==Rt?void 0:Rt.text)&&void 0!==b?b:"Password",required:!0,rules:{required:"Password is required"},labelsProps:O(O({},Rt),{ruleLabel:null}),state:Le}),O(O({},Vt),{name:"reenteredPassword.value",type:"input",inputType:"password",placeholder:null!==(C=null===(x=null==Vt?void 0:Vt.inputProps)||void 0===x?void 0:x.placeholder)&&void 0!==C?C:"Re-Enter Your Password",label:null!==(w=null==It?void 0:It.text)&&void 0!==w?w:"Re-Enter Your Password",required:!0,labelsProps:O(O({},It),{ruleLabel:null}),rules:{validate:{passwordMatch:function(e){return e===(null==l?void 0:l.getValues("password.value"))||"Your passwords do not match each other"}}},state:Le})]);return it(p_,{fields:zt,validations:E||[],form:l,validationState:Le,onClick:P?ie:void 0,validationLabel:(null==E?void 0:E.length)?Lt:void 0,configurationItemInfo:oe});case"account_button":var Wt=i.props,Ut=Wt.avatarProps,Ht=Wt.menuConfig,qt=O(O({},Ut),{content:O(O({},null==Ut?void 0:Ut.content),{initials:V})}),Kt=O(O({},Ht),{title:U||(null==Ht?void 0:Ht.title),options:null===(S=Ht.options)||void 0===S?void 0:S.map((function(e){switch(e.id){case"log-out":return O(O({},e),{onClick:z});case"account-information":return O(O({},e),{onClick:W});default:return e}}))});return it(pj,{onClick:P?ie:void 0,avatarProps:qt,menuConfig:Kt,configurationItemInfo:oe});case"process_steps":var Xt=a||{},Gt=Xt.orientation,Yt=Xt.processSteps,Zt=(ne||{}).steps,Jt=null==Zt?void 0:Zt.sort((function(e,t){return e.order-t.order})),Qt=Yt.steps.sort((function(e,t){return e.order-t.order})).map((function(e,t){var n,r,o,i;return O(O({},e),{link:null!==(r=null===(n=null==Jt?void 0:Jt[t])||void 0===n?void 0:n.link)&&void 0!==r?r:null==e?void 0:e.link,status:null!==(i=null===(o=null==Jt?void 0:Jt[t])||void 0===o?void 0:o.status)&&void 0!==i?i:null==e?void 0:e.status})}));return it(Uj,{isOnClickDisabled:P,orientation:p?"vertical":Gt.value,steps:Qt,metadata:f,isMobile:p,htmlElementId:u,configurationItemInfo:oe});case"checklist":var en=((a||{}).checklist||{}).items;H=(i||{}).props;return it(W_,{items:en,props:H,configurationItemInfo:oe,metadata:f});default:return it(ot,{children:"There is no such type of molecule yet."})}}()},v_=function(e){var t=e.formData,n=e.setFormData,r=e.isMobile,o=A(e,["formData","setFormData","isMobile"]),i=DM(o);return i?it(a_,O({},i,{isMobile:r,formData:t,setFormData:n})):null},g_=function(e){var t,n=e.item,r=e.tabsProps,o=e.formData,i=e.setFormData,a=e.isMobile,s=nP(),l=tI(),u=xf().organismMetadata;if("molecule"===n.instance)return l?it(m_,O({},n,{tabsProps:r,form:s,formData:o,setFormData:i,isMobile:a,metadata:O(O({},n.metadata),{stateListenerId:(null==u?void 0:u.stateListenerId)||n.id})})):it(cI,{children:it(m_,O({},n,{tabsProps:r,form:s,formData:o,setFormData:i,isMobile:a,metadata:O(O({},n.metadata),{stateListenerId:(null==u?void 0:u.stateListenerId)||n.id})}))});if(!n.items||!n.items.length)return null;var c="form"===n.type&&(null===(t=n.config.props)||void 0===t?void 0:t.activeChildrenIds)||[];return c.length?it(v_,{item:n,activeChildrenIds:c,formData:o,setFormData:i,isMobile:a}):it(i_,O({id:n.id,type:n.type,isMobile:a},n.config,{metadata:n.metadata},{children:n.items.map((function(e){return it(g_,{item:e,tabsProps:r,formData:o,setFormData:i,isMobile:a},e.id)}))}))},y_=function(e){var t,n,r,o=e.children,i=e.popupProps,a=wf(),u=a.stateConfig,c=a.stateHandler,d=s({}),p=d[0],h=d[1],m=s(!1),v=m[0],g=m[1],y=s(!1),b=y[0],x=y[1],C=s(null),w=C[0],D=C[1];Ef({id:null==w?void 0:w.id,isTrigger:!0});var E=function(e){var t,n,r=null==i?void 0:i.find((function(t){return t.id===e}));D(r||null),g(!0),(null===(n=u[e])||void 0===n?void 0:n.visible)||null==c||c(((t={})[e]={visible:!0},t))};l((function(){null==i||i.forEach((function(e){var t;(null===(t=u[e.id])||void 0===t?void 0:t.visible)&&E(e.id)}))}),[u]);var k=function(e){var t;u[e]&&(null==c||c(((t={})[e]={visible:!1,closed:!0},t))),D(null),g(!1)},S=it(g_,{item:p}),A=f((function(){return{actionContent:p,setActionContent:h,isModalVisible:v,isDrawerVisible:b,setDrawerVisible:x,setActivePopUpById:E,onCloseModal:k}}),[p,v,b]),B=w||{},T=B.config,F=B.content;return at(mf.Provider,O({value:A},{children:[w&&at(R_,O({size:null==T?void 0:T.size,open:v,onClose:function(){return k(w.id)},popupId:w.id,modalStyles:null==T?void 0:T.styles,withCloseIcon:null==T?void 0:T.withCloseIcon},{children:[null===(t=null==F?void 0:F.embedded)||void 0===t?void 0:t.map((function(e){var t;return it(IR,O({initItems:null===(t=null==e?void 0:e.body)||void 0===t?void 0:t.items},{children:it(g_,{item:null==e?void 0:e.body},e.id)}))})),(null==F?void 0:F.isi)&&it(g_,{item:null===(r=null===(n=null==w?void 0:w.content)||void 0===n?void 0:n.isi)||void 0===r?void 0:r.body})]})),it(eN,O({open:b,onClose:function(){x(!1)},anchor:"right"},{children:S})),o]}))},b_=function(e){var t=e.children,n=e.goToAccountInfo,r=e.userInitials,o=e.logOutHandler,i=e.username,a=f((function(){return{logOutHandler:o,goToAccountInfo:n,userInitials:r,username:i}}),[o,n,r,i]);return it(Df.Provider,O({value:a},{children:t}))},x_=function(e){var t=e.initStateConfig,n=e.children,r=e.stateHandler,o=f((function(){return{stateConfig:t,stateHandler:r}}),[t,r]);return it(Cf.Provider,O({value:o},{children:n}))},C_=function(e){var t,n=e.src,r=e.onClick,o=e.link,i=void 0===o?"":o,a=e.altText,s=void 0===a?"":a,l=e.styles,u=e.width,c=e.height,d=e.id,p=void 0===d?"":d,f=e.behaveAs,h=void 0===f?"regular":f,m=e.cornerRadius,v=void 0===m?0:m,g=e.htmlElementId,y=e.metadata,b=e.configurationItemInfo,x=Ef({id:p,isTrigger:null==y?void 0:y.isTrigger}),C=!!r,w={src:n,width:u,$styles:O({cursor:C?"pointer":"auto"},l),height:c,alt:s,cornerRadius:v,onClick:C?function(){null==r||r(),x("click")}:void 0},D=yf(),E=D.showAnnotations,k=D.annotationsList,S=D.isMLRReview,A=k.links.findIndex((function(e){return p===e.moleculeId||i===e.url}))+1,B=null!==(t=k.tags.map((function(e,t){var n;return(null===(n=e.moleculeIds)||void 0===n?void 0:n.some((function(e){return e===p})))?t:-1})))&&void 0!==t?t:[],T=B.length>0?B.filter((function(e){return-1!==e})):[];if(!n)return null;var F={background:it(tw,O({},w)),regular:it(ew,O({},w))};return at(w_,O({id:(null==b?void 0:b.isConfigurationMode)?"configurationWrapper":g,style:{position:"regular"===h?"relative":"static"}},b,{children:[F[h],S&&E&&it("span",O({style:{position:"absolute",bottom:-3,left:"50%",zIndex:1,transform:"translate(-50%, 100%)"}},{children:at(uF,{children:[!!A&&it(sF,{index:A,type:"link"}),T.length>0&&T.map((function(e){return it(sF,{index:e+1,type:"message"})}))]})}))]}))},w_=et.div(gI||(gI=P(["\n ","\n"],["\n ","\n"])),xF),D_=function(e){var t=e.children,n=e.autoplay,r=void 0===n||n,i=e.autoplayDuration,a=void 0===i?5e3:i,u=d(null),c=d(null),p=s(1),v=p[0],g=p[1],y=s(0),b=y[0],x=y[1],C=a<100?1e3*a:a,w=h((function(e){null!==c.current&&"400ms"!==c.current.style.transitionDuration&&(c.current.style.transitionDuration="400ms","prev"===e?v<=1?(x(0),g(null==t?void 0:t.length)):(x(c.current.clientWidth*(v-1)),g((function(e){return e-1}))):"next"===e&&(v>=t.length?(x(c.current.clientWidth*(t.length+1)),g(1)):(x(c.current.clientWidth*(v+1)),g((function(e){return e+1})))))}),[v,t]);l((function(){var e=function(){null!==c.current&&(v<=1&&(c.current.style.transitionDuration="10ms",x(c.current.clientWidth*v)),v>=t.length&&(c.current.style.transitionDuration="10ms",x(c.current.clientWidth*t.length)),c.current.style.transitionDuration="10ms")};return document.addEventListener("transitionend",e),function(){document.removeEventListener("transitionend",e)}}),[v,t]),l((function(){var e=function(){u.current&&clearInterval(u.current),c.current&&x(v>1?c.current.clientWidth*v:c.current.clientWidth),r&&(u.current=setInterval((function(){w("next")}),C))};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[v,r,C,t]),l((function(){return r&&(u.current&&clearInterval(u.current),u.current=setInterval((function(){w("next")}),C)),function(){u.current&&clearInterval(u.current)}}),[w,r,C]);var D=f((function(){if(t.length>1){var e=o.map(t,(function(e,t){return it(S_,{children:e},t)}));return F(F([it(S_,{children:t[t.length-1]},t.length+1)],e,!0),[it(S_,{children:t[0]},t.length+2)],!1)}return it(S_,{children:t[0]})}),[t]);m((function(){null!==c.current&&x(c.current.clientWidth*v)}),[]);return at(E_,{children:[it(k_,O({ref:c,translateX:b},{children:D})),at(O_,{children:[it(A_,O({arrowSide:"left"},{children:it(fF,{size:32,color:"white",name:"CaretLeft",withoutOpacityEffect:!0,onClick:function(){return w("prev")}})})),it(B_,{children:o.map(t,(function(e,t){return it(rt,O({onClick:function(){return e=t,void(c.current&&(c.current.style.transitionDuration="400ms",g(e+1),x(c.current.clientWidth*(e+1))));var e}},{children:it(cF,{active:t===v-1,activeColor:"white",inactiveColor:"gray3"})}),t)}))}),it(A_,O({arrowSide:"right"},{children:it(fF,{size:32,color:"white",name:"CaretRight",withoutOpacityEffect:!0,onClick:function(){return w("next")}})}))]})]})},E_=et.section(yI||(yI=P(["\n position: relative;\n overflow: hidden;\n width: 100%;\n height: 100%;\n background-color: ",";\n"],["\n position: relative;\n overflow: hidden;\n width: 100%;\n height: 100%;\n background-color: ",";\n"])),(function(e){return e.theme.colors.white})),k_=et.ul(xI||(xI=P(["\n display: flex;\n width: 100%;\n height: 100%;\n list-style: none;\n padding: 0;\n margin: 0;\n transition: transform 0.4s ease-in-out;\n ",";\n"],["\n display: flex;\n width: 100%;\n height: 100%;\n list-style: none;\n padding: 0;\n margin: 0;\n transition: transform 0.4s ease-in-out;\n ",";\n"])),(function(e){var t=e.translateX;return qe(bI||(bI=P(["\n transform: translate3d(","px, 0, 0);\n "],["\n transform: translate3d(","px, 0, 0);\n "])),-t)})),S_=et.li(CI||(CI=P(["\n flex-shrink: 0;\n width: 100%;\n height: 100%;\n"],["\n flex-shrink: 0;\n width: 100%;\n height: 100%;\n"]))),O_=et.div(DI||(DI=P(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n ","\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n ","\n"])),(function(e){var t=e.theme.sizes;return qe(wI||(wI=P(["\n margin: ","px 100px;\n "],["\n margin: ","px 100px;\n "])),t.XL)})),A_=et.div(EI||(EI=P(["\n filter: ",";\n"],["\n filter: ",";\n"])),(function(e){var t=e.theme.colors,n=e.arrowSide;return n?"drop-shadow(".concat("left"===n?"1px":"-1px"," 0 2px ").concat(t.gray1,")"):"unset"})),B_=et.div(kI||(kI=P(["\n display: flex;\n"],["\n display: flex;\n"]))),T_=["variant","fullWidth","size"],F_=et(tl)(AI||(AI=P(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);\n user-select: none;\n outline: none;\n height: 51px;\n position: relative;\n ",";\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);\n user-select: none;\n outline: none;\n height: 51px;\n position: relative;\n ",";\n"])),(function(e){var t=e.theme,n=t.sizes,r=t.colors,o=t.fonts,i=e.disabled,a=e.fullWidth,s=e.variant,l=void 0===s?"primary":s,u=e.size,c=void 0===u?"medium":u,d="primary"===l?r.primary:"transparent",p="primary"===l?r.white:r.gray2,f="medium"===c?"".concat(n.M,"px"):"".concat(n.S,"px ").concat(n.M,"px");return qe(OI||(OI=P(["\n padding: ",";\n height: ","px;\n border: 2.5px solid transparent;\n background-color: ",";\n ",";\n color: ",";\n border-radius: ","px;\n background-position: center;\n transition: box-shadow 0.25s ease-in-out;\n width: ",";\n &:hover {\n box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);\n }\n &:focus {\n border: 2.5px solid\n ",";\n box-shadow: none;\n }\n\n ","\n "],["\n padding: ",";\n height: ","px;\n border: 2.5px solid transparent;\n background-color: ",";\n ",";\n color: ",";\n border-radius: ","px;\n background-position: center;\n transition: box-shadow 0.25s ease-in-out;\n width: ",";\n &:hover {\n box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);\n }\n &:focus {\n border: 2.5px solid\n ",";\n box-shadow: none;\n }\n\n ","\n "])),f,"medium"===c?51:33,d,"medium"===c?o.XL:o.L,p,n.S,a?"100%":"auto","primary"===l?ct(r.primary,-.38):r.gray2,i&&qe(SI||(SI=P(["\n cursor: unset;\n pointer-events: none;\n background-color: ",";\n box-shadow: none;\n "],["\n cursor: unset;\n pointer-events: none;\n background-color: ",";\n box-shadow: none;\n "])),ut(r.primary)))})),P_=et(F_)(FI||(FI=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme.colors,n=e.disabled;return qe(TI||(TI=P(["\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px transparent inset;\n &:focus {\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px "," inset;\n }\n &:hover {\n box-shadow: 0 0 0 1.5px "," inset;\n }\n\n ","\n "],["\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px transparent inset;\n &:focus {\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px "," inset;\n }\n &:hover {\n box-shadow: 0 0 0 1.5px "," inset;\n }\n\n ","\n "])),t.gray2,t.gray2,t.gray2,t.gray2,n&&qe(BI||(BI=P(["\n box-shadow: 0 0 0 1.5px ",";\n color: ",";\n background-color: transparent;\n "],["\n box-shadow: 0 0 0 1.5px ",";\n color: ",";\n background-color: transparent;\n "])),t.gray3,t.gray3))})),M_=et(F_)(II||(II=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme,n=t.sizes,r=t.colors,o=t.fonts,i=e.disabled,a=e.size,s=void 0===a?"medium":a,l=e.hoverButtonColor,u=void 0===l?"transparent":l,c=e.hoverStrokeColor,d=void 0===c?"transparent":c,p=e.buttonFont,f=void 0===p?"XL":p,h=e.textColor,m=void 0===h?"gray2":h,v=e.textSize,g=void 0===v?16:v,y=e.verticalPadding,b=e.horizontalPadding,x=e.buttonColor,C=void 0===x?"transparent":x,w=e.buttonStroke,D=void 0===w?"transparent":w,E=e.cornerRadius,k=void 0===E?"S":E,S=e.inactiveButtonColor,O=void 0===S?"transparent":S,A=e.inactiveStrokeColor,B=void 0===A?"transparent":A,T=e.inactiveTextColor,F=void 0===T?"gray3":T,M=e.styles,N=r[C]||C,j="medium"===s?"".concat(n.M,"px"):"".concat(n.S,"px ").concat(n.M,"px"),R="medium"===s?o.XL:o.L,I=C?r[C]||C:r[d]||d;return qe(RI||(RI=P(["\n padding: ",";\n border-color: ",";\n background-color: ",";\n font-size: ","px;\n ",";\n color: ",";\n border-radius: ","px;\n box-shadow: none;\n transition: border 0.2s ease-in-out;\n &:focus {\n border: 2.5px solid ",";\n }\n &:hover {\n border: 2.5px solid ",";\n ","\n }\n\n ","\n\n ","\n "],["\n padding: ",";\n border-color: ",";\n background-color: ",";\n font-size: ","px;\n ",";\n color: ",";\n border-radius: ","px;\n box-shadow: none;\n transition: border 0.2s ease-in-out;\n &:focus {\n border: 2.5px solid ",";\n }\n &:hover {\n border: 2.5px solid ",";\n ","\n }\n\n ","\n\n ","\n "])),b||y?"".concat(n[y||"M"],"px ").concat(n[b||"M"],"px"):j,r[D]||D,N,g,f?o[f]:R,r[m]||m,"number"==typeof k?k:n[k],ct(I,-.33),r[d]||d,u&&qe(PI||(PI=P(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),r[u]||u),i&&qe(jI||(jI=P(["\n background-color: ",";\n color: ","\n ","\n ",";\n "],["\n background-color: ",";\n color: ","\n ","\n ",";\n "])),ut(N||r.primary),r[F]||F,O&&qe(MI||(MI=P(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),r[O]||O),B&&qe(NI||(NI=P(["\n border: 2.5px solid ",";\n "],["\n border: 2.5px solid ",";\n "])),r[B]||B)),M)})),N_=et.div(LI||(LI=P(["\n display: inline-flex;\n ","\n ","\n"],["\n display: inline-flex;\n ","\n ","\n"])),(function(e){var t=e.$fullWidth,n=e.$styles;return qe(_I||(_I=P(["\n width: ",";\n ","\n "],["\n width: ",";\n ","\n "])),t?"100%":"auto",n)}),xF),j_=function(e){var t,n=e.text,r=e.onClick,o=e.loading,i=e.disabled,a=e.variant,s=e.isRichText,l=e.fullWidth,u=void 0===l||l,c=e.elementId,d=e.link,p=e.containerStyle,f=e.children,h=e.buttonStyle,m=e.size,v=e.textColor,g=e.inactiveTextColor,y=e.state,b=void 0===y?"enabled":y;e.href,e.stateConfig;var x=e.htmlElementId,C=e.metadata,w=e.configurationItemInfo,D=A(e,["text","onClick","loading","disabled","variant","isRichText","fullWidth","elementId","link","containerStyle","children","buttonStyle","size","textColor","inactiveTextColor","state","href","stateConfig","htmlElementId","metadata","configurationItemInfo"]),E=function(e){switch(e){case"primary":default:return F_;case"secondary":return P_;case"custom":return M_;case"text":return rw}}(a),k=i||"disabled"===b,S=Re().colors,B=yf(),T=B.showAnnotations,F=B.annotationsList,M=B.isMLRReview,N=F.links.findIndex((function(e){return c===e.moleculeId||d===e.url}))+1,j=Ef({isTrigger:null==C?void 0:C.isTrigger,id:c||""});if(!n&&!f)return null;var R={primary:"white",secondary:S[v],custom:S[v]||v,text:"blue"},I={primary:"white",secondary:S[g],custom:S[g]||g,text:S[g]},_=qe(VI||(VI=P(["\n ","\n ","\n ","\n "],["\n ","\n ","\n ","\n "])),(null==D?void 0:D.textSize)&&qe($I||($I=P(["\n font-size: ","px;\n "],["\n font-size: ","px;\n "])),D.textSize),h,D.styles),L=s?it(bC,{color:k?I[a]:R[a],font:"custom"===a&&D.buttonFont?D.buttonFont:"XL",value:n,extraTextProps:{behaveAs:"button",variant:"custom"===a&&D.buttonFont?D.buttonFont:"XL",styles:_}}):n;return it(N_,O({},N&&((t={id:mC})["data-".concat(gC)]=d,t["data-".concat(yC)]=c,t),{id:(null==w?void 0:w.isConfigurationMode)?"configurationWrapper":N?"annotation-link":void 0,"data-link-url":d,"data-link-text":c,className:"z-button-container",$fullWidth:u,$styles:p},w,{children:at(E,O({id:x,fullWidth:u,variant:a,disabled:o||k,onClick:function(){null==r||r(),j("click")},onChange:j,style:O(O({},h),null==D?void 0:D.styles),size:m,textColor:v,inactiveTextColor:g},D,{children:[L||f,o&&at(ot,{children:[it(CC,{width:6}),it(QC,{color:"gray1"})]}),M&&T&&!!N&&it("span",O({style:{position:"absolute",bottom:-6,left:"50%",zIndex:1,transform:"translate(-50%, 100%)"}},{children:it(sF,{index:N,type:"link"})}))]}))}))},R_=function(e){var t=e.children,n=e.wrapperStyles,r=e.padding,o=void 0===r?"32px 0px 0px":r,i=e.onKeyDown,a=e.modalStyles;e.size,e.popupId;var s=e.withCloseIcon,l=void 0!==s&&s,u=A(e,["children","wrapperStyles","padding","onKeyDown","modalStyles","size","popupId","withCloseIcon"]);return it($u,O({},u,{style:a,onKeyDown:i},{children:at(I_,O({style:O({padding:o},n)},{children:[t,l&&it(__,O({onClick:null==u?void 0:u.onClose},{children:it(ff,{size:32,name:"Close",color:dt.colors.gray1})}))]}))}))},I_=et.div(WI||(WI=P(["\n position: absolute;\n left: 50%;\n outline: none;\n min-width: 510px;\n max-height: 90vh;\n overflow-y: auto;\n transform: translate(-50%);\n ","\n"],["\n position: absolute;\n left: 50%;\n outline: none;\n min-width: 510px;\n max-height: 90vh;\n overflow-y: auto;\n transform: translate(-50%);\n ","\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes,o=e.$styles;return qe(zI||(zI=P(["\n top: ","px;\n box-shadow: ","px;\n border-radius: ","px;\n background-color: ",";\n ","\n "],["\n top: ","px;\n box-shadow: ","px;\n border-radius: ","px;\n background-color: ",";\n ","\n "])),r.XL,r.L,r.M,n.background,o)})),__=et(rt)(HI||(HI=P(["\n ",";\n"],["\n ",";\n"])),(function(e){var t=e.theme.sizes;return qe(UI||(UI=P(["\n display: flex;\n ",";\n justify-content: center;\n align-items: center;\n position: absolute;\n top: ","px;\n right: ","px;\n cursor: pointer;\n "],["\n display: flex;\n ",";\n justify-content: center;\n align-items: center;\n position: absolute;\n top: ","px;\n right: ","px;\n cursor: pointer;\n "])),st(t.L),t["2XL"],t["4XL"])})),L_=function(e){var t;switch(e.type){case"checkbox":t=it(BC,{id:e.id,isSelected:e.value,onClick:e.onChange,label:e.label,isRichText:!0});break;case"button":t=at(Op,O({direction:"row",gap:2},{children:[it(j_,O({fullWidth:!1},e.acceptButton)),it(j_,O({variant:"secondary",fullWidth:!1},e.denyButton))]}));break;case"radioButton":t=it(rF,O({},e));break;default:t=null}return it($_,{children:t})},$_=et.div(qI||(qI=P(["\n margin-top: ","px;\n"],["\n margin-top: ","px;\n"])),(function(e){return e.theme.sizes.L})),V_=function(e){var t=e.text,n=e.consentCaptureProps,r=e.containerStyles,o=e.clearStyles;return at(z_,O({clearStyles:void 0!==o&&o,style:r},{children:[it(bC,{value:t,font:"M"}),it(L_,O({},n))]}))},z_=et.div(XI||(XI=P(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme,n=t.colors,r=t.sizes;return!e.clearStyles&&qe(KI||(KI=P(["\n background: ",";\n padding: ","px;\n box-shadow: 0 ","px 10px rgba(0, 0, 0, 0.25);\n border-radius: ","px;\n "],["\n background: ",";\n padding: ","px;\n box-shadow: 0 ","px 10px rgba(0, 0, 0, 0.25);\n border-radius: ","px;\n "])),n.white,r["3XL"],r.XS,r.M)})),W_=function(e){var t=e.items,n=void 0===t?[]:t,r=e.props,o=void 0===r?{gap:"XS"}:r,i=o.gap,a=A(o,["gap"]),u=e.configurationItemInfo,c=e.metadata,d=wf(),p=d.stateConfig,f=d.stateHandler,h=s(n),m=h[0],v=h[1],g=(c||{}).stateListenerId;l((function(){if(g&&(null==p?void 0:p[g])){var e=p[g].items||[],t=(n||[]).map((function(t){return e.find((function(e){return e.id===t.id}))||t}));JSON.stringify(t)===JSON.stringify(m)||v(t)}}),[g,p,n]);return it(U_,O({id:"configurationWrapper",$gap:i},u,{children:m.map((function(e){var t=e||{},n=t.id,r=t.type,o=t.label,i=t.isChecked,s=o||{},l=s.text,u=s.isRichText;return it(BC,{id:n,isEditMode:!0,label:l,onClick:function(){return function(e){var t,n=m.map((function(t){return t.id===e?O(O({},t),{isChecked:!t.isChecked}):t}));v(n),g&&(null==f||f(((t={})[g]={items:n},t)))}(n)},isSelected:i,isRichText:u,internalConfig:a,notInteractable:"system_controlled"===r},n)}))}))},U_=et.div(YI||(YI=P(["\n display: flex;\n flex-direction: column;\n ",";\n ","\n"],["\n display: flex;\n flex-direction: column;\n ",";\n ","\n"])),(function(e){var t=e.$gap;return qe(GI||(GI=P(["\n gap: ","px;\n "],["\n gap: ","px;\n "])),dt.sizes[t])}),xF),H_=t.forwardRef((function(e,t){var n,r,o=e.options,i=e.onClick,a=e.text,l=e.tabKey,u=e.vertical,c=e.onOptionClick,p=e.tabTheme,f=void 0===p?"light":p,h=e.tabFont,m=void 0===h?"L":h,g=e.tabPadding,y=e.selectedTabIndicatorColor,b=e.textSize,x=e.defaultTabTextColor,C=A(e,["options","onClick","text","tabKey","vertical","onOptionClick","tabTheme","tabFont","tabPadding","selectedTabIndicatorColor","textSize","defaultTabTextColor"]),w=s(!1),D=w[0],E=w[1],k=d(null),S=Re().sizes;v(t,(function(){return k.current}));var B=!!(null==o?void 0:o.length),T=it(uj,{options:o,onItemPress:function(e){null==c||c(e),E(!1)}});return it(sj,O({overlay:T,onVisibleChange:B?E:void 0,visible:D,overlayStyle:{zIndex:5e3,paddingTop:S.M},trigger:"click",animation:"slide-up"},{children:at(vF,O({ref:k},C,{tabTheme:f,onClick:function(){null==i||i(l),B&&E(!0)}},{children:[it(mF,O({behaveAs:"button",textSize:b,variant:m,tabFont:m,tabPadding:g,tabTheme:f,defaultTabTextColor:x},{children:a})),B&&it(gF,O({disabled:C.disabled,tabTheme:f,isActive:D,defaultTabTextColor:x},{children:it(ff,{name:"CaretDown",size:S.L})})),u&&it(gj,{style:{bottom:-S.S},left:0,width:C.isActive&&null!==(r=null===(n=k.current)||void 0===n?void 0:n.clientWidth)&&void 0!==r?r:0,tabTheme:f,selectedTabIndicatorColor:y})]}))}))}));export{Df as AccountButtonContext,b_ as AccountButtonProvider,Bj as Alert,UT as Avatar,pj as AvatarDropdown,tw as BackgroundImage,nw as BaseTextButton,BR as BottomNavBarItem,j_ as Button,mf as ButtonActionsContext,y_ as ButtonActionsProvider,yC as COMMUNICATION_LINK_DATA_TEXT,gC as COMMUNICATION_LINK_DATA_URL,mC as COMMUNICATION_LINK_ELEMENT_ID,Cj as CaretIconWrapper,D_ as Carousel,BC as Checkbox,NM as CheckboxField,jM as CheckboxGroup,W_ as Checklist,U_ as ChecklistWrapper,sF as Circle,uF as CirclesWrapper,cF as CircularIndicator,dF as CircularIndicatorStyledComponent,V_ as Consent,i_ as Container,a_ as ContainerComponent,wF as ContainerWrapper,LM as CustomValidation,JT as Divider,eN as Drawer,kj as EmphasizedText,EC as ErrorText,kR as FeedContentHeader,SF as FieldLabels,FM as FieldMapper,Ej as FieldSection,v_ as FormOrganismItem,VT as HorizontalButtons,AR as HorizontalButtonsField,YT as HorizontalPadding,ff as Icon,fF as IconButton,__ as IconWrapper,C_ as Image,qC as Input,kM as InputField,jj as Link,vC as MATRIX_MESSAGE_DATA_ID,hC as MATRIX_MESSAGE_ELEMENT_ID,uj as MenuItems,bj as MenuNavigation,gf as MlrRichTextViewerContext,jR as MlrRichTextViewerProvider,I_ as ModalWrapper,m_ as MoleculeItem,bf as OrganismContext,IR as OrganismContextProvider,g_ as OrganismItem,yR as PdfDocument,Oj as RadioButtonField,rF as RadioButtons,oF as RadioGroupWrapper,ew as RegularImage,bC as RichTextViewer,LC as Select,RM as SelectField,XM as SelectableCardGroup,CC as Spacer,QC as Spinner,Cf as StateContext,x_ as StateContextProvider,Uj as Stepper,tB as StyleWrapper,H_ as Tab,wj as TabGroup,rw as TextButton,DF as TextMolecule,wC as TextWrapper,nB as Tooltip,rt as TouchableOpacity,iw as ValidationTag,ZT as VerticalPadding,FR as Video,$p as ZealThemeProvider,R_ as ZealUIModal,T_ as baseButtonAllowedConfigurations,dt as defaultTheme,fC as defaultValue,OM as getFieldPlaceholder,TM as getFieldsFromFieldSections,AM as getInitialValuesFromFields,BM as isFormValid,$T as toast,Ip as toastStyles,vf as useButtonActionsContext,Vp as useMediaQuery,yf as useMlrRichTextViewerContext,QI as useRequiredConsentsAcceptedValues,JI as useStep};
|
152
152
|
//# sourceMappingURL=index.js.map
|